From 6e8fdb258be8cc8fa9a61303297f726be646273e Mon Sep 17 00:00:00 2001 From: xs Date: Fri, 21 Jun 2024 18:59:22 +0800 Subject: [PATCH] =?UTF-8?q?2.4.5=20MES:Web=E7=94=9F=E4=BA=A7=E6=B4=BE?= =?UTF-8?q?=E5=B7=A5=EF=BC=8C=E8=AE=A1=E5=88=92=E7=94=9F=E4=BA=A7=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=8F=AF=E4=BB=A5=E4=B8=8D=E7=AD=89=E4=BA=8E?= =?UTF-8?q?=E6=B4=BE=E5=B7=A5=E7=9A=84=E6=95=B0=E9=87=8F=EF=BC=88=E7=9B=AE?= =?UTF-8?q?=E5=89=8D=E5=8F=AA=E9=92=88=E5=AF=B94=E6=A5=BC=E6=8A=98?= =?UTF-8?q?=E5=BC=AF=E5=B7=A5=E5=BA=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/views/mes/productOrder/index.vue | 70 +++++++++++++++++----- 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/hw-ui/src/views/mes/productOrder/index.vue b/hw-ui/src/views/mes/productOrder/index.vue index 6c64df1..d38a4b2 100644 --- a/hw-ui/src/views/mes/productOrder/index.vue +++ b/hw-ui/src/views/mes/productOrder/index.vue @@ -96,7 +96,7 @@ - + @@ -187,11 +187,6 @@ {{ parseTime(scope.row.realEndTime, '{y}-{m}-{d} {h}:{i}:{s}') }} - - - @@ -219,9 +214,18 @@ 锁库存 + icon="el-icon-video-pause" + v-if="scope.row.status===MES_ORDER_STATUS.STARTED" + @click="handlePause(scope.row)" + >暂停 + + 继续 --> - + @@ -292,7 +297,7 @@ - + @@ -633,6 +638,11 @@ export default { MES_SALE_TYPE: { MES_SALE_TYPE_EXTERNAL: '1',//外部销售 MES_SALE_TYPE_INTERNAL: '2',//对内生产 + }, + + MES_ORDER_STATUS: { + STARTED: "3",//已开始 + PAUSE: "4", //暂停 } }; }, @@ -708,7 +718,7 @@ export default { }, /** 新增按钮操作 */ handleSaleOrderAdd() { - if(this.form.saleType===null || this.form.saleType===undefined || this.form.saleType===''){ + if (this.form.saleType === null || this.form.saleType === undefined || this.form.saleType === '') { this.$modal.msgWarning("请先选择销售类型!"); return; } @@ -770,7 +780,7 @@ export default { }, changeSaleType(value) { - this.form.saleOrderId =null; + this.form.saleOrderId = null; this.form.saleorderCode = null; this.form.saleorderLinenumber = null; this.form.materialId = null; @@ -953,7 +963,37 @@ export default { this.download('mes/productOrder/export', { ...this.queryParams }, `productOrder_${new Date().getTime()}.xlsx`) - } + }, + + + /** 暂停 */ + handlePause(row){ + + }, + + handleContinue(row){ + + }, + + // handlePublish(row) { + // this.form.productOrderId = row.productOrderId; + // this.form.orderStatus = row.orderStatus; + // this.$modal.confirm('是否确认发布生产工单编号为"' + row.orderCode + '"的数据项?').then(function () { + // return true; + // }).then(() => { + // productOrderPublish(this.form).then(response => { + // this.$modal.msgSuccess("发布成功"); + // + // const productOrderId = row.productOrderId || this.ids[0]; + // const orderCode = row.orderCode; + // const params = {queryParams: this.queryParams}; + // this.$tab.closeOpenPage(router.currentRoute); + // this.$tab.openPage("工单[" + orderCode + "]生产派工", '/mes/product-plan/index/' + productOrderId, params); + // }); + // }).catch(() => { + // }); + // }, + } };