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
import request from '@/config/axios'
|
|
|
|
export interface ContainerBindRecordMainVO {
|
|
id: number
|
|
number: string
|
|
requestNumber: string
|
|
containerNumber: string
|
|
fromLocationCode: string
|
|
bindType: string
|
|
executeTime: Date
|
|
activeDate: Date
|
|
available: string
|
|
requestTime: Date
|
|
dueTime: Date
|
|
businessType: string
|
|
interfaceType: string
|
|
outTransactionType: string
|
|
inTransactionType: string
|
|
extraProperties: string
|
|
siteId: string
|
|
code: string
|
|
userGroupCode: string
|
|
departmentCode: string
|
|
remark: string
|
|
}
|
|
|
|
// 查询器具绑定记录主列表
|
|
export const getContainerBindRecordMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/container-bind-record-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/container-bind-record-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询器具绑定记录主详情
|
|
export const getContainerBindRecordMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/container-bind-record-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增器具绑定记录主
|
|
export const createContainerBindRecordMain = async (data: ContainerBindRecordMainVO) => {
|
|
return await request.post({ url: `/wms/container-bind-record-main/create`, data })
|
|
}
|
|
|
|
// 修改器具绑定记录主
|
|
export const updateContainerBindRecordMain = async (data: ContainerBindRecordMainVO) => {
|
|
return await request.put({ url: `/wms/container-bind-record-main/update`, data })
|
|
}
|
|
|
|
// 删除器具绑定记录主
|
|
export const deleteContainerBindRecordMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/container-bind-record-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出器具绑定记录主 Excel
|
|
export const exportContainerBindRecordMain = async (params) => {
|
|
return await request.download({ url: `/wms/container-bind-record-main/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/container-bind-record-main/get-import-template' })
|
|
}
|