|
@@ -26,7 +26,7 @@
|
|
|
v-for="(item, index) in areaList"
|
|
v-for="(item, index) in areaList"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:label="item.name"
|
|
:label="item.name"
|
|
|
- :value="item.code"
|
|
|
|
|
|
|
+ :value="item.id"
|
|
|
@click.native="formData.area = item"
|
|
@click.native="formData.area = item"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select> </el-form-item
|
|
</el-select> </el-form-item
|
|
@@ -126,13 +126,15 @@
|
|
|
this.locationList = [];
|
|
this.locationList = [];
|
|
|
this.area = '';
|
|
this.area = '';
|
|
|
},
|
|
},
|
|
|
- getshelvesList() {
|
|
|
|
|
|
|
+ async getshelvesList(e) {
|
|
|
this.cur = {};
|
|
this.cur = {};
|
|
|
this.shelves = '';
|
|
this.shelves = '';
|
|
|
this.locationList = [];
|
|
this.locationList = [];
|
|
|
this.shelvesList = this.areaGoodsshelvesList.filter(
|
|
this.shelvesList = this.areaGoodsshelvesList.filter(
|
|
|
(i) => i.reservoirAreaCode === this.area
|
|
(i) => i.reservoirAreaCode === this.area
|
|
|
);
|
|
);
|
|
|
|
|
+ const rep = await warehouseDefinition.getListByAreaId(e);
|
|
|
|
|
+ console.log(rep);
|
|
|
},
|
|
},
|
|
|
changeshelvesList() {
|
|
changeshelvesList() {
|
|
|
this.cur = {};
|
|
this.cur = {};
|
|
@@ -142,12 +144,10 @@
|
|
|
},
|
|
},
|
|
|
getStatus: useDict(warehouseDefinition_locationStatus),
|
|
getStatus: useDict(warehouseDefinition_locationStatus),
|
|
|
async open(row) {
|
|
async open(row) {
|
|
|
- // console.log(item, row);
|
|
|
|
|
this.row = row;
|
|
this.row = row;
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
await this._getWarehouseChildren();
|
|
await this._getWarehouseChildren();
|
|
|
if (this.row?.warehouseId) {
|
|
if (this.row?.warehouseId) {
|
|
|
- console.log(55555);
|
|
|
|
|
this.warehouse = this.row.warehouseId;
|
|
this.warehouse = this.row.warehouseId;
|
|
|
this.formData.warehouse = this.warehouseList.find(
|
|
this.formData.warehouse = this.warehouseList.find(
|
|
|
(w) => w.id == this.row.warehouseId
|
|
(w) => w.id == this.row.warehouseId
|
|
@@ -171,8 +171,6 @@
|
|
|
(w) => w.code == this.row.shelfCode
|
|
(w) => w.code == this.row.shelfCode
|
|
|
);
|
|
);
|
|
|
this.shelves = this.row.shelfCode;
|
|
this.shelves = this.row.shelfCode;
|
|
|
- console.log(this.row.shelfCode);
|
|
|
|
|
- console.log(this.shelves);
|
|
|
|
|
|
|
|
|
|
this.allocationReqList = res.goodsAllocationList || [];
|
|
this.allocationReqList = res.goodsAllocationList || [];
|
|
|
this.locationList = this.allocationReqList.filter(
|
|
this.locationList = this.allocationReqList.filter(
|
|
@@ -185,11 +183,11 @@
|
|
|
},
|
|
},
|
|
|
async changeWarehouse(val) {
|
|
async changeWarehouse(val) {
|
|
|
this.formData.warehouse = val;
|
|
this.formData.warehouse = val;
|
|
|
- const res = await warehouseDefinition.getById({ id: val.id });
|
|
|
|
|
|
|
+ const res = await warehouseDefinition.getListByWarehouseId(val.id);
|
|
|
|
|
|
|
|
this.area = '';
|
|
this.area = '';
|
|
|
this.shelves = '';
|
|
this.shelves = '';
|
|
|
- this.areaList = res.reservoirAreaList || [];
|
|
|
|
|
|
|
+ this.areaList = res || [];
|
|
|
this.areaGoodsshelvesList = res.goodsShelvesList || [];
|
|
this.areaGoodsshelvesList = res.goodsShelvesList || [];
|
|
|
this.allocationReqList = res.goodsAllocationList || [];
|
|
this.allocationReqList = res.goodsAllocationList || [];
|
|
|
},
|
|
},
|
|
@@ -215,8 +213,8 @@
|
|
|
this.cancel();
|
|
this.cancel();
|
|
|
},
|
|
},
|
|
|
async _getWarehouseChildren() {
|
|
async _getWarehouseChildren() {
|
|
|
- const res = await warehouseDefinition.list();
|
|
|
|
|
- this.warehouseList = res.list;
|
|
|
|
|
|
|
+ const res = await warehouseDefinition.list({});
|
|
|
|
|
+ this.warehouseList = res;
|
|
|
|
|
|
|
|
// const res = await getWarehouseChildren();
|
|
// const res = await getWarehouseChildren();
|
|
|
// if (res?.success) {
|
|
// if (res?.success) {
|