2024-04-23 13:40:03 +07:00
|
|
|
<script setup lang="ts">
|
2024-04-24 10:25:44 +07:00
|
|
|
const employmentOffice = defineModel<string>('employmentOffice');
|
|
|
|
|
const bussinessType = defineModel<string>('bussinessType');
|
2024-06-06 17:10:29 +07:00
|
|
|
const jobPosition = defineModel<string>('jobPosition');
|
2024-04-23 13:40:03 +07:00
|
|
|
|
2024-06-06 17:10:29 +07:00
|
|
|
const bussinessTypeEN = defineModel<string>('bussinessTypeEn');
|
|
|
|
|
const jobPositionEN = defineModel<string>('jobPositionEn');
|
2024-04-23 13:40:03 +07:00
|
|
|
|
|
|
|
|
const jobDescription = defineModel<string>('jobDescription');
|
|
|
|
|
|
2024-04-24 10:25:44 +07:00
|
|
|
const payDate = defineModel<string>('payDate');
|
2024-06-07 14:16:50 +07:00
|
|
|
const wageRate = defineModel<number>('wageRate');
|
2024-04-23 13:40:03 +07:00
|
|
|
|
2024-04-24 10:25:44 +07:00
|
|
|
const saleEmployee = defineModel<string>('saleEmployee');
|
2024-04-23 13:40:03 +07:00
|
|
|
|
|
|
|
|
const typeBusinessOptions = [
|
|
|
|
|
{
|
|
|
|
|
value: '1',
|
|
|
|
|
label: 'ประเภทบริษัท 1',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: '2',
|
|
|
|
|
label: 'ประเภทบริษัท 2',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: '3',
|
|
|
|
|
label: 'ประเภทบริษัท 3',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2024-06-06 17:10:29 +07:00
|
|
|
const jobPositionOptions = [
|
2024-04-23 13:40:03 +07:00
|
|
|
{
|
|
|
|
|
value: '1',
|
|
|
|
|
label: 'ตําแหน่งงาน 1',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: '2',
|
|
|
|
|
label: 'ตําแหน่งงาน 2',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: '3',
|
|
|
|
|
label: 'ตําแหน่งงาน 3',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
|
title?: string;
|
|
|
|
|
dense?: boolean;
|
|
|
|
|
outlined?: boolean;
|
|
|
|
|
readonly?: boolean;
|
|
|
|
|
separator?: boolean;
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<div class="col-12 app-text-muted"></div>
|
|
|
|
|
<div class="col-12 row q-col-gutter-y-md">
|
|
|
|
|
<div class="col-3 q-pl-xl app-text-muted">
|
|
|
|
|
{{ $t('businessInformation') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-9 row q-col-gutter-md">
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-12"
|
|
|
|
|
:label="$t('inputCustomerAddress')"
|
2024-04-24 10:25:44 +07:00
|
|
|
v-model="employmentOffice"
|
2024-04-23 13:40:03 +07:00
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-select
|
2024-06-06 17:10:29 +07:00
|
|
|
emit-value
|
|
|
|
|
option-value="label"
|
|
|
|
|
option-label="label"
|
|
|
|
|
map-options
|
2024-04-23 13:40:03 +07:00
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
2024-04-24 10:25:44 +07:00
|
|
|
v-model="bussinessType"
|
2024-04-23 13:40:03 +07:00
|
|
|
:options="typeBusinessOptions"
|
|
|
|
|
:label="$t('businessType')"
|
|
|
|
|
class="col-6"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-6"
|
|
|
|
|
:label="$t('businessTypeEN')"
|
2024-04-24 10:25:44 +07:00
|
|
|
v-model="bussinessTypeEN"
|
2024-04-23 13:40:03 +07:00
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-select
|
2024-06-06 17:10:29 +07:00
|
|
|
emit-value
|
|
|
|
|
option-value="label"
|
|
|
|
|
option-label="label"
|
|
|
|
|
map-options
|
2024-04-23 13:40:03 +07:00
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
2024-06-06 17:10:29 +07:00
|
|
|
v-model="jobPosition"
|
|
|
|
|
:options="jobPositionOptions"
|
2024-04-23 13:40:03 +07:00
|
|
|
:label="$t('jobPosition')"
|
|
|
|
|
class="col-6"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-6"
|
|
|
|
|
:label="$t('jobPositionEN')"
|
2024-06-06 17:10:29 +07:00
|
|
|
v-model="jobPositionEN"
|
2024-04-23 13:40:03 +07:00
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-6"
|
|
|
|
|
:label="$t('jobDescription')"
|
|
|
|
|
v-model="jobDescription"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-3"
|
|
|
|
|
:label="$t('payDay')"
|
2024-04-24 10:25:44 +07:00
|
|
|
v-model="payDate"
|
2024-04-23 13:40:03 +07:00
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="mdi-calendar-blank-outline"
|
|
|
|
|
color="primary"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
size="16px"
|
|
|
|
|
>
|
|
|
|
|
<q-popup-proxy
|
|
|
|
|
cover
|
|
|
|
|
transition-show="scale"
|
|
|
|
|
transition-hide="scale"
|
|
|
|
|
>
|
2024-04-24 10:25:44 +07:00
|
|
|
<q-date v-model="payDate" mask="YYYY-MM-DD HH:mm">
|
2024-04-23 13:40:03 +07:00
|
|
|
<div class="row items-center justify-end">
|
|
|
|
|
<q-btn v-close-popup label="Close" color="primary" flat />
|
|
|
|
|
</div>
|
|
|
|
|
</q-date>
|
|
|
|
|
</q-popup-proxy>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<!-- <q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-3"
|
|
|
|
|
:label="$t('payDay')"
|
|
|
|
|
v-model="payDay"
|
|
|
|
|
/> -->
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-3"
|
|
|
|
|
:label="$t('payRate')"
|
2024-06-07 14:16:50 +07:00
|
|
|
v-model="wageRate"
|
2024-04-23 13:40:03 +07:00
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
:dense="dense"
|
|
|
|
|
:outlined="!readonly"
|
|
|
|
|
:readonly="readonly"
|
|
|
|
|
:borderless="readonly"
|
|
|
|
|
hide-bottom-space
|
|
|
|
|
class="col-6"
|
|
|
|
|
:label="$t('salesPerson')"
|
2024-04-24 10:25:44 +07:00
|
|
|
v-model="saleEmployee"
|
2024-04-23 13:40:03 +07:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<q-separator
|
|
|
|
|
v-if="separator"
|
|
|
|
|
class="col-12 q-mb-md"
|
|
|
|
|
style="padding-block: 0.5px; margin-top: 32px"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|