From 50e20c3e0ca0133d783188d73948025400fa8cd4 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Fri, 1 Sep 2023 17:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=9A=84=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=96=B9=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/production/index.vue | 6 +- src/views/plan/order/index.vue | 48 +++++++++------- src/views/plan/workorder/index.vue | 88 ++++++++++++++---------------- 3 files changed, 70 insertions(+), 72 deletions(-) diff --git a/src/views/mes/production/index.vue b/src/views/mes/production/index.vue index cbfdd9ef..3908c357 100644 --- a/src/views/mes/production/index.vue +++ b/src/views/mes/production/index.vue @@ -110,7 +110,7 @@ @pagination="getList" /> - + @@ -185,7 +185,7 @@ export default { this.queryParams.productDateStart = moment(this.queryParams.productDateArray[0]).format('YYYY-MM-DD'); this.queryParams.productDateEnd = moment(this.queryParams.productDateArray[1]).format('YYYY-MM-DD'); } - + this.loading = true; getProductionList(this.queryParams).then(response => { this.prepareList = response.rows; @@ -243,7 +243,7 @@ export default { /** 导出按钮操作 */ handleExport() { - this.download('mes/prepare/export', { + this.download('mes/reportWork/productionExport', { ...this.queryParams }, `prepare_${new Date().getTime()}.xlsx`) }, diff --git a/src/views/plan/order/index.vue b/src/views/plan/order/index.vue index c9c8e9b8..4fd970d4 100644 --- a/src/views/plan/order/index.vue +++ b/src/views/plan/order/index.vue @@ -345,18 +345,12 @@ - - - - - - - - - - - + + @@ -378,6 +372,13 @@ + + + + + + @@ -411,12 +412,13 @@ row-key="workorderCode" style="width: 100%" max-height="240" + default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}" > - + @@ -548,7 +550,7 @@ export default { // 拆分表单参数 splitForm: { id: null, - prodLineCode: null, + prodLineCodeArray: [], splitNum: null, productDate: null, shiftId: null, @@ -557,7 +559,10 @@ export default { }, // 表单校验 rules: {}, - addrules: {} + addrules: {}, + /**********************************/ + eRouteProps: { multiple: true }, + eRouteOptions: [] } }, created() { @@ -576,7 +581,7 @@ export default { // 选择工艺 changeRoute(routeCode) { getProEquipment(routeCode).then(response => { - this.proline = response.data + this.eRouteOptions = response.data }) }, // 选择线体改变 @@ -877,9 +882,9 @@ export default { }) return } - if (this.splitForm.prodLineCode == null) { + if (this.splitForm.prodLineCodeArray.length ==0) { this.$message({ - message: '请选择线体!', + message: '请选择各流程节点的设备!', type: 'warning' }) return @@ -924,7 +929,7 @@ export default { //下面是请求处理 const data = { formFields: this.formFields, - prodLineCode: this.splitForm.prodLineCode, + prodLineCodeArray: this.splitForm.prodLineCodeArray, productDate: this.splitForm.productDate, shiftId: this.splitForm.shiftId, splitNum: this.splitForm.splitNum, @@ -946,7 +951,7 @@ export default { // 清除缓存 this.splitForm = { id: null, - prodLineCode: null, + prodLineCode: [], splitNum: null, productDate: null, shiftId: null, @@ -1076,7 +1081,7 @@ export default { resetBatch() { this.splitForm = { id: null, - prodLineCode: null, + prodLineCode: [], splitNum: null, productDate: null, shiftId: null, @@ -1146,6 +1151,7 @@ export default { if (row != null) { this.splitForm.parentOrder = row.orderCode } + getOrder(row.id).then(response => { this.splitForm = response.data this.splitOpen = true diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 741e5c7f..31b5a38d 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -170,7 +170,7 @@ - +