ccj há 2 anos atrás
pai
commit
268a84ce47

+ 5 - 6
src/views/houseSelfCollect/weightCheckRecord.vue

@@ -240,10 +240,10 @@
           <div style="text-align:center">
             <el-form ref="form" label-width="110px">
               <el-form-item label="客户名">
-             <el-select filterable clearable v-model="customerName" placeholder="请选择客户" class="typeselect"
+             <el-select filterable clearable v-model="customerNumberCard" placeholder="请选择客户" class="typeselect"
               @change="customerChange">
-              <el-option v-for="item in customerlist" :key="item.customerName" :label="item.customerName"
-                :value="item.customerName" />
+              <el-option v-for="item in customerlist" :key="item.customerNumberCard" :label="item.customerName"
+                :value="item.customerNumberCard" />
             </el-select>
             </el-form-item>
            <el-form-item label="手机号">
@@ -751,11 +751,10 @@
         }
       },
       customerChange(e){
-        this.customerName = e
         for(let i = 0 ; i < this.customerlist.length ; i++){
-          if(this.customerName == this.customerlist[i].customerName){
+          if(this.customerNumberCard == this.customerlist[i].customerNumberCard){
             this.customerPhone = this.customerlist[i].customerPhone
-            this.customerNumberCard = this.customerlist[i].customerNumberCard
+            this.customerName = this.customerlist[i].customerName
           }
         }
       },

+ 7 - 7
src/views/warehousenew/warehouseManagementList.vue

@@ -1211,13 +1211,13 @@
               if(this.totalReserves[j].cost && this.totalReserves[j].stockNum){
                 this.totalReserves[j].totalMoney = (Number(this.totalReserves[j].cost) *  Number(this.totalReserves[j].stockNum)).toFixed(3)
                 this.totalMoney = (Number(this.totalMoney) + Number(this.totalReserves[j].totalMoney)).toFixed(3)
-                for(let r = 0;r<response.warehouseNumViewList.length;r++){
-                    if(this.totalReserves[j].goodsName == response.warehouseNumViewList[r].goodsName){
-                      this.$message.error('当前仓库无潮粮库存,无需折算!')
-                      this.value = '0'
-                      return
-                    }
-                }
+                // for(let r = 0;r<response.warehouseNumViewList.length;r++){
+                //     if(this.totalReserves[j].goodsName == response.warehouseNumViewList[r].goodsName){
+                //       this.$message.error('当前仓库无潮粮库存,无需折算!')
+                //       this.value = '0'
+                //       return
+                //     }
+                // }
               }
             }
             if(response.warehouseNumViewList.length != 0){