ccj 2 years ago
parent
commit
4ee2c1680c
2 changed files with 11 additions and 6 deletions
  1. 10 6
      public/static/payprint1.html
  2. 1 0
      src/views/houseSelfCollect/paymentManagement.vue

+ 10 - 6
public/static/payprint1.html

@@ -1136,6 +1136,7 @@
         printBig() {}
       },
       mounted() {
+        debugger
         this.date = new Date().toLocaleString()
         // let _data = decodeURIComponent(this.getQueryVariable('dataList'))
         let _data  ={}
@@ -1145,7 +1146,7 @@
         else{
             _data = decodeURIComponent(this.getQueryVariable("dataList"))
         }
-        if (!_data) {
+        if (!_data || _data == 'false') {
           this.selectPrint = true
           this.printData1 = JSON.parse(
             localStorage.getItem('selectPrint_selectPrintList')
@@ -1164,7 +1165,7 @@
         } else {
           this.printData = JSON.parse(_data)
           //地址过长截取
-          if (this.printData.identityAuthenticationInfo.compAddress.length > 24) {
+          if (this.printData.identityAuthenticationInfo&&this.printData.identityAuthenticationInfo.compAddress.length > 24) {
             this.printData.identityAuthenticationInfo.compAddress = this.printData.identityAuthenticationInfo
               .compAddress.substring(0, 24)
           }
@@ -1202,11 +1203,14 @@
               }
             }
             for (let i = 0; i < this.printData1.length; i++) {
-              let _url2 = this.printData1[i].payeeAddressUrl.split(',')
-              this.printData1[i].imgURl = {
-                imageUrl3: _url2[0],
-                imageUrl4: _url2[1]
+              if(this.printData1[i].payeeAddressUrl){
+                let _url2 = this.printData1[i].payeeAddressUrl.split(',')
+                this.printData1[i].imgURl = {
+                  imageUrl3: _url2[0],
+                  imageUrl4: _url2[1]
+                }
               }
+              
             }
           } else {
             if (this.customerList.cardAddressUrl) {

+ 1 - 0
src/views/houseSelfCollect/paymentManagement.vue

@@ -1220,6 +1220,7 @@
         )
       },
       printBig() {
+        debugger
         let _list1 = []
         let _list2 = []
         if (this.printType == 1) {