Browse Source

修改

master_hella_20240701
zhaoxuebing 6 months ago
parent
commit
8620a724f8
  1. 10
      src/api/wms/purchasereceiptRecordMain/index.ts
  2. 9
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

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

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

9
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -267,8 +267,13 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购收货记录主')}.xlsx`)
if(routeName.value.includes('SCP')){
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购收货记录主')}.xlsx`)
}else{
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购收货记录主')}.xlsx`)
}
} catch {
} finally {
exportLoading.value = false

Loading…
Cancel
Save