Browse Source

打印

hella_online_20240829
zhang_li 3 months ago
parent
commit
c32137458e
  1. 11
      src/mycomponents/print/print.vue
  2. 9
      src/pages/package/job/overPackageJobDetail.vue
  3. 8
      src/pages/package/record/overPackageRecord.vue

11
src/mycomponents/print/print.vue

@ -104,11 +104,12 @@
}) })
await getPrintList().then(res=>{ await getPrintList().then(res=>{
this.printList =res.data this.printList =res.data
this.showPrintSelect =true
uni.hideLoading() uni.hideLoading()
}).catch(error=>{ }).catch(error=>{
uni.hideLoading()
this.showErrorMessage(error)
}) })
this.showPrintSelect =true
}, },
confirmSelectPrint(e){ confirmSelectPrint(e){
@ -125,11 +126,11 @@
await getPrintTemplateList().then(res=>{ await getPrintTemplateList().then(res=>{
this.templateList =res.data this.templateList =res.data
uni.hideLoading() uni.hideLoading()
this.showTemplateSelect =true
}).catch(error=>{ }).catch(error=>{
uni.hideLoading()
this.showErrorMessage(error)
}) })
this.showTemplateSelect =true
}, },
confirmSelectTemplate(e){ confirmSelectTemplate(e){
this.templateCode =e[0].value this.templateCode =e[0].value

9
src/pages/package/job/overPackageJobDetail.vue

@ -290,7 +290,14 @@
// }, // },
submit() { submit() {
if(!this.jobContent.printerUuid){
this.showErrorMessage("请选择打印机")
return;
}
if(!this.jobContent.modelCode){
this.showErrorMessage("请选择打印模板")
return;
}
// //
var itemCodes = [] var itemCodes = []
let locationCode = this.detailSource[0].toLocationCode let locationCode = this.detailSource[0].toLocationCode

8
src/pages/package/record/overPackageRecord.vue

@ -359,6 +359,14 @@
} }
}, },
commit() { commit() {
if(!this.dataContent.printerUuid){
this.showErrorMessage("请选择打印机")
return;
}
if(!this.dataContent.modelCode){
this.showErrorMessage("请选择打印模板")
return;
}
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
if (!this.toPackUnit || this.toPackUnit == "包装规格") { if (!this.toPackUnit || this.toPackUnit == "包装规格") {
this.showErrorMessage("请选择目标包装规格") this.showErrorMessage("请选择目标包装规格")

Loading…
Cancel
Save