Browse Source

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

zhongtianhaoyuan 3 years ago
parent
commit
ee60fdf12d
1 changed files with 25 additions and 25 deletions
  1. 25 25
      public/static/payprint.html

+ 25 - 25
public/static/payprint.html

@@ -597,33 +597,33 @@
         let _type = decodeURIComponent(this.getQueryVariable('type'))
         this.showType = decodeURIComponent(this.getQueryVariable('printTypeList'))
         this.customerList = JSON.parse(decodeURIComponent(this.getQueryVariable('customerList')))
-        this.identity = this.customerList.cardAddressUrl.split(',')
-        this.bank = this.customerList.payeeAddressUrl.split(',')
-        this.imageUrl1 = this.identity[0]
-        this.imageUrl2 = this.identity[1]
-        this.imageUrl3 = this.bank[0]
-        this.imageUrl4 = this.bank[1]
-        let _lsit = this.showType.split(',')
-        for (let i = 0; i < _lsit.length; i++) {
-          switch (_lsit[i]) {
-            case '打印身份证(正反面)':
-              this.isShowPrintType1 = !this.isShowPrintType1
-              break
-            case '打印银行卡(正反面)':
-              this.isShowPrintType2 = !this.isShowPrintType2
-              break
-            case '打印结算凭证':
-              this.isShowPrintType3 = !this.isShowPrintType3
-            case '打印发票':
-              this.isShowPrintType4 = !this.isShowPrintType4
-              break
+        
+        if (sessionStorage.getItem('ws-pf_roleName') == '财务') {
+          this.identity = this.customerList.cardAddressUrl.split(',')
+          this.bank = this.customerList.payeeAddressUrl.split(',')
+          this.imageUrl1 = this.identity[0]
+          this.imageUrl2 = this.identity[1]
+          this.imageUrl3 = this.bank[0]
+          this.imageUrl4 = this.bank[1]
+          let _lsit = this.showType.split(',')
+          for (let i = 0; i < _lsit.length; i++) {
+            switch (_lsit[i]) {
+              case '打印身份证(正反面)':
+                this.isShowPrintType1 = !this.isShowPrintType1
+                break
+              case '打印银行卡(正反面)':
+                this.isShowPrintType2 = !this.isShowPrintType2
+                break
+              case '打印结算凭证':
+                this.isShowPrintType3 = !this.isShowPrintType3
+              case '打印发票':
+                this.isShowPrintType4 = !this.isShowPrintType4
+                break
+            }
           }
+        }else{
+          this.isShowPrintType3 = true
         }
-        // if (sessionStorage.getItem('ws-pf_roleName') == '财务') {
-         
-        // }else{
-        //   this.isShowPrintType3 = true
-        // }
         if (_type == 2) {
           this.bigContent = true
           this.smallContent = false