fix bug
This commit is contained in:
parent
ec04bc2e1e
commit
3ffe9b367e
5 changed files with 10 additions and 23 deletions
|
|
@ -87,8 +87,6 @@ const onCancel = async () => {
|
||||||
`ข้อมูลมีการแก้ไข`,
|
`ข้อมูลมีการแก้ไข`,
|
||||||
`ยืนยันยกเลิกการแก้ไขใช่หรือไม่?`
|
`ยืนยันยกเลิกการแก้ไขใช่หรือไม่?`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
edit.value = false;
|
edit.value = false;
|
||||||
}
|
}
|
||||||
|
|
@ -252,7 +250,6 @@ const getClass = (val: boolean) => {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function checkEdit() {
|
function checkEdit() {
|
||||||
onEdit.value = true;
|
onEdit.value = true;
|
||||||
}
|
}
|
||||||
|
|
@ -470,7 +467,6 @@ function checkEdit() {
|
||||||
:class="getClass(edit)"
|
:class="getClass(edit)"
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณาเลือก หมู่เลือด'}`]"
|
|
||||||
:outlined="edit"
|
:outlined="edit"
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
|
|
@ -556,10 +552,6 @@ function checkEdit() {
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="informaData.telephone"
|
v-model="informaData.telephone"
|
||||||
:rules="[
|
|
||||||
(val:string) => !!val || `${'กรุณากรอก เบอร์โทร'}`,
|
|
||||||
(val:string) => val.length >= 10 || `${'กรุณากรอกข้อมูลเบอร์โทรให้ครบ'}`,
|
|
||||||
]"
|
|
||||||
:label="`${'เบอร์โทร'}`"
|
:label="`${'เบอร์โทร'}`"
|
||||||
mask="##########"
|
mask="##########"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -135,8 +135,8 @@ const totalList = ref<number>(0);
|
||||||
|
|
||||||
// fecth profile
|
// fecth profile
|
||||||
const fecthProfile = async () => {
|
const fecthProfile = async () => {
|
||||||
|
showLoader();
|
||||||
if (props?.dataProfile?.type === "OFFICER") {
|
if (props?.dataProfile?.type === "OFFICER") {
|
||||||
showLoader();
|
|
||||||
formPagePersonList.keyword =
|
formPagePersonList.keyword =
|
||||||
formPagePersonList.keyword === null ? "" : formPagePersonList.keyword;
|
formPagePersonList.keyword === null ? "" : formPagePersonList.keyword;
|
||||||
await http
|
await http
|
||||||
|
|
@ -154,7 +154,9 @@ const fecthProfile = async () => {
|
||||||
fullname: e.prefix + e.firstName + " " + e.lastName,
|
fullname: e.prefix + e.firstName + " " + e.lastName,
|
||||||
position: e.position,
|
position: e.position,
|
||||||
level:
|
level:
|
||||||
e.posTypeName && e.posLevelName ? e.posTypeName + " (" + e.posLevelName + ")" : "-",
|
e.posTypeName && e.posLevelName
|
||||||
|
? e.posTypeName + " (" + e.posLevelName + ")"
|
||||||
|
: "-",
|
||||||
organizationOrganization: findOrgChildName(e),
|
organizationOrganization: findOrgChildName(e),
|
||||||
}));
|
}));
|
||||||
})
|
})
|
||||||
|
|
@ -187,9 +189,7 @@ const fecthProfile = async () => {
|
||||||
fullname: e.prefix + e.firstName + " " + e.lastName,
|
fullname: e.prefix + e.firstName + " " + e.lastName,
|
||||||
position: e.position,
|
position: e.position,
|
||||||
level:
|
level:
|
||||||
e.posType && e.posLevel
|
e.posType && e.posLevel ? e.posType + " (" + e.posLevel + ")" : "-",
|
||||||
? e.posType + " (" + e.posLevel + ")"
|
|
||||||
: "-",
|
|
||||||
organizationOrganization: findOrgName(e),
|
organizationOrganization: findOrgName(e),
|
||||||
}));
|
}));
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -636,12 +636,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
}}{{ props.row.firstName ? props.row.firstName : "" }}
|
}}{{ props.row.firstName ? props.row.firstName : "" }}
|
||||||
{{ props.row.lastName ? props.row.lastName : "" }}</q-td
|
{{ props.row.lastName ? props.row.lastName : "" }}</q-td
|
||||||
>
|
>
|
||||||
<!-- <q-td
|
|
||||||
class="table_ellipsis"
|
|
||||||
key="organizationOrganization"
|
|
||||||
:props="props"
|
|
||||||
>{{ props.row.organizationOrganization }}</q-td
|
|
||||||
> -->
|
|
||||||
<q-td key="position" :props="props">{{
|
<q-td key="position" :props="props">{{
|
||||||
props.row.position ? props.row.position : "-"
|
props.row.position ? props.row.position : "-"
|
||||||
}}</q-td>
|
}}</q-td>
|
||||||
|
|
@ -697,7 +692,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="primary"
|
color="primary"
|
||||||
icon="mdi-pencil"
|
:icon="props.row.remove === 'EDIT' ? 'info' : 'mdi-pencil'"
|
||||||
dense
|
dense
|
||||||
@click.stop="
|
@click.stop="
|
||||||
(modalNote = true),
|
(modalNote = true),
|
||||||
|
|
@ -724,7 +719,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
class="text-red-14"
|
class="text-red-14"
|
||||||
icon="mdi-delete"
|
:icon="props.row.remove === 'REMOVE' ? 'info' : 'mdi-delete'"
|
||||||
dense
|
dense
|
||||||
@click.stop="
|
@click.stop="
|
||||||
(modalNote = true),
|
(modalNote = true),
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ export const useSalaryEmployeeListSDataStore = defineStore(
|
||||||
const itemDownloadOct = ref<DataOption[]>([
|
const itemDownloadOct = ref<DataOption[]>([
|
||||||
{
|
{
|
||||||
id: "emp2-01",
|
id: "emp2-01",
|
||||||
name: "บัญชีการคำนวณวงเงินเลื่อนขั้นค่าจางลูกจ้างประจำกรุงเทพมหานคร",
|
name: "บัญชีการคำนวณวงเงินเลื่อนขั้นค่าจ้างลูกจ้างประจำกรุงเทพมหานคร",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "emp2-02",
|
id: "emp2-02",
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ function clickDownload() {
|
||||||
.get(config.API.salaryReportemployeeByid(salaryEmployeeId.value))
|
.get(config.API.salaryReportemployeeByid(salaryEmployeeId.value))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const dataList = res.data.result;
|
const dataList = res.data.result;
|
||||||
genReportXLSX(dataList, "อัตราเงินเดือน");
|
genReportXLSX(dataList, "อัตราค่าจ้าง");
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue