From 2f1637a6b3b8d0b8357cc4c162ff6a8918d9df92 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 21 Apr 2025 09:54:53 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A5=E0=B8=9A=20=E0=B8=95=E0=B8=A3?= =?UTF-8?q?=E0=B8=A7=E0=B8=88=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=82=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=A3=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=88=E0=B8=B3=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=8A=E0=B8=B2=E0=B8=8A=E0=B8=99=E0=B8=8B?= =?UTF-8?q?=E0=B9=89=E0=B8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Receive/ReceiveAddPerson.vue | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/src/modules/05_placement/components/Receive/ReceiveAddPerson.vue b/src/modules/05_placement/components/Receive/ReceiveAddPerson.vue index a037c594f..f228966a4 100644 --- a/src/modules/05_placement/components/Receive/ReceiveAddPerson.vue +++ b/src/modules/05_placement/components/Receive/ReceiveAddPerson.vue @@ -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" />