Commit 7b580a66 authored by wangxl's avatar wangxl

4444

parent 4f03bb42
...@@ -12,21 +12,21 @@ ...@@ -12,21 +12,21 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>身份证号</div> <div class="required">身份证号</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
<div class="special-middle"> <div class="special-middle">
<div> <div>
<a-form-model-item prop="certId"> <a-form-model-item prop="certId">
<a-input v-model="formData.certId" @change="onCertIdChange" :maxLength="18" style="width: 200px;" /> <a-input v-model="formData.certId" @change="onCertIdChange" :maxLength="18" style="width: 200px;" />
</a-form-model-item> </a-form-model-item>
</div> </div>
</div> </div>
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>人才类别</div> <div class="required">人才类别</div>
</div> </div>
</a-col> </a-col>
<a-col :span="13"> <a-col :span="13">
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>姓名</div> <div class="required">姓名</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>性别</div> <div class="required">性别</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>民族</div> <div class="required">民族</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>出生年月</div> <div class="required">出生年月</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>最高学位</div> <div class="required">最高学位</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>最高学位授予时间</div> <div class="required">最高学位授予时间</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>最高学位授予单位</div> <div class="required">最高学位授予单位</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>目前从事专业</div> <div class="required">目前从事专业</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>是否为研究生导师</div> <div class="required">是否为研究生导师</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>专业技术职称</div> <div class="required">专业技术职称</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>党派</div> <div class="required">党派</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
</a-col> </a-col>
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>行政职务</div> <div class="required">行政职务</div>
</div> </div>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>是否是省级或省级以上人才</div> <div class="required">是否是省级或省级以上人才</div>
</div> </div>
</a-col> </a-col>
<a-col :span="21"> <a-col :span="21">
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>省级及以上劳动模范、先进工作者等荣誉称号</div> <div class="required">省级及以上劳动模范、先进工作者等荣誉称号</div>
</div> </div>
</a-col> </a-col>
<a-col :span="21"> <a-col :span="21">
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>在国家、省级一级学术团体任职情况(包括任职时间和职务)</div> <div class="required">在国家、省级一级学术团体任职情况(包括任职时间和职务)</div>
</div> </div>
</a-col> </a-col>
<a-col :span="21"> <a-col :span="21">
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>担任国内统计源期刊职务情况(包括任职时间和职务)</div> <div class="required">担任国内统计源期刊职务情况(包括任职时间和职务)</div>
</div> </div>
</a-col> </a-col>
<a-col :span="21"> <a-col :span="21">
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>担任国家或省级重点学科/专科、重点实验室、内设研究机构负责人情况(包括任职时间和职务)</div> <div class="required">担任国家或省级重点学科/专科、重点实验室、内设研究机构负责人情况(包括任职时间和职务)</div>
</div> </div>
</a-col> </a-col>
<a-col :span="21"> <a-col :span="21">
...@@ -296,46 +296,50 @@ ...@@ -296,46 +296,50 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row type="flex"> <a-row type="flex">
<a-col :span="3" class="bg-gray"> <a-col :span="24" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>联系方式</div> <div>联系方式</div>
</div> </div>
</a-col> </a-col>
<a-col :span="21"> </a-row>
<a-row> <a-row type="flex">
<a-col :span="4" class="bg-gray"> <a-col :span="4" class="bg-gray">
<div style="margin-top: 10px;">电话</div> <div class="required">电话</div>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<div> <div class="special-middle">
<a-form-model-item prop="mobile"> <div>
<a-input v-model="formData.mobile" :maxLength="50" style="width:80%" /> <a-form-model-item prop="mobile">
</a-form-model-item> <a-input v-model="formData.mobile" :maxLength="50" style="width:80%" />
</div> </a-form-model-item>
</a-col> </div>
<a-col :span="4" class="bg-gray"> </div>
<div style="margin-top: 10px;">传真</div> </a-col>
</a-col> <a-col :span="4" class="bg-gray">
<a-col :span="8"> <div class="required">传真</div>
<div> </a-col>
<a-form-model-item prop="fax"> <a-col :span="8">
<a-input v-model="formData.fax" :maxLength="50" style="width:80%" /> <div class="special-middle">
</a-form-model-item> <div>
</div> <a-form-model-item prop="fax">
</a-col> <a-input v-model="formData.fax" :maxLength="50" style="width:80%" />
</a-row> </a-form-model-item>
<a-row> </div>
<a-col :span="4" class="bg-gray"> </div>
<div style="margin-top: 10px;">Email</div> </a-col>
</a-col> </a-row>
<a-col :span="20"> <a-row type="flex">
<div> <a-col :span="4" class="bg-gray">
<a-form-model-item prop="email"> <div class="required">Email</div>
<a-input v-model="formData.email" :maxLength="50" style="width:40%" /> </a-col>
</a-form-model-item> <a-col :span="20">
</div> <div class="special-middle">
</a-col> <div>
</a-row> <a-form-model-item prop="email">
<a-input v-model="formData.email" :maxLength="50" style="width:40%" />
</a-form-model-item>
</div>
</div>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
...@@ -540,10 +544,10 @@ export default { ...@@ -540,10 +544,10 @@ export default {
} }
}, },
}, },
data() { data () {
return { return {
formData: { formData: {
id: null, id: null,
talentCategory: null, talentCategory: null,
reportYear: null, reportYear: null,
certId: null, certId: null,
...@@ -645,8 +649,8 @@ export default { ...@@ -645,8 +649,8 @@ export default {
} }
}) })
}, },
getNewTalentApply() { getNewTalentApply () {
this.$api.talent.getNewTalentApply({ }).then(({ data = {} }) => { this.$api.talent.getNewTalentApply({}).then(({ data = {} }) => {
if (data) { if (data) {
this.formData = data this.formData = data
this.formData.sex = '' this.formData.sex = ''
...@@ -661,7 +665,7 @@ export default { ...@@ -661,7 +665,7 @@ export default {
this.$emit('load', false) this.$emit('load', false)
}) })
}, },
getTalentApplyById() { getTalentApplyById () {
this.$api.talent.getTalentApplyById({ id: this.value }).then(({ data = {} }) => { this.$api.talent.getTalentApplyById({ id: this.value }).then(({ data = {} }) => {
if (data) { if (data) {
// 处理字符串转数组 // 处理字符串转数组
...@@ -686,7 +690,7 @@ export default { ...@@ -686,7 +690,7 @@ export default {
this.$emit('load', false) this.$emit('load', false)
}) })
}, },
getPersonByCertId() { getPersonByCertId () {
if (this.formData.certId == "" || this.formData.certId == null) if (this.formData.certId == "" || this.formData.certId == null)
return return
...@@ -791,10 +795,10 @@ export default { ...@@ -791,10 +795,10 @@ export default {
var obj = null var obj = null
switch (step) { switch (step) {
case 0: case 0:
obj = { obj = {
id: null, reportYear: null, certId: null, personId: null, personName: null, nation: null, sex: null, birthday: null, degree: null, degreeTime: null, id: null, reportYear: null, certId: null, personId: null, personName: null, nation: null, sex: null, birthday: null, degree: null, degreeTime: null,
degreeUnit: null, spec: null, graduateTeacher: null, title: null, politicalParty: null, duty: null, talentType: null, honoraryTitle: null, degreeUnit: null, spec: null, graduateTeacher: null, title: null, politicalParty: null, duty: null, talentType: null, honoraryTitle: null,
holdPost1: null, holdPost2: null, holdPost3: null, mobile: null, fax: null, email: null, completeStatus: null, talentState: null, holdPost1: null, holdPost2: null, holdPost3: null, mobile: null, fax: null, email: null, completeStatus: null, talentState: null,
appPersonId: null, appUnitId: null, talentCategory: null, appPersonId: null, appUnitId: null, talentCategory: null,
} }
break; break;
...@@ -814,26 +818,26 @@ export default { ...@@ -814,26 +818,26 @@ export default {
obj = { id: null, completeStatus: null, talentState: null, fileList: [] } obj = { id: null, completeStatus: null, talentState: null, fileList: [] }
break; break;
} }
Object.keys(obj).forEach(key => { Object.keys(obj).forEach(key => {
let value = this.formData[key] let value = this.formData[key]
if ((key === 'talentType' || key === 'graduateTeacher') && Array.isArray(value)) { if ((key === 'talentType' || key === 'graduateTeacher') && Array.isArray(value)) {
obj[key] = value.join(',') obj[key] = value.join(',')
} else { } else {
obj[key] = value obj[key] = value
} }
}) })
//console.log('getObj处理后的数据:', obj) //console.log('getObj处理后的数据:', obj)
return obj return obj
}, },
checkResumeList() { checkResumeList () {
this.$refs.talentResume.mergeResumeList() this.$refs.talentResume.mergeResumeList()
// 检查每种类型是否都有记录 // 检查每种类型是否都有记录
const resumeList = this.formData.resumeList || [] const resumeList = this.formData.resumeList || []
// 检查学历记录 // 检查学历记录
const hasEducation = resumeList.some(item => const hasEducation = resumeList.some(item =>
item.resumeType === 'e76f5097-fe28-11ef-b6cb-0c42a1380f01' item.resumeType === 'e76f5097-fe28-11ef-b6cb-0c42a1380f01'
) )
if (!hasEducation) { if (!hasEducation) {
...@@ -841,7 +845,7 @@ export default { ...@@ -841,7 +845,7 @@ export default {
return false return false
} }
// 检查研修经历 // 检查研修经历
const hasStudy = resumeList.some(item => const hasStudy = resumeList.some(item =>
item.resumeType === 'e76f5097-fe28-11ef-b6cb-0c42a1380f02' item.resumeType === 'e76f5097-fe28-11ef-b6cb-0c42a1380f02'
) )
if (!hasStudy) { if (!hasStudy) {
...@@ -849,17 +853,17 @@ export default { ...@@ -849,17 +853,17 @@ export default {
return false return false
} }
// 检查工作经历 // 检查工作经历
const hasWork = resumeList.some(item => const hasWork = resumeList.some(item =>
item.resumeType === 'e76f5097-fe28-11ef-b6cb-0c42a1380f03' item.resumeType === 'e76f5097-fe28-11ef-b6cb-0c42a1380f03'
) )
if (!hasWork) { if (!hasWork) {
this.$message.error('请至少添加一条工作经历!') this.$message.error('请至少添加一条工作经历!')
return false return false
} }
return true return true
}, },
checkScientiticList() { checkScientiticList () {
this.$refs.talentScientific.mergeScientificList() this.$refs.talentScientific.mergeScientificList()
if (!!!this.formData.scientificList || this.formData.scientificList.length == 0) { if (!!!this.formData.scientificList || this.formData.scientificList.length == 0) {
this.$message.error('请至少添加一条申报人才科研成绩!') this.$message.error('请至少添加一条申报人才科研成绩!')
...@@ -868,7 +872,7 @@ export default { ...@@ -868,7 +872,7 @@ export default {
return true return true
}, },
checkMemberList() { checkMemberList () {
if (!!!this.formData.membersList || this.formData.membersList.length == 0) { if (!!!this.formData.membersList || this.formData.membersList.length == 0) {
this.$message.error('请至少添加一条申报人才团队人员信息!') this.$message.error('请至少添加一条申报人才团队人员信息!')
return false return false
...@@ -876,19 +880,19 @@ export default { ...@@ -876,19 +880,19 @@ export default {
return true return true
}, },
checkBudgetList() { checkBudgetList () {
// 获取预算编辑组件中的总费用 // 获取预算编辑组件中的总费用
const totalFee = this.$refs.talentBudget ? this.$refs.talentBudget.getTotalFee() : 0; const totalFee = this.$refs.talentBudget ? this.$refs.talentBudget.getTotalFee() : 0;
// 检查资金来源金额与支出费用金额是否相等 // 检查资金来源金额与支出费用金额是否相等
if (parseFloat(this.formData.totalFund) !== parseFloat(totalFee)) { if (parseFloat(this.formData.totalFund) !== parseFloat(totalFee)) {
this.$message.error('资金来源金额与支出费用金额不相等,请检查!'); this.$message.error('资金来源金额与支出费用金额不相等,请检查!');
return false; return false;
} }
return true; return true;
}, },
checkInfo(step) { checkInfo (step) {
switch (step) { switch (step) {
case 0: case 0:
if (this.formData.certId == "" || this.formData.certId == null) { if (this.formData.certId == "" || this.formData.certId == null) {
...@@ -917,15 +921,15 @@ export default { ...@@ -917,15 +921,15 @@ export default {
break; break;
} }
}, },
FundChange() { FundChange () {
this.formData.totalFund = this.formData.applyFund + this.formData.otherFund this.formData.totalFund = this.formData.applyFund + this.formData.otherFund
}, },
talentCategoryChange() { talentCategoryChange () {
this.talentCategoryHolder(null) this.talentCategoryHolder(null)
}, },
talentCategoryHolder(talentType) { talentCategoryHolder (talentType) {
if (this.formData.talentCategory === this.talentTraningInfo.HTTalent || if (this.formData.talentCategory === this.talentTraningInfo.HTTalent ||
this.formData.talentCategory === this.talentTraningInfo.RTTalent) { this.formData.talentCategory === this.talentTraningInfo.RTTalent) {
this.talentTypeId = 23 this.talentTypeId = 23
} else if (this.formData.talentCategory === this.talentTraningInfo.ALTalent) { } else if (this.formData.talentCategory === this.talentTraningInfo.ALTalent) {
this.talentTypeId = 16 this.talentTypeId = 16
...@@ -940,7 +944,7 @@ export default { ...@@ -940,7 +944,7 @@ export default {
this.processBudgetType() this.processBudgetType()
}, },
processBudgetType() { processBudgetType () {
if (this.formData.talentCategory === this.talentTraningInfo.HTTalent) { if (this.formData.talentCategory === this.talentTraningInfo.HTTalent) {
this.budgetType = { type: 'HTTalent', trainingYear: this.talentTraningInfo.HTTrainingYear, EveryYearFee: this.talentTraningInfo.HTEveryYearFee } this.budgetType = { type: 'HTTalent', trainingYear: this.talentTraningInfo.HTTrainingYear, EveryYearFee: this.talentTraningInfo.HTEveryYearFee }
} else if (this.formData.talentCategory === this.talentTraningInfo.ALTalent) { } else if (this.formData.talentCategory === this.talentTraningInfo.ALTalent) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment