fix เงินเดือน สำนักปลัด
This commit is contained in:
parent
9a76465f78
commit
2276b2022c
4 changed files with 65 additions and 46 deletions
|
|
@ -379,11 +379,11 @@ onMounted(() => {
|
|||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<q-separator />
|
||||
<q-card-actions align="right">
|
||||
<div>
|
||||
<!-- <q-separator /> -->
|
||||
<!-- <q-card-actions align="right"> -->
|
||||
<!-- <div> -->
|
||||
<!-- การเจ้าหน้าที่ของหน่วยงานส่งเอกสารให้ ผอ. หน่วยงานตรวจสอบ -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'PENDING' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -392,10 +392,10 @@ onMounted(() => {
|
|||
color="public"
|
||||
label="ส่งเอกสารให้ ผอ. ตรวจสอบ"
|
||||
@click="sendToDirector('ส่งเอกสารให้ ผอ. ตรวจสอบ', 'officer')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- ผอ. หน่วยงานทำการยืนยันและส่งให้ สกจ. -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITHEAD1' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -404,10 +404,10 @@ onMounted(() => {
|
|||
color="public"
|
||||
label="ยืนยันและส่งเอกสารให้ สกจ."
|
||||
@click="sendToDirector('ยืนยันและส่งเอกสารให้ สกจ.', 'head')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา ไม่มีปรับโควต้า -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITOWNER1' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -416,10 +416,10 @@ onMounted(() => {
|
|||
color="green"
|
||||
label="ยืนยันการตรวจสอบ"
|
||||
@click="sendToDirector('ยืนยันการตรวจสอบ', 'owner')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา มีปรับโควต้า -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITOWNER1' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -429,10 +429,10 @@ onMounted(() => {
|
|||
color="warning"
|
||||
label="ส่งคำแนะนำให้ ผอ. ตรวจสอบ"
|
||||
@click="sendAndRecommend('ส่งคำแนะนำให้ ผอ. ตรวจสอบ', 'owner')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- ผอ.หน่วยงานส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITHEAD2' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -443,10 +443,10 @@ onMounted(() => {
|
|||
@click="
|
||||
sendAndRecommend('ส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน', 'head')
|
||||
"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- ส่งไปออกคำสั่ง -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITOFFICER2' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -454,10 +454,10 @@ onMounted(() => {
|
|||
unelevated
|
||||
color="public"
|
||||
label="ส่งไปออกคำสั่ง"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- รอออกคำสั่ง -->
|
||||
<q-btn
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'REPORT' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -466,9 +466,9 @@ onMounted(() => {
|
|||
color="public"
|
||||
disable
|
||||
label="รอออกคำสั่ง"
|
||||
/>
|
||||
</div>
|
||||
</q-card-actions>
|
||||
/> -->
|
||||
<!-- </div> -->
|
||||
<!-- </q-card-actions> -->
|
||||
</q-card>
|
||||
|
||||
<DialogPopupReason
|
||||
|
|
|
|||
|
|
@ -355,11 +355,11 @@ onMounted(() => {
|
|||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<q-separator />
|
||||
<q-card-actions align="right">
|
||||
<div>
|
||||
<!-- การเจ้าหน้าที่ของหน่วยงานส่งเอกสารให้ ผอ. หน่วยงานตรวจสอบ -->
|
||||
<q-btn
|
||||
<!-- <q-separator /> -->
|
||||
<!-- <q-card-actions align="right"> -->
|
||||
<!-- <div> -->
|
||||
<!-- การเจ้าหน้าที่ของหน่วยงานส่งเอกสารให้ ผอ. หน่วยงานตรวจสอบ -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'PENDING' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -368,10 +368,10 @@ onMounted(() => {
|
|||
color="public"
|
||||
label="ส่งเอกสารให้ ผอ. ตรวจสอบ"
|
||||
@click="sendToDirector('ส่งเอกสารให้ ผอ. ตรวจสอบ', 'officer')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- ผอ. หน่วยงานทำการยืนยันและส่งให้ สกจ. -->
|
||||
<q-btn
|
||||
<!-- ผอ. หน่วยงานทำการยืนยันและส่งให้ สกจ. -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITHEAD1' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -380,10 +380,10 @@ onMounted(() => {
|
|||
color="public"
|
||||
label="ยืนยันและส่งเอกสารให้ สกจ."
|
||||
@click="sendToDirector('ยืนยันและส่งเอกสารให้ สกจ.', 'head')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา ไม่มีปรับโควต้า -->
|
||||
<q-btn
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา ไม่มีปรับโควต้า -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITOWNER1' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -392,10 +392,10 @@ onMounted(() => {
|
|||
color="green"
|
||||
label="ยืนยันการตรวจสอบ"
|
||||
@click="sendToDirector('ยืนยันการตรวจสอบ', 'owner')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา มีปรับโควต้า -->
|
||||
<q-btn
|
||||
<!-- สกจ. ตรวจสอบเอกสารและข้อมูลรายการเงินเดือนที่แต่ละหน่วยงานส่งมา มีปรับโควต้า -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITOWNER1' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -405,10 +405,10 @@ onMounted(() => {
|
|||
color="warning"
|
||||
label="ส่งคำแนะนำให้ ผอ. ตรวจสอบ"
|
||||
@click="sendAndRecommend('ส่งคำแนะนำให้ ผอ. ตรวจสอบ', 'owner')"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<!-- ผอ.หน่วยงานส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน -->
|
||||
<q-btn
|
||||
<!-- ผอ.หน่วยงานส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITHEAD2' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -419,9 +419,10 @@ onMounted(() => {
|
|||
@click="
|
||||
sendAndRecommend('ส่งคำแนะนำให้การเจ้าหน้าที่หน่วยงาน', 'head')
|
||||
"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<q-btn
|
||||
<!-- ส่งไปออกคำสั่ง -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'WAITOFFICER2' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -429,8 +430,10 @@ onMounted(() => {
|
|||
unelevated
|
||||
color="public"
|
||||
label="ส่งไปออกคำสั่ง"
|
||||
/>
|
||||
<q-btn
|
||||
/> -->
|
||||
|
||||
<!-- รอออกคำสั่ง -->
|
||||
<!-- <q-btn
|
||||
v-if="
|
||||
store.statusQuota == 'REPORT' &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
|
|
@ -439,9 +442,9 @@ onMounted(() => {
|
|||
color="public"
|
||||
disable
|
||||
label="รอออกคำสั่ง"
|
||||
/>
|
||||
</div>
|
||||
</q-card-actions>
|
||||
/> -->
|
||||
<!-- </div> -->
|
||||
<!-- </q-card-actions> -->
|
||||
</q-card>
|
||||
|
||||
<DialogPopupReason
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ const agencyFilter = ref<string>(""); //หน่วยงาน
|
|||
const snapFilter = ref<string>(""); //รอบ
|
||||
const periodLatest = ref<DataPeriodLatest>();
|
||||
const salaryPeriodId = ref<string>("");
|
||||
const dataOrg = ref<any[]>([]);
|
||||
const isDeputy = ref<boolean>(false); // สำนักงานปลัด
|
||||
|
||||
//ตัวเลือก
|
||||
const roundOptions = ref<DataOptionShort[]>([]); //ตัวเลือกรอบการขึ้นเงินเดือน
|
||||
|
|
@ -181,6 +183,7 @@ async function getAgency(id: string) {
|
|||
.get(config.API.activeOrganizationRootById(id))
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
dataOrg.value = data;
|
||||
agencyOptions.value = [];
|
||||
agencyOptionsMain.value = [];
|
||||
agencyOptionsMain.value = await [
|
||||
|
|
@ -222,6 +225,10 @@ async function getAgencyPosition(id: string) {
|
|||
);
|
||||
|
||||
agencyFilter.value = position ? position.id : "ALL";
|
||||
isDeputy.value = position
|
||||
? dataOrg.value.find((e) => e.id === position.id)?.isDeputy
|
||||
: false;
|
||||
|
||||
if (agencyFilter.value && roundFilter.value.id && snapFilter.value) {
|
||||
await fetchSalalyPeriod(
|
||||
agencyFilter.value,
|
||||
|
|
@ -319,6 +326,9 @@ async function onChangeSnap() {
|
|||
/** function เปลี่ยนหน่วยงาน*/
|
||||
async function onChangeAgency() {
|
||||
store.rootId = agencyFilter.value;
|
||||
isDeputy.value = dataOrg.value.find(
|
||||
(e) => e.id === agencyFilter.value
|
||||
)?.isDeputy;
|
||||
if (
|
||||
agencyFilter.value !== "ALL" &&
|
||||
roundFilter.value.id &&
|
||||
|
|
@ -577,6 +587,7 @@ onMounted(async () => {
|
|||
:command-type-code-array="['C-PM-33', 'C-PM-34', 'C-PM-35']"
|
||||
:salary-period-id="salaryPeriodId"
|
||||
:title-command="titleCommand"
|
||||
:is-deputy="isDeputy"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue