Forráskód Böngészése

前端打印出库

高敬炎 2 éve
szülő
commit
f8e1055f52

+ 5 - 1
src/views/outboundManagement/weighingManagementrecord.vue

@@ -570,10 +570,14 @@
                 this.printBig(1, this.radio)
                 this.printBig(1, this.radio)
               } else {
               } else {
                 this.dialogData.compName = this.companyName
                 this.dialogData.compName = this.companyName
+                // console.log(                this.dialogData)
                 //代储合同出库收货方是卖方
                 //代储合同出库收货方是卖方
+                if(this.dialogData.contractManagement){
+                
                 if(this.dialogData.contractManagement.agreementType=='代储合同'){
                 if(this.dialogData.contractManagement.agreementType=='代储合同'){
                     this.dialogData.customer = this.dialogData.contractManagement.seller
                     this.dialogData.customer = this.dialogData.contractManagement.seller
                   }
                   }
+                }
                 if(this.dialogData&&!this.dialogData.customer&&this.dialogData.contractManagement){
                 if(this.dialogData&&!this.dialogData.customer&&this.dialogData.contractManagement){
                     this.dialogData.customer = this.dialogData.contractManagement.buyer
                     this.dialogData.customer = this.dialogData.contractManagement.buyer
                 }
                 }
@@ -1134,7 +1138,7 @@
           this.makeEWjjSelectPrintList()
           this.makeEWjjSelectPrintList()
           //  this.selectEW = true;
           //  this.selectEW = true;
         }
         }
-       
+       console.log(type)
         if (type == 1) {
         if (type == 1) {
           localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.dialogDataList))
           localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.dialogDataList))
           window.open('../../../../static/weightCheckOutNew.html?type=2&radioType=' + radioType + '&selectEW=' + this
           window.open('../../../../static/weightCheckOutNew.html?type=2&radioType=' + radioType + '&selectEW=' + this