称重页面
This commit is contained in:
27
src/apis/weightManage/weightManage.ts
Normal file
27
src/apis/weightManage/weightManage.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
const BASE_URL = '/weighManage/material'
|
||||
|
||||
export interface WeighManageResp {
|
||||
id: string
|
||||
materialCode: string
|
||||
materialName: string
|
||||
materialSpec: string
|
||||
weight: number
|
||||
imageUrl: string
|
||||
matchResult: string
|
||||
}
|
||||
|
||||
export interface WeighManageQuery {
|
||||
materialCode: string
|
||||
}
|
||||
|
||||
/** @desc 查询物料信息 */
|
||||
export function getMaterialDetail(query: WeighManageQuery) {
|
||||
return http.get<WeighManageResp>(`${BASE_URL}/detail`, query)
|
||||
}
|
||||
|
||||
/** @desc 新增人员管理 */
|
||||
export function addPeople(data: any) {
|
||||
return http.post(`${BASE_URL}`, data)
|
||||
}
|
||||
Reference in New Issue
Block a user