|
@@ -56,7 +56,7 @@
|
|
|
placeholder-class="placeholder"
|
|
|
maxlength="25"
|
|
|
@input="onTextareaInput"
|
|
|
- @focus="textareaFocus"
|
|
|
+ :focus="textareaFocus"
|
|
|
@blur="hideTextareaFocus"
|
|
|
:class="isShowInput ? '':''"
|
|
|
/>
|
|
@@ -152,14 +152,6 @@
|
|
|
</checkbox-group>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="register-from group btn">
|
|
|
- <view class="content-class btn">
|
|
|
- <view class="item" @click="showAustomItem">
|
|
|
- <text class="item-text">其他</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- v-show="isShowAustomItem"-->
|
|
|
<view class="register-from group btn" style="height: auto;border: 0;">
|
|
|
<view class="content-class btn">
|
|
|
<input class="row-input other" type="text" v-model="customItemValue" placeholder-style="placeholder" placeholder="请输入自定义项目" maxlength="5"/>
|
|
@@ -182,17 +174,9 @@
|
|
|
</checkbox-group>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="register-from group btn" style="height: auto;border: 0;">
|
|
|
- <view class="content-class btn">
|
|
|
- <view class="item" @click="showAustomItem">
|
|
|
- <text class="item-text">其他</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- v-show="isShowAustomItem"-->
|
|
|
<view class="register-from group btn" style="height: auto;border: 0;">
|
|
|
<view class="content-class btn">
|
|
|
- <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" placeholder-style="placeholder" maxlength="5"/>
|
|
|
+ <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义主营内容" placeholder-style="placeholder" maxlength="5"/>
|
|
|
<button type="default"
|
|
|
class="confirm-btn"
|
|
|
@click.stop="addCustomItem"
|
|
@@ -219,7 +203,6 @@
|
|
|
import { mapMutations } from 'vuex';
|
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
|
import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
|
|
|
- import { organizationUpdateModifyInfo , organizationRegister } from "@/api/use.js"
|
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
|
export default{
|
|
|
components:{
|
|
@@ -286,7 +269,7 @@
|
|
|
onLoad(option) {
|
|
|
this.clubStatus = option.clubStatus
|
|
|
console.log(this.clubStatus)
|
|
|
- // this.organizationInfo()
|
|
|
+ this.organizationInfo()
|
|
|
},
|
|
|
methods:{
|
|
|
hanldNavigateBack(){
|
|
@@ -299,7 +282,7 @@
|
|
|
organizationInfo(){
|
|
|
this.$api.getStorage().then((resolve) =>{
|
|
|
this.userID = resolve.userID
|
|
|
- organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
|
|
|
+ this.UserService.OrganizationUpdateModifyInfo({userID:this.userID}).then(response =>{
|
|
|
let organizationClub = response.data.club
|
|
|
let organizationUser = response.data.user
|
|
|
if(organizationUser.auditNoteList!=null){
|
|
@@ -309,21 +292,22 @@
|
|
|
this.clubID = organizationUser.clubID
|
|
|
this.clubName = this.$reg.checkData(organizationClub.name)
|
|
|
this.abbreviation = this.$reg.checkData(organizationClub.sname)
|
|
|
- if( organizationClub.provinceID == null ){
|
|
|
+ if( organizationClub.provinceID){
|
|
|
this.addressData.provinceID = ''
|
|
|
}else{
|
|
|
this.addressData.provinceID = organizationClub.provinceID
|
|
|
}
|
|
|
- if( organizationClub.cityID == null ){
|
|
|
+ if( organizationClub.cityID){
|
|
|
this.addressData.cityID = ''
|
|
|
}else{
|
|
|
this.addressData.cityID = organizationClub.cityID
|
|
|
}
|
|
|
- if( organizationClub.townID == null ){
|
|
|
+ if( organizationClub.townID){
|
|
|
this.addressData.townID = ''
|
|
|
}else{
|
|
|
this.addressData.townID = organizationClub.townID
|
|
|
}
|
|
|
+ console.log('66666666666666')
|
|
|
this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress:'请选择机构所在地区'
|
|
|
this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
|
|
|
this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
|
|
@@ -332,7 +316,7 @@
|
|
|
this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
|
|
|
this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
|
|
|
this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
|
|
|
- this.department = this.$reg.checkData(organizationClub.department)
|
|
|
+ this.department = this.$reg.checkData(organizationClub.department)
|
|
|
//机构类型&&主营项目
|
|
|
switch(this.firstClubType){
|
|
|
case '1':
|
|
@@ -351,15 +335,17 @@
|
|
|
if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
|
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
|
this.medicaCampList = this.medicaCampNullList
|
|
|
+ console.log(this.medicaCampList)
|
|
|
+ console.log(this.mentuzCampList)
|
|
|
}else{
|
|
|
if(this.firstClubType == '1'){
|
|
|
this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
- this.medicaCampList = this.medicaCampNullList
|
|
|
-
|
|
|
+ this.medicaCampList = this.medicaCampNullList
|
|
|
}else{
|
|
|
this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
|
}
|
|
|
+ this.mainpro = organizationClub.mainpro;
|
|
|
}
|
|
|
//机构类型
|
|
|
switch(this.secondClubType){
|
|
@@ -435,7 +421,7 @@
|
|
|
medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
|
|
|
mainpro:this.mainpro,
|
|
|
}
|
|
|
- organizationRegister(params).then(response =>{
|
|
|
+ this.UserService.OrganizationRegister(params).then(response =>{
|
|
|
this.$util.msg('您的升级申请已提交审核',2000);
|
|
|
setTimeout(()=>{
|
|
|
uni.navigateBack();
|
|
@@ -592,7 +578,7 @@
|
|
|
},
|
|
|
addCustomItem(){
|
|
|
if(this.customItemValue==''){
|
|
|
- this.$util.msg('请输入自定义项目',2000);
|
|
|
+ this.$util.msg('请输入自定义主营内容',2000);
|
|
|
}else{
|
|
|
if(this.isOrganizationType == 1){
|
|
|
let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
|