Merge branch 'develop' of github.com:Frappet/bma-ehr-frontend into develop
This commit is contained in:
commit
4f0584c415
8 changed files with 9 additions and 60 deletions
|
|
@ -28,7 +28,7 @@ const filterKeyword = ref<string>("");
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
const rowsPerPage = ref<number>(10);
|
const rowsPerPage = ref<number>(10);
|
||||||
const statusFilter = ref<string>("ALL");
|
const statusFilter = ref<string>("NEW");
|
||||||
|
|
||||||
async function updatePagingProp(rowPerpage: number, pageCurrent: number) {
|
async function updatePagingProp(rowPerpage: number, pageCurrent: number) {
|
||||||
rowsPerPage.value = rowPerpage;
|
rowsPerPage.value = rowPerpage;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ function resetFilter() {
|
||||||
getList();
|
getList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const statusFilter = ref<string>("ALL");
|
const statusFilter = ref<string>("NEW");
|
||||||
const currentPage = ref<number>(1);
|
const currentPage = ref<number>(1);
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
|
|
|
||||||
|
|
@ -669,8 +669,6 @@ onMounted(async () => {
|
||||||
map-options
|
map-options
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:options="complainstStore.complainantoptions"
|
:options="complainstStore.complainantoptions"
|
||||||
:rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
|
|
||||||
lazy-rules
|
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
selectComplainant(formData.respondentType);
|
selectComplainant(formData.respondentType);
|
||||||
changeFormData();
|
changeFormData();
|
||||||
|
|
@ -709,41 +707,9 @@ onMounted(async () => {
|
||||||
v-model="formData.organizationId"
|
v-model="formData.organizationId"
|
||||||
:options="organizationOption"
|
:options="organizationOption"
|
||||||
label="เลือกสำนักงาน"
|
label="เลือกสำนักงาน"
|
||||||
:rules="[(val) => !!val || `${'กรุณาเลือกสำนักงาน'}`]"
|
|
||||||
lazy-rules
|
|
||||||
@update:model-value="changeFormData()"
|
@update:model-value="changeFormData()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</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
|
<div
|
||||||
class="col-xs-12 col-sm-4"
|
class="col-xs-12 col-sm-4"
|
||||||
v-if="
|
v-if="
|
||||||
|
|
@ -907,11 +873,6 @@ onMounted(async () => {
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
:label="`${'วันที่มีคำสั่งให้สอบสวน'}`"
|
:label="`${'วันที่มีคำสั่งให้สอบสวน'}`"
|
||||||
:rules="[
|
|
||||||
(val) =>
|
|
||||||
!!val || `${'กรุณาเลือกวันที่มีคำสั่งให้สอบสวน'}`,
|
|
||||||
]"
|
|
||||||
lazy-rules
|
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
@ -958,11 +919,6 @@ onMounted(async () => {
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
:label="`${'วันที่รับทราบข้อกล่าวหา'}`"
|
:label="`${'วันที่รับทราบข้อกล่าวหา'}`"
|
||||||
:rules="[
|
|
||||||
(val) =>
|
|
||||||
!!val || `${'กรุณาเลือกวันที่รับทราบข้อกล่าวหา'}`,
|
|
||||||
]"
|
|
||||||
lazy-rules
|
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
@ -1037,7 +993,7 @@ onMounted(async () => {
|
||||||
for="#daysExtend"
|
for="#daysExtend"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
|
||||||
ref="daysExtendRef"
|
ref="daysExtendRef"
|
||||||
v-model="formData.daysExtend"
|
v-model="formData.daysExtend"
|
||||||
:options="investigateDis.daysExtendOps"
|
:options="investigateDis.daysExtendOps"
|
||||||
|
|
@ -1045,13 +1001,6 @@ onMounted(async () => {
|
||||||
emit-value
|
emit-value
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
map-options
|
map-options
|
||||||
:rules="[
|
|
||||||
(val) =>
|
|
||||||
formData.extendStatus
|
|
||||||
? !!val ||
|
|
||||||
'กรุณาเลือกจำนวนวันที่ต้องการขยาย'
|
|
||||||
: true,
|
|
||||||
]"
|
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
use-input
|
use-input
|
||||||
|
|
@ -1099,7 +1048,6 @@ onMounted(async () => {
|
||||||
"
|
"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
|
||||||
borderless
|
borderless
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:model-value="
|
:model-value="
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const router = useRouter();
|
||||||
const filter = ref<string>(""); //search data table
|
const filter = ref<string>(""); //search data table
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const status = ref<string>("ALL");
|
const status = ref<string>("NEW");
|
||||||
async function fetchListDisciplinary() {
|
async function fetchListDisciplinary() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const filterRef = ref<any>(null);
|
||||||
const attrs = ref<any>(useAttrs());
|
const attrs = ref<any>(useAttrs());
|
||||||
const paging = ref<boolean>(true);
|
const paging = ref<boolean>(true);
|
||||||
const currentPage = ref<number>(1);
|
const currentPage = ref<number>(1);
|
||||||
const statusFilter = ref<string>("ALL");
|
const statusFilter = ref<string>("NEW");
|
||||||
|
|
||||||
/** รับ props มาจากหน้าหลัก */
|
/** รับ props มาจากหน้าหลัก */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
||||||
|
|
@ -138,12 +138,13 @@ function onSubmit() {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
isSave.value = false;
|
isSave.value = false;
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
|
props.fetchData();
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
})
|
||||||
.finally(async () => {
|
.finally(async () => {
|
||||||
await props.fetchData();
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"ยืนยันการบันทึกข้อมูล",
|
"ยืนยันการบันทึกข้อมูล",
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const page = ref<number>(1);
|
||||||
const pageSize = ref<number>(10);
|
const pageSize = ref<number>(10);
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const filter = ref<string>("");
|
const filter = ref<string>("");
|
||||||
const status = ref<string>("ALL");
|
const status = ref<string>("DONE");
|
||||||
/** function เรียกรายการสรุปผลการพิจารณาทางวินัย*/
|
/** function เรียกรายการสรุปผลการพิจารณาทางวินัย*/
|
||||||
async function fetchListResult() {
|
async function fetchListResult() {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ const table = ref<any>(null);
|
||||||
const filterRef = ref<any>(null);
|
const filterRef = ref<any>(null);
|
||||||
const attrs = ref<any>(useAttrs());
|
const attrs = ref<any>(useAttrs());
|
||||||
const paging = ref<boolean>(true);
|
const paging = ref<boolean>(true);
|
||||||
const statusFilter = ref<string>("ALL");
|
const statusFilter = ref<string>("DONE");
|
||||||
/** รับ props มาจากหน้าหลัก */
|
/** รับ props มาจากหน้าหลัก */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
count: Number,
|
count: Number,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue