Commit 4acd8916 by wusiyi

fix: 修复订单跟踪导出内容为空的bug #1001054

parent d34566a5
...@@ -11,6 +11,7 @@ export interface IconfirmSubmit { ...@@ -11,6 +11,7 @@ export interface IconfirmSubmit {
export interface ExportParams extends SearchForm { export interface ExportParams extends SearchForm {
idList?: number[] idList?: number[]
exportAll: boolean exportAll: boolean
orderTracking?: boolean
} }
export interface SearchForm { export interface SearchForm {
timeType?: number | null timeType?: number | null
......
...@@ -7,6 +7,7 @@ export interface ExportParams extends SearchForm { ...@@ -7,6 +7,7 @@ export interface ExportParams extends SearchForm {
idList?: number[] idList?: number[]
exportAll: boolean exportAll: boolean
status?: string status?: string
orderTracking?: boolean
} }
export interface SearchForm { export interface SearchForm {
......
...@@ -411,6 +411,7 @@ const submitExportForm = async () => { ...@@ -411,6 +411,7 @@ const submitExportForm = async () => {
const params: ExportParams = { const params: ExportParams = {
exportAll: false, exportAll: false,
idList: [], idList: [],
orderTracking: true,
} }
// 使用函数封装映射逻辑 // 使用函数封装映射逻辑
const mapIds = (items: PodUsOrderListData[]) => const mapIds = (items: PodUsOrderListData[]) =>
...@@ -437,7 +438,6 @@ const submitExportForm = async () => { ...@@ -437,7 +438,6 @@ const submitExportForm = async () => {
...searchForm.value, ...searchForm.value,
startTime: timeRange.value?.[0] || null, startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null, endTime: timeRange.value?.[1] || null,
orderTracking: true,
} }
: {}), : {}),
}) })
......
...@@ -440,6 +440,7 @@ const submitExportForm = async () => { ...@@ -440,6 +440,7 @@ const submitExportForm = async () => {
const params: ExportParams = { const params: ExportParams = {
exportAll: false, exportAll: false,
idList: [], idList: [],
orderTracking: true,
} }
// 使用函数封装映射逻辑 // 使用函数封装映射逻辑
const mapIds = (items: PodCnOrderListData[]) => const mapIds = (items: PodCnOrderListData[]) =>
...@@ -466,7 +467,6 @@ const submitExportForm = async () => { ...@@ -466,7 +467,6 @@ const submitExportForm = async () => {
...searchForm.value, ...searchForm.value,
startTime: timeRange.value?.[0] || null, startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null, endTime: timeRange.value?.[1] || null,
orderTracking: true,
} }
: {}), : {}),
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment