ต่อapiโหลดใบชำระเงิน
This commit is contained in:
parent
9cab3eb48b
commit
3b4df7e4c6
3 changed files with 24 additions and 13 deletions
|
|
@ -34,5 +34,6 @@ export default {
|
|||
`${periodExam}position/${examId}/${positionId}`,
|
||||
periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
|
||||
candidateCard: (examId: string, positionId: string) => `${candidate}card/${examId}/${positionId}`,
|
||||
candidate
|
||||
candidate,
|
||||
candidateBill: (examId: string, positionId: string) => `${candidate}bill/${examId}/${positionId}`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,12 +167,12 @@ const fullName = ref<string>('')
|
|||
const examNumber = ref<string>('')
|
||||
const citizenId = ref<string>('')
|
||||
const examSeat = ref<string>('')
|
||||
const scoreBFull = ref<number>(0)
|
||||
const scoreB = ref<number>(0)
|
||||
const scoreCFull = ref<number>(0)
|
||||
const scoreC = ref<number>(0)
|
||||
const scoreSumFull = ref<number>(0)
|
||||
const scoreSum = ref<number>(0)
|
||||
const scoreBFull = ref<number | null>(null)
|
||||
const scoreB = ref<number | null>(null)
|
||||
const scoreCFull = ref<number | null>(null)
|
||||
const scoreC = ref<number | null>(null)
|
||||
const scoreSumFull = ref<number | null>(null)
|
||||
const scoreSum = ref<number | null>(null)
|
||||
const examResultinscore = ref<string>('')
|
||||
const avatar = ref<string>('')
|
||||
|
||||
|
|
@ -194,8 +194,12 @@ const fetchStatus = async () => {
|
|||
scoreB.value = data.pointB
|
||||
scoreCFull.value = data.pointTotalC
|
||||
scoreC.value = data.pointC
|
||||
scoreSumFull.value = parseInt(data.pointB) + parseInt(data.pointC)
|
||||
scoreSum.value = parseInt(data.pointB) + parseInt(data.pointC)
|
||||
scoreSumFull.value =
|
||||
data.pointTotalB == null || data.pointTotalC
|
||||
? null
|
||||
: parseInt(data.pointTotalB) + parseInt(data.pointTotalC)
|
||||
scoreSum.value =
|
||||
data.pointB == null || data.pointC ? null : parseInt(data.pointB) + parseInt(data.pointC)
|
||||
scoreC.value = data.pointC
|
||||
examResultinscore.value = data.pass
|
||||
avatar.value = data.avatar
|
||||
|
|
|
|||
|
|
@ -342,10 +342,16 @@ const uploadImage = async (file: any) => {
|
|||
}
|
||||
}
|
||||
|
||||
const downloadBillPayment = () => {
|
||||
window.open(
|
||||
'https://s3.frappet.com/bma-recruit/%E0%B9%83%E0%B8%9A%E0%B8%88%E0%B9%88%E0%B8%B2%E0%B8%A2%E0%B9%80%E0%B8%87%E0%B8%B4%E0%B8%99.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=V0TKBKKQ2OV5YZVEUQJS%2F20230420%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230420T032557Z&X-Amz-Expires=604800&X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiJWMFRLQktLUTJPVjVZWlZFVVFKUyIsImV4cCI6MzYwMDAwMDAwMDAwMCwicG9saWN5IjoiY29uc29sZUFkbWluIn0.gkdVQGNzcczXj9MgKIkpr7zyl84ycTWJgdEsCAFQcbGh5O1dyG79UFnmb04s6MiMiQs9zuKDpB8YZu4YDF9tBw&X-Amz-SignedHeaders=host&versionId=null&X-Amz-Signature=b59c8af76859716785678b933bb55c8afa7936110a64d95a7b85431e31442c2e'
|
||||
)
|
||||
const downloadBillPayment = async () => {
|
||||
loader.value = true
|
||||
await http
|
||||
.get(config.API.candidateBill(examId.value, positionId.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result
|
||||
window.open(data)
|
||||
})
|
||||
.catch(() => {})
|
||||
.finally(async () => {})
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue