Browse Source

修改

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
208cc7b4c6
  1. 10
      src/api/wms/purchasereturnRecordMain/index.ts
  2. 10
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue

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

@ -75,6 +75,16 @@ export const exportPurchasereturnRecordMain = async (params) => {
} }
} }
// 导出采购退货记录主 Excel
export const exportPurchasereturnRecordMainSCP = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior-SCP`, data })
} else {
return await request.download({url: `/wms/purchasereturn-record-main/export-excel-SCP`, params})
}
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' }) return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' })

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

@ -167,8 +167,14 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params) if(routeName.value.includes('SCP')){
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}else{
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

Loading…
Cancel
Save