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

判断币种

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