fix(wms): 修复异常表单和报表导出功能

修正异常表单中的产线字段名从line改为productionLine
优化报表导出功能,使用actionIds替代coilIds
为异常管理添加程度字典显示和产线字段
移除冗余代码并统一报表模板中的导出逻辑
This commit is contained in:
砂糖
2026-03-30 14:34:51 +08:00
parent ca176de4ef
commit 070b0aea8d
9 changed files with 39 additions and 105 deletions

View File

@@ -151,6 +151,8 @@ export default {
loading: false,
lossColumns: [],
actionIds: ''
}
},
computed: {
@@ -185,7 +187,7 @@ export default {
fetchLossList(this.actionTypes, {
...this.queryParams,
...this.actionQueryParams,
}).then(res => {
}, (ids) => { this.actionIds = ids }).then(res => {
this.list = res
this.loading = false
})
@@ -193,7 +195,8 @@ export default {
// 导出
exportData() {
this.download('wms/materialCoil/export', {
coilIds: this.list.map(item => item.coilId).join(',')
// coilIds: this.list.map(item => item.coilId).join(',')
actionIds: this.actionIds
}, `materialCoil_${new Date().getTime()}.xlsx`)
},
},