|
@@ -304,34 +304,27 @@
|
|
|
this.getList(this.WarehouseInOutInfo.id)
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {
|
|
|
- compId: 'cb271576afa8418fb7a2f328adc1ecc2',
|
|
|
- warehouseType: 1,
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- var arr = []
|
|
|
- for (var i = 0; i < res.data.data.length; i++) {
|
|
|
- if (res.data.data[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
|
|
|
- this.warehouseIndex = i
|
|
|
- this.ids = res.data.data[i].id
|
|
|
+ this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {contractNo:this.WarehouseInOutInfo.contractNo,warehouseType:1,}).then(res => {
|
|
|
+ if(res.data.code==200){
|
|
|
+ this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {
|
|
|
+ compId: res.data.data,
|
|
|
+ warehouseType: 1,
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ var arr = []
|
|
|
+ for (var i = 0; i < res.data.data.length; i++) {
|
|
|
+ if (res.data.data[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
|
|
|
+ this.warehouseIndex = i
|
|
|
+ this.ids = res.data.data[i].id
|
|
|
+ }
|
|
|
+ arr.push(res.data.data[i].warehouseName)
|
|
|
+ }
|
|
|
+ this.warehouselist = res.data.data
|
|
|
+ this.warehouse = arr
|
|
|
}
|
|
|
- arr.push(res.data.data[i].warehouseName)
|
|
|
- }
|
|
|
- this.warehouselist = res.data.data
|
|
|
- this.warehouse = arr
|
|
|
- }
|
|
|
- })
|
|
|
- // this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
|
- // id: this.ids,
|
|
|
- // }).then(res => {
|
|
|
- // var arr = []
|
|
|
- // for (var i = 0; i < res.data.data.warehousePositionInfoList.length; i++) {
|
|
|
- // console.log(res.data.data.warehousePositionInfoList[i])
|
|
|
- // arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
|
- // }
|
|
|
- // this.warehouse1 = arr
|
|
|
- // this.warehouselist11 = res.data.data
|
|
|
- // })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
methods: {
|