From 5a7cc4fe4dee965df9af64f9960965f24d3b389f Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 18 Sep 2024 15:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=AE=8C=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/fg/receiptByPlan.vue | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 9c778687..997ed820 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -302,6 +302,20 @@ } else { throw new Error("提交失败") } + + //创建上架申请 + if(this.dataContent.putAwayRequestSwitch){ + if(list.length>0&&list[0].requestNumber){ + createPutawayRequestByPlan(list[0].requestNumber) + } + } + + //创建检验申请 + if(this.dataContent.putAwayInspectSwitch){ + if(list.length>0&&list[0].requestNumber){ + createInspectRequestByPlan(list[0].requestNumber) + } + } var queryParams = { filters: [{ @@ -333,9 +347,7 @@ this.index = 1 } } - // else { - // throw new Error("未查找到单据信息") - // } + uni.hideLoading() if (isAllSubmit) { this.clearData() @@ -352,20 +364,6 @@ nextTick(() => { this.showCommitSuccessMessage(hintMsg, list) }) - - //创建上架申请 - if(this.dataContent.putAwayRequestSwitch){ - if(list.length>0&&list[0].requestNumber){ - createPutawayRequestByPlan(list[0].requestNumber) - } - } - - //创建检验申请 - if(this.dataContent.putAwayInspectSwitch){ - if(list.length>0&&list[0].requestNumber){ - createInspectRequestByPlan(list[0].requestNumber) - } - } } catch (error) { uni.hideLoading()