|
@@ -145,13 +145,13 @@ export default {
|
|
|
warehouseName: '',
|
|
|
inspect: [],
|
|
|
warehouseList: [],
|
|
|
- cangid: "", //仓库id
|
|
|
- warehouseCount: "",
|
|
|
- warehouseNo: "",
|
|
|
+ cangid: '', //仓库id
|
|
|
+ warehouseCount: '',
|
|
|
+ warehouseNo: '',
|
|
|
isShowPrint: false,
|
|
|
printData: {},
|
|
|
- deductWeight:"",//扣重比
|
|
|
- saleLimit:"",
|
|
|
+ deductWeight:'',//扣重比
|
|
|
+ saleLimit:'',
|
|
|
purchasePriceList:[]
|
|
|
|
|
|
}
|
|
@@ -258,21 +258,22 @@ export default {
|
|
|
purchasePriceList: response[i].purchasePriceList,
|
|
|
No:response[i].commonWarehouseNo
|
|
|
})
|
|
|
+ if (this.cangid&&this.cangid == response[i].id) {
|
|
|
+ this.warehouseName = response[i].warehouseName
|
|
|
+ this.warehouseCount = response[i].count
|
|
|
+ this.warehouseNo = response[i].commonWarehouseNo
|
|
|
+ this.purchasePriceList = response[i].purchasePriceList
|
|
|
+ }
|
|
|
}
|
|
|
- if(this.warehouseList.length > 0){
|
|
|
+ if(this.warehouseList.length > 0 && !this.cangid){
|
|
|
this.warehouseName = this.warehouseList[0].value
|
|
|
- if (this.cangid) {
|
|
|
- this.warehouseName = this.WAREHOUSE[1].payname
|
|
|
- }
|
|
|
- else {
|
|
|
- this.WAREHOUSE[1].payname = this.warehouseList[0].value
|
|
|
- }
|
|
|
this.warehouseCount = this.warehouseList[0].count
|
|
|
this.warehouseNo = this.warehouseList[0].No
|
|
|
this.cangid = this.warehouseList[0].id
|
|
|
this.purchasePriceList = this.warehouseList[0].purchasePriceList
|
|
|
- this.getList()
|
|
|
+ this.WAREHOUSE[1].payname = this.warehouseList[0].value
|
|
|
}
|
|
|
+ this.getList()
|
|
|
})
|
|
|
},
|
|
|
getList() {
|