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

This commit is contained in:
Thanit Konmek 2023-08-03 14:49:29 +07:00
commit 98bcbe1bb1
22 changed files with 1510 additions and 926 deletions

View file

@ -137,11 +137,9 @@
<div class="row items-center text-dark q-ml-md">
<div class="column">
<div class="text-bold q-pb-xs text-name">
{{ "แก้ไข้ข้อมูลทะเบียนประวัติลูกจ้างชั่วคราว" }}
</div>
<div class="text-bold q-pb-xs text-sub">
{{ "ลูกจ้างชั่วคราว" }}
{{ fullname }}{{ leaveReason }}
</div>
<div>{{ position }}</div>
</div>
</div>
<q-space />

View file

@ -231,7 +231,7 @@
<q-item
clickable
v-close-popup
@click="clickDelete('test')"
@click="clickDelete(props.row.id)"
>
<q-item-section
style="min-width: 0px"
@ -1354,8 +1354,8 @@ const clickAdd = () => {
};
//
const redirectToPage = (profileId?: string) => {
router.push(`/registryEmployee/edit/${profileId}`);
const redirectToPage = (id?: string) => {
router.push(`/registryEmployee/edit/${id}`);
};
const editDetail = async (row: any) => {
await getPosition(row.id);
@ -1429,7 +1429,7 @@ const showEmployeeTemp = async () => {
if (selected.value == null || selected.value == "") return;
showLoader();
await http
.post(config.API.searchProfileByOcId(selected.value, "all"), {
.post(config.API.searchProfileTemp("all"), {
criterias: cirteria,
})
.then((res) => {
@ -1489,7 +1489,7 @@ const showEmployeeTempOrder = async () => {
if (selected.value == null || selected.value == "") return;
showLoader();
await http
.post(config.API.searchProfileByOcId(selected.value, "all"), {
.post(config.API.searchProfileTemp("all"), {
criterias: cirteria,
})
.then((res) => {

View file

@ -117,7 +117,11 @@
lazy-rules
:readonly="!edit"
:borderless="!edit"
:model-value="date2Thai(informaData.birthDate)"
:model-value="
informaData.birthDate == null
? null
: date2Thai(informaData.birthDate)
"
:rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
:label="`${'วัน/เดือน/ปี เกิด'}`"
>
@ -692,7 +696,7 @@ const defaultAdd = () => {
prefixId: null,
firstname: null,
lastname: null,
birthDate: new Date(),
birthDate: null,
genderId: null,
bloodId: null,
nationality: null,