From affa692c0704aedd9a13b6f6bd039f786433f345 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Sun, 22 May 2022 16:18:38 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=88=86=E5=8D=B7=E7=B3=BB=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shopOrder/productionReport.js | 3 ++ ...rchProductionLineOutputReportInOrderNo.vue | 39 ++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) 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..25ff559 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; From 9d04e297aa13eca9d1f70c2b6b7ea6c79d2d6fcc Mon Sep 17 00:00:00 2001 From: ruanqi Date: Sun, 22 May 2022 16:19:21 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=88=86=E5=8D=B7=E7=B3=BB=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchProductionLineOutputReportInOrderNo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue b/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue index 25ff559..70e2d0d 100644 --- a/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue +++ b/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue @@ -172,7 +172,7 @@