แก้อัพโหลดไฟล์อุทธรณ์
This commit is contained in:
parent
cf6d9fec29
commit
4bef8e466f
1 changed files with 28 additions and 19 deletions
|
|
@ -8,12 +8,15 @@ import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
||||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
||||||
import DialogHistory from '@/modules/11_discipline/components/8_AppealComplain/dialog/DialogEditStatus.vue'
|
import DialogHistory from "@/modules/11_discipline/components/8_AppealComplain/dialog/DialogEditStatus.vue";
|
||||||
|
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
|
||||||
import type { MyObjectAppealRef,HistoryStatusType } from "@/modules/11_discipline/interface/response/appealComplain";
|
import type {
|
||||||
|
MyObjectAppealRef,
|
||||||
|
HistoryStatusType,
|
||||||
|
} from "@/modules/11_discipline/interface/response/appealComplain";
|
||||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||||
const mainStore = useDisciplineMainStore();
|
const mainStore = useDisciplineMainStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
@ -35,7 +38,7 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const modalHistory = ref<boolean>(false)
|
const modalHistory = ref<boolean>(false);
|
||||||
const statusCheck = ref<string>("");
|
const statusCheck = ref<string>("");
|
||||||
const modalPerson = ref<boolean>(false);
|
const modalPerson = ref<boolean>(false);
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
|
|
@ -52,11 +55,13 @@ const dataStore = useAppealComplainStore();
|
||||||
|
|
||||||
const modalEdit = ref<boolean>(false);
|
const modalEdit = ref<boolean>(false);
|
||||||
|
|
||||||
const historyStatusOb = reactive<HistoryStatusType[]>([{
|
const historyStatusOb = reactive<HistoryStatusType[]>([
|
||||||
status: "",
|
{
|
||||||
createdFullName: "",
|
status: "",
|
||||||
createdAt: new Date(),
|
createdFullName: "",
|
||||||
}]);
|
createdAt: new Date(),
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
const formData = reactive<any>({
|
const formData = reactive<any>({
|
||||||
profileId: "xx",
|
profileId: "xx",
|
||||||
|
|
@ -87,10 +92,15 @@ const objectAppeal: MyObjectAppealRef = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
|
/** หัวข้อที่เเสดงในตารางผู้ถูกร้องเรียน */
|
||||||
const visibleColumns = ref<string[]>(["no", "citizenId", "fullname","oc",'position']);
|
const visibleColumns = ref<string[]>([
|
||||||
|
"no",
|
||||||
|
"citizenId",
|
||||||
|
"fullname",
|
||||||
|
"oc",
|
||||||
|
"position",
|
||||||
|
]);
|
||||||
/** หัวตารางผู้ถูกร้องเรียน */
|
/** หัวตารางผู้ถูกร้องเรียน */
|
||||||
const columns = ref<QTableProps["columns"]>([
|
const columns = ref<QTableProps["columns"]>([
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "no",
|
name: "no",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
@ -191,7 +201,6 @@ function inputEdit(val: boolean) {
|
||||||
"full-width cursor-pointer inputgreen ": val,
|
"full-width cursor-pointer inputgreen ": val,
|
||||||
"full-width cursor-pointer inputgreen": !val,
|
"full-width cursor-pointer inputgreen": !val,
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function uploadFile() {
|
function uploadFile() {
|
||||||
|
|
@ -279,8 +288,8 @@ function close() {
|
||||||
modalHistory.value = false;
|
modalHistory.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function historyStatus(){
|
function historyStatus() {
|
||||||
modalHistory.value = true
|
modalHistory.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
|
|
@ -322,7 +331,6 @@ onMounted(() => {
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<div class="q-gutter-y-sm">
|
<div class="q-gutter-y-sm">
|
||||||
<div class="row q-gutter-x-sm">
|
<div class="row q-gutter-x-sm">
|
||||||
|
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<q-select
|
<q-select
|
||||||
ref="typeRef"
|
ref="typeRef"
|
||||||
|
|
@ -385,7 +393,7 @@ onMounted(() => {
|
||||||
>
|
>
|
||||||
ผู้ยื่นอุทธณ์/ร้องทุกข์
|
ผู้ยื่นอุทธณ์/ร้องทุกข์
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!isReadonly"
|
v-if="!isReadonly"
|
||||||
size="12px"
|
size="12px"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
@ -562,8 +570,9 @@ onMounted(() => {
|
||||||
</q-card>
|
</q-card>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- อัพโหลดไฟล์ -->
|
<!-- อัพโหลดไฟล์ -->
|
||||||
<div class="col-sm-12 col-md-3">
|
<div v-if="isReadonly" class="col-sm-12 col-md-3">
|
||||||
<q-card bordered class="row col-12" style="border: 1px solid #d6dee1">
|
<q-card bordered class="row col-12" style="border: 1px solid #d6dee1">
|
||||||
<div class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
<div class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
||||||
อัปโหลดไฟล์เอกสารหลักฐาน
|
อัปโหลดไฟล์เอกสารหลักฐาน
|
||||||
|
|
@ -660,9 +669,9 @@ onMounted(() => {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DialogHistory
|
<DialogHistory
|
||||||
:modal="modalHistory"
|
:modal="modalHistory"
|
||||||
:close="close"
|
:close="close"
|
||||||
:data="formData.historyStatus"
|
:data="formData.historyStatus"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue