พัฒนาบุคลากร
This commit is contained in:
parent
7aa9782b7a
commit
1d1490a49b
12 changed files with 480 additions and 141 deletions
|
|
@ -22,8 +22,10 @@ const {
|
|||
} = useCounterMixin();
|
||||
const route = useRoute();
|
||||
const projectId = ref<string>(route.params.id.toLocaleString());
|
||||
|
||||
const status = defineModel<string>('status',{required:true})
|
||||
const checkRoutePermission = ref<boolean>(
|
||||
route.name == "developmentDetailPage"
|
||||
);
|
||||
const status = defineModel<string>("status", { required: true });
|
||||
const provinceOp = ref<DataOption[]>([]);
|
||||
const provinceOpMain = ref<DataOption[]>([]);
|
||||
const budgetOp = ref<DataOption[]>([
|
||||
|
|
@ -262,6 +264,7 @@ onMounted(() => {
|
|||
v-model="formData.dateStart"
|
||||
:locale="'th'"
|
||||
autoApply
|
||||
:readonly="checkRoutePermission"
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
@update:model-value="changeDateStart()"
|
||||
|
|
@ -274,6 +277,7 @@ onMounted(() => {
|
|||
<q-input
|
||||
class="inputgreen"
|
||||
dense
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
:model-value="
|
||||
formData.dateStart ? date2Thai(formData.dateStart) : null
|
||||
|
|
@ -297,6 +301,7 @@ onMounted(() => {
|
|||
menu-class-name="modalfix"
|
||||
v-model="formData.dateEnd"
|
||||
:locale="'th'"
|
||||
:readonly="checkRoutePermission"
|
||||
autoApply
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
|
|
@ -310,6 +315,7 @@ onMounted(() => {
|
|||
<template #trigger>
|
||||
<q-input
|
||||
dense
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
class="inputgreen"
|
||||
:model-value="
|
||||
|
|
@ -332,6 +338,7 @@ onMounted(() => {
|
|||
<div class="col-12 col-sm-6 col-md-3">
|
||||
<q-input
|
||||
dense
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
class="inputgreen"
|
||||
label="รวมระยะเวลา (วัน)"
|
||||
|
|
@ -344,6 +351,7 @@ onMounted(() => {
|
|||
<div class="col-12 q-mt-md">
|
||||
<span class="text-weight-medium text-body1">สถานที่ดำเนินการ</span>
|
||||
<q-btn
|
||||
v-if="!checkRoutePermission"
|
||||
dense
|
||||
flat
|
||||
round
|
||||
|
|
@ -358,6 +366,7 @@ onMounted(() => {
|
|||
<div class="row q-col-gutter-sm">
|
||||
<div class="col-8">
|
||||
<q-input
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
dense
|
||||
class="inputgreen"
|
||||
|
|
@ -367,6 +376,7 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-3">
|
||||
<q-select
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
dense
|
||||
v-model="formData.developmentAddresss[index].provinceId"
|
||||
|
|
@ -394,7 +404,7 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-1 text-center">
|
||||
<q-btn
|
||||
v-if="index !== 0"
|
||||
v-if="index !== 0 && !checkRoutePermission"
|
||||
dense
|
||||
flat
|
||||
round
|
||||
|
|
@ -413,6 +423,7 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-4">
|
||||
<q-select
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
dense
|
||||
v-model="formData.budget"
|
||||
|
|
@ -430,6 +441,7 @@ onMounted(() => {
|
|||
v-if="formData.budget === 'OUTSIDEBUDGET'"
|
||||
outlined
|
||||
dense
|
||||
:readonly="checkRoutePermission"
|
||||
v-model="formData.budgetSub"
|
||||
label="ประเภทย่อย"
|
||||
:options="budgetSubOp"
|
||||
|
|
@ -445,6 +457,7 @@ onMounted(() => {
|
|||
<div class="col-3">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.accept"
|
||||
|
|
@ -456,6 +469,7 @@ onMounted(() => {
|
|||
<div class="col-3">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.receive"
|
||||
|
|
@ -467,6 +481,7 @@ onMounted(() => {
|
|||
<div class="col-3">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.approved"
|
||||
|
|
@ -479,6 +494,7 @@ onMounted(() => {
|
|||
<div class="col-3" v-if="status == 'FINISH'">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.budgetPay"
|
||||
|
|
@ -496,6 +512,7 @@ onMounted(() => {
|
|||
<div class="col-12">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.issues"
|
||||
|
|
@ -508,6 +525,7 @@ onMounted(() => {
|
|||
outlined
|
||||
dense
|
||||
class="inputgreen"
|
||||
:readonly="checkRoutePermission"
|
||||
v-model="formData.chance"
|
||||
label="โอกาสที่จะเกิด"
|
||||
:options="[1, 2, 3, 4]"
|
||||
|
|
@ -516,6 +534,7 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-3">
|
||||
<q-select
|
||||
:readonly="checkRoutePermission"
|
||||
outlined
|
||||
dense
|
||||
class="inputgreen"
|
||||
|
|
@ -539,6 +558,7 @@ onMounted(() => {
|
|||
<div class="col-12">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.riskManagement"
|
||||
|
|
@ -554,6 +574,7 @@ onMounted(() => {
|
|||
<div class="col-12">
|
||||
<q-input
|
||||
outlined
|
||||
:readonly="checkRoutePermission"
|
||||
dense
|
||||
class="inputgreen"
|
||||
v-model="formData.expect"
|
||||
|
|
@ -568,6 +589,7 @@ onMounted(() => {
|
|||
<q-input
|
||||
outlined
|
||||
dense
|
||||
:readonly="checkRoutePermission"
|
||||
class="inputgreen"
|
||||
v-model="formData.topicAcademic"
|
||||
label="หัวข้อ/ประเด็นการฝึกอบรม ศึกษาดูงาน"
|
||||
|
|
@ -577,6 +599,7 @@ onMounted(() => {
|
|||
<q-input
|
||||
outlined
|
||||
dense
|
||||
:readonly="checkRoutePermission"
|
||||
class="inputgreen"
|
||||
v-model="formData.addressAcademic"
|
||||
label="สถานที่ฝึกอบรม ศึกษาดูงาน"
|
||||
|
|
@ -588,6 +611,7 @@ onMounted(() => {
|
|||
dense
|
||||
v-model="formData.provinceActualId"
|
||||
label="จังหวัด"
|
||||
:readonly="checkRoutePermission"
|
||||
:options="provinceOp"
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
|
|
@ -607,8 +631,8 @@ onMounted(() => {
|
|||
>
|
||||
</div>
|
||||
</div>
|
||||
<q-separator />
|
||||
<div class="text-right q-pa-sm">
|
||||
<q-separator v-if="!checkRoutePermission"/>
|
||||
<div class="text-right q-pa-sm" v-if="!checkRoutePermission">
|
||||
<q-btn
|
||||
unelevated
|
||||
label="บันทึก"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue