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

chore(报名申请): 办理入学阶段增加提交;新增FINISHED阶段;

上级 9d20b14f
...@@ -53,7 +53,8 @@ export default { ...@@ -53,7 +53,8 @@ export default {
0: ['FILLING', 'PREPAYMENT'], 0: ['FILLING', 'PREPAYMENT'],
1: ['INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW'], 1: ['INTERVIEW_APPLICATION', 'AUDITION', 'INTERVIEW'],
2: ['REGISTRATION', 'PAYMENT'], 2: ['REGISTRATION', 'PAYMENT'],
3: ['CLOSED'] 3: ['CLOSED'],
4: ['FINISHED']
}, },
result: {}, result: {},
welcomeShow: false welcomeShow: false
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -11,17 +13,8 @@ export default function(_this) { ...@@ -11,17 +13,8 @@ export default function(_this) {
attachments = [], attachments = [],
submission_stage: submissionStage = 'FILLING' submission_stage: submissionStage = 'FILLING'
} = data.data.material } = data.data.material
const stageList = [
'FILLING', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
const attachment = attachments.reduce( const attachment = attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'DIPLOMA_CN') { if (item.file_type_id === 'DIPLOMA_CN') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +9,8 @@ export default function(_this) { ...@@ -7,17 +9,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'REPORT_CARD_CN') { if (item.file_type_id === 'REPORT_CARD_CN') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +9,8 @@ export default function(_this) { ...@@ -7,17 +9,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
const PERSONAL_STATEMENT = attachments.filter(item => { const PERSONAL_STATEMENT = attachments.filter(item => {
return item.file_type_id === 'PERSONAL_STATEMENT' return item.file_type_id === 'PERSONAL_STATEMENT'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +9,8 @@ export default function(_this) { ...@@ -7,17 +9,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
item.disabled = item.upload_operator_user_id !== _this.user?.id item.disabled = item.upload_operator_user_id !== _this.user?.id
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -10,17 +11,8 @@ export default function(_this) { ...@@ -10,17 +11,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 7
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
// 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'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
id: 'admission_xy', id: 'admission_xy',
...@@ -7,26 +9,30 @@ export default function(_this) { ...@@ -7,26 +9,30 @@ export default function(_this) {
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 = [ this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 7
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
// this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const ADMISSION_AGREEMENT = attachments.filter(item => { const ADMISSION_AGREEMENT = attachments.filter(item => {
return item.file_type_id === 'ADMISSION_AGREEMENT' return item.file_type_id === 'ADMISSION_AGREEMENT'
}) })
return { ADMISSION_AGREEMENT } return { ADMISSION_AGREEMENT }
} }
}, },
update: {
action: `${process.env.baseURL}/api/enrollment/v1.0/application-materials/submit/${process.env.projectId}`,
beforeRequest(data) {
return { submission_stage: 'CLOSED' }
},
callback() {
_this.$message({ type: 'success', message: '提交成功' })
_this.getApplication()
this.form.options.disabled = true
},
errorCallback() {
_this.completeVisible = true
}
},
form: { form: {
prev: { to: { query: { active: 'admission_xfjn' } } }, prev: { to: { query: { active: 'admission_xfjn' } } },
hasButton: false, submitText: '提交',
options: { 'label-position': 'top' }, options: { 'label-position': 'top' },
items: [ items: [
{ {
...@@ -34,14 +40,15 @@ export default function(_this) { ...@@ -34,14 +40,15 @@ export default function(_this) {
required: true, required: true,
label: '入学协议', label: '入学协议',
model: 'ADMISSION_AGREEMENT', model: 'ADMISSION_AGREEMENT',
rules: [{ required: true, message: '请上传', trigger: 'change' }],
attrs: { attrs: {
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: 'ADMISSION_AGREEMENT' } data: { file_type: 'ADMISSION_AGREEMENT' }
}, },
prepend: ` prepend:
<p><a href="https://webapp-pub.ezijing.com/project/sbu-plus/%E5%85%A5%E5%AD%A6%E5%8D%8F%E8%AE%AE.pdf" target="_blank" download="入学协议">下载入学协议</a></p> // <p><a href="https://webapp-pub.ezijing.com/project/sbu-plus/%E5%85%A5%E5%AD%A6%E5%8D%8F%E8%AE%AE.pdf" target="_blank" download="入学协议">下载入学协议</a></p>
<p>申请者可将签字后的入学协议原件扫描或拍照后提交。</p> `<p>申请者可将签字后的入学协议原件扫描或拍照后提交。</p>
<p>学员应仔细阅读《入学协议》以及课程介绍,如对入学协议或课程有异议,请第一时间与课程顾问咨询确认。请用A4纸打印后,在入学协议上签上姓名和日期,内容需显示完整、格式整齐、字迹清晰可辨。上传文件仅限“jpg,jpeg,pdf,png”格式,文件小于10Mb。</p> <p>学员应仔细阅读《入学协议》以及课程介绍,如对入学协议或课程有异议,请第一时间与课程顾问咨询确认。请用A4纸打印后,在入学协议上签上姓名和日期,内容需显示完整、格式整齐、字迹清晰可辨。上传文件仅限“jpg,jpeg,pdf,png”格式,文件小于10Mb。</p>
` `
} }
......
import { STAGE_LIST } from '../../index'
export default { export default {
id: 'admission_ywjl', id: 'admission_ywjl',
title: '英文简历', title: '英文简历',
...@@ -5,17 +7,7 @@ export default { ...@@ -5,17 +7,7 @@ export default {
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 = [ this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 6
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const RESUME_EN = attachments.filter(item => { const RESUME_EN = attachments.filter(item => {
return item.file_type_id === 'RESUME_EN' return item.file_type_id === 'RESUME_EN'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
id: 'admission_yynl', id: 'admission_yynl',
...@@ -6,17 +7,8 @@ export default function(_this) { ...@@ -6,17 +7,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'DOMESTIC_LANGUAGE_SCORE') { if (item.file_type_id === 'DOMESTIC_LANGUAGE_SCORE') {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +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 :type="2" v-model="completeVisible"></app-complete> <app-complete :type="3" v-model="completeVisible"></app-complete>
</app-layout> </app-layout>
</template> </template>
...@@ -68,19 +68,19 @@ export default { ...@@ -68,19 +68,19 @@ export default {
this.currentActive = query.active || 'admission_xfjn' this.currentActive = query.active || 'admission_xfjn'
} }
}, },
showSubmitedDialog(value) { showSubmittedDialog(value) {
this.dialogVisible = value this.dialogVisible = value
} }
}, },
computed: { computed: {
isSubmited() { isSubmitted() {
if (this.detail) { if (this.detail) {
return this.detail.material.submission_stage === 'PAYMENT' return this.detail.material.submission_stage === 'PAYMENT'
} }
return false return false
}, },
showSubmitedDialog() { showSubmittedDialog() {
return this.isSubmited && this.currentActive === 'admission_byzs' return this.isSubmitted && this.currentActive === 'admission_byzs'
}, },
user() { user() {
return this.$store.state.user return this.$store.state.user
......
...@@ -95,6 +95,19 @@ export default { ...@@ -95,6 +95,19 @@ export default {
], ],
view: { to: { path: '/my/review', query: { active: 'admission_byzs' } } } view: { to: { path: '/my/review', query: { active: 'admission_byzs' } } }
} }
],
[
{
title: '缴费凭证',
code: 'CLOSED.attachments.missed_required_list.PAYMENT_VOUCHER',
view: { to: { path: '/my/admission', query: { active: 'admission_xfjn' } } }
},
{
title: '入学协议',
code: 'CLOSED.attachments.missed_required_list.ADMISSION_AGREEMENT',
view: { to: { path: '/my/admission', query: { active: 'admission_xy' } } }
}
] ]
] ]
} }
......
...@@ -13,9 +13,9 @@ export default function(_this) { ...@@ -13,9 +13,9 @@ export default function(_this) {
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 { submission_stage: submissionStage = 'FILLING' } = data.data.material
const isSubmited = submissionStage !== 'FILLING' const isSubmitted = submissionStage !== 'FILLING'
this.form.options.disabled = isSubmited this.form.options.disabled = isSubmitted
if (isSubmited) { if (isSubmitted) {
return { isAgree: [1] } return { isAgree: [1] }
} }
return { isAgree: [] } return { isAgree: [] }
......
import { STAGE_LIST } from '../../index'
/** /**
* 推荐信 * 推荐信
*/ */
...@@ -13,17 +15,7 @@ export default function(_this) { ...@@ -13,17 +15,7 @@ export default function(_this) {
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 { submission_stage: submissionStage = 'FILLING' } = data.data.material
const stageList = [ this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 3
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 3
const list = data.data.material.reco_letters || [] const list = data.data.material.reco_letters || []
return list.length ? list : [{}, {}] return list.length ? list : [{}, {}]
} }
......
export const STAGE_LIST = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED',
'FINISHED'
]
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +8,8 @@ export default function(_this) { ...@@ -7,17 +8,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'DIPLOMA_CN') { if (item.file_type_id === 'DIPLOMA_CN') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -11,17 +12,8 @@ export default function(_this) { ...@@ -11,17 +12,8 @@ export default function(_this) {
attachments = [], attachments = [],
submission_stage: submissionStage = 'FILLING' submission_stage: submissionStage = 'FILLING'
} = data.data.material } = data.data.material
const stageList = [
'FILLING', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const attachment = attachments.reduce( const attachment = attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'REPORT_CARD_CN') { if (item.file_type_id === 'REPORT_CARD_CN') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +8,8 @@ export default function(_this) { ...@@ -7,17 +8,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
const types = ['RECOMMENDATION_LETTER', 'RECOMMENDATION_LETTER_2'] const types = ['RECOMMENDATION_LETTER', 'RECOMMENDATION_LETTER_2']
......
import { STAGE_LIST } from '../../index'
export default { export default {
id: 'interview_xwzs', id: 'interview_xwzs',
title: '学位证书', title: '学位证书',
...@@ -5,17 +7,8 @@ export default { ...@@ -5,17 +7,8 @@ export default {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const DEGREE_CERT_CN = attachments.filter(item => { const DEGREE_CERT_CN = attachments.filter(item => {
return item.file_type_id === 'DEGREE_CERT_CN' return item.file_type_id === 'DEGREE_CERT_CN'
}) })
......
import { STAGE_LIST } from '../../index'
export default { export default {
id: 'interview_xwzsywzm', id: 'interview_xwzsywzm',
title: '学位证书英文证明', title: '学位证书英文证明',
...@@ -5,17 +7,8 @@ export default { ...@@ -5,17 +7,8 @@ export default {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const DEGREE_CERT_EN = attachments.filter(item => { const DEGREE_CERT_EN = attachments.filter(item => {
return item.file_type_id === 'DEGREE_CERT_EN' return item.file_type_id === 'DEGREE_CERT_EN'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +8,8 @@ export default function(_this) { ...@@ -7,17 +8,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const RESUME_EN = attachments.filter(item => { const RESUME_EN = attachments.filter(item => {
return item.file_type_id === 'RESUME_EN' return item.file_type_id === 'RESUME_EN'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -11,17 +12,8 @@ export default function(_this) { ...@@ -11,17 +12,8 @@ export default function(_this) {
attachments = [], attachments = [],
submission_stage: submissionStage = 'FILLING' submission_stage: submissionStage = 'FILLING'
} = data.data.material } = data.data.material
const stageList = [
'FILLING', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const attachment = attachments.reduce( const attachment = attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'INTERNATIONAL_LANGUAGE_SCORE') { if (item.file_type_id === 'INTERNATIONAL_LANGUAGE_SCORE') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
id: 'interview_zp', id: 'interview_zp',
...@@ -6,17 +7,8 @@ export default function(_this) { ...@@ -6,17 +7,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 2
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 2
const PERSONAL_PHOTO_FOR_ID = attachments.filter(item => { const PERSONAL_PHOTO_FOR_ID = attachments.filter(item => {
return item.file_type_id === 'PERSONAL_PHOTO_FOR_ID' return item.file_type_id === 'PERSONAL_PHOTO_FOR_ID'
}) })
......
...@@ -38,6 +38,7 @@ import AppLayout from '../layout.vue' ...@@ -38,6 +38,7 @@ import AppLayout from '../layout.vue'
import getMenu from './form' import getMenu from './form'
import AppComplete from '../application/complete.vue' import AppComplete from '../application/complete.vue'
import * as api from '@/api/my' import * as api from '@/api/my'
import { STAGE_LIST } from '../index'
export default { export default {
components: { AppLayout, AppComplete }, components: { AppLayout, AppComplete },
...@@ -59,29 +60,19 @@ export default { ...@@ -59,29 +60,19 @@ export default {
this.currentActive = query.active || 'interview_ywjl' this.currentActive = query.active || 'interview_ywjl'
} }
}, },
showSubmitedDialog(value) { showSubmittedDialog(value) {
this.dialogVisible = value this.dialogVisible = value
} }
}, },
computed: { computed: {
isSubmited() { isSubmitted() {
const stageList = [
'FILLING',
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
if (this.detail) { if (this.detail) {
return stageList.findIndex(item => item === this.detail.material.submission_stage) > 2 return STAGE_LIST.findIndex(item => item === this.detail.material.submission_stage) > 2
} }
return false return false
}, },
showSubmitedDialog() { showSubmittedDialog() {
return this.isSubmited && this.currentActive === 'interview_yynl' return this.isSubmitted && this.currentActive === 'interview_yynl'
}, },
user() { user() {
return this.$store.state.user return this.$store.state.user
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -11,17 +12,8 @@ export default function(_this) { ...@@ -11,17 +12,8 @@ export default function(_this) {
attachments = [], attachments = [],
submission_stage: submissionStage = 'FILLING' submission_stage: submissionStage = 'FILLING'
} = data.data.material } = data.data.material
const stageList = [
'FILLING', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
const attachment = attachments.reduce( const attachment = attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'DIPLOMA_CN') { if (item.file_type_id === 'DIPLOMA_CN') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +8,8 @@ export default function(_this) { ...@@ -7,17 +8,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'REPORT_CARD_CN') { if (item.file_type_id === 'REPORT_CARD_CN') {
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +8,8 @@ export default function(_this) { ...@@ -7,17 +8,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
const PERSONAL_STATEMENT = attachments.filter(item => { const PERSONAL_STATEMENT = attachments.filter(item => {
return item.file_type_id === 'PERSONAL_STATEMENT' return item.file_type_id === 'PERSONAL_STATEMENT'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -7,17 +8,8 @@ export default function(_this) { ...@@ -7,17 +8,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) >= 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) >= 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
item.disabled = item.upload_operator_user_id !== _this.user?.id item.disabled = item.upload_operator_user_id !== _this.user?.id
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
required: true, required: true,
...@@ -10,17 +11,8 @@ export default function(_this) { ...@@ -10,17 +11,8 @@ export default function(_this) {
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', // this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'REGISTRATION',
'PAYMENT',
'CLOSED'
]
// 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'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
id: 'admission_xy', id: 'admission_xy',
...@@ -6,8 +8,8 @@ export default function(_this) { ...@@ -6,8 +8,8 @@ export default function(_this) {
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']
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6 this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 6
const ADMISSION_AGREEMENT = attachments.filter(item => { const ADMISSION_AGREEMENT = attachments.filter(item => {
return item.file_type_id === 'ADMISSION_AGREEMENT' return item.file_type_id === 'ADMISSION_AGREEMENT'
}) })
......
import { STAGE_LIST } from '../../index'
export default { export default {
id: 'admission_ywjl', id: 'admission_ywjl',
title: '英文简历', title: '英文简历',
...@@ -5,17 +7,8 @@ export default { ...@@ -5,17 +7,8 @@ export default {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
const RESUME_EN = attachments.filter(item => { const RESUME_EN = attachments.filter(item => {
return item.file_type_id === 'RESUME_EN' return item.file_type_id === 'RESUME_EN'
}) })
......
import { STAGE_LIST } from '../../index'
export default function(_this) { export default function(_this) {
return { return {
id: 'admission_yynl', id: 'admission_yynl',
...@@ -6,17 +7,8 @@ export default function(_this) { ...@@ -6,17 +7,8 @@ export default function(_this) {
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', this.form.options.disabled = STAGE_LIST.findIndex(item => item === submissionStage) > 6
'PREPAYMENT',
'INTERVIEW_APPLICATION',
'AUDITION',
'INTERVIEW',
'PAYMENT',
'REGISTRATION',
'CLOSED'
]
this.form.options.disabled = stageList.findIndex(item => item === submissionStage) > 6
return attachments.reduce( return attachments.reduce(
(result, item) => { (result, item) => {
if (item.file_type_id === 'DOMESTIC_LANGUAGE_SCORE') { if (item.file_type_id === 'DOMESTIC_LANGUAGE_SCORE') {
......
...@@ -68,19 +68,19 @@ export default { ...@@ -68,19 +68,19 @@ export default {
this.currentActive = query.active || 'admission_cjd' this.currentActive = query.active || 'admission_cjd'
} }
}, },
showSubmitedDialog(value) { showSubmittedDialog(value) {
this.dialogVisible = value this.dialogVisible = value
} }
}, },
computed: { computed: {
isSubmited() { isSubmitted() {
if (this.detail) { if (this.detail) {
return this.detail.material.submission_stage === 'PAYMENT' return this.detail.material.submission_stage === 'PAYMENT'
} }
return false return false
}, },
showSubmitedDialog() { showSubmittedDialog() {
return this.isSubmited && this.currentActive === 'admission_byzs' return this.isSubmitted && this.currentActive === 'admission_byzs'
}, },
user() { user() {
return this.$store.state.user return this.$store.state.user
......
<template> <template>
<div v-if="loaded"> <div v-if="loaded">
<index-welcome @update="handleUpdate" v-if="!isSubmited" /> <index-welcome @update="handleUpdate" v-if="!isSubmitted" />
<index-pay v-else /> <index-pay v-else />
</div> </div>
</template> </template>
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
}, },
computed: { computed: {
isSubmited() { isSubmitted() {
const { FILLING = {} } = this.progress const { FILLING = {} } = this.progress
if (FILLING && FILLING.basic_info) { if (FILLING && FILLING.basic_info) {
return !!FILLING.basic_info.progress return !!FILLING.basic_info.progress
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论