更新仓库
This commit is contained in:
@@ -64,7 +64,7 @@ import {
|
||||
outWarehouseRealtimeLocation,
|
||||
} from '@/api/warehouse/warehouseRealtimeLocation';
|
||||
import { listByWarehouse } from '@/api/warehouse/warehouseLocation';
|
||||
|
||||
import { getWarehouseList } from '@/api/warehouse/warehouse-info';
|
||||
import { listData } from '@/api/system/dict/data';
|
||||
import { publicFormatter } from '@/utils/dict';
|
||||
import { mapGetters } from 'vuex';
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
label: '入库时间',
|
||||
dateType: 'daterange',
|
||||
format: 'yyyy-MM-dd',
|
||||
valueFormat: "timestamp",
|
||||
valueFormat: 'timestamp',
|
||||
rangeSeparator: '-',
|
||||
startPlaceholder: '开始时间',
|
||||
endPlaceholder: '结束时间',
|
||||
@@ -203,8 +203,14 @@ export default {
|
||||
listData(queryParams).then((response) => {
|
||||
this.formConfig[2].selectOptions = response.data.list;
|
||||
});
|
||||
listByWarehouse(1).then((response) => {
|
||||
this.formConfig[0].selectOptions = response.data;
|
||||
getWarehouseList().then((response) => {
|
||||
response.data.forEach((item) => {
|
||||
if (item.storageType === this.listQuery.storageType) {
|
||||
listByWarehouse(item.id).then((response) => {
|
||||
this.formConfig[0].selectOptions = response.data;
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
@@ -216,7 +222,7 @@ export default {
|
||||
this.listQuery.locationId = val.name;
|
||||
this.listQuery.palletCode = val.code;
|
||||
this.listQuery.status = val.status;
|
||||
this.listQuery.inTime = val.searchTime?val.searchTime:null;
|
||||
this.listQuery.inTime = val.searchTime ? val.searchTime : null;
|
||||
this.getDataList();
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user