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.0 KiB
72 lines
2.0 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface CountRecordDetailVO {
|
||
|
countDetailNumber: string
|
||
|
ownerCode: string
|
||
|
packingNumber: string
|
||
|
containerNumber: string
|
||
|
batch: string
|
||
|
locationCode: string
|
||
|
locationGroupCode: string
|
||
|
areaCode: string
|
||
|
inventoryStatus: string
|
||
|
countQty: number
|
||
|
countTime: Date
|
||
|
countUser: string
|
||
|
countDescription: string
|
||
|
itemName: string
|
||
|
itemDesc1: string
|
||
|
itemDesc2: string
|
||
|
projectCode: string
|
||
|
qty: number
|
||
|
uom: string
|
||
|
code: string
|
||
|
interfaceType: string
|
||
|
number: string
|
||
|
itemCode: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creatorId: string
|
||
|
jobDetailId: string
|
||
|
}
|
||
|
|
||
|
// 查询盘点记录子列表
|
||
|
export const getCountRecordDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/count-record-detail/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/count-record-detail/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询盘点记录子详情
|
||
|
export const getCountRecordDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/count-record-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增盘点记录子
|
||
|
export const createCountRecordDetail = async (data: CountRecordDetailVO) => {
|
||
|
return await request.post({ url: `/wms/count-record-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改盘点记录子
|
||
|
export const updateCountRecordDetail = async (data: CountRecordDetailVO) => {
|
||
|
return await request.put({ url: `/wms/count-record-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除盘点记录子
|
||
|
export const deleteCountRecordDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/count-record-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出盘点记录子 Excel
|
||
|
export const exportCountRecordDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/count-record-detail/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/count-record-detail/get-import-template' })
|
||
|
}
|