From e0b42908d5a676b56aa90f986fbd01965444c150 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 6 Aug 2024 10:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/fg/receiptByPlan.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index fff28f5b..abb35529 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -469,6 +469,8 @@ uni.navigateTo({ url: `/pages/pointProductReceipt/webview?url=${webUrl}&webData=${JSON.stringify(webData)}` }); + }).catch(error => { + _this.showErrorMessage(error) }) }, print(pointData){ @@ -486,6 +488,10 @@ pointData.forEach(item=>{ packingNumber.push(item.packageCode) }) + if(packingNumber.length==0){ + _this.showErrorMessage('包装号不能为空!') + return + } getBalanceToPackage({ packingNumber: packingNumber.join(',') }).then(res => {