From c6548bdb9e033e4b5e1c1a739ab8467cfaeea979 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com>
Date: Mon, 13 Sep 2021 22:50:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=95=E6=8D=AE=E6=98=8E?=
=?UTF-8?q?=E7=BB=86=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/bill/dialog/BillDetail.vue | 19 ++--
.../src/views/bill/dialog/BillPrintIframe.vue | 90 +++++++++++--------
2 files changed, 66 insertions(+), 43 deletions(-)
diff --git a/jshERP-web/src/views/bill/dialog/BillDetail.vue b/jshERP-web/src/views/bill/dialog/BillDetail.vue
index 37c1617d..49fbb32f 100644
--- a/jshERP-web/src/views/bill/dialog/BillDetail.vue
+++ b/jshERP-web/src/views/bill/dialog/BillDetail.vue
@@ -1101,9 +1101,12 @@
},
methods: {
initPlatform() {
- getPlatformConfigByKey( {"platformKey": "bill_print_flag"}).then((res)=> {
- if (res && res.code == 200) {
- this.billPrintFlag = res.data.platformValue==='1'?true:false
+ getPlatformConfigByKey({"platformKey": "bill_print_flag"}).then((res)=> {
+ if (res && res.code === 200) {
+ if(this.billType === '采购订单'||this.billType === '采购入库'||this.billType === '采购退货出库'||
+ this.billType === '销售订单'||this.billType === '销售出库'||this.billType === '销售退货入库') {
+ this.billPrintFlag = res.data.platformValue==='1'?true:false
+ }
}
})
},
@@ -1154,8 +1157,14 @@
},
//三联打印预览
handlePrint() {
- this.$refs.modalDetail.show(this.model, this.billType);
- this.$refs.modalDetail.title=this.billType + "-三联打印预览";
+ getPlatformConfigByKey({"platformKey": "bill_print_url"}).then((res)=> {
+ if (res && res.code === 200) {
+ let billPrintUrl = res.data.platformValue + '?no=' + this.model.number
+ let billPrintHeight = this.dataSource.length*46 + 300
+ this.$refs.modalDetail.show(this.model, billPrintUrl, billPrintHeight);
+ this.$refs.modalDetail.title = this.billType + "-三联打印预览";
+ }
+ })
}
}
}
diff --git a/jshERP-web/src/views/bill/dialog/BillPrintIframe.vue b/jshERP-web/src/views/bill/dialog/BillPrintIframe.vue
index 8838b175..05616810 100644
--- a/jshERP-web/src/views/bill/dialog/BillPrintIframe.vue
+++ b/jshERP-web/src/views/bill/dialog/BillPrintIframe.vue
@@ -1,57 +1,71 @@
-
+
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file