提交 d5b93680 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 缴留位费之后才能看到之后的表单

上级 ca1011e3
......@@ -4,14 +4,13 @@ export default function(_this) {
required: true,
id: 'admission_byzs',
title: '毕业证书或在读证明',
visible() {
return _this.isPay
},
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
callback(data) {
const {
basic_info: basicInfo = {},
attachments = [],
submission_stage: submissionStage = 'FILLING'
} = data.data.material
const { basic_info: basicInfo = {}, attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
const attachment = attachments.reduce(
......@@ -40,7 +39,7 @@ export default function(_this) {
return result
}, {})
return { basic_info: basicInfo }
},
}
// callback() {
// _this.changeSubmissionStage(() => {
// this.form.options.disabled = true
......@@ -77,8 +76,7 @@ export default function(_this) {
data: { file_type: 'DIPLOMA_CN' }
},
rules: { required: true, message: '请上传毕业证书' },
append:
'申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。',
append: '申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。',
isShow(ruleForm) {
return ruleForm.learn_status === '已毕业'
}
......@@ -94,8 +92,7 @@ export default function(_this) {
data: { file_type: 'DEGREE_CERT_CN' }
},
rules: { required: true, message: '请上传学位证书' },
append:
'已毕业学员请提交学位证书<br />申请者需要将本科或以上的学位证书原件扫描或拍照后提交<br />可上传多个文件,请确保公章清晰可辨。',
append: '已毕业学员请提交学位证书<br />申请者需要将本科或以上的学位证书原件扫描或拍照后提交<br />可上传多个文件,请确保公章清晰可辨。',
isShow(ruleForm) {
return ruleForm.learn_status === '已毕业'
}
......@@ -111,8 +108,7 @@ export default function(_this) {
data: { file_type: 'PROOF_READING' }
},
rules: { required: true, message: '请上传在读证明' },
append:
'未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。',
append: '未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。',
isShow(ruleForm) {
return ruleForm.learn_status === '未毕业'
}
......
......@@ -4,6 +4,9 @@ export default function(_this) {
required: true,
id: 'admission_cjd',
title: '成绩单',
visible() {
return _this.isPay
},
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
callback(data) {
......
......@@ -4,14 +4,13 @@ export default function(_this) {
required: true,
id: 'admission_form',
title: '申请表格',
visible() {
return _this.isPay
},
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
callback(data) {
const {
basic_info: basicInfo = {},
attachments = [],
submission_stage: submissionStage = 'FILLING'
} = data.data.material
const { basic_info: basicInfo = {}, attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
const attachment = attachments.reduce(
......
......@@ -4,6 +4,9 @@ export default function(_this) {
required: true,
id: 'admission_grcs',
title: '个人陈述',
visible() {
return _this.isPay
},
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
callback(data) {
......
......@@ -4,6 +4,9 @@ export default function(_this) {
required: true,
id: 'admission_tjx',
title: '推荐信',
visible() {
return _this.isPay
},
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
callback(data) {
......
......@@ -18,7 +18,7 @@
</template>
<!-- 报名缴费 -->
<template #content v-if="currentActive === 'application_pay'">
<app-pay />
<app-pay @success="isPay = true" />
</template>
<!-- 入学协议 -->
<!-- <template #content v-if="currentActive === 'admission_xy'">
......@@ -56,7 +56,8 @@ export default {
currentActive: 'application_pay',
dialogVisible: false,
detail: null,
completeVisible: false
completeVisible: false,
isPay: false
}
},
watch: {
......
......@@ -51,6 +51,14 @@ export default {
return found ? list : [...list, this.order]
}
},
watch: {
paySuccess: {
handler(value) {
value && this.$emit('success')
},
immediate: true
}
},
methods: {
// 获取报名信息
async getApplication() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论