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