feat(成品库存管理 和 子卷包装):

- 修复子卷包装 未按查询时间进行导出问题。
- 移除导出功能断点
- 修复WQL查询语句中的字段引用错误。
- 物性字段拆分功能,兼容历史数据。
- 添加新的物性值字段映射,包括客户要求规格幅宽。
This commit is contained in:
yangyufu
2026-02-11 16:21:07 +08:00
parent 9bddcd1638
commit 0ed95fb435
4 changed files with 223 additions and 9 deletions

View File

@@ -62,6 +62,7 @@
>
<el-option
v-for="item in isPlanProducList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
@@ -98,6 +99,7 @@
>
<el-option
v-for="item in dict.sub_package_relation"
:key="item.value"
:label="item.label"
:value="item.value"
/>
@@ -144,6 +146,7 @@
>
<el-option
v-for="item in typeList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
@@ -798,9 +801,7 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import { download } from '@/api/data'
import { downloadFile } from '@/utils'
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
import crudPastivtquery from '@/views/wms/stat/pastivt/pastivtquery'
import { format } from 'date-fns'
const defaultForm = {
workorder_id: null,
@@ -944,6 +945,14 @@ export default {
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
const rangeTime = this.query.createTime
if (rangeTime && Array.isArray(rangeTime) && rangeTime.length === 2) {
this.query.begin_time = this.query.createTime[0]
this.query.end_time = this.query.createTime[1]
} else {
this.query.begin_time = null
this.query.end_time = null
}
return true
},
toView(data) {
@@ -1002,7 +1011,6 @@ export default {
if (this.currentRow !== null) {
this.showDtlLoading = true
download('/api/subpackagerelation/download', this.crud.query).then(result => {
debugger
downloadFile(result, '子卷包装', 'xlsx')
this.showDtlLoading = false
}).catch(() => {