diff --git a/src/api/shopOrder/productionReport.js b/src/api/shopOrder/productionReport.js index c5fb4cf..d18f0a0 100644 --- a/src/api/shopOrder/productionReport.js +++ b/src/api/shopOrder/productionReport.js @@ -26,3 +26,6 @@ export const searchCQCInspectionRecord = data => createAPI(`/productionReport/se // 查询-产线产量报告(分订单) 订单数据 export const searchReportInOrderNo = data => createAPI(`/productionReport/searchReportInOrderNoData`,'post',data) + +// 取消报工 +export const cancelReport = data => createAPI(`/productionReport/cancelReport`,'post',data) diff --git a/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue b/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue index a517160..70e2d0d 100644 --- a/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue +++ b/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue @@ -169,6 +169,15 @@ border v-loading="dataListLoading" style="width: 100%;"> + + + { + cancelReport(data).then(({data}) => { + if (data && data.code == 200) { + searchReportInOrderNo(this.searchData).then(({data}) => { + this.dataList3=data.rows; + }) + this.$message.success( '操作成功') + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, tableHanddle(row){ console.log(row); this.modelData=row; diff --git a/src/views/modules/yieldReport/com_finish_part_roll.vue b/src/views/modules/yieldReport/com_finish_part_roll.vue index bb1e298..d4eff43 100644 --- a/src/views/modules/yieldReport/com_finish_part_roll.vue +++ b/src/views/modules/yieldReport/com_finish_part_roll.vue @@ -42,8 +42,10 @@ v-model="pageData.reportedFlag">是否报告产量 - + @@ -255,6 +257,7 @@ export default { titleCon: '产量报告', showExceptionFlag: false, showShiftFlag: false, + preItemNo: 0, sfdcTimeList: [], scheduleData: { site: this.$store.state.user.site, @@ -516,6 +519,8 @@ export default { this.pageData.orderNo = scheduleData.orderNo; this.pageData.itemNo = scheduleData.itemNo; this.pageData.seqNo = scheduleData.seqNo; + //设置首道工序 + this.preItemNo = scheduleData.preItemNo //特殊处理 判断是否是空的卷号 if(null == scheduleData.rollNo || scheduleData.rollNo == ''){ @@ -639,8 +644,8 @@ export default { }); //6.刷新当前卷的报工数据 await getSfdcReportedData(this.scheduleData).then(({data}) => { - this.pageData.sfdcApprovedQty = this.pageData.approvedQty - data.row.approveQty; - this.pageData.sfdcDefectedQty = this.pageData.defectedQty - data.row.defectQty; + this.pageData.sfdcApprovedQty = this.pageData.approvedQty - 0; + this.pageData.sfdcDefectedQty = this.pageData.defectedQty - 0; this.pageData.sfdcReportedQty = this.pageData.sfdcApprovedQty + this.pageData.sfdcDefectedQty; }); //刷新当前卷的时间数据 @@ -715,8 +720,8 @@ export default { //刷新当前卷的报工数据 refreshSfdcData(){ getSfdcReportedData(this.scheduleData).then(({data}) => { - this.pageData.sfdcApprovedQty = this.pageData.approvedQty - data.row.approveQty; - this.pageData.sfdcDefectedQty = this.pageData.defectedQty - data.row.defectQty; + this.pageData.sfdcApprovedQty = this.pageData.approvedQty - 0; + this.pageData.sfdcDefectedQty = this.pageData.defectedQty - 0; this.pageData.sfdcReportedQty = this.pageData.sfdcApprovedQty + this.pageData.sfdcDefectedQty; }); }, diff --git a/src/views/modules/yieldReport/com_split_order_report.vue b/src/views/modules/yieldReport/com_split_order_report.vue index fe7d9c8..e48e0d7 100644 --- a/src/views/modules/yieldReport/com_split_order_report.vue +++ b/src/views/modules/yieldReport/com_split_order_report.vue @@ -3470,8 +3470,8 @@ export default { /*提醒是否删除的提示*/ warnDeleteSfdcRollsConfirm(sfdcRollRow) { //等待开发 - this.$message.error('待开发!') - return false; + //this.$message.error('待开发!') + //return false; this.$confirm('确实要删除该卷吗?', '提示', { confirmButtonText: '确认', celButtonText: '取消',