陈薪名 1 year ago
parent
commit
ad0d1a42cd
  1. 7
      src/api/wms/purchaseprice/index.ts
  2. 7
      src/api/wms/supplier/index.ts
  3. 7
      src/api/wms/supplieritem/index.ts
  4. 2
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  5. 2
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  6. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

7
src/api/wms/purchaseprice/index.ts

@ -44,7 +44,12 @@ export const deletePurchaseprice = async (id: number) => {
// 导出采购价格单 Excel
export const exportPurchaseprice = async (params) => {
return await request.download({ url: `/wms/purchaseprice/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchaseprice/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/purchaseprice/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/wms/supplier/index.ts

@ -58,7 +58,12 @@ export const deleteSupplier = async (id: number) => {
// 导出供应商 Excel
export const exportSupplier = async (params) => {
return await request.download({ url: `/wms/supplier/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/supplier/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/supplier/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/wms/supplieritem/index.ts

@ -53,7 +53,12 @@ export const deleteSupplieritem = async (id: number) => {
// 导出供应商物品 Excel
export const exportSupplieritem = async (params) => {
return await request.download({ url: `/wms/supplieritem/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/supplieritem/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/supplieritem/export-excel`, params })
}
}
// 下载用户导入模板

2
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await PurchasepriceApi.exportPurchaseprice(setSearchParams)
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params)
download.excel(data, '采购价格单.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/supplierManage/supplier/index.vue

@ -192,7 +192,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await SupplierApi.exportSupplier(setSearchParams)
const data = await SupplierApi.exportSupplier(tableObject.params)
download.excel(data, '供应商.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await SupplieritemApi.exportSupplieritem(setSearchParams)
const data = await SupplieritemApi.exportSupplieritem(tableObject.params)
download.excel(data, '供应商物品.xls')
} catch {
} finally {

Loading…
Cancel
Save