Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2025-04-21 10:01:05 +07:00
commit 275b0b183b
9 changed files with 252 additions and 129 deletions

View file

@ -162,41 +162,6 @@ function addNewImage() {
inputImage.value.click();
}
/**
* งกนตรวจสอบเลขบตรประจำตวประชาชน
* @param value เลขบตรประจำตวประชาชน
*/
async function changeCardID(value: string | number | null) {
if (value != null && typeof value == "string") {
if (value.length == 13 && value != defaultCitizenData.value) {
await checkCitizen(value);
}
}
}
/**
* งกนย API ตรวจสอบเลขบตรประจำตวประชาชนซ
* @param value เลขบตรประจำตวประชาชน
*/
async function checkCitizen(id: string) {
showLoader();
await http
.put(config.API.profileNewCitizenId(id), {
citizenId: id,
})
.then(() => {})
.catch((err) => {
if (err.response.data.status === 500) {
dialogMessageNotify($q, err.response.data.message);
} else {
messageError($q, err);
}
})
.finally(() => {
hideLoader();
});
}
/**
* งกนคนหาขอมลในรายการตวเลอก
* @param val คำคนหา
@ -465,7 +430,6 @@ onMounted(async () => {
maxlength="13"
hide-bottom-space
mask="#############"
@update:model-value="changeCardID"
/>
</div>
<div class="col-3">