This commit is contained in:
2026-06-14 21:46:06 +03:30
parent 6e4a407807
commit dad6b0b82c
5 changed files with 129 additions and 15 deletions
+10
View File
@@ -239,6 +239,7 @@ import {useConfigStore} from "@/store/configStore";
import { calcFeeInGrams } from '@/utils/serviceFee'
import { formatCashWalletBalanceText, formatGoldWalletBalanceText } from '@/utils/productDealMethod'
import { getCashWalletBalance } from '@/utils/productAssets'
import { isStoreClosed, STORE_CLOSED_MESSAGE } from '@/utils/storeHours'
const infoVisible = ref(false)
const walletStore = useWalletStore()
@@ -325,6 +326,7 @@ const equivalentPrice = computed(() => usePriceWithoutType(feeInRial.value.toFix
const disableTransaction = computed(() =>
loading.value ||
isStoreClosed() ||
form.value?.goldValue === undefined ||
form.value?.goldValue === '' ||
form.value?.goldCash === '' ||
@@ -640,10 +642,18 @@ async function initPrice() {
}
function okConfirm() {
if (isStoreClosed()) {
message.warning(STORE_CLOSED_MESSAGE)
return
}
confirmAction.value = true
}
async function ok() {
if (isStoreClosed()) {
message.warning(STORE_CLOSED_MESSAGE)
return
}
try {
loading.value = true
infoVisible.value = true