diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index d2d98992..e22ce2d2 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -1054,6 +1054,21 @@ export const BillModalMixin = { this.$message.warning('请先保存单据后再提交流程!'); } }, + //三联打印新版预览 + handlePrintPro(billType) { + if(this.model.id) { + getPlatformConfigByKey({"platformKey": "bill_print_pro_url"}).then((res)=> { + if (res && res.code === 200) { + let billPrintUrl = res.data.platformValue + '?no=' + this.model.number + let billPrintHeight = document.documentElement.clientHeight - 260 + this.$refs.modalPrintPro.show(this.model, billPrintUrl, billPrintHeight) + this.$refs.modalPrintPro.title = billType + "-三联打印新版预览" + } + }) + } else { + this.$message.warning('请先保存单据后再打印!'); + } + }, //三联打印预览 handlePrint(billType) { if(this.model.id) { diff --git a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue index 12974e39..46b49783 100644 --- a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue +++ b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue @@ -14,6 +14,7 @@ style="top:20px;height: 95%;">