|
@@ -18,6 +18,24 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-main detailed clearfix">
|
|
|
+ <view class="register-row clearfix">
|
|
|
+ <view class="register-from">
|
|
|
+ <view class="label">联系人身份</view>
|
|
|
+ <view class="row-input">
|
|
|
+ <picker @change="bindPickerUserName($event)" :value="index" :range="stateActions" range-key="name">
|
|
|
+ <input
|
|
|
+ class="row-input"
|
|
|
+ type="text"
|
|
|
+ disabled="false"
|
|
|
+ v-model="linkManIdentityText"
|
|
|
+ value=""
|
|
|
+ placeholder="请选择"
|
|
|
+ />
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <text class="iconfont icon-xiayibu"></text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="register-row none clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">邮箱</view>
|
|
@@ -141,7 +159,7 @@
|
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row none clearfix" v-if="isOrganizationType == 1">
|
|
|
+ <view class="register-row none clearfix" v-if="firstClubType == 1">
|
|
|
<view class="register-from noneborder second">
|
|
|
<view
|
|
|
class="secondTyperadio"
|
|
@@ -154,7 +172,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row none clearfix" v-if="isOrganizationType == 2">
|
|
|
+ <view class="register-row none clearfix" v-if="firstClubType == 2">
|
|
|
<view class="register-from noneborder second">
|
|
|
<view
|
|
|
class="secondTyperadio"
|
|
@@ -167,7 +185,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row none clearfix" v-if="isOrganizationType == 1">
|
|
|
+ <view class="register-row none clearfix" v-if="firstClubType == 1">
|
|
|
<view class="register-picture zz">
|
|
|
<view class="label zz">医疗执业许可证</view>
|
|
|
<view class="upload-picture">
|
|
@@ -183,7 +201,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row clearfix" v-if="isOrganizationType == 1 && isDepartment">
|
|
|
+ <view class="register-row clearfix" v-if="firstClubType == 1 && isDepartment">
|
|
|
<view class="register-from" style="height: auto;border: 0;">
|
|
|
<view class="kes-title">科室</view>
|
|
|
<input
|
|
@@ -195,12 +213,12 @@
|
|
|
></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row clearfix" v-if="isOrganizationType == 1">
|
|
|
+ <view class="register-row clearfix" v-if="firstClubType == 1">
|
|
|
<view class="register-from group" style="height: auto;border: 0;">
|
|
|
<view class="label">主营内容</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row clearfix" v-if="isOrganizationType == 1">
|
|
|
+ <view class="register-row clearfix" v-if="firstClubType == 1">
|
|
|
<view class="register-from group" style="height: auto;border: 0;">
|
|
|
<view class="content-class">
|
|
|
<checkbox-group @change="chooseMaleLike">
|
|
@@ -230,12 +248,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row clearfix" v-if="isOrganizationType == 2">
|
|
|
+ <view class="register-row clearfix" v-if="firstClubType == 2">
|
|
|
<view class="register-from group" style="height: auto;border: 0;">
|
|
|
<view class="label">主营内容</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row clearfix" v-if="isOrganizationType == 2">
|
|
|
+ <view class="register-row clearfix" v-if="firstClubType == 2">
|
|
|
<view class="register-from group" style="height: auto;border: 0;">
|
|
|
<view class="content-class">
|
|
|
<checkbox-group @change="chooseMaleLikes">
|
|
@@ -334,7 +352,8 @@ export default {
|
|
|
secondClubType: '', //机构类型二级分类
|
|
|
mainProduct: '', //主营内容
|
|
|
firstClubType: 1, //机构类型
|
|
|
- isOrganizationType: 1,
|
|
|
+ linkManIdentity:0, //联系人身份
|
|
|
+ linkManIdentityText:'请选择联系人身份', //联系人身份
|
|
|
firstClubTypeCurrent:0,
|
|
|
organizationTypeText: '请选择机构类型',
|
|
|
beautyList: beautyList, //医美分类
|
|
@@ -357,12 +376,11 @@ export default {
|
|
|
provinceId: '', //省ID
|
|
|
addressDetail: '' //地址详情
|
|
|
},
|
|
|
- typename: [
|
|
|
- { name: '医美', value: 1 },
|
|
|
- { name: '生美', value: 2 },
|
|
|
- { name: '项目公司', value: 3 },
|
|
|
- { name: '个人', value: 4 },
|
|
|
- { name: '其他', value: 5 },
|
|
|
+ stateActions: [
|
|
|
+ { name: '老板', value: 1 },
|
|
|
+ { name: '采购', value: 2 },
|
|
|
+ { name: '运营', value: 3 },
|
|
|
+ { name: '其他', value: 4 },
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -389,6 +407,8 @@ export default {
|
|
|
this.errorList = organizationUser.auditNoteList
|
|
|
}
|
|
|
this.contractEmail = organizationClub.contractEmail
|
|
|
+ this.linkManIdentity = organizationClub.linkManIdentity ? organizationClub.linkManIdentity : 0
|
|
|
+ this.linkManIdentityText = this.linkManIdentity ? this.linkManFilters(this.linkManIdentity) : '请选择联系人身份'
|
|
|
this.clubId = organizationUser.clubId
|
|
|
if (this.contractEmail) {
|
|
|
this.isFirstAdds = false
|
|
@@ -419,38 +439,12 @@ export default {
|
|
|
this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
|
|
|
this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
|
|
|
this.firstClubType = organizationClub.firstClubType
|
|
|
+ this.organizationTypeText = organizationClub.firstClubType ? this.firstClubTypeText(this.firstClubType) : '请选择机构类型'
|
|
|
this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
|
|
|
this.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
|
|
|
this.shopPhoto = this.$reg.checkData(organizationClub.shopPhoto)
|
|
|
this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
|
|
|
this.department = this.$reg.checkData(organizationClub.department)
|
|
|
- //机构类型&&主营项目
|
|
|
- switch(this.firstClubType){
|
|
|
- case 1:
|
|
|
- this.organizationTypeText = '医美'
|
|
|
- this.isOrganizationType = 1
|
|
|
- break
|
|
|
- case 2:
|
|
|
- this.organizationTypeText = '生美'
|
|
|
- this.isOrganizationType = 2
|
|
|
- break
|
|
|
- case 3:
|
|
|
- this.organizationTypeText = '项目公司'
|
|
|
- this.isOrganizationType = 0
|
|
|
- break
|
|
|
- case 4:
|
|
|
- this.organizationTypeText = '个人'
|
|
|
- this.isOrganizationType = 0
|
|
|
- break
|
|
|
- case 5:
|
|
|
- this.organizationTypeText = '其他'
|
|
|
- this.isOrganizationType = 0
|
|
|
- break
|
|
|
- case null:
|
|
|
- this.organizationTypeText = '请选择机构类型'
|
|
|
- this.isOrganizationType = 0
|
|
|
- break
|
|
|
- }
|
|
|
if (organizationClub.mainProduct == '' || organizationClub.mainProduct == null) {
|
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
|
this.medicaCampList = this.medicaCampNullList
|
|
@@ -486,7 +480,7 @@ export default {
|
|
|
//提交审核
|
|
|
if (this.isFirstAdds) {
|
|
|
let mainproList = []
|
|
|
- if (this.isOrganizationType == 1) {
|
|
|
+ if (this.firstClubType == 1) {
|
|
|
this.mentuzCampList.forEach(item => {
|
|
|
mainproList.push(item.name)
|
|
|
})
|
|
@@ -497,6 +491,10 @@ export default {
|
|
|
}
|
|
|
this.mainProduct = mainproList.join('/')
|
|
|
}
|
|
|
+ if (!this.linkManIdentity) {
|
|
|
+ this.$util.msg('请选择联系人身份', 2000)
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.contractEmail == '') {
|
|
|
this.$util.msg('请输入邮箱地址', 2000)
|
|
|
return
|
|
@@ -521,19 +519,19 @@ export default {
|
|
|
this.$util.msg('请上传您的营业执照', 2000)
|
|
|
return
|
|
|
}
|
|
|
- if (this.isOrganizationType == 1){
|
|
|
+ if (this.firstClubType == 1){
|
|
|
if (this.medicalPracticeLicense == '') {
|
|
|
this.$util.msg('请上传您的资质许可证', 2000)
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if (this.isOrganizationType == 1 || this.isOrganizationType == 2) {
|
|
|
+ if (this.firstClubType == 1 || this.firstClubType == 2) {
|
|
|
if(this.secondClubType == ''){
|
|
|
this.$util.msg('选择机构类型', 2000)
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if (this.isOrganizationType == 1 || this.isOrganizationType == 2) {
|
|
|
+ if (this.firstClubType == 1 || this.firstClubType == 2) {
|
|
|
if (this.mainProduct == '') {
|
|
|
this.$util.msg('请选择机构主营内容', 2000)
|
|
|
return
|
|
@@ -544,6 +542,7 @@ export default {
|
|
|
clubId: this.clubId, //会所ID
|
|
|
contractEmail: this.contractEmail,
|
|
|
name: this.clubName,
|
|
|
+ linkManIdentity:this.linkManIdentity,
|
|
|
shortName: this.shortName,
|
|
|
provinceId: this.addressData.provinceId,
|
|
|
cityId: this.addressData.cityId,
|
|
@@ -552,7 +551,7 @@ export default {
|
|
|
socialCreditCode: this.socialCreditCode,
|
|
|
businessLicense: this.businessLicense,
|
|
|
shopPhoto: this.shopPhoto,
|
|
|
- firstClubType: this.isOrganizationType, //机构类型分类 医美:1和生美:2
|
|
|
+ firstClubType: this.firstClubType, //机构类型分类 医美:1和生美:2
|
|
|
secondClubType: this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
|
department: this.department, //科室
|
|
|
medicalPracticeLicense: this.medicalPracticeLicense, //资质图片
|
|
@@ -662,7 +661,7 @@ export default {
|
|
|
title:'标题',
|
|
|
itemList: ['医美', '生美','项目公司','个人','其他'],
|
|
|
success: (e) => {
|
|
|
- self.isOrganizationType = e.tapIndex+1
|
|
|
+ self.firstClubType = e.tapIndex+1
|
|
|
switch(e.tapIndex){
|
|
|
case 0:
|
|
|
this.organizationTypeText = '医美'
|
|
@@ -684,8 +683,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
bindPickerChange2(e) {
|
|
|
- this.typtIndex = e.target.value
|
|
|
- this.isOrganizationType = e.target.value
|
|
|
+ this.typtIndex = e.target.values
|
|
|
+ this.firstClubType = e.target.value
|
|
|
+ },
|
|
|
+ bindPickerUserName(e){//选择联系人身份
|
|
|
+ this.linkManIdentityText = this.stateActions[e.target.value].name
|
|
|
+ this.linkManIdentity= this.stateActions[e.target.value].value
|
|
|
},
|
|
|
radioChange(item) {
|
|
|
this.secondClubType = item.value
|
|
@@ -737,7 +740,7 @@ export default {
|
|
|
if (this.customItemValue == '') {
|
|
|
this.$util.msg('请输入自定义主营内容', 2000)
|
|
|
} else {
|
|
|
- if (this.isOrganizationType == 1) {
|
|
|
+ if (this.firstClubType == 1) {
|
|
|
let item = { value: `${this.mentuzCampList.length + 1}`, name: this.customItemValue, checked: true }
|
|
|
if (this.checkedArray(this.customItemValue, this.mentuzCampList)) {
|
|
|
this.$util.msg('主营内容已存在!', 2000)
|
|
@@ -763,7 +766,28 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
return false
|
|
|
- }
|
|
|
+ },
|
|
|
+ firstClubTypeText(value){
|
|
|
+ // 机构类型文案
|
|
|
+ const map = {
|
|
|
+ 1: '医美',
|
|
|
+ 2: '生美',
|
|
|
+ 3: '项目公司',
|
|
|
+ 4: '个人',
|
|
|
+ 5: '其他'
|
|
|
+ }
|
|
|
+ return map[value]
|
|
|
+ },
|
|
|
+ linkManFilters(value) {
|
|
|
+ // 联系人身份
|
|
|
+ const map = {
|
|
|
+ 1: '老板',
|
|
|
+ 2: '采购',
|
|
|
+ 3: '运营',
|
|
|
+ 4: '其他'
|
|
|
+ }
|
|
|
+ return map[value]
|
|
|
+ },
|
|
|
},
|
|
|
onShow() {
|
|
|
if (this.isPreviewImage) {
|