diff --git a/src/modules/18_command/components/Step/2_ListPersons.vue b/src/modules/18_command/components/Step/2_ListPersons.vue index b59672f1c..ef3cd34f0 100644 --- a/src/modules/18_command/components/Step/2_ListPersons.vue +++ b/src/modules/18_command/components/Step/2_ListPersons.vue @@ -467,6 +467,6 @@ onMounted(async () => { :command-edit-recive="commandReciveId" :get-data="getPersonList" :select-person-data="selectPersonData" - :issue="formCommandList.issue" + :type="formCommandList.commandTypeName" /> diff --git a/src/modules/18_command/components/Step/Dialog2_Salary.vue b/src/modules/18_command/components/Step/Dialog2_Salary.vue index 2b5166bbb..c2ab684eb 100644 --- a/src/modules/18_command/components/Step/Dialog2_Salary.vue +++ b/src/modules/18_command/components/Step/Dialog2_Salary.vue @@ -5,17 +5,22 @@ import { useQuasar } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; +import { useCommandMainStore } from "@/modules/18_command/store/Main"; import DialogHeader from "@/components/DialogHeader.vue"; const $q = useQuasar(); const { showLoader, hideLoader, dialogConfirm, messageError, success } = useCounterMixin(); +const store = useCommandMainStore(); const props = defineProps({ getData: Function, selectPersonData: Object, - issue: String, + type: { + type: String, + required: true, + }, }); const modal = defineModel("modal", { required: true }); const titleName = defineModel("titleName", { required: true }); @@ -99,22 +104,11 @@ watch(
-
- - +
-
+
-
-
+
-
{ const commandTypes = ref([]); + const isShowSalary = (type: String) => { + return ( + (type !== + "คำสั่งแต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ" && + type !== "คำสั่งยกเลิกการลาออก") ?? + false + ); + }; + async function getCommandTypes() { if (commandTypes.value.length === 0) { await http @@ -31,5 +40,6 @@ export const useCommandMainStore = defineStore("commandMainStore", () => { commandTypes, getCommandTypes, getCommandTypeById, + isShowSalary, }; });