แก้โหลดไฟล์/วินัยเเก้ เพิ่มฟิล dna

This commit is contained in:
setthawutttty 2025-02-06 14:09:38 +07:00
parent e79fc99618
commit bb42009f3b
7 changed files with 71 additions and 36 deletions

View file

@ -189,6 +189,12 @@ async function getSearch() {
posTypeName: e.posTypeName,
posLevelId: e.posLevelId,
posLevelName: e.posLevelName,
rootDnaId: e.rootDnaId,
child1DnaId: e.child1DnaId,
child2DnaId: e.child2DnaId,
child3DnaId: e.child3DnaId,
child4DnaId: e.child4DnaId,
}));
rows.value = list;

View file

@ -838,7 +838,7 @@ watch(
() => ({ datePayment: datePayment.value, pay: pay.value }),
({ datePayment, pay }) => {
if (datePayment) {
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
ไดกสาขาทวประเทศ งแตนท ${dateThaiRange(
datePayment
)} ภายในวนเวลาทำการของธนาคาร
@ -851,7 +851,7 @@ watch(
`;
}
if (pay == "payment1" && datePayment == null) {
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
ไดกสาขาทวประเทศ งแตนท ... ... ภายในวนเวลาทำการของธนาคาร
หรอผานระบบ Internet payment (Krungthai NEXT/เปาต) ตลอด 24 วโมง
งแตนท ... เปดชำระเง เวลา ... . ... ดชำระเงนเวลา ... .

View file

@ -219,16 +219,45 @@ onMounted(() => {
:loading="isLoadPDF"
flat
round
:disable="!reportType || !nodeId"
color="primary"
icon="download"
:disable="!reportType || !nodeId"
@click.stop.pervent="
genReportXLSX(
detailReport,
`${optionReport.find((e) => e.id === reportType)?.name}`
)
"
>
<q-menu>
<q-list style="min-width: 150px">
<q-item
clickable
v-close-popup
@click.stop.pervent="
genReportXLSX(
detailReport,
`${optionReport.find((e) => e.id === reportType)?.name}`,
'pdf'
)
"
>
<q-item-section avatar
><q-icon color="red" name="mdi-file-pdf"
/></q-item-section>
<q-item-section>ไฟล .pdf</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@click.stop.pervent="
genReportXLSX(
detailReport,
`${optionReport.find((e) => e.id === reportType)?.name}`
)
"
>
<q-item-section avatar
><q-icon color="green" name="mdi-file-excel"
/></q-item-section>
<q-item-section>ไฟล .xlsx</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
</div>

View file

@ -683,6 +683,12 @@ watch(props.data, async () => {
posTypeName: person.posTypeName,
posLevelId: person.posLevelId,
posLevelName: person.posLevelName,
rootDnaId: person.rootDnaId,
child1DnaId: person.child1DnaId,
child2DnaId: person.child2DnaId,
child3DnaId: person.child3DnaId,
child4DnaId: person.child4DnaId,
citizenId: person.idcard,
}));
mainStore.rowsAdd = listDataMain;

View file

@ -375,6 +375,12 @@ async function fetchDatadetail() {
posTypeName: person.posTypeName,
posLevelId: person.posLevelId,
citizenId: person.idcard,
rootDnaId: person.rootDnaId,
child1DnaId: person.child1DnaId,
child2DnaId: person.child2DnaId,
child3DnaId: person.child3DnaId,
child4DnaId: person.child4DnaId,
}));
mainStore.rowsAdd = listDataMain;
mainStore.rowsAddCheck = listDataMain;

View file

@ -58,16 +58,17 @@ const posLevel = ref<string>("");
const posLevelMainOp = ref<PosLevel[]>([]);
const posLevelOp = ref<PosLevel[]>(posLevelMainOp.value);
const offenseDetail = ref<string>("");
const offenseDetail = ref<string>("ALL");
const offenseDetailOp = ref<DataOption[]>([
{ id: "", name: "ทั้งหมด" },
{ id: "ALL", name: "ทั้งหมด" },
{ id: "NOT_SPECIFIED", name: "ยังไม่ระบุ" },
{ id: "NOT_DEADLY", name: "ไม่ร้ายแรง" },
{ id: "DEADLY", name: "ร้ายแรง" },
]);
const disciplinaryFaultLevel = ref<string>("");
const disciplinaryFaultLevel = ref<string>("ALL");
const disciplinaryFaultLevelOp = ref<DataOptioGroup[]>([
{ id: "ALL", name: "ทั้งหมด", disable: false },
{ id: "0", name: "ไม่ร้ายแรง", disable: true },
{ id: "ภาคทัณฑ์", name: "ภาคทัณฑ์", disable: false },
{
@ -86,9 +87,9 @@ const disciplinaryFaultLevelOp = ref<DataOptioGroup[]>([
{ id: "อื่นๆ", name: "อื่นๆ", disable: false },
]);
const status = ref<string>("");
const status = ref<string>("ALL");
const statusOp = ref<DataOption[]>([
{ id: "", name: "ทั้งหมด" },
{ id: "ALL", name: "ทั้งหมด" },
{ id: "NEW", name: "ใหม่" },
{ id: "SEND_INVESTIGATE", name: "มีมูลส่งไปสืบสวนแล้ว" },
{ id: "INVESTIGATE", name: "กำลังสืบสวน" },
@ -128,8 +129,8 @@ async function onUpdateFilter() {
offenseDetail: offenseDetail.value,
disciplinaryFaultLevel: disciplinaryFaultLevel.value,
status: status.value,
posType: posType.value,
posLevel: posLevel.value,
posType: posType.value ? posType.value : null,
posLevel: posLevel.value ? posLevel.value : null,
};
await http
.post(config.API.disciplineReportByType(employeeClass.value), body)
@ -297,26 +298,6 @@ onMounted(async () => {
/></q-item-section>
<q-item-section>ไฟล .pdf</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@click="
genReport(
detailReport,
`รายชื่อที่กระทำความผิดทางวินัย_${
employeeClass == 'officer'
? 'ข้าราชการ กทม. สามัญ'
: 'ลูกจ้างประจำ กทม.'
}_${year + 543}`,
'docx'
)
"
>
<q-item-section avatar
><q-icon color="blue" name="mdi-file-word"
/></q-item-section>
<q-item-section>ไฟล .docx</q-item-section>
</q-item>
<q-item
clickable
v-close-popup

View file

@ -430,6 +430,7 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
* @param data
*/
async function fetchData(data: ArrayPersonAdd[], type?: string) {
console.log("🚀 ~ fetchData ~ data:", data)
const dataList: any = data.map((item: any) => ({
profileType: item.profileType
? item.profileType
@ -468,6 +469,12 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
posTypeName: item.posTypeName,
posLevelId: item.posLevelId,
posLevelName: item.posLevelName,
rootDnaId:item.rootDnaId,
child1DnaId:item.child1DnaId,
child2DnaId:item.child2DnaId,
child3DnaId:item.child3DnaId,
child4DnaId:item.child4DnaId,
}));
const newItems = dataList.filter(