优化
This commit is contained in:
@@ -2,9 +2,9 @@ import { apiRequest } from '@/api/http'
|
||||
export interface BudgetResult { status: string; usable: boolean; amountCny: number | string; message: string; orderNo: string | null }
|
||||
const base = '/merchant/v1/last-leg/order-budgets'
|
||||
// 创建订单时后端在同一事务记录冻结请求,客户端只在详情核对状态和重试明确失败。
|
||||
export function readOrderFunding(kind: 'procurement' | 'trucking', orderNo: string) {
|
||||
export function readOrderFunding(kind: 'procurement' | 'trucking' | 'looseboard', orderNo: string) {
|
||||
return apiRequest<BudgetResult>({ method: 'GET', url: base + '/' + kind + '/orders/' + encodeURIComponent(orderNo) })
|
||||
}
|
||||
export function retryOrderFunding(kind: 'procurement' | 'trucking', orderNo: string) {
|
||||
export function retryOrderFunding(kind: 'procurement' | 'trucking' | 'looseboard', orderNo: string) {
|
||||
return apiRequest<BudgetResult>({ method: 'POST', url: base + '/' + kind + '/orders/' + encodeURIComponent(orderNo) + '/retry' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user