เปลี่ยนจาก ติ้ก เป็น ไอคอนบวก
This commit is contained in:
parent
2695c07f7c
commit
c340f445bc
4 changed files with 200 additions and 108 deletions
|
|
@ -21,10 +21,11 @@ import Table from "@/modules/11_discipline/components/DirectorTable.vue";
|
|||
import DialogDirector from "@/modules/11_discipline/components/DialogDirector.vue";
|
||||
import PopupSendToNext from "@/modules/11_discipline/components/PopupSendToNext.vue";
|
||||
import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
||||
import DialogAddDate from "@/modules/11_discipline/components/DialogAddDate.vue";
|
||||
|
||||
const modalPersonal = ref<boolean>(false);
|
||||
const personId = ref<string>("");
|
||||
|
||||
const modalAddDate = ref<boolean>(false);
|
||||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const checkRoutePermisson = ref<boolean>(
|
||||
|
|
@ -189,8 +190,9 @@ function onSubmit() {
|
|||
* ฟังชั้นคำนวณเวลาวันที่สิ้นสุดจาก วันที่สิ้นสุดการสืบสวน
|
||||
* @param val จำนวนวันที่ต้องการขยาย
|
||||
*/
|
||||
async function calEndDate(val: string) {
|
||||
async function calEndDate(val: any) {
|
||||
changeFormData();
|
||||
formData.investigationDaysExtend = val;
|
||||
const date = await new Date(props.data.investigationDateEnd);
|
||||
formData.investigationDateEnd = await new Date(
|
||||
date.setDate(date.getDate() + Number(val))
|
||||
|
|
@ -993,7 +995,11 @@ onMounted(async () => {
|
|||
{{ props.row.organization }}
|
||||
</div>
|
||||
<div v-else-if="col.name === 'salary'">
|
||||
{{ props.row.salary?props.row.salary.toLocaleString():'0' }}
|
||||
{{
|
||||
props.row.salary
|
||||
? props.row.salary.toLocaleString()
|
||||
: "0"
|
||||
}}
|
||||
</div>
|
||||
<div v-else-if="col.name === 'profileType'">
|
||||
{{
|
||||
|
|
@ -1043,26 +1049,24 @@ onMounted(async () => {
|
|||
>
|
||||
<div>
|
||||
วันที่สืบสวน
|
||||
<q-checkbox
|
||||
|
||||
<q-btn
|
||||
v-if="
|
||||
props.data.investigationExtendHistory.length > 0 &&
|
||||
!isReadonly &&
|
||||
!checkRoutePermisson
|
||||
"
|
||||
:disable="isReadonly"
|
||||
for="#extendStatus"
|
||||
size="md"
|
||||
v-model="investigationExtendStatus"
|
||||
label="ขยายเวลา"
|
||||
color="primary"
|
||||
size="12px"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
class="text-weight-medium q-ml-sm"
|
||||
keep-color
|
||||
@update:model-value="
|
||||
changeFormData();
|
||||
resetExtend();
|
||||
"
|
||||
/>
|
||||
color="primary"
|
||||
class="q-ml-sm"
|
||||
@click="modalAddDate = true"
|
||||
icon="mdi-plus"
|
||||
>
|
||||
<q-tooltip>ขยายเวลา</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
<q-space style="height: 1px" />
|
||||
<div>
|
||||
|
|
@ -1086,35 +1090,7 @@ onMounted(async () => {
|
|||
<div class="q-col-gutter-sm row col-12">
|
||||
<div class="col-12">
|
||||
<div class="row q-col-gutter-sm">
|
||||
<div v-if="investigationExtendStatus" class="col-3">
|
||||
<q-select
|
||||
:class="inputEdit(isReadonly)"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
for="#daysExtend"
|
||||
outlined
|
||||
dense
|
||||
ref="daysExtendRef"
|
||||
v-model="formData.investigationDaysExtend"
|
||||
:options="investigateFactStore.daysExtendOp"
|
||||
label="จำนวนวันที่ต้องการขยาย"
|
||||
emit-value
|
||||
hide-bottom-space
|
||||
map-options
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
use-input
|
||||
@update:model-value="calEndDate"
|
||||
><template v-slot:no-option>
|
||||
<q-item>
|
||||
<q-item-section class="text-grey">
|
||||
ไม่มีข้อมูล
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
</q-select>
|
||||
</div>
|
||||
|
||||
<div v-if="!investigationExtendStatus" class="col-3">
|
||||
<div class="col-3">
|
||||
<datepicker
|
||||
menu-class-name="modalfix"
|
||||
:readonly="
|
||||
|
|
@ -1151,12 +1127,12 @@ onMounted(async () => {
|
|||
borderless
|
||||
hide-bottom-space
|
||||
:model-value="
|
||||
formData.investigationDateStart
|
||||
? date2Thai(
|
||||
formData.investigationDateStart as Date
|
||||
)
|
||||
: null
|
||||
"
|
||||
formData.investigationDateStart
|
||||
? date2Thai(
|
||||
formData.investigationDateStart as Date
|
||||
)
|
||||
: null
|
||||
"
|
||||
:label="`${'วันที่เริ่มการสืบสวน'}`"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
@ -1190,6 +1166,7 @@ onMounted(async () => {
|
|||
</template>
|
||||
</datepicker>
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
<datepicker
|
||||
:class="
|
||||
|
|
@ -1805,6 +1782,14 @@ onMounted(async () => {
|
|||
@update:modal="updatemodalPersonal"
|
||||
:type="isEmpType"
|
||||
/>
|
||||
|
||||
<DialogAddDate
|
||||
v-model:modal="modalAddDate"
|
||||
:calEndDate="calEndDate"
|
||||
:reset="resetExtend"
|
||||
:data="props.data"
|
||||
:type="'investigation'"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style scope>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue