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

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