|
@@ -395,6 +395,7 @@
|
|
|
<cwg-email-code-popup v-model:visible="dialogDealResult" @confirm="submitCode" :api="emailCodeApi" />
|
|
<cwg-email-code-popup v-model:visible="dialogDealResult" @confirm="submitCode" :api="emailCodeApi" />
|
|
|
<!-- 新增银行弹窗 -->
|
|
<!-- 新增银行弹窗 -->
|
|
|
<add-bank-dialog ref="addBankDialogRef" @success="addSuccess" />
|
|
<add-bank-dialog ref="addBankDialogRef" @success="addSuccess" />
|
|
|
|
|
+ <cwg-confirm-popup />
|
|
|
</cwg-page-wrapper>
|
|
</cwg-page-wrapper>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -424,6 +425,8 @@ const router = useRouter()
|
|
|
import useUserStore from '@/stores/use-user-store'
|
|
import useUserStore from '@/stores/use-user-store'
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
|
const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
|
|
const isZh = computed(() => ['cn', 'zhHant'].includes(locale.value))
|
|
|
|
|
+import { useConfirm } from '@/hooks/useConfirm'
|
|
|
|
|
+const confirm = useConfirm()
|
|
|
// 获取组件实例,用于访问全局挂载的属性和方法(替代 this)
|
|
// 获取组件实例,用于访问全局挂载的属性和方法(替代 this)
|
|
|
const { proxy } = getCurrentInstance()
|
|
const { proxy } = getCurrentInstance()
|
|
|
|
|
|
|
@@ -1756,11 +1759,29 @@ function getFirstDayOfNextMonth() {
|
|
|
// return new Date(nextYear, nextMonth, 1); // 下个月的1日
|
|
// return new Date(nextYear, nextMonth, 1); // 下个月的1日
|
|
|
// }
|
|
// }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+const showCentAccountTransferTip = (login) => {
|
|
|
|
|
+ const selectedAccount = loginOptions.value.find(
|
|
|
|
|
+ (item) => item.login == login,
|
|
|
|
|
+ );
|
|
|
|
|
+ if (!selectedAccount) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ const isCentAccount =
|
|
|
|
|
+ selectedAccount.type == "8" || selectedAccount.currency === "USC";
|
|
|
|
|
+ if (isCentAccount) {
|
|
|
|
|
+ confirm({
|
|
|
|
|
+ title: t("Msg.SystemPrompt"),
|
|
|
|
|
+ content: t("vu.item14") + t("vu.item15") + t("vu.item16"),
|
|
|
|
|
+ confirmText: t("Btn.Confirm"),
|
|
|
|
|
+ cancelText: t("Btn.Cancel"),
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
// -------------------- watch --------------------
|
|
// -------------------- watch --------------------
|
|
|
watch(loginValue, (newVal) => {
|
|
watch(loginValue, (newVal) => {
|
|
|
if (newVal) {
|
|
if (newVal) {
|
|
|
step2.value = true;
|
|
step2.value = true;
|
|
|
|
|
+ showCentAccountTransferTip(newVal)
|
|
|
const found = loginOptions.value.find(opt => opt.login === Number(newVal))
|
|
const found = loginOptions.value.find(opt => opt.login === Number(newVal))
|
|
|
loginValueDoc.value = found.label
|
|
loginValueDoc.value = found.label
|
|
|
showTable();
|
|
showTable();
|