Browse Source

前端gjy

gjy 4 years ago
parent
commit
b94f9dc83b
1 changed files with 23 additions and 1 deletions
  1. 23 1
      src/views/taskManagement/tranManagementTransportAdd.vue

+ 23 - 1
src/views/taskManagement/tranManagementTransportAdd.vue

@@ -135,13 +135,14 @@
           style="width: 36%"
         >
           <el-select
+          @change='sendWarehousechange1'
             v-model="deptBudgetList.receiveWarehouse"
             :disabled="warehouse"
             placeholder="请输入收货库点"
             style="width: 100%"
           >
             <el-option
-              v-for="item in warehouseList"
+              v-for="item in warehouseList1"
               :key="item.constKey"
               :label="item.warehouseName"
               :value="item.warehouseName"
@@ -409,6 +410,7 @@ export default {
       mainReportAdd: {},
       appendixIdsAdd: '',
       warehouseList: [],
+      warehouseList1: [],
       size: 10,
       value1: '',
       unitList: [],
@@ -454,6 +456,18 @@ export default {
         }
       }
     },
+    sendWarehousechange1(e){
+      for (let i = 0; i < this.warehouseList1.length; i++) {
+        if(this.warehouseList1[i].warehouseName==e){
+          var tmp=[]
+          tmp[0]=TextToCode[this.warehouseList1[i].warehousePrivate].code
+          tmp[1]=TextToCode[this.warehouseList1[i].warehousePrivate][this.warehouseList1[i].warehouseCity].code
+          tmp[2]=TextToCode[this.warehouseList1[i].warehousePrivate][this.warehouseList1[i].warehouseCity][this.warehouseList1[i].warehouseArea].code
+          this.selectedOptions1=tmp
+          this.deptBudgetList.endDetailedAddress=this.warehouseList1[i].detailedAddress
+        }
+      }
+    },
     warehouseTypechange(){
         getwarehousename({
         compId: this.compId,
@@ -529,6 +543,14 @@ export default {
         .then(response => {
           this.warehouseList = response
         })
+        getwarehousename({
+        compId: this.compId,
+        warehouseType: 1
+      })
+        .toPromise()
+        .then(response => {
+          this.warehouseList1 = response
+        })
       xialaNo({
         compId: this.compId
       })