|
112 | 112 | <ion-list>
|
113 | 113 | <ion-item>
|
114 | 114 | <ion-label class="ion-text-wrap">{{ translate("Brand") }}</ion-label>
|
115 |
| - <ion-label class="ion-text-wrap" slot="end">{{ currentEComStore.storeName || "-" }}</ion-label> |
| 115 | + <ion-label class="ion-text-wrap" slot="end">{{ getProductStoreName(order.productStoreId) || "-" }}</ion-label> |
116 | 116 | </ion-item>
|
117 | 117 | <ion-item lines="none">
|
118 | 118 | <ion-label class="ion-text-wrap">{{ translate("Channel") }}</ion-label>
|
@@ -335,12 +335,14 @@ export default defineComponent({
|
335 | 335 | getShipmentMethodDesc: "util/getShipmentMethodDesc",
|
336 | 336 | getPaymentMethodDesc: 'util/getPaymentMethodDesc',
|
337 | 337 | userProfile: 'user/getUserProfile',
|
338 |
| - instanceUrl: "user/getInstanceUrl" |
| 338 | + instanceUrl: "user/getInstanceUrl", |
| 339 | + productStores: "util/getProductStores", |
339 | 340 | })
|
340 | 341 | },
|
341 | 342 | async ionViewWillEnter() {
|
342 | 343 | this.isFetchingOrderInfo = true
|
343 | 344 | await this.store.dispatch("orderLookup/getOrderDetails", this.orderId)
|
| 345 | + await this.store.dispatch("util/fetchProductStores") |
344 | 346 | await this.fetchOrderInvoicingFacility()
|
345 | 347 | const instance = this.instanceUrl.split("-")[0]
|
346 | 348 | this.additionalDetailItemExt = await useDynamicImport({ scope: "fulfillment_extensions", module: `${instance}_OrderLookupAdditionalDetailItem`})
|
@@ -408,20 +410,21 @@ export default defineComponent({
|
408 | 410 | } catch(error: any) {
|
409 | 411 | logger.error(error);
|
410 | 412 | }
|
| 413 | + }, |
| 414 | + getProductStoreName(productStoreId: string) { |
| 415 | + return this.productStores.find((store: any) => store.productStoreId === productStoreId)?.storeName || productStoreId |
411 | 416 | }
|
412 | 417 | },
|
413 | 418 | setup() {
|
414 | 419 | const store = useStore();
|
415 | 420 | const userStore = useUserStore()
|
416 |
| - let currentEComStore: any = computed(() => userStore.getCurrentEComStore) |
417 | 421 |
|
418 | 422 | return {
|
419 | 423 | callOutline,
|
420 | 424 | cashOutline,
|
421 | 425 | checkmarkDoneOutline,
|
422 | 426 | closeCircleOutline,
|
423 | 427 | cubeOutline,
|
424 |
| - currentEComStore, |
425 | 428 | downloadOutline,
|
426 | 429 | ellipsisVerticalOutline,
|
427 | 430 | formatCurrency,
|
|
0 commit comments