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.
62 lines
1.7 KiB
62 lines
1.7 KiB
import request from '@/config/axios'
|
|
|
|
export interface CountJobDetailVO {
|
|
countDetailNumber: string
|
|
ownerCode: string
|
|
packingNumber: string
|
|
containerNumber: string
|
|
batch: string
|
|
inventoryStatus: string
|
|
itemCode: string
|
|
itemName: string
|
|
itemDesc1: string
|
|
itemDesc2: string
|
|
projectCode: string
|
|
qty: number
|
|
uom: string
|
|
number: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: string
|
|
}
|
|
|
|
// 查询盘点任务子列表
|
|
export const getCountJobDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/count-job-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/count-job-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询盘点任务子详情
|
|
export const getCountJobDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/count-job-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增盘点任务子
|
|
export const createCountJobDetail = async (data: CountJobDetailVO) => {
|
|
return await request.post({ url: `/wms/count-job-detail/create`, data })
|
|
}
|
|
|
|
// 修改盘点任务子
|
|
export const updateCountJobDetail = async (data: CountJobDetailVO) => {
|
|
return await request.put({ url: `/wms/count-job-detail/update`, data })
|
|
}
|
|
|
|
// 删除盘点任务子
|
|
export const deleteCountJobDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/count-job-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出盘点任务子 Excel
|
|
export const exportCountJobDetail = async (params) => {
|
|
return await request.download({ url: `/wms/count-job-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/count-job-detail/get-import-template' })
|
|
}
|