Browse Source

容错 2024/8/6

hella_vue3
王志国 1 month ago
parent
commit
64b42e0e71
  1. 6
      src/pages/fg/receiptByPlan.vue

6
src/pages/fg/receiptByPlan.vue

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

Loading…
Cancel
Save