fix(wms): 修复透视表数据展示和边料统计问题
修复透视表预览条件判断错误,将currentRow.summaryId改为liveData 修正边料统计接口调用错误,将listCoilTrimStatistics改为listMaterialCoil 添加可选链操作符处理可能为null的数据遍历
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
label="orderBy">保存透视表时保存明细,勾选后在保存时会消耗更长的时间且会占用更多内存和存储</el-checkbox>
|
||||
</div>
|
||||
<div style="height: calc(100vh - 300px); overflow-y: scroll; overflow-x: hidden;">
|
||||
<div v-if="currentRow.summaryId">
|
||||
<div v-if="liveData">
|
||||
<Preview :data="liveData" :statType="form.statType" />
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -227,14 +227,14 @@ export default {
|
||||
itemName: '冷硬卷',
|
||||
itemType: 'raw_material',
|
||||
})
|
||||
const { rows: coils2 } = await listCoilTrimStatistics({
|
||||
const { rows: coils2 } = await listMaterialCoil({
|
||||
pageNum: 1,
|
||||
pageSize: 9999,
|
||||
selectType: 'product',
|
||||
dataType: 1,
|
||||
status: 0,
|
||||
itemName: '冷硬卷',
|
||||
itemType: 'raw_material',
|
||||
itemType: 'product',
|
||||
})
|
||||
coilIds = coils1.concat(coils2).map(item => item.coilId).join(',')
|
||||
} else if (this.form.statType == '汇总') {
|
||||
|
||||
Reference in New Issue
Block a user