เอาเงื่อนไขการดักโควต้าของเงินเดือนออก

This commit is contained in:
Warunee Tamkoo 2024-03-07 14:48:09 +07:00
parent caa75897e3
commit 295a3d87aa

View file

@ -54,15 +54,15 @@ const typeRangeOps = computed(() => {
/*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */ /*** ฟังก์ชั่นสำหรับ validate ฟอร์ม */
function validateForm() { function validateForm() {
if (typeRef.value.validate()) { if (typeRef.value.validate()) {
if ( // if (
store.roundMainCode === "APR" && // store.roundMainCode === "APR" &&
store.remaining === 0 && // store.remaining === 0 &&
type.value === "FULL" // type.value === "FULL"
) { // ) {
dialogMessageNotify($q, "ไม่สามารถย้ายขั้นได้เนื่องจากโควตาคงเหลือไม่พอ"); // dialogMessageNotify($q, "");
} else { // } else {
onSubmit(); onSubmit();
} // }
} }
} }