Merge branch 'develop' into dev-tee

This commit is contained in:
setthawutttty 2023-09-08 13:17:41 +07:00
commit 98e7302b09
3 changed files with 12 additions and 6 deletions

View file

@ -30,7 +30,7 @@ export default {
probationGetAssignList: (personalId: string) => probationGetAssignList: (personalId: string) =>
`${finish}/probation-assign-list?personal_id=${personalId}`, `${finish}/probation-assign-list?personal_id=${personalId}`,
probationsGetAssign: (assignId: string) => `${finish}/probation-assign?assign_id=${assignId}`, probationsGetAssign: (assignId: string) => `${finish}/probation-assign?assign_id=${assignId}`,
changestatusProbations: (personalId: string) => `${evaluate}/probation/change-status?personal_id=${personalId}`, changestatusProbations: (personalId: string) => `${evaluate}/report/change-status?personal_id=${personalId}`,
// probationGetAssignList: (personalId: string) => // probationGetAssignList: (personalId: string) =>
// `${finish}/probation-assign-list?personal_id=${personalId}`, // `${finish}/probation-assign-list?personal_id=${personalId}`,

View file

@ -27,7 +27,7 @@ const name = ref<string>("");
const position_line = ref<string>(""); const position_line = ref<string>("");
const position_level = ref<string>(""); const position_level = ref<string>("");
const organization = ref<string>(""); const organization = ref<string>("");
const probation_status = ref<string>(""); const probation_status = ref<number>();
const probation_statusold = ref<string>(""); const probation_statusold = ref<string>("");
const avatarprofile = ref<string>(""); const avatarprofile = ref<string>("");
@ -95,10 +95,12 @@ const probation_statusOP = ref<any>([
{ {
id: 2, id: 2,
label: "พ้นการทดลองปฏิบัติหน้าที่ราชการ", label: "พ้นการทดลองปฏิบัติหน้าที่ราชการ",
disable: true
}, },
{ {
id: 3, id: 3,
label: "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ", label: "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ",
disable: true
}, },
{ {
id: 4, id: 4,
@ -115,10 +117,12 @@ const probation_statusOP = ref<any>([
{ {
id: 7, id: 7,
label: "ขยายระยะเวลาทดลองปฏิบัติหน้าที่ราชการ", label: "ขยายระยะเวลาทดลองปฏิบัติหน้าที่ราชการ",
disable: true
}, },
{ {
id: 8, id: 8,
label: "ดึงรายชื่อไปออกคำสั่งแล้ว", label: "ดึงรายชื่อไปออกคำสั่งแล้ว",
disable: true
}, },
]); ]);
@ -279,6 +283,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
<div class="col-12 text-top">สถานะการทดลองปฏหนาทราชการ</div> <div class="col-12 text-top">สถานะการทดลองปฏหนาทราชการ</div>
<div class="col-12 text-detail"> <div class="col-12 text-detail">
<q-select <q-select
:disable="probation_status==2 || probation_status==3 || probation_status==7 || probation_status==8"
dense dense
borderless borderless
v-model="probation_status" v-model="probation_status"

View file

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