Files
wms-ui/src/apis/weightManage/weightManage.ts

28 lines
580 B
TypeScript
Raw Normal View History

2026-02-28 16:54:47 +08:00
import http from '@/utils/http'
const BASE_URL = '/weighManage/material'
export interface WeighManageResp {
id: string
2026-03-03 17:59:37 +08:00
encoding: string
2026-02-28 16:54:47 +08:00
materialName: string
materialSpec: string
2026-03-03 17:59:37 +08:00
unitWeight: number
photoUrl: string
2026-02-28 16:54:47 +08:00
matchResult: string
}
export interface WeighManageQuery {
2026-03-03 17:59:37 +08:00
encoding: string
2026-02-28 16:54:47 +08:00
}
/** @desc 查询物料信息 */
2026-03-03 17:59:37 +08:00
export function getMaterialDetail(code: string) {
return http.get<WeighManageResp>(`/admin/materialInfo/code/${code}`)
2026-02-28 16:54:47 +08:00
}
/** @desc 新增人员管理 */
export function addPeople(data: any) {
return http.post(`${BASE_URL}`, data)
}