diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 2a0f5888..2ea26568 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -518,6 +518,7 @@ + @@ -539,6 +540,7 @@ { this.$modal.msgSuccess("报工信息修改成功"); this.openConsume = false; @@ -1491,7 +1494,7 @@ export default { }, //物料损耗表格--新增确认 onSelectNewPrepare(obj) { - debugger + let sr = this.selectRow[0] for(let i=0;i关闭订单 @@ -637,6 +637,7 @@ export default { proline: [], // 非单个禁用 single: true, + nodelete: true, // splitnum: null, // 班次 @@ -1437,6 +1438,7 @@ export default { // 多选框选中数据 handleAutoSplitSelection(selection) { this.single = selection.length !== 1 + this.nodelete = selection.length!==1||selection[0].delFlag==1 this.orderCodes = selection }, //排产优先级 @@ -1455,14 +1457,21 @@ export default { return false; } }, - //关闭订单 + //关闭订单 handleDeleteOrder(){ this.loading = true; let _this = this; const orderIds = this.orderCodes.map(item => item.id); const orderCodes = this.orderCodes.map(item => item.orderCode); this.$modal.confirm('是否确认关闭订单"' + orderCodes + '"?').then(function () { - return deleteOrder(orderIds); + deleteOrder(orderIds).then(response => { + if(response.code == 200){ + this.$modal.msgSuccess("操作成功"); + }else{ + this.$modal.msgError(response.mgs); + } + + }); }).then(() => { this.loading = false; this.getList();