fix(wms): 修复异常表单和报表导出功能
修正异常表单中的产线字段名从line改为productionLine 优化报表导出功能,使用actionIds替代coilIds 为异常管理添加程度字典显示和产线字段 移除冗余代码并统一报表模板中的导出逻辑
This commit is contained in:
@@ -124,8 +124,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listCoilWithIds } from "@/api/wms/coil";
|
||||
import { listPendingAction } from '@/api/wms/pendingAction';
|
||||
import ProductInfo from "@/components/KLPService/Renderer/ProductInfo";
|
||||
import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo";
|
||||
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
||||
@@ -218,6 +216,8 @@ export default {
|
||||
|
||||
lossColumns: [],
|
||||
outputColumns: [],
|
||||
|
||||
actionIds: ''
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@@ -271,7 +271,7 @@ export default {
|
||||
fetchLossList(this.actionTypes, {
|
||||
...this.queryParams,
|
||||
...this.actionQueryParams
|
||||
}),
|
||||
}, (ids) => { this.actionIds = ids }),
|
||||
fetchOutputList({
|
||||
...this.queryParams,
|
||||
...this.baseQueryParams,
|
||||
@@ -298,7 +298,8 @@ export default {
|
||||
return;
|
||||
}
|
||||
this.download('wms/materialCoil/export', {
|
||||
coilIds: this.lossList.map(item => item.coilId).join(',')
|
||||
// coilIds: this.lossList.map(item => item.coilId).join(',')
|
||||
actionIds: this.actionIds
|
||||
}, `materialCoil_${this.queryParams.date}_${new Date().getTime()}.xlsx`);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user