From 30557649adb019711beeae598c3f01e124ddde43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B3=BD=E8=85=BE?= <1178634255@qq.com> Date: Tue, 15 Aug 2023 15:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E5=8D=95=E6=8D=AE=E7=99=BB=E8=AE=B0?= =?UTF-8?q?=E5=92=8C=E6=8C=89=E5=8F=91=E7=A5=A8=E7=99=BB=E8=AE=B0=E7=9A=84?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E6=8F=90=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=EF=BC=8C=E4=B8=8A=E4=BC=A0doc=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E6=B3=95=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/InvoiceRegCkeck.vue | 13 +++++++++++++ src/views/remind/supCertRemindMsg.vue | 22 ++++++++++------------ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/views/inout/InvoiceRegCkeck.vue b/src/views/inout/InvoiceRegCkeck.vue index 642222f..21b6ee2 100644 --- a/src/views/inout/InvoiceRegCkeck.vue +++ b/src/views/inout/InvoiceRegCkeck.vue @@ -680,12 +680,25 @@ export default { this.$message.error('文件名异常!') return false } + if (this.inputQuery.licenseUrl.substr(index + 1) === 'doc') { + let doc = 'application/msword'; + let binaryData = []; + previewFile(this.certFileUrl).then(res => { + binaryData.push(res); + let URL = window.URL.createObjectURL(new Blob(binaryData, {type: doc})); + console.log(URL); + window.open(URL); + }); + return false; + } + if (this.inputQuery.licenseUrl.substr(index + 1) === 'pdf') { let pdf = 'application/pdf' let binaryData = [] previewFile(this.certFileUrl).then(res => { binaryData.push(res) let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})) + console.log(URL) window.open(URL) }) // window.open(this.imgList[0]) diff --git a/src/views/remind/supCertRemindMsg.vue b/src/views/remind/supCertRemindMsg.vue index e2d0d60..a5b52cd 100644 --- a/src/views/remind/supCertRemindMsg.vue +++ b/src/views/remind/supCertRemindMsg.vue @@ -125,7 +125,8 @@ :limit.sync="filterQuery.limit" @pagination="getList" /> - + + @@ -207,7 +208,7 @@ - + @@ -226,7 +227,7 @@ export default { type: 1, page: 1, limit: 20, - certName:null + certName:null, }, list: [], total: 0, @@ -281,6 +282,7 @@ export default { }, search() { this.filterQuery.page = 1; + this.filterQuery.limit = 20; this.getList(); }, getList() { @@ -288,13 +290,8 @@ export default { getSupCertRemindMsgList(this.filterQuery) .then((response) => { this.loading = false; - if (response.code === 20000) { - this.list = response.data.list || []; - this.total = response.data.total || 0; - } else { - this.list = []; - this.total = 0; - } + this.list = response.data.list || []; + this.total = response.data.total || 0; }) .catch(() => { this.loading = false; @@ -351,11 +348,12 @@ export default { } }, created() { - // 加载表格数据 - this.getList(); + if(this.$store.getters.customerId == 110){ this.ckeck=true; } + // 加载表格数据 + this.getList(); }, };