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.
62 lines
1.6 KiB
62 lines
1.6 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface PurchaseDetailVO {
|
||
|
lineNumber: string
|
||
|
erpLocationCode: string
|
||
|
projectCode: string
|
||
|
stdPackQty: number
|
||
|
stdPackUnit: string
|
||
|
supplierQty: number
|
||
|
supplierUom: string
|
||
|
convertRate: number
|
||
|
shippedQty: number
|
||
|
receivedQty: number
|
||
|
returnedQty: number
|
||
|
putawayQty: number
|
||
|
overReceivingPercent: number
|
||
|
singlePrice: number
|
||
|
amount: number
|
||
|
number: string
|
||
|
itemCode: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
orderQty: number
|
||
|
uom: string
|
||
|
updateTime: Date
|
||
|
updater: string
|
||
|
concurrencyStamp: string
|
||
|
status: string
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询采购订单子列表
|
||
|
export const getPurchaseDetailPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/purchase-detail/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询采购订单子详情
|
||
|
export const getPurchaseDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/purchase-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增采购订单子
|
||
|
export const createPurchaseDetail = async (data: PurchaseDetailVO) => {
|
||
|
return await request.post({ url: `/wms/purchase-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改采购订单子
|
||
|
export const updatePurchaseDetail = async (data: PurchaseDetailVO) => {
|
||
|
return await request.put({ url: `/wms/purchase-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除采购订单子
|
||
|
export const deletePurchaseDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/purchase-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出采购订单子 Excel
|
||
|
export const exportPurchaseDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/purchase-detail/export-excel`, params })
|
||
|
}
|