แก้ เงื่อนไข fix bug
This commit is contained in:
parent
0bbf5cde0b
commit
855b4b6be8
3 changed files with 56 additions and 31 deletions
|
|
@ -99,6 +99,7 @@
|
|||
label="เอกสารเพิ่มเติม"
|
||||
type="file"
|
||||
@added="fileUploadDoc"
|
||||
@removed="filesNull"
|
||||
style="max-width: px"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -155,6 +156,7 @@
|
|||
{{ dataDetail.oligarchRejectDate !== null ? date2Thai(dataDetail.oligarchRejectDate) : "-" }}
|
||||
</div>
|
||||
</div>
|
||||
{{ files }}
|
||||
<div class="col-xs-12 row items-start">
|
||||
<div class="col-12 text-top">ความคิดเห็นและเหตุผล</div>
|
||||
<div class="col-12 text-detail" v-if="dataDetail.oligarchReject == false">
|
||||
|
|
@ -240,6 +242,10 @@ const statusOrder = (val: boolean) => {
|
|||
}
|
||||
}
|
||||
|
||||
const filesNull = () => {
|
||||
files.value = null
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (route.params.id !== undefined) {
|
||||
id.value = route.params.id.toString()
|
||||
|
|
@ -258,6 +264,13 @@ const saveData = async () => {
|
|||
}
|
||||
}
|
||||
|
||||
const fileUploadDoc = async (file: any) => {
|
||||
fileDocDataUpload.value.push(file)
|
||||
nameFile.value = file[0].name
|
||||
files.value = file
|
||||
console.log(files.value)
|
||||
}
|
||||
|
||||
const saveResing = () => {
|
||||
$q.dialog({
|
||||
title: "ยืนยันการยื่นข้อมูลแบบสอบถาม",
|
||||
|
|
@ -269,11 +282,18 @@ const saveResing = () => {
|
|||
persistent: true,
|
||||
})
|
||||
.onOk(async () => {
|
||||
createFormresign()
|
||||
console.log("ok")
|
||||
if (files.value == undefined) {
|
||||
fails($q, "กรุณากรอกอัพโหลดเอกสารเพิ่มเติม")
|
||||
} else {
|
||||
createFormresign()
|
||||
}
|
||||
})
|
||||
.onCancel(() => {
|
||||
console.log("test")
|
||||
})
|
||||
.onCancel(() => {})
|
||||
.onDismiss(() => {
|
||||
fails($q, "กรุณากรอกอัพโหลดเอกสารเพิ่มเติม")
|
||||
console.log("dis")
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -361,10 +381,4 @@ const fectDataresign = async (id: string) => {
|
|||
hideLoader()
|
||||
})
|
||||
}
|
||||
|
||||
const fileUploadDoc = async (file: any) => {
|
||||
fileDocDataUpload.value.push(file)
|
||||
nameFile.value = file[0].name
|
||||
files.value = file
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue