ปรับ เรื่องร้องเรียน

This commit is contained in:
setthawutttty 2023-11-27 16:16:04 +07:00
parent cc2e45666e
commit facadbd837
6 changed files with 73 additions and 14 deletions

View file

@ -244,7 +244,6 @@ async function getData() {
data.persons = dataList.persons;
data.result = dataList.result;
data.disciplineComplaintDocs = dataList.disciplineComplaintDocs;
})
.catch((e) => {
messageError($q, e);
@ -272,7 +271,28 @@ async function onSubmit(data: any) {
/** ยืนยัน มีมูลส่งไปสืบสวน */
function sentInvestigate() {
modalPopup.value = true;
if (complainstStore.rowsAdd.length > 0) {
modalPopup.value = true;
} else {
dialogConfirm($q,()=>sentConfirm(),'ยืนยันส่งไปสืบสวน','ต้องการยืนยันยืนยันส่งไปสืบสวนใช่หรือไม่?')
}
}
function sentConfirm(){
showLoader();
http
.put(config.API.complaintApprove(id.value), {
persons: [],
})
.then((res) => {
router.push(`/discipline/complaints`);
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
function closePopup() {