fix เงินเดือน สำนักปลัด
This commit is contained in:
parent
9a76465f78
commit
2276b2022c
4 changed files with 65 additions and 46 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue