From cfbf91c07f83c8241c7be65313bd838a7291de72 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Fri, 30 Aug 2024 21:30:49 +0800 Subject: [PATCH] =?UTF-8?q?8/30=20=E6=A0=B9=E6=8D=AE=E8=BF=BD=E6=BA=AF?= =?UTF-8?q?=E7=A0=81=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/collect/IoDestroy.js | 8 +++ src/views/collect/IoSplitFifoCodePanel.vue | 9 +++ src/views/collect/destroyOutDialog.vue | 77 ++++++++++++++++++---- 3 files changed, 80 insertions(+), 14 deletions(-) diff --git a/src/api/collect/IoDestroy.js b/src/api/collect/IoDestroy.js index 050f2d57..716603a8 100644 --- a/src/api/collect/IoDestroy.js +++ b/src/api/collect/IoDestroy.js @@ -33,3 +33,11 @@ export function destroyOut(query) { data: query }); } + +export function destroyOutByCode(query) { + return axios({ + url: "/udiwms/collect/fifo/desOrder/destroyOutByCode", + method: "post", + data: query + }); +} diff --git a/src/views/collect/IoSplitFifoCodePanel.vue b/src/views/collect/IoSplitFifoCodePanel.vue index 86c17fe1..e4ba9955 100644 --- a/src/views/collect/IoSplitFifoCodePanel.vue +++ b/src/views/collect/IoSplitFifoCodePanel.vue @@ -455,6 +455,7 @@ > @@ -540,6 +541,7 @@ export default { addInvRemindSetDialogVisible: false, destroyOutDialogVisible: false, prescribeData: {}, + destroyType: 1,//1 产品损耗 2.根据code损耗 } }, @@ -686,11 +688,18 @@ export default { //损耗出库 destroyOut(_this,row){ _this.prescribeData = row + _this.destroyType = 1 _this.destroyOutDialogVisible = true; }, closeDialog(){ this.destroyOutDialogVisible = false this.getList() + this.detailClick(this,this.prescribeData) + }, + destroyOutByCode(_this,row){ + _this.prescribeData = row + _this.destroyType = 2 + _this.destroyOutDialogVisible = true; } }, diff --git a/src/views/collect/destroyOutDialog.vue b/src/views/collect/destroyOutDialog.vue index b0da5b31..0fc73d57 100644 --- a/src/views/collect/destroyOutDialog.vue +++ b/src/views/collect/destroyOutDialog.vue @@ -9,16 +9,22 @@ - {{ prescribeData.cpmctymc }} + + {{prescribeData.code}} + + {{ prescribeData.cpmctymc }} {{ prescribeData.nameCode }} {{ prescribeData.ggxh }} {{ prescribeData.batchNo }} {{ prescribeData.measname }} - {{ prescribeData.reCount }} + + {{prescribeData.reCount}} + + {{ produceDate }} {{ expireDate }} {{ prescribeData.manufactory }} - {{ prescribeData.supName }} + {{ prescribeData.ybbm }} @@ -52,7 +58,7 @@