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

import request from '@/config/axios'
export interface BackflushRecordDetailbVO {
processCode: string
bomVersion: string
packingNumber: string
batch: string
inventoryStatus: string
fromLocationCode: string
fromLocationGroupCode: string
fromAreaCode: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
uom: string
number: string
itemCode: string
remark: string
createTime: Date
creator: string
code: string
interfaceType: string
jobDetailId: string
}
// 查询制品收货记录子列表
export const getBackflushRecordDetailbPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/backflush-record-detailb/senior', data })
} else {
return await request.get({ url: `/wms/backflush-record-detailb/page`, params })
}
}
// 查询制品收货记录子详情
export const getBackflushRecordDetailb = async (id: number) => {
return await request.get({ url: `/wms/backflush-record-detailb/get?id=` + id })
}
// 新增制品收货记录子
export const createBackflushRecordDetailb = async (data: BackflushRecordDetailbVO) => {
return await request.post({ url: `/wms/backflush-record-detailb/create`, data })
}
// 修改制品收货记录子
export const updateBackflushRecordDetailb = async (data: BackflushRecordDetailbVO) => {
return await request.put({ url: `/wms/backflush-record-detailb/update`, data })
}
// 删除制品收货记录子
export const deleteBackflushRecordDetailb = async (id: number) => {
return await request.delete({ url: `/wms/backflush-record-detailb/delete?id=` + id })
}
// 导出制品收货记录子 Excel
export const exportBackflushRecordDetailb = async (params) => {
return await request.download({ url: `/wms/backflush-record-detailb/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/backflush-record-detailb/get-import-template' })
}