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.
81 lines
2.3 KiB
81 lines
2.3 KiB
import request from '@/config/axios'
|
|
|
|
export interface DeliverRecordDetailVO {
|
|
soNumber: string
|
|
soLine: string
|
|
packingNumber: string
|
|
batch: string
|
|
inventoryStatus: string
|
|
fromOwnerCode: string
|
|
fromContainerNumber: string
|
|
fromLocationCode: string
|
|
fromLocationGroupCode: string
|
|
fromAreaCode: string
|
|
toOwnerCode: string
|
|
toContainerNumber: string
|
|
toLocationCode: string
|
|
toLocationGroupCode: string
|
|
toAreaCode: 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 getDeliverRecordDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/deliver-record-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/deliver-record-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询发货记录子详情
|
|
export const getDeliverRecordDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/deliver-record-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增发货记录子
|
|
export const createDeliverRecordDetail = async (data: DeliverRecordDetailVO) => {
|
|
return await request.post({ url: `/wms/deliver-record-detail/create`, data })
|
|
}
|
|
|
|
// 修改发货记录子
|
|
export const updateDeliverRecordDetail = async (data: DeliverRecordDetailVO) => {
|
|
return await request.put({ url: `/wms/deliver-record-detail/update`, data })
|
|
}
|
|
|
|
// 删除发货记录子
|
|
export const deleteDeliverRecordDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/deliver-record-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出发货记录子 Excel
|
|
export const exportDeliverRecordDetail = async (params) => {
|
|
return await request.download({ url: `/wms/deliver-record-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/deliver-record-detail/get-import-template' })
|
|
}
|
|
|
|
// 查询发货记录子列表
|
|
export const getDeliverRecordDetailListToRepeat = async (params) => {
|
|
return await request.get({ url: `/wms/deliver-record-detail/listToRepeatDeliverReceipt`, params })
|
|
}
|