แก้ไขเลือกลูกจ้างออกคำสั่ง
This commit is contained in:
parent
b25fab71a4
commit
1cb3c891f6
1 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue