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

chore: 修改报名申请流程

上级 3351b70e
export default function(_this) { export default function(_this) {
return { return {
id: 'admission_cjd', id: 'admission_cjd',
title: '成绩单(中+英)', title: '成绩单(英)',
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) {
...@@ -32,7 +32,7 @@ export default function(_this) { ...@@ -32,7 +32,7 @@ export default function(_this) {
} }
}, },
form: { form: {
next: { to: { query: { active: 'admission_yynl' } } }, next: { to: { query: { active: 'admission_tjx' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
...@@ -46,6 +46,7 @@ export default function(_this) { ...@@ -46,6 +46,7 @@ export default function(_this) {
label: '中文成绩单', label: '中文成绩单',
model: 'REPORT_CARD_CN', model: 'REPORT_CARD_CN',
attrs: { attrs: {
disabled: true,
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'REPORT_CARD_CN' } data: { file_type: 'REPORT_CARD_CN' }
......
...@@ -4,12 +4,12 @@ import cjd from './cjd' ...@@ -4,12 +4,12 @@ import cjd from './cjd'
import xy from './xy' import xy from './xy'
import xfjn from './xfjn' import xfjn from './xfjn'
import tjx from './tjx' import tjx from './tjx'
import yynl from './yynl' // import yynl from './yynl'
export default function(_this) { export default function(_this) {
return { return {
id: 'admission', id: 'admission',
title: '入学办理', title: '入学办理',
children: [cjd(_this), yynl(_this), tjx(_this), xy(_this), xfjn(_this)] children: [cjd(_this), tjx(_this), xy(_this), xfjn(_this)]
} }
} }
...@@ -44,7 +44,7 @@ export default function(_this) { ...@@ -44,7 +44,7 @@ export default function(_this) {
}, },
form: { form: {
minlength: 2, minlength: 2,
prev: { to: { query: { active: 'admission_yynl' } }, isSubmit: true }, prev: { to: { query: { active: 'admission_cjd' } }, isSubmit: true },
next: { to: { query: { active: 'admission_xy' } }, isSubmit: true }, next: { to: { query: { active: 'admission_xy' } }, isSubmit: true },
hasAdd: true, hasAdd: true,
options: { disabled: false, labelWidth: '140px' }, options: { disabled: false, labelWidth: '140px' },
......
...@@ -61,26 +61,31 @@ export default { ...@@ -61,26 +61,31 @@ export default {
code: 'interviewByzs', code: 'interviewByzs',
view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } } view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
}, },
// { {
// title: '学位证书', title: '学位证书',
// code: 'interviewXwzs', code: 'interviewXwzs',
// view: { to: { path: '/my/interview', query: { active: 'interview_xwzs' } } } view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
// }, },
// { {
// title: '学位证书英文证明', title: '在读证明',
// code: 'interviewXwzsEnglish', code: 'interviewZdzm',
// view: { to: { path: '/my/interview', query: { active: 'interview_xwzsywzm' } } } view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
// }, },
// { // {
// title: '英文简历', // title: '英文简历',
// code: 'interviewYwjl', // code: 'interviewYwjl',
// view: { to: { path: '/my/interview', query: { active: 'interview_ywjl' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_ywjl' } } }
// }, // },
// { {
// title: '成绩单', title: '成绩单',
// code: 'interviewCjd', code: 'interviewCjd',
// view: { to: { path: '/my/interview', query: { active: 'interview_cjd' } } } view: { to: { path: '/my/interview', query: { active: 'interview_cjd' } } }
// }, },
{
title: '语言能力证明',
code: 'interviewYynlzm',
view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } }
}
// { // {
// title: '2寸照片', // title: '2寸照片',
// code: 'interviewZp', // code: 'interviewZp',
...@@ -154,12 +159,18 @@ export default { ...@@ -154,12 +159,18 @@ export default {
// 学位证书英文 // 学位证书英文
const interviewXwzsEnglish = { progress: 0 } const interviewXwzsEnglish = { progress: 0 }
interviewXwzsEnglish.progress = missedRequiredList.DEGREE_CERT_EN ? 0 : 1 interviewXwzsEnglish.progress = missedRequiredList.DEGREE_CERT_EN ? 0 : 1
// 在读证明
const interviewZdzm = { progress: 0 }
interviewZdzm.progress = missedRequiredList.PROOF_READING ? 0 : 1
// 英文简历 // 英文简历
const interviewYwjl = { progress: 0 } const interviewYwjl = { progress: 0 }
interviewYwjl.progress = missedRequiredList.RESUME_EN ? 0 : 1 interviewYwjl.progress = missedRequiredList.RESUME_EN ? 0 : 1
// 成绩单 // 成绩单
const interviewCjd = { progress: 0 } const interviewCjd = { progress: 0 }
interviewCjd.progress = missedRequiredList.REPORT_CARD_CN || missedRequiredList.REPORT_CARD_EN ? 0 : 1 interviewCjd.progress = missedRequiredList.REPORT_CARD_CN || missedRequiredList.REPORT_CARD_EN ? 0 : 1
// 语言能力证明
const interviewYynlzm = { progress: 0 }
interviewYynlzm.progress = missedRequiredList.INTERNATIONAL_LANGUAGE_SCORE ? 0 : 1
// 推荐信 // 推荐信
const interviewTjx = { progress: 0 } const interviewTjx = { progress: 0 }
interviewTjx.progress = progress.INTERVIEW_APPLICATION.reco_letters interviewTjx.progress = progress.INTERVIEW_APPLICATION.reco_letters
...@@ -174,8 +185,10 @@ export default { ...@@ -174,8 +185,10 @@ export default {
interviewByzs, interviewByzs,
interviewXwzs, interviewXwzs,
interviewXwzsEnglish, interviewXwzsEnglish,
interviewZdzm,
interviewYwjl, interviewYwjl,
interviewCjd, interviewCjd,
interviewYynlzm,
interviewTjx interviewTjx
} }
} else { } else {
......
...@@ -22,12 +22,15 @@ export default function(_this) { ...@@ -22,12 +22,15 @@ export default function(_this) {
if (item.file_type_id === 'DIPLOMA_CN') { if (item.file_type_id === 'DIPLOMA_CN') {
result.DIPLOMA_CN.push(item) result.DIPLOMA_CN.push(item)
} }
if (item.file_type_id === 'DEGREE_CERT_CN') {
result.DEGREE_CERT_CN.push(item)
}
if (item.file_type_id === 'PROOF_READING') { if (item.file_type_id === 'PROOF_READING') {
result.PROOF_READING.push(item) result.PROOF_READING.push(item)
} }
return result return result
}, },
{ DIPLOMA_CN: [], PROOF_READING: [] } { DIPLOMA_CN: [], DEGREE_CERT_CN: [], PROOF_READING: [] }
) )
} }
}, },
...@@ -35,6 +38,10 @@ export default function(_this) { ...@@ -35,6 +38,10 @@ export default function(_this) {
next: { to: { query: { active: 'interview_ywjl' } } }, next: { to: { query: { active: 'interview_ywjl' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: `
提示:<br />
1、请同时上传毕业证书及学位证书<br />
2、如尚未毕业,请上传在读证明`,
items: [ items: [
{ {
label: '毕业证书', label: '毕业证书',
...@@ -48,6 +55,18 @@ export default function(_this) { ...@@ -48,6 +55,18 @@ export default function(_this) {
append: append:
'申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。' '申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。'
}, },
{
label: '学位证书',
type: 'v-upload',
model: 'DEGREE_CERT_CN',
attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'DEGREE_CERT_CN' }
},
append:
'已毕业学员请提交学位证书<br />申请者需要将本科或以上的学位证书原件扫描或拍照后提交<br />可上传多个文件,请确保公章清晰可辨。'
},
{ {
label: '在读证明', label: '在读证明',
type: 'v-upload', type: 'v-upload',
...@@ -58,7 +77,7 @@ export default function(_this) { ...@@ -58,7 +77,7 @@ export default function(_this) {
data: { file_type: 'PROOF_READING' } data: { file_type: 'PROOF_READING' }
}, },
append: append:
'未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。' '未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。'
} }
] ]
} }
......
export default function(_this) { export default function(_this) {
return { return {
id: 'interview_cjd', id: 'interview_cjd',
title: '成绩单(中+英)', title: '成绩单(中)',
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) {
...@@ -32,11 +32,13 @@ export default function(_this) { ...@@ -32,11 +32,13 @@ export default function(_this) {
} }
}, },
form: { form: {
next: { to: { query: { active: 'interview_ywjl' } } }, prev: { to: { query: { active: 'interview_ywjl' } } },
next: { to: { query: { active: 'interview_yynl' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
<p>请将中英文成绩单原件扫描或者拍照后提交。</p> <p>已毕业学生需提交完整成绩单,未毕业学生提交现有成绩单,成绩单需要加盖学校公章</p>
<p>请将中文成绩单原件扫描或者拍照后提交。</p>
<p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p> <p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p>
`, `,
items: [ items: [
...@@ -49,17 +51,17 @@ export default function(_this) { ...@@ -49,17 +51,17 @@ export default function(_this) {
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`, deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'REPORT_CARD_CN' } data: { file_type: 'REPORT_CARD_CN' }
} }
},
{
type: 'v-upload',
label: '英文成绩单',
model: 'REPORT_CARD_EN',
attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'REPORT_CARD_EN' }
}
} }
// {
// type: 'v-upload',
// label: '英文成绩单',
// model: 'REPORT_CARD_EN',
// attrs: {
// action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
// deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
// data: { file_type: 'REPORT_CARD_EN' }
// }
// }
] ]
} }
} }
......
import byzs from './byzs' import byzs from './byzs'
import cjd from './cjd'
import yynl from './yynl'
// import xwzs from './xwzs' // import xwzs from './xwzs'
import ywjl from './ywjl' import ywjl from './ywjl'
// import zp from './zp' import zp from './zp'
export default function(_this) { export default function(_this) {
return { return {
id: 'interview', id: 'interview',
title: '申请面试', title: '申请面试',
children: [byzs(_this), ywjl(_this)] children: [byzs(_this), ywjl(_this), cjd(_this), yynl(_this), zp(_this)]
} }
} }
...@@ -23,24 +23,10 @@ export default function(_this) { ...@@ -23,24 +23,10 @@ export default function(_this) {
return { RESUME_EN } return { RESUME_EN }
} }
}, },
update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`,
beforeRequest(data) {
return { submission_stage: 'INTERVIEW_APPLICATION' }
},
callback() {
this.form.options.disabled = true
_this.dialogVisible = true
_this.getApplication()
},
errorCallback() {
_this.completeVisible = true
}
},
form: { form: {
prev: { to: { query: { active: 'interview_byzs' } } }, prev: { to: { query: { active: 'interview_byzs' } } },
submitText: '申请面试', next: { to: { query: { active: 'interview_cjd' } } },
model: { submission_stage: 'INTERVIEW_APPLICATION' }, hasButton: false,
options: {}, options: {},
items: [ items: [
{ {
......
export default function(_this) {
return {
id: 'interview_yynl',
title: '语言能力证明',
get: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
callback(data) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
return attachments.reduce(
(result, item) => {
if (item.file_type_id === 'INTERNATIONAL_LANGUAGE_SCORE') {
result.INTERNATIONAL_LANGUAGE_SCORE.push(item)
}
return result
},
{ INTERNATIONAL_LANGUAGE_SCORE: [] }
)
}
},
form: {
prev: { to: { query: { active: 'interview_cjd' } } },
next: { to: { query: { active: 'interview_zp' } } },
hasButton: false,
options: { 'label-position': 'top' },
hint: '成绩单类型包括:大学英语六级(450分及以上)、托福、雅思、Duolingo、iTEP Academic',
items: [
{
type: 'v-upload',
model: 'INTERNATIONAL_LANGUAGE_SCORE',
attrs: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'INTERNATIONAL_LANGUAGE_SCORE' }
}
}
]
}
}
}
export default function(_this) { export default function(_this) {
return { return {
id: 'interview_zp', id: 'interview_zp',
title: '2寸照片', title: '个人照片',
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) {
...@@ -38,7 +38,7 @@ export default function(_this) { ...@@ -38,7 +38,7 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'interview_byzs' } } }, prev: { to: { query: { active: 'interview_yynl' } } },
submitText: '申请面试', submitText: '申请面试',
model: { submission_stage: 'INTERVIEW_APPLICATION' }, model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: {}, options: {},
...@@ -52,8 +52,7 @@ export default function(_this) { ...@@ -52,8 +52,7 @@ export default function(_this) {
data: { file_type: 'PERSONAL_PHOTO_FOR_ID' }, data: { file_type: 'PERSONAL_PHOTO_FOR_ID' },
limit: 1 limit: 1
}, },
append: append: '申请者需提交白底两寸个人照片<br> 确保图片清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于5MB'
'申请者需要上传本人半年以内的两寸彩色近照。<br> 只需上传一个文件,且照片完整、干净。<br> 上传文件仅限“jpg,jpeg,gif,png”格式的图片文件,且文件小于10MB。'
} }
] ]
} }
......
...@@ -6,15 +6,15 @@ export default { ...@@ -6,15 +6,15 @@ export default {
ssr: false, ssr: false,
env: process.env, env: process.env,
server: { port: 2048, host: '0.0.0.0' }, server: { port: 2048, host: '0.0.0.0' },
// ...(process.env.NODE_ENV === 'development' && { ...(process.env.NODE_ENV === 'development' && {
// server: { server: {
// host: 'dev.ezijing.com', host: 'dev.ezijing.com',
// https: { https: {
// key: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.key')), key: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.key')),
// cert: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.pem')) cert: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.pem'))
// } }
// } }
// }), }),
// Global page headers: https://go.nuxtjs.dev/config-head // Global page headers: https://go.nuxtjs.dev/config-head
head: { head: {
title: '纽约州立大学石溪分校金融硕士1+1项目', title: '纽约州立大学石溪分校金融硕士1+1项目',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论