update workflow

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-22 17:08:19 +07:00
parent b71e4e5dc5
commit 5016855053
3 changed files with 19 additions and 22 deletions

View file

@ -39,28 +39,19 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px",
},
{
name: "position",
name: "posExecutiveName",
align: "left",
label: "ตำแหน่งในสายงาน",
label: "ตำแหน่งทางการบริหาร",
sortable: true,
field: "position",
field: "posExecutiveName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
// {
// name: "posType",
// align: "left",
// label: "",
// sortable: true,
// field: "posType",
// headerStyle: "font-size: 14px",
// style: "font-size: 14px",
// },
{
name: "orgRoot",
name: "actFullName",
align: "left",
label: "สังกัด",
field: "orgRoot",
label: "รักษาการ",
field: "actFullName",
sortable: true,
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -220,7 +211,11 @@ watch(modal, (val) => {
<q-card-actions align="right">
<q-btn
label="ส่งไปยังผู้บังคับบัญชา/ผู้มีอำนาจ"
:label="
props.type === 'operate'
? 'ส่งไปยังผู้บังคับบัญชา'
: 'ส่งไปยังผู้มีอำนาจ'
"
color="public"
type="submit"
:disable="

View file

@ -31,6 +31,7 @@ const permission = ref<Permission>({
isUpdate: false, //
isDelete: false, // ()
isCancel: false, // ()
isSing: false,
});
const modalSelectPerson = ref<boolean>(false); // /
@ -59,6 +60,7 @@ async function fetchCheckState() {
isUpdate: data.can_update,
isDelete: data.can_delete,
isCancel: data.can_cancel,
isSing: data.can_sing,
};
})
.catch(() => {
@ -191,23 +193,22 @@ defineExpose({
</q-list>
</div>
<div
v-if="permission.isOperate && state === index + 1"
class="row q-gutter-x-sm"
>
<div v-if="state === index + 1" class="row q-gutter-x-sm">
<q-btn
v-if="permission.isOperate"
@click.prevent="
(modalSelectPerson = true), (typeSelectPerson = 'operate')
"
label="ส่งไปผู้บังคับบัญชา"
label="ส่งไปยังผู้บังคับบัญชา"
color="public"
/>
<q-btn
v-if="permission.isSing"
@click.prevent="
(modalSelectPerson = true), (typeSelectPerson = 'sign')
"
label="ผู้มีอำนาจ"
label="ส่งไปยังผู้มีอำนาจ"
color="public"
/>
</div>

View file

@ -5,6 +5,7 @@ interface Permission {
isUpdate: boolean; //แก้ไขเอกสารได้
isDelete: boolean; //ลบเอกสารได้ (ถ้ามี)
isCancel: boolean; //ลบเอกสารได้ (ถ้ามี)
isSing: boolean;
}
export type { Permission };