| | |
| | | return request.Post<Service.ResponseResult<any>>('/operation/api/v1/test-plan-demo/pageList', params) |
| | | } |
| | | |
| | | export function deleteTestPlan(id: number | string) { |
| | | return request.Delete<Service.ResponseResult<any>>(`/operation/api/v1/test-plan-demo/${id}`) |
| | | } |
| | | |
| | | export function addTestPlan(data: { |
| | | orderMode: number |
| | | planName: string |
| | |
| | | |
| | | export function interruptTestPlanDispatch(planId: number | string) { |
| | | return request.Post<Service.ResponseResult<any>>('/operation/api/v1/test-plan-demo/dispatch/interrupt', null, { |
| | | params: { planId }, |
| | | params: { planId, testPlanId: planId }, |
| | | }) |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | export function closeTestPlanDispatch(planId: number | string) { |
| | | return request.Post<Service.ResponseResult<any>>('/operation/api/v1/test-plan-demo/dispatch/closeTest', null, { |
| | | params: { planId }, |
| | | }) |
| | | } |
| | | |
| | | export function fetchTestPlanDetailOrderPageList(data: { |
| | | endAddress?: string |
| | | orderNumber?: string |
| | | orderStatus?: number |
| | | pageNum: number |
| | | pageSize: number |
| | | plateNumber?: string |
| | | startAddress?: string |
| | | status?: number |
| | | testPlanId: number | string |
| | | }) { |
| | | return request.Post<Service.ResponseResult<any>>('/operation/api/v1/test-plan-demo/detail/pageOrders', data) |
| | |
| | | export function exportTestPlanDetailOrders(data: { |
| | | endAddress?: string |
| | | orderNumber?: string |
| | | orderStatus?: number |
| | | pageNum?: number |
| | | pageSize?: number |
| | | plateNumber?: string |
| | | startAddress?: string |
| | | status?: number |
| | | testPlanId: number | string |
| | | }) { |
| | | const method = request.Post<Blob>('/operation/api/v1/test-plan-demo/detail/exportOrders', data, { |
| | |
| | | return request.Post<Service.ResponseResult<any>>('/operation/api/v1/test-plan-demo/order/reassign', data) |
| | | } |
| | | |
| | | export function assignTestPlanOrderVehicle(data: { |
| | | orderId: number | string |
| | | planId: number | string |
| | | vehicleIds: Array<number | string> |
| | | }) { |
| | | return request.Post<Service.ResponseResult<any>>('/operation/api/v1/test-plan-demo/dispatch/assignVehicle', data) |
| | | } |
| | | |
| | | export function fetchTestPlanVehiclePageList(data: { |
| | | pageNum: number |
| | | pageSize: number |