库存查询合并库存列为三角结构,补货页面需求量添加点击下拉详情

This commit is contained in:
Developer
2026-05-26 14:52:25 +08:00
parent 242902ad36
commit 26ee11ea9d
2 changed files with 39 additions and 19 deletions

View File

@@ -165,24 +165,19 @@
{{ scope.row.货位名称 }}
</template>
</el-table-column>
<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>
<el-table-column :width="setColumnWidth('数量')" label="库存" sortable="库存" prop="库存" align="center">
<template slot-scope="scope">
<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>
{{ 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.库存 - scope.row.需求量 }}
</template>
</el-table-column>
<el-table-column :width="setColumnWidth('数量')" label="加工中" align="center">