库存查询:合并库存/需求数/可用库存为三角结构单列

This commit is contained in:
Developer
2026-05-26 08:20:29 +08:00
parent 518772aefe
commit 242902ad36

View File

@@ -165,9 +165,24 @@
{{ scope.row.货位名称 }}
</template>
</el-table-column>
<el-table-column :width="setColumnWidth('数量')" label="库存" sortable="库存" prop="库存" align="center">
<el-table-column :width="setColumnWidth('数量')" align="center">
<template slot="header">
<div style="display: flex; flex-direction: column; align-items: center; line-height: 1.4;">
<span>库存</span>
<div style="display: flex; justify-content: space-around; width: 100%;">
<span>需求数</span>
<span>可用库存</span>
</div>
</div>
</template>
<template slot-scope="scope">
{{ scope.row.库存 }}
<div style="display: flex; flex-direction: column; align-items: center; line-height: 1.4;">
<span>{{ scope.row.库存 }}</span>
<div style="display: flex; justify-content: space-around; width: 100%;">
<span>{{ scope.row.需求量 }}</span>
<span>{{ scope.row.库存 - scope.row.需求量 }}</span>
</div>
</div>
</template>
</el-table-column>
<el-table-column :width="setColumnWidth('数量')" label="加工中" align="center">
@@ -196,11 +211,6 @@
{{ scope.row.补货中 }}
</template>
</el-table-column>
<!--<el-table-column :width="setColumnWidth('数量')" label="需求数" align="center">
<template slot-scope="scope">
{{ scope.row.需求量 }}
</template>
</el-table-column>-->
<el-table-column :width="setColumnWidth('单位')" label="单位" align="center">
<template slot-scope="scope">
{{ scope.row.单位 }}