将多个报表页面的公共逻辑提取到模板组件中,包括: 1. 创建out.vue和loss.vue作为基础模板 2. 重构zha.vue、zinc.vue等页面使用模板组件 3. 统一处理规格解析逻辑,添加宽度和厚度显示列 4. 优化仓库选择和查询参数处理
32 lines
821 B
Vue
32 lines
821 B
Vue
<template>
|
|
<OutTemplate
|
|
:baseQueryParams="baseQueryParams"
|
|
:warehouseOptions="warehouseOptions"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import OutTemplate from "@/views/wms/report/template/out.vue";
|
|
|
|
export default {
|
|
name: 'ZhaTemplate',
|
|
components: {
|
|
OutTemplate,
|
|
},
|
|
data() {
|
|
return {
|
|
baseQueryParams: {
|
|
createBy: 'duxinkuguan',
|
|
},
|
|
warehouseOptions: [
|
|
{ value: '1988150323162836993', label: '镀锌成品库' },
|
|
{ value: '1988150487185289217', label: '镀锌纵剪分条原料库' },
|
|
{ value: '2019583656787259393', label: '技术部' },
|
|
{ value: '2019583325311414274', label: '小钢卷库' },
|
|
{ value: '2019583429955104769', label: '废品库' },
|
|
{ value: '2019583137616310273', label: '退货库' },
|
|
],
|
|
}
|
|
}
|
|
}
|
|
</script> |