From 42d7b98607d07b42cc258169d98ff97b7eaf51da Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Mon, 3 Jun 2024 23:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=8D=95=E6=8D=AE=E7=9A=84=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bill/mixins/BillModalMixin.js | 24 +++++++++++++++++++ .../views/bill/modules/AllocationOutModal.vue | 5 ++++ .../src/views/bill/modules/AssembleModal.vue | 5 ++++ .../views/bill/modules/DisassembleModal.vue | 5 ++++ .../src/views/bill/modules/OtherInModal.vue | 5 ++++ .../src/views/bill/modules/OtherOutModal.vue | 5 ++++ .../views/bill/modules/PurchaseApplyModal.vue | 5 ++++ .../views/bill/modules/PurchaseBackModal.vue | 5 ++++ .../views/bill/modules/PurchaseInModal.vue | 7 +++++- .../views/bill/modules/PurchaseOrderModal.vue | 5 ++++ .../views/bill/modules/RetailBackModal.vue | 5 ++++ .../src/views/bill/modules/RetailOutModal.vue | 5 ++++ .../src/views/bill/modules/SaleBackModal.vue | 5 ++++ .../src/views/bill/modules/SaleOrderModal.vue | 5 ++++ .../src/views/bill/modules/SaleOutModal.vue | 6 ++++- 15 files changed, 95 insertions(+), 2 deletions(-) diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index 0c98a31f..c3619bc3 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -40,6 +40,7 @@ export const BillModalMixin = { minWidth: 1100, isCanCheck: true, isTenant: false, + billPrintFlag: false, /* 原始审核是否开启 */ checkFlag: true, validatorRules:{ @@ -985,6 +986,29 @@ export const BillModalMixin = { } else { this.$message.warning('请先保存单据后再提交流程!'); } + }, + //三联打印预览 + handlePrint(billType) { + if(this.model.id) { + getPlatformConfigByKey({"platformKey": "bill_print_url"}).then((res)=> { + if (res && res.code === 200) { + let billPrintUrl = res.data.platformValue + '?no=' + this.model.number + let billPrintHeight = this.materialTable.dataSource.length*50 + 600 + this.$refs.modalPrint.show(this.model, billPrintUrl, billPrintHeight) + this.$refs.modalPrint.title = billType + "-三联打印预览" + } + }) + } else { + this.$message.warning('请先保存单据后再打印!'); + } + }, + //加载平台配置信息 + initPlatform() { + getPlatformConfigByKey({"platformKey": "bill_print_flag"}).then((res)=> { + if (res && res.code === 200) { + this.billPrintFlag = res.data.platformValue==='1'?true:false + } + }) } } } \ No newline at end of file diff --git a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue index effa54c5..272cbe11 100644 --- a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue +++ b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue @@ -11,6 +11,7 @@ style="top:20px;height: 95%;">