|
@@ -1,22 +1,23 @@
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
-export interface MaterialGroupVO {
|
|
|
+export interface ModelVO {
|
|
|
id?: number
|
|
|
name: string
|
|
|
- parentId: number
|
|
|
- status: number
|
|
|
+ brand: string
|
|
|
+ standard: string
|
|
|
sort: number
|
|
|
- createTime: Date
|
|
|
+ status: number
|
|
|
+ remark: string
|
|
|
}
|
|
|
|
|
|
-// 查询物料组(精简)列表
|
|
|
-export const getSimpleDeptList = async (): Promise<MaterialGroupVO[]> => {
|
|
|
+// 查询规格型号列表
|
|
|
+export const getModelList = async (): Promise<ModelVO[]> => {
|
|
|
return await request.get({ url: '/system/dept/simple-list' })
|
|
|
}
|
|
|
|
|
|
-// 查询部门列表
|
|
|
-export const getDeptPage = async (params: PageParam) => {
|
|
|
- return await request.get({ url: '/system/dept/list', params })
|
|
|
+// 查询规格型号列表
|
|
|
+export const getModelPage = async (params: PageParam) => {
|
|
|
+ return await request.get({ url: '/rq/iot-model/page', params })
|
|
|
}
|
|
|
|
|
|
// 查询部门详情
|
|
@@ -25,12 +26,12 @@ export const getDept = async (id: number) => {
|
|
|
}
|
|
|
|
|
|
// 新增部门
|
|
|
-export const createDept = async (data: MaterialGroupVO) => {
|
|
|
+export const createDept = async (data: ModelVO) => {
|
|
|
return await request.post({ url: '/system/dept/create', data: data })
|
|
|
}
|
|
|
|
|
|
// 修改部门
|
|
|
-export const updateDept = async (params: MaterialGroupVO) => {
|
|
|
+export const updateDept = async (params: ModelVO) => {
|
|
|
return await request.put({ url: '/system/dept/update', data: params })
|
|
|
}
|
|
|
|