|
@@ -87,7 +87,7 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">邮箱:</view>
|
|
|
- <input class="row-input" type="text" name="input" v-model="registerEmail" placeholder="请输入您的常用邮箱" maxlength="30"/>
|
|
|
+ <input class="row-input" type="text" name="input" v-model="contractEmail" placeholder="请输入您的常用邮箱" maxlength="30"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row clearfix">
|
|
@@ -99,7 +99,7 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">机构简称:</view>
|
|
|
- <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
|
|
|
+ <input class="row-input" type="text" v-model="shortName" placeholder="请输入您的机构简称" maxlength="10"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row clearfix">
|
|
@@ -136,9 +136,9 @@
|
|
|
<view class="register-picture">
|
|
|
<view class="label">营业执照:</view>
|
|
|
<view class="upload-picture">
|
|
|
- <view class="upload-none" v-if="uploadBusinessImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
|
|
|
+ <view class="upload-none" v-if="businessLicense === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
|
|
|
<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">
|
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
|
</view>
|
|
@@ -148,9 +148,9 @@
|
|
|
<view class="register-picture">
|
|
|
<view class="label">门头照:</view>
|
|
|
<view class="upload-picture">
|
|
|
- <view class="upload-none" v-if="uploadMentuzImage === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
|
|
|
+ <view class="upload-none" v-if="shopPhoto === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
|
|
|
<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">
|
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
|
</view>
|
|
@@ -185,9 +185,9 @@
|
|
|
<view class="register-picture zz">
|
|
|
<view class="label zz">医疗执业许可证:</view>
|
|
|
<view class="upload-picture">
|
|
|
- <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
|
|
|
+ <view class="upload-none" v-if="medicalPracticeLicense === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
|
|
|
<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">
|
|
|
<text class='iconfont icon-shanchu1'></text>
|
|
|
</view>
|
|
@@ -290,13 +290,13 @@ import { mapMutations } from 'vuex';
|
|
|
tabCurrentIndex:3,
|
|
|
clubStatus:'', //审核状态
|
|
|
isPreviewImage:false, //预览图片开关
|
|
|
- userID:'', //用户ID
|
|
|
- clubID:'', //会所ID
|
|
|
+ userId:'', //用户ID
|
|
|
+ clubId:'', //会所ID
|
|
|
clubContact:'', //联系人姓名
|
|
|
mobile:'', //联系人手机号
|
|
|
- registerEmail:'', //邮箱
|
|
|
+ contractEmail:'', //邮箱
|
|
|
clubName:'', //机构名称
|
|
|
- abbreviation:'', //机构简称
|
|
|
+ shortName:'', //机构简称
|
|
|
socialCreditCode:'', //统一社会信用代码
|
|
|
isDisabled:true,
|
|
|
isShowInput:true,
|
|
@@ -304,17 +304,17 @@ import { mapMutations } from 'vuex';
|
|
|
isUpgrade:false,
|
|
|
isShowUpgrade:false,
|
|
|
isDownUpgrade:true,
|
|
|
- uploadBusinessImage:'', //营业执照图片
|
|
|
- uploadMentuzImage:'', //门头照图片
|
|
|
- uploadMedicalImage:'', //资质照图片
|
|
|
+ businessLicense:'', //营业执照图片
|
|
|
+ shopPhoto:'', //门头照图片
|
|
|
+ medicalPracticeLicense:'', //资质照图片
|
|
|
department:'', //科室
|
|
|
isDepartment:false, //是否显示科室
|
|
|
- secondClubType:'', //机构类型二级分类
|
|
|
- mainpro:'', //主营内容
|
|
|
+ secondClubType:null, //机构类型二级分类
|
|
|
+ mainProduct:'', //主营内容
|
|
|
clubTelePhone:'', //固定电话
|
|
|
clubFax:'', //传真
|
|
|
companyPprofile:'', //公司简介
|
|
|
- firstClubType:'', //机构类型
|
|
|
+ firstClubType:null, //机构类型
|
|
|
isOrganizationType:0,
|
|
|
organizationTypeText:'请选择机构类型',
|
|
|
beautyList:beautyList,//医美分类
|
|
@@ -330,16 +330,16 @@ import { mapMutations } from 'vuex';
|
|
|
isMainproCheck:false,
|
|
|
addressData:{
|
|
|
address:'请选择机构所在地区',
|
|
|
- townID:'', //区ID
|
|
|
- cityID:'', //市ID
|
|
|
- provinceID:'', //省ID
|
|
|
+ townId:'', //区ID
|
|
|
+ cityId:'', //市ID
|
|
|
+ provinceId:'', //省ID
|
|
|
addressDetail: '', //地址详情
|
|
|
},
|
|
|
registerBtnText:'确定'
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- this.userID = option.userID
|
|
|
+ this.userId = option.userID
|
|
|
this.organizationInfo()
|
|
|
},
|
|
|
methods:{
|
|
@@ -351,7 +351,7 @@ import { mapMutations } from 'vuex';
|
|
|
})
|
|
|
},
|
|
|
organizationInfo(){
|
|
|
- this.UserService.OrganizationUpdateModifyInfo({userID:this.userID}).then(response =>{
|
|
|
+ this.UserService.OrganizationUpdateModifyInfo({userId:this.userId}).then(response =>{
|
|
|
let organizationClub = response.data.club
|
|
|
let organizationUser = response.data.user
|
|
|
this.clubStatus = organizationClub.status
|
|
@@ -363,46 +363,46 @@ import { mapMutations } from 'vuex';
|
|
|
if(organizationUser.auditNoteList!=null){
|
|
|
this.errorList =organizationUser.auditNoteList
|
|
|
}
|
|
|
- this.clubContact = organizationClub.linkMan1
|
|
|
+ this.clubContact = organizationClub.linkMan
|
|
|
this.mobile = organizationUser.bindMobile
|
|
|
- this.registerEmail = organizationUser.email
|
|
|
- this.clubID = organizationUser.clubID
|
|
|
+ this.contractEmail = organizationClub.contractEmail
|
|
|
+ this.clubId = organizationUser.clubId
|
|
|
this.clubName = this.$reg.checkData(organizationClub.name)
|
|
|
- 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{
|
|
|
- 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{
|
|
|
- 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{
|
|
|
- this.addressData.townID = organizationClub.townID
|
|
|
+ this.addressData.townId = organizationClub.townId
|
|
|
}
|
|
|
this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress:'请选择机构所在地区'
|
|
|
this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
|
|
|
this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
|
|
|
this.firstClubType = organizationClub.firstClubType
|
|
|
this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
|
|
|
- this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
|
|
|
- this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
|
|
|
- this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
|
|
|
+ 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)
|
|
|
this.clubTelePhone = this.$reg.checkData(organizationClub.contractPhone)
|
|
|
this.clubFax = this.$reg.checkData(organizationClub.fax)
|
|
|
- this.companyPprofile = this.$reg.checkData(organizationClub.info)
|
|
|
+ this.companyPprofile = this.$reg.checkData(organizationClub.profile)
|
|
|
//机构类型&&主营项目
|
|
|
switch(this.firstClubType){
|
|
|
- case '1':
|
|
|
+ case 1:
|
|
|
this.organizationTypeText = '医美'
|
|
|
this.isOrganizationType = 1
|
|
|
break;
|
|
|
- case '2':
|
|
|
+ case 2:
|
|
|
this.organizationTypeText = '生美'
|
|
|
this.isOrganizationType = 2
|
|
|
break;
|
|
@@ -411,24 +411,24 @@ import { mapMutations } from 'vuex';
|
|
|
this.isOrganizationType = 0
|
|
|
break;
|
|
|
}
|
|
|
- if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
|
|
|
+ if(organizationClub.mainProduct == "" || organizationClub.mainProduct == null){
|
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
|
this.medicaCampList = this.medicaCampNullList
|
|
|
}else{
|
|
|
if(this.firstClubType == '1'){
|
|
|
- this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
+ this.mentuzCampList = this.setNewMainpro(organizationClub.mainProduct)
|
|
|
this.medicaCampList = this.medicaCampNullList
|
|
|
}else{
|
|
|
- this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
+ this.medicaCampList = this.setNewMainpro(organizationClub.mainProduct)
|
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
|
}
|
|
|
- this.mainpro = organizationClub.mainpro;
|
|
|
+ this.mainProduct = organizationClub.mainProduct;
|
|
|
}
|
|
|
//机构类型
|
|
|
switch(this.secondClubType){
|
|
|
- case '1':this.current = 0;break;
|
|
|
- case '2':this.current = 1;this.isDepartment=true;break;
|
|
|
- case '3':this.current = 2;this.isDepartment=true;break;
|
|
|
+ case 1:this.current = 0;break;
|
|
|
+ case 2:this.current = 1;this.isDepartment=true;break;
|
|
|
+ case 3:this.current = 2;this.isDepartment=true;break;
|
|
|
}
|
|
|
}).catch(error =>{
|
|
|
this.$util.msg(error.msg,2000)
|
|
@@ -441,13 +441,17 @@ import { mapMutations } from 'vuex';
|
|
|
if(this.isUpgrade){
|
|
|
this.clubUpgradeApi()
|
|
|
}else{
|
|
|
+ if( this.clubContact == ''){
|
|
|
+ this.$util.msg('请输入联系人姓名',2000);
|
|
|
+ return
|
|
|
+ }
|
|
|
let params = {
|
|
|
- userID:this.userID,
|
|
|
- clubID:this.clubID, //会所ID
|
|
|
- linkMan1:this.clubContact,
|
|
|
+ userId:this.userId,
|
|
|
+ clubId:this.clubId, //会所ID
|
|
|
+ linkMan:this.clubContact,
|
|
|
fax:this.clubFax,
|
|
|
contractPhone:this.clubTelePhone,
|
|
|
- info : this.companyPprofile,
|
|
|
+ profile : this.companyPprofile,
|
|
|
}
|
|
|
this.UserService.OrganizationUpdate(params).then(response =>{
|
|
|
this.$util.msg('修改成功',2000,true,'success')
|
|
@@ -462,7 +466,7 @@ import { mapMutations } from 'vuex';
|
|
|
clubUpgradeApi(){
|
|
|
if(this.isMainproCheck){
|
|
|
let mainproList = []
|
|
|
- if(this.firstClubType == '1'){
|
|
|
+ if(this.firstClubType == 1){
|
|
|
this.mentuzCampList.forEach(item =>{
|
|
|
mainproList.push(item.name)
|
|
|
})
|
|
@@ -471,14 +475,14 @@ import { mapMutations } from 'vuex';
|
|
|
mainproList.push(item.name)
|
|
|
})
|
|
|
}
|
|
|
- this.mainpro = mainproList.join('/')
|
|
|
+ this.mainProduct = mainproList.join('/')
|
|
|
}
|
|
|
- console.log(this.mainpro)
|
|
|
- if( this.registerEmail == ''){
|
|
|
+ console.log(this.mainProduct)
|
|
|
+ if( this.contractEmail == ''){
|
|
|
this.$util.msg('请输入邮箱地址',2000);
|
|
|
return
|
|
|
}
|
|
|
- if( !this.$reg.isEmail(this.registerEmail)){
|
|
|
+ if( !this.$reg.isEmail(this.contractEmail)){
|
|
|
this.$util.msg('请输入正确的邮箱地址',2000);
|
|
|
return
|
|
|
}
|
|
@@ -486,7 +490,7 @@ import { mapMutations } from 'vuex';
|
|
|
this.$util.msg('请输入机构名称',2000);
|
|
|
return
|
|
|
}
|
|
|
- if( this.addressData.townID == ''){
|
|
|
+ if( this.addressData.townId == ''){
|
|
|
this.$util.msg('请选择机构地址',2000);
|
|
|
return
|
|
|
}
|
|
@@ -494,39 +498,39 @@ import { mapMutations } from 'vuex';
|
|
|
this.$util.msg('请填写机构详细地址',2000);
|
|
|
return
|
|
|
}
|
|
|
- if( this.uploadBusinessImage == ''){
|
|
|
+ if( this.businessLicense == ''){
|
|
|
this.$util.msg('请上传您的营业执照',2000);
|
|
|
return
|
|
|
}
|
|
|
console.log(this.isOrganizationType)
|
|
|
if(this.isOrganizationType!=0){
|
|
|
- if(this.mainpro == ''){
|
|
|
+ if(this.mainProduct == ''){
|
|
|
this.$util.msg('请选择住机构主营内容',2000);
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
let params = {
|
|
|
- userID:this.userID,
|
|
|
- clubID:this.clubID, //会所ID
|
|
|
- linkMan1:this.clubContact,
|
|
|
- contractEmail1:this.registerEmail,
|
|
|
+ userId:this.userId,
|
|
|
+ clubId:this.clubId, //会所ID
|
|
|
+ linkMan:this.clubContact,
|
|
|
+ contractEmail:this.contractEmail,
|
|
|
name:this.clubName,
|
|
|
- sname:this.abbreviation,
|
|
|
- provinceID:this.addressData.provinceID,
|
|
|
- cityID:this.addressData.cityID,
|
|
|
- townID:this.addressData.townID,
|
|
|
+ shortName:this.shortName,
|
|
|
+ provinceId:this.addressData.provinceId,
|
|
|
+ cityId:this.addressData.cityId,
|
|
|
+ townId:this.addressData.townId,
|
|
|
address:this.addressData.addressDetail,
|
|
|
socialCreditCode:this.socialCreditCode,
|
|
|
- businessLicenseImage:this.uploadBusinessImage,
|
|
|
- headpic:this.uploadMentuzImage,
|
|
|
+ businessLicense:this.businessLicense,
|
|
|
+ shopPhoto:this.shopPhoto,
|
|
|
firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
|
|
|
secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
|
department:this.department, //科室
|
|
|
- medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
|
|
|
- mainpro:this.mainpro,
|
|
|
+ medicalPracticeLicense:this.medicalPracticeLicense,//资质图片
|
|
|
+ mainProduct:this.mainProduct,
|
|
|
fax:this.clubFax,
|
|
|
contractPhone:this.clubTelePhone,
|
|
|
- info : this.companyPprofile,
|
|
|
+ profile : this.companyPprofile,
|
|
|
}
|
|
|
this.UserService.OrganizationRegister(params).then(response =>{
|
|
|
this.$util.msg('您的升级申请已提交审核',2000);
|
|
@@ -544,9 +548,9 @@ import { mapMutations } from 'vuex';
|
|
|
},
|
|
|
onConfirm(e) {
|
|
|
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){
|
|
|
this.addressData.addressDetail = e.detail.value;
|
|
@@ -561,27 +565,27 @@ import { mapMutations } from 'vuex';
|
|
|
},
|
|
|
chooseBusinessImage() {//营业执照图片上传
|
|
|
uploadFileImage().then(res =>{
|
|
|
- this.uploadBusinessImage = JSON.parse(res.data).data
|
|
|
+ this.businessLicense = JSON.parse(res.data).data
|
|
|
})
|
|
|
},
|
|
|
chooseMentuzImage() {//门头照图片上传
|
|
|
uploadFileImage().then(res =>{
|
|
|
- this.uploadMentuzImage = JSON.parse(res.data).data
|
|
|
+ this.shopPhoto = JSON.parse(res.data).data
|
|
|
})
|
|
|
},
|
|
|
chooseMedicalImage() {//资质照图片上传
|
|
|
uploadFileImage().then(res =>{
|
|
|
- this.uploadMedicalImage = JSON.parse(res.data).data
|
|
|
+ this.medicalPracticeLicense = JSON.parse(res.data).data
|
|
|
})
|
|
|
},
|
|
|
viewBusinessImage(e) {
|
|
|
- this.myPreviewImageFn(this.uploadBusinessImage)
|
|
|
+ this.myPreviewImageFn(this.businessLicense)
|
|
|
},
|
|
|
viewMentuzImage(e) {
|
|
|
- this.myPreviewImageFn(this.uploadMentuzImage)
|
|
|
+ this.myPreviewImageFn(this.shopPhoto)
|
|
|
},
|
|
|
viewMedicalImage(e) {
|
|
|
- this.myPreviewImageFn(this.uploadMedicalImage)
|
|
|
+ this.myPreviewImageFn(this.medicalPracticeLicense)
|
|
|
},
|
|
|
myPreviewImageFn(url){
|
|
|
this.isPreviewImage = true
|
|
@@ -594,17 +598,17 @@ import { mapMutations } from 'vuex';
|
|
|
},
|
|
|
delBusinessImage(){
|
|
|
this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
|
|
|
- this.uploadBusinessImage = ''
|
|
|
+ this.businessLicense = ''
|
|
|
})
|
|
|
},
|
|
|
delMentuzImage(){
|
|
|
this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
|
|
|
- this.uploadMentuzImage = ''
|
|
|
+ this.shopPhoto = ''
|
|
|
})
|
|
|
},
|
|
|
delMedicalImage(){
|
|
|
this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
|
|
|
- this.uploadMedicalImage = ''
|
|
|
+ this.medicalPracticeLicense = ''
|
|
|
})
|
|
|
},
|
|
|
bindPickerChange() {
|
|
@@ -632,7 +636,7 @@ import { mapMutations } from 'vuex';
|
|
|
},
|
|
|
radioChange(e) {
|
|
|
this.secondClubType = e.target.value;
|
|
|
- if( this.secondClubType == '2' || this.secondClubType == '3'){
|
|
|
+ if( this.secondClubType == 2 || this.secondClubType == 3){
|
|
|
this.isDepartment = true
|
|
|
}else{
|
|
|
this.isDepartment = false
|
|
@@ -646,11 +650,11 @@ import { mapMutations } from 'vuex';
|
|
|
},
|
|
|
chooseMaleLike(e){
|
|
|
this.isMainproCheck = true
|
|
|
- this.mainpro = this.checkLikes(e,this.mentuzCampList)
|
|
|
+ this.mainProduct = this.checkLikes(e,this.mentuzCampList)
|
|
|
},
|
|
|
chooseMaleLikes(e){
|
|
|
this.isMainproCheck = true
|
|
|
- this.mainpro = this.checkLikes(e,this.medicaCampList)
|
|
|
+ this.mainProduct = this.checkLikes(e,this.medicaCampList)
|
|
|
},
|
|
|
checkLikes(e,list){
|
|
|
let values = e.detail.value
|