feat(wms): 新增钢卷库存分布统计功能

- 添加钢卷按仓库和类型分布的API接口
- 实现钢卷库存统计的可视化展示页面,包含树图、柱状图和饼图
- 优化库存列表页面,移除不必要字段
- 在基础信息面板中增加仓库名称显示
- 调整物料选择组件,根据类型显示不同选择器
This commit is contained in:
砂糖
2025-10-29 17:19:57 +08:00
parent a95644f984
commit ddab8521ec
4 changed files with 746 additions and 13 deletions

View File

@@ -12,9 +12,9 @@
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<!-- 移除仓库筛选项 -->
<MaterialSelect :itemType.sync="queryParams.itemType" :itemId.sync="queryParams.itemId" @change="getList" />
<el-form-item label="单位" prop="unit">
<!-- <el-form-item label="单位" prop="unit">
<el-input v-model="queryParams.unit" placeholder="请输入单位" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
</el-form-item> -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
@@ -52,16 +52,16 @@
<BomInfoMini :itemType="scope.row.itemType" :itemId="scope.row.itemId" />
</template>
</el-table-column>
<el-table-column label="库存数量" align="center" prop="quantity" />
<el-table-column label="在途数量" align="center" prop="onTheWay" />
<el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="批次号" align="center" prop="batchNo" />
<el-table-column label="库存数量" align="center" prop="totalQuantity" />
<!-- <el-table-column label="在途数量" align="center" prop="onTheWay" /> -->
<!-- <el-table-column label="单位" align="center" prop="unit" /> -->
<!-- <el-table-column label="批次号" align="center" prop="batchNo" /> -->
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button type="text" size="small" @click="handleTrace(scope.row)">物料追溯</el-button>
</template>
</el-table-column>
</el-table-column> -->
</KLPTable>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"