From dbb9c9c3fd64aa7b7d083ab6f1c48c86922caad7 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Tue, 2 Nov 2021 11:40:28 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=20=E7=A5=A8=E6=8D=AE=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/development_address_config.js | 10 +- public/production_address_config.js | 8 +- src/views/mailManagement/BillMail.vue | 16 +- src/views/mailManagement/PrintPage.vue | 200 +++++++++++++++++++++++++ 4 files changed, 230 insertions(+), 4 deletions(-) create mode 100644 src/views/mailManagement/PrintPage.vue diff --git a/public/development_address_config.js b/public/development_address_config.js index 7ab924c..f427f6d 100644 --- a/public/development_address_config.js +++ b/public/development_address_config.js @@ -13,8 +13,14 @@ window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas"; window._CONFIG["onlinePreviewDomainURL"] = "http://localhost:8012/onlinePreview"; // 会议管理报名二维码地址 -window._CONFIG['singUpQRCodeURL'] = 'http://localhost:3000/signupentrance' +window._CONFIG["singUpQRCodeURL"] = "http://localhost:3000/signupentrance" // 签到二维码url -window._CONFIG['signInUrl'] = '/meeting/payMeetingSituation/getSignInPage' +window._CONFIG["signInUrl"] = "/meeting/payMeetingSituation/getSignInPage" +// 票据打印--寄件人单位名称 +window._CONFIG["sendCompanyName"] = "中汽标准所" +// 票据打印--寄件人地址 +window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号" +// 票据打印--寄件人邮编 +window._CONFIG["sendPostCode"] = "300000" \ No newline at end of file diff --git a/public/production_address_config.js b/public/production_address_config.js index 8749c66..51d82ef 100644 --- a/public/production_address_config.js +++ b/public/production_address_config.js @@ -12,5 +12,11 @@ window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas"; window._CONFIG["onlinePreviewDomainURL"] = "http://10.10.10.46:8012/onlinePreview"; // 会议管理报名二维码地址 -window._CONFIG['singUpQRCodeURL'] = 'http://10.10.10.46:8055/signupentrance' +window._CONFIG["singUpQRCodeURL"] = "http://10.10.10.46:8055/signupentrance" +// 票据打印--寄件人单位名称 +window._CONFIG["sendCompanyName"] = "中汽标准所" +// 票据打印--寄件人地址 +window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号" +// 票据打印--寄件人邮编 +window._CONFIG["sendPostCode"] = "300000" \ No newline at end of file diff --git a/src/views/mailManagement/BillMail.vue b/src/views/mailManagement/BillMail.vue index 3e73e51..60c7ba3 100644 --- a/src/views/mailManagement/BillMail.vue +++ b/src/views/mailManagement/BillMail.vue @@ -87,7 +87,7 @@ - 打印 + 打印 邮寄 @@ -233,6 +233,20 @@ export default { const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng' window.open(`https://www.kuaidi100.com/chaxun?com=${ com }&nu=${ record.postNo }`) }, + /** + * 打印,新标签打开页面,打印页面 + * @param record + */ + goPrint(record) { + console.log(record) + let routerUrl = this.$router.resolve({ + path: '/mailManagement/PrintPage', + query: { + record: JSON.stringify(record) + } + }) + window.open(routerUrl.href, '_blank') + }, handleAdd: function (record) { this.$refs.modalForm.add(record, 1) this.$refs.modalForm.title = '邮寄' diff --git a/src/views/mailManagement/PrintPage.vue b/src/views/mailManagement/PrintPage.vue new file mode 100644 index 0000000..454f35a --- /dev/null +++ b/src/views/mailManagement/PrintPage.vue @@ -0,0 +1,200 @@ + + + + + \ No newline at end of file