Merge branch 'develop' into dev
* develop: roll back leave fix commander fix fix ระบบลา: ไม่บังคับเลือกผู้บังคับบัญชา fix:education fix: api fix: probation api fix(probation):status fix fix(probation): statusProbationMain fix(leave-report) diable btn search
This commit is contained in:
commit
f737fe26b1
22 changed files with 92 additions and 53 deletions
|
|
@ -129,10 +129,7 @@ const getClass = (val: boolean) => {
|
|||
<q-form ref="myform">
|
||||
<div class="row col-12 items-center q-col-gutter-x-sm q-col-gutter-y-xs">
|
||||
<div class="col-12 row q-col-gutter-sm">
|
||||
<div
|
||||
class="col-xs-12 col-sm-3"
|
||||
v-if="positionLevelName !== 'ปฏิบัติงาน'"
|
||||
>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<q-select
|
||||
:class="getClass(status == 'checkRegister' || status == 'payment')"
|
||||
:readonly="!(status == 'checkRegister' || status == 'payment')"
|
||||
|
|
@ -165,10 +162,7 @@ const getClass = (val: boolean) => {
|
|||
:label="`${'ชื่อปริญญา'}`"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="col-xs-12 col-sm-3"
|
||||
v-if="positionLevelName !== 'ปฏิบัติงาน'"
|
||||
>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<q-input
|
||||
:class="getClass(status == 'checkRegister' || status == 'payment')"
|
||||
:outlined="status == 'checkRegister' || status == 'payment'"
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ async function getList() {
|
|||
.get(
|
||||
config.API.probationPersonalList() +
|
||||
`?status=${
|
||||
commandType.value ? (commandType.value == "C-PM-11" ? 3 : 2) : ""
|
||||
commandType.value ? (commandType.value == "C-PM-11" ? 2 : 3) : ""
|
||||
}&page=${pagination.value.page}&pageSize=${
|
||||
pagination.value.rowsPerPage
|
||||
}&keyword=${filter.value.trim()}`
|
||||
|
|
@ -254,6 +254,7 @@ watch(
|
|||
listCommand.value = data.filter(
|
||||
(v: any) => v.code === "C-PM-11" || v.code === "C-PM-12"
|
||||
);
|
||||
console.log(listCommand.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ onMounted(async () => {
|
|||
:checkPermission="probationStore?.dataPermissions?.tab2?.isEdit as boolean"
|
||||
:is-max="probationStore.tabs.length === 3"
|
||||
/>
|
||||
|
||||
<q-tab-panels
|
||||
v-model="tab"
|
||||
animated
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ async function FileDownload(type: string) {
|
|||
if (dataRole.value == "mentor") {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.reportEvaluateRecord1(type, numTab.id))
|
||||
.get(config.API.reportEvaluateRecord2(type, numTab.id))
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
await genReport(
|
||||
|
|
@ -108,7 +108,7 @@ async function FileDownload(type: string) {
|
|||
//ผุ้บังคับ
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.reportEvaluateRecord1(type, numTab.id))
|
||||
.get(config.API.reportEvaluateRecord2(type, numTab.id))
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
await genReport(
|
||||
|
|
@ -148,6 +148,7 @@ onMounted(async () => {
|
|||
:checkPermission="probationStore?.dataPermissions?.tab3?.isEdit as boolean"
|
||||
:is-max="probationStore.tabs.length === 3"
|
||||
/>
|
||||
|
||||
<q-tab-panels
|
||||
v-model="tab"
|
||||
animated
|
||||
|
|
|
|||
|
|
@ -957,12 +957,13 @@ onMounted(() => {
|
|||
unelevated
|
||||
color="public"
|
||||
type="submit"
|
||||
:disable="
|
||||
:disable="!typeReport || !org"
|
||||
/>
|
||||
<!-- :disable="
|
||||
typeReport &&
|
||||
(typeReport == 2 || typeReport == 3 || typeReport == 4) &&
|
||||
org
|
||||
"
|
||||
/>
|
||||
" -->
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ function handleSave(returnData: any) {
|
|||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชั่นสำหรับอัพโหลดไฟล์เอกสารหลักฐาน
|
||||
* ฟังก์ชั่นสำหรับอัปโหลดไฟล์เอกสารหลักฐาน
|
||||
*/
|
||||
function upLoadFileDoc() {
|
||||
const Data = new FormData();
|
||||
|
|
@ -195,7 +195,7 @@ function upLoadFileDoc() {
|
|||
countNum.value = 2;
|
||||
formData.documentFile = null;
|
||||
|
||||
success($q, "อัพโหลดไฟล์สำเร็จ");
|
||||
success($q, "อัปโหลดไฟล์สำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -960,7 +960,7 @@ onMounted(async () => {
|
|||
<div class="row"><q-separator vertical /></div>
|
||||
</div>
|
||||
|
||||
<!-- อัพโหลดไฟล์ -->
|
||||
<!-- อัปโหลดไฟล์ -->
|
||||
<div class="col-sm-12 col-md-3">
|
||||
<div flat class="q-pa-md">
|
||||
<div class="col-12 row q-col-gutter-md">
|
||||
|
|
|
|||
|
|
@ -173,10 +173,12 @@ onMounted(() => {
|
|||
@click="onDetail(props.row.id)"
|
||||
><q-tooltip>รายละเอียด</q-tooltip></q-btn
|
||||
>
|
||||
|
||||
<q-btn
|
||||
v-if="
|
||||
checkPermission($route)?.attrIsUpdate &&
|
||||
checkPermission($route)?.attrIsGet
|
||||
checkPermission($route)?.attrIsGet &&
|
||||
props.row.statusMain != 'SEND_INVESTIGATE'
|
||||
"
|
||||
id="addComplaints"
|
||||
for="addComplaints"
|
||||
|
|
|
|||
|
|
@ -546,7 +546,7 @@ function onclickViewinfo(id: string, type: string) {
|
|||
isEmpType.value = type;
|
||||
}
|
||||
|
||||
/** อัพเดต ปิด/เปิดเมนู ทะเบียนประวัติ */
|
||||
/** อัปเดต ปิด/เปิดเมนู ทะเบียนประวัติ */
|
||||
function updatemodalPersonal(modal: boolean) {
|
||||
modalPersonal.value = modal;
|
||||
}
|
||||
|
|
@ -1287,7 +1287,6 @@ onMounted(async () => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- วันที่สืบสวน (List Log) -->
|
||||
<div
|
||||
v-if="
|
||||
formData.investigationExtendHistory !== null &&
|
||||
|
|
@ -1761,7 +1760,7 @@ onMounted(async () => {
|
|||
</q-form>
|
||||
</div>
|
||||
|
||||
<!-- อัพโหลดไฟล์ -->
|
||||
<!-- อัปโหลดไฟล์ -->
|
||||
<DialogDuty
|
||||
:modal="modalEditDirector"
|
||||
:close-popup="closeEditDirector"
|
||||
|
|
|
|||
|
|
@ -161,6 +161,8 @@ async function fetchDetailInvestigate() {
|
|||
)
|
||||
)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
|
||||
const dataList = res.data.result;
|
||||
dataInvestigatefacts.id = dataList.id;
|
||||
dataInvestigatefacts.idComplaint = dataList.idComplaint;
|
||||
|
|
@ -191,6 +193,8 @@ async function fetchDetailInvestigate() {
|
|||
dataList.investigationDaysExtend;
|
||||
dataInvestigatefacts.organizationId = dataList.organizationId;
|
||||
dataInvestigatefacts.organization = dataList.organization;
|
||||
dataInvestigatefacts.investigationExtendHistory =
|
||||
dataList.investigationExtendHistory;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
|
|
@ -1849,7 +1849,7 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="row"><q-separator vertical /></div>
|
||||
</div>
|
||||
<!-- อัพโหลดไฟล์ -->
|
||||
<!-- อัปโหลดไฟล์ -->
|
||||
<div class="col-xs-12 col-sm-12 col-md-3">
|
||||
<div class="q-col-gutter-md row q-pa-md">
|
||||
<!-- ยังไม่มี api -->
|
||||
|
|
|
|||
|
|
@ -244,7 +244,8 @@ function filterOptionFn(val: string, update: Function) {
|
|||
<q-btn
|
||||
v-if="
|
||||
checkPermission($route)?.attrIsUpdate &&
|
||||
checkPermission($route)?.attrIsGet
|
||||
checkPermission($route)?.attrIsGet &&
|
||||
props.row.startMain !== 'DONE'
|
||||
"
|
||||
flat
|
||||
dense
|
||||
|
|
|
|||
|
|
@ -633,7 +633,7 @@ watch(
|
|||
<div class="row"><q-separator vertical /></div>
|
||||
</div>
|
||||
|
||||
<!-- อัพโหลดไฟล์ -->
|
||||
<!-- อัปโหลดไฟล์ -->
|
||||
<div class="col-sm-12 col-md-3 q-pa-md">
|
||||
<q-card bordered class="row col-12" style="border: 1px solid #d6dee1">
|
||||
<div class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
||||
|
|
|
|||
|
|
@ -658,7 +658,7 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="row"><q-separator vertical /></div>
|
||||
</div>
|
||||
<!-- อัพโหลดไฟล์ -->
|
||||
<!-- อัปโหลดไฟล์ -->
|
||||
<div v-if="isReadonly" class="col-sm-12 col-md-3 q-pa-md">
|
||||
<q-card
|
||||
bordered
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ async function uploadFile() {
|
|||
.then(() => {
|
||||
file.value = null;
|
||||
props.fetchData();
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
success($q, "อัปโหลดไฟล์สำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ interface DataListRow {
|
|||
levelConsideration: string;
|
||||
dateConsideration: string | null;
|
||||
status: string;
|
||||
statusMain?: string;
|
||||
}
|
||||
interface DataAdd {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ export const useComplainstDataStore = defineStore(
|
|||
? date2Thai(e.dateConsideration)
|
||||
: "-",
|
||||
status: e.status ? statusTothai(e.status) : "-",
|
||||
statusMain: e.status,
|
||||
}));
|
||||
rows.value = dataList;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -277,6 +277,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
)}`
|
||||
: "-",
|
||||
status: convertStatus(e.status) ?? "-",
|
||||
startMain: e.status,
|
||||
dateReceived: e.dateReceived ? date2Thai(e.dateReceived) : "-",
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ defineExpose({
|
|||
label="จํานวนงบประมาณที่ขอรับการจัดสรร ฯ"
|
||||
mask="###,###,###,###,###"
|
||||
reverse-fill-mask
|
||||
maxlength="18"
|
||||
@update:model-value="props.onCheckChangeData()"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -216,6 +217,7 @@ defineExpose({
|
|||
v-model="formData.receive"
|
||||
mask="###,###,###,###,###"
|
||||
reverse-fill-mask
|
||||
maxlength="18"
|
||||
label="จํานวนงบประมาณที่ได้รับการจัดสรร ฯ"
|
||||
@update:model-value="props.onCheckChangeData()"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1028,6 +1028,7 @@ onMounted(async () => {
|
|||
label="งบประมาณที่ได้รับอนุมัติตลอดหลักสูตร"
|
||||
mask="###,###,###,###,###,###"
|
||||
reverse-fill-mask
|
||||
maxlength="18"
|
||||
:rules="[
|
||||
(val: any) => {
|
||||
if (!val && !formBody.isNoUseBudget && formBody.fundType != 'FUND4') {
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ watch(
|
|||
class="inputgreen"
|
||||
:rules="[
|
||||
(val:string) =>
|
||||
!!val || `${'กรุณากรอกหนังสือรายงานตัวกลับเข้าปฏิบัติราชการลงวันที่'}`,
|
||||
!!val || `${'กรุณาเลือกลงวันที่ของหนังสือรายงานตัวกลับเข้าปฏิบัติราชการ'}`,
|
||||
]"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue