|
@@ -179,7 +179,7 @@
|
|
|
<view class="content-class">
|
|
|
<checkbox-group @change="chooseMaleLikes">
|
|
|
<label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
|
|
|
- <checkbox :value="item.value"></checkbox>
|
|
|
+ <checkbox :value="item.value" :checked="item.checked"></checkbox>
|
|
|
<text class="item-text">{{item.name}}</text>
|
|
|
</label>
|
|
|
</checkbox-group>
|
|
@@ -364,7 +364,7 @@
|
|
|
this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress : ''
|
|
|
this.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
|
|
|
this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
|
|
|
- this.shopPhoto = this.$reg.checkData(organizationClub.headpic)
|
|
|
+ this.shopPhoto = this.$reg.checkData(organizationClub.shopPhoto)
|
|
|
this.department = organizationClub.department
|
|
|
this.clubTelePhone = this.$reg.checkData(organizationClub.contractPhone)
|
|
|
this.clubFax = this.$reg.checkData(organizationClub.fax)
|
|
@@ -398,9 +398,9 @@
|
|
|
}
|
|
|
//机构类型
|
|
|
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)
|
|
@@ -564,7 +564,7 @@
|
|
|
},
|
|
|
radioChange(item) {
|
|
|
this.secondClubType =item.value;
|
|
|
- if( this.secondClubType == '2' || this.secondClubType == '3'){
|
|
|
+ if( this.secondClubType == 2 || this.secondClubType == 3){
|
|
|
this.isDepartment = true
|
|
|
}else{
|
|
|
this.isDepartment = false
|
|
@@ -595,6 +595,7 @@
|
|
|
this.$set(item,'checked',false)
|
|
|
}
|
|
|
})
|
|
|
+ console.log(list)
|
|
|
return arr.join('/')
|
|
|
},
|
|
|
onBlurInput(e){//
|
|
@@ -613,38 +614,38 @@
|
|
|
let _OBJ = {value:(index+1).toString(),name:item,checked:true}
|
|
|
_ARRAY.push(_OBJ)
|
|
|
})
|
|
|
+ console.log(_ARRAY)
|
|
|
return _ARRAY
|
|
|
},
|
|
|
addCustomItem(){
|
|
|
if(this.customItemValue==''){
|
|
|
this.$util.msg('请输入自定义项目',2000);
|
|
|
+ }else{
|
|
|
+ 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)
|
|
|
+ }else{
|
|
|
+ this.mentuzCampList.push(item)
|
|
|
+ }
|
|
|
}else{
|
|
|
- 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)
|
|
|
- }else{
|
|
|
- this.mentuzCampList.push(item)
|
|
|
- }
|
|
|
+ let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
|
|
|
+ if(this.checkedArray(this.customItemValue,this.medicaCampList)){
|
|
|
+ this.$util.msg('主营内容已存在!',2000)
|
|
|
}else{
|
|
|
- let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
|
|
|
- if(this.checkedArray(this.customItemValue,this.medicaCampList)){
|
|
|
- this.$util.msg('主营内容已存在!',2000)
|
|
|
- }else{
|
|
|
- this.medicaCampList.push(item)
|
|
|
- }
|
|
|
+ this.medicaCampList.push(item)
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
},
|
|
|
checkedArray(content,arr){//判断主营内容是否已存在
|
|
|
- console.log(content,arr)
|
|
|
- for(var i in arr){
|
|
|
- if(arr[i].name == content){
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
+ for(var i in arr){
|
|
|
+ if(arr[i].name == content){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
},
|
|
|
onShow() {
|
|
|
this.$api.getStorage().then((resolve) =>{
|