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
@@ -236,6 +236,7 @@ import type { Product } from '@/models/products'
import { useFundUserStore } from '@/store/fundStore'
import {useConfigStore} from "@/store/configStore";
import { calcFeeInGrams, loadServiceFeeFromSettings } from '@/utils/serviceFee'
import { isStoreClosed, STORE_CLOSED_MESSAGE } from '@/utils/storeHours'
import { formatCashWalletBalanceText, getWeightUnit } from '@/utils/productDealMethod'
import { formatProductWalletBalanceText, getCashWalletBalance, getProductInventoryQuantity } from '@/utils/productAssets'
import { useWalletAssets } from '@/composables/useWalletAssets'
@@ -344,6 +345,7 @@ const priceUnavailable = computed(() => {
const disableTransaction = computed(() =>
loading.value ||
isStoreClosed() ||
form.value?.goldValue === undefined ||
form.value?.goldValue === '' ||
form.value?.goldCash === '' ||
@@ -633,6 +635,10 @@ async function initPrice() {
}
function okConfirm() {
if (isStoreClosed()) {
message.warning(STORE_CLOSED_MESSAGE)
return
}
if (cashValidationMessage.value) {
message.warning(cashValidationMessage.value)
return
@@ -641,6 +647,10 @@ function okConfirm() {
}
async function ok() {
if (isStoreClosed()) {
message.warning(STORE_CLOSED_MESSAGE)
return
}
try {
loading.value = true
infoVisible.value = true