From 7ec3a7d70c4cd64cb41c1c46bb4bba1de825d473 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Mon, 29 May 2023 14:26:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E5=88=A0=E9=99=A4=E5=81=9A?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/inout/InvoiceRegistration.vue | 3 + src/views/inout/IoAuditedOrder.vue | 83 ++++++++++--------- src/views/inout/IoCheckAuditOrder.vue | 32 ++++--- src/views/inout/IoCheckErrorOrder.vue | 3 + src/views/inout/IoCheckSuccessOrder.vue | 34 ++++---- src/views/inout/IoCreateBusOrder.vue | 5 +- src/views/inout/IoCreateErrorOrder.vue | 7 +- src/views/inout/IoCreateOrder.vue | 3 + src/views/inout/IoCreateScanOrder.vue | 5 +- src/views/inout/IoDealOrder.vue | 7 +- src/views/inout/IoWaitAllocateOrder.vue | 3 + .../inventory/trace/invUdiTraceOrder.vue | 33 +------- 13 files changed, 117 insertions(+), 103 deletions(-) diff --git a/.env.development b/.env.development index e15349a3..eed92e7d 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统 ENV = 'development' # 开发环境 -VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:5004/UDI_WMS_MC/' +VUE_APP_BASE_API = 'http://127.0.0.1:9991' VUE_APP_SYNC_API ="http://127.0.0.1:10001" diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue index 203a0967..67d828e5 100644 --- a/src/views/inout/InvoiceRegistration.vue +++ b/src/views/inout/InvoiceRegistration.vue @@ -928,6 +928,9 @@ export default { } else if (response.code == 520) { this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.getList(); + }else { + this.$message.error(response.message); + this.getList(); } }) diff --git a/src/views/inout/IoAuditedOrder.vue b/src/views/inout/IoAuditedOrder.vue index bfbf0c6a..ca8330b2 100644 --- a/src/views/inout/IoAuditedOrder.vue +++ b/src/views/inout/IoAuditedOrder.vue @@ -156,13 +156,14 @@ >打印 - - - - - - - + + + + + + + + - + - { + console.log(this.certFileUrl + "========"); + this.imgList = []; + previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => { if (response.code === 20000) { - this.imgList=response.data; + this.imgList = response.data; } console.log(this.imgList) this.imgViewerVisible = true; }); - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'hidden'; document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, - showImgViewerCold(row){ + showImgViewerCold(row) { this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; - console.log(this.certFileUrl+"========"); - this.imgListCold=[]; - previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => { + console.log(this.certFileUrl + "========"); + this.imgListCold = []; + previewImage({imageUrl: row.coldFilePath, certFileUrl: this.certFileUrl}).then(response => { if (response.code === 20000) { - this.imgListCold=response.data; + this.imgListCold = response.data; } console.log(this.imgListCold) this.imgViewerVisibleCold = true; }); - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'hidden'; document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, - closeImgViewer(){ + closeImgViewer() { this.imgViewerVisible = false; - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'auto'; document.removeEventListener("touchmove", m, true); }, - closeImgViewerCold(){ + closeImgViewerCold() { this.imgViewerVisibleCold = false; - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'auto'; document.removeEventListener("touchmove", m, true); }, - upload(row){ + upload(row) { this.currentManufacturer = row; this.Upinvoice = true; }, - freshen(){ + freshen() { this.Upinvoice = false; this.getOrderDetails(); }, - closeCheckDialog(){ + closeCheckDialog() { this.Upinvoice = false; this.getOrderDetails(); }, @@ -957,7 +964,7 @@ export default { binaryData.push(response); //获取blob链接。 let url = window.URL.createObjectURL( - new Blob(binaryData, {type: "application/pdf"}) + new Blob(binaryData, {type: "application/pdf"}) ); this.loading = false; window.open(url);//打开新标签页,预览pdf。 diff --git a/src/views/inout/IoCheckAuditOrder.vue b/src/views/inout/IoCheckAuditOrder.vue index 95f251e7..dc79d2bd 100644 --- a/src/views/inout/IoCheckAuditOrder.vue +++ b/src/views/inout/IoCheckAuditOrder.vue @@ -150,6 +150,8 @@ + + - + { + console.log(this.certFileUrl + "========"); + this.imgListCold = []; + previewImage({imageUrl: row.coldFilePath, certFileUrl: this.certFileUrl}).then(response => { if (response.code === 20000) { - this.imgListCold=response.data; + this.imgListCold = response.data; } console.log(this.imgListCold) this.imgViewerVisibleCold = true; }); - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'hidden'; document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, @@ -776,9 +781,11 @@ export default { document.removeEventListener("touchmove", m, true); }, - closeImgViewerCold(){ + closeImgViewerCold() { this.imgViewerVisibleCold = false; - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'auto'; document.removeEventListener("touchmove", m, true); }, @@ -954,6 +961,9 @@ export default { } else if (response.code == 520) { this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.getList(); + } else { + this.$message.error(response.message); + this.getList(); } }) diff --git a/src/views/inout/IoCheckErrorOrder.vue b/src/views/inout/IoCheckErrorOrder.vue index 23c4a795..4fb5d06c 100644 --- a/src/views/inout/IoCheckErrorOrder.vue +++ b/src/views/inout/IoCheckErrorOrder.vue @@ -732,6 +732,9 @@ export default { } else if (response.code == 520) { this.$message.error("新增扫码单据列表已不存在该扫码单据!"); this.getList(); + }else { + this.$message.error(response.message); + this.getList(); } }) diff --git a/src/views/inout/IoCheckSuccessOrder.vue b/src/views/inout/IoCheckSuccessOrder.vue index 58b499d3..ad4ded14 100644 --- a/src/views/inout/IoCheckSuccessOrder.vue +++ b/src/views/inout/IoCheckSuccessOrder.vue @@ -266,7 +266,6 @@ -