เพิ่ม comment ระบบลาออกและขอโอน

This commit is contained in:
AnandaTon 2023-11-13 17:05:29 +07:00
parent 6621dfd7f0
commit 3f5687f0aa
15 changed files with 1529 additions and 1889 deletions

View file

@ -12,16 +12,21 @@ const $q = useQuasar()
const mixin = useCounterMixin()
const myform = ref<QForm | null>(null)
const { fails, success, messageError, showLoader, hideLoader } = mixin
const fileDocDataUpload = ref<File[]>([])
/**
* วแปรทใชงาน
*/
const route = useRoute()
const files = ref<any>()
const tranferOrg = ref("")
const noteReason = ref("")
const id = ref<string>("")
const nameFile = ref<string>("")
const routeName = router.currentRoute.value.name
/**
* เรยกฟงกนทงหมดตอนเรยกใชไฟล
*/
onMounted(() => {
if (route.params.id !== undefined) {
id.value = route.params.id.toString()
@ -29,10 +34,6 @@ onMounted(() => {
}
})
const filesNull = () => {
files.value = null
}
const saveData = async () => {
if (myform.value != null) {
await myform.value.validate().then(async (saveDataTest: Boolean) => {
@ -65,6 +66,9 @@ const saveTransfer = () => {
.onDismiss(() => {})
}
/**
* งกนสรางขอโอน
*/
const createTransfer = async () => {
const formData = new FormData()
@ -86,6 +90,10 @@ const createTransfer = async () => {
})
}
/**
* งกนเรยกขอมลจาก Api
* @param id ไอดของขอม
*/
const fecthDataTransfer = async (id: string) => {
showLoader()
await http
@ -104,6 +112,14 @@ const fecthDataTransfer = async (id: string) => {
})
}
/**
* งกนดาวโหลดอพโหลดไฟล
*/
const fileDocDataUpload = ref<File[]>([])
const filesNull = () => {
files.value = null
}
//
const fileUploadDoc = async (file: any) => {
fileDocDataUpload.value.push(file)
nameFile.value = file[0].name