Browse Source

缺陷:HL-6040导出修改

hella_online_20240924
zhaoxuebing 2 months ago
parent
commit
05b58a7a71
  1. 20
      src/api/wms/productreceiptRecordMain/index.ts
  2. 2
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue

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

@ -102,6 +102,26 @@ export const exportProductreceiptRecordMain = async (params) => {
} }
} }
// 导出制品收货记录主 Excel
export const exportProductreceiptRecordScapMain = async (params) => {
// params.type = 'predict'
if (params.isSearch) {
// const cmd = {
// 'column':'type',
// 'action':'==',
// 'value':'predict'
// }
// params.filters.push(cmd)
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/productreceipt-record-main/export-excel-senior-scrap', data })
} else {
return await request.download({ url: `/wms/productreceipt-record-main/export-excel-scrap`, params })
}
}
// 导出装配收货记录主 Excel // 导出装配收货记录主 Excel
export const exportProductreceiptRecordAssembleMain = async (params) => { export const exportProductreceiptRecordAssembleMain = async (params) => {
params.type = 'assemble' params.type = 'assemble'

2
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue

@ -290,7 +290,7 @@ const handleExport = async () => {
} }
tableObject.params.filters.push(cmd) tableObject.params.filters.push(cmd)
} }
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params) const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordScapMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save