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 213b3f31..ca8330b2 100644 --- a/src/views/inout/IoAuditedOrder.vue +++ b/src/views/inout/IoAuditedOrder.vue @@ -156,13 +156,14 @@ >打印 - - - - - - - + + + + + + + + 预览 + >编辑 @@ -400,7 +400,8 @@ - + - { + 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(); }, @@ -958,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 @@ -