fix เงินเดือนค่าจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-25 17:02:17 +07:00
parent c1a31a964e
commit 665b0cca24
3 changed files with 27 additions and 11 deletions

View file

@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, defineAsyncComponent } from "vue";
import { useRoute } from "vue-router";
import { useRegistryDetailNewDataStore } from "@/modules/04_registryPerson/stores/DetailMain";
@ -40,8 +41,8 @@ const EmployeeMain = defineAsyncComponent(
);
const route = useRoute();
const store = useRegistryDetailNewDataStore();
const props = defineProps({
fetchDataPersonal: { type: Function, require: true },
});
@ -63,7 +64,7 @@ const itemsTab = ref<ItemTab[]>([
{
name: "3",
icon: "mdi-cash",
label: "เงินเดือน/ค่าจ้าง",
label: route.name === "registryNewByid" ? "เงินเดือน" : "ค่าจ้าง",
},
{
name: "4",