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.
72 lines
2.2 KiB
72 lines
2.2 KiB
import request from '@/config/axios'
|
|
|
|
export interface InventoryinitRequestDetailVO {
|
|
ownerCode: string
|
|
packingNumber: string
|
|
containerNumber: string
|
|
batch: string
|
|
altBatch: string
|
|
arriveDate: Date
|
|
produceDate: Date
|
|
expireDate: Date
|
|
inventoryStatus: string
|
|
locationCode: string
|
|
locationGroupCode: string
|
|
areaCode: string
|
|
stdPackQty: number
|
|
stdPackUnit: string
|
|
qty: number
|
|
number: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: string
|
|
itemName: string
|
|
itemDesc1: string
|
|
itemDesc2: string
|
|
projectCode: string
|
|
uom: string
|
|
updateTime: Date
|
|
updater: string
|
|
itemCode: string
|
|
}
|
|
|
|
// 查询库存初始化申请子列表
|
|
export const getInventoryinitRequestDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/inventoryinit-request-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/inventoryinit-request-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询库存初始化申请子详情
|
|
export const getInventoryinitRequestDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/inventoryinit-request-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增库存初始化申请子
|
|
export const createInventoryinitRequestDetail = async (data: InventoryinitRequestDetailVO) => {
|
|
return await request.post({ url: `/wms/inventoryinit-request-detail/create`, data })
|
|
}
|
|
|
|
// 修改库存初始化申请子
|
|
export const updateInventoryinitRequestDetail = async (data: InventoryinitRequestDetailVO) => {
|
|
return await request.put({ url: `/wms/inventoryinit-request-detail/update`, data })
|
|
}
|
|
|
|
// 删除库存初始化申请子
|
|
export const deleteInventoryinitRequestDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/inventoryinit-request-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出库存初始化申请子 Excel
|
|
export const exportInventoryinitRequestDetail = async (params) => {
|
|
return await request.download({ url: `/wms/inventoryinit-request-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/inventoryinit-request-detail/get-import-template' })
|
|
}
|