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

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

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