เพิ่มเงื่อนไข เช็คหน่วยงาน
This commit is contained in:
parent
06134970c9
commit
bf8fb777cf
1 changed files with 7 additions and 2 deletions
|
|
@ -1394,7 +1394,12 @@ const clickSave = async () => {
|
|||
myForm.value!.validate().then(async (result: boolean) => {
|
||||
if (result) {
|
||||
if (modalEdit.value) {
|
||||
await editData();
|
||||
if (selected.value == null) {
|
||||
fails($q, "กรุณาเลือกหน่วยงาน");
|
||||
} else {
|
||||
// console.log("save");
|
||||
await editData();
|
||||
}
|
||||
} else {
|
||||
if (selected.value == "") {
|
||||
fails($q, "กรุณาเลือกหน่วยงาน");
|
||||
|
|
@ -1402,7 +1407,6 @@ const clickSave = async () => {
|
|||
// console.log("save");
|
||||
await saveData();
|
||||
}
|
||||
// await saveData();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -1500,6 +1504,7 @@ const editData = async () => {
|
|||
isActive: isActive.value,
|
||||
isCondition: isCondition.value,
|
||||
conditionNote: conditionNote.value,
|
||||
organizationId: organizationId.value,
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลร่างสำเร็จ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue