Ver Fonte

页面切换处理bug修复

oyq28 há 3 anos atrás
pai
commit
0c2fffc515

+ 3 - 2
imcs-ui/src/views/zuihou/prepareProductMgr/bomMgr/Index.vue

@@ -448,6 +448,7 @@ export default {
     		this.$refs.edit.tenant.parent_id = this.selection[0].id
     	}
       this.$refs.edit.type = "add"
+      this.$refs.edit.setTenant({})
       this.dialog.title = this.$t("common.add")
       this.dialog.isVisible = true
     },
@@ -567,10 +568,10 @@ export default {
         })
         return
       }
+      this.$refs.edit.type = "edit"
       this.$refs.edit.setTenant(row)
       // this.$refs.edit.tenant.parent_name = row.name
-    	// this.$refs.edit.tenant.parent_id = row.id
-      this.$refs.edit.type = "edit"
+    	// this.$refs.edit.tenant.parent_id = row.id      
       this.dialog.title = this.$t("common.edit")
       this.dialog.isVisible = true
     },

+ 1 - 1
imcs-ui/src/views/zuihou/prepareProductMgr/bomMgr/components/Edit.vue

@@ -66,7 +66,7 @@
 	      		:rules="{required: item.requireFlag=='1' ? true : false, message: $t('rules.require'), trigger: 'blur'}"
 	      	>			  
 			<el-select v-model="tenant[item.identifier]" 
-			 :disabled=" item.identifier == 'zone_id' ? zoneEdit:(item.readonly == '1' ? true : false)"
+			 :disabled=" item.identifier == 'zone_id' ? !zoneEdit:(item.readonly == '1' ? true : false)"
 			 :placeholder='$t("common.pleaseSelect")' filterable style="width: 100%;">
 				    <el-option
 				      v-for="(obj, index) in commList[item.identifier]"