This commit is contained in:
zc
2026-03-05 18:14:25 +08:00
parent 0c40b20df7
commit d014699b95
2 changed files with 146 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ const BASE_URL = '/weighManage/workOrder'
export interface WorkOrderResp {
id: string
title: string
orderNo: string
materialName: string
encoding: string
unitWeight: string
@@ -14,6 +15,7 @@ export interface WorkOrderResp {
totalCount: string
createUserString: string
updateUserString: string
matchResult: string
}
export interface WorkOrderInfoResp {
@@ -49,6 +51,11 @@ export function getWorkOrder(id: string) {
return http.get<Array<WorkOrderInfoResp>>(`${BASE_URL}/${id}`)
}
/** @desc 新增工作订单 */
export function addWorkOrder(data: any) {
return http.post(`${BASE_URL}`, data)
}
/** @desc 删除工作订单 */
export function deleteWorkOrder(ids: string | Array<string>) {
return http.del(`${BASE_URL}/${ids}`)