浏览代码

修复唯一性处理无法保存的bug

oyq28 3 年之前
父节点
当前提交
36b15c5322

+ 1 - 1
imcs-ui/src/views/zuihou/lineSideLibrary/goodsShelvesMgr/components/Edit.vue

@@ -74,7 +74,7 @@ export default {
     let validateExsit = (rule, value, callback) => {
       //后台方法
       if(this.type=="edit" && value === this.oldName){
-        return true
+        return callback()
       }
       this.checkExist(value).then(res => {
         res = res.data               

+ 1 - 1
imcs-ui/src/views/zuihou/lineSideLibrary/locationMgr/components/Edit.vue

@@ -60,7 +60,7 @@ export default {
     let validateExsit = (rule, value, callback) => {
       //后台方法       
       if(this.type=="edit" && value === this.oldName){
-        return true
+        return callback()
       }      
       this.checkExist(value).then(res => {
         res = res.data;       

+ 1 - 1
imcs-ui/src/views/zuihou/resourceProductMgr/resourcesMgr/components/TenantEdit.vue

@@ -54,7 +54,7 @@ export default {
     let validateExsit = (rule, value, callback) => {
       //后台方法
       if(this.type=="edit" && value === this.oldName){
-        return true
+        return callback()
       } 
       this.checkExist(value).then(res => {
         res = res.data               

+ 4 - 3
imcs-ui/src/views/zuihou/runManageCenter/orderMgr/components/draftOrder/components/Edit.vue

@@ -26,7 +26,7 @@
         prop="zoneId"
       >
         <el-select
-          v-model="tenant.custId"
+          v-model="tenant.zoneId"
           :placeholder="$t(&quot;common.pleaseSelect&quot;)"
           style="width: 50%;"
         >
@@ -468,7 +468,8 @@ export default {
     initTenant () {
       return {
         orderTime: moment(new Date()).format('YYYY-MM-DD'),
-        status: '1'
+        status: '1',
+        zoneId: '',
       }
     },
     
@@ -485,7 +486,7 @@ export default {
     
     setTenant (val, dicts) {
     	if(val){
-    		this.tenant = { ...val }
+    		this.tenant = { ...val }        
     		// 修改的时候,订单详情数据(BOM产品)
     		this.getBomList()
     	}