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

chore(报名申请): 申请面试阶段新增申请表格

上级 1748465a
......@@ -65,6 +65,11 @@ export default {
title: '语言能力证明',
code: 'INTERVIEW_APPLICATION.attachments.missed_required_list.INTERNATIONAL_LANGUAGE_SCORE',
view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } }
},
{
title: '申请表格',
code: 'INTERVIEW_APPLICATION.attachments.missed_required_list.APPLICATION_FORM',
view: { to: { path: '/my/interview', query: { active: 'interview_form' } } }
}
],
[
......
......@@ -396,7 +396,8 @@ export default {
[
{ name: '英文简历', code: 'RESUME_EN' },
{ name: '成绩单(中文)', code: 'REPORT_CARD_CN' },
{ name: '语言能力证明', code: 'INTERNATIONAL_LANGUAGE_SCORE' }
{ name: '语言能力证明', code: 'INTERNATIONAL_LANGUAGE_SCORE' },
{ name: '申请表格', code: 'APPLICATION_FORM' }
],
[
{ name: '成绩单(英文)', code: 'REPORT_CARD_EN' },
......
......@@ -40,7 +40,7 @@ export default function(_this) {
}
},
form: {
prev: { to: { query: { active: 'interview_ywjl' } } },
prev: { to: { query: { active: 'interview_ywjl' } }, isSubmit: true },
next: { to: { query: { active: 'interview_yynl' } }, isSubmit: true },
hasButton: false,
options: { 'label-position': 'top' },
......
import { STAGE_LIST } from '../../index'
export default function(_this) {
return {
required: true,
id: 'interview_form',
title: '申请表格',
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
this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
const attachment = attachments.reduce(
(result, item) => {
if (item.file_type_id === 'APPLICATION_FORM') {
result.APPLICATION_FORM.push(item)
}
return result
},
{ APPLICATION_FORM: [] }
)
return Object.assign({}, basicInfo, attachment)
}
},
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: {
prev: { to: { query: { active: 'interview_yynl' } } },
submitText: '申请面试',
model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' },
items: [
{
required: true,
type: 'v-upload',
model: 'APPLICATION_FORM',
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: 'APPLICATION_FORM' },
limit: 1
},
rules: [{ required: true, message: '请上传', trigger: 'change' }],
prepend: `<p>请下载填写申请表格(First Year Application Form)模板后上传 <a href="https://webapp-pub.ezijing.com/project/sit-plus/First%20Year%20Application.docx" target="_blank" download="申请表格" style="color:#aa1941;">[下载模板]</a></p>`
}
]
}
}
}
......@@ -5,11 +5,12 @@ import yynl from './yynl'
import ywjl from './ywjl'
// import zp from './zp'
// import tjx from './tjx'
import form from './form'
export default function(_this) {
return {
id: 'interview',
title: '申请面试',
children: [ywjl(_this), cjd(_this), yynl(_this)]
children: [ywjl(_this), cjd(_this), yynl(_this), form(_this)]
}
}
......@@ -34,17 +34,19 @@ export default function(_this) {
return result
}, {})
return { basic_info: basicInfo }
},
callback() {
_this.changeSubmissionStage(() => {
this.form.options.disabled = true
})
}
// callback() {
// _this.changeSubmissionStage(() => {
// this.form.options.disabled = true
// })
// }
},
form: {
prev: { to: { query: { active: 'interview_cjd' } } },
submitText: '申请面试',
model: { submission_stage: 'INTERVIEW_APPLICATION' },
prev: { to: { query: { active: 'interview_cjd' } }, isSubmit: true },
next: { to: { query: { active: 'interview_form' } }, isSubmit: true },
// submitText: '申请面试',
hasButton: false,
// model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' },
items: [
{
......@@ -64,6 +66,7 @@ export default function(_this) {
deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
data: { file_type: 'INTERNATIONAL_LANGUAGE_SCORE' }
},
rules: [{ required: true, message: '请上传', trigger: 'change' }],
append: '成绩单类型包括:CET-4,CET-6,TOEFL,IELTS等'
}
]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论