Merge branch 'develop' of github.com:Frappet/bma-ehr-frontend into develop

* 'develop' of github.com:Frappet/bma-ehr-frontend:
  KPI => รายงาน
  ออกคำสั่ง => fix bug
This commit is contained in:
Warunee Tamkoo 2024-07-12 12:30:51 +07:00
commit 0d544bfd3b
5 changed files with 70 additions and 11 deletions

View file

@ -333,6 +333,8 @@ const formFilter = reactive({
const maxPage = ref<number>(1);
const total = ref<number>(0);
const roundRef = ref<any>(null);
const rowsPerson = ref<ResPerson[]>([]);
const columns = ref<QTableProps["columns"]>([
{
@ -398,8 +400,17 @@ const columns = ref<QTableProps["columns"]>([
* function เป popup เลอกราชช
*/
function onClickModal() {
modal.value = true;
fetchListPerson();
if (typeReport.value === "KPI8") {
roundRef.value.validate();
if (!roundRef.value.hasError) {
modal.value = true;
fetchListPerson();
}
} else {
modal.value = true;
fetchListPerson();
}
}
/**
@ -592,11 +603,13 @@ onMounted(() => {
</template>
</datepicker>
<q-select
ref="roundRef"
class="bg-white"
v-model="round"
outlined
label="รอบการประเมิน"
dense
hide-bottom-space
option-label="name"
option-value="id"
:options="roundOp"
@ -605,6 +618,12 @@ onMounted(() => {
map-options
:disable="roundOp.length === 0"
@update:model-value="changOption(typeReport)"
lazy-rules
:rules="
typeReport === 'KPI8'
? [(val) => !!val || 'กรุณาเลือกรอบการประเมิน']
: []
"
/>
<q-select
v-if="typeReport !== 'KPI8'"