achao 2 år sedan
förälder
incheckning
a2ace80316
2 ändrade filer med 8 tillägg och 4 borttagningar
  1. 2 1
      public/static/payprint1.html
  2. 6 3
      src/views/houseSelfCollect/paymentManagement.vue

+ 2 - 1
public/static/payprint1.html

@@ -1179,8 +1179,9 @@
                     localStorage.getItem('selectPrint_selectCustomerList')
                 )
             } else {
-                this.customerList = JSON.parse(_data1)
+                this.customerList = localStorage.getItem('printData1')
             }
+            console.log(this.customerList)
             console.log('cwprint', localStorage.getItem('cwprint'))
             var cwprint = localStorage.getItem('cwprint')
             if (cwprint == 'true') {

+ 6 - 3
src/views/houseSelfCollect/paymentManagement.vue

@@ -494,7 +494,7 @@
         excelFreightspace: [],
         goodnameList: [],
         goodsName: '全部货名',
-        printTips:""
+        printTips:''
       }
     },
     mounted() {
@@ -520,8 +520,8 @@
     },
     methods: {
       goodsNameChange(e) {
-        if(e == "全部货名"){
-          this.goodsName = ""
+        if(e == '全部货名'){
+          this.goodsName = ''
         }
         this.getList()
       },
@@ -1059,6 +1059,7 @@
               // val 是数组中每个接口返回的值 res.data
               console.log('两个接口全部加载完成', val1, val2);
               this.printData = val2.data
+              console.log(this.printData)
               if (val2.data.compName == '黑龙江秋收有限公司') {
                 this.printData.compName = '黑龙江中天昊元贸易有限公司'
               }
@@ -1274,8 +1275,10 @@
         } else if (this.printType == 0) {
           localStorage.setItem('cwprint', true)
           _list1 = JSON.stringify(this.printData)
+          localStorage.setItem('printData1',_list1)
           _list2 = JSON.stringify(this.customerList)
         } else {
+          localStorage.setItem('printData1',_list1)
           _list1 = JSON.stringify(this.printData)
           _list2 = JSON.stringify(this.customerList)
         }