From b5e8f6a9f881bfe32b82a976591688cc035bf5a5 Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 24 Jul 2024 15:19:28 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=94=9F=E4=BA=A7=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E6=8E=92=E4=BA=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/productOrder/productionScheduling.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/hw-ui/src/views/mes/productOrder/productionScheduling.vue b/hw-ui/src/views/mes/productOrder/productionScheduling.vue index 390b38d..cb8191b 100644 --- a/hw-ui/src/views/mes/productOrder/productionScheduling.vue +++ b/hw-ui/src/views/mes/productOrder/productionScheduling.vue @@ -326,8 +326,6 @@ let overtimeSearch = (arr, targets) => { arr.forEach((element, k) => { if (targets && element.planDateRange) { if ((new Date(element.planDateRange[0]).getTime() < new Date(targets[0]).getTime()) || (new Date(element.planDateRange[1]).getTime() > new Date(targets[1]).getTime())) { - console.log(element.planDateRange) - console.log(targets) results = true } } @@ -1012,14 +1010,13 @@ export default { /** 保存按钮操作 */ handleSave() { if(!overtimeSearch(this.productOrderList)){ - - // const extractedData = this.extractFields(this.productOrderList); - // batchEditingProductOrder(extractedData).then(response => { - // this.$modal.msgSuccess("批量保存成功"); - // this.getList(); - // }); + const extractedData = this.extractFields(this.productOrderList); + batchEditingProductOrder(extractedData).then(response => { + this.$modal.msgSuccess("批量保存成功"); + this.getList(); + }); }else{ - this.$message('时间错误') + this.$modal.msgError('生产派工单计划时间范围超出生产工单计划时间范围!') } }, extractFields(data) {