แก้โหลดไฟล์/วินัยเเก้ เพิ่มฟิล dna
This commit is contained in:
parent
e79fc99618
commit
bb42009f3b
7 changed files with 71 additions and 36 deletions
|
|
@ -189,6 +189,12 @@ async function getSearch() {
|
||||||
posTypeName: e.posTypeName,
|
posTypeName: e.posTypeName,
|
||||||
posLevelId: e.posLevelId,
|
posLevelId: e.posLevelId,
|
||||||
posLevelName: e.posLevelName,
|
posLevelName: e.posLevelName,
|
||||||
|
|
||||||
|
rootDnaId: e.rootDnaId,
|
||||||
|
child1DnaId: e.child1DnaId,
|
||||||
|
child2DnaId: e.child2DnaId,
|
||||||
|
child3DnaId: e.child3DnaId,
|
||||||
|
child4DnaId: e.child4DnaId,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
rows.value = list;
|
rows.value = list;
|
||||||
|
|
|
||||||
|
|
@ -838,7 +838,7 @@ watch(
|
||||||
() => ({ datePayment: datePayment.value, pay: pay.value }),
|
() => ({ datePayment: datePayment.value, pay: pay.value }),
|
||||||
({ datePayment, pay }) => {
|
({ datePayment, pay }) => {
|
||||||
if (datePayment) {
|
if (datePayment) {
|
||||||
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฺฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
|
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
|
||||||
ได้ทุกสาขาทั่วประเทศ ตั้งแต่วันที่ ${dateThaiRange(
|
ได้ทุกสาขาทั่วประเทศ ตั้งแต่วันที่ ${dateThaiRange(
|
||||||
datePayment
|
datePayment
|
||||||
)} ภายในวันเวลาทำการของธนาคาร
|
)} ภายในวันเวลาทำการของธนาคาร
|
||||||
|
|
@ -851,7 +851,7 @@ watch(
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
if (pay == "payment1" && datePayment == null) {
|
if (pay == "payment1" && datePayment == null) {
|
||||||
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฺฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
|
reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย
|
||||||
ได้ทุกสาขาทั่วประเทศ ตั้งแต่วันที่ ... – ... ภายในวันเวลาทำการของธนาคาร
|
ได้ทุกสาขาทั่วประเทศ ตั้งแต่วันที่ ... – ... ภายในวันเวลาทำการของธนาคาร
|
||||||
หรือผ่านระบบ Internet payment (Krungthai NEXT/เป๋าตัง) ตลอด 24 ชั่วโมง
|
หรือผ่านระบบ Internet payment (Krungthai NEXT/เป๋าตัง) ตลอด 24 ชั่วโมง
|
||||||
ตั้งแต่วันที่ ... เปิดชำระเงิน เวลา ... น. – ... ปิดชำระเงินเวลา ... น.
|
ตั้งแต่วันที่ ... เปิดชำระเงิน เวลา ... น. – ... ปิดชำระเงินเวลา ... น.
|
||||||
|
|
|
||||||
|
|
@ -219,16 +219,45 @@ onMounted(() => {
|
||||||
:loading="isLoadPDF"
|
:loading="isLoadPDF"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
:disable="!reportType || !nodeId"
|
||||||
color="primary"
|
color="primary"
|
||||||
icon="download"
|
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>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -683,6 +683,12 @@ watch(props.data, async () => {
|
||||||
posTypeName: person.posTypeName,
|
posTypeName: person.posTypeName,
|
||||||
posLevelId: person.posLevelId,
|
posLevelId: person.posLevelId,
|
||||||
posLevelName: person.posLevelName,
|
posLevelName: person.posLevelName,
|
||||||
|
|
||||||
|
rootDnaId: person.rootDnaId,
|
||||||
|
child1DnaId: person.child1DnaId,
|
||||||
|
child2DnaId: person.child2DnaId,
|
||||||
|
child3DnaId: person.child3DnaId,
|
||||||
|
child4DnaId: person.child4DnaId,
|
||||||
citizenId: person.idcard,
|
citizenId: person.idcard,
|
||||||
}));
|
}));
|
||||||
mainStore.rowsAdd = listDataMain;
|
mainStore.rowsAdd = listDataMain;
|
||||||
|
|
|
||||||
|
|
@ -375,6 +375,12 @@ async function fetchDatadetail() {
|
||||||
posTypeName: person.posTypeName,
|
posTypeName: person.posTypeName,
|
||||||
posLevelId: person.posLevelId,
|
posLevelId: person.posLevelId,
|
||||||
citizenId: person.idcard,
|
citizenId: person.idcard,
|
||||||
|
|
||||||
|
rootDnaId: person.rootDnaId,
|
||||||
|
child1DnaId: person.child1DnaId,
|
||||||
|
child2DnaId: person.child2DnaId,
|
||||||
|
child3DnaId: person.child3DnaId,
|
||||||
|
child4DnaId: person.child4DnaId,
|
||||||
}));
|
}));
|
||||||
mainStore.rowsAdd = listDataMain;
|
mainStore.rowsAdd = listDataMain;
|
||||||
mainStore.rowsAddCheck = listDataMain;
|
mainStore.rowsAddCheck = listDataMain;
|
||||||
|
|
|
||||||
|
|
@ -58,16 +58,17 @@ const posLevel = ref<string>("");
|
||||||
const posLevelMainOp = ref<PosLevel[]>([]);
|
const posLevelMainOp = ref<PosLevel[]>([]);
|
||||||
const posLevelOp = ref<PosLevel[]>(posLevelMainOp.value);
|
const posLevelOp = ref<PosLevel[]>(posLevelMainOp.value);
|
||||||
|
|
||||||
const offenseDetail = ref<string>("");
|
const offenseDetail = ref<string>("ALL");
|
||||||
const offenseDetailOp = ref<DataOption[]>([
|
const offenseDetailOp = ref<DataOption[]>([
|
||||||
{ id: "", name: "ทั้งหมด" },
|
{ id: "ALL", name: "ทั้งหมด" },
|
||||||
{ id: "NOT_SPECIFIED", name: "ยังไม่ระบุ" },
|
{ id: "NOT_SPECIFIED", name: "ยังไม่ระบุ" },
|
||||||
{ id: "NOT_DEADLY", name: "ไม่ร้ายแรง" },
|
{ id: "NOT_DEADLY", name: "ไม่ร้ายแรง" },
|
||||||
{ id: "DEADLY", name: "ร้ายแรง" },
|
{ id: "DEADLY", name: "ร้ายแรง" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const disciplinaryFaultLevel = ref<string>("");
|
const disciplinaryFaultLevel = ref<string>("ALL");
|
||||||
const disciplinaryFaultLevelOp = ref<DataOptioGroup[]>([
|
const disciplinaryFaultLevelOp = ref<DataOptioGroup[]>([
|
||||||
|
{ id: "ALL", name: "ทั้งหมด", disable: false },
|
||||||
{ id: "0", name: "ไม่ร้ายแรง", disable: true },
|
{ id: "0", name: "ไม่ร้ายแรง", disable: true },
|
||||||
{ id: "ภาคทัณฑ์", name: "ภาคทัณฑ์", disable: false },
|
{ id: "ภาคทัณฑ์", name: "ภาคทัณฑ์", disable: false },
|
||||||
{
|
{
|
||||||
|
|
@ -86,9 +87,9 @@ const disciplinaryFaultLevelOp = ref<DataOptioGroup[]>([
|
||||||
{ id: "อื่นๆ", name: "อื่นๆ", disable: false },
|
{ id: "อื่นๆ", name: "อื่นๆ", disable: false },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const status = ref<string>("");
|
const status = ref<string>("ALL");
|
||||||
const statusOp = ref<DataOption[]>([
|
const statusOp = ref<DataOption[]>([
|
||||||
{ id: "", name: "ทั้งหมด" },
|
{ id: "ALL", name: "ทั้งหมด" },
|
||||||
{ id: "NEW", name: "ใหม่" },
|
{ id: "NEW", name: "ใหม่" },
|
||||||
{ id: "SEND_INVESTIGATE", name: "มีมูลส่งไปสืบสวนแล้ว" },
|
{ id: "SEND_INVESTIGATE", name: "มีมูลส่งไปสืบสวนแล้ว" },
|
||||||
{ id: "INVESTIGATE", name: "กำลังสืบสวน" },
|
{ id: "INVESTIGATE", name: "กำลังสืบสวน" },
|
||||||
|
|
@ -128,8 +129,8 @@ async function onUpdateFilter() {
|
||||||
offenseDetail: offenseDetail.value,
|
offenseDetail: offenseDetail.value,
|
||||||
disciplinaryFaultLevel: disciplinaryFaultLevel.value,
|
disciplinaryFaultLevel: disciplinaryFaultLevel.value,
|
||||||
status: status.value,
|
status: status.value,
|
||||||
posType: posType.value,
|
posType: posType.value ? posType.value : null,
|
||||||
posLevel: posLevel.value,
|
posLevel: posLevel.value ? posLevel.value : null,
|
||||||
};
|
};
|
||||||
await http
|
await http
|
||||||
.post(config.API.disciplineReportByType(employeeClass.value), body)
|
.post(config.API.disciplineReportByType(employeeClass.value), body)
|
||||||
|
|
@ -297,26 +298,6 @@ onMounted(async () => {
|
||||||
/></q-item-section>
|
/></q-item-section>
|
||||||
<q-item-section>ไฟล์ .pdf</q-item-section>
|
<q-item-section>ไฟล์ .pdf</q-item-section>
|
||||||
</q-item>
|
</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
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
|
|
|
||||||
|
|
@ -430,6 +430,7 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
* @param data ข้อมูลรายการบุคคล
|
* @param data ข้อมูลรายการบุคคล
|
||||||
*/
|
*/
|
||||||
async function fetchData(data: ArrayPersonAdd[], type?: string) {
|
async function fetchData(data: ArrayPersonAdd[], type?: string) {
|
||||||
|
console.log("🚀 ~ fetchData ~ data:", data)
|
||||||
const dataList: any = data.map((item: any) => ({
|
const dataList: any = data.map((item: any) => ({
|
||||||
profileType: item.profileType
|
profileType: item.profileType
|
||||||
? item.profileType
|
? item.profileType
|
||||||
|
|
@ -468,6 +469,12 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||||
posTypeName: item.posTypeName,
|
posTypeName: item.posTypeName,
|
||||||
posLevelId: item.posLevelId,
|
posLevelId: item.posLevelId,
|
||||||
posLevelName: item.posLevelName,
|
posLevelName: item.posLevelName,
|
||||||
|
|
||||||
|
rootDnaId:item.rootDnaId,
|
||||||
|
child1DnaId:item.child1DnaId,
|
||||||
|
child2DnaId:item.child2DnaId,
|
||||||
|
child3DnaId:item.child3DnaId,
|
||||||
|
child4DnaId:item.child4DnaId,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const newItems = dataList.filter(
|
const newItems = dataList.filter(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue