From 5fb50d500ffed68b35b5554e8f28d65fae6f16f7 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 8 Aug 2024 13:52:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A9=E4=BD=99=E6=9C=AA=E6=BB=A1=E7=AE=B1?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8F=90=E4=BA=A4+=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/fg/receiptByPlan.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index c1aa87eb..0df01fb5 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -333,6 +333,8 @@ import { nextTick } from 'vue'; pageNo: 1, pageSize: 100, } + + let isAllSubmit = Number(Number(this.dataContent.goodQty)+ Number(this.showList.length))==Number(this.dataContent.planQty) var planeInfo = await getPlanByNumber(queryParams); if (planeInfo.data && planeInfo.data.list.length > 0) { @@ -355,10 +357,15 @@ import { nextTick } from 'vue'; throw new Error("未查找到单据信息") } uni.hideLoading() - this.showList = []; - this.allList = []; - this.index = 1; - this.dataContent.handleQty = 0; + if(isAllSubmit){ + this.clearData() + }else{ + this.showList = []; + this.allList = []; + this.index = 1; + this.dataContent.handleQty = 0; + } + nextTick(()=>{ @@ -450,7 +457,9 @@ import { nextTick } from 'vue'; calcFgQty() { this.dataContent.handleQty = this.showList.length; // this.dataContent.handleQty = this.allList.length; - if (this.dataContent.handleQty == this.dataContent.packQty) { + // dataContent.noGoodQty 未完工 + + if (this.dataContent.handleQty == this.dataContent.packQty || (this.dataContent.noGoodQty