|
@@ -68,6 +68,8 @@
|
|
|
</div>
|
|
|
<van-field @input="entOnChange('input')" @blur="getCheckMap('company')" @focus="infoCheckMap.company = ''"
|
|
|
:error-message="infoCheckMap.company" required v-model.trim="infoMap.company" label="公司名称" placeholder="请输入公司名称"></van-field>
|
|
|
+ <van-field required v-model="infoMap.companyType" label="公司类型"
|
|
|
+ @click="openPop('公司类型')" readonly is-link placeholder="请选择公司类型"></van-field>
|
|
|
<van-field :class="{'hide-border': infoMap.position === '其他'}" v-model="infoMap.position" required label="职位" @click="openPop('职位')" readonly is-link
|
|
|
placeholder="请选择职位"></van-field>
|
|
|
<van-field class="other-input-group" @focus="infoCheckMap.position_other = ''"
|
|
@@ -163,6 +165,7 @@
|
|
|
vercode: '',
|
|
|
email: '',
|
|
|
company: '',
|
|
|
+ companyType: '',
|
|
|
position: '',
|
|
|
position_other: '',
|
|
|
branch: ''
|
|
@@ -184,6 +187,35 @@
|
|
|
title: ''
|
|
|
},
|
|
|
conditionMap: {
|
|
|
+ '公司类型': [{
|
|
|
+ title: '投标企业',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '招标采购单位',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '厂商',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '招标代理机构',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '经销商',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '服务提供商',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '其他',
|
|
|
+ checked: false
|
|
|
+ }
|
|
|
+ ],
|
|
|
'职位': [
|
|
|
{
|
|
|
title: '总裁',
|
|
@@ -239,6 +271,7 @@
|
|
|
"source": utils.getParam('source'), // 推送消息点进来的
|
|
|
"mail": "",
|
|
|
"company": "",
|
|
|
+ "companyType": "",
|
|
|
"position": "",
|
|
|
"branch": ''
|
|
|
},
|
|
@@ -282,6 +315,12 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
+ checkEntType() {
|
|
|
+ if (this.infoMap.companyType === '') {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
isMoreSelect () {
|
|
|
return this.popInfo.label === '公司类型'
|
|
|
},
|
|
@@ -305,7 +344,7 @@
|
|
|
}
|
|
|
},
|
|
|
isSubmitDisabled () {
|
|
|
- return !this.checkName || !this.checkPhone || !this.checkEmail || !this.checkEntName || !this.vercodecor || !this.checkPosition || this.checkBranch
|
|
|
+ return !this.checkName || !this.checkPhone || !this.checkEmail || !this.checkEntName || !this.checkEntType || !this.vercodecor || !this.checkPosition || this.checkBranch
|
|
|
},
|
|
|
isNextDisabled () {
|
|
|
var type = this.popInfo.label
|
|
@@ -319,6 +358,10 @@
|
|
|
result = this.conditionMap[type].filter(v => v.checked).length
|
|
|
break
|
|
|
}
|
|
|
+ case '公司类型': {
|
|
|
+ result = this.conditionMap[type].filter(v => v.checked).length
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
return !result
|
|
|
},
|
|
@@ -435,7 +478,7 @@
|
|
|
this.setcodeShow = true
|
|
|
}
|
|
|
this.setEchoInfo(r.data)
|
|
|
- var result = checkRequiredKeys(['name', 'phone', 'company', 'mail', 'position', 'branch'], r.data)
|
|
|
+ var result = checkRequiredKeys(['name', 'phone', 'company', 'companyType', 'mail', 'position', 'branch'], r.data)
|
|
|
if (result) {
|
|
|
var skipAuto = ['jyarticle_see3', 'article_collection', 'article_original', 'jypush_see10']
|
|
|
var _this = this
|
|
@@ -482,6 +525,9 @@
|
|
|
}, true)
|
|
|
},
|
|
|
setEchoInfo (data) {
|
|
|
+ if (data.companyType) {
|
|
|
+ this.setCheckForData('companyType', 'companyType', data.companyType, '公司类型')
|
|
|
+ }
|
|
|
if (data.position) {
|
|
|
this.setCheckForData('position', 'position', data.position, '职位')
|
|
|
}
|
|
@@ -512,6 +558,9 @@
|
|
|
}
|
|
|
if (label) {
|
|
|
var checkDatas = [cKey]
|
|
|
+ if (label === '公司类型') {
|
|
|
+ checkDatas = cKey.split(',')
|
|
|
+ }
|
|
|
this.conditionMap[label].forEach(v => {
|
|
|
if (checkDatas.indexOf(v.title) !== -1) {
|
|
|
v.checked = true
|
|
@@ -532,6 +581,11 @@
|
|
|
this.setCheckForData('branch', 'branch', tempData[0].title)
|
|
|
break
|
|
|
}
|
|
|
+ case '公司类型': {
|
|
|
+ var tempData = this.conditionMap[type].filter(v => v.checked).map(v => v.title)
|
|
|
+ this.setCheckForData('companyType', 'companyType', tempData.join(','))
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
this.popInfo.show = false
|
|
|
},
|
|
@@ -545,6 +599,10 @@
|
|
|
this.popInfo.title = '部门'
|
|
|
break
|
|
|
}
|
|
|
+ case '公司类型': {
|
|
|
+ this.popInfo.title = '公司类型'
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
this.popInfo.label = type
|
|
|
this.popInfo.show = true
|