You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yudao-web/src/api/specificationConf/index.ts

47 lines
1.4 KiB
TypeScript

import request from '@/config/axios'
// 品规配置 VO
export interface SpecificationConfVO {
width: number // 宽度
length: number // 长度
height: number // 整堆高度
minArea: number // 最小面积
tolerance: number // 截取高度
name: string // 名称
type: string // 类型
high: number // 高度
}
// 品规配置 API
export const SpecificationConfApi = {
// 查询品规配置分页
getSpecificationConfPage: async (params: any) => {
return await request.get({ url: `/logistics/specification-conf/page`, params })
},
// 查询品规配置详情
getSpecificationConf: async (id: number) => {
return await request.get({ url: `/logistics/specification-conf/get?id=` + id })
},
// 新增品规配置
createSpecificationConf: async (data: SpecificationConfVO) => {
return await request.post({ url: `/logistics/specification-conf/create`, data })
},
// 修改品规配置
updateSpecificationConf: async (data: SpecificationConfVO) => {
return await request.put({ url: `/logistics/specification-conf/update`, data })
},
// 删除品规配置
deleteSpecificationConf: async (id: number) => {
return await request.delete({ url: `/logistics/specification-conf/delete?id=` + id })
},
// 导出品规配置 Excel
exportSpecificationConf: async (params) => {
return await request.download({ url: `/logistics/specification-conf/export-excel`, params })
},
}