| | |
| | | data |
| | | }) as ApiPromise |
| | | }, |
| | | getBuyerOrderPageWithProductConditions(data: any): ApiPromise { |
| | | return createAxios({ |
| | | url: `${url}/buyer/page/with-product-conditions`, |
| | | method: 'post', |
| | | data |
| | | }) as ApiPromise |
| | | }, |
| | | getSellerOrderPage(data: any): ApiPromise { |
| | | return createAxios({ |
| | | url: `${url}/seller/page`, |
| | | method: 'post', |
| | | data |
| | | }) as ApiPromise |
| | | }, |
| | | getSellerOrderPageWithProductConditions(data: any): ApiPromise { |
| | | return createAxios({ |
| | | url: `${url}/seller/page/with-product-conditions`, |
| | | method: 'post', |
| | | data |
| | | }) as ApiPromise |
| | |
| | | method: 'get' |
| | | }) as ApiPromise |
| | | }, |
| | | |
| | | |
| | | updateOrderStatusToIsEvaluate(orderId: string): ApiPromise { |
| | | return createAxios({ |
| | | url: `${url}/status/isEvaluate`, |
| | | method: 'post', |
| | | params: { |
| | | orderId |
| | | } |
| | | }) as ApiPromise |
| | | }, |
| | | |
| | | updateOrderStatusToNext(orderId: string): ApiPromise { |
| | | return createAxios({ |
| | | url: `${url}/status/next`, |
| | |
| | | orderId |
| | | } |
| | | }) as ApiPromise |
| | | }, |
| | | |
| | | // 启动并完成审批流程(外部工作流服务) |
| | | startWorkflowAndComplete(data: { processdefId: string; userid: string; businessKey: string }): ApiPromise { |
| | | return createAxios({ |
| | | url: `/test/app/workflow/startProcessAndComplete`, |
| | | method: 'post', |
| | | data |
| | | }) as ApiPromise |
| | | }, |
| | | |
| | | // 更新订单的工作流ID |
| | | updateWorkflowId(orderId: string, workflowId: string): ApiPromise { |
| | | return createAxios({ |
| | | url: `${url}/workflow/update`, |
| | | method: 'post', |
| | | params: { orderId, workflowId } |
| | | }) as ApiPromise |
| | | } |
| | | } |
| | | |