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

20240912_adapter
qyt 5 months ago
parent d87bb86c4f
commit 0099f2bb4b

@ -1274,6 +1274,7 @@ export default {
}, },
isSave: true, isSave: true,
selectedIndex: null, selectedIndex: null,
editRowSwitch: false //
} }
@ -1713,6 +1714,7 @@ export default {
this.editQuery = row; this.editQuery = row;
}, // }, //
levelSave(row) { levelSave(row) {
this.editRowSwitch = false
if (isBlank(row.nameCode)) { if (isBlank(row.nameCode)) {
this.$message.error('层级标识不能为空') this.$message.error('层级标识不能为空')
return return
@ -1767,12 +1769,19 @@ export default {
}) })
}, },
rowChange(index, val) { rowChange(index, val) {
if(this.editRowSwitch == true ){
this.$message.error('请先保存当前产品标识编辑')
return
}
console.log("rowChange===",index) console.log("rowChange===",index)
this.selectedIndex = index this.selectedIndex = index
this.isSave = false this.isSave = false
this.editRowSwitch = true
}, },
deleteLevel(index, row) { deleteLevel(index, row) {
this.$confirm('此操作将删除该层级,是否继续?', '提示', { this.$confirm('此操作将删除该层级,是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

Loading…
Cancel
Save