入库作业流水、入库单据历史、出库单据历史、KPI所有页面改仓库下拉框

This commit is contained in:
猫猫guowen
2025-05-28 17:24:21 +08:00
parent 75dbbd648d
commit 4f7461f79b
29 changed files with 5050 additions and 7 deletions

View File

@@ -4,8 +4,12 @@
<el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="仓库">
<el-select v-model="queryParams.warehouseId" style="width: 150px" @change="handleWarehouseChange">
<el-option label="仓库1" value="01"/>
<el-option label="仓库2" value="02"/>
<el-option
v-for="dict in warehouseOptions"
:key="dict.warehouseId"
:label="dict.warehouseName"
:value="dict.warehouseId"
/>
</el-select>
</el-form-item>
<el-form-item label="巷道">
@@ -30,6 +34,7 @@
<script>
import * as echarts from 'echarts'
import {getRoadways, getPlatoons, getChartData, getChartMag} from "@/api/kpi/spacePlan"
import {listWarehouse} from "@/api/bas/warehouse";
export default {
name: 'SpacePlan',
@@ -49,7 +54,9 @@ export default {
class_workshop_date_time: '',
class_now_date_time: '',
print_date: '',
lot_no: ''
lot_no: '',
// 仓库选项
warehouseOptions: []
},
// 巷道选项
roadwayOptions: [],
@@ -77,10 +84,19 @@ export default {
}
},
mounted() {
this.initCharts()
this.handleWarehouseChange()
},
methods: {
/** 查询仓库列表 */
getWarehouseList() {
// TODO: 调用获取仓库列表接口
listWarehouse().then(response => {
this.warehouseOptions = response.rows;
});
// this.warehouseOptions = [{warehouseId: "01", warehouseName: "仓库1"}, {warehouseId: "02", warehouseName: "仓库2"}];
},
// 初始化图表
initCharts() {
this.normalChart = echarts.init(document.getElementById('container'))