28 lines
580 B
TypeScript
28 lines
580 B
TypeScript
import http from '@/utils/http'
|
|
|
|
const BASE_URL = '/weighManage/material'
|
|
|
|
export interface WeighManageResp {
|
|
id: string
|
|
encoding: string
|
|
materialName: string
|
|
materialSpec: string
|
|
unitWeight: number
|
|
photoUrl: string
|
|
matchResult: string
|
|
}
|
|
|
|
export interface WeighManageQuery {
|
|
encoding: string
|
|
}
|
|
|
|
/** @desc 查询物料信息 */
|
|
export function getMaterialDetail(code: string) {
|
|
return http.get<WeighManageResp>(`/admin/materialInfo/code/${code}`)
|
|
}
|
|
|
|
/** @desc 新增人员管理 */
|
|
export function addPeople(data: any) {
|
|
return http.post(`${BASE_URL}`, data)
|
|
}
|