Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
parent
commit
e75aebbb63
  1. 10
      src/api/wms/purchasereturnRecordMain/index.ts
  2. 6
      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' })

6
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
if(routeName.value.includes('SCP')){
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}else{
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params) const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

Loading…
Cancel
Save