Merge branch 'develop' into nice_dev

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-10 17:33:56 +07:00
commit 6509e48215
25 changed files with 38 additions and 89 deletions

View file

@ -146,7 +146,7 @@ const columns = ref<any>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "name",
headerStyle: "font-size: 14px; min-width: 200px",

View file

@ -23,7 +23,7 @@
<div class="q-pa-md row col-12 q-col-gutter-sm">
<q-input
v-model="myData.name"
label="ชื่อ-สกุล"
label="ชื่อ-นามสกุล"
class="col-xs-12 col-sm-6"
hide-bottom-space
:outlined="true"

View file

@ -47,7 +47,7 @@
>
<q-input
v-model="items.fullName"
label="ชื่อ-สกุล"
label="ชื่อ-นามสกุล"
class="col-xs-12 col-sm-6"
hide-bottom-space
:outlined="true"

View file

@ -188,7 +188,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullName",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "personName",
headerStyle: "font-size: 14px; min-width: 250px",

View file

@ -182,7 +182,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullName",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "personName",
headerStyle: "font-size: 14px; min-width: 250px",

View file

@ -368,7 +368,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullname",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullname",
headerStyle: "font-size: 14px; min-width: 200px",

View file

@ -251,7 +251,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullname",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullname",
headerStyle: "font-size: 14px; min-width: 200px",
@ -498,7 +498,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullnameOld",
align: "left",
label: "ชื่อ-สกุล(เดิม)",
label: "ชื่อ-นามสกุล(เดิม)",
sortable: true,
field: "fullnameOld",
headerStyle: "font-size: 14px; min-width: 200px",
@ -583,7 +583,7 @@ const columnsEmployee = ref<QTableProps["columns"]>([
{
name: "fullname",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullname",
headerStyle: "font-size: 14px; min-width: 200px",
@ -802,7 +802,7 @@ const columnsEmployee = ref<QTableProps["columns"]>([
{
name: "fullnameOld",
align: "left",
label: "ชื่อ-สกุล(เดิม)",
label: "ชื่อ-นามสกุล(เดิม)",
sortable: true,
field: "fullnameOld",
headerStyle: "font-size: 14px; min-width: 200px",
@ -886,7 +886,7 @@ const columnsEmployeeTemp = ref<QTableProps["columns"]>([
{
name: "fullname",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullname",
headerStyle: "font-size: 14px; min-width: 200px",
@ -1105,7 +1105,7 @@ const columnsEmployeeTemp = ref<QTableProps["columns"]>([
{
name: "fullnameOld",
align: "left",
label: "ชื่อ-สกุล(เดิม)",
label: "ชื่อ-นามสกุล(เดิม)",
sortable: true,
field: "fullnameOld",
headerStyle: "font-size: 14px; min-width: 200px",
@ -1370,7 +1370,7 @@ const doSearch = async () => {
const onExport = () => {
const head = [
"ลำดับ",
"ชื่อ-สกุล",
"ชื่อ-นามสกุล",
"ตำแหน่ง",
"สายงาน",
"ตำแหน่งในสายงาน",

View file

@ -1089,7 +1089,7 @@ onMounted(async () => {
borderless
outlined
v-model="fullname"
label="ชื่อ-สกุล"
label="ชื่อ-นามสกุล"
/>
</div>
@ -2359,7 +2359,7 @@ onMounted(async () => {
borderless
:outlined="status == true"
v-model="fullname"
label="ชื่อ-สกุล"
label="ชื่อ-นามสกุล"
/>
</div>

View file

@ -79,7 +79,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "name",
headerStyle: "font-size: 14px",
@ -155,7 +155,7 @@ const columns2 = ref<QTableProps["columns"]>([
{
name: "fullname",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullname",
headerStyle: "font-size: 14px",

View file

@ -41,7 +41,7 @@ const columns = ref<any["columns"]>([
{
name: "fullname",
required: true,
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
field: "fullname",
align: "left",
},

View file

@ -84,7 +84,7 @@ const columnsModal = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>
@ -132,7 +132,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>

View file

@ -155,7 +155,7 @@ const columns2 = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "name",
headerStyle: "font-size: 14px",

View file

@ -198,7 +198,7 @@ const columnsOrder = ref<QTableProps["columns"]>([
{
name: "fullnameOld",
align: "left",
label: "ชื่อ-สกุล(เดิม)",
label: "ชื่อ-นามสกุล(เดิม)",
sortable: true,
field: "fullnameOld",
headerStyle: "font-size: 14px; min-width: 200px",

View file

@ -77,7 +77,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullname",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullname",
headerStyle: "font-size: 14px; min-width: 200px",
@ -192,7 +192,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "fullnameOld",
align: "left",
label: "ชื่อ-สกุล(เดิม)",
label: "ชื่อ-นามสกุล(เดิม)",
sortable: true,
field: "fullnameOld",
headerStyle: "font-size: 14px; min-width: 200px",

View file

@ -594,7 +594,7 @@ const columnsModal = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>

View file

@ -71,7 +71,7 @@ const columnsModal = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>
@ -117,7 +117,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ-สกุล",
label: "ชื่อ-นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>

View file

@ -28,7 +28,7 @@ const filterKeyword = ref<string>("");
const maxPage = ref<number>(1);
const page = ref<number>(1);
const rowsPerPage = ref<number>(10);
const statusFilter = ref<string>("ALL");
const statusFilter = ref<string>("NEW");
async function updatePagingProp(rowPerpage: number, pageCurrent: number) {
rowsPerPage.value = rowPerpage;

View file

@ -245,7 +245,7 @@ async function calEndDate(val: string) {
changeFormData();
const date = await new Date(props.data.investigationDateEnd);
formData.investigationDateEnd = await new Date(
date.setDate(date.getDate() + (Number(val) + 1))
date.setDate(date.getDate() + (Number(val)))
);
}

View file

@ -25,7 +25,7 @@ function resetFilter() {
getList();
}
}
const statusFilter = ref<string>("ALL");
const statusFilter = ref<string>("NEW");
const currentPage = ref<number>(1);
const maxPage = ref<number>(1);
const page = ref<number>(1);

View file

@ -230,7 +230,7 @@ async function calEndDate(val: string) {
changeFormData();
const date = await new Date(props.data.disciplinaryDateEnd);
formData.disciplinaryDateEnd = await new Date(
date.setDate(date.getDate() + (Number(val) + 1))
date.setDate(date.getDate() + (Number(val)))
);
}
@ -669,8 +669,6 @@ onMounted(async () => {
map-options
hide-bottom-space
:options="complainstStore.complainantoptions"
:rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
lazy-rules
@update:model-value="
selectComplainant(formData.respondentType);
changeFormData();
@ -709,41 +707,9 @@ onMounted(async () => {
v-model="formData.organizationId"
:options="organizationOption"
label="เลือกสำนักงาน"
:rules="[(val) => !!val || `${'กรุณาเลือกสำนักงาน'}`]"
lazy-rules
@update:model-value="changeFormData()"
/>
</div>
<!-- <div class="col-xs-12 col-sm-3" id="consideredAgency">
<q-select
ref="consideredAgencyRef"
for="selectAgency"
dense
outlined
v-model="formData.consideredAgency"
:options="organizationOption"
label="หน่วยงานที่พิจารณา"
option-value="id"
option-label="name"
hide-bottom-space
emit-value
map-options
:rules="[(val) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]"
lazy-rules
use-input
@filter="(inputValue: any,
doneFn: Function) => filterSelector(inputValue, doneFn, 'filterconsideredAgencytoptions'
)"
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
ไมอม
</q-item-section>
</q-item>
</template>
</q-select>
</div> -->
<div
class="col-xs-12 col-sm-4"
v-if="
@ -907,11 +873,6 @@ onMounted(async () => {
: null
"
:label="`${'วันที่มีคำสั่งให้สอบสวน'}`"
:rules="[
(val) =>
!!val || `${'กรุณาเลือกวันที่มีคำสั่งให้สอบสวน'}`,
]"
lazy-rules
>
<template v-slot:prepend>
<q-icon
@ -958,11 +919,6 @@ onMounted(async () => {
: null
"
:label="`${'วันที่รับทราบข้อกล่าวหา'}`"
:rules="[
(val) =>
!!val || `${'กรุณาเลือกวันที่รับทราบข้อกล่าวหา'}`,
]"
lazy-rules
>
<template v-slot:prepend>
<q-icon
@ -1037,7 +993,7 @@ onMounted(async () => {
for="#daysExtend"
outlined
dense
lazy-rules
ref="daysExtendRef"
v-model="formData.daysExtend"
:options="investigateDis.daysExtendOps"
@ -1045,13 +1001,6 @@ onMounted(async () => {
emit-value
hide-bottom-space
map-options
:rules="[
(val) =>
formData.extendStatus
? !!val ||
'กรุณาเลือกจำนวนวันที่ต้องการขยาย'
: true,
]"
option-label="name"
option-value="id"
use-input
@ -1099,7 +1048,6 @@ onMounted(async () => {
"
outlined
dense
lazy-rules
borderless
hide-bottom-space
:model-value="

View file

@ -22,7 +22,7 @@ const router = useRouter();
const filter = ref<string>(""); //search data table
const page = ref<number>(1);
const maxPage = ref<number>(1);
const status = ref<string>("ALL");
const status = ref<string>("NEW");
async function fetchListDisciplinary() {
showLoader();
await http

View file

@ -9,7 +9,7 @@ const filterRef = ref<any>(null);
const attrs = ref<any>(useAttrs());
const paging = ref<boolean>(true);
const currentPage = ref<number>(1);
const statusFilter = ref<string>("ALL");
const statusFilter = ref<string>("NEW");
/** รับ props มาจากหน้าหลัก */
const props = defineProps({

View file

@ -138,12 +138,13 @@ function onSubmit() {
.then(() => {
isSave.value = false;
success($q, "บันทึกข้อมูลสำเร็จ");
props.fetchData();
})
.catch((err) => {
messageError($q, err);
})
.finally(async () => {
await props.fetchData();
});
},
"ยืนยันการบันทึกข้อมูล",

View file

@ -26,7 +26,7 @@ const page = ref<number>(1);
const pageSize = ref<number>(10);
const maxPage = ref<number>(1);
const filter = ref<string>("");
const status = ref<string>("ALL");
const status = ref<string>("DONE");
/** function เรียกรายการสรุปผลการพิจารณาทางวินัย*/
async function fetchListResult() {
showLoader();

View file

@ -7,7 +7,7 @@ const table = ref<any>(null);
const filterRef = ref<any>(null);
const attrs = ref<any>(useAttrs());
const paging = ref<boolean>(true);
const statusFilter = ref<string>("ALL");
const statusFilter = ref<string>("DONE");
/** รับ props มาจากหน้าหลัก */
const props = defineProps({
count: Number,