优化
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user