@ -22,6 +22,11 @@ export const getPurchaseBarterRecordDetailPage = async (params) => {
}
export async function exportPurchaseBarterRecord(params: any) {
export async function exportPurchaseBarterRecord(params) {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({url: `/wms/purchase-barter-record-detail/export-excel-senior`, data})
} else {
return await request.download({ url: `/wms/purchase-barter-record-detail/export-excel`, params })
@ -47,7 +47,12 @@ export const deletePurchaseBarterRequestMain = async (id: number) => {
// 导出采购换货申请主 Excel
export const exportPurchaseBarterRequestMain = async (params) => {
return await request.download({ url: `/wms/purchase-barter-request-main/export-excel`, params })
return await request.downloadPost({url: `/wms/purchase-barter-request-main/export-excel-senior`, data})
// 下载用户导入模板
@ -154,6 +154,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(formField === 'supplierCode'){
setV['supplierCode'] = val[0]['code']
setV['supplierName'] = val[0]['name']
tableData.value = []
formRef.setValues(setV)
})