陈薪名 1 year ago
parent
commit
ad0d1a42cd
  1. 5
      src/api/wms/purchaseprice/index.ts
  2. 5
      src/api/wms/supplier/index.ts
  3. 5
      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

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

@ -44,8 +44,13 @@ export const deletePurchaseprice = async (id: number) => {
// 导出采购价格单 Excel // 导出采购价格单 Excel
export const exportPurchaseprice = async (params) => { export const exportPurchaseprice = async (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 }) return await request.download({ url: `/wms/purchaseprice/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

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

@ -58,8 +58,13 @@ export const deleteSupplier = async (id: number) => {
// 导出供应商 Excel // 导出供应商 Excel
export const exportSupplier = async (params) => { export const exportSupplier = async (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 }) return await request.download({ url: `/wms/supplier/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

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

@ -53,8 +53,13 @@ export const deleteSupplieritem = async (id: number) => {
// 导出供应商物品 Excel // 导出供应商物品 Excel
export const exportSupplieritem = async (params) => { export const exportSupplieritem = async (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 }) return await request.download({ url: `/wms/supplieritem/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

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

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

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

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

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

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

Loading…
Cancel
Save