Browse Source

装配收货记录导出问题修复

hella_online_20240913
tengxiaofei 2 months ago
parent
commit
cac8135fef
  1. 8
      src/api/wms/productreceiptRecordMain/index.ts
  2. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

8
src/api/wms/productreceiptRecordMain/index.ts

@ -106,9 +106,15 @@ export const exportProductreceiptRecordMain = async (params) => {
export const exportProductreceiptRecordAssembleMain = async (params) => { export const exportProductreceiptRecordAssembleMain = async (params) => {
params.type = 'assemble' params.type = 'assemble'
if (params.isSearch) { if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
}
params.filters.push(cmd)
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/productreceipt-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/productreceipt-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/productreceipt-record-main/export-excel`, params }) return await request.download({ url: `/wms/productreceipt-record-main/export-excel`, params })
} }

2
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -190,7 +190,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productreceiptAssemble-record-main:export'}), // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save