ลบ ตรวจสอบเลขบัตรประจำตัวประชาชนซ้ำ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-21 09:54:53 +07:00
parent e23b08556b
commit 2f1637a6b3

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">