diff --git a/src/mycomponents/print/print.vue b/src/mycomponents/print/print.vue index 0e7b326c..32c42f3c 100644 --- a/src/mycomponents/print/print.vue +++ b/src/mycomponents/print/print.vue @@ -104,11 +104,12 @@ }) await getPrintList().then(res=>{ this.printList =res.data + this.showPrintSelect =true uni.hideLoading() }).catch(error=>{ - + uni.hideLoading() + this.showErrorMessage(error) }) - this.showPrintSelect =true }, confirmSelectPrint(e){ @@ -125,11 +126,11 @@ await getPrintTemplateList().then(res=>{ this.templateList =res.data uni.hideLoading() - + this.showTemplateSelect =true }).catch(error=>{ - + uni.hideLoading() + this.showErrorMessage(error) }) - this.showTemplateSelect =true }, confirmSelectTemplate(e){ this.templateCode =e[0].value diff --git a/src/pages/package/job/overPackageJobDetail.vue b/src/pages/package/job/overPackageJobDetail.vue index 36a9e041..eb4bb261 100644 --- a/src/pages/package/job/overPackageJobDetail.vue +++ b/src/pages/package/job/overPackageJobDetail.vue @@ -290,7 +290,14 @@ // }, submit() { - + if(!this.jobContent.printerUuid){ + this.showErrorMessage("请选择打印机") + return; + } + if(!this.jobContent.modelCode){ + this.showErrorMessage("请选择打印模板") + return; + } //目前任务只到一个库位 var itemCodes = [] let locationCode = this.detailSource[0].toLocationCode diff --git a/src/pages/package/record/overPackageRecord.vue b/src/pages/package/record/overPackageRecord.vue index 7286440b..21dd76bb 100644 --- a/src/pages/package/record/overPackageRecord.vue +++ b/src/pages/package/record/overPackageRecord.vue @@ -359,6 +359,14 @@ } }, 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.toPackUnit || this.toPackUnit == "包装规格") { this.showErrorMessage("请选择目标包装规格") diff --git a/src/pages/productReceipt/job/ccProductReceiptDetail.vue b/src/pages/productReceipt/job/ccProductReceiptDetail.vue index 9975a8d2..b3c5e3e6 100644 --- a/src/pages/productReceipt/job/ccProductReceiptDetail.vue +++ b/src/pages/productReceipt/job/ccProductReceiptDetail.vue @@ -15,7 +15,7 @@ 生产线 - + {{jobContent.subList[0].productionLineCode}}