zhangyuewww 3 vuotta sitten
vanhempi
commit
cedd95674f
1 muutettua tiedostoa jossa 32 lisäystä ja 34 poistoa
  1. 32 34
      src/views/houseSelfCollect/inspectInfo.vue

+ 32 - 34
src/views/houseSelfCollect/inspectInfo.vue

@@ -32,6 +32,10 @@
               <ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
                 :disabled="disabled" />
             </ws-form-item>
+            <ws-form-item label="购粮性质" span="1" prop="natureOfGrainPurchase">
+              <ws-input v-model="inspect.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="10" size="small"
+                :disabled="disabled" />
+            </ws-form-item>
             <ws-form-item label="车牌号" span="1" prop="carNumber">
               <!-- <el-select v-model="inspect.carNumber" clearable filterable  placeholder="请选择" class="typeselect" @change="shipperNameChange"
                 :disabled="disabled1">
@@ -40,12 +44,6 @@
               <ws-input v-model="inspect.carNumber" placeholder="请输入车牌号" maxlength="10" size="small"
                 :disabled="disabled" />
             </ws-form-item>
-            <ws-form-item label="客户" span="1" prop="customerName">
-              <el-select v-model="inspect.customerName" clearable filterable placeholder="请选择" class="typeselect"
-                @change="customerChange" :disabled="disabled1">
-                <el-option v-for="item in customerList" :key="item.valueKey" :label="item.value" :value="item.value" />
-              </el-select>
-            </ws-form-item>
             <ws-form-item label="箱号-1" span="1" prop="boxNo">
               <ws-input :disabled="disabled" v-model="inspect.boxNo" placeholder="请输入箱号" maxlength="20" size="small" />
             </ws-form-item>
@@ -67,7 +65,6 @@
                   :value="item.goodsName" />
               </ws-select>
             </ws-form-item>
-
             <ws-form-item v-if="inspect.paramType != '1'" label="扣重比" span="1" prop="buckleWeightRatio">
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.buckleWeightRatio"
                 placeholder="请输入扣重比" maxlength="100" size="small" :disabled="disabled" />
@@ -86,9 +83,11 @@
                 <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
               </ws-select>
             </ws-form-item>
-            <ws-form-item label="购粮性质" span="1" prop="natureOfGrainPurchase">
-              <ws-input v-model="inspect.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="10" size="small"
-                :disabled="disabled" />
+            <ws-form-item label="客户" span="1" prop="customerName">
+              <el-select v-model="inspect.customerName" clearable filterable placeholder="请选择" class="typeselect"
+                @change="customerChange" :disabled="disabled1">
+                <el-option v-for="item in customerList" :key="item.valueKey" :label="item.value" :value="item.value" />
+              </el-select>
             </ws-form-item>
             <ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价"
@@ -972,7 +971,29 @@
                 this.$set(this.inspect, 'dryGrainPrice', response)
               })
           }
-
+        //客户
+        getcustomer({
+            warehouseId: this.cangid,
+            goodsName:this.inspect.goodsName
+          })
+          .toPromise()
+          .then((response) => {
+            this.customerList1 = response
+            this.customerList = []
+            let customer = response
+            for (let i = 0; i < response.length; i++) {
+              if (response[i].supplier) {
+                customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
+                  .supplier
+              } else {
+                customer = response[i].customerName + '(' + response[i].customerPhone + ')'
+              }
+              this.customerList.push({
+                valueKey: i,
+                value: customer,
+              })
+            }
+          })
           for (var i = 0; i < this.purchasePriceList.length; i++) {
             if (this.purchasePriceList[i].goodsName == this.inspect.goodsName) {
               this.$set(this.inspect, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
@@ -1075,29 +1096,6 @@
           .then((response) => {
             this.gradeList = response
           })
-        //客户
-        getcustomer({
-            compId: localStorage.getItem('ws-pf_compId'),
-            authenticationStatusKey: 7
-          })
-          .toPromise()
-          .then((response) => {
-            this.customerList1 = response
-            this.customerList = []
-            let customer = response
-            for (let i = 0; i < response.length; i++) {
-              if (response[i].supplier) {
-                customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
-                  .supplier
-              } else {
-                customer = response[i].customerName + '(' + response[i].customerPhone + ')'
-              }
-              this.customerList.push({
-                valueKey: i,
-                value: customer,
-              })
-            }
-          })
         getshippinginfo({
             compId: localStorage.getItem('ws-pf_compId'),
             warehouseName: this.warehouseName