|
@@ -69,6 +69,11 @@ export default {
|
|
|
measureQuantity: 0
|
|
measureQuantity: 0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ userInfo() {
|
|
|
|
|
+ return this.$store.getters.user.info;
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
changeWarehouse() {
|
|
changeWarehouse() {
|
|
|
this.tableDate = []
|
|
this.tableDate = []
|
|
@@ -120,8 +125,8 @@ export default {
|
|
|
this.tableDate.splice(index, 1);
|
|
this.tableDate.splice(index, 1);
|
|
|
},
|
|
},
|
|
|
async getWarehouseList(categoryType) {
|
|
async getWarehouseList(categoryType) {
|
|
|
- const res = await warehouseDefinition.list({ inventoryType: categoryType });
|
|
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+ const res = await warehouseDefinition.list({ inventoryType: categoryType, ownerId: this.userInfo.userId });
|
|
|
|
|
+ console.log('仓库列表', res);
|
|
|
this.warehouseList = res.map((item) => {
|
|
this.warehouseList = res.map((item) => {
|
|
|
return { ...item, name: item.name };
|
|
return { ...item, name: item.name };
|
|
|
});
|
|
});
|