feat:添加店铺订单详情api
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
handleOrderButtons,
|
||||
} from '@/sheep/hooks/useGoods';
|
||||
import OrderApi from '@/sheep/api/trade/order';
|
||||
import { getOpenOrderDetail } from '@/sheep/api/ai';
|
||||
import { getOrderDetail as getAiOrderDetail, getOpenOrderDetail } from '@/sheep/api/ai';
|
||||
import DeliveryApi from '@/sheep/api/trade/delivery';
|
||||
import card_order from '@/components/orderItem/card_order.vue';
|
||||
import truckLine from '@/components/truckLine/truckLine.vue'
|
||||
@@ -112,6 +112,7 @@
|
||||
merchantTradeNo: '', // 商户订单号
|
||||
comeinType: '', // 进入订单详情的来源类型
|
||||
orderType: '',
|
||||
source: '',
|
||||
});
|
||||
|
||||
// ========== 门店自提(核销) ==========
|
||||
@@ -134,7 +135,9 @@
|
||||
merchant_trade_no: state.merchantTradeNo,
|
||||
});
|
||||
} else {
|
||||
if (String(state.orderType) === '5') {
|
||||
if (String(state.source) === 'aishop') {
|
||||
res = await getAiOrderDetail({ id });
|
||||
} else if (String(state.orderType) === '5') {
|
||||
res = await getOpenOrderDetail({ id });
|
||||
} else {
|
||||
res = await OrderApi.getOrderDetail(id);
|
||||
@@ -174,6 +177,9 @@
|
||||
if (options.type !== undefined) {
|
||||
state.orderType = options.type;
|
||||
}
|
||||
if (options.source !== undefined) {
|
||||
state.source = options.source;
|
||||
}
|
||||
state.orderInfo.id = id;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user