|
@@ -135,13 +135,14 @@
|
|
style="width: 36%"
|
|
style="width: 36%"
|
|
>
|
|
>
|
|
<el-select
|
|
<el-select
|
|
|
|
+ @change='sendWarehousechange1'
|
|
v-model="deptBudgetList.receiveWarehouse"
|
|
v-model="deptBudgetList.receiveWarehouse"
|
|
:disabled="warehouse"
|
|
:disabled="warehouse"
|
|
placeholder="请输入收货库点"
|
|
placeholder="请输入收货库点"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in warehouseList"
|
|
|
|
|
|
+ v-for="item in warehouseList1"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
:label="item.warehouseName"
|
|
:label="item.warehouseName"
|
|
:value="item.warehouseName"
|
|
:value="item.warehouseName"
|
|
@@ -409,6 +410,7 @@ export default {
|
|
mainReportAdd: {},
|
|
mainReportAdd: {},
|
|
appendixIdsAdd: '',
|
|
appendixIdsAdd: '',
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
|
|
+ warehouseList1: [],
|
|
size: 10,
|
|
size: 10,
|
|
value1: '',
|
|
value1: '',
|
|
unitList: [],
|
|
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(){
|
|
warehouseTypechange(){
|
|
getwarehousename({
|
|
getwarehousename({
|
|
compId: this.compId,
|
|
compId: this.compId,
|
|
@@ -529,6 +543,14 @@ export default {
|
|
.then(response => {
|
|
.then(response => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
})
|
|
})
|
|
|
|
+ getwarehousename({
|
|
|
|
+ compId: this.compId,
|
|
|
|
+ warehouseType: 1
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.warehouseList1 = response
|
|
|
|
+ })
|
|
xialaNo({
|
|
xialaNo({
|
|
compId: this.compId
|
|
compId: this.compId
|
|
})
|
|
})
|