1、物资字典维护和供应商的物资子字典维护的编辑界面产品标识选择编辑一个的时候其他的不能进行修改

dev_unify
qyt 8 months ago
parent 836a673520
commit 42c92b044f

@ -1289,7 +1289,7 @@ export default {
},
isSave: true,
selectedIndex: null,
editRowSwitch: false //
}
},
@ -1733,6 +1733,7 @@ export default {
this.editQuery = row;
}, //
levelSave(row) {
this.editRowSwitch = false
if (isBlank(row.nameCode)) {
this.$message.error('层级标识不能为空')
return
@ -1787,11 +1788,16 @@ export default {
})
},
rowChange(index, val) {
// if (this.selectedIndex != null && this.selectedIndex != index){
// this.levelSave(val)
// }else
this.selectedIndex = index
if(this.editRowSwitch == true ){
this.$message.error('请先保存当前产品标识编辑')
return
}
console.log("rowChange===",index)
this.selectedIndex = index
this.isSave = false
this.editRowSwitch = true
},
deleteLevel(index, row) {

@ -786,6 +786,7 @@ export default {
],
levelUnitList: [],
fromDeptOptions: [],
editRowSwitch: false //
}
},
@ -1079,6 +1080,7 @@ export default {
//
levelSave(row) {
this.editRowSwitch = false
if (isBlank(row.nameCode)) {
this.$message.error('层级标识不能为空')
return
@ -1119,10 +1121,16 @@ export default {
})
},
rowChange(index, val) {
if(this.editRowSwitch == true ){
this.$message.error('请先保存当前产品标识编辑')
return
}
console.log("rowChange===",index)
this.selectedIndex = index
this.isSave = false
this.editRowSwitch = true
},
},
components: {

Loading…
Cancel
Save