You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
9 months ago
|
import request from '@/config/axios'
|
||
|
// 获得采购索赔子分页
|
||
|
export const getPurchaseClaimRequestDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/purchase-claim-request-detai/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/purchase-claim-request-detai/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 创建采购索赔子
|
||
|
export const createPurchaseClaimRequestDetail = async (data) => {
|
||
|
return await request.post({ url: `/wms/purchase-claim-request-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改采购索赔子
|
||
|
export const updatePurchaseClaimRequestDetail = async (data) => {
|
||
|
return await request.put({ url: `/wms/purchase-claim-request-detail/update`, data })
|
||
|
}
|
||
|
// 删除采购索赔子
|
||
|
export const deletePurchaseClaimRequestDetail = async (id) => {
|
||
|
return await request.delete({ url: `/wms/purchase-claim-request-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 获得采购索赔子
|
||
|
export const getPurchaseClaimRequestDetail = async (id) => {
|
||
|
return await request.get({ url: `/wms/purchase-claim-request-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
|
||
|
// 导出采购索赔子 Excel
|
||
|
export const exportPurchaseClaimRequestDetailExcel = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
const data = {...params}
|
||
|
return await request.downloadPost({url: `/wms/purchase-claim-request-detail/export-excel-senior`, data})
|
||
|
} else {
|
||
|
return await request.download({ url: `/wms/purchase-claim-request-detail/export-excel`, params })
|
||
|
}
|
||
|
}
|