Commit 654ac7b8 authored by 吴春's avatar 吴春

判断币种

parent 94e8e224
......@@ -259,7 +259,12 @@
<div class="f12 text-grey">{{ $t("hotelorder.orderMoney") }}</div>
<div class="dark q-ml-xl">
<span class="din text-subtitle1">{{ moneyFormat(x.Money) }}</span>
<span class="f12">{{ x.CurrencyCode }}</span>
<template v-if="b2bUserInfo && b2bUserInfo.groupId == 2">
<span class="fz12">{{$t('unit.jp')}}</span>
</template>
<template v-if="b2bUserInfo && b2bUserInfo.groupId != 2">
<span class="fz12">{{x.CurrencyCode}}</span>
</template>
</div>
</div>
<div class="text-right">
......@@ -375,6 +380,7 @@ import { useI18n } from "vue-i18n";
import svgIcon from "../../global/svg-icon.vue";
import { copyToClipboard, useQuasar } from "quasar";
import { getHotelOrderStatus, getSendType, moneyFormat } from "../../../utils/tools";
import { getStoreGetter } from "../../../store/utils"
import { useRouter } from "vue-router";
import BankAccount from "../../BankAccount.vue";
export default defineComponent({
......@@ -385,7 +391,9 @@ export default defineComponent({
const search = inject(DirtionmaryHelper.TICKET_ORDER_SEARCH) as any;
const { t } = useI18n();
const $q = useQuasar();
const b2bUserInfo = getStoreGetter<UserGetter>("user", "getUser");
watch(search, (n, o) => {
if (data.loading) return;
data.loading = true;
......@@ -635,6 +643,7 @@ export default defineComponent({
return {
...toRefs(data),
...methods,
b2bUserInfo,
search,
moneyFormat,
};
......
......@@ -328,7 +328,12 @@
<div class="dark q-ml-xl">
<span class="din text-subtitle1">{{ moneyFormat(x.Money) }}</span>
<!-- <span class="f12">{{ $t("unit.jp") }}</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">{{x.CurrencyCode}}</span>
</template>
</div>
</div>
<div
......@@ -339,7 +344,12 @@
<div class="f12 text-grey">{{ $t("hotelorder.payType.t1") }}</div>
<div class="dark">
<span class="f12">{{ moneyFormat(x.SelfPayMoney) }}</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">{{x.CurrencyCode}}</span>
</template>
<!-- <span class="f12">{{ $t("unit.jp") }}</span> -->
</div>
</div>
......@@ -350,7 +360,12 @@
<div class="f12 text-grey">{{ $t("hotelorder.payType.t2") }}</div>
<div class="dark">
<span class="f12">{{ moneyFormat(x.BeforeMoney) }}</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">{{x.CurrencyCode}}</span>
</template>
<!-- <span class="f12">{{ $t("unit.jp") }}</span> -->
</div>
</div>
......@@ -406,7 +421,13 @@
<div class="f12 text-green-4">{{ $t("hotelorder.payed") }}</div>
<div class="text-subtitle1 din text-green-14">
{{ x.OrderIncome.toFixed(2) }}
<span class="text-green-4 f12">{{ $t("unit.jp") }}</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">{{x.CurrencyCode}}</span>
</template>
</div>
</div>
</div>
......@@ -475,14 +496,14 @@ import { UploadFileInfo, NTag, NUpload } from "naive-ui";
import { slice } from "lodash";
import BankAccount from "../../../BankAccount.vue";
import more from "../../../more.vue";
import { getStoreGetter } from "../../../../store/utils"
export default defineComponent({
components: { svgIcon, NTag, NUpload, BankAccount, more },
setup(props) {
const search = inject(DirtionmaryHelper.HOTEL_ORDER_SEARCH) as any;
const { t } = useI18n();
const $q = useQuasar();
const b2bUserInfo = getStoreGetter<UserGetter>("user", "getUser");
watch(search, (n, o) => {
if (data.loading) return;
data.loading = true;
......@@ -724,6 +745,7 @@ export default defineComponent({
return {
...toRefs(data),
...methods,
b2bUserInfo,
moneyFormat,
};
},
......
......@@ -407,6 +407,7 @@ import message from "src/utils/message";
import { defineComponent, inject, provide, reactive, ref, toRefs } from "vue";
import { useI18n } from "vue-i18n";
import { RoomType, StandardStatus } from "src/@types";
import { getStoreGetter } from "../../store/utils"
import {
getHotelOrderStatus,
getHotelRoomType,
......
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