|
@@ -8,7 +8,7 @@
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
<view class="label">联系人</view>
|
|
<view class="label">联系人</view>
|
|
- <input class="row-input" type="text" v-model="clubContact" placeholder="请输入联系姓名" placeholder-class="placeholder" maxlength="6"/>
|
|
|
|
|
|
+ <input class="row-input" type="text" v-model="linkMan" placeholder="请输入联系姓名" placeholder-class="placeholder" maxlength="6"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
@@ -26,19 +26,19 @@
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
<view class="label">邮箱</view>
|
|
<view class="label">邮箱</view>
|
|
- <input class="row-input" type="text" name="input" v-model="email" placeholder="请输入邮箱地址"placeholder-class="placeholder" maxlength="30"/>
|
|
|
|
|
|
+ <input class="row-input" type="text" name="input" v-model="contractEmail" placeholder="请输入邮箱地址"placeholder-class="placeholder" maxlength="30"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
<view class="label">机构名称</view>
|
|
<view class="label">机构名称</view>
|
|
- <input class="row-input" type="text" v-model="clubName" placeholder="请输入您的机构名称" placeholder-class="placeholder" maxlength="30"/>
|
|
|
|
|
|
+ <input class="row-input" type="text" v-model="name" placeholder="请输入您的机构名称" placeholder-class="placeholder" maxlength="30"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
<view class="label">机构简称</view>
|
|
<view class="label">机构简称</view>
|
|
- <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" placeholder-class="placeholder" maxlength="10"/>
|
|
|
|
|
|
+ <input class="row-input" type="text" v-model="shortName" placeholder="请输入您的机构简称" placeholder-class="placeholder" maxlength="10"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
@@ -75,11 +75,11 @@
|
|
<view class="register-picture">
|
|
<view class="register-picture">
|
|
<view class="label">营业执照</view>
|
|
<view class="label">营业执照</view>
|
|
<view class="upload-picture">
|
|
<view class="upload-picture">
|
|
- <view class="upload-none" v-if="uploadBusinessImage == ''" @click="chooseBusinessImage">
|
|
|
|
|
|
+ <view class="upload-none" v-if="businessLicense == ''" @click="chooseBusinessImage">
|
|
<image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
|
|
<image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
|
|
</view>
|
|
</view>
|
|
<view class="upload-image" v-else>
|
|
<view class="upload-image" v-else>
|
|
- <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
|
|
|
|
|
|
+ <image :src="businessLicense" mode="" @click="viewBusinessImage"></image>
|
|
<view class="upload-del" @click="delBusinessImage">
|
|
<view class="upload-del" @click="delBusinessImage">
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
</view>
|
|
</view>
|
|
@@ -91,11 +91,11 @@
|
|
<view class="register-picture">
|
|
<view class="register-picture">
|
|
<view class="label">门头照</view>
|
|
<view class="label">门头照</view>
|
|
<view class="upload-picture">
|
|
<view class="upload-picture">
|
|
- <view class="upload-none" v-if="uploadMentuzImage == ''" @click="chooseMentuzImage">
|
|
|
|
|
|
+ <view class="upload-none" v-if="shopPhoto == ''" @click="chooseMentuzImage">
|
|
<image src="https://static.caimei365.com/app/img/upload/club-door.png"></image>
|
|
<image src="https://static.caimei365.com/app/img/upload/club-door.png"></image>
|
|
</view>
|
|
</view>
|
|
<view class="upload-image" v-else>
|
|
<view class="upload-image" v-else>
|
|
- <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
|
|
|
|
|
|
+ <image :src="shopPhoto" mode="" @click="viewMentuzImage"></image>
|
|
<view class="upload-del" @click="delMentuzImage">
|
|
<view class="upload-del" @click="delMentuzImage">
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
</view>
|
|
</view>
|
|
@@ -109,28 +109,28 @@
|
|
<view class="row-input">
|
|
<view class="row-input">
|
|
<radio-group @change="bindPickerChange">
|
|
<radio-group @change="bindPickerChange">
|
|
<label class="label-radio" v-for="(item, index) in typename" :key="item.value">
|
|
<label class="label-radio" v-for="(item, index) in typename" :key="item.value">
|
|
- <radio class="row-radio" :value="item.value" :checked="item.value === isOrganizationType" color='#E15616'/>{{item.name }}
|
|
|
|
|
|
+ <radio class="row-radio" :value="item.value" :checked="item.value === firstClubType" color='#E15616'/>{{item.name }}
|
|
</label>
|
|
</label>
|
|
</radio-group>
|
|
</radio-group>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</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 bordernone second" >
|
|
<view class="register-from bordernone second" >
|
|
<view class="secondTyperadio" v-for="(item,index) in beautyList" :key="item.value" @click="radioChange(item)" :class="item.value==secondClubType?'active':''">
|
|
<view class="secondTyperadio" v-for="(item,index) in beautyList" :key="item.value" @click="radioChange(item)" :class="item.value==secondClubType?'active':''">
|
|
<view class="secondRadio" >{{item.name}}</view>
|
|
<view class="secondRadio" >{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="register-row clearfix" v-if="isOrganizationType == 1">
|
|
|
|
|
|
+ <view class="register-row clearfix" v-if="firstClubType == 1">
|
|
<view class="register-picture zz">
|
|
<view class="register-picture zz">
|
|
<view class="label zz">医疗执业许可证</view>
|
|
<view class="label zz">医疗执业许可证</view>
|
|
<view class="upload-picture">
|
|
<view class="upload-picture">
|
|
- <view class="upload-none" v-if="uploadMedicalImage == ''||uploadMedicalImage == null" @click="chooseMedicalImage">
|
|
|
|
|
|
+ <view class="upload-none" v-if="medicalPracticeLicense == ''||medicalPracticeLicense == null" @click="chooseMedicalImage">
|
|
<image src="https://static.caimei365.com/app/img/upload/club-yiliao.png"></image>
|
|
<image src="https://static.caimei365.com/app/img/upload/club-yiliao.png"></image>
|
|
</view>
|
|
</view>
|
|
<view class="upload-image" v-else>
|
|
<view class="upload-image" v-else>
|
|
- <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
|
|
|
|
|
|
+ <image :src="medicalPracticeLicense" mode="" @click="viewMedicalImage"></image>
|
|
<view class="upload-del" @click="delMedicalImage">
|
|
<view class="upload-del" @click="delMedicalImage">
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
</view>
|
|
</view>
|
|
@@ -144,7 +144,7 @@
|
|
<textarea class="keshi" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="department" maxlength="16"></textarea>
|
|
<textarea class="keshi" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="department" maxlength="16"></textarea>
|
|
</view>
|
|
</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 bordernone">
|
|
<view class="register-from group bordernone">
|
|
<view class="label">主营内容</view>
|
|
<view class="label">主营内容</view>
|
|
<view class="content-class">
|
|
<view class="content-class">
|
|
@@ -174,7 +174,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</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">
|
|
<view class="register-from group">
|
|
<view class="label">主营内容</view>
|
|
<view class="label">主营内容</view>
|
|
<view class="content-class">
|
|
<view class="content-class">
|
|
@@ -231,7 +231,7 @@
|
|
<view class="label">公司介绍</view>
|
|
<view class="label">公司介绍</view>
|
|
<textarea class="textarea"
|
|
<textarea class="textarea"
|
|
type="text"
|
|
type="text"
|
|
- v-model="companyPprofile"
|
|
|
|
|
|
+ v-model="profile"
|
|
placeholder="请填写公司简介,最多500字"
|
|
placeholder="请填写公司简介,最多500字"
|
|
placeholder-class="placeholder"
|
|
placeholder-class="placeholder"
|
|
maxlength="500"
|
|
maxlength="500"
|
|
@@ -270,30 +270,30 @@
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
isPreviewImage:false, //预览图片开关
|
|
isPreviewImage:false, //预览图片开关
|
|
- userID:'', //用户ID
|
|
|
|
- clubID:'', //会所ID
|
|
|
|
|
|
+ userId:'', //用户ID
|
|
|
|
+ clubId:'', //会所ID
|
|
userIdentity:'', //机构用户类型
|
|
userIdentity:'', //机构用户类型
|
|
- email:'', //邮箱
|
|
|
|
- clubName:'', //机构名称
|
|
|
|
- abbreviation:'', //机构简称
|
|
|
|
- clubContact:'', //联系人
|
|
|
|
|
|
+ contractEmail:'', //邮箱
|
|
|
|
+ name:'', //机构名称
|
|
|
|
+ shortName:'', //机构简称
|
|
|
|
+ linkMan:'', //联系人
|
|
mobile:'', //联系人手机号
|
|
mobile:'', //联系人手机号
|
|
socialCreditCode:'', //统一社会信用代码
|
|
socialCreditCode:'', //统一社会信用代码
|
|
isDisabled:true,
|
|
isDisabled:true,
|
|
isShowInput:true,
|
|
isShowInput:true,
|
|
textareaFocus:false,
|
|
textareaFocus:false,
|
|
- uploadBusinessImage:'', //营业执照图片
|
|
|
|
- uploadMentuzImage:'', //门头照图片
|
|
|
|
- uploadMedicalImage:'', //资质照图片
|
|
|
|
|
|
+ businessLicense:'', //营业执照图片
|
|
|
|
+ shopPhoto:'', //门头照图片
|
|
|
|
+ medicalPracticeLicense:'', //资质照图片
|
|
department:'', //科室
|
|
department:'', //科室
|
|
isDepartment:false, //是否显示科室
|
|
isDepartment:false, //是否显示科室
|
|
secondClubType:'', //机构类型二级分类
|
|
secondClubType:'', //机构类型二级分类
|
|
- mainpro:'', //主营内容
|
|
|
|
|
|
+ mainProduct:'', //主营内容
|
|
clubTelePhone:'', //固定电话
|
|
clubTelePhone:'', //固定电话
|
|
clubFax:'', //传真
|
|
clubFax:'', //传真
|
|
- companyPprofile:'', //公司简介
|
|
|
|
|
|
+ profile:'', //公司简介
|
|
firstClubType:'', //机构类型
|
|
firstClubType:'', //机构类型
|
|
- isOrganizationType:0,
|
|
|
|
|
|
+ firstClubType:0,
|
|
organizationTypeText:'请选择机构类型',
|
|
organizationTypeText:'请选择机构类型',
|
|
beautyList:beautyList,
|
|
beautyList:beautyList,
|
|
mentuzCampNullList:mentuzCampNullList,
|
|
mentuzCampNullList:mentuzCampNullList,
|
|
@@ -308,14 +308,14 @@
|
|
isMainproCheck:false,
|
|
isMainproCheck:false,
|
|
addressData:{
|
|
addressData:{
|
|
address:'请选择机构所在地区',
|
|
address:'请选择机构所在地区',
|
|
- townID:'', //区ID
|
|
|
|
- cityID:'', //市ID
|
|
|
|
- provinceID:'', //省ID
|
|
|
|
|
|
+ townId:'', //区ID
|
|
|
|
+ cityId:'', //市ID
|
|
|
|
+ provinceId:'', //省ID
|
|
addressDetail: '', //地址详情
|
|
addressDetail: '', //地址详情
|
|
},
|
|
},
|
|
typename:[
|
|
typename:[
|
|
- {name:'医美',value:'1'},
|
|
|
|
- {name:'生美',value:'2'}
|
|
|
|
|
|
+ {name:'医美',value:1},
|
|
|
|
+ {name:'生美',value:2}
|
|
],
|
|
],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -332,68 +332,68 @@
|
|
},
|
|
},
|
|
organizationInfo(){
|
|
organizationInfo(){
|
|
this.$api.getStorage().then((resolve) =>{
|
|
this.$api.getStorage().then((resolve) =>{
|
|
- this.userID = resolve.userID
|
|
|
|
- this.UserService.OrganizationUpdateModifyInfo({userID:this.userID}).then(response =>{
|
|
|
|
|
|
+ this.userId = resolve.userId ? resolve.userId : 0
|
|
|
|
+ this.UserService.OrganizationUpdateModifyInfo({userId:this.userId}).then(response =>{
|
|
let organizationClub = response.data.club
|
|
let organizationClub = response.data.club
|
|
let organizationUser = response.data.user
|
|
let organizationUser = response.data.user
|
|
- this.email = organizationUser.email ? organizationUser.email :''
|
|
|
|
- this.clubID = organizationUser.clubID
|
|
|
|
|
|
+ this.contractEmail = organizationClub.contractEmail ? organizationClub.contractEmail : organizationClub.email
|
|
|
|
+ this.clubId = organizationUser.clubId
|
|
this.userIdentity = organizationUser.userIdentity
|
|
this.userIdentity = organizationUser.userIdentity
|
|
- this.clubName = organizationClub.name ? organizationClub.name : ''
|
|
|
|
- this.clubContact = organizationClub.linkMan1
|
|
|
|
|
|
+ this.name = organizationClub.name ? organizationClub.name : ''
|
|
|
|
+ this.linkMan = organizationClub.linkMan
|
|
this.mobile = organizationUser.bindMobile ? organizationUser.bindMobile : ''
|
|
this.mobile = organizationUser.bindMobile ? organizationUser.bindMobile : ''
|
|
- this.abbreviation = this.$reg.checkData(organizationClub.sname)
|
|
|
|
- if( organizationClub.provinceID == null ){
|
|
|
|
- this.addressData.provinceID = ''
|
|
|
|
|
|
+ this.shortName = this.$reg.checkData(organizationClub.shortName)
|
|
|
|
+ if( organizationClub.provinceId == null ){
|
|
|
|
+ this.addressData.provinceId = ''
|
|
}else{
|
|
}else{
|
|
- this.addressData.provinceID = organizationClub.provinceID
|
|
|
|
|
|
+ this.addressData.provinceId = organizationClub.provinceId
|
|
}
|
|
}
|
|
- if( organizationClub.cityID == null ){
|
|
|
|
- this.addressData.cityID = ''
|
|
|
|
|
|
+ if( organizationClub.cityId == null ){
|
|
|
|
+ this.addressData.cityId = ''
|
|
}else{
|
|
}else{
|
|
- this.addressData.cityID = organizationClub.cityID
|
|
|
|
|
|
+ this.addressData.cityId = organizationClub.cityId
|
|
}
|
|
}
|
|
- if( organizationClub.townID == null ){
|
|
|
|
- this.addressData.townID = ''
|
|
|
|
|
|
+ if( organizationClub.townId == null ){
|
|
|
|
+ this.addressData.townId = ''
|
|
}else{
|
|
}else{
|
|
- this.addressData.townID = organizationClub.townID
|
|
|
|
|
|
+ this.addressData.townId = organizationClub.townId
|
|
}
|
|
}
|
|
this.addressData.addressDetail = organizationClub.address ? organizationClub.address : ''
|
|
this.addressData.addressDetail = organizationClub.address ? organizationClub.address : ''
|
|
this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
|
|
this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
|
|
this.firstClubType = organizationClub.firstClubType
|
|
this.firstClubType = organizationClub.firstClubType
|
|
this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
|
|
this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
|
|
this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress : ''
|
|
this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress : ''
|
|
- this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
|
|
|
|
- this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
|
|
|
|
- this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
|
|
|
|
|
|
+ this.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
|
|
|
|
+ this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
|
|
|
|
+ this.shopPhoto = this.$reg.checkData(organizationClub.headpic)
|
|
this.department = organizationClub.department
|
|
this.department = organizationClub.department
|
|
this.clubTelePhone = this.$reg.checkData(organizationClub.contractPhone)
|
|
this.clubTelePhone = this.$reg.checkData(organizationClub.contractPhone)
|
|
this.clubFax = this.$reg.checkData(organizationClub.fax)
|
|
this.clubFax = this.$reg.checkData(organizationClub.fax)
|
|
- this.companyPprofile = this.$reg.checkData(organizationClub.info)
|
|
|
|
|
|
+ this.profile = this.$reg.checkData(organizationClub.profile)
|
|
//机构类型&&主营项目
|
|
//机构类型&&主营项目
|
|
switch(this.firstClubType){
|
|
switch(this.firstClubType){
|
|
- case '1':
|
|
|
|
|
|
+ case 1:
|
|
this.organizationTypeText = '医美'
|
|
this.organizationTypeText = '医美'
|
|
- this.isOrganizationType = 1
|
|
|
|
|
|
+ this.firstClubType = 1
|
|
break;
|
|
break;
|
|
- case '2':
|
|
|
|
|
|
+ case 2:
|
|
this.organizationTypeText = '生美'
|
|
this.organizationTypeText = '生美'
|
|
- this.isOrganizationType = 2
|
|
|
|
|
|
+ this.firstClubType = 2
|
|
break;
|
|
break;
|
|
case null:
|
|
case null:
|
|
this.organizationTypeText = '请选择机构类型'
|
|
this.organizationTypeText = '请选择机构类型'
|
|
- this.isOrganizationType = 0
|
|
|
|
|
|
+ this.firstClubType = 0
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
|
|
|
|
|
|
+ if(organizationClub.mainProduct == "" || organizationClub.mainProduct == null){
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
this.medicaCampList = this.medicaCampNullList
|
|
this.medicaCampList = this.medicaCampNullList
|
|
}else{
|
|
}else{
|
|
- if(this.firstClubType == '1'){
|
|
|
|
- this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
|
|
|
+ if(this.firstClubType == 1){
|
|
|
|
+ this.mentuzCampList = this.setNewMainpro(organizationClub.mainProduct)
|
|
this.medicaCampList = this.medicaCampNullList
|
|
this.medicaCampList = this.medicaCampNullList
|
|
}else{
|
|
}else{
|
|
- this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
|
|
|
+ this.medicaCampList = this.setNewMainpro(organizationClub.mainProduct)
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -412,17 +412,17 @@
|
|
let params = {}
|
|
let params = {}
|
|
if(this.userIdentity === 4){
|
|
if(this.userIdentity === 4){
|
|
params = {
|
|
params = {
|
|
- userID:this.userID,
|
|
|
|
- clubID:this.clubID, //会所ID
|
|
|
|
- linkMan1:this.clubContact,
|
|
|
|
|
|
+ userId:this.userId,
|
|
|
|
+ clubId:this.clubId, //会所ID
|
|
|
|
+ linkMan:this.linkMan,
|
|
fax:this.clubFax,
|
|
fax:this.clubFax,
|
|
contractPhone:this.clubTelePhone,
|
|
contractPhone:this.clubTelePhone,
|
|
- info : this.companyPprofile,
|
|
|
|
|
|
+ info : this.profile,
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
if(!this.isMainproCheck){
|
|
if(!this.isMainproCheck){
|
|
let mainproList = []
|
|
let mainproList = []
|
|
- if(this.firstClubType == '1'){
|
|
|
|
|
|
+ if(this.firstClubType == 1){
|
|
this.mentuzCampList.forEach(item =>{
|
|
this.mentuzCampList.forEach(item =>{
|
|
mainproList.push(item.name)
|
|
mainproList.push(item.name)
|
|
})
|
|
})
|
|
@@ -431,30 +431,30 @@
|
|
mainproList.push(item.name)
|
|
mainproList.push(item.name)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- this.mainpro = mainproList.join('/')
|
|
|
|
|
|
+ this.mainProduct = mainproList.join('/')
|
|
}
|
|
}
|
|
params = {
|
|
params = {
|
|
- userID:this.userID,
|
|
|
|
- clubID:this.clubID, //会所ID
|
|
|
|
- name:this.clubName,
|
|
|
|
- linkMan1:this.clubContact,
|
|
|
|
- sname:this.abbreviation,
|
|
|
|
- contractEmail1:this.email,
|
|
|
|
- provinceID:this.addressData.provinceID,
|
|
|
|
- cityID:this.addressData.cityID,
|
|
|
|
- townID:this.addressData.townID,
|
|
|
|
|
|
+ userId:this.userId,
|
|
|
|
+ clubId:this.clubId, //会所ID
|
|
|
|
+ name:this.name,
|
|
|
|
+ linkMan:this.linkMan,
|
|
|
|
+ shortName:this.shortName,
|
|
|
|
+ contractEmail:this.contractEmail,
|
|
|
|
+ provinceId:this.addressData.provinceId,
|
|
|
|
+ cityId:this.addressData.cityId,
|
|
|
|
+ townId:this.addressData.townId,
|
|
address:this.addressData.addressDetail,
|
|
address:this.addressData.addressDetail,
|
|
socialCreditCode:this.socialCreditCode,
|
|
socialCreditCode:this.socialCreditCode,
|
|
- businessLicenseImage:this.uploadBusinessImage,
|
|
|
|
- headpic:this.uploadMentuzImage,
|
|
|
|
- firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
|
|
|
|
|
|
+ businessLicense:this.businessLicense,
|
|
|
|
+ shopPhoto:this.shopPhoto,
|
|
|
|
+ firstClubType:this.firstClubType, //机构类型分类 医美:0和生美:1
|
|
secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
department:this.department, //科室
|
|
department:this.department, //科室
|
|
- medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
|
|
|
|
- mainpro:this.mainpro,
|
|
|
|
|
|
+ medicalPracticeLicense:this.medicalPracticeLicense,//资质图片
|
|
|
|
+ mainProduct:this.mainProduct,
|
|
fax:this.clubFax,
|
|
fax:this.clubFax,
|
|
contractPhone:this.clubTelePhone,
|
|
contractPhone:this.clubTelePhone,
|
|
- info : this.companyPprofile
|
|
|
|
|
|
+ profile : this.profile
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.UserService.OrganizationUpdate(params).then(response =>{
|
|
this.UserService.OrganizationUpdate(params).then(response =>{
|
|
@@ -473,9 +473,9 @@
|
|
},
|
|
},
|
|
onConfirm(e) {
|
|
onConfirm(e) {
|
|
this.addressData.address = e.name;
|
|
this.addressData.address = e.name;
|
|
- this.addressData.townID = e.townCode;
|
|
|
|
- this.addressData.cityID = e.cityCode;
|
|
|
|
- this.addressData.provinceID = e.provinceCode;
|
|
|
|
|
|
+ this.addressData.townId = e.townCode;
|
|
|
|
+ this.addressData.cityId = e.cityCode;
|
|
|
|
+ this.addressData.provinceId = e.provinceCode;
|
|
},
|
|
},
|
|
onTextareaInput(e){//文本框获取焦点
|
|
onTextareaInput(e){//文本框获取焦点
|
|
this.addressData.addressDetail = e.detail.value;
|
|
this.addressData.addressDetail = e.detail.value;
|
|
@@ -489,31 +489,31 @@
|
|
this.textareaFocus = false
|
|
this.textareaFocus = false
|
|
},
|
|
},
|
|
onTextareaInputInfo(e){
|
|
onTextareaInputInfo(e){
|
|
- this.companyPprofile = e.detail.value;
|
|
|
|
|
|
+ this.profile = e.detail.value;
|
|
},
|
|
},
|
|
chooseBusinessImage() {//营业执照图片上传
|
|
chooseBusinessImage() {//营业执照图片上传
|
|
uploadFileImage().then(res =>{
|
|
uploadFileImage().then(res =>{
|
|
- this.uploadBusinessImage = JSON.parse(res.data).data
|
|
|
|
|
|
+ this.businessLicense = JSON.parse(res.data).data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
chooseMentuzImage() {//门头照图片上传
|
|
chooseMentuzImage() {//门头照图片上传
|
|
uploadFileImage().then(res =>{
|
|
uploadFileImage().then(res =>{
|
|
- this.uploadMentuzImage = JSON.parse(res.data).data
|
|
|
|
|
|
+ this.shopPhoto = JSON.parse(res.data).data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
chooseMedicalImage() {//资质照图片上传
|
|
chooseMedicalImage() {//资质照图片上传
|
|
uploadFileImage().then(res =>{
|
|
uploadFileImage().then(res =>{
|
|
- this.uploadMedicalImage = JSON.parse(res.data).data
|
|
|
|
|
|
+ this.medicalPracticeLicense = JSON.parse(res.data).data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
viewBusinessImage(e) {
|
|
viewBusinessImage(e) {
|
|
- this.myPreviewImageFn(this.uploadBusinessImage)
|
|
|
|
|
|
+ this.myPreviewImageFn(this.businessLicense)
|
|
},
|
|
},
|
|
viewMentuzImage(e) {
|
|
viewMentuzImage(e) {
|
|
- this.myPreviewImageFn(this.uploadMentuzImage)
|
|
|
|
|
|
+ this.myPreviewImageFn(this.shopPhoto)
|
|
},
|
|
},
|
|
viewMedicalImage(e) {
|
|
viewMedicalImage(e) {
|
|
- this.myPreviewImageFn(this.uploadMedicalImage)
|
|
|
|
|
|
+ this.myPreviewImageFn(this.medicalPracticeLicense)
|
|
},
|
|
},
|
|
myPreviewImageFn(url){
|
|
myPreviewImageFn(url){
|
|
this.isPreviewImage = true
|
|
this.isPreviewImage = true
|
|
@@ -526,27 +526,27 @@
|
|
},
|
|
},
|
|
delBusinessImage(){
|
|
delBusinessImage(){
|
|
this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
|
|
this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
|
|
- this.uploadBusinessImage = ''
|
|
|
|
|
|
+ this.businessLicense = ''
|
|
})
|
|
})
|
|
},
|
|
},
|
|
delMentuzImage(){
|
|
delMentuzImage(){
|
|
this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
|
|
this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
|
|
- this.uploadMentuzImage = ''
|
|
|
|
|
|
+ this.shopPhoto = ''
|
|
})
|
|
})
|
|
},
|
|
},
|
|
delMedicalImage(){
|
|
delMedicalImage(){
|
|
this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
|
|
this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
|
|
- this.uploadMedicalImage = ''
|
|
|
|
|
|
+ this.medicalPracticeLicense = ''
|
|
})
|
|
})
|
|
},
|
|
},
|
|
bindPickerChange(e) {
|
|
bindPickerChange(e) {
|
|
- this.isOrganizationType = e.target.value;
|
|
|
|
|
|
+ this.firstClubType = e.target.value;
|
|
// let self = this
|
|
// let self = this
|
|
// uni.showActionSheet({
|
|
// uni.showActionSheet({
|
|
// title:'标题',
|
|
// title:'标题',
|
|
// itemList: ['医美', '生美'],
|
|
// itemList: ['医美', '生美'],
|
|
// success: (e) => {
|
|
// success: (e) => {
|
|
- // self.isOrganizationType = e.tapIndex+1
|
|
|
|
|
|
+ // self.firstClubType = e.tapIndex+1
|
|
// switch(e.tapIndex){
|
|
// switch(e.tapIndex){
|
|
// case 0:
|
|
// case 0:
|
|
// this.organizationTypeText = '医美'
|
|
// this.organizationTypeText = '医美'
|
|
@@ -561,7 +561,7 @@
|
|
},
|
|
},
|
|
bindPickerChange2(e) {
|
|
bindPickerChange2(e) {
|
|
this.typtIndex = e.target.value
|
|
this.typtIndex = e.target.value
|
|
- this.isOrganizationType = e.target.value
|
|
|
|
|
|
+ this.firstClubType = e.target.value
|
|
},
|
|
},
|
|
radioChange(item) {
|
|
radioChange(item) {
|
|
this.secondClubType =item.value;
|
|
this.secondClubType =item.value;
|
|
@@ -620,7 +620,7 @@
|
|
if(this.customItemValue==''){
|
|
if(this.customItemValue==''){
|
|
this.$util.msg('请输入自定义项目',2000);
|
|
this.$util.msg('请输入自定义项目',2000);
|
|
}else{
|
|
}else{
|
|
- if(this.isOrganizationType == 1){
|
|
|
|
|
|
+ if(this.firstClubType == 1){
|
|
let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
|
|
let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
|
|
if(this.checkedArray(this.customItemValue,this.mentuzCampList)){
|
|
if(this.checkedArray(this.customItemValue,this.mentuzCampList)){
|
|
this.$util.msg('主营内容已存在!',2000)
|
|
this.$util.msg('主营内容已存在!',2000)
|