fix เงินเดือน สำนักปลัด

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-03 15:54:25 +07:00
parent 9a76465f78
commit 2276b2022c
4 changed files with 65 additions and 46 deletions

View file

@ -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

View file

@ -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

View file

@ -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>

View file

@ -35,6 +35,7 @@ const modal = defineModel<boolean>("modal", { required: true });
const isOfficer = defineModel<boolean>("isOfficer");
const isStaff = defineModel<boolean>("isStaff");
const rootId = defineModel<string>("rootId");
const isDeputy = defineModel<boolean>("isDeputy", { default: false });
const props = defineProps({
commandTypeCode: { type: String, defult: "" }, //
@ -56,7 +57,7 @@ const commandCode = ref<string>("");
const group = ref<string>("GROUP1.1"); //
const isCheckOrgPublishDate = ref<boolean>(false); //
const groupDataOp = ref<DataOption[]>([
const groupDataMain = ref<DataOption[]>([
{
id: "GROUP1.1",
name: "กลุ่มที่ 1.1 : ปฏิบัติงาน ชำนาญงาน ปฏิบัติการ ชำนาญการ",
@ -70,7 +71,8 @@ const groupDataOp = ref<DataOption[]>([
name: "กลุ่มที่ 2 : ทักษะพิเศษ เชี่ยวชาญ ทรงคุณวุฒิ อำนวยการสูง บริหารต้น บริหารสูง",
},
]);
const groupOp = ref<DataOption[]>(groupDataOp.value);
const groupDataOp = ref<DataOption[]>([]);
const groupOp = ref<DataOption[]>([]);
const dataMapToSend = computed(() => {
return selected.value.map((i: any) => ({
refId: i.id,
@ -268,13 +270,16 @@ function getPerson() {
watch(modal, async () => {
if (modal.value) {
groupOp.value = groupDataMain.value;
groupDataOp.value = groupDataMain.value;
fetchCommandType();
if (props.orgPublishDate) {
commandExcecuteDate.value = props.orgPublishDate;
isCheckOrgPublishDate.value = true;
}
await nextTick();
if (isOfficer.value) {
if (isOfficer.value && !isDeputy.value) {
group.value = "GROUP1.2";
groupDataOp.value = groupDataOp.value.filter(
(item) => item.id !== "GROUP1.1"