Browse Source

导出修改

master
zhaoxuebing 11 months ago
parent
commit
e31e71765b
  1. 5
      src/api/wms/inspectJobMain/index.ts
  2. 5
      src/api/wms/inspectRecordMain/index.ts
  3. 5
      src/api/wms/inspectRequestMain/index.ts
  4. 5
      src/api/wms/purchasereturnJobMain/index.ts
  5. 5
      src/api/wms/purchasereturnRecordMain/index.ts
  6. 5
      src/api/wms/putawayJobMain/index.ts
  7. 5
      src/api/wms/putawayRecordMain/index.ts
  8. 5
      src/api/wms/putawayRequestMain/index.ts
  9. 2
      src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue
  10. 2
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
  11. 2
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  12. 2
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue
  13. 2
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
  14. 2
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
  15. 2
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue
  16. 2
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

5
src/api/wms/inspectJobMain/index.ts

@ -82,8 +82,13 @@ export const deleteInspectJobMain = async (id: number) => {
// 导出检验任务主 Excel // 导出检验任务主 Excel
export const exportInspectJobMain = async (params) => { export const exportInspectJobMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/inspect-job-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/inspect-job-main/export-excel`, params}) return await request.download({url: `/wms/inspect-job-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/inspectRecordMain/index.ts

@ -73,8 +73,13 @@ export const deleteInspectRecordMain = async (id: number) => {
// 导出检验记录主 Excel // 导出检验记录主 Excel
export const exportInspectRecordMain = async (params) => { export const exportInspectRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/inspect-record-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/inspect-record-main/export-excel`, params}) return await request.download({url: `/wms/inspect-record-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/inspectRequestMain/index.ts

@ -67,8 +67,13 @@ export const deleteInspectRequestMain = async (id: number) => {
// 导出检验申请主 Excel // 导出检验申请主 Excel
export const exportInspectRequestMain = async (params) => { export const exportInspectRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/inspect-request-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/inspect-request-main/export-excel`, params}) return await request.download({url: `/wms/inspect-request-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/purchasereturnJobMain/index.ts

@ -81,8 +81,13 @@ export const deletePurchasereturnJobMain = async (id: number) => {
// 导出采购退货任务主 Excel // 导出采购退货任务主 Excel
export const exportPurchasereturnJobMain = async (params) => { export const exportPurchasereturnJobMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-job-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/purchasereturn-job-main/export-excel`, params }) return await request.download({ url: `/wms/purchasereturn-job-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/purchasereturnRecordMain/index.ts

@ -67,8 +67,13 @@ export const deletePurchasereturnRecordMain = async (id: number) => {
// 导出采购退货记录主 Excel // 导出采购退货记录主 Excel
export const exportPurchasereturnRecordMain = async (params) => { export const exportPurchasereturnRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/purchasereturn-record-main/export-excel`, params}) return await request.download({url: `/wms/purchasereturn-record-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/putawayJobMain/index.ts

@ -74,8 +74,13 @@ export const deletePutawayJobMain = async (id: number) => {
// 导出上架任务主 Excel // 导出上架任务主 Excel
export const exportPutawayJobMain = async (params) => { export const exportPutawayJobMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/putaway-job-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/putaway-job-main/export-excel`, params}) return await request.download({url: `/wms/putaway-job-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/putawayRecordMain/index.ts

@ -60,8 +60,13 @@ export const deletePutawayRecordMain = async (id: number) => {
// 导出上架记录主 Excel // 导出上架记录主 Excel
export const exportPutawayRecordMain = async (params) => { export const exportPutawayRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/putaway-record-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/putaway-record-main/export-excel`, params}) return await request.download({url: `/wms/putaway-record-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/wms/putawayRequestMain/index.ts

@ -58,8 +58,13 @@ export const deletePutawayRequestMain = async (id: number) => {
// 导出上架申请主 Excel // 导出上架申请主 Excel
export const exportPutawayRequestMain = async (params) => { export const exportPutawayRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/putaway-request-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/putaway-request-main/export-excel`, params}) return await request.download({url: `/wms/putaway-request-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

2
src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue

@ -218,7 +218,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await InspectJobMainApi.exportInspectJobMain(setSearchParams) const data = await InspectJobMainApi.exportInspectJobMain(tableObject.params)
download.excel(data, '检验任务主.xlsx') download.excel(data, '检验任务主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue

@ -147,7 +147,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await InspectRecordMainApi.exportInspectRecordMain(setSearchParams) const data = await InspectRecordMainApi.exportInspectRecordMain(tableObject.params)
download.excel(data, '检验记录主.xlsx') download.excel(data, '检验记录主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -284,7 +284,7 @@
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await InspectRequestMainApi.exportInspectRequestMain(setSearchParams) const data = await InspectRequestMainApi.exportInspectRequestMain(tableObject.params)
download.excel(data, '检验申请主.xlsx') download.excel(data, '检验申请主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue

@ -218,7 +218,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasereturnJobMainApi.exportPurchasereturnJobMain(setSearchParams) const data = await PurchasereturnJobMainApi.exportPurchasereturnJobMain(tableObject.params)
download.excel(data, '采购退货任务主.xlsx') download.excel(data, '采购退货任务主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

@ -141,7 +141,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(setSearchParams) const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
download.excel(data, '采购退货记录主.xlsx') download.excel(data, '采购退货记录主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

@ -218,7 +218,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PutawayJobMainApi.exportPutawayJobMain(setSearchParams) const data = await PutawayJobMainApi.exportPutawayJobMain(tableObject.params)
download.excel(data, '上架任务主.xlsx') download.excel(data, '上架任务主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue

@ -141,7 +141,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PutawayRecordMainApi.exportPutawayRecordMain(setSearchParams) const data = await PutawayRecordMainApi.exportPutawayRecordMain(tableObject.params)
download.excel(data, '上架记录主.xlsx') download.excel(data, '上架记录主.xlsx')
} catch { } catch {
} finally { } finally {

2
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -314,7 +314,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PutawayRequestMainApi.exportPutawayRequestMain(setSearchParams) const data = await PutawayRequestMainApi.exportPutawayRequestMain(tableObject.params)
download.excel(data, '上架申请主.xlsx') download.excel(data, '上架申请主.xlsx')
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save