diff --git a/hw-ui/src/views/mes/productOrder/index.vue b/hw-ui/src/views/mes/productOrder/index.vue index 6c64df12..d38a4b2f 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(() => { + // }); + // }, + } };