diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 80572ae8..577823ae 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -405,6 +405,8 @@ const getH5BatchPrintingLable = (number)=> { uni.navigateTo({ url: `/pages/pointProductReceipt/webview?url=${webUrl}&webData=${JSON.stringify(webData)}` }); + }).catch(error => { + showErrorMessage(error) }) } const print = (pointData)=> { @@ -420,6 +422,10 @@ const print = (pointData)=> { pointData.forEach(item=>{ packingNumber.push(item.packageCode) }) + if(packingNumber.length==0){ + showErrorMessage('包装号不能为空!') + return + } getBalanceToPackage({ packingNumber: packingNumber.join(',') }).then(res => {