แก้ไขเลือกลูกจ้างออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-08 11:09:34 +07:00
parent b25fab71a4
commit 1cb3c891f6

View file

@ -403,10 +403,10 @@
:visible-columns="visibleColumnsOrder"
:filter="filter"
row-key="id"
selection="single"
selection="multiple"
v-model:selected="selectedToOrder"
>
<template v-slot:body-selection="scope">
<template v-slot:header-selection="scope">
<q-checkbox
keep-color
color="primary"
@ -1408,7 +1408,9 @@ const saveData = async () => {
}
};
const checkSaveOrder = () => {
dialogConfirm($q, () => SaveOrder());
if (selectedToOrder.value.length == 0) {
dialogMessageNotify($q, "กรุณาเลือกคนออกคำสั่ง");
} else dialogConfirm($q, () => SaveOrder());
};
const SaveOrder = async () => {
//
@ -1419,7 +1421,6 @@ const SaveOrder = async () => {
let data = {
id: pId,
};
console.log(data);
showLoader();
await http
.post(config.API.organizationEmployeeSendOrder, data)