diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/05_ActingPos.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/05_ActingPos.vue index c78b7e914..f1bf0ea9e 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/05_ActingPos.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/05_ActingPos.vue @@ -40,9 +40,6 @@ const empType = ref(pathRegistryEmp(route.name?.toString() ?? "")); const isLeave = defineModel("isLeave", { required: true, }); -const citizenId = defineModel("citizenId", { - required: true, -}); const baseColumns = ref([ { @@ -617,7 +614,7 @@ onMounted(() => { disable v-model="formData.status" label="ใช้งาน" - keep-color + keep-color="primary" /> @@ -645,7 +642,6 @@ onMounted(() => { v-model:modal="modalCommand" v-model:command="command" v-model:command-id="commandId" - :citizen-id="citizenId" /> diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/06_HelpGovernment.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/06_HelpGovernment.vue index 47eba38f8..9d4b16405 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/06_HelpGovernment.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/06_HelpGovernment.vue @@ -46,9 +46,6 @@ const empType = ref(pathRegistryEmp(route.name?.toString() ?? "")); const isLeave = defineModel("isLeave", { required: true, }); -const citizenId = defineModel("citizenId", { - required: true, -}); const baseColumns = ref([ { @@ -980,7 +977,6 @@ onMounted(() => { v-model:modal="modalCommand" v-model:command="command" v-model:command-id="commandId" - :citizen-id="citizenId" /> diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue index 33d3c77ee..25f62fdd2 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue @@ -39,9 +39,6 @@ const profileId = ref( const isLeave = defineModel("isLeave", { required: true, }); -const citizenId = defineModel("citizenId", { - required: true, -}); const store = useGovernmentPosDataStore(); const { @@ -1624,7 +1621,6 @@ onMounted(async () => { v-model:modal="modalCommand" v-model:command="command" v-model:commandId="commandId" - :citizen-id="citizenId" /> diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/Main.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/Main.vue index da7af1456..02b9aaac8 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/Main.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/Main.vue @@ -65,22 +65,13 @@ const storeRegistry = useRegistryNewDataStore(); - + - + - + diff --git a/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue b/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue index 3a7105c70..fb02b6d92 100644 --- a/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue +++ b/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue @@ -39,9 +39,6 @@ const profileId = ref( const isLeave = defineModel("isLeave", { required: true, }); -const citizenId = defineModel("citizenId", { - required: true, -}); const store = useSalaryDataStore(); const { @@ -1627,7 +1624,6 @@ onMounted(async () => { v-model:modal="modalCommand" v-model:command="command" v-model:commandId="commandId" - :citizen-id="citizenId" /> diff --git a/src/modules/04_registryPerson/components/detail/Salary/Main.vue b/src/modules/04_registryPerson/components/detail/Salary/Main.vue index f0646d650..a78286a65 100644 --- a/src/modules/04_registryPerson/components/detail/Salary/Main.vue +++ b/src/modules/04_registryPerson/components/detail/Salary/Main.vue @@ -45,10 +45,7 @@ const tab = ref("1"); - + diff --git a/src/modules/04_registryPerson/components/requestEdit/Page01_Detail.vue b/src/modules/04_registryPerson/components/requestEdit/Page01_Detail.vue index 17fde57a0..8751cfbf6 100644 --- a/src/modules/04_registryPerson/components/requestEdit/Page01_Detail.vue +++ b/src/modules/04_registryPerson/components/requestEdit/Page01_Detail.vue @@ -553,17 +553,12 @@ onMounted(async () => {
- {{ typeEmp }} -
diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index 3e2038712..1f6c782f3 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -53,7 +53,6 @@ const props = defineProps({ const modalCommand = ref(false); const command = ref(""); const commandId = ref(""); -const commandCitizenId = ref(""); let roleAdmin = ref(false); const edit = ref(true); @@ -913,10 +912,9 @@ function onSearchAdd() { } function onRefCommand(data: any) { + modalCommand.value = true; command.value = data.refCommandNo; commandId.value = data.commandId; - commandCitizenId.value = data.citizenId; - modalCommand.value = true; // commandId.value = 'bdf9da91-ba45-497a-a2b7-cc49e2446d97'; //จำลอง } @@ -1789,7 +1787,6 @@ onMounted(async () => { v-model:modal="modalCommand" v-model:command="command" v-model:commandId="commandId" - v-model:citizen-id="commandCitizenId" /> diff --git a/src/modules/13_salary/components/DialogInfoMain.vue b/src/modules/13_salary/components/DialogInfoMain.vue index 71fe5997f..79868ccbc 100644 --- a/src/modules/13_salary/components/DialogInfoMain.vue +++ b/src/modules/13_salary/components/DialogInfoMain.vue @@ -36,7 +36,6 @@ const props = defineProps({ const avatar = ref(""); const fullName = ref(""); const position = ref(""); -const citizenId = ref(""); const isLoading = ref(true); /** function เรียกข้อมูลส่วนตัว*/ @@ -49,7 +48,6 @@ function fetchInformation() { fullName.value = `${data.prefix}${data.firstName} ${data.lastName}`; position.value = data.position; - citizenId.value = data.citizenId; if (data.avatarName) { await fetchProfile(data.id as string, data.avatarName); @@ -222,7 +220,6 @@ watch( v-if="type === 'posSalary'" v-model:profileId="profileId" :employeeClass="employeeClass" - :citizenId="citizenId" /> ("profileId", { required: true }); const employeeClass = defineModel("employeeClass", { required: true }); -const citizenId = defineModel("citizenId", { required: true }); const modalCommand = ref(false); const command = ref(""); @@ -471,7 +470,6 @@ onMounted(() => { v-model:modal="modalCommand" v-model:command="command" v-model:commandId="commandId" - :citizen-id="citizenId" /> diff --git a/src/modules/18_command/components/DialogPreviewCommand.vue b/src/modules/18_command/components/DialogPreviewCommand.vue index 836abb6bd..3f3fa9f4b 100644 --- a/src/modules/18_command/components/DialogPreviewCommand.vue +++ b/src/modules/18_command/components/DialogPreviewCommand.vue @@ -19,7 +19,6 @@ const { showLoader, hideLoader, messageError } = useCounterMixin(); const modal = defineModel("modal", { required: true }); const command = defineModel("command", { required: true }); const commandId = defineModel("commandId", { required: true }); -const citizenId = defineModel("citizenId", { required: true }); const promises = ref([]); const tab = ref("main"); //tab @@ -38,7 +37,6 @@ function closeDialog() { modal.value = false; command.value = ""; commandId.value = ""; - citizenId.value = ""; } /** @@ -90,25 +88,13 @@ async function downloadCover(type: string) { */ async function fetchDataCommand(type: string) { let newType = type === "cover" ? "คำสั่ง" : "แนบท้าย"; - const pathAPI = - type === "cover" - ? config.API.fileByFile( - "ระบบออกคำสั่ง", - newType, - commandId.value, - newType - ) - : config.API.subFileByFileName( - "ระบบออกคำสั่ง", - newType, - commandId.value, - citizenId.value, - newType - ); await http - .get(pathAPI) + .get( + config.API.fileByFile("ระบบออกคำสั่ง", newType, commandId.value, newType) + ) .then(async (res) => { const data = res.data; + console.log(res); if (type === "cover") { dataCover.value = data; diff --git a/src/modules/18_command/components/Step/0_Main.vue b/src/modules/18_command/components/Step/0_Main.vue index 30d177d76..36974e185 100644 --- a/src/modules/18_command/components/Step/0_Main.vue +++ b/src/modules/18_command/components/Step/0_Main.vue @@ -43,7 +43,7 @@ async function fetchData() { ? "Live" : data.isSignature === false ? "Digital" - : "Live"; + : ""; isStatus.value = data.status; isDraft.value = data.isDraft; isSign.value = data.isSign; @@ -174,12 +174,11 @@ onMounted(async () => { - diff --git a/src/modules/18_command/components/Step/View0_Live.vue b/src/modules/18_command/components/Step/View0_Live.vue index 57a7d3ef6..fd5e051f3 100644 --- a/src/modules/18_command/components/Step/View0_Live.vue +++ b/src/modules/18_command/components/Step/View0_Live.vue @@ -1,5 +1,5 @@