|
@@ -31,7 +31,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* 获取订单详情
|
|
* 获取订单详情
|
|
|
*/
|
|
*/
|
|
|
- async getDetail(orderId: number) {
|
|
|
|
|
|
|
+ async getDetail(orderId: string | number) {
|
|
|
const res = await api.get('/api/vas/order/detail', {
|
|
const res = await api.get('/api/vas/order/detail', {
|
|
|
params: { order_id: orderId },
|
|
params: { order_id: orderId },
|
|
|
});
|
|
});
|
|
@@ -57,7 +57,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* 取消订单
|
|
* 取消订单
|
|
|
*/
|
|
*/
|
|
|
- async cancel(orderId: number) {
|
|
|
|
|
|
|
+ async cancel(orderId: string | number) {
|
|
|
const res = await api.post('/api/vas/order/cancel', null, {
|
|
const res = await api.post('/api/vas/order/cancel', null, {
|
|
|
params: { order_id: orderId },
|
|
params: { order_id: orderId },
|
|
|
});
|
|
});
|
|
@@ -67,7 +67,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* 管理员更新订单状态
|
|
* 管理员更新订单状态
|
|
|
*/
|
|
*/
|
|
|
- async updateStatus(orderId: number, payload: { status: string; [key: string]: any }) {
|
|
|
|
|
|
|
+ async updateStatus(orderId: string | number, payload: { status: string; [key: string]: any }) {
|
|
|
const res = await api.post('/api/vas/order/admin_update_status', payload, {
|
|
const res = await api.post('/api/vas/order/admin_update_status', payload, {
|
|
|
params: { order_id: orderId },
|
|
params: { order_id: orderId },
|
|
|
});
|
|
});
|
|
@@ -77,7 +77,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* 修改订单用户输入数据 (JSON Patch)
|
|
* 修改订单用户输入数据 (JSON Patch)
|
|
|
*/
|
|
*/
|
|
|
- async patchUserInputs(orderId: number, payload: Record<string, any>) {
|
|
|
|
|
|
|
+ async patchUserInputs(orderId: string | number, payload: Record<string, any>) {
|
|
|
const res = await api.post('/api/vas/order/patch_user_inputs', payload, {
|
|
const res = await api.post('/api/vas/order/patch_user_inputs', payload, {
|
|
|
params: { order_id: orderId },
|
|
params: { order_id: orderId },
|
|
|
});
|
|
});
|
|
@@ -87,7 +87,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* 后台调整订单价格 (优惠 / 减免 / 附加费)
|
|
* 后台调整订单价格 (优惠 / 减免 / 附加费)
|
|
|
*/
|
|
*/
|
|
|
- async adjustPrice(orderId: number, payload: Record<string, any>) {
|
|
|
|
|
|
|
+ async adjustPrice(orderId: string | number, payload: Record<string, any>) {
|
|
|
const res = await api.post('/api/vas/order/adjust_price', payload, {
|
|
const res = await api.post('/api/vas/order/adjust_price', payload, {
|
|
|
params: { order_id: orderId },
|
|
params: { order_id: orderId },
|
|
|
});
|
|
});
|
|
@@ -97,7 +97,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* 获取订单生命周期事件日志
|
|
* 获取订单生命周期事件日志
|
|
|
*/
|
|
*/
|
|
|
- async getEvents(orderId: number) {
|
|
|
|
|
|
|
+ async getEvents(orderId: string | number) {
|
|
|
try {
|
|
try {
|
|
|
const res = await api.get('/api/vas/order-event/list', {
|
|
const res = await api.get('/api/vas/order-event/list', {
|
|
|
params: { order_id: orderId },
|
|
params: { order_id: orderId },
|
|
@@ -114,7 +114,7 @@ export const orderService = {
|
|
|
/**
|
|
/**
|
|
|
* AI 智能解析表单数据 (LLM Data Parsing)
|
|
* AI 智能解析表单数据 (LLM Data Parsing)
|
|
|
*/
|
|
*/
|
|
|
- async parseDataWithLlm(payload: { raw_text?: string; input_raw_str?: string; schema_id?: string | number; [key: string]: any }) {
|
|
|
|
|
|
|
+ async parseDataWithLlm(payload: { raw_text?: string; input_raw_str?: string; schema_id?: string | number;[key: string]: any }) {
|
|
|
const res = await api.post('/api/vas/llm/data_parsing', payload);
|
|
const res = await api.post('/api/vas/llm/data_parsing', payload);
|
|
|
return res.data;
|
|
return res.data;
|
|
|
},
|
|
},
|