ออกคำสั่ง Check สกจ.
This commit is contained in:
parent
a4133792d9
commit
ff80a4b073
3 changed files with 25 additions and 117 deletions
|
|
@ -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`,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue