แก้ไขการแสดงเครื่องหมาย " , " ในจำนวนเงิน

This commit is contained in:
AnandaTon 2023-09-04 17:46:16 +07:00
parent fc38afe05d
commit 1adbf574a6
3 changed files with 463 additions and 131 deletions

View file

@ -335,7 +335,7 @@
/>
</div> -->
<div class="col-xs-6 col-sm-6 col-md-6">
<q-input
<!-- <q-input
:class="getClass(edit)"
:outlined="edit"
dense
@ -348,6 +348,15 @@
@update:modelValue="clickEditRow"
type="number"
hide-bottom-space
/> -->
<CurrencyInput
v-model="amount"
:edit="edit"
:rules="[(val:string) => !!val || `${'กรุณากรอกค่าจ้าง'}`]"
:options="{
currency: 'THB',
}"
:label="`${'ค่าจ้าง'}`"
/>
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
@ -570,6 +579,7 @@ import { useRoute } from "vue-router";
import { useProfileDataStore } from "@/modules/04_registry/store";
import { useCounterMixin } from "@/stores/mixin";
import CurrencyInput from "@/components/CurruncyInput.vue";
import ProfileTable from "@/modules/04_registry/components/Table.vue";
import DialogHeader from "@/modules/04_registry/components/DialogHeader.vue";
import DialogFooter from "@/modules/04_registry/components/DialogFooter.vue";
@ -608,7 +618,7 @@ const {
dialogMessage,
showLoader,
hideLoader,
dialogConfirm
dialogConfirm,
} = mixin;
const route = useRoute();
const id = ref<string>("");
@ -1694,9 +1704,9 @@ const templateDetail = async () => {
/**
* กดบนทกใน dialog
*/
const clickSave = () =>{
dialogConfirm($q,() => SaveData())
}
const clickSave = () => {
dialogConfirm($q, () => SaveData());
};
const SaveData = async () => {
await myForm.value.validate().then(async (result: boolean) => {
if (result) {