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

chore: 推荐信改为上传附件;修改申请面试阶段的内容;

上级 eb375d27
...@@ -10,6 +10,12 @@ export default function(_this) { ...@@ -10,6 +10,12 @@ 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),
yynl(_this),
// tjx(_this),
xy(_this),
xfjn(_this)
]
} }
} }
...@@ -24,7 +24,7 @@ export default function(_this) { ...@@ -24,7 +24,7 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'admission_tjx' } } }, prev: { to: { query: { active: 'admission_yynl' } } },
next: { to: { query: { active: 'admission_xfjn' } } }, next: { to: { query: { active: 'admission_xfjn' } } },
hasButton: false, hasButton: false,
options: {}, options: {},
......
...@@ -33,7 +33,7 @@ export default function(_this) { ...@@ -33,7 +33,7 @@ export default function(_this) {
}, },
form: { form: {
prev: { to: { query: { active: 'admission_cjd' } } }, prev: { to: { query: { active: 'admission_cjd' } } },
next: { to: { query: { active: 'admission_tjx' } } }, next: { to: { query: { active: 'admission_xy' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
items: [ items: [
......
<template> <template>
<el-dialog <el-dialog
title="您当前完成进度如下:" title="您当前完成进度如下:"
width="348px" width="388px"
:center="true" :center="true"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
...@@ -57,11 +57,16 @@ export default { ...@@ -57,11 +57,16 @@ export default {
], ],
[ [
{ {
title: '毕业证书', title: '毕业证书/在读证明',
code: 'interviewByzs', code: 'interviewByzs',
view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } } view: { to: { path: '/my/interview', query: { active: 'interview_byzs' } } }
}, },
// { // {
// title: '毕业证书',
// code: 'interviewByzs',
// 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_xwzs' } } }
...@@ -71,11 +76,11 @@ export default { ...@@ -71,11 +76,11 @@ export default {
// code: 'interviewXwzsEnglish', // code: 'interviewXwzsEnglish',
// view: { to: { path: '/my/interview', query: { active: 'interview_xwzsywzm' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_xwzsywzm' } } }
// }, // },
// { {
// 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',
...@@ -87,11 +92,11 @@ export default { ...@@ -87,11 +92,11 @@ export default {
// view: { to: { path: '/my/interview', query: { active: 'interview_zp' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_zp' } } }
// } // }
// { {
// title: '推荐信', title: '推荐信',
// code: 'interviewTjx', code: 'interviewTjx',
// view: { to: { path: '/my/application', query: { active: 'application_tjx' } } } view: { to: { path: '/my/interview', query: { active: 'interview_tjx' } } }
// } }
] ]
] ]
} }
...@@ -144,7 +149,7 @@ export default { ...@@ -144,7 +149,7 @@ export default {
const missedRequiredList = progress.INTERVIEW_APPLICATION.attachments.missed_required_list const missedRequiredList = progress.INTERVIEW_APPLICATION.attachments.missed_required_list
// 2寸照片 // 2寸照片
const interviewZp = { progress: 0 } const interviewZp = { progress: 0 }
interviewZp.progress = missedRequiredList.PERSONAL_PHOTO_FOR_ID ? 0 : 1 interviewZp.progress = missedRequiredList.PERSONAL_PHOTO_FOR_ID || missedRequiredList.PROOF_READING ? 0 : 1
// 毕业证书 // 毕业证书
const interviewByzs = { progress: 0 } const interviewByzs = { progress: 0 }
interviewByzs.progress = missedRequiredList.DIPLOMA_CN ? 0 : 1 interviewByzs.progress = missedRequiredList.DIPLOMA_CN ? 0 : 1
...@@ -162,9 +167,7 @@ export default { ...@@ -162,9 +167,7 @@ export default {
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 interviewTjx = { progress: 0 } const interviewTjx = { progress: 0 }
interviewTjx.progress = progress.INTERVIEW_APPLICATION.reco_letters interviewTjx.progress = missedRequiredList.RECOMMENDATION_LETTER ? 0 : 1
? progress.INTERVIEW_APPLICATION.reco_letters.progress
: 0
this.progress = { this.progress = {
applicaitonInfo, applicaitonInfo,
...@@ -204,7 +207,7 @@ li { ...@@ -204,7 +207,7 @@ li {
align-items: center; align-items: center;
} }
.name { .name {
width: 80px; width: 120px;
text-align: right; text-align: right;
} }
.line { .line {
......
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_byzs', id: 'interview_byzs',
title: '毕业证书或在读证明', title: '毕业证书或在读证明',
get: { get: {
......
import byzs from './byzs' import byzs from './byzs'
// import xwzs from './xwzs' // import xwzs from './xwzs'
import ywjl from './ywjl' import ywjl from './ywjl'
import tjx from './tjx'
// 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), tjx(_this)]
} }
} }
export default function(_this) {
return {
required: true,
id: 'interview_tjx',
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) => {
const types = ['RECOMMENDATION_LETTER', 'RECOMMENDATION_LETTER_2']
types.forEach(type => {
item.disabled = item.upload_operator_user_id !== _this.user?.id
if (item.file_type_id === type) {
result.RECOMMENDATION_LETTER.push(item)
}
})
return result
},
{ RECOMMENDATION_LETTER: [] }
)
}
},
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_ywjl' } } },
submitText: '申请面试',
model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' },
items: [
{
type: 'v-upload',
model: 'RECOMMENDATION_LETTER',
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: 'RECOMMENDATION_LETTER' },
accept: 'image/*'
},
append: '请上传推荐人署名的推荐信原件照片或扫描件 ',
class: 'upload-letter'
}
]
}
}
}
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'interview_ywjl', id: 'interview_ywjl',
title: '英文简历', title: '英文简历',
get: { get: {
...@@ -23,24 +24,26 @@ export default function(_this) { ...@@ -23,24 +24,26 @@ export default function(_this) {
return { RESUME_EN } return { RESUME_EN }
} }
}, },
update: { // update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`, // action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`,
beforeRequest(data) { // beforeRequest(data) {
return { submission_stage: 'INTERVIEW_APPLICATION' } // return { submission_stage: 'INTERVIEW_APPLICATION' }
}, // },
callback() { // callback() {
this.form.options.disabled = true // this.form.options.disabled = true
_this.dialogVisible = true // _this.dialogVisible = true
_this.getApplication() // _this.getApplication()
}, // },
errorCallback() { // errorCallback() {
_this.completeVisible = true // _this.completeVisible = true
} // }
}, // },
form: { form: {
prev: { to: { query: { active: 'interview_byzs' } } }, prev: { to: { query: { active: 'interview_byzs' } } },
submitText: '申请面试', next: { to: { query: { active: 'interview_tjx' } } },
model: { submission_stage: 'INTERVIEW_APPLICATION' }, hasButton: false,
// submitText: '申请面试',
// model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: {}, options: {},
items: [ items: [
{ {
......
...@@ -82,6 +82,9 @@ export default { ...@@ -82,6 +82,9 @@ export default {
}, },
showSubmitedDialog() { showSubmitedDialog() {
return this.isSubmited && this.currentActive === 'interview_byzs' return this.isSubmited && this.currentActive === 'interview_byzs'
},
user() {
return this.$store.state.user
} }
}, },
methods: { methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论