เงินเดือน => permission รายการผังบัญชีเงินเดือน
This commit is contained in:
parent
ac40fb9674
commit
44a6ef192b
5 changed files with 146 additions and 108 deletions
|
|
@ -69,6 +69,8 @@ const title = computed(() => {
|
|||
? "เพิ่มผังบัญชีเงินเดือน"
|
||||
: props.typeAction === "edit"
|
||||
? "แก้ไขผังบัญชีเงินเดือน"
|
||||
: props.typeAction === "view"
|
||||
? "รายละเอียด"
|
||||
: "บัญชีเงินเดือน";
|
||||
|
||||
return name;
|
||||
|
|
@ -131,7 +133,7 @@ function fetchSalaryDetail(id: string) {
|
|||
formData.endDate = data.endDate;
|
||||
formData.details = data.details;
|
||||
formData.isSpecial = data.isSpecial;
|
||||
isReadonly.value = data.isActive;
|
||||
isReadonly.value = props.typeAction === 'view'? true: data.isActive;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -150,7 +152,7 @@ watch(
|
|||
if (modal.value) {
|
||||
await fetchPosType();
|
||||
|
||||
if (props.typeAction === "edit") {
|
||||
if (props.typeAction === "edit" || props.typeAction === "view") {
|
||||
showLoader();
|
||||
setTimeout(() => {
|
||||
if (props.data) {
|
||||
|
|
@ -522,7 +524,7 @@ const getClass = (val: boolean) => {
|
|||
</q-card-section>
|
||||
|
||||
<q-separator />
|
||||
<q-card-actions align="right">
|
||||
<q-card-actions align="right" v-if="!isReadonly">
|
||||
<q-btn label="บันทึก" color="secondary" type="submit"
|
||||
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue