From 5f2b880f748b1d17c309b45dcee68ab96339027e Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Fri, 25 Nov 2022 17:29:53 +0800 Subject: [PATCH] =?UTF-8?q?fqc=20=E6=89=93=E5=8D=B0=202022=E5=B9=B411?= =?UTF-8?q?=E6=9C=8825=E6=97=A5=20sxm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/calendar.vue | 19 +- .../schedule/order_schedule_expand.vue | 69 +-- .../modules/yieldReport/com_finish_roll.vue | 24 +- .../modules/yieldReport/com_merge_roll.vue | 70 ++- .../otherReport/change_finish_roll.vue | 506 ++++++++++-------- .../otherReport/change_packaging.vue | 147 ++--- .../otherReport/fqc_produce_report_normal.vue | 2 +- 7 files changed, 473 insertions(+), 364 deletions(-) diff --git a/src/views/modules/base/calendar.vue b/src/views/modules/base/calendar.vue index eda1720..d0b304b 100644 --- a/src/views/modules/base/calendar.vue +++ b/src/views/modules/base/calendar.vue @@ -1517,13 +1517,18 @@ export default { }, // 保存修改后的班次信息 updateWorkingCalendar() { - - this.workingCalendar.excepttime1 = this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime1 + ':00').format('H') - this.workingCalendar.excepttime2 = this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime2 + ':00').format('H') - this.workingCalendar.excepttime3 = this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime3 + ':00').format('H') - this.workingCalendar.excepttime4 = this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime4 + ':00').format('H') - this.workingCalendar.excepttime5 = this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime5 + ':00').format('H') - this.workingCalendar.excepttime6 = this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime6 + ':00').format('H') + this.workingCalendar.excepttime1 = parseInt(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime1 + ':00').format('H')) + + parseFloat(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime1 + ':00').format('mm'))/60 + this.workingCalendar.excepttime2 = parseInt(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime2 + ':00').format('H')) + + parseFloat(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime2 + ':00').format('mm'))/60 + this.workingCalendar.excepttime3 = parseInt(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime3 + ':00').format('H')) + + parseFloat(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime3 + ':00').format('mm'))/60 + this.workingCalendar.excepttime4 = parseInt(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime4 + ':00').format('H')) + + parseFloat(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime4 + ':00').format('mm'))/60 + this.workingCalendar.excepttime5 = parseInt(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime5 + ':00').format('H')) + + parseFloat(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime5 + ':00').format('mm'))/60 + this.workingCalendar.excepttime6 = parseInt(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime6 + ':00').format('H')) + + parseFloat(this.dayjs(this.workingCalendar.scheduledate + ' ' + this.workingCalendar.exceptexacttime6 + ':00').format('mm'))/60 updateWorkingCalendar(this.workingCalendar).then(({data}) => { if (data && data.code == 0) { this.$message.success(data.msg) diff --git a/src/views/modules/schedule/order_schedule_expand.vue b/src/views/modules/schedule/order_schedule_expand.vue index c79696e..d547a95 100644 --- a/src/views/modules/schedule/order_schedule_expand.vue +++ b/src/views/modules/schedule/order_schedule_expand.vue @@ -1313,44 +1313,49 @@ export default { batchScheduleOrderWithExpand(newItemList).then(({data}) => { if (data.code == 200) { this.$message.success(data.msg) + this.scheduleVisible = false + this.getShopOrderList() } else if (data.code == 201) { - this.$confirm(data.msg, '提示', { - confirmButtonText: this.labels.confirmLabel, - celButtonText: this.labels.cancelLabel, - type: 'warning' - }).then(() => { - for (let i = 0; i < this.dataListSelections.length; i++) { - let item = this.dataListSelections[i] - let newItem = { - checkFlag: false, - itemNo: item.itemNo, - orderNo: item.orderNo, - qtyToSchedule: item.scheduledQty, - resourceId: item.resourceId, - scheduleDate: this.scheduleDate, - scheduleTime: this.scheduleTime, - scheduledQty: item.qtyToSchedule, - site: item.site, - specifiedTime: this.specifiedTime, - username: this.$store.state.user.name, - workCenterNo: item.workCenterNo - } - newItemList.push(newItem) - } - batchScheduleOrderWithExpand(newItemList).then(({data}) => { - if (data.code == 200) { - this.$message.success(data.msg) - } else if (data.code == 500) { - this.$message.error(data.msg) - } - }) - }); - this.$message.warning(data.msg) + this.$message.warning(data.msg.substring(0,data.msg.indexOf(','))+"!") } else if (data.code == 500) { this.$message.error(data.msg) } }) }, + /** + * this.$confirm(data.msg, '提示', { + * confirmButtonText: this.labels.confirmLabel, + * celButtonText: this.labels.cancelLabel, + * type: 'warning' + * }).then(() => { + * newItemList = [] + * for (let i = 0; i < this.dataListSelections.length; i++) { + * let item = this.dataListSelections[i] + * let newItem = { + * checkFlag: false, + * itemNo: item.itemNo, + * orderNo: item.orderNo, + * qtyToSchedule: item.scheduledQty, + * resourceId: item.resourceId, + * scheduleDate: this.scheduleDate, + * scheduleTime: this.scheduleTime, + * scheduledQty: item.qtyToSchedule, + * site: item.site, + * specifiedTime: this.specifiedTime, + * username: this.$store.state.user.name, + * workCenterNo: item.workCenterNo + * } + * newItemList.push(newItem) + * } + * batchScheduleOrderWithExpand(newItemList).then(({data}) => { + * if (data.code == 200) { + * this.$message.success(data.msg) + * } else if (data.code == 500) { + * this.$message.error(data.msg) + * } + * }) + * }); + */ // scheduleBatchDialog scheduleBatchDialog() { if (this.dataListSelections.find(item => item.resourceId == '' || item.resourceId == null)) { diff --git a/src/views/modules/yieldReport/com_finish_roll.vue b/src/views/modules/yieldReport/com_finish_roll.vue index 4853ea5..29568e4 100644 --- a/src/views/modules/yieldReport/com_finish_roll.vue +++ b/src/views/modules/yieldReport/com_finish_roll.vue @@ -231,11 +231,15 @@ :visible.sync="showShiftFlag" @initScheduleShift = "initScheduleShift"> + + +