高敬炎 2 anos atrás
pai
commit
4e58ea5cc2

+ 7 - 6
src/views/houseSelfCollect/newWeighingManagement.vue

@@ -2294,10 +2294,13 @@ export default {
                       let cang = {}
                       cang.value = this.weighingList.seller
                       cang.label = this.weighingList.seller
+                      let cang1 = {}
+                      cang1.value = this.weighingList.buyer
+                      cang1.label = this.weighingList.buyer
                       if(this.warehouseName=='佳屹农仓储库'){
-                        if (this.check(this.weighingList.seller, 3)) {
-                          this.companyNameOptions.push(cang)
-                          this.companyName=this.weighingList.seller
+                        if (this.check(this.weighingList.buyer, 3)) {
+                          this.companyNameOptions.push(cang1)
+                          this.companyName=this.weighingList.buyer
                         }
                       }else{
                         if (this.check(this.weighingList.seller, 1)) {
@@ -2305,9 +2308,7 @@ export default {
                         }
                       }
                       
-                      let cang1 = {}
-                      cang1.value = this.weighingList.buyer
-                      cang1.label = this.weighingList.buyer
+                      
                       if (this.check(this.weighingList.buyer, 2)) {
                         this.companyNameEWOptions.push(cang1)
                       }

+ 8 - 7
src/views/houseSelfCollect/weightCheckRecord.vue

@@ -1227,19 +1227,20 @@
               // if (this.check(row.seller, 1)) {
               //   this.ewCustomerOptions.push(cang)
               // }
+              let cang1 = {}
+              cang1.value = row.buyer
+              cang1.label = row.buyer
               if(this.warehouseName=='佳屹农仓储库'){
-                if (this.check(row.seller, 3)) {
-                this.companyNameOptions.push(cang)
-                this.companyName=row.seller
-              }
+                if (this.check(row.buyer, 3)) {
+                  this.companyNameOptions.push(cang1)
+                  this.companyName=row.buyer
+                }
               }else{
                 if (this.check(row.seller, 1)) {
                   this.ewCustomerOptions.push(cang)
                 }
               }
-              let cang1 = {}
-              cang1.value = row.buyer
-              cang1.label = row.buyer
+              
               if (this.check(row.buyer, 2)) {
                 this.companyNameEWOptions.push(cang1)
               }