เพิ่ม คอมม่า /()

This commit is contained in:
setthawutttty 2024-12-10 13:54:37 +07:00
parent 1cb9067f5a
commit e99a4bebc1
2 changed files with 16 additions and 2 deletions

View file

@ -448,7 +448,21 @@ onMounted(async () => {
:key="col.name"
:props="props"
>
{{ col.value ?? "-" }}
<div v-if="col.name == 'amount'">
{{
props.row.amount
? `${props.row.amount.toLocaleString()}${
props.row.amountSpecial !== 0 &&
props.row.amountSpecial
? `(${props.row.amountSpecial.toLocaleString()})`
: ""
}`
: "-"
}}
</div>
<div v-else>
{{ col.value ?? "-" }}
</div>
</q-td>
</q-tr>
</template>