ทะเบียนประวัติ
This commit is contained in:
parent
2edda09818
commit
a20426bdf8
20 changed files with 931 additions and 794 deletions
|
|
@ -68,9 +68,7 @@ const orgLevelOption = ref<DataOption[]>([]);
|
|||
const orgNameRef = ref<Object | null>(null);
|
||||
const orgShortNameRef = ref<Object | null>(null);
|
||||
const orgCodeRef = ref<Object | null>(null);
|
||||
// const orgPhoneExRef = ref<Object | null>(null);
|
||||
// const orgPhoneInRef = ref<Object | null>(null);
|
||||
// const orgFaxRef = ref<Object | null>(null);
|
||||
|
||||
const orgLevelRef = ref<Object | null>(null);
|
||||
const orgLevelSubRef = ref<Object | null>(null);
|
||||
|
||||
|
|
@ -83,6 +81,7 @@ const formData = reactive<FormDataAgency>({
|
|||
orgFax: "",
|
||||
orgLevel: "",
|
||||
orgLevelSub: "",
|
||||
responsibility: "",
|
||||
});
|
||||
|
||||
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
||||
|
|
@ -90,9 +89,7 @@ const objectComplaintsRef: FormAgencyRef = {
|
|||
orgName: orgNameRef,
|
||||
orgShortName: orgShortNameRef,
|
||||
orgCode: orgCodeRef,
|
||||
// orgPhoneEx: orgPhoneExRef,
|
||||
// orgPhoneIn: orgPhoneInRef,
|
||||
// orgFax: orgFaxRef,
|
||||
|
||||
orgLevel: orgLevelRef,
|
||||
orgLevelSub: orgLevelSubRef,
|
||||
};
|
||||
|
|
@ -149,6 +146,7 @@ function onSubmit() {
|
|||
["org" + type + "RankSub"]:
|
||||
level.value !== 0 ? formData.orgLevelSub : undefined,
|
||||
[nameId]: rootId,
|
||||
responsibility: formData.responsibility,
|
||||
};
|
||||
|
||||
if (actionType.value === "ADD") {
|
||||
|
|
@ -194,7 +192,6 @@ function onSubmit() {
|
|||
messageError($q, err);
|
||||
})
|
||||
.finally(async () => {
|
||||
// await props.fetchDataTree?.();
|
||||
hideLoader();
|
||||
}));
|
||||
}
|
||||
|
|
@ -209,6 +206,7 @@ function closeClear() {
|
|||
formData.orgPhoneIn = "";
|
||||
formData.orgFax = "";
|
||||
formData.orgLevel = "";
|
||||
formData.responsibility = "";
|
||||
props.close?.();
|
||||
}
|
||||
|
||||
|
|
@ -468,6 +466,19 @@ function selectOrgLevele(val: string, status: boolean = true) {
|
|||
hide-bottom-space
|
||||
/>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<q-input
|
||||
v-model="formData.responsibility"
|
||||
ref="responsibilityRef"
|
||||
dense
|
||||
outlined
|
||||
for="#tel"
|
||||
label="หน้าที่ความรับผิดชอบ"
|
||||
hide-bottom-space
|
||||
type="textarea"
|
||||
rows="4"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator />
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ interface FormDataAgency {
|
|||
orgFax: string;
|
||||
orgLevel: string;
|
||||
orgLevelSub: string;
|
||||
responsibility: string;
|
||||
}
|
||||
|
||||
interface FormDataPosition {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue