refactor(position-review): rename profileSalaryTemp endpoint

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-04-09 10:26:49 +07:00
parent 94a35fd58f
commit 6420e97480

View file

@ -144,10 +144,10 @@ const baseColumns = ref<QTableColumn[]>([
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format(v, row) { format(v, row) {
return row.amount return typeof row.amount === "number"
? `${Number(row.amount).toLocaleString()}${ ? `${row.amount.toLocaleString()}${
row.amountSpecial !== 0 && row.amountSpecial row.amountSpecial !== 0 && typeof row.amountSpecial === "number"
? ` (${Number(row.amountSpecial).toLocaleString()})` ? ` (${row.amountSpecial.toLocaleString()})`
: "" : ""
}` }`
: "-"; : "-";
@ -161,7 +161,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "mouthSalaryAmount", field: "mouthSalaryAmount",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? Number(v).toLocaleString() : "-"), format: (v) => (typeof v === "number" ? v.toLocaleString() : "-"),
}, },
{ {
name: "positionSalaryAmount", name: "positionSalaryAmount",
@ -171,7 +171,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "positionSalaryAmount", field: "positionSalaryAmount",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? Number(v).toLocaleString() : "-"), format: (v) => (typeof v === "number" ? v.toLocaleString() : "-"),
}, },
{ {
name: "organization", name: "organization",
@ -319,10 +319,12 @@ async function fetchData() {
// tabs.value === "PENDING" // tabs.value === "PENDING"
// ? `/${empType.value}/${profileId.value}` // ? `/${empType.value}/${profileId.value}`
// : `/${empType.value}/done/${profileId.value}`; // : `/${empType.value}/done/${profileId.value}`;
// http
// .get(
// `${config.API.profileSalaryTemp}/${empType.value}/done/${profileId.value}`,
// )
http http
.get( .get(`${config.API.profileSalaryTemp}/${empType.value}/${profileId.value}`)
`${config.API.profileSalaryTemp}/${empType.value}/done/${profileId.value}`,
)
.then((res) => { .then((res) => {
const data = res.data.result; const data = res.data.result;
rowsMain.value = data; rowsMain.value = data;