基本配置修改 优化
This commit is contained in:
parent
8d6c906733
commit
be70055b42
|
|
@ -1370,7 +1370,11 @@
|
||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$modal
|
if (Number(row.hasInventory) === 1) {
|
||||||
|
this.$modal.msgWarning("该物料仍有库存,无法删除!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$modal
|
||||||
.confirm("是否确认删除数据项?")
|
.confirm("是否确认删除数据项?")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return removeMenuDishesApi({dishesId:row.dishesId});
|
return removeMenuDishesApi({dishesId:row.dishesId});
|
||||||
|
|
@ -1379,7 +1383,7 @@
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
this.getList();
|
this.getList();
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
handleSelectionChange(selection){
|
handleSelectionChange(selection){
|
||||||
this.batchIds = []
|
this.batchIds = []
|
||||||
|
|
|
||||||
|
|
@ -583,6 +583,10 @@ export default {
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
if (Number(row.hasInventory) === 1) {
|
||||||
|
this.$modal.msgWarning("该物料仍有库存,无法删除!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认删除数据项?")
|
.confirm("是否确认删除数据项?")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue