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"> + + +