This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-28 09:54:06 +07:00
parent 627696ea65
commit 018e430289
5 changed files with 31 additions and 42 deletions

View file

@ -36,21 +36,21 @@ const props = defineProps({
const commandId = ref<string>(route.params.id.toString()); //ID
//
let formData = reactive({
commandNo: "",
commandYear: null,
detailHeader: "",
detailBody: "",
detailFooter: "",
issue: null,
let formData = reactive<FormDataDetail>({
issue: null, //
commandNo: "", //
commandYear: null, //..
detailHeader: "", //
detailBody: "", //
detailFooter: "", //
commandAffectDate: null, //
commandExcecuteDate: null, //
isBangkok: null,
// isAttachment: true,
isBangkok: null, //
});
const modalPreview = ref<boolean>(false); //
const isIdofficer = ref<boolean>(false); // .
/** ฟังก์ชันเช็ค สกจ.*/
async function fetchCheckIdofficer() {
await http
.get(config.API.checkIdofficer)
@ -90,7 +90,6 @@ async function onSubmit() {
*/
onMounted(async () => {
await fetchCheckIdofficer();
formData.commandNo = props.formCommandList.commandNo;
formData.commandYear = props.formCommandList.commandYear;
formData.detailHeader = props.formCommandList.detailHeader;
@ -109,8 +108,6 @@ onMounted(async () => {
<q-form greedy @submit.prevent @validation-success="onSubmit">
<q-card-section>
<div class="row q-col-gutter-sm">
<!-- คำสงเลขท -->
<!-- คำสงเรอง -->
<div class="col-12">
<q-input
:class="store.classInput(!store.readonly)"