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.
66 lines
2.0 KiB
66 lines
2.0 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface PurchaseclaimRecordDetailVO {
|
||
|
batch: string
|
||
|
altBatch: string
|
||
|
poNumber: string
|
||
|
poLine: string
|
||
|
reason: string
|
||
|
singlePrice: number
|
||
|
amount: number
|
||
|
number: string
|
||
|
itemCode: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
itemName: string
|
||
|
itemDesc1: string
|
||
|
itemDesc2: string
|
||
|
projectCode: string
|
||
|
qty: number
|
||
|
uom: string
|
||
|
code: string
|
||
|
interfaceType: string
|
||
|
jobDetailId: string
|
||
|
}
|
||
|
|
||
|
// 查询采购索赔记录子列表
|
||
|
export const getPurchaseclaimRecordDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/purchaseclaim-record-detail/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/purchaseclaim-record-detail/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询采购索赔记录子详情
|
||
|
export const getPurchaseclaimRecordDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/purchaseclaim-record-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增采购索赔记录子
|
||
|
export const createPurchaseclaimRecordDetail = async (data: PurchaseclaimRecordDetailVO) => {
|
||
|
return await request.post({ url: `/wms/purchaseclaim-record-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改采购索赔记录子
|
||
|
export const updatePurchaseclaimRecordDetail = async (data: PurchaseclaimRecordDetailVO) => {
|
||
|
return await request.put({ url: `/wms/purchaseclaim-record-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除采购索赔记录子
|
||
|
export const deletePurchaseclaimRecordDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/purchaseclaim-record-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出采购索赔记录子 Excel
|
||
|
export const exportPurchaseclaimRecordDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/purchaseclaim-record-detail/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/purchaseclaim-record-detail/get-import-template' })
|
||
|
}
|