|
|
@ -1,6 +1,6 @@ |
|
|
|
import request from '@/config/axios' |
|
|
|
|
|
|
|
export interface PurchaseclaimRequestMainVO { |
|
|
|
export interface PurchaseclaimRequestDetailVO { |
|
|
|
altBatch: string |
|
|
|
amount: Number |
|
|
|
batch: Number |
|
|
@ -31,12 +31,12 @@ export const getPurchaseclaimRequesDetail = async (id: number) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 新增采购索赔申请子
|
|
|
|
export const createPurchaseclaimRequestDetail = async (data: PurchaseclaimRequestMainVO) => { |
|
|
|
export const createPurchaseclaimRequestDetail = async (data: PurchaseclaimRequestDetailVO) => { |
|
|
|
return await request.post({ url: `/wms/purchaseclaim-request-detail/create`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改采购索赔申请子
|
|
|
|
export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimRequestMainVO) => { |
|
|
|
export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimRequestDetailVO) => { |
|
|
|
return await request.put({ url: `/wms/purchaseclaim-request-detail/update`, data }) |
|
|
|
} |
|
|
|
|
|
|
@ -44,13 +44,3 @@ export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimReques |
|
|
|
export const deletePurchaseclaimRequestDetail = async (id: number) => { |
|
|
|
return await request.delete({ url: `/wms/purchaseclaim-request-detail/delete?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 导出采购索赔申请子 Excel
|
|
|
|
export const exportPurchaseclaimRequestDetail = async (params) => { |
|
|
|
return await request.download({ url: `/wms/purchaseclaim-request-detail/export-excel`, params }) |
|
|
|
} |
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|
return request.download({ url: '/wms/purchaseclaim-request-detail/get-import-template' }) |
|
|
|
} |