handle huge things!

This commit is contained in:
2026-06-03 22:04:45 +03:30
parent 198f0a164b
commit f82a0c3873
29 changed files with 778 additions and 445 deletions
@@ -32,15 +32,20 @@
</div>
<div class="flex mt-3 justify-between items-center">
<div>تعداد موجودی:</div>
<div class="flex gap-1 items-center">
<div class="font-bold">{{ val.product.wallet.gold }}</div>
<div>{{ val.product.unit }}</div>
<div class="flex flex-col items-end gap-0.5">
<div class="flex gap-1 items-center">
<div class="font-bold">{{ val.product.wallet.gold }}</div>
<div>{{ getProductQuantityUnit(val.product) }}</div>
</div>
<div v-if="getProductUnitWeightLabel(val.product)" class="text-xs text-gray-500">
هر عدد {{ getProductUnitWeightLabel(val.product) }}
</div>
</div>
</div>
<div class="flex justify-between items-center mt-2">
<div>تعداد درخواستی:</div>
<div class="flex gap-1 items-center w-40%">
<BasicInput v-model:value="val.count" addon-before="عدد"/>
<BasicInput v-model:value="val.count" :addon-before="getProductQuantityUnit(val.product)"/>
</div>
</div>
</div>
@@ -104,6 +109,7 @@ import {message} from "ant-design-vue"
import New_EditAddress from "@/views/base/address/components/New_EditAddress.vue"
import mesImg from "@/assets/img/mesImg.jpg";
import noghrehImg from "@/assets/img/noghrehImg.webp";
import { getProductQuantityUnit, getProductUnitWeightLabel } from '@/utils/productDealMethod'
const items = ref<PInventory[]>()
const baseItems = ref<PInventory[]>()