feat: 多网点展示

This commit is contained in:
2026-07-15 14:15:14 +08:00
parent ea5b1c2532
commit a88952db3a
2 changed files with 23 additions and 3 deletions
+11 -2
View File
@@ -265,9 +265,18 @@
state.orderInfo = res.data;
handleOrderButtons(state.orderInfo);
// 配送方式:门店自提
if (res.data.pickUpStoreId) {
const { data } = await StoreApi.getStoreById(res.data.pickUpStoreId);
const isPickUp = Number(res.data?.deliveryType) === 2;
const pickUpStoreId = Number(
res.data?.pickUpStoreId ||
res.data?.pickUpStore?.id ||
res.data?.pickUpStore?.storeId ||
res.data?.storeId,
);
if (isPickUp && pickUpStoreId > 0) {
const { data } = await StoreApi.getStoreById(pickUpStoreId);
systemStore.value = data || {};
} else {
systemStore.value = {};
}
if (state.orderInfo.deliveryType === 2 && state.orderInfo.payStatus) {
pickUpVerifyRef.value && pickUpVerifyRef.value.markCode(res.data.pickUpVerifyCode);