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.
76 lines
2.1 KiB
76 lines
2.1 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface DeliverRecordMainVO {
|
||
|
requestNumber: string
|
||
|
jobNumber: string
|
||
|
deliverPlanNumber: string
|
||
|
customerDeliverNumber: string
|
||
|
customerCode: string
|
||
|
customerDockCode: string
|
||
|
carrierCode: string
|
||
|
transferMode: string
|
||
|
vehiclePlateNumber: string
|
||
|
fromWarehouseCode: string
|
||
|
toWarehouseCode: string
|
||
|
outTransactionType: string
|
||
|
inTransactionType: string
|
||
|
executeTime: Date
|
||
|
activeDate: Date
|
||
|
requestTime: Date
|
||
|
dueTime: Date
|
||
|
departmentCode: string
|
||
|
interfaceType: string
|
||
|
number: string
|
||
|
businessType: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
code: string
|
||
|
fromLocationTypes: string
|
||
|
fromAreaCodes: string
|
||
|
toLocationTypes: string
|
||
|
toAreaCodes: string
|
||
|
fromDockCode: string
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询发货记录主列表
|
||
|
export const getDeliverRecordMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/deliver-record-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/deliver-record-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询发货记录主详情
|
||
|
export const getDeliverRecordMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/deliver-record-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增发货记录主
|
||
|
export const createDeliverRecordMain = async (data: DeliverRecordMainVO) => {
|
||
|
return await request.post({ url: `/wms/deliver-record-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改发货记录主
|
||
|
export const updateDeliverRecordMain = async (data: DeliverRecordMainVO) => {
|
||
|
return await request.put({ url: `/wms/deliver-record-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除发货记录主
|
||
|
export const deleteDeliverRecordMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/deliver-record-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出发货记录主 Excel
|
||
|
export const exportDeliverRecordMain = async (params) => {
|
||
|
return await request.download({ url: `/wms/deliver-record-main/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/deliver-record-main/get-import-template' })
|
||
|
}
|