Merge branch 'develop' into feat/issue

* develop:
  fix: show workflow EMP
  fix:disable radio Digital
  fix:profileId To citizenId
  fix: form upload Attachment
  fix:bug
  fix: active act org level 0 only
  add: บันทึกรักษาการในตำแหน่ง (owner only)
  fix: convertCommandCodeName columns commandCode
  test
  fix:default profileAvatar
  fix:show btn delete avatar active
  fix: approveCheck
  fix: statusCheck PENDING
  fix(leave):approveCheck logic for commander approval status
  fix: disabled organization view
  fix(indicator-plan):fix nodeDnaId
  fix: title by issue #2156 ปรับระดับชั้นงาน-ย้ายลูกจ้าง (ข้อความเมนูไม่เหมือนกัน)
  fix(timestamp):clear_rowData
  ปิดปุ่มแก้ไข และเพิ่มของประวัติตำแหน่ง เงินเดือน แก้ได้แค่ owner เท่านั้น

# Conflicts:
#	src/api/02_organizational/api.organization.ts
This commit is contained in:
Warunee Tamkoo 2026-02-04 13:43:52 +07:00
commit e3f35a189c
27 changed files with 497 additions and 204 deletions

View file

@ -196,4 +196,6 @@ export default {
orgAssistance: (id: string) => `${orgProfile}/assistance/${id}`, orgAssistance: (id: string) => `${orgProfile}/assistance/${id}`,
orgIssues: `${organization}/issues`, orgIssues: `${organization}/issues`,
// active รักษาการในตำแหน่งตามหน่วยงาน
activeActPosition: (id: string) => `${orgPosAct}/${id}`,
}; };

View file

@ -177,7 +177,7 @@ function updateSelectedAgency(data: any, isUpdate: boolean = false) {
/**function ยืนยันการบันทึกข้อมูล */ /**function ยืนยันการบันทึกข้อมูล */
function onSubmit() { function onSubmit() {
if (planData.nodeId == null || planData.strategyId == "") { if (nodeDnaId.value == "" || planData.strategyId == "") {
dialogMessageNotify( dialogMessageNotify(
$q, $q,
`กรุณาเลือกหน่วยงาน/ส่วนราชการ หรือ ยุทธศาสตร์/แผน` `กรุณาเลือกหน่วยงาน/ส่วนราชการ หรือ ยุทธศาสตร์/แผน`

View file

@ -397,13 +397,24 @@ onMounted(async () => {
@click="store.statusView = 'list'" @click="store.statusView = 'list'"
/> />
<q-separator inset vertical /> <q-separator inset vertical />
<!-- รอแกไข API -->
<!-- <q-btn
flat
dense
icon="mdi-sitemap"
:color="store.statusView === 'tree' ? 'grey-7' : 'grey-4'"
@click="store.statusView = 'tree'"
/> -->
<q-btn <q-btn
flat flat
dense dense
icon="mdi-sitemap" icon="mdi-sitemap"
:color="store.statusView === 'tree' ? 'grey-7' : 'grey-4'" :color="store.statusView === 'tree' ? 'grey-7' : 'grey-4'"
@click="store.statusView = 'tree'" @click="store.statusView = 'tree'"
/> disabled
>
<q-tooltip>อยระหวางปรบปร</q-tooltip>
</q-btn>
<q-separator inset vertical /> <q-separator inset vertical />
<q-btn <q-btn
flat flat

View file

@ -40,6 +40,9 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
const isLeave = defineModel<boolean>("isLeave", { const isLeave = defineModel<boolean>("isLeave", {
required: true, required: true,
}); });
const citizenId = defineModel<string>("citizenId", {
required: true,
});
const baseColumns = ref<QTableColumn[]>([ const baseColumns = ref<QTableColumn[]>([
{ {
@ -614,7 +617,7 @@ onMounted(() => {
disable disable
v-model="formData.status" v-model="formData.status"
label="ใช้งาน" label="ใช้งาน"
keep-color="primary" keep-color
/> />
</div> </div>
</div> </div>
@ -642,6 +645,7 @@ onMounted(() => {
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:command="command" v-model:command="command"
v-model:command-id="commandId" v-model:command-id="commandId"
:citizen-id="citizenId"
/> />
</template> </template>

View file

@ -46,6 +46,9 @@ const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
const isLeave = defineModel<boolean>("isLeave", { const isLeave = defineModel<boolean>("isLeave", {
required: true, required: true,
}); });
const citizenId = defineModel<string>("citizenId", {
required: true,
});
const baseColumns = ref<QTableColumn[]>([ const baseColumns = ref<QTableColumn[]>([
{ {
@ -977,6 +980,7 @@ onMounted(() => {
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:command="command" v-model:command="command"
v-model:command-id="commandId" v-model:command-id="commandId"
:citizen-id="citizenId"
/> />
</template> </template>

View file

@ -39,6 +39,9 @@ const profileId = ref<string>(
const isLeave = defineModel<boolean>("isLeave", { const isLeave = defineModel<boolean>("isLeave", {
required: true, required: true,
}); });
const citizenId = defineModel<string>("citizenId", {
required: true,
});
const store = useGovernmentPosDataStore(); const store = useGovernmentPosDataStore();
const { const {
@ -210,7 +213,7 @@ const baseColumns = ref<QTableColumn[]>([
sortable: true, sortable: true,
field: "commandCode", field: "commandCode",
format(val, row) { format(val, row) {
return row.commandName; return store.convertCommandCodeName(row.commandCode);
}, },
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
@ -898,7 +901,11 @@ onMounted(async () => {
<div class="row items-center q-gutter-x-sm q-pb-sm"> <div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn <q-btn
v-if="!isLeave && checkPermission($route)?.attrIsUpdate" v-if="
!isLeave &&
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrOwnership === 'OWNER'
"
flat flat
color="primary" color="primary"
round round
@ -972,7 +979,11 @@ onMounted(async () => {
</q-btn> </q-btn>
<q-btn <q-btn
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate" v-if="
!isLeave &&
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrOwnership === 'OWNER'
"
flat flat
:disable=" :disable="
(props.row.commandId !== null && props.row.commandId !== '') || (props.row.commandId !== null && props.row.commandId !== '') ||
@ -1613,6 +1624,7 @@ onMounted(async () => {
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:command="command" v-model:command="command"
v-model:commandId="commandId" v-model:commandId="commandId"
:citizen-id="citizenId"
/> />
</template> </template>

View file

@ -65,13 +65,22 @@ const storeRegistry = useRegistryNewDataStore();
<PerformSpecialWork :is-leave="storeRegistry.isLeave" /> <PerformSpecialWork :is-leave="storeRegistry.isLeave" />
</q-tab-panel> </q-tab-panel>
<q-tab-panel v-if="empType != '-employee'" name="5"> <q-tab-panel v-if="empType != '-employee'" name="5">
<ActingPos :is-leave="storeRegistry.isLeave" /> <ActingPos
:is-leave="storeRegistry.isLeave"
:citizen-id="storeRegistry.citizenId"
/>
</q-tab-panel> </q-tab-panel>
<q-tab-panel v-if="empType != '-employee'" name="6"> <q-tab-panel v-if="empType != '-employee'" name="6">
<HelpGovernmentDetail :is-leave="storeRegistry.isLeave" /> <HelpGovernmentDetail
:is-leave="storeRegistry.isLeave"
:citizen-id="storeRegistry.citizenId"
/>
</q-tab-panel> </q-tab-panel>
<q-tab-panel name="7"> <q-tab-panel name="7">
<Postion :is-leave="storeRegistry.isLeave" /> <Postion
:is-leave="storeRegistry.isLeave"
:citizen-id="storeRegistry.citizenId"
/>
</q-tab-panel> </q-tab-panel>
</q-tab-panels> </q-tab-panels>
</template> </template>

View file

@ -39,6 +39,9 @@ const profileId = ref<string>(
const isLeave = defineModel<boolean>("isLeave", { const isLeave = defineModel<boolean>("isLeave", {
required: true, required: true,
}); });
const citizenId = defineModel<string>("citizenId", {
required: true,
});
const store = useSalaryDataStore(); const store = useSalaryDataStore();
const { const {
@ -215,7 +218,7 @@ const baseColumns = ref<QTableColumn[]>([
sortable: true, sortable: true,
field: "commandCode", field: "commandCode",
format(val, row) { format(val, row) {
return row.commandName; return store.convertCommandCodeName(row.commandCode);
}, },
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
@ -860,7 +863,11 @@ onMounted(async () => {
<template> <template>
<div class="row items-center q-gutter-x-sm q-pb-sm"> <div class="row items-center q-gutter-x-sm q-pb-sm">
<q-btn <q-btn
v-if="!isLeave && checkPermission($route)?.attrIsUpdate" v-if="
!isLeave &&
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrOwnership === 'OWNER'
"
flat flat
color="primary" color="primary"
round round
@ -932,9 +939,12 @@ onMounted(async () => {
> >
<q-tooltip>ประวแกไขตำแหน/เงนเดอน</q-tooltip> <q-tooltip>ประวแกไขตำแหน/เงนเดอน</q-tooltip>
</q-btn> </q-btn>
<q-btn <q-btn
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate" v-if="
!isLeave &&
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrOwnership === 'OWNER'
"
flat flat
:disable=" :disable="
(props.row.commandId !== null && props.row.commandId !== '') || (props.row.commandId !== null && props.row.commandId !== '') ||
@ -1617,6 +1627,7 @@ onMounted(async () => {
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:command="command" v-model:command="command"
v-model:commandId="commandId" v-model:commandId="commandId"
:citizen-id="citizenId"
/> />
</template> </template>

View file

@ -45,7 +45,10 @@ const tab = ref<string>("1");
<q-tab-panels v-model="tab" animated> <q-tab-panels v-model="tab" animated>
<q-tab-panel name="1"> <q-tab-panel name="1">
<PositionSalary :is-leave="storeRegistry.isLeave" /> <PositionSalary
:is-leave="storeRegistry.isLeave"
:citizen-id="storeRegistry.citizenId"
/>
</q-tab-panel> </q-tab-panel>
<q-tab-panel name="2"> <q-tab-panel name="2">
<NotReceiveSalary :is-leave="storeRegistry.isLeave" /> <NotReceiveSalary :is-leave="storeRegistry.isLeave" />

View file

@ -553,12 +553,17 @@ onMounted(async () => {
</q-form> </q-form>
<div class="col-12"> <div class="col-12">
{{ typeEmp }}
<!-- v-if="typeEmp != 'employee'" -->
<Workflow <Workflow
v-if="typeEmp != 'employee'"
v-model:is-check-data="isCheckData" v-model:is-check-data="isCheckData"
ref="workflowRef" ref="workflowRef"
:id="requestId" :id="requestId"
sys-name="REGISTRY_PROFILE" :sys-name="
typeEmp !== 'employee'
? 'REGISTRY_PROFILE'
: 'REGISTRY_PROFILE_EMP'
"
/> />
</div> </div>
</div> </div>

View file

@ -695,7 +695,7 @@ function closeImage() {
* งกนยนยนการลบร * งกนยนยนการลบร
* @param id ปภาพ * @param id ปภาพ
*/ */
function deletePhoto(id: string) { function deletePhoto(id: string, isActive: boolean) {
dialogRemove( dialogRemove(
$q, $q,
async () => { async () => {
@ -706,6 +706,10 @@ function deletePhoto(id: string) {
.delete(config.API.orgProfileAvatarbyType(empType.value) + `/${id}`) .delete(config.API.orgProfileAvatarbyType(empType.value) + `/${id}`)
.then(async () => { .then(async () => {
await getImage(); await getImage();
if (isActive) {
activeImage.value = null;
await fetchDataPersonal();
}
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);
@ -821,7 +825,6 @@ onMounted(async () => {
'SYS_PLACEMENT_OTHER', 'SYS_PLACEMENT_OTHER',
'SYS_TRANSFER_REQ', 'SYS_TRANSFER_REQ',
'SYS_RESIGN', 'SYS_RESIGN',
])) || ])) ||
leaveType === 'DISCIPLINE_TEMP_SUSPEND' || leaveType === 'DISCIPLINE_TEMP_SUSPEND' ||
leaveType === 'RETIRE_RESIGN' || leaveType === 'RETIRE_RESIGN' ||
@ -873,7 +876,7 @@ onMounted(async () => {
'SYS_PROMOTION_EMP', 'SYS_PROMOTION_EMP',
'SYS_PASSAWAY', 'SYS_PASSAWAY',
'SYS_DISMISS_EMP', 'SYS_DISMISS_EMP',
'SYS_RESIGN_EMP' 'SYS_RESIGN_EMP',
]) ])
" "
size="md" size="md"
@ -1211,18 +1214,21 @@ onMounted(async () => {
> >
{{ date2Thai(n.createdAt) }} {{ date2Thai(n.createdAt) }}
<!-- v-if="!n.isActive" -->
<q-btn <q-btn
v-if="!n.isActive"
icon="delete" icon="delete"
unelevated unelevated
dense dense
@click="deletePhoto(n.id)" @click="deletePhoto(n.id, n.isActive)"
class="bg-white" class="bg-white"
style="color: #ff8080" style="color: #ff8080"
> >
<q-tooltip>ลบรปภาพ</q-tooltip> <q-tooltip>ลบรปภาพ</q-tooltip>
</q-btn> </q-btn>
</div> </div>
<div class="absolute-top-right" v-if="n.isActive">
<q-icon name="star" color="yellow" size="24px" />
</div>
</q-img> </q-img>
</div> </div>
</div> </div>
@ -1230,7 +1236,12 @@ onMounted(async () => {
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn @click="selectAvatarHistory" color="public" label="เลือกรูปภาพ"> <q-btn
@click="selectAvatarHistory"
color="public"
label="เลือกรูปภาพ"
:disable="images.length == 0"
>
<q-tooltip>เลอกรปภาพ</q-tooltip> <q-tooltip>เลอกรปภาพ</q-tooltip>
</q-btn> </q-btn>
</q-card-actions> </q-card-actions>

View file

@ -745,6 +745,8 @@ onMounted(async () => {
/> />
</div> </div>
</q-card-section> </q-card-section>
</q-card> </q-card>
<!-- แสดง dialog เลอกหนวยงาน/วนราชการ --> <!-- แสดง dialog เลอกหนวยงาน/วนราชการ -->

View file

@ -175,7 +175,7 @@ onMounted(async () => {
class="q-mr-sm" class="q-mr-sm"
@click="router.push(`/placement/appoint-employee`)" @click="router.push(`/placement/appoint-employee`)"
/> />
รายละเอยดการปรบระดบชนงานกจาง {{ fullName }} รายละเอยดการปรบระดบชนงาน-ายกจาง {{ fullName }}
</div> </div>
<CardProfile :data="dataProfile as DataProfile" :type="'employee'" /> <CardProfile :data="dataProfile as DataProfile" :type="'employee'" />

View file

@ -53,6 +53,7 @@ const props = defineProps({
const modalCommand = ref<boolean>(false); const modalCommand = ref<boolean>(false);
const command = ref<string>(""); const command = ref<string>("");
const commandId = ref<string>(""); const commandId = ref<string>("");
const commandCitizenId = ref<string>("");
let roleAdmin = ref<boolean>(false); let roleAdmin = ref<boolean>(false);
const edit = ref<boolean>(true); const edit = ref<boolean>(true);
@ -912,9 +913,10 @@ function onSearchAdd() {
} }
function onRefCommand(data: any) { function onRefCommand(data: any) {
modalCommand.value = true;
command.value = data.refCommandNo; command.value = data.refCommandNo;
commandId.value = data.commandId; commandId.value = data.commandId;
commandCitizenId.value = data.citizenId;
modalCommand.value = true;
// commandId.value = 'bdf9da91-ba45-497a-a2b7-cc49e2446d97'; // // commandId.value = 'bdf9da91-ba45-497a-a2b7-cc49e2446d97'; //
} }
@ -1787,6 +1789,7 @@ onMounted(async () => {
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:command="command" v-model:command="command"
v-model:commandId="commandId" v-model:commandId="commandId"
v-model:citizen-id="commandCitizenId"
/> />
</template> </template>

View file

@ -130,7 +130,7 @@ async function fectFormfull() {
evaluate_expenct_level.value = await probationStore.assignOutput.map( evaluate_expenct_level.value = await probationStore.assignOutput.map(
(e: any) => ({ (e: any) => ({
id: e.id, id: e.id,
labal: e.output_desc, label: e.output_desc,
}) })
); );
evaluate_ouptut.value = await probationStore.assignOutput.map((e: any) => ({ evaluate_ouptut.value = await probationStore.assignOutput.map((e: any) => ({

View file

@ -122,7 +122,7 @@ const variablesToWatch = [
competency_level, competency_level,
learn_level, learn_level,
apply_level, apply_level,
success_level, // success_level,
]; ];
const ArrayCountbotton = [orientation, self_learning, training_seminar]; const ArrayCountbotton = [orientation, self_learning, training_seminar];
@ -158,7 +158,7 @@ async function fecthFormdata(id: string) {
evaluate_expenct_level.value = res.data.result.assign_output.map( evaluate_expenct_level.value = res.data.result.assign_output.map(
(e: any) => ({ (e: any) => ({
id: e.id, id: e.id,
labal: e.output_desc, label: e.output_desc,
}) })
); );
evaluate_ouptut.value = res.data.result.assign_output.map((e: any) => ({ evaluate_ouptut.value = res.data.result.assign_output.map((e: any) => ({
@ -186,7 +186,7 @@ function savaForm() {
competency_level.value === 0 || competency_level.value === 0 ||
learn_level.value === 0 || learn_level.value === 0 ||
apply_level.value === 0 || apply_level.value === 0 ||
success_level.value === 0 || // success_level.value === 0 ||
achievement_strength_desc.value === "" || achievement_strength_desc.value === "" ||
lengthconduct.value !== 4 || lengthconduct.value !== 4 ||
lengthmoral_level.value !== 3 || lengthmoral_level.value !== 3 ||
@ -260,7 +260,7 @@ function putformData() {
competency_level: competency_level.value, competency_level: competency_level.value,
learn_level: learn_level.value, learn_level: learn_level.value,
apply_level: apply_level.value, apply_level: apply_level.value,
success_level: success_level.value, // success_level: success_level.value,
achievement_other: achievement_other.value, achievement_other: achievement_other.value,
achievement_strength_desc: achievement_strength_desc.value, achievement_strength_desc: achievement_strength_desc.value,
achievement_improve_desc: achievement_improve_desc.value, achievement_improve_desc: achievement_improve_desc.value,
@ -809,7 +809,7 @@ onMounted(async () => {
</q-list> </q-list>
</q-card> </q-card>
<q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm"> <!-- <q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm">
<q-list dense> <q-list dense>
<q-item <q-item
dense dense
@ -843,7 +843,7 @@ onMounted(async () => {
</q-item-section> </q-item-section>
</q-item> </q-item>
</q-list> </q-list>
</q-card> </q-card> -->
<q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm"> <q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm">
<q-list dense> <q-list dense>
@ -851,7 +851,7 @@ onMounted(async () => {
<q-item-section> <q-item-section>
<q-item-label> <q-item-label>
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" /> <q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
1.8 1.7
<q-checkbox <q-checkbox
class="q-ml-sm" class="q-ml-sm"
dense dense

View file

@ -130,7 +130,7 @@ const variablesToWatch = [
competency_level, competency_level,
learn_level, learn_level,
apply_level, apply_level,
success_level, // success_level,
]; ];
const ArrayCountbotton = [orientation, self_learning, training_seminar]; const ArrayCountbotton = [orientation, self_learning, training_seminar];
@ -157,7 +157,7 @@ function savaForm() {
competency_level.value === 0 || competency_level.value === 0 ||
learn_level.value === 0 || learn_level.value === 0 ||
apply_level.value === 0 || apply_level.value === 0 ||
success_level.value === 0 || // success_level.value === 0 ||
achievement_strength_desc.value === "" || achievement_strength_desc.value === "" ||
lengthconduct.value !== 4 || lengthconduct.value !== 4 ||
lengthmoral_level.value !== 3 || lengthmoral_level.value !== 3 ||
@ -242,7 +242,7 @@ async function fecthFormdata(id: string) {
evaluate_expenct_level.value = res.data.result.assign_output.map( evaluate_expenct_level.value = res.data.result.assign_output.map(
(e: any) => ({ (e: any) => ({
id: e.id, id: e.id,
labal: e.output_desc, label: e.output_desc,
}) })
); );
evaluate_ouptut.value = res.data.result.assign_output.map((e: any) => ({ evaluate_ouptut.value = res.data.result.assign_output.map((e: any) => ({
@ -267,7 +267,7 @@ function putformData() {
competency_level: competency_level.value, competency_level: competency_level.value,
learn_level: learn_level.value, learn_level: learn_level.value,
apply_level: apply_level.value, apply_level: apply_level.value,
success_level: success_level.value, // success_level: success_level.value,
achievement_other: achievement_other.value, achievement_other: achievement_other.value,
achievement_strength_desc: achievement_strength_desc.value, achievement_strength_desc: achievement_strength_desc.value,
achievement_improve_desc: achievement_improve_desc.value, achievement_improve_desc: achievement_improve_desc.value,
@ -814,7 +814,7 @@ onMounted(async () => {
</q-list> </q-list>
</q-card> </q-card>
<q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm"> <!-- <q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm">
<q-list dense> <q-list dense>
<q-item <q-item
dense dense
@ -848,7 +848,7 @@ onMounted(async () => {
</q-item-section> </q-item-section>
</q-item> </q-item>
</q-list> </q-list>
</q-card> </q-card> -->
<q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm"> <q-card class="text-top0 col-xs-12 col-sm-11 q-pa-sm q-pl-sm">
<q-list dense> <q-list dense>
@ -856,7 +856,7 @@ onMounted(async () => {
<q-item-section> <q-item-section>
<q-item-label> <q-item-label>
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" /> <q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
1.8 1.7
<q-checkbox <q-checkbox
class="q-ml-sm" class="q-ml-sm"
dense dense

View file

@ -170,7 +170,7 @@ async function fectFormfull() {
evaluate_expenct_level.value = await probationStore.assignOutput.map( evaluate_expenct_level.value = await probationStore.assignOutput.map(
(e: any) => ({ (e: any) => ({
id: e.id, id: e.id,
labal: e.output_desc, label: e.output_desc,
}) })
); );
evaluate_ouptut.value = await probationStore.assignOutput.map((e: any) => ({ evaluate_ouptut.value = await probationStore.assignOutput.map((e: any) => ({

View file

@ -372,7 +372,7 @@ onMounted(async () => {
<template> <template>
<div class="toptitle text-dark col-12 row items-center"> <div class="toptitle text-dark col-12 row items-center">
รายการปรบระดบชนงานกจาง รายการปรบระดบชนงาน-ายกจาง
</div> </div>
<q-card flat bordered class="col-12 q-mt-sm"> <q-card flat bordered class="col-12 q-mt-sm">
<div class="row q-pa-md"> <div class="row q-pa-md">

View file

@ -166,10 +166,10 @@ const commanderList = computed(() => {
// //
const approveCheck = computed(() => { const approveCheck = computed(() => {
const commanders = rows.value?.commanders;
return ( return (
rows.value?.commanders?.every( commanders?.every((commander) => commander.approveStatus === "APPROVE") ??
(commander) => commander.approveStatus === "APPROVE" false
) ?? false
); );
}); });
@ -1073,7 +1073,8 @@ onMounted(async () => {
rows && rows &&
rows.approvers[0]?.profileId == keycloakId && rows.approvers[0]?.profileId == keycloakId &&
rows.approvers[0]?.approveStatus == 'PENDING' && rows.approvers[0]?.approveStatus == 'PENDING' &&
approveCheck approveCheck &&
statusCheck === 'PENDING'
" "
> >
<q-btn <q-btn

View file

@ -174,6 +174,8 @@ async function fetchData() {
checkInStatus: store.convertStatus(e.checkInStatus), checkInStatus: store.convertStatus(e.checkInStatus),
checkOutStatus: store.convertStatus(e.checkOutStatus), checkOutStatus: store.convertStatus(e.checkOutStatus),
})); }));
} else {
rows.value = [];
} }
}) })
.catch((e) => { .catch((e) => {

View file

@ -36,6 +36,7 @@ const props = defineProps({
const avatar = ref<string>(""); const avatar = ref<string>("");
const fullName = ref<string>(""); const fullName = ref<string>("");
const position = ref<string>(""); const position = ref<string>("");
const citizenId = ref<string>("");
const isLoading = ref<boolean>(true); const isLoading = ref<boolean>(true);
/** function เรียกข้อมูลส่วนตัว*/ /** function เรียกข้อมูลส่วนตัว*/
@ -48,6 +49,7 @@ function fetchInformation() {
fullName.value = `${data.prefix}${data.firstName} ${data.lastName}`; fullName.value = `${data.prefix}${data.firstName} ${data.lastName}`;
position.value = data.position; position.value = data.position;
citizenId.value = data.citizenId;
if (data.avatarName) { if (data.avatarName) {
await fetchProfile(data.id as string, data.avatarName); await fetchProfile(data.id as string, data.avatarName);
@ -220,6 +222,7 @@ watch(
v-if="type === 'posSalary'" v-if="type === 'posSalary'"
v-model:profileId="profileId" v-model:profileId="profileId"
:employeeClass="employeeClass" :employeeClass="employeeClass"
:citizenId="citizenId"
/> />
<InfoDiscipline <InfoDiscipline
v-if="type === 'discipline'" v-if="type === 'discipline'"

View file

@ -26,6 +26,7 @@ const {
/** props*/ /** props*/
const profileId = defineModel<string>("profileId", { required: true }); const profileId = defineModel<string>("profileId", { required: true });
const employeeClass = defineModel<string>("employeeClass", { required: true }); const employeeClass = defineModel<string>("employeeClass", { required: true });
const citizenId = defineModel<string>("citizenId", { required: true });
const modalCommand = ref<boolean>(false); const modalCommand = ref<boolean>(false);
const command = ref<string>(""); const command = ref<string>("");
@ -470,6 +471,7 @@ onMounted(() => {
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:command="command" v-model:command="command"
v-model:commandId="commandId" v-model:commandId="commandId"
:citizen-id="citizenId"
/> />
</template> </template>

View file

@ -33,7 +33,9 @@ const {
showLoader, showLoader,
hideLoader, hideLoader,
messageError, messageError,
success,
dialogRemove, dialogRemove,
dialogConfirm,
onSearchDataTable, onSearchDataTable,
} = useCounterMixin(); } = useCounterMixin();
@ -298,6 +300,36 @@ function onSearchListPerson() {
); );
} }
function actActive(id: string, orgName: string) {
// confirm dialog active acting
dialogConfirm(
$q,
() => {
showLoader();
http
.post(config.API.activeActPosition(id), {
activeId: id,
})
.then(async () => {
success($q, "กำหนดรักษาการในตำแหน่งสำเร็จ");
await fetchOrganizationActive();
posmasterId.value = "";
storeActing.rootId = "";
rowPosition.value = [];
rowListPerson.value = [];
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
},
`ยืนยันการกำหนดรักษาการในตำแหน่ง`,
`คุณต้องการกำหนดรักษาการในตำแหน่งของ${orgName} ใช่หรือไม่?`
);
}
onMounted(async () => { onMounted(async () => {
try { try {
showLoader(); showLoader();
@ -367,6 +399,19 @@ onMounted(async () => {
<div> <div>
<div class="text-weight-medium"> <div class="text-weight-medium">
{{ prop.node.orgTreeName }} {{ prop.node.orgTreeName }}
<q-icon
v-if="
prop.node.orgLevel === 0 &&
checkPermission($route)?.attrOwnership == 'OWNER'
"
name="mdi-content-save-edit"
color="blue"
@click.stop="
actActive(prop.node.orgTreeId, prop.node.orgTreeName)
"
size="xs"
><q-tooltip> นทกการกำหนดรกษาการ </q-tooltip></q-icon
>
</div> </div>
<div class="text-weight-light text-grey-8"> <div class="text-weight-light text-grey-8">
{{ prop.node.orgCode == null ? null : prop.node.orgCode }} {{ prop.node.orgCode == null ? null : prop.node.orgCode }}
@ -508,7 +553,7 @@ onMounted(async () => {
v-if="props.row.posNo && props.row.isDirector" v-if="props.row.posNo && props.row.isDirector"
name="mdi-star" name="mdi-star"
color="primary" color="primary"
><q-tooltip>อำนวยการ/วหน</q-tooltip> ><q-tooltip>อำนวยการ/วหน</q-tooltip>
</q-icon> </q-icon>
</div> </div>
<div v-else> <div v-else>
@ -593,7 +638,14 @@ onMounted(async () => {
</q-tr> </q-tr>
</template> </template>
<template v-slot:body="props"> <template v-slot:body="props">
<q-tr :props="props"> <q-tr
:props="props"
:class="
props.row.statusReport === 'DONE'
? 'text-green'
: ''
"
>
<q-td <q-td
auto-width auto-width
v-if=" v-if="

View file

@ -19,6 +19,7 @@ const { showLoader, hideLoader, messageError } = useCounterMixin();
const modal = defineModel<boolean>("modal", { required: true }); const modal = defineModel<boolean>("modal", { required: true });
const command = defineModel<string>("command", { required: true }); const command = defineModel<string>("command", { required: true });
const commandId = defineModel<string>("commandId", { required: true }); const commandId = defineModel<string>("commandId", { required: true });
const citizenId = defineModel<string>("citizenId", { required: true });
const promises = ref<any>([]); const promises = ref<any>([]);
const tab = ref<string>("main"); //tab const tab = ref<string>("main"); //tab
@ -37,6 +38,7 @@ function closeDialog() {
modal.value = false; modal.value = false;
command.value = ""; command.value = "";
commandId.value = ""; commandId.value = "";
citizenId.value = "";
} }
/** /**
@ -88,13 +90,25 @@ async function downloadCover(type: string) {
*/ */
async function fetchDataCommand(type: string) { async function fetchDataCommand(type: string) {
let newType = type === "cover" ? "คำสั่ง" : "แนบท้าย"; let newType = type === "cover" ? "คำสั่ง" : "แนบท้าย";
const pathAPI =
type === "cover"
? config.API.fileByFile(
"ระบบออกคำสั่ง",
newType,
commandId.value,
newType
)
: config.API.subFileByFileName(
"ระบบออกคำสั่ง",
newType,
commandId.value,
citizenId.value,
newType
);
await http await http
.get( .get(pathAPI)
config.API.fileByFile("ระบบออกคำสั่ง", newType, commandId.value, newType)
)
.then(async (res) => { .then(async (res) => {
const data = res.data; const data = res.data;
console.log(res);
if (type === "cover") { if (type === "cover") {
dataCover.value = data; dataCover.value = data;

View file

@ -43,7 +43,7 @@ async function fetchData() {
? "Live" ? "Live"
: data.isSignature === false : data.isSignature === false
? "Digital" ? "Digital"
: ""; : "Live";
isStatus.value = data.status; isStatus.value = data.status;
isDraft.value = data.isDraft; isDraft.value = data.isDraft;
isSign.value = data.isSign; isSign.value = data.isSign;
@ -174,11 +174,12 @@ onMounted(async () => {
<q-item tag="label" v-ripple> <q-item tag="label" v-ripple>
<q-item-section avatar> <q-item-section avatar>
<!-- :disable="isSignature !== null || store.readonly" -->
<q-radio <q-radio
v-model="signaturetype" v-model="signaturetype"
val="Digital" val="Digital"
color="primary" color="primary"
:disable="isSignature !== null || store.readonly" disable
/> />
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>

View file

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref } from "vue"; import { onMounted, ref, computed } from "vue";
import { useQuasar } from "quasar"; import { useQuasar } from "quasar";
import axios from "axios"; import axios from "axios";
@ -42,12 +42,23 @@ const isAuthority = defineModel<boolean>("isAuthority", { required: true }); //
const isCheckAuthority = ref<boolean>(false); // const isCheckAuthority = ref<boolean>(false); //
const isAttachment = defineModel<boolean>("isAttachment", { required: true }); // const isAttachment = defineModel<boolean>("isAttachment", { required: true }); //
const fileUploadOrder = ref<any>(null); // const fileUploadOrder = ref<any>(null); //
const fileUploadTailer = ref<any>(null); // // const fileUploadTailer = ref<any>(null); //
const fileOrder = ref<any>(null); // const fileOrder = ref<any>(null); //
const fileTailer = ref<any>(null); // // const fileTailer = ref<any>(null); //
const isLoad = ref<boolean>(true); // const isLoad = ref<boolean>(true); //
const modalPerView = ref<boolean>(false); const modalPerView = ref<boolean>(false);
//
const attachmentList = ref<any[]>([]);
const attachmentFiles = ref<Record<number, any>>({});
const isFileTailer = computed(() => {
//
return (
attachmentList.value.length > 0 &&
attachmentList.value.every((person) => !!attachmentFiles.value[person.id])
);
});
/** /**
* งกนยนยนการสงใหอำนาจลงนามอน * งกนยนยนการสงใหอำนาจลงนามอน
@ -88,7 +99,9 @@ async function updateCheckboxAuthority(val: boolean) {
.put(config.API.command + `/pending-check/${commandId.value}`, { .put(config.API.command + `/pending-check/${commandId.value}`, {
sign: val, sign: val,
}) })
.then(() => {}) .then(() => {
isAttachment.value && fetchLists();
})
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
}) })
@ -104,7 +117,7 @@ async function updateCheckboxAuthority(val: boolean) {
function onUploadFile(group: string) { function onUploadFile(group: string) {
showLoader(); showLoader();
let type = group === "order" ? "คำสั่ง" : "แนบท้าย"; let type = group === "order" ? "คำสั่ง" : "แนบท้าย";
let file = group === "order" ? fileUploadOrder.value : fileUploadTailer.value; // let file = group === "order" ? fileUploadOrder.value : fileUploadTailer.value;
const fileName = { fileName: type }; const fileName = { fileName: type };
http http
.post(config.API.file("ระบบออกคำสั่ง", type, commandId.value), { .post(config.API.file("ระบบออกคำสั่ง", type, commandId.value), {
@ -118,7 +131,11 @@ function onUploadFile(group: string) {
res.data[key]?.fileName !== "" res.data[key]?.fileName !== ""
); );
foundKey && foundKey &&
(await uploadFileDoc(res.data[foundKey]?.uploadUrl, file, group)); (await uploadFileDoc(
res.data[foundKey]?.uploadUrl,
fileUploadOrder.value,
group
));
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
@ -134,7 +151,12 @@ function onUploadFile(group: string) {
* @param file ไฟลองการอปโหลด * @param file ไฟลองการอปโหลด
* @param group ประเภพไฟล "คำสั่ง","แนบท้าย" * @param group ประเภพไฟล "คำสั่ง","แนบท้าย"
*/ */
async function uploadFileDoc(uploadUrl: string, file: any, group: string) { async function uploadFileDoc(
uploadUrl: string,
file: any,
group: string,
id?: string
) {
const formData = new FormData(); const formData = new FormData();
formData.append("file", file); formData.append("file", file);
showLoader(); showLoader();
@ -154,7 +176,11 @@ async function uploadFileDoc(uploadUrl: string, file: any, group: string) {
if (group === "order") { if (group === "order") {
fileUploadOrder.value = null; fileUploadOrder.value = null;
} else { } else {
fileUploadTailer.value = null; attachmentList.value.forEach((e) => {
if (e.id === id) {
e.file = null;
}
});
} }
hideLoader(); hideLoader();
}); });
@ -167,15 +193,40 @@ async function uploadFileDoc(uploadUrl: string, file: any, group: string) {
async function fetchDoc(group: string) { async function fetchDoc(group: string) {
showLoader(); showLoader();
let type = group === "order" ? "คำสั่ง" : "แนบท้าย"; let type = group === "order" ? "คำสั่ง" : "แนบท้าย";
if (group === "order") {
await fetchDocOrder(type);
} else {
attachmentList.value.forEach(async (e) => {
await fetchDocTailer(type, e.id);
});
}
}
async function fetchDocOrder(type: string) {
await http await http
.get(config.API.file("ระบบออกคำสั่ง", type, commandId.value)) .get(config.API.file("ระบบออกคำสั่ง", type, commandId.value))
.then((res) => { .then((res) => {
const data = res.data[0]; const data = res.data[0];
if (group === "order") { fileOrder.value = data;
fileOrder.value = data; })
} else { .catch((e) => {
fileTailer.value = data; messageError($q, e);
} })
.finally(() => {
hideLoader();
});
}
async function fetchDocTailer(type: string, id: string) {
await http
.get(config.API.subFile("ระบบออกคำสั่ง", type, commandId.value, id))
.then((res) => {
const data = res.data[0];
attachmentList.value.forEach((e) => {
if (e.id === id) {
attachmentFiles.value[e.id] = data;
}
});
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);
@ -190,18 +241,33 @@ const dataFile = ref<DataFileDownload>();
* ดาวนโหลดลงกไฟล * ดาวนโหลดลงกไฟล
* @param fileName file name * @param fileName file name
*/ */
function downloadFile(file: any, group: string, isView: boolean = false) { function downloadFile(
file: any,
group: string,
isView: boolean = false,
id: string
) {
let type = group === "order" ? "คำสั่ง" : "แนบท้าย"; let type = group === "order" ? "คำสั่ง" : "แนบท้าย";
const pathApi =
group === "order"
? config.API.fileByFile(
"ระบบออกคำสั่ง",
type,
commandId.value,
file.fileName
)
: config.API.subFileByFileName(
"ระบบออกคำสั่ง",
type,
commandId.value,
id,
file.fileName
);
showLoader(); showLoader();
http http
.get( .get(pathApi)
config.API.fileByFile(
"ระบบออกคำสั่ง",
type,
commandId.value,
file.fileName
)
)
.then((res) => { .then((res) => {
const data = res.data; const data = res.data;
dataFile.value = data; dataFile.value = data;
@ -257,6 +323,49 @@ function onConfirmOrder() {
} }
} }
/** ดึงข้อมูล บุคคล */
async function fetchLists() {
await http
.get(config.API.commandAction(commandId.value, "tab2"))
.then(async (res) => {
const data = await res.data.result;
attachmentList.value = data.commandRecives.map((item: any) => ({
id: item.citizenId,
name: item.prefix + item.firstName + " " + item.lastName,
file: null,
}));
})
.catch((e) => {
messageError($q, e);
});
}
function onUploadFileTailer(id: string, file: any) {
const type = "แนบท้าย";
const fileName = { fileName: type };
http
.post(config.API.subFile("ระบบออกคำสั่ง", type, commandId.value, id), {
replace: true,
fileList: fileName,
})
.then(async (res) => {
const foundKey: string | undefined = Object.keys(res.data).find(
(key) =>
res.data[key]?.fileName !== undefined &&
res.data[key]?.fileName !== ""
);
foundKey &&
(await uploadFileDoc(res.data[foundKey]?.uploadUrl, file, type, id));
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
onMounted(async () => { onMounted(async () => {
isCheckDraft.value = isDraft.value; isCheckDraft.value = isDraft.value;
isCheckAuthority.value = isAuthority.value; isCheckAuthority.value = isAuthority.value;
@ -264,6 +373,7 @@ onMounted(async () => {
isLoad.value = false; isLoad.value = false;
let promises = [fetchDoc("order")]; let promises = [fetchDoc("order")];
if (isAttachment.value) { if (isAttachment.value) {
await fetchLists();
promises.push(fetchDoc("tailer")); promises.push(fetchDoc("tailer"));
} }
await Promise.all(promises).finally(() => { await Promise.all(promises).finally(() => {
@ -318,141 +428,172 @@ onMounted(async () => {
/> />
</div> </div>
<div <div class="row col-12" style="padding-left: 50px" v-if="isAuthority">
class="row col-12 q-col-gutter-sm"
style="padding-left: 50px"
v-if="isAuthority"
>
<div class="col-12 text-header"> <div class="col-12 text-header">
ปโหลดเอกสารสแกนกลบเขาสระบบ ปโหลดเอกสารสแกนกลบเขาสระบบ
</div> </div>
<div class="col-6"> <div class="col-6 q-col-gutter-sm">
<q-card <div class="col-6">
bordered <q-card
class="row col-12" bordered
style="border: 1px solid #d6dee1" class="row col-12"
> style="border: 1px solid #d6dee1"
<div
class="row items-center col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
> >
คำส <div
<q-space /> class="row items-center col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
<q-btn
v-if="fileOrder"
rounded
flat
dense
color="primary"
icon="mdi-eye"
@click.prevent="downloadFile(fileOrder, 'order', true)"
> >
<q-tooltip>ไฟลคำส</q-tooltip> คำส
</q-btn> <q-space />
<q-btn <q-btn
v-if="fileOrder" v-if="fileOrder"
rounded rounded
flat flat
dense dense
color="red" color="primary"
icon="mdi-download" icon="mdi-eye"
@click.prevent="downloadFile(fileOrder, 'order')" @click.prevent="
> downloadFile(fileOrder, 'order', true, '')
<q-tooltip>ดาวนโหลดไฟลคำส</q-tooltip> "
</q-btn> >
</div> <q-tooltip>ไฟลคำส</q-tooltip>
<div class="col-12"><q-separator /></div> </q-btn>
<div class="col-12 q-pa-md" v-if="step === 2"> <q-btn
<q-file v-if="fileOrder"
outlined rounded
dense flat
v-model="fileUploadOrder" dense
label="เลือกไฟล์คำสั่ง" color="red"
hide-bottom-space icon="mdi-download"
accept=".pdf" @click.prevent="
:readonly="store.readonly" downloadFile(fileOrder, 'order', false, '')
> "
<template v-slot:prepend> >
<q-icon name="attach_file" /> <q-tooltip>ดาวนโหลดไฟลคำส</q-tooltip>
</template> </q-btn>
</div>
<div class="col-12"><q-separator /></div>
<div class="col-12 q-pa-md" v-if="step === 2">
<q-file
outlined
dense
v-model="fileUploadOrder"
label="เลือกไฟล์คำสั่ง"
hide-bottom-space
accept=".pdf"
:readonly="store.readonly"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
</template>
<template v-slot:after> <template v-slot:after>
<q-btn <q-btn
@click.prevent="onUploadFile('order')" @click.prevent="onUploadFile('order')"
flat flat
round round
icon="mdi-upload" icon="mdi-upload"
:color="fileUploadOrder == null ? 'grey-5' : 'blue-5'" :color="fileUploadOrder == null ? 'grey-5' : 'blue-5'"
:disable="fileUploadOrder == null" :disable="fileUploadOrder == null"
/> />
</template> </template>
</q-file> </q-file>
</div> </div>
</q-card> </q-card>
</div> </div>
<div class="col-6" v-if="isAttachment"> <div class="col-6" v-if="isAttachment">
<q-card <q-card
bordered bordered
class="row col-12" class="row col-12"
style="border: 1px solid #d6dee1" style="border: 1px solid #d6dee1"
>
<div
class="row items-center col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
> >
เอกสารแนบทาย <div
<q-space /> class="row items-center col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md"
<q-btn
v-if="fileTailer"
rounded
flat
dense
color="primary"
icon="mdi-eye"
@click.prevent="downloadFile(fileTailer, 'tailer', true)"
> >
<q-tooltip>ไฟลเอกสารแนบทาย</q-tooltip> เอกสารแนบทาย
</q-btn> </div>
<q-btn <div class="col-12"><q-separator /></div>
v-if="fileTailer" <div class="row col-12 q-pa-md q-col-gutter-sm">
rounded <div
flat v-for="(person, idx) in attachmentList"
dense :key="person.id"
color="red" class="col-12"
icon="mdi-download" >
@click.prevent="downloadFile(fileTailer, 'tailer')" <q-card flat bordered class="q-pa-sm">
> <div class="row items-center">
<q-tooltip>ดาวนโหลดไฟลแนบทาย</q-tooltip> <div class="text-weight-medium">
</q-btn> {{ person.name }}
</div> </div>
<div class="col-12"><q-separator /></div> <q-space />
<div class="col-12 q-pa-md" v-if="step === 2"> <q-btn
<q-file v-if="attachmentFiles[person.id]"
outlined @click.prevent="
dense downloadFile(
v-model="fileUploadTailer" attachmentFiles[person.id],
label="เลือกไฟล์เอกสารแนบท้าย" 'tailer',
hide-bottom-space true,
accept=".pdf" person.id
:readonly="store.readonly" )
> "
<template v-slot:prepend> flat
<q-icon name="attach_file" /> dense
</template> color="primary"
icon="mdi-eye"
<template v-slot:after> class="q-mr-xs"
<q-btn >
@click.prevent="onUploadFile('tailer')" <q-tooltip>ไฟลเอกสารแนบทาย</q-tooltip>
flat </q-btn>
round <q-btn
icon="mdi-upload" v-if="attachmentFiles[person.id]"
:color="fileUploadTailer == null ? 'grey-5' : 'blue-5'" @click.prevent="
:disable="fileUploadTailer == null" downloadFile(
/> attachmentFiles[person.id],
<q-tooltip>ปโหลดไฟลเอกสารแนบทาย</q-tooltip> 'tailer',
</template> false,
</q-file> person.id
</div> )
</q-card> "
flat
dense
color="red"
icon="mdi-download"
>
<q-tooltip>ดาวนโหลดไฟลเอกสารแนบทาย</q-tooltip>
</q-btn>
</div>
<q-file
v-if="step === 2"
outlined
dense
v-model="person.file"
label="เลือกไฟล์เอกสารแนบท้าย"
hide-bottom-space
accept=".pdf"
:readonly="store.readonly"
class="full-width"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
</template>
<template v-slot:after>
<q-btn
@click.prevent="
onUploadFileTailer(person.id, person.file)
"
flat
round
icon="mdi-upload"
:color="person.file == null ? 'grey-5' : 'blue-5'"
:disable="person.file == null"
/>
<q-tooltip>ปโหลดไฟลเอกสารแนบทาย</q-tooltip>
</template>
</q-file>
</q-card>
</div>
</div>
</q-card>
</div>
</div> </div>
</div> </div>
@ -462,7 +603,7 @@ onMounted(async () => {
step === 2 && step === 2 &&
isAuthority && isAuthority &&
fileOrder && fileOrder &&
(!isAttachment || fileTailer) (!isAttachment || isFileTailer)
" "
> >
<q-btn <q-btn
@ -472,14 +613,14 @@ onMounted(async () => {
:color=" :color="
!isAuthority || !isAuthority ||
fileOrder === null || fileOrder === null ||
(fileTailer === null && isAttachment) (!isFileTailer && isAttachment)
? 'grey-5' ? 'grey-5'
: 'public' : 'public'
" "
:disable=" :disable="
!isAuthority || !isAuthority ||
fileOrder === null || fileOrder === null ||
(fileTailer === null && isAttachment) (!isFileTailer && isAttachment)
" "
/> />
</div> </div>