fanzherong_v 2 nedēļas atpakaļ
vecāks
revīzija
51a62995cd

+ 3 - 3
snowy-admin-web/src/views/biz/bizsupplier/transportIndex.vue

@@ -34,7 +34,7 @@
 							<a-divider type="vertical" v-if="hasPerm(['bizSupplierTransportEdit', 'bizSupplierTransportDelete'], 'and') && record.auditStatus!='2'" />
 							<a-button type="link" danger size="small" v-if="hasPerm('bizSupplierTransportDelete') && record.auditStatus!='2'" @click="deleteConfig(record)">删除</a-button>
 							<a-divider type="vertical" v-if="(hasPerm(['bizSupplierTransportEdit', 'bizSupplierTransportDelete'], 'or') && record.auditStatus!='2') && hasPerm('bizSupplierTransportAudit')" />
-							<a @click="auditFormRef.showModal(record.id)" v-if="hasPerm('bizSupplierTransportAudit')">审核</a>
+							<a @click="auditFormRef.showModal(record.id)" v-if="hasPerm('bizSupplierTransportAudit') && record.auditStatus=='1'">审核</a>
 						</a-space>
 					</template>
 				</template>
@@ -53,7 +53,7 @@
 	import {ExclamationCircleOutlined} from '@ant-design/icons-vue';
 	import {Modal} from 'ant-design-vue';
 	import {createVNode} from 'vue';
-	
+
 	const submitLoading = ref(false)
 	const toolConfig = { refresh: true, height: false, columnSetting: false, striped: false }
 	// 默认是关闭状态
@@ -65,7 +65,7 @@
 	const recordData = ref()
 	const title = ref()
 	const supplierId = ref()
-	
+
 	const columns = [
 		{
 			title: '序号',

+ 4 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizsupplier/service/impl/BizSupplierTransportServiceImpl.java

@@ -73,6 +73,7 @@ public class BizSupplierTransportServiceImpl extends ServiceImpl<BizSupplierTran
             throw new CommonException("供应商运输号已存在!");
         }
         BizSupplierTransport bizSupplierTransport = BeanUtil.toBean(bizSupplierTransportAddParam, BizSupplierTransport.class);
+        bizSupplierTransport.setTransportNo(bizSupplierTransport.getTransportNo().toUpperCase().trim());
         this.save(bizSupplierTransport);
     }
 
@@ -89,6 +90,9 @@ public class BizSupplierTransportServiceImpl extends ServiceImpl<BizSupplierTran
         }
         BizSupplierTransport bizSupplierTransport = this.queryEntity(bizSupplierTransportEditParam.getId());
         BeanUtil.copyProperties(bizSupplierTransportEditParam, bizSupplierTransport);
+        if(StringUtils.equals(bizSupplierTransport.getAuditStatus(),"3")){
+            bizSupplierTransport.setAuditStatus("1");
+        }
         this.updateById(bizSupplierTransport);
     }