From 7fa80e23590c6e07766ab835cab81bc49d344e96 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Mon, 31 Oct 2022 18:16:38 +0800 Subject: [PATCH] 1 --- src/api/production/schedule.js | 2 + src/views/modules/schedule/cancelSfdc.vue | 405 ++++++++++++++++++ src/views/modules/schedule/schedule.vue | 41 +- .../schedule/searchSOScheduleRouting.vue | 51 --- 4 files changed, 431 insertions(+), 68 deletions(-) create mode 100644 src/views/modules/schedule/cancelSfdc.vue diff --git a/src/api/production/schedule.js b/src/api/production/schedule.js index 0a94238..3be714c 100644 --- a/src/api/production/schedule.js +++ b/src/api/production/schedule.js @@ -16,3 +16,5 @@ export const openSchedule = data => createAPI(`/schedule/openSchedule`,'post',da export const cancelSchedule = data => createAPI(`/schedule/cancelSchedule`,'post',data) export const circulationSchedule = data => createAPI(`/schedule/circulationSchedule`,'post',data) +export const getSfdcList = data => createAPI(`/schedule/getSfdcList`,'post',data) +export const cancelSfdc = data => createAPI(`/schedule/cancelSfdc`,'post',data) diff --git a/src/views/modules/schedule/cancelSfdc.vue b/src/views/modules/schedule/cancelSfdc.vue new file mode 100644 index 0000000..d4d0fe3 --- /dev/null +++ b/src/views/modules/schedule/cancelSfdc.vue @@ -0,0 +1,405 @@ + + + + + diff --git a/src/views/modules/schedule/schedule.vue b/src/views/modules/schedule/schedule.vue index e82f2b7..1203ab1 100644 --- a/src/views/modules/schedule/schedule.vue +++ b/src/views/modules/schedule/schedule.vue @@ -47,6 +47,23 @@ placeholder="选择日期"> + + + {{'导出'}} + + @@ -70,24 +87,12 @@ + + + - 查询 - - {{'导出'}} - - 批量派工 + 查询 + 批量派工 @@ -544,6 +549,7 @@ site: this.$store.state.user.site, planStatus: 'ROUND(so.LotSize,3) >ROUND(ISNULL(SL.QtyScheduled,0),3)', itemNo:'', + workCenterNo:'', }, schedulingModalData: { orderNo: '', @@ -821,6 +827,7 @@ sumQty: this.schedulingModalData.sumQty, scheduleDetail:this.schedulingModalTableData, efficiency:this.schedulingModalData.efficiency, + operationDesc:this.schedulingModalData.operationDesc, } scheduleForShopOrder(indata).then(({data}) => { if (data && data.code === 0) { diff --git a/src/views/modules/schedule/searchSOScheduleRouting.vue b/src/views/modules/schedule/searchSOScheduleRouting.vue index 168fd33..9b7bfa4 100644 --- a/src/views/modules/schedule/searchSOScheduleRouting.vue +++ b/src/views/modules/schedule/searchSOScheduleRouting.vue @@ -230,41 +230,7 @@ }, data () { return { - setUp: { - reviewFlag: false, - saveButton: false, - readonlyFlag: false, - disabled: false - }, - saveHeaderData: { - site: '', - seqNo: '', - itemNo: '', - partNo: '', - partDescription: '', - operationDesc: '', - workCenterNo: '', - workCenterDesc: '', - operatorId: '', - operatorName: '', - planStartTime: '', - planFinishTime: '', - qtyReported: 0, - qtyApprove: 0, - qtyRework: 0, - operatorId2: '', - operatorIdName2: '', - scrapReason: '', - preparationTime: 0, - manufacturingTime: 0, - cleaningTime: 0, - shutdownReason: '', - remark: '', - userId:'', - }, - sopFlag:false, site: this.$store.state.user.site, - operatorType: 0, // 导出 start exportData: [], exportDataStandard: { @@ -291,7 +257,6 @@ // 导出 end height: 200, tableData: [], - date1: '', searchData: { orderNo: '', sWorkCenterNo: '', @@ -305,27 +270,11 @@ sShiftNo:'', closedFlag:'N', }, - photoUrl:'', - sopData:{ - site:'', - partNo:'', - }, - partDescription:'', - fileTitle:'', - fileName:'', - num:1, - currentData:'', - photoDatas:[], - uploadImg:[], - showviewer: false, - url: '', - height2:600, } }, mounted () { this.$nextTick(() => { this.height = window.innerHeight - 210 - this.height2 = window.innerHeight -100 }) }, methods: {