+
{{ col.value == null ? "" : col.value.toLocaleString("en-US") }}
@@ -284,6 +595,7 @@ import { useRoute } from "vue-router";
import { useProfileDataStore } from "@/modules/04_registry/store";
import { useCounterMixin } from "@/stores/mixin";
+import CurrencyInput from "@/components/CurruncyInput.vue";
import ProfileTable from "@/modules/04_registry/components/Table.vue";
import DialogHeader from "@/modules/04_registry/components/DialogHeader.vue";
import DialogFooter from "@/modules/04_registry/components/DialogFooter.vue";
@@ -319,9 +631,10 @@ const { date2Thai, success, dateToISO, messageError, showLoader, hideLoader } =
const route = useRoute();
const id = ref("");
const date = ref(new Date());
-const amount = ref(null);
-const positionSalaryAmount = ref(null);
-const mouthSalaryAmount = ref(null);
+const amount = ref(0);
+// const salary = ref(null);
+const positionSalaryAmount = ref(0);
+const mouthSalaryAmount = ref(0);
const ocId = ref();
const positionId = ref();
const positionLineId = ref();
@@ -648,23 +961,23 @@ const filter = ref(""); //search data table
const visibleColumns = ref([]);
profileData.salary.columns.length == 0
? (visibleColumns.value = [
- "date",
- "amount",
- "positionSalaryAmount",
- "mouthSalaryAmount",
- "oc",
- "position",
- "posNo",
- "positionLine",
- "positionPathSide",
- "positionType",
- "positionLevel",
- "positionExecutive",
- "positionExecutiveSide",
- "salaryClass",
- "salaryRef",
- "refCommandNo",
- ])
+ "date",
+ "amount",
+ "positionSalaryAmount",
+ "mouthSalaryAmount",
+ "oc",
+ "position",
+ "posNo",
+ "positionLine",
+ "positionPathSide",
+ "positionType",
+ "positionLevel",
+ "positionExecutive",
+ "positionExecutiveSide",
+ "salaryClass",
+ "salaryRef",
+ "refCommandNo",
+ ])
: (visibleColumns.value = profileData.salary.columns);
const columns = ref([
{
@@ -1238,7 +1551,7 @@ const fetchPosition = async () => {
positionLevelOptions.value = optionPositionLevels;
positionLevelOptionsFilter.value = optionPositionLevels;
})
- .catch((e: any) => { })
+ .catch((e: any) => {})
.finally(() => {
hideLoader();
});
@@ -1794,7 +2107,7 @@ const getClass = (val: boolean) => {
"full-width cursor-pointer": !val,
};
};
-const resetFilter = () => { };
+const resetFilter = () => {};