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

chore: update

上级 e613767c
...@@ -56,6 +56,7 @@ export default { ...@@ -56,6 +56,7 @@ export default {
title: '成绩单', title: '成绩单',
code: [ code: [
'INTERVIEW_APPLICATION.attachments.missed_required_list.REPORT_CARD_CN', 'INTERVIEW_APPLICATION.attachments.missed_required_list.REPORT_CARD_CN',
'INTERVIEW_APPLICATION.attachments.missed_required_list.REPORT_CARD_EN',
'INTERVIEW_APPLICATION.basic_info.missed_required_list.gpa_score', 'INTERVIEW_APPLICATION.basic_info.missed_required_list.gpa_score',
'INTERVIEW_APPLICATION.basic_info.missed_required_list.average_score' 'INTERVIEW_APPLICATION.basic_info.missed_required_list.average_score'
], ],
...@@ -65,6 +66,33 @@ export default { ...@@ -65,6 +66,33 @@ export default {
title: '语言能力证明', title: '语言能力证明',
code: 'INTERVIEW_APPLICATION.attachments.missed_required_list.INTERNATIONAL_LANGUAGE_SCORE', code: 'INTERVIEW_APPLICATION.attachments.missed_required_list.INTERNATIONAL_LANGUAGE_SCORE',
view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } } view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } }
},
{
title: '推荐信',
code: [
'INTERVIEW_APPLICATION.attachments.missed_required_list.RECOMMENDATION_LETTER',
'INTERVIEW_APPLICATION.attachments.missed_required_list.RECOMMENDATION_LETTER_2'
],
view: { to: { path: '/my/interview', query: { active: 'interview_tjx' } } }
},
{
title: '个人陈述',
code: 'INTERVIEW_APPLICATION.attachments.missed_required_list.PERSONAL_STATEMENT',
view: { to: { path: '/my/interview', query: { active: 'interview_grcs' } } }
},
{
title: '毕业证或在读证明',
code: [
'INTERVIEW_APPLICATION.attachments.missed_required_list.DIPLOMA_CN',
'INTERVIEW_APPLICATION.attachments.missed_required_list.DEGREE_CERT_CN',
'INTERVIEW_APPLICATION.attachments.missed_required_list.PROOF_READING'
],
view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
},
{
title: '申请表格',
code: 'INTERVIEW_APPLICATION.attachments.missed_required_list.APPLICATION_FORM',
view: { to: { path: '/my/interview', query: { active: 'interview_form' } } }
} }
], ],
[ [
......
import { STAGE_LIST } from '../../index' import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_byzs', id: 'interview_byzs',
title: '毕业证书或在读证明', title: '毕业证书或在读证明',
get: { get: {
......
...@@ -7,11 +7,7 @@ export default function(_this) { ...@@ -7,11 +7,7 @@ export default function(_this) {
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) > 2 this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
const attachment = attachments.reduce( const attachment = attachments.reduce(
...@@ -68,22 +64,23 @@ export default function(_this) { ...@@ -68,22 +64,23 @@ export default function(_this) {
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' }
}
},
{
required: true,
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' }
}, },
append: ` append: `
<p>已毕业学生需提交完整成绩单,未毕业学生提交现有成绩单,成绩单需要加盖学校公章</p> <p>已毕业学生需提交完整成绩单,未毕业学生提交现有成绩单,成绩单需要加盖学校公章</p>
<p>请将中文成绩单原件扫描或者拍照后提交。</p> <p>请将成绩单原件扫描或者拍照后提交。</p>
<p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p>` <p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p>`
} }
// {
// 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 { STAGE_LIST } from '../../index' import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_form', id: 'interview_form',
title: '申请表格', title: '申请表格',
get: { get: {
...@@ -26,9 +27,9 @@ export default function(_this) { ...@@ -26,9 +27,9 @@ export default function(_this) {
return { submission_stage: 'INTERVIEW_APPLICATION' } return { submission_stage: 'INTERVIEW_APPLICATION' }
}, },
callback() { callback() {
this.form.options.disabled = true _this.changeSubmissionStage(() => {
_this.dialogVisible = true this.form.options.disabled = true
_this.getApplication() })
}, },
errorCallback() { errorCallback() {
_this.completeVisible = true _this.completeVisible = true
......
import { STAGE_LIST } from '../../index' import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_grcs', id: 'interview_grcs',
title: '个人陈述', title: '个人陈述',
get: { get: {
......
...@@ -16,8 +16,17 @@ export default function(_this) { ...@@ -16,8 +16,17 @@ export default function(_this) {
children: [ children: [
ywjl(_this), ywjl(_this),
cjd(_this), cjd(_this),
yynl(_this) yynl(_this),
// , ywcjd(_this), tjx(_this), grcs(_this), byzs(_this), form(_this) tjx(_this),
grcs(_this),
byzs(_this),
form(_this),
// {
// required: true,
// id: 'application_pay',
// title: '缴报名费'
// }
// ywcjd(_this), tjx(_this), grcs(_this), byzs(_this), form(_this)
] ]
} }
} }
import { STAGE_LIST } from '../../index' import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_tjx', id: 'interview_tjx',
title: '推荐信', title: '推荐信',
get: { get: {
...@@ -39,7 +40,7 @@ export default function(_this) { ...@@ -39,7 +40,7 @@ export default function(_this) {
// } // }
// }, // },
form: { form: {
prev: { to: { query: { active: 'interview_ywcjd' } } }, prev: { to: { query: { active: 'interview_yynl' } } },
next: { to: { query: { active: 'interview_grcs' } } }, next: { to: { query: { active: 'interview_grcs' } } },
hasButton: false, hasButton: false,
// submitText: '申请面试', // submitText: '申请面试',
......
...@@ -43,9 +43,9 @@ export default function(_this) { ...@@ -43,9 +43,9 @@ export default function(_this) {
}, },
form: { form: {
prev: { to: { query: { active: 'interview_cjd' } }, isSubmit: true }, prev: { to: { query: { active: 'interview_cjd' } }, isSubmit: true },
// next: { to: { query: { active: 'interview_form' } }, isSubmit: true }, next: { to: { query: { active: 'interview_tjx' } }, isSubmit: true },
submitText: '申请面试', submitText: '申请面试',
// hasButton: false, hasButton: false,
model: { submission_stage: 'INTERVIEW_APPLICATION' }, model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
items: [ items: [
......
...@@ -13,18 +13,18 @@ export default function(_this) { ...@@ -13,18 +13,18 @@ export default function(_this) {
id: 'admission', id: 'admission',
title: '综合评审', title: '综合评审',
children: [ children: [
cjd(_this), // cjd(_this),
tjx(_this), // tjx(_this),
grcs(_this), // grcs(_this),
byzs(_this), // byzs(_this),
form(_this), // form(_this),
{ {
required: true, required: true,
id: 'application_pay', id: 'application_pay',
title: '缴纳留位费', title: '缴纳留位费',
visible() { // visible() {
return _this.hasPay // return _this.hasPay
} // }
}, },
xy(_this) xy(_this)
] ]
......
...@@ -5,9 +5,9 @@ export default function(_this) { ...@@ -5,9 +5,9 @@ export default function(_this) {
required: true, required: true,
id: 'admission_xy', id: 'admission_xy',
title: '入学协议', title: '入学协议',
visible() { // visible() {
return _this.hasPay // return _this.hasPay
}, // },
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) {
......
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
const menus = getMenu(this) const menus = getMenu(this)
return { return {
menus: [menus], menus: [menus],
currentActive: 'admission_cjd', currentActive: 'application_pay',
dialogVisible: false, dialogVisible: false,
detail: null, detail: null,
completeVisible: false, completeVisible: false,
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
immediate: true, immediate: true,
handler(route) { handler(route) {
const { query = {} } = route const { query = {} } = route
this.currentActive = query.active || 'admission_cjd' this.currentActive = query.active || 'application_pay'
} }
}, },
showSubmittedDialog(value) { showSubmittedDialog(value) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论