diff --git a/src/views/inout/IoCheckErrorOrder.vue b/src/views/inout/IoCheckErrorOrder.vue index 6484f0d..0107cc7 100644 --- a/src/views/inout/IoCheckErrorOrder.vue +++ b/src/views/inout/IoCheckErrorOrder.vue @@ -197,6 +197,11 @@ row-key="id" > + + { }); - this.getBusType(); + this.getBusType(); }, getSubInvList() { let query = { diff --git a/src/views/inout/IoDealOrder.vue b/src/views/inout/IoDealOrder.vue index e3a29d3..22df931 100644 --- a/src/views/inout/IoDealOrder.vue +++ b/src/views/inout/IoDealOrder.vue @@ -110,7 +110,7 @@ + :sort-orders="['ascending', 'descending']"> {{ scope.row.createTime }} @@ -235,6 +235,11 @@ row-key="id" > + - + @@ -137,7 +137,7 @@ border @current-change="handleSelectionChange" :default-sort="defaultSort" - @sort-change="handleSortChange" > + @sort-change="handleSortChange"> @@ -145,7 +145,7 @@ + :sort-orders="['ascending', 'descending']"> @@ -153,7 +153,7 @@ + :sort-orders="['ascending', 'descending']"> @@ -286,6 +286,11 @@ row-key="id" > + - {{ scope.row.checkFileName }} + {{ scope.row.checkFileName }} @@ -376,7 +381,8 @@ - + { + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -831,21 +836,21 @@ export default { document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, - showImgViewerCold(row){ + showImgViewerCold(row) { this.certFileUrl = this.BASE_URL + - "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; + "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath; this.imgList = []; this.imgList.push(this.certFileUrl) let index = row.coldFilePath.lastIndexOf('.'); - if(index===-1){ + if (index === -1) { this.$message.error("文件名异常!") return false } - if(row.coldFilePath.substr(index+1)==='pdf'){ + if (row.coldFilePath.substr(index + 1) === 'pdf') { let pdf = "application/pdf" let binaryData = []; - previewFile(this.certFileUrl).then(res=>{ + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -869,16 +874,20 @@ export default { 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); }, @@ -990,7 +999,7 @@ export default { }, handleSelectionChange(val) { - this.currentRow.billNo=val.billNo; + this.currentRow.billNo = val.billNo; this.getOrderDetails(); }, // 获取单据 业务详情、扫码详情、扫码明细 @@ -1027,7 +1036,6 @@ export default { }, - //获取订单列表 getList() { this.loading = true; diff --git a/src/views/inout/IoDeliverySearchOrder.vue b/src/views/inout/IoDeliverySearchOrder.vue index a7fbf59..c3798f6 100644 --- a/src/views/inout/IoDeliverySearchOrder.vue +++ b/src/views/inout/IoDeliverySearchOrder.vue @@ -154,7 +154,7 @@ border @current-change="handleSelectionChange" :default-sort="defaultSort" - @sort-change="handleSortChange" > + @sort-change="handleSortChange"> @@ -295,6 +295,11 @@ row-key="id" > + - + { + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -861,24 +865,24 @@ export default { }, - showImgViewerCold(row){ - if(row.coldFilePath.substr(-1) == ','){ - row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1); + showImgViewerCold(row) { + if (row.coldFilePath.substr(-1) == ',') { + row.coldFilePath = row.coldFilePath.slice(0, row.coldFilePath.length - 1); } this.certFileUrl = this.BASE_URL + - "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; + "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath; this.imgList = []; this.imgList.push(this.certFileUrl) let index = row.coldFilePath.lastIndexOf('.'); - if(index===-1){ + if (index === -1) { this.$message.error("文件名异常!") return false } - if(row.coldFilePath.substr(index+1)==='pdf'){ + if (row.coldFilePath.substr(index + 1) === 'pdf') { let pdf = "application/pdf" let binaryData = []; - previewFile(this.certFileUrl).then(res=>{ + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -902,38 +906,41 @@ export default { 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(); }, - hideSearch() { this.showSearch = !this.showSearch; }, diff --git a/src/views/inout/IoSupAduitOrder.vue b/src/views/inout/IoSupAduitOrder.vue index dc57cdf..0bc9f1c 100644 --- a/src/views/inout/IoSupAduitOrder.vue +++ b/src/views/inout/IoSupAduitOrder.vue @@ -174,7 +174,7 @@ > - + 单据 {{ currentRow.billNo }}-单据详情 @@ -204,10 +204,20 @@ - + + - + { + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -681,23 +692,23 @@ export default { }, showImgViewerCold(row) { - if(row.coldFilePath.substr(-1) == ','){ - row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1); + if (row.coldFilePath.substr(-1) == ',') { + row.coldFilePath = row.coldFilePath.slice(0, row.coldFilePath.length - 1); } this.certFileUrl = this.BASE_URL + - "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; + "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath; this.imgList = []; this.imgList.push(this.certFileUrl) let index = row.coldFilePath.lastIndexOf('.'); - if(index===-1){ + if (index === -1) { this.$message.error("文件名异常!") return false } - if(row.coldFilePath.substr(index+1)==='pdf'){ + if (row.coldFilePath.substr(index + 1) === 'pdf') { let pdf = "application/pdf" let binaryData = []; - previewFile(this.certFileUrl).then(res=>{ + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -721,32 +732,35 @@ export default { 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; }, - closeCheckDialog(){ + closeCheckDialog() { this.Upinvoice = false; this.getOrderDetails(); }, handleSelectionChange(val) { - this.currentRow.billNo=val.billNo; + this.currentRow.billNo = val.billNo; this.getOrderDetails(); }, // 获取单据 业务详情、扫码详情、扫码明细 @@ -976,7 +990,7 @@ export default { this.loading = false; }); }, - freshen(){ + freshen() { this.Upinvoice = false; this.getOrderDetails(); }, diff --git a/src/views/inout/IoSupSearchOrder.vue b/src/views/inout/IoSupSearchOrder.vue index e3079ac..da336df 100644 --- a/src/views/inout/IoSupSearchOrder.vue +++ b/src/views/inout/IoSupSearchOrder.vue @@ -131,7 +131,7 @@ border @current-change="handleSelectionChange" :default-sort="defaultSort" - @sort-change="handleSortChange" > + @sort-change="handleSortChange"> @@ -141,7 +141,7 @@ + :sort-orders="['ascending', 'descending']"> @@ -258,6 +258,11 @@ row-key="id" > + { + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); @@ -737,23 +742,23 @@ export default { showImgViewerCold(row) { - if(row.coldFilePath.substr(-1) == ','){ - row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1); + if (row.coldFilePath.substr(-1) == ',') { + row.coldFilePath = row.coldFilePath.slice(0, row.coldFilePath.length - 1); } this.certFileUrl = this.BASE_URL + - "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; + "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath; this.imgList = []; this.imgList.push(this.certFileUrl) let index = row.coldFilePath.lastIndexOf('.'); - if(index===-1){ + if (index === -1) { this.$message.error("文件名异常!") return false } - if(row.coldFilePath.substr(index+1)==='pdf'){ + if (row.coldFilePath.substr(index + 1) === 'pdf') { let pdf = "application/pdf" let binaryData = []; - previewFile(this.certFileUrl).then(res=>{ + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL);