Browse Source

供应商管理

master
zhang_li 1 year ago
parent
commit
795ac54af4
  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,7 +44,12 @@ export const deletePurchaseprice = async (id: number) => {
// 导出采购价格单 Excel
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 })
}
}
// 下载用户导入模板

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

@ -58,7 +58,12 @@ export const deleteSupplier = async (id: number) => {
// 导出供应商 Excel
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 })
}
}
// 下载用户导入模板

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

@ -53,7 +53,12 @@ export const deleteSupplieritem = async (id: number) => {
// 导出供应商物品 Excel
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 })
}
}
// 下载用户导入模板

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