diff --git a/src/views/mes/production/index.vue b/src/views/mes/production/index.vue index cbfdd9e..3908c35 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 c9c8e9b..4fd970d 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 741e5c7..31b5a38 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -170,7 +170,7 @@ - +