Commit 743b2317 by liangjianmin

fix(approve): update API endpoint for order details and simplify data assignment

- Change API endpoint for fetching order details from '/orderList' to '/orderDetail'
- Simplify the assignment of order information by directly using 'base_data' from the response
parent 02ecc34d
Showing with 2 additions and 3 deletions
...@@ -173,8 +173,7 @@ ...@@ -173,8 +173,7 @@
getOrderInfo(orderSn) { getOrderInfo(orderSn) {
this.request(API.getOrderDetail, 'GET', { order_sn: orderSn }).then(res => { this.request(API.getOrderDetail, 'GET', { order_sn: orderSn }).then(res => {
if (res.code === 0) { if (res.code === 0) {
var { list = [] } = res.data || {}; this.orderInfo = res.data.base_data;
this.orderInfo = list[0] || {};
} }
}); });
}, },
......
...@@ -58,7 +58,7 @@ const API = { ...@@ -58,7 +58,7 @@ const API = {
/** /**
* 获取订单详情 * 获取订单详情
*/ */
getOrderDetail: API_BASE + '/api/order/orderList', getOrderDetail: API_BASE + '/api/order/orderDetail',
/** /**
* 获取审批列表 * 获取审批列表
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment