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

chore(报名申请): 隐藏报名缴费

上级 17f8eb3f
-----BEGIN RSA PRIVATE KEY----- -----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAn0EINdIXTDCzmR7J5FOjOV+PbXt7GNO6fanoCGe2O0CPRlNf MIIEpAIBAAKCAQEAucCbdPPyAp6vmnr5XObuPsctUhVLyXwqbIpgI5jWzjG7wmk8
2Ea/wv6SlRtJPd0ohmnKqZdUbBpAsiV4ggOdOqeEB6utVYQWY/zhXRKYeRjN/iDu V6z8WJKPO9KZM6D9ejtN/bbbd3j1cRiw7NSl8AUykiVHJWz9TXAflET2EpILLera
WCRY5S+eRVkSzVOJP9DlBn6dnHSsWj55h1PrkIac8B862F/cVno/Wk5dqU55ZUoN I1B2XAcBsc8dZBGGJD/LT97ZvNLYzuQOr7R1wytWH1uisAK5ClzgnSptMenXFyhw
wHGw5Goz3R37w+Q0C9HRS5mrmPqI+Ogy8TJrIRxw9YAj5OlvuqBAeYAW1sNdEfsi 5Xw0Lm3zoeeqYF/KMQ1McAYMGxgu6s6dxXKiA0BcgWQ31yZey0c4HhCt7T7sA/UN
mMB0H2fbbXqEL4AsipE5ppP7Ij3vxVpxvmnl/SO7N6+Fit6r25VeFSvplK+PIV3c ahUsxtCcSNSvdgXay5Pu/l3N88TwW2QzaCzrueILHWRFwkREhpqyrwjN3gkaa+1T
UsK3PCKV2sOo0BDWtWFQh5hW3fK5RYjLpNDHCwIDAQABAoIBAEkiBDMzF5/VfaSD jLxzCsk/pTnPccxlFwc3YQ3hYLMl36NJ/OIpHwIDAQABAoIBACuMmaXYz6OHmroI
jxNblUlzqNoOKqlsEehDblrtxbHQI/uXrhwT4VwarBXtQeU2+rU/P+JBrHM4Wx10 HNCIH9E+F0UIUyVg4/1gj9uoqKvdAx04WPphRyRo8AXhgSOWmfb/UnCqX1fqVvj2
N7L9FecppmgfXqo2zlF8f8HOGFcEHRTm6o1vo6McCwKttQS1qA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ywJjTb
l8aQwTfmV74szsEDcFkg038zQ6Q4c8iiurYp29nwEM7/mayBGOcv /Fw4rTMwT59VSWJdv8BPznV7Gk7p17fcXM55iJxxu65r3ZuOXjQSGA==
-----END RSA PRIVATE KEY----- -----END RSA PRIVATE KEY-----
\ No newline at end of file
差异被折叠。
export default { export default function(_this) {
id: 'admission_byzs', return {
title: '毕业证书注册备案表', required: true,
get: { id: 'admission_byzs',
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`, title: '毕业证书或在读证明',
callback(data) { get: {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}`,
const stageList = [ callback(data) {
'FILLING', const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
'PREPAYMENT', const stageList = [
'INTERVIEW_APPLICATION', 'FILLING',
'AUDITION', 'PREPAYMENT',
'INTERVIEW', 'INTERVIEW_APPLICATION',
'PAYMENT', 'AUDITION',
'REGISTRATION', 'INTERVIEW',
'CLOSED' 'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
return attachments.reduce(
(result, item) => {
if (item.file_type_id === 'DIPLOMA_CN') {
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') {
result.PROOF_READING.push(item)
}
return result
},
{ DIPLOMA_CN: [], DEGREE_CERT_CN: [], PROOF_READING: [] }
)
}
},
form: {
prev: { to: { query: { active: 'admission_grcs' } } },
submitText: '提交申请',
options: { 'label-position': 'top' },
hint: `
提示:<br />
1、请同时上传毕业证书及学位证书<br />
2、如尚未毕业,请上传在读证明`,
items: [
{
required: true,
label: '毕业证书',
type: 'v-upload',
model: 'DIPLOMA_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: 'DIPLOMA_CN' }
},
append:
'申请者需要将本科或以上毕业证书原件扫描或者拍照后提交。<br> 可上传多个文件,请确保证书号码清晰可辨。<br> 上传文件仅限“jpg,jpeg,png”格式,文件小于10MB。'
},
{
required: true,
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 />可上传多个文件,请确保公章清晰可辨。'
},
{
required: true,
label: '在读证明',
type: 'v-upload',
model: 'PROOF_READING',
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: 'PROOF_READING' }
},
append:
'未毕业学员提交加盖公章的在读证明<br/>申请者需要将本科或以上在读证明原件扫描或拍照后提交。<br> 可上传多个文件,请确保公章清晰可辨。'
}
] ]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const DIPLOMA_FILING_TABLE = attachments.filter(item => {
return item.file_type_id === 'DIPLOMA_FILING_TABLE'
})
return { DIPLOMA_FILING_TABLE }
} }
},
form: {
prev: { to: { query: { active: 'admission_cjd' } } },
next: { to: { query: { active: 'admission_ywjl' } } },
hasButton: false,
options: {},
items: [
{
type: 'v-upload',
required: true,
model: 'DIPLOMA_FILING_TABLE',
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: 'DIPLOMA_FILING_TABLE' }
},
prepend: `
<p>学信网《教育部学历证书电子注册备案表》[<a href="https://zws-imgs-pub.ezijing.com/pc/sofia/%E6%AF%95%E4%B8%9A%E8%AF%81%E4%B9%A6%E6%B3%A8%E5%86%8C%E5%A4%87%E6%A1%88%E8%A1%A8.pdf" target="_blank" download="毕业证书注册备案表">下载流程表</a>]
<p>学历在学信网可查的同学,请下载学信网电子注册备案表提交到系统,具体获取流程请</p>
<p>下载附件 上传文件仅限“jpg,jpeg,pdf,png”格式,文件小于10Mb。</p>
`
}
]
} }
} }
export default function(_this) { export default function(_this) {
return { return {
required: true,
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) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = ['FILLING', 'PREPAYMENT', 'INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW', 'PAYMENT', 'REGISTRATION', 'CLOSED'] const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6 this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
...@@ -23,12 +33,12 @@ export default function(_this) { ...@@ -23,12 +33,12 @@ export default function(_this) {
} }
}, },
form: { form: {
next: { to: { query: { active: 'admission_xy' } } }, next: { to: { query: { active: 'admission_tjx' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
<p>已毕业学生需提交完整成绩单,未毕业学生提交现有成绩单,成绩单需要加盖学校公章</p> <p>已毕业学生需提交完整成绩单,未毕业学生提交现有成绩单,成绩单需要加盖学校公章</p>
<p>请将中文成绩单原件扫描或者拍照后提交。</p> <p>请将中文成绩单原件扫描或者拍照后提交。</p>
<p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p> <p>获取途径:联系大学时就读学校相关部门(档案馆/教务处)获取成绩单。</p>
`, `,
items: [ items: [
...@@ -38,14 +48,12 @@ export default function(_this) { ...@@ -38,14 +48,12 @@ 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' }
} }
}, },
{ {
required: true,
type: 'v-upload', type: 'v-upload',
label: '英文成绩单', label: '英文成绩单',
model: 'REPORT_CARD_EN', model: 'REPORT_CARD_EN',
......
export default function(_this) {
return {
required: true,
id: 'admission_grcs',
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) > 6
const PERSONAL_STATEMENT = attachments.filter(item => {
return item.file_type_id === 'PERSONAL_STATEMENT'
})
return { PERSONAL_STATEMENT }
}
},
form: {
prev: { to: { query: { active: 'admission_tjx' } } },
next: { to: { query: { active: 'admission_byzs' } } },
hasButton: false,
options: { 'label-position': 'top' },
items: [
{
type: 'v-upload',
required: true,
model: 'PERSONAL_STATEMENT',
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: 'PERSONAL_STATEMENT' }
},
append: '请上传您的个人陈述(英文)'
}
]
}
}
}
import cjd from './cjd' import cjd from './cjd'
// import byzs from './byzs' import byzs from './byzs'
// import ywjl from './ywjl' // import ywjl from './ywjl'
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 grcs from './grcs'
// 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: [ children: [cjd(_this), tjx(_this), grcs(_this), byzs(_this), xfjn(_this)]
cjd(_this),
// tjx(_this),
xy(_this),
xfjn(_this)
]
} }
} }
/**
* 推荐信
*/
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'admission_tjx', id: 'admission_tjx',
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) {
const { submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ const stageList = [
'FILLING', 'FILLING',
'PREPAYMENT', 'PREPAYMENT',
...@@ -21,105 +18,54 @@ export default function(_this) { ...@@ -21,105 +18,54 @@ export default function(_this) {
'CLOSED' 'CLOSED'
] ]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6 this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const list = data.data.material.reco_letters || [] return attachments.reduce(
// this.form.options.disabled = list.length >= 2 (result, item) => {
return list.length ? list : [{}, {}] const types = ['RECOMMENDATION_LETTER', 'RECOMMENDATION_LETTER_2']
} types.forEach(type => {
}, item.disabled = item.upload_operator_user_id !== _this.user?.id
update: { if (item.file_type_id === type) {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/${process.env.projectId}/put`, result.RECOMMENDATION_LETTER.push(item)
beforeRequest(data) { }
return { reco_letters: data } })
}, return result
callback({ message }) { },
// this.form.options.disabled = true { RECOMMENDATION_LETTER: [] }
const letters = _this.detail.material.reco_letters || [] )
if (!letters.length) {
_this.sendToProviders()
_this.getApplication()
} else {
this.$message({ type: 'success', message })
}
} }
}, },
// 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: {
minlength: 2, prev: { to: { query: { active: 'admission_cjd' } } },
prev: { to: { query: { active: 'admission_cjd' } }, isSubmit: true }, next: { to: { query: { active: 'admission_grcs' } } },
next: { to: { query: { active: 'admission_xy' } }, isSubmit: true }, hasButton: false,
hasAdd: true, // submitText: '申请面试',
options: { disabled: false, labelWidth: '140px' }, // model: { submission_stage: 'INTERVIEW_APPLICATION' },
disabled(data) { options: {},
return !!data.letter_content
},
aside: {
prepend: {
html: '<p style="color:#33C011;">推荐人已完成</p>',
visible(data) {
return !!data.letter_content
}
},
buttons: [
{
text: '再次邀请',
visible(data) {
const editable = ['PREPAYMENT', 'REGISTRATION'].includes(_this.detail.material.submission_stage)
return data.id && !data.letter_content && editable
},
onClick(data) {
_this.sendToProvider(data)
}
},
{
text: '更换推荐人',
visible(data) {
const editable = ['PREPAYMENT', 'REGISTRATION'].includes(_this.detail.material.submission_stage)
return data.id && !data.letter_content && editable
},
onClick(data, $form) {
$form.validate().then(() => {
_this.changeProvider(data)
})
}
}
]
},
items: [ items: [
{ {
type: 'v-input', type: 'v-upload',
label: '推荐人姓名', model: 'RECOMMENDATION_LETTER',
model: 'provider_name', attrs: {
attrs: { placeholder: '请输入推荐人姓名' }, action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/put`,
rules: [{ required: true, message: '请输入推荐人姓名', trigger: 'blur' }] deleteAction: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/attachments/${process.env.projectId}/delete`,
}, data: { file_type: 'RECOMMENDATION_LETTER' },
accept: 'image/*'
{ },
type: 'v-input', append: '请上传推荐人署名的推荐信原件照片或扫描件 ',
label: '推荐人电话', class: 'upload-letter'
model: 'provider_phone_number',
attrs: { placeholder: '请输入推荐人电话', maxlength: 11 },
rules: [{ required: true, pattern: /^1[3-9]\d{9}$/, message: '请输入推荐人电话', trigger: 'blur' }]
},
{
type: 'v-input',
label: '推荐人邮箱',
model: 'provider_email',
attrs: { placeholder: '请输入推荐人邮箱' },
rules: [{ type: 'email', required: true, message: '请输入推荐人邮箱', trigger: 'blur' }]
},
{
type: 'v-select',
values: [
{ value: '老师/导师' },
{ value: '领导' },
{ value: '同学' },
{ value: '同事' },
{ value: '亲属' },
{ value: '朋友' },
{ value: '其他' }
],
label: '与推荐人关系',
model: 'provider_relationship',
rules: [{ required: true, message: '请选择与推荐人关系', trigger: 'change' }]
} }
] ]
} }
......
export default function(_this) { export default function(_this) {
return { return {
required: true,
id: 'admission_xfjn', id: 'admission_xfjn',
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) {
const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material const { attachments = [], submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = ['FILLING', 'PREPAYMENT', 'INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW', 'PAYMENT', 'REGISTRATION', 'CLOSED'] const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6 this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const PAYMENT_VOUCHER = attachments.filter(item => { const PAYMENT_VOUCHER = attachments.filter(item => {
return item.file_type_id === 'PAYMENT_VOUCHER' return item.file_type_id === 'PAYMENT_VOUCHER'
...@@ -15,7 +25,7 @@ export default function(_this) { ...@@ -15,7 +25,7 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'admission_xy' } } }, prev: { to: { query: { active: 'admission_byzs' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: ` hint: `
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<el-button type="primary" @click="dialogVisible = false">忽略</el-button> <el-button type="primary" @click="dialogVisible = false">忽略</el-button>
</template> </template>
</el-dialog> </el-dialog>
<app-complete v-model="completeVisible"></app-complete>
</app-layout> </app-layout>
</template> </template>
...@@ -45,15 +46,18 @@ import AppLayout from '../layout.vue' ...@@ -45,15 +46,18 @@ import AppLayout from '../layout.vue'
import getMenu from './form' import getMenu from './form'
import * as api from '@/api/my' import * as api from '@/api/my'
import AppXy from './xy' import AppXy from './xy'
import AppComplete from '../application/complete.vue'
export default { export default {
components: { AppLayout, AppXy }, components: { AppLayout, AppXy, AppComplete },
data() { data() {
const menus = getMenu(this) const menus = getMenu(this)
return { return {
menus: [menus], menus: [menus],
currentActive: 'admission_cjd', currentActive: 'admission_cjd',
dialogVisible: false, dialogVisible: false,
detail: null detail: null,
completeVisible: false
} }
}, },
watch: { watch: {
...@@ -76,7 +80,7 @@ export default { ...@@ -76,7 +80,7 @@ export default {
return false return false
}, },
showSubmitedDialog() { showSubmitedDialog() {
return this.isSubmited && this.currentActive === 'admission_xy' return this.isSubmited && this.currentActive === 'admission_byzs'
} }
}, },
methods: { methods: {
......
...@@ -56,11 +56,11 @@ export default { ...@@ -56,11 +56,11 @@ 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: '学位证书', // title: '学位证书',
// code: 'interviewXwzs', // code: 'interviewXwzs',
...@@ -76,11 +76,11 @@ export default { ...@@ -76,11 +76,11 @@ export default {
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: 'interviewTjx', // code: 'interviewTjx',
view: { to: { path: '/my/interview', query: { active: 'interview_tjx' } } } // view: { to: { path: '/my/interview', query: { active: 'interview_tjx' } } }
}, // },
{ {
title: '成绩单', title: '成绩单',
code: 'interviewCjd', code: 'interviewCjd',
...@@ -90,11 +90,33 @@ export default { ...@@ -90,11 +90,33 @@ export default {
title: '语言能力证明', title: '语言能力证明',
code: 'interviewYynlzm', code: 'interviewYynlzm',
view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } } view: { to: { path: '/my/interview', query: { active: 'interview_yynl' } } }
}
// {
// title: '个人照片',
// code: 'interviewZp',
// view: { to: { path: '/my/interview', query: { active: 'interview_zp' } } }
// }
],
[
{
title: '成绩单',
code: 'interviewCjd',
view: { to: { path: '/my/admission', query: { active: 'admission_cjd' } } }
},
{
title: '推荐信',
code: 'interviewTjx',
view: { to: { path: '/my/admission', query: { active: 'admission_tjx' } } }
}, },
{ {
title: '个人照片', title: '个人陈述',
code: 'interviewZp', code: 'interviewTjx',
view: { to: { path: '/my/interview', query: { active: 'interview_zp' } } } view: { to: { path: '/my/admission', query: { active: 'admission_tjx' } } }
},
{
title: '毕业证或在读证明',
code: 'interviewByzs',
view: { to: { path: '/my/admission', query: { active: 'admission_byzs' } } }
} }
] ]
] ]
......
...@@ -26,8 +26,11 @@ export default function(_this) { ...@@ -26,8 +26,11 @@ export default function(_this) {
callback() { callback() {
_this.getApplication() _this.getApplication()
this.form.options.disabled = true this.form.options.disabled = true
_this.$router.push({ path: this.$route.path, query: { active: 'application_pay' } }) if (_this.hasPay) {
// _this.$router.push({ path: '/my/interview' }) _this.$router.push({ path: this.$route.path, query: { active: 'application_pay' } })
} else {
_this.$router.push({ path: '/my/interview' })
}
}, },
errorCallback() { errorCallback() {
_this.completeVisible = true _this.completeVisible = true
......
...@@ -17,7 +17,7 @@ export default function(_this) { ...@@ -17,7 +17,7 @@ export default function(_this) {
title: '缴报名费', title: '缴报名费',
show: false, show: false,
visible() { visible() {
return _this.visible return _this.visible && _this.hasPay
} }
} }
] ]
......
...@@ -49,7 +49,8 @@ export default { ...@@ -49,7 +49,8 @@ export default {
tabActive: 'application_info_profile', tabActive: 'application_info_profile',
dialogVisible: false, dialogVisible: false,
detail: null, detail: null,
completeVisible: false completeVisible: false,
hasPay: false
} }
}, },
watch: { watch: {
......
...@@ -33,7 +33,7 @@ export default function(_this) { ...@@ -33,7 +33,7 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'interview_tjx' } } }, prev: { to: { query: { active: 'interview_ywjl' } } },
next: { to: { query: { active: 'interview_yynl' } } }, next: { to: { query: { active: 'interview_yynl' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
......
...@@ -3,13 +3,13 @@ import cjd from './cjd' ...@@ -3,13 +3,13 @@ import cjd from './cjd'
import yynl from './yynl' 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'
import tjx from './tjx' import tjx from './tjx'
export default function(_this) { export default function(_this) {
return { return {
id: 'interview', id: 'interview',
title: '申请面试', title: '申请面试',
children: [byzs(_this), ywjl(_this), tjx(_this), cjd(_this), yynl(_this), zp(_this)] children: [ywjl(_this), cjd(_this), yynl(_this)]
} }
} }
...@@ -25,8 +25,7 @@ export default function(_this) { ...@@ -25,8 +25,7 @@ export default function(_this) {
} }
}, },
form: { form: {
prev: { to: { query: { active: 'interview_byzs' } } }, next: { to: { query: { active: 'interview_cjd' } } },
next: { to: { query: { active: 'interview_tjx' } } },
hasButton: false, hasButton: false,
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
items: [ items: [
......
...@@ -29,12 +29,26 @@ export default function(_this) { ...@@ -29,12 +29,26 @@ export default function(_this) {
) )
} }
}, },
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_cjd' } } }, prev: { to: { query: { active: 'interview_cjd' } } },
next: { to: { query: { active: 'interview_zp' } } }, submitText: '申请面试',
hasButton: false, model: { submission_stage: 'INTERVIEW_APPLICATION' },
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
hint: '成绩单类型包括:大学英语六级(450分及以上)、托福、雅思、Duolingo、iTEP Academic', hint: '成绩单类型包括:CET-4,CET-6,TOEFL,IELTS等',
items: [ items: [
{ {
required: true, required: true,
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
const menus = getMenu(this) const menus = getMenu(this)
return { return {
menus: [menus], menus: [menus],
currentActive: 'interview_byzs', currentActive: 'interview_ywjl',
completeVisible: false, completeVisible: false,
dialogVisible: false, dialogVisible: false,
detail: null detail: null
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
immediate: true, immediate: true,
handler(route) { handler(route) {
const { query = {} } = route const { query = {} } = route
this.currentActive = query.active || 'interview_byzs' this.currentActive = query.active || 'interview_ywjl'
} }
}, },
showSubmitedDialog(value) { showSubmitedDialog(value) {
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
return false return false
}, },
showSubmitedDialog() { showSubmitedDialog() {
return this.isSubmited && this.currentActive === 'interview_byzs' return this.isSubmited && this.currentActive === 'interview_yynl'
}, },
user() { user() {
return this.$store.state.user return this.$store.state.user
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论