Commit 94e8e224 authored by 吴春's avatar 吴春

币种显示

parent c1a7b048
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
cars[0].Hotels[0].DetailList.length > 0 cars[0].Hotels[0].DetailList.length > 0
" "
> >
<span class="fz14"> {{ cars[0].Hotels[0].DetailList[0].CurrencyName }}</span> <span class="fz14"> {{ cars[0].Hotels[0].DetailList[0].CurrencyCode }}</span>
</template> </template>
</div> </div>
<div <div
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<span class="din">{{ item.UPriceFormat }}</span> <span class="din">{{ item.UPriceFormat }}</span>
<span class="text-dark" style="font-size: 12px"> <span class="text-dark" style="font-size: 12px">
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2"> <template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
{{ item.CurrencyName }} {{ item.CurrencyCode }}
</template> </template>
/{{ $t("unit.ren") }}</span /{{ $t("unit.ren") }}</span
> >
...@@ -437,6 +437,7 @@ export default defineComponent({ ...@@ -437,6 +437,7 @@ export default defineComponent({
PriceInTangTax: tempPrice.PriceInTangTax, PriceInTangTax: tempPrice.PriceInTangTax,
HotelName: data.HotelRow.HotelName, HotelName: data.HotelRow.HotelName,
CurrencyName: tempPrice.CurrencyName, CurrencyName: tempPrice.CurrencyName,
CurrencyCode: tempPrice.CurrencyCode,
}; };
data.parameters.DetailList.push(dataMsg); data.parameters.DetailList.push(dataMsg);
} }
......
...@@ -129,7 +129,15 @@ ...@@ -129,7 +129,15 @@
<div class="f12 text-grey">{{ $t('hotelorder.orderMoney') }}</div> <div class="f12 text-grey">{{ $t('hotelorder.orderMoney') }}</div>
<div class="dark q-ml-xl"> <div class="dark q-ml-xl">
<span class="din text-subtitle1">{{ moneyFormat(x.Money) }}</span> <span class="din text-subtitle1">{{ moneyFormat(x.Money) }}</span>
<span class="f12">{{ x.CurrencyCode }}</span>
<span class="text-weight-thin">{{ $t("hotel.groupPrice") }}:</span>
<template v-if="b2bUserInfo && b2bUserInfo.groupId == 2">
<span class="f12">{{$t('unit.jp')}}</span>
</template>
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
<span class="f12">{{order.CurrencyCode}}</span>
</template>
</div> </div>
</div> </div>
<div class="row items-center justify-between q-mb-sm q-pb-sm" style="border-bottom: 1px dashed #ddd" <div class="row items-center justify-between q-mb-sm q-pb-sm" style="border-bottom: 1px dashed #ddd"
...@@ -137,7 +145,12 @@ ...@@ -137,7 +145,12 @@
<div class="f12 text-grey">{{ $t('v102.ticket.sjc.c6') }}</div> <div class="f12 text-grey">{{ $t('v102.ticket.sjc.c6') }}</div>
<div class="dark"> <div class="dark">
<span class="f12">{{ moneyFormat(x.MailingMoney) }}</span> <span class="f12">{{ moneyFormat(x.MailingMoney) }}</span>
<span class="f12">{{ x.CurrencyCode }}</span> <template v-if="b2bUserInfo && b2bUserInfo.groupId == 2">
<span class="f12">{{$t('unit.jp')}}</span>
</template>
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
<span class="f12">{{order.CurrencyCode}}</span>
</template>
</div> </div>
</div> </div>
<div class="text-right"> <div class="text-right">
...@@ -171,7 +184,12 @@ ...@@ -171,7 +184,12 @@
<div class="f12 text-green-4">{{ $t('hotelorder.payed') }}</div> <div class="f12 text-green-4">{{ $t('hotelorder.payed') }}</div>
<div class="text-subtitle1 din text-green-14"> <div class="text-subtitle1 din text-green-14">
{{ x.Income.toFixed(2) }} {{ x.Income.toFixed(2) }}
<span class="text-green-4 f12">{{ x.CurrencyCode }}</span> <template v-if="b2bUserInfo && b2bUserInfo.groupId == 2">
<span class="text-green-4 f12">{{$t('unit.jp')}}</span>
</template>
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
<span class="text-green-4 f12">{{order.CurrencyCode}}</span>
</template>
<!-- <span class="text-green-4 f12">{{ $t('unit.jp') }}</span> --> <!-- <span class="text-green-4 f12">{{ $t('unit.jp') }}</span> -->
</div> </div>
</div> </div>
...@@ -229,7 +247,7 @@ export default defineComponent({ ...@@ -229,7 +247,7 @@ export default defineComponent({
data.orders = [] data.orders = []
methods.initOrders() methods.initOrders()
}) })
const b2bUserInfo = getStoreGetter<UserGetter>("user", "getUser");
const data = reactive({ const data = reactive({
PaymentDialog: false, PaymentDialog: false,
orders: [] as Array<any>, orders: [] as Array<any>,
...@@ -348,6 +366,7 @@ export default defineComponent({ ...@@ -348,6 +366,7 @@ export default defineComponent({
methods.init() methods.init()
return { return {
...toRefs(data), ...toRefs(data),
b2bUserInfo,
...methods, ...methods,
moneyFormat moneyFormat
} }
......
...@@ -22,7 +22,12 @@ ...@@ -22,7 +22,12 @@
</div> </div>
<div class="text-negative text-weight-bolder din"> <div class="text-negative text-weight-bolder din">
<span class="text-weight-thin">{{ $t("hotel.car.sumPrice") }}</span> <span class="text-weight-thin">{{ $t("hotel.car.sumPrice") }}</span>
<template v-if="b2bUserInfo && b2bUserInfo.groupId == 2">
<span class="fz14">{{$t('unit.jp')}}</span>
</template>
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
<span class="fz14">{{order.CurrencyCode}}</span> <span class="fz14">{{order.CurrencyCode}}</span>
</template>
<span class="text-h6">{{ moneyFormat(order.Money) }}</span> <span class="text-h6">{{ moneyFormat(order.Money) }}</span>
</div> </div>
<div :class="{ 'text-right q-mt-sm': $q.platform.is.mobile }"> <div :class="{ 'text-right q-mt-sm': $q.platform.is.mobile }">
...@@ -319,8 +324,13 @@ ...@@ -319,8 +324,13 @@
style="border-top: 1px dashed #607d8b33" style="border-top: 1px dashed #607d8b33"
> >
<span class="text-weight-thin">{{ $t("hotel.groupPrice") }}:</span> <span class="text-weight-thin">{{ $t("hotel.groupPrice") }}:</span>
<!-- <span class="fz14">円</span> --> <template v-if="b2bUserInfo && b2bUserInfo.groupId == 2">
<span class="fz14">{{$t('unit.jp')}}</span>
</template>
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
<span class="fz14">{{order.CurrencyCode}}</span> <span class="fz14">{{order.CurrencyCode}}</span>
</template>
<span class="text-subtitle1">{{ moneyFormat(y.HotelMoeny) }}</span> <span class="text-subtitle1">{{ moneyFormat(y.HotelMoeny) }}</span>
</div> </div>
</div> </div>
...@@ -421,7 +431,7 @@ export default defineComponent({ ...@@ -421,7 +431,7 @@ export default defineComponent({
const TCNumRef = ref(null) as any; const TCNumRef = ref(null) as any;
const ContactNameRef = ref(null) as any; const ContactNameRef = ref(null) as any;
const ContactNumberRef = ref(null) as any; const ContactNumberRef = ref(null) as any;
const b2bUserInfo = getStoreGetter<UserGetter>("user", "getUser");
const search = reactive({ const search = reactive({
HotelChooseArray: [], HotelChooseArray: [],
StartDate: "2022/11/25", StartDate: "2022/11/25",
...@@ -749,6 +759,7 @@ export default defineComponent({ ...@@ -749,6 +759,7 @@ export default defineComponent({
methods.initOrderDetails(); methods.initOrderDetails();
return { return {
...toRefs(data), ...toRefs(data),
b2bUserInfo,
...methods, ...methods,
moneyFormat, moneyFormat,
TCNumRef, TCNumRef,
......
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 to comment