Merge branch 'develop' into nice_dev
This commit is contained in:
commit
0ca66ed4a7
7 changed files with 24 additions and 11 deletions
|
|
@ -109,9 +109,9 @@ watch(
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
for="#ocName"
|
for="#ocName"
|
||||||
label="สรุปผลการพิจารณา"
|
label="ชื่อหน่วยงาน"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกสรุปผลการพิจารณา'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกชื่อหน่วยงาน'}`]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ const data = reactive<FormData>({
|
||||||
persons: [],
|
persons: [],
|
||||||
investigationExtendHistory: [],
|
investigationExtendHistory: [],
|
||||||
isDisciplinary: false,
|
isDisciplinary: false,
|
||||||
|
isAncestorDNA: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
/** ข้อมูล v-model ของฟอร์มเรื่องร้องเรียน */
|
/** ข้อมูล v-model ของฟอร์มเรื่องร้องเรียน */
|
||||||
|
|
@ -164,6 +165,7 @@ function getData() {
|
||||||
data.investigationExtendStatus = dataList.investigationExtendStatus;
|
data.investigationExtendStatus = dataList.investigationExtendStatus;
|
||||||
data.investigationDaysExtend = dataList.investigationDaysExtend;
|
data.investigationDaysExtend = dataList.investigationDaysExtend;
|
||||||
data.isDisciplinary = dataList.isDisciplinary;
|
data.isDisciplinary = dataList.isDisciplinary;
|
||||||
|
data.isAncestorDNA = dataList.isAncestorDNA;
|
||||||
data.investigationExtendHistory =
|
data.investigationExtendHistory =
|
||||||
dataList.investigationExtendHistory ?? [];
|
dataList.investigationExtendHistory ?? [];
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ const formData = reactive<FormData>({
|
||||||
persons: [],
|
persons: [],
|
||||||
investigationExtendHistory: [],
|
investigationExtendHistory: [],
|
||||||
isDisciplinary: false,
|
isDisciplinary: false,
|
||||||
|
isAncestorDNA: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const rows = ref([]);
|
const rows = ref([]);
|
||||||
|
|
@ -272,6 +273,7 @@ watch(props.data, async () => {
|
||||||
organization: person.organization,
|
organization: person.organization,
|
||||||
isSend: person.isSend,
|
isSend: person.isSend,
|
||||||
isDisciplinary: person.isDisciplinary,
|
isDisciplinary: person.isDisciplinary,
|
||||||
|
isAncestorDNA: person.isAncestorDNA,
|
||||||
}));
|
}));
|
||||||
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
||||||
(item: any) => item.isDisciplinary === false && item.isSend === "NEW"
|
(item: any) => item.isDisciplinary === false && item.isSend === "NEW"
|
||||||
|
|
@ -783,7 +785,7 @@ onMounted(async () => {
|
||||||
col.label
|
col.label
|
||||||
}}</span>
|
}}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
<!-- <q-th auto-width></q-th> -->
|
<q-th auto-width></q-th>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
|
|
@ -821,9 +823,9 @@ onMounted(async () => {
|
||||||
{{ col.value }}
|
{{ col.value }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<!-- <q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!isReadonly"
|
v-if="!isReadonly && props.row.isAncestorDNA === false"
|
||||||
size="12px"
|
size="12px"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
@ -834,7 +836,7 @@ onMounted(async () => {
|
||||||
@click="deletePerson(props.row.personId)"
|
@click="deletePerson(props.row.personId)"
|
||||||
><q-tooltip>ลบผู้ถูกร้องเรียน</q-tooltip></q-btn
|
><q-tooltip>ลบผู้ถูกร้องเรียน</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
</q-td> -->
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
</d-table>
|
</d-table>
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ const dataInvestigatefacts = reactive<FormInvestigateFact>({
|
||||||
persons: [],
|
persons: [],
|
||||||
investigationExtendHistory: [],
|
investigationExtendHistory: [],
|
||||||
isDisciplinary: false,
|
isDisciplinary: false,
|
||||||
|
isAncestorDNA:false
|
||||||
});
|
});
|
||||||
|
|
||||||
/** function fetchData สอบสวนความผิดทางวินัย*/
|
/** function fetchData สอบสวนความผิดทางวินัย*/
|
||||||
|
|
|
||||||
|
|
@ -365,6 +365,7 @@ async function fetchDatadetail() {
|
||||||
isSuspend: person.isSuspend,
|
isSuspend: person.isSuspend,
|
||||||
status: person.status,
|
status: person.status,
|
||||||
statusDiscard: person.statusDiscard,
|
statusDiscard: person.statusDiscard,
|
||||||
|
isAncestorDNA: person.isAncestorDNA,
|
||||||
}));
|
}));
|
||||||
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
mainStore.rowsCheck = mainStore.rowsAdd.filter(
|
||||||
(item: any) => item.isSuspend === "NEW" && item.isSend === "NEW"
|
(item: any) => item.isSuspend === "NEW" && item.isSend === "NEW"
|
||||||
|
|
@ -668,6 +669,12 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function deletePerson(id: string) {
|
||||||
|
changeFormData();
|
||||||
|
const dataRow = mainStore.rowsAdd;
|
||||||
|
const updatedRows = dataRow.filter((item: any) => item.personId !== id);
|
||||||
|
mainStore.rowsAdd = updatedRows;
|
||||||
|
}
|
||||||
|
|
||||||
/** Hook */
|
/** Hook */
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|
@ -824,7 +831,7 @@ onMounted(async () => {
|
||||||
col.label
|
col.label
|
||||||
}}</span>
|
}}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
<!-- <q-th auto-width></q-th> -->
|
<q-th auto-width></q-th>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
|
|
@ -862,9 +869,9 @@ onMounted(async () => {
|
||||||
{{ col.value }}
|
{{ col.value }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<!-- <q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!isReadonly"
|
v-if="!isReadonly && props.row.isAncestorDNA === false"
|
||||||
size="12px"
|
size="12px"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
@ -875,7 +882,7 @@ onMounted(async () => {
|
||||||
@click="deletePerson(props.row.personId)"
|
@click="deletePerson(props.row.personId)"
|
||||||
><q-tooltip>ลบผู้ถูกร้องเรียน</q-tooltip></q-btn
|
><q-tooltip>ลบผู้ถูกร้องเรียน</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
</q-td> -->
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
</d-table>
|
</d-table>
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ interface FormData {
|
||||||
persons: object | null;
|
persons: object | null;
|
||||||
investigationExtendHistory: ExtendHistoryObject[];
|
investigationExtendHistory: ExtendHistoryObject[];
|
||||||
isDisciplinary:boolean
|
isDisciplinary:boolean
|
||||||
|
isAncestorDNA:boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ExtendHistoryObject {
|
interface ExtendHistoryObject {
|
||||||
|
|
|
||||||
|
|
@ -306,7 +306,7 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
salary: item.salary === null ? '-':item.salary,
|
salary: item.salary === null ? '-':item.salary,
|
||||||
personId: item.personId,
|
personId: item.personId,
|
||||||
posNo: item.posNo === null ? '-':item.posNo,
|
posNo: item.posNo === null ? '-':item.posNo,
|
||||||
organization: item.organization
|
organization: item.organization,
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
rowsAdd.value = dataList;
|
rowsAdd.value = dataList;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue