ออกคำสั่ง Check สกจ.

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-09 13:56:53 +07:00
parent a4133792d9
commit ff80a4b073
3 changed files with 25 additions and 117 deletions

View file

@ -10,7 +10,12 @@ export default {
commandAction: (commandId: string, type: string) => commandAction: (commandId: string, type: string) =>
`${command}/${type}/${commandId}`, `${command}/${type}/${commandId}`,
commandSalaryList:(command:string)=>`${commandSalary}/list?commandSysId=${command}`, commandSalaryList: (command: string) =>
commandSwap:(tab:string,direction:string,commandReciveId:string)=>`${command}/${tab}/swap/${direction}/${commandReciveId}`, `${commandSalary}/list?commandSysId=${command}`,
commandEditRecive:(tab:string,commandReciveId:string)=>`${command}/${tab}/recive/${commandReciveId}` commandSwap: (tab: string, direction: string, commandReciveId: string) =>
`${command}/${tab}/swap/${direction}/${commandReciveId}`,
commandEditRecive: (tab: string, commandReciveId: string) =>
`${command}/${tab}/recive/${commandReciveId}`,
checkIdofficer: `${env.API_URI}/org/profile/keycloak/idofficer`,
}; };

View file

@ -42,10 +42,21 @@ let formData = reactive<FormDataDetail>({
isAttachment: true, isAttachment: true,
}); });
const modalPreview = ref<boolean>(false); // const modalPreview = ref<boolean>(false); //
const isIdofficer = ref<boolean>(false); // .
async function fetchCheckIdofficer() {
await http
.get(config.API.checkIdofficer)
.then((res) => {
isIdofficer.value = res.data.result;
})
.catch((err) => {
messageError($q, err);
});
}
/** /**
* งกนบนทกขอมลรายละเอยดคำส * งกนบนทกขอมลรายละเอยดคำส
*
* และกำหนด isChangeData เป false * และกำหนด isChangeData เป false
*/ */
async function onSubmit() { async function onSubmit() {
@ -77,6 +88,7 @@ onMounted(() => {
formData.commandAffectDate = props.formCommandList.commandAffectDate; formData.commandAffectDate = props.formCommandList.commandAffectDate;
formData.commandExcecuteDate = props.formCommandList.commandExcecuteDate; formData.commandExcecuteDate = props.formCommandList.commandExcecuteDate;
formData.isBangkok = props.formCommandList.isBangkok; formData.isBangkok = props.formCommandList.isBangkok;
fetchCheckIdofficer();
}); });
/** /**
@ -273,43 +285,6 @@ defineExpose({
@update:model-value="onCheckChangeData()" @update:model-value="onCheckChangeData()"
type="textarea" type="textarea"
/> />
<!-- <q-card bordered flat>
<div class="bg-grey-2 row q-py-sm q-px-md text-bold">
เนอหาคำสงสวนต
</div>
<q-separator />
<q-card-section>
<q-field
class="q_field_p_none"
ref="fieldRef"
v-model="formData.detailHeader"
borderless
hide-bottom-space
>
<template #control>
<q-editor
@update:model-value="onCheckChangeData()"
:readonly="store.readonly"
class="full-width"
v-model="formData.detailHeader"
min-height="5rem"
:toolbar="[
['left', 'center', 'right', 'justify'],
[
'bold',
'italic',
'strike',
'underline',
'subscript',
'superscript',
],
['unordered', 'ordered'],
]"
/>
</template>
</q-field>
</q-card-section>
</q-card> -->
</div> </div>
<!-- เนอหาคำสงสวนกลาง --> <!-- เนอหาคำสงสวนกลาง -->
@ -327,43 +302,6 @@ defineExpose({
:rules="[(val: string) => !!val || `${'กรุณากรอกเนื้อหาคำสั่งหลัก'}`]" :rules="[(val: string) => !!val || `${'กรุณากรอกเนื้อหาคำสั่งหลัก'}`]"
lazy-rules lazy-rules
/> />
<!-- <q-card bordered flat>
<div class="bg-grey-2 row q-py-sm q-px-md text-bold">
เนอหาคำสงสวนกลาง
</div>
<q-separator />
<q-card-section>
<q-field
class="q_field_p_none"
ref="fieldRef"
v-model="formData.detailBody"
borderless
hide-bottom-space
>
<template #control>
<q-editor
@update:model-value="onCheckChangeData()"
:readonly="store.readonly"
class="full-width"
v-model="formData.detailBody"
min-height="5rem"
:toolbar="[
['left', 'center', 'right', 'justify'],
[
'bold',
'italic',
'strike',
'underline',
'subscript',
'superscript',
],
['unordered', 'ordered'],
]"
/>
</template>
</q-field>
</q-card-section>
</q-card> -->
</div> </div>
<!-- เนอหาคำสงสวนทาย --> <!-- เนอหาคำสงสวนทาย -->
@ -379,47 +317,11 @@ defineExpose({
@update:model-value="onCheckChangeData()" @update:model-value="onCheckChangeData()"
type="textarea" type="textarea"
/> />
<!-- <q-card bordered flat>
<div class="bg-grey-2 row q-py-sm q-px-md text-bold">
เนอหาคำสงสวนทาย
</div>
<q-separator />
<q-card-section>
<q-field
class="q_field_p_none"
ref="fieldRef"
v-model="formData.detailFooter"
borderless
hide-bottom-space
>
<template #control>
<q-editor
@update:model-value="onCheckChangeData()"
:readonly="store.readonly"
class="full-width"
v-model="formData.detailFooter"
min-height="5rem"
:toolbar="[
['left', 'center', 'right', 'justify'],
[
'bold',
'italic',
'strike',
'underline',
'subscript',
'superscript',
],
['unordered', 'ordered'],
]"
/>
</template>
</q-field>
</q-card-section>
</q-card> -->
</div> </div>
<div class="col-12 q-gutter-sm"> <div class="col-12 q-gutter-sm" v-if="isIdofficer">
<q-radio <q-radio
:disable="store.readonly"
keep-color keep-color
color="primary" color="primary"
dense dense
@ -429,6 +331,7 @@ defineExpose({
/> />
<q-radio <q-radio
:disable="store.readonly"
keep-color keep-color
color="primary" color="primary"
dense dense

View file

@ -24,7 +24,7 @@ interface FormDataDetail {
commandExcecuteDate: Date | null; commandExcecuteDate: Date | null;
commandSysId?: string; commandSysId?: string;
commandTypeName?: string; commandTypeName?: string;
isBangkok?: string; isBangkok?: string | null;
isAttachment: boolean; isAttachment: boolean;
} }