apply.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. <template>
  2. <view class="container register" :style="{ paddingTop: CustomBar + 'px' }">
  3. <cu-custom :navbar-data="nvabarData" @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main first clearfix" v-if="clubStatus == 92">
  5. <view class="register-row none clearfix">
  6. <view class="error-title">审核未通过原因:</view>
  7. <view class="error-main">
  8. <text class="error-item" v-for="(item, index) in errorList" :key="index"> {{ item }} </text>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="register-main first clearfix">
  13. <view class="register-row clearfix"> <text class="register-title">注册信息</text> </view>
  14. <view class="register-row clearfix">
  15. <view class="register-from">
  16. <view class="label">联系人:</view>
  17. <input
  18. class="row-input"
  19. type="text"
  20. name="input"
  21. v-model="clubContact"
  22. placeholder="请输入联系姓名"
  23. maxlength="6"
  24. />
  25. </view>
  26. </view>
  27. <view class="register-row clearfix">
  28. <view class="register-from">
  29. <view class="label">手机号:</view> <view class="row-input">{{ mobile }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="register-main clearfix">
  34. <view class="register-row"> <view class="register-title">其他信息</view> </view>
  35. <view class="register-row clearfix">
  36. <view class="register-from">
  37. <view class="label">固定电话:</view>
  38. <input
  39. class="row-input"
  40. type="text"
  41. v-model="clubTelePhone"
  42. placeholder="请填写机构的固定电话"
  43. maxlength="15"
  44. />
  45. </view>
  46. </view>
  47. <view class="register-row clearfix">
  48. <view class="register-from">
  49. <view class="label">传真:</view>
  50. <input
  51. class="row-input"
  52. type="text"
  53. v-model="clubFax"
  54. placeholder="请填写机构的传真"
  55. maxlength="15"
  56. />
  57. </view>
  58. </view>
  59. <view class="register-row text-textarea clearfix">
  60. <textarea
  61. class="textarea"
  62. type="text"
  63. v-model="companyPprofile"
  64. placeholder="请填写公司简介,最多500字"
  65. placeholder-class="placeholder"
  66. maxlength="500"
  67. @input="onTextareaInputInfo"
  68. :class="isShowInput ? '' : ''"
  69. />
  70. </view>
  71. </view>
  72. <view class="register-main clearfix" v-if="clubStatus == 90" :class="isUpgrade ? '' : 'detailed'">
  73. <view class="register-row clearfix">
  74. <view class="register-txt first"><text>您还可以填写更多信息,帮机构直接注册成为资质机构。</text></view>
  75. <view class="register-txt"><text>不过这些信息需要审核。</text></view>
  76. <view class="register-bet" @tap.stop="showUpgrade()" v-if="isDownUpgrade">
  77. <text>展开信息填写<text class="iconfont icon-xiangxiajiantou"></text></text>
  78. </view>
  79. </view>
  80. <view class="register-fiexd clearfix">
  81. <view class="register-bet" @tap.stop="hideUpgrade()" v-if="isUpgrade">
  82. <text>收起<text class="iconfont icon-xiangshangjiantou"></text></text>
  83. </view>
  84. <view class="register-row ">
  85. <view class="register-btn sub" @click.stop="organizationUpgradeInfo">{{ registerBtnText }}</view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="register-main clearfix" v-else>
  90. <view class="register-fiexd clearfix">
  91. <view class="register-row ">
  92. <view class="register-btn sub" @click.stop="organizationUpdateInfo">提交审核</view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="register-main detailed clearfix" v-if="isShowUpgrade">
  97. <view class="register-row"> <view class="register-title">升级信息</view> </view>
  98. <view class="register-row clearfix">
  99. <view class="register-from">
  100. <view class="label">邮箱:</view>
  101. <input
  102. class="row-input"
  103. type="text"
  104. name="input"
  105. v-model="contractEmail"
  106. placeholder="请输入您的常用邮箱"
  107. maxlength="30"
  108. />
  109. </view>
  110. </view>
  111. <view class="register-row clearfix">
  112. <view class="register-from">
  113. <view class="label">机构名称:</view>
  114. <input
  115. class="row-input"
  116. type="text"
  117. v-model="clubName"
  118. placeholder="请输入您的机构名称"
  119. maxlength="30"
  120. />
  121. </view>
  122. </view>
  123. <view class="register-row clearfix">
  124. <view class="register-from">
  125. <view class="label">机构简称:</view>
  126. <input
  127. class="row-input"
  128. type="text"
  129. v-model="shortName"
  130. placeholder="请输入您的机构简称"
  131. maxlength="10"
  132. />
  133. </view>
  134. </view>
  135. <view class="register-row clearfix">
  136. <view class="register-from" @click="showMulLinkageThreePicker">
  137. <view class="label">机构地址:</view>
  138. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  139. {{ addressData.address }}
  140. </text>
  141. <text class="iconfont icon-xiayibu"></text>
  142. </view>
  143. </view>
  144. <view class="register-row text-textarea clearfix">
  145. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{
  146. addressData.addressDetail ? addressData.addressDetail : '详细地址:如道路、门牌号、小区等'
  147. }}</view>
  148. <textarea
  149. v-else
  150. class="textarea"
  151. type="text"
  152. v-model="addressData.addressDetail"
  153. placeholder="详细地址:如道路、门牌号、小区等"
  154. placeholder-class="placeholder"
  155. maxlength="25"
  156. @input="onTextareaInput"
  157. @blur="hideTextareaFocus"
  158. :class="isShowInput ? '' : ''"
  159. />
  160. </view>
  161. <view class="register-row clearfix">
  162. <view class="register-from">
  163. <view class="label">营业执照编号:</view>
  164. <input
  165. class="row-input"
  166. type="text"
  167. v-model="socialCreditCode"
  168. placeholder="请填写社会统一信用代码"
  169. maxlength="18"
  170. />
  171. </view>
  172. </view>
  173. <view class="register-row clearfix">
  174. <view class="register-picture">
  175. <view class="label">营业执照:</view>
  176. <view class="upload-picture">
  177. <view class="upload-none" v-if="businessLicense === ''" @click="chooseBusinessImage"
  178. ><text class="iconfont icon-jiahao"></text
  179. ></view>
  180. <view class="upload-image" v-else>
  181. <image :src="businessLicense" mode="" @click="viewBusinessImage"></image>
  182. <view class="upload-del" @click="delBusinessImage">
  183. <text class="iconfont icon-shanchu1"></text>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. <view class="register-picture">
  189. <view class="label">门头照:</view>
  190. <view class="upload-picture">
  191. <view class="upload-none" v-if="shopPhoto === ''" @click="chooseMentuzImage"
  192. ><text class="iconfont icon-jiahao"></text
  193. ></view>
  194. <view class="upload-image" v-else>
  195. <image :src="shopPhoto" mode="" @click="viewMentuzImage"></image>
  196. <view class="upload-del" @click="delMentuzImage">
  197. <text class="iconfont icon-shanchu1"></text>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. <view class="register-row clearfix">
  204. <view class="register-from picker">
  205. <view class="label">机构类型:</view>
  206. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  207. <text class="iconfont icon-xiayibu"></text>
  208. </view>
  209. </view>
  210. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  211. <view class="register-from radio">
  212. <radio-group @change="radioChange">
  213. <label class="row-label-input" v-for="(item, index) in beautyList" :key="item.value">
  214. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616" />
  215. <view class="row-text">{{ item.name }}</view>
  216. </label>
  217. </radio-group>
  218. </view>
  219. </view>
  220. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  221. <view class="register-from radio">
  222. <radio-group @change="radioChange">
  223. <label class="row-label-input" v-for="(item, index) in beautyLists" :key="item.value">
  224. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616" />
  225. <view class="row-text">{{ item.name }}</view>
  226. </label>
  227. </radio-group>
  228. </view>
  229. </view>
  230. <view class="register-row clearfix" v-show="isOrganizationType == 1 && isDepartment">
  231. <view class="register-from">
  232. <view class="label">科室:</view>
  233. <input
  234. class="row-input keshi"
  235. type="text"
  236. v-model="department"
  237. placeholder="请填写经营的科室,至少三个,用逗号隔开"
  238. maxlength="16"
  239. />
  240. </view>
  241. </view>
  242. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  243. <view class="register-picture zz">
  244. <view class="label zz">医疗执业许可证:</view>
  245. <view class="upload-picture">
  246. <view class="upload-none" v-if="medicalPracticeLicense === ''" @click="chooseMedicalImage"
  247. ><text class="iconfont icon-jiahao"></text
  248. ></view>
  249. <view class="upload-image" v-else>
  250. <image :src="medicalPracticeLicense" mode="" @click="viewMedicalImage"></image>
  251. <view class="upload-del" @click="delMedicalImage">
  252. <text class="iconfont icon-shanchu1"></text>
  253. </view>
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  259. <view class="register-from group">
  260. <view class="label">主营内容:</view>
  261. <view class="content-class">
  262. <checkbox-group @change="chooseMaleLike">
  263. <label
  264. class="item"
  265. v-for="(item, index) in mentuzCampList"
  266. :key="index"
  267. :class="{ on: item.checked }"
  268. >
  269. <checkbox :value="item.value"></checkbox> <text class="item-text">{{ item.name }}</text>
  270. </label>
  271. </checkbox-group>
  272. </view>
  273. </view>
  274. <view class="register-from group btn">
  275. <view class="content-class btn">
  276. <view class="item" @click="showAustomItem"> <text class="item-text">其他</text> </view>
  277. </view>
  278. </view>
  279. <view class="register-from group btn" v-show="isShowAustomItem">
  280. <view class="content-class btn">
  281. <input
  282. class="row-input other"
  283. type="text"
  284. v-model="customItemValue"
  285. placeholder="请输入自定义项目"
  286. @blur="onBlurInput"
  287. maxlength="5"
  288. />
  289. <button
  290. type="default"
  291. class="confirm-btn"
  292. :class="[isDisabled === true ? 'disabled' : 'none']"
  293. :disabled="isDisabled"
  294. @click.stop="addCustomItem"
  295. >
  296. 确认添加
  297. </button>
  298. </view>
  299. </view>
  300. </view>
  301. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  302. <view class="register-from group">
  303. <view class="label">主营内容:</view>
  304. <view class="content-class">
  305. <checkbox-group @change="chooseMaleLikes">
  306. <label
  307. class="item"
  308. v-for="(item, index) in medicaCampList"
  309. :key="index"
  310. :class="{ on: item.checked }"
  311. >
  312. <checkbox :value="item.value"></checkbox> <text class="item-text">{{ item.name }}</text>
  313. </label>
  314. </checkbox-group>
  315. </view>
  316. </view>
  317. <view class="register-from group btn">
  318. <view class="content-class btn">
  319. <view class="item" @click="showAustomItem"> <text class="item-text">其他</text> </view>
  320. </view>
  321. </view>
  322. <view class="register-from group btn" v-show="isShowAustomItem">
  323. <view class="content-class btn">
  324. <input
  325. class="row-input other"
  326. type="text"
  327. v-model="customItemValue"
  328. placeholder="请输入自定义项目"
  329. @input="onBlurInput"
  330. maxlength="5"
  331. />
  332. <button
  333. type="default"
  334. class="confirm-btn"
  335. :class="[isDisabled === true ? 'disabled' : 'none']"
  336. :disabled="isDisabled"
  337. @click.stop="addCustomItem"
  338. >
  339. 确认添加
  340. </button>
  341. </view>
  342. </view>
  343. </view>
  344. <mpvue-city-picker
  345. :themeColor="themeColor"
  346. ref="mpvueCityPicker"
  347. :pickerValueDefault="cityPickerValueDefault"
  348. @onCancel="onCancel"
  349. @onConfirm="onConfirm"
  350. >
  351. </mpvue-city-picker>
  352. </view>
  353. </view>
  354. </template>
  355. <script>
  356. import { mapMutations } from 'vuex'
  357. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  358. import { beautyList, beautyLists, mentuzCampNullList, medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  359. import { uploadFileImage } from '@/services/public.js'
  360. export default {
  361. components: {
  362. mpvueCityPicker
  363. },
  364. data() {
  365. return {
  366. nvabarData: {
  367. //顶部自定义导航
  368. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  369. showSearch: 0,
  370. title: '修改资料', // 导航栏 中间的标题
  371. haveBack: true,
  372. textLeft: this.$store.state.isIphone
  373. },
  374. CustomBar: this.CustomBar, // 顶部导航栏高度
  375. errorList: [],
  376. tabCurrentIndex: 3,
  377. clubStatus: '', //审核状态
  378. isPreviewImage: false, //预览图片开关
  379. userId: '', //用户ID
  380. clubId: '', //会所ID
  381. serviceProviderId:0, //协销Id
  382. clubContact: '', //联系人姓名
  383. mobile: '', //联系人手机号
  384. contractEmail: '', //邮箱
  385. clubName: '', //机构名称
  386. shortName: '', //机构简称
  387. socialCreditCode: '', //统一社会信用代码
  388. isDisabled: true,
  389. isShowInput: true,
  390. textareaFocus: false,
  391. isUpgrade: false,
  392. isShowUpgrade: false,
  393. isDownUpgrade: true,
  394. businessLicense: '', //营业执照图片
  395. shopPhoto: '', //门头照图片
  396. medicalPracticeLicense: '', //资质照图片
  397. department: '', //科室
  398. isDepartment: false, //是否显示科室
  399. secondClubType: null, //机构类型二级分类
  400. mainProduct: '', //主营内容
  401. clubTelePhone: '', //固定电话
  402. clubFax: '', //传真
  403. companyPprofile: '', //公司简介
  404. firstClubType: null, //机构类型
  405. isOrganizationType: 0,
  406. organizationTypeText: '请选择机构类型',
  407. beautyList: beautyList, //医美分类
  408. beautyLists: beautyLists, //生美分类
  409. mentuzCampNullList: mentuzCampNullList, //医美分类
  410. medicaCampNullList: medicaCampNullList, //生美分类
  411. mentuzCampList: [], //医美主营
  412. medicaCampList: [], //生美主营
  413. typtIndex: 0,
  414. organizationType: 0,
  415. current: 0,
  416. isShowAustomItem: false, //是否显示其他添加
  417. customItemValue: '', //自定义项目
  418. isMainproCheck: false,
  419. addressData: {
  420. address: '请选择机构所在地区',
  421. townId: '', //区ID
  422. cityId: '', //市ID
  423. provinceId: '', //省ID
  424. addressDetail: '' //地址详情
  425. },
  426. registerBtnText: '确定'
  427. }
  428. },
  429. onLoad(option) {
  430. this.userId = option.userID
  431. this.initGetStotage(option.userID)
  432. },
  433. methods: {
  434. async initGetStotage(userId) {
  435. // 初始化
  436. const userInfo = await this.$api.getStorage()
  437. this.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  438. this.organizationInfo(userId)
  439. },
  440. hanldNavigateBack() {
  441. this.$util.modal('', '资料尚未提交审核,确定放弃升级吗?', '确定', '取消', true, () => {
  442. uni.navigateBack({
  443. delta: 1
  444. })
  445. })
  446. },
  447. organizationInfo(userId) {
  448. this.UserService.OrganizationUpdateModifyInfo({ userId: userId })
  449. .then(response => {
  450. let organizationClub = response.data.club
  451. let organizationUser = response.data.user
  452. this.clubStatus = organizationClub.status
  453. if (this.clubStatus === 90) {
  454. this.isShowUpgrade = false
  455. } else {
  456. this.isShowUpgrade = true
  457. }
  458. if (organizationUser.auditNoteList != null) {
  459. this.errorList = organizationUser.auditNoteList
  460. }
  461. this.clubContact = organizationClub.linkMan
  462. this.mobile = organizationUser.bindMobile
  463. this.contractEmail = organizationClub.contractEmail
  464. this.clubId = organizationUser.clubId
  465. this.clubName = this.$reg.checkData(organizationClub.name)
  466. this.shortName = this.$reg.checkData(organizationClub.shortName)
  467. if (organizationClub.provinceId == null) {
  468. this.addressData.provinceId = ''
  469. } else {
  470. this.addressData.provinceId = organizationClub.provinceId
  471. }
  472. if (organizationClub.cityId == null) {
  473. this.addressData.cityId = ''
  474. } else {
  475. this.addressData.cityId = organizationClub.cityId
  476. }
  477. if (organizationClub.townId == null) {
  478. this.addressData.townId = ''
  479. } else {
  480. this.addressData.townId = organizationClub.townId
  481. }
  482. this.addressData.address = organizationClub.provincialAddress
  483. ? organizationClub.provincialAddress
  484. : '请选择机构所在地区'
  485. this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
  486. this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
  487. this.firstClubType = organizationClub.firstClubType
  488. this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
  489. this.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
  490. this.shopPhoto = this.$reg.checkData(organizationClub.shopPhoto)
  491. this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
  492. this.department = this.$reg.checkData(organizationClub.department)
  493. this.clubTelePhone = this.$reg.checkData(organizationClub.contractPhone)
  494. this.clubFax = this.$reg.checkData(organizationClub.fax)
  495. this.companyPprofile = this.$reg.checkData(organizationClub.profile)
  496. //机构类型&&主营项目
  497. switch(this.firstClubType){
  498. case 1:
  499. this.organizationTypeText = '医美'
  500. this.isOrganizationType = 1
  501. break
  502. case 2:
  503. this.organizationTypeText = '生美'
  504. this.isOrganizationType = 2
  505. break
  506. case 3:
  507. this.organizationTypeText = '项目公司'
  508. this.isOrganizationType = 0
  509. break
  510. case 4:
  511. this.organizationTypeText = '个人'
  512. this.isOrganizationType = 0
  513. break
  514. case 5:
  515. this.organizationTypeText = '其他'
  516. this.isOrganizationType = 0
  517. break
  518. case null:
  519. this.organizationTypeText = '请选择机构类型'
  520. this.isOrganizationType = 0
  521. break
  522. }
  523. if (organizationClub.mainProduct == '' || organizationClub.mainProduct == null) {
  524. this.mentuzCampList = this.mentuzCampNullList
  525. this.medicaCampList = this.medicaCampNullList
  526. } else {
  527. if (this.firstClubType == 1) {
  528. this.mentuzCampList = this.setNewMainpro(organizationClub.mainProduct)
  529. this.medicaCampList = this.medicaCampNullList
  530. } else {
  531. this.medicaCampList = this.setNewMainpro(organizationClub.mainProduct)
  532. this.mentuzCampList = this.mentuzCampNullList
  533. }
  534. this.mainProduct = organizationClub.mainProduct
  535. }
  536. //机构类型
  537. switch (this.secondClubType) {
  538. case 1:
  539. this.current = 0
  540. break
  541. case 2:
  542. this.current = 1
  543. this.isDepartment = true
  544. break
  545. case 3:
  546. this.current = 2
  547. this.isDepartment = true
  548. break
  549. }
  550. })
  551. .catch(error => {
  552. this.$util.msg(error.msg, 2000)
  553. })
  554. },
  555. organizationUpdateInfo() {
  556. //个人机构修改资料
  557. this.clubUpgradeApi()
  558. },
  559. organizationUpgradeInfo() {
  560. //个人机构提交审核
  561. if (this.isUpgrade) {
  562. this.clubUpgradeApi()
  563. } else {
  564. if (this.clubContact == '') {
  565. this.$util.msg('请输入联系人姓名', 2000)
  566. return
  567. }
  568. let params = {
  569. userId: this.userId,
  570. clubId: this.clubId, //会所ID
  571. linkMan: this.clubContact,
  572. fax: this.clubFax,
  573. contractPhone: this.clubTelePhone,
  574. profile: this.companyPprofile,
  575. serviceProviderId:this.serviceProviderId
  576. }
  577. this.UserService.OrganizationUpdate(params)
  578. .then(response => {
  579. this.$util.msg('修改成功', 2000, true, 'success')
  580. setTimeout(() => {
  581. uni.navigateBack({ delta: 1 })
  582. }, 2000)
  583. })
  584. .catch(error => {
  585. this.$util.msg(error.msg, 2000)
  586. })
  587. }
  588. },
  589. clubUpgradeApi() {
  590. if (this.isMainproCheck) {
  591. let mainproList = []
  592. if (this.firstClubType == 1) {
  593. this.mentuzCampList.forEach(item => {
  594. mainproList.push(item.name)
  595. })
  596. } else {
  597. this.medicaCampList.forEach(item => {
  598. mainproList.push(item.name)
  599. })
  600. }
  601. this.mainProduct = mainproList.join('/')
  602. }
  603. console.log(this.mainProduct)
  604. if (this.contractEmail == '') {
  605. this.$util.msg('请输入邮箱地址', 2000)
  606. return
  607. }
  608. if (!this.$reg.isEmail(this.contractEmail)) {
  609. this.$util.msg('请输入正确的邮箱地址', 2000)
  610. return
  611. }
  612. if (this.clubName == '') {
  613. this.$util.msg('请输入机构名称', 2000)
  614. return
  615. }
  616. if (this.addressData.townId == '') {
  617. this.$util.msg('请选择机构地址', 2000)
  618. return
  619. }
  620. if (this.addressData.addressDetail == '') {
  621. this.$util.msg('请填写机构详细地址', 2000)
  622. return
  623. }
  624. if (this.businessLicense == '') {
  625. this.$util.msg('请上传您的营业执照', 2000)
  626. return
  627. }
  628. console.log(this.isOrganizationType)
  629. if (this.isOrganizationType == 1 || this.isOrganizationType == 2) {
  630. if (this.mainProduct == '') {
  631. this.$util.msg('请选择住机构主营内容', 2000)
  632. return
  633. }
  634. }
  635. let params = {
  636. userId: this.userId,
  637. clubId: this.clubId, //会所ID
  638. linkMan: this.clubContact,
  639. contractEmail: this.contractEmail,
  640. name: this.clubName,
  641. shortName: this.shortName,
  642. provinceId: this.addressData.provinceId,
  643. cityId: this.addressData.cityId,
  644. townId: this.addressData.townId,
  645. address: this.addressData.addressDetail,
  646. socialCreditCode: this.socialCreditCode,
  647. businessLicense: this.businessLicense,
  648. shopPhoto: this.shopPhoto,
  649. firstClubType: this.isOrganizationType, //机构类型分类 医美:0和生美:1
  650. secondClubType: this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  651. department: this.department, //科室
  652. medicalPracticeLicense: this.medicalPracticeLicense, //资质图片
  653. mainProduct: this.mainProduct,
  654. fax: this.clubFax,
  655. contractPhone: this.clubTelePhone,
  656. profile: this.companyPprofile
  657. }
  658. this.UserService.OrganizationRegister(params)
  659. .then(response => {
  660. this.$util.msg('您的升级申请已提交审核', 2000)
  661. setTimeout(() => {
  662. uni.navigateBack({ delta: 1 })
  663. }, 2000)
  664. })
  665. .catch(error => {
  666. this.$util.msg(error.msg, 2000)
  667. })
  668. },
  669. // 三级联动选择
  670. showMulLinkageThreePicker() {
  671. this.isShowInput = true
  672. this.$refs.mpvueCityPicker.show()
  673. },
  674. onConfirm(e) {
  675. this.addressData.address = e.name
  676. this.addressData.townId = e.townCode
  677. this.addressData.cityId = e.cityCode
  678. this.addressData.provinceId = e.provinceCode
  679. },
  680. onTextareaInput(e) {
  681. this.addressData.addressDetail = e.detail.value
  682. },
  683. showTextareaFocus() {
  684. //文本框获取焦点
  685. this.isShowInput = false
  686. this.textareaFocus = true
  687. },
  688. hideTextareaFocus() {
  689. //文本框失去焦点
  690. this.isShowInput = true
  691. this.textareaFocus = false
  692. },
  693. onTextareaInputInfo(e) {
  694. this.companyPprofile = e.detail.value
  695. },
  696. chooseBusinessImage() {
  697. //营业执照图片上传
  698. uploadFileImage().then(res => {
  699. this.businessLicense = JSON.parse(res.data).data
  700. })
  701. },
  702. chooseMentuzImage() {
  703. //门头照图片上传
  704. uploadFileImage().then(res => {
  705. this.shopPhoto = JSON.parse(res.data).data
  706. })
  707. },
  708. chooseMedicalImage() {
  709. //资质照图片上传
  710. uploadFileImage().then(res => {
  711. this.medicalPracticeLicense = JSON.parse(res.data).data
  712. })
  713. },
  714. viewBusinessImage(e) {
  715. this.myPreviewImageFn(this.businessLicense)
  716. },
  717. viewMentuzImage(e) {
  718. this.myPreviewImageFn(this.shopPhoto)
  719. },
  720. viewMedicalImage(e) {
  721. this.myPreviewImageFn(this.medicalPracticeLicense)
  722. },
  723. myPreviewImageFn(url) {
  724. this.isPreviewImage = true
  725. let mentuzArray = []
  726. mentuzArray.push(url)
  727. uni.previewImage({
  728. urls: mentuzArray,
  729. current: 0
  730. })
  731. },
  732. delBusinessImage() {
  733. this.$util.modal('', '确定删除营业执照图片吗?', '确定', '取消', true, () => {
  734. this.businessLicense = ''
  735. })
  736. },
  737. delMentuzImage() {
  738. this.$util.modal('', '确定删除门头照图片吗?', '确定', '取消', true, () => {
  739. this.shopPhoto = ''
  740. })
  741. },
  742. delMedicalImage() {
  743. this.$util.modal('', '确定删除资质图片吗?', '确定', '取消', true, () => {
  744. this.medicalPracticeLicense = ''
  745. })
  746. },
  747. bindPickerChange() {
  748. let self = this
  749. uni.showActionSheet({
  750. title: '标题',
  751. itemList: ['医美', '生美','项目公司','个人','其他'],
  752. success: e => {
  753. self.isOrganizationType = e.tapIndex + 1
  754. switch (e.tapIndex) {
  755. case 0:
  756. this.organizationTypeText = '医美'
  757. break
  758. case 1:
  759. this.organizationTypeText = '生美'
  760. break
  761. case 2:
  762. this.organizationTypeText = '项目公司'
  763. break
  764. case 3:
  765. this.organizationTypeText = '个人'
  766. break
  767. case 4:
  768. this.organizationTypeText = '其他'
  769. break
  770. }
  771. }
  772. })
  773. },
  774. bindPickerChange2(e) {
  775. this.typtIndex = e.target.value
  776. this.isOrganizationType = e.target.value
  777. },
  778. radioChange(e) {
  779. this.secondClubType = e.target.value
  780. if (this.secondClubType == 2 || this.secondClubType == 3) {
  781. this.isDepartment = true
  782. } else {
  783. this.isDepartment = false
  784. }
  785. for (let i = 0; i < this.beautyList.length; i++) {
  786. if (this.beautyList[i].value === this.secondClubType) {
  787. this.current = i
  788. break
  789. }
  790. }
  791. },
  792. chooseMaleLike(e) {
  793. this.isMainproCheck = true
  794. this.mainProduct = this.checkLikes(e, this.mentuzCampList)
  795. },
  796. chooseMaleLikes(e) {
  797. this.isMainproCheck = true
  798. this.mainProduct = this.checkLikes(e, this.medicaCampList)
  799. },
  800. checkLikes(e, list) {
  801. let values = e.detail.value
  802. let arr = []
  803. list.forEach(item => {
  804. if (values.indexOf(item.value) >= 0) {
  805. this.$set(item, 'checked', true)
  806. arr.push(item.name)
  807. } else {
  808. this.$set(item, 'checked', false)
  809. }
  810. })
  811. return arr.join('/')
  812. },
  813. onBlurInput(e) {
  814. //
  815. if (e.detail.value === '') {
  816. this.isDisabled = true
  817. } else {
  818. this.isDisabled = false
  819. }
  820. },
  821. showAustomItem() {
  822. this.isShowAustomItem = !this.isShowAustomItem
  823. },
  824. setNewMainpro(arr) {
  825. //回显处理主营内容
  826. let _ARRAY = []
  827. arr.split('/').forEach((item, index) => {
  828. let _OBJ = { value: (index + 1).toString(), name: item, checked: true }
  829. _ARRAY.push(_OBJ)
  830. })
  831. console.log(_ARRAY)
  832. return _ARRAY
  833. },
  834. addCustomItem() {
  835. if (this.isOrganizationType == 1) {
  836. let item = { value: `${this.mentuzCampList.length + 1}`, name: this.customItemValue, checked: true }
  837. this.mentuzCampList.push(item)
  838. } else {
  839. let item = { value: `${this.medicaCampList.length + 1}`, name: this.customItemValue, checked: true }
  840. this.medicaCampList.push(item)
  841. }
  842. },
  843. showUpgrade() {
  844. this.isUpgrade = true
  845. this.isShowUpgrade = true
  846. this.isDownUpgrade = false
  847. this.registerBtnText = '提交审核'
  848. },
  849. hideUpgrade() {
  850. this.$util.modal('提示', '收起后,您填写的升级信息将会被清空确定收起吗?', '确定', '取消', true, () => {
  851. this.isUpgrade = false
  852. this.isShowUpgrade = false
  853. this.isDownUpgrade = true
  854. this.registerBtnText = '确定'
  855. })
  856. }
  857. },
  858. onShow() {
  859. if (this.isPreviewImage) {
  860. this.isPreviewImage = false
  861. return
  862. }
  863. }
  864. }
  865. </script>
  866. <style lang="scss">
  867. .register {
  868. width: 100%;
  869. height: auto;
  870. border-top: 1px solid #f7f7f7;
  871. background: #efefef;
  872. .register-main {
  873. width: 100%;
  874. height: auto;
  875. background: #ffffff;
  876. &.detailed {
  877. padding-bottom: 200rpx;
  878. }
  879. &.first {
  880. padding-top: 30rpx;
  881. }
  882. .register-tips {
  883. display: flex;
  884. flex-direction: column;
  885. align-items: center;
  886. line-height: 44rpx;
  887. font-size: $font-size-24;
  888. color: #ff0000;
  889. margin-bottom: 40rpx;
  890. .iconfont {
  891. font-size: $font-size-24;
  892. }
  893. }
  894. .register-row {
  895. width: 702rpx;
  896. height: auto;
  897. padding: 0 24rpx;
  898. margin-bottom: 20rpx;
  899. &.none {
  900. margin-bottom: 0;
  901. }
  902. .error-title {
  903. line-height: 40rpx;
  904. font-size: $font-size-28;
  905. color: $text-color;
  906. text-align: left;
  907. }
  908. .error-main {
  909. padding: 10rpx 0;
  910. .error-item {
  911. padding: 0 20rpx;
  912. margin: 10rpx;
  913. background: #f53636;
  914. height: 52rpx;
  915. line-height: 52rpx;
  916. border-radius: 26rpx;
  917. font-size: $font-size-26;
  918. color: #ffffff;
  919. text-align: center;
  920. display: inline-block;
  921. }
  922. }
  923. .register-txt {
  924. line-height: 44rpx;
  925. font-size: $font-size-26;
  926. color: $text-color;
  927. text-align: left;
  928. &.first {
  929. margin-top: 20rpx;
  930. }
  931. }
  932. .register-bet {
  933. width: 100%;
  934. display: flex;
  935. line-height: 60rpx;
  936. height: 60rpx;
  937. align-items: center;
  938. flex-direction: column;
  939. font-size: $font-size-28;
  940. color: $color-system;
  941. margin-top: 40rpx;
  942. text {
  943. margin: 0 5rpx;
  944. }
  945. }
  946. .register-tip {
  947. line-height: 64rpx;
  948. font-size: $font-size-24;
  949. color: #cecece;
  950. text-align: left;
  951. }
  952. .register-title {
  953. font-size: $font-size-32;
  954. color: $text-color;
  955. text {
  956. font-size: $font-size-24;
  957. }
  958. }
  959. .row-btn {
  960. position: absolute;
  961. right: 24rpx;
  962. top: 0;
  963. line-height: 88rpx;
  964. text-align: center;
  965. font-size: $font-size-28;
  966. color: $color-system;
  967. }
  968. .register-from {
  969. width: 654rpx;
  970. height: 40rpx;
  971. padding: 24rpx;
  972. background: $sub-bg-color;
  973. border-radius: 14rpx;
  974. position: relative;
  975. .label {
  976. text-align: left;
  977. font-size: $font-size-28;
  978. color: #666666;
  979. line-height: 40rpx;
  980. float: left;
  981. }
  982. .row-input {
  983. width: 440rpx;
  984. padding-left: 10rpx;
  985. font-size: $font-size-28;
  986. color: $text-color;
  987. line-height: 40rpx;
  988. float: left;
  989. height: 40rpx;
  990. &.none {
  991. color: #999999;
  992. }
  993. &.picker {
  994. text-align: left;
  995. color: #999999;
  996. }
  997. &.keshi {
  998. width: 550rpx;
  999. }
  1000. }
  1001. &.code {
  1002. width: 410rpx;
  1003. float: left;
  1004. margin-right: 20rpx;
  1005. .row-input {
  1006. width: 390rpx;
  1007. }
  1008. }
  1009. &.btn {
  1010. width: 224rpx;
  1011. height: 88rpx;
  1012. float: left;
  1013. background: $btn-confirm;
  1014. padding: 0;
  1015. .row-input {
  1016. width: 224rpx;
  1017. height: 88rpx;
  1018. line-height: 88rpx;
  1019. padding: 0;
  1020. color: #ffffff;
  1021. background: $btn-confirm;
  1022. text-align: center;
  1023. border-radius: 14rpx;
  1024. &.other {
  1025. width: 224rpx;
  1026. background: #f7f7f7;
  1027. margin-right: 20rpx;
  1028. }
  1029. &.none {
  1030. background: #f7f7f7;
  1031. }
  1032. }
  1033. &.disabled {
  1034. background: #f7f7f7;
  1035. .row-input {
  1036. background: #f7f7f7;
  1037. color: #999999;
  1038. }
  1039. }
  1040. }
  1041. &.picker {
  1042. padding: 0 24rpx;
  1043. width: 654rpx;
  1044. height: 88rpx;
  1045. line-height: 88rpx;
  1046. .label {
  1047. line-height: 88rpx;
  1048. }
  1049. .row-input {
  1050. width: 470rpx;
  1051. height: 88rpx;
  1052. line-height: 88rpx;
  1053. padding-left: 30rpx;
  1054. }
  1055. }
  1056. &.radio {
  1057. padding: 0 14rpx;
  1058. width: 674rpx;
  1059. height: 90rpx;
  1060. .row-label-input{
  1061. height: 88rpx;
  1062. line-height: 88rpx;
  1063. padding-left: 0;
  1064. }
  1065. .row-radio {
  1066. float: left;
  1067. transform: scale(0.7);
  1068. }
  1069. .row-text {
  1070. width: 100rpx;
  1071. text-align: left;
  1072. float: left;
  1073. font-size: $font-size-26;
  1074. }
  1075. }
  1076. &.group {
  1077. padding: 0 24rpx;
  1078. width: 654rpx;
  1079. height: auto;
  1080. background: #ffffff;
  1081. margin-top: 30rpx;
  1082. .label {
  1083. line-height: 76rpx;
  1084. }
  1085. .row-input {
  1086. width: 100%;
  1087. height: 88rpx;
  1088. line-height: 88rpx;
  1089. padding-left: 0;
  1090. }
  1091. .row-radio {
  1092. float: left;
  1093. }
  1094. .row-text {
  1095. width: 100rpx;
  1096. text-align: center;
  1097. float: left;
  1098. }
  1099. }
  1100. &.btn {
  1101. margin-top: 0;
  1102. }
  1103. .content-class {
  1104. margin: 20rpx auto;
  1105. display: flex;
  1106. flex-flow: row wrap;
  1107. justify-content: space-between;
  1108. align-items: center;
  1109. &.btn {
  1110. margin: 0 auto;
  1111. margin-left: 116rpx;
  1112. }
  1113. .row-input {
  1114. display: flex;
  1115. width: 220rpx;
  1116. height: 40rpx;
  1117. padding: 24rpx;
  1118. text-align: left;
  1119. border-radius: 10rpx;
  1120. font-size: $font-size-28;
  1121. color: $text-color;
  1122. }
  1123. .confirm-btn {
  1124. width: 200rpx;
  1125. height: 88rpx;
  1126. border-radius: 10rpx;
  1127. line-height: 88rpx;
  1128. text-align: center;
  1129. &.other {
  1130. width: 213rpx;
  1131. }
  1132. &.none {
  1133. color: #ffffff;
  1134. background: $btn-confirm;
  1135. }
  1136. &.disabled {
  1137. color: #999999;
  1138. }
  1139. }
  1140. .item {
  1141. width: 155rpx;
  1142. height: 60rpx;
  1143. font-size: $font-size-28;
  1144. line-height: 60rpx;
  1145. border-radius: 10rpx;
  1146. margin: 10rpx;
  1147. text-align: center;
  1148. box-sizing: border-box;
  1149. border: 1rpx solid #efefef;
  1150. float: left;
  1151. checkbox {
  1152. display: none;
  1153. }
  1154. }
  1155. .on {
  1156. border-color: $color-system;
  1157. color: $color-system;
  1158. }
  1159. }
  1160. }
  1161. .icon-xiayibu {
  1162. width: 88rpx;
  1163. height: 88rpx;
  1164. position: absolute;
  1165. right: 0;
  1166. top: 0;
  1167. line-height: 88rpx;
  1168. text-align: center;
  1169. }
  1170. &.text-textarea {
  1171. background: #ffffff;
  1172. .textarea {
  1173. width: 654rpx;
  1174. height: 180rpx;
  1175. background: #f7f7f7;
  1176. padding: 24rpx;
  1177. font-size: $font-size-28;
  1178. color: $text-color;
  1179. z-index: 1;
  1180. border-radius: 14rpx;
  1181. }
  1182. .textarea.hide {
  1183. opacity: 0;
  1184. }
  1185. .textarea.show {
  1186. color: #999999;
  1187. }
  1188. }
  1189. }
  1190. .register-picture {
  1191. height: 102rpx;
  1192. margin: 30rpx 0;
  1193. width: 42%;
  1194. float: left;
  1195. &.zz {
  1196. width: 100%;
  1197. }
  1198. .label {
  1199. float: left;
  1200. font-size: $font-size-28;
  1201. color: $text-color;
  1202. line-height: 102rpx;
  1203. width: 150rpx;
  1204. text-align: right;
  1205. &.zz {
  1206. width: 230rpx;
  1207. }
  1208. }
  1209. .upload-picture {
  1210. float: left;
  1211. height: 100rpx;
  1212. .upload-none {
  1213. width: 100rpx;
  1214. height: 100rpx;
  1215. text-align: center;
  1216. line-height: 100rpx;
  1217. color: #999999;
  1218. border: 1px solid #999999;
  1219. border-radius: 10rpx;
  1220. margin: 0 20rpx;
  1221. .iconfont {
  1222. font-size: $font-size-28;
  1223. }
  1224. }
  1225. .upload-image {
  1226. width: 100rpx;
  1227. height: 100rpx;
  1228. border-radius: 10rpx;
  1229. margin: 0 20rpx;
  1230. position: relative;
  1231. image {
  1232. width: 100rpx;
  1233. height: 100rpx;
  1234. border-radius: 10rpx;
  1235. }
  1236. .upload-del {
  1237. width: 40rpx;
  1238. height: 40rpx;
  1239. position: absolute;
  1240. top: -20rpx;
  1241. right: -20rpx;
  1242. line-height: 40rpx;
  1243. text-align: center;
  1244. .iconfont {
  1245. font-size: $font-size-32;
  1246. color: #999999;
  1247. }
  1248. }
  1249. }
  1250. }
  1251. }
  1252. .register-input {
  1253. width: 654rpx;
  1254. height: 40rpx;
  1255. padding: 24rpx;
  1256. margin: 0 auto;
  1257. margin-bottom: 60rpx;
  1258. background: #f7f7f7;
  1259. border-radius: 14rpx;
  1260. .input {
  1261. width: 100%;
  1262. height: 100%;
  1263. background: #f7f7f7;
  1264. font-size: $font-size-28;
  1265. line-height: 40rpx;
  1266. color: #333333;
  1267. border-radius: 14rpx;
  1268. }
  1269. }
  1270. .register-fiexd {
  1271. width: 100%;
  1272. height: auto;
  1273. padding: 20rpx 0;
  1274. position: fixed;
  1275. bottom: 0;
  1276. left: 0;
  1277. z-index: 99;
  1278. background: #ffffff;
  1279. .register-bet {
  1280. width: 100%;
  1281. display: flex;
  1282. line-height: 60rpx;
  1283. height: 60rpx;
  1284. align-items: center;
  1285. flex-direction: column;
  1286. font-size: $font-size-28;
  1287. color: $color-system;
  1288. margin-bottom: 20rpx;
  1289. .icon-xiangxiajiantou {
  1290. transform: rotate(180deg);
  1291. }
  1292. text {
  1293. margin: 0 5rpx;
  1294. }
  1295. }
  1296. .register-agree {
  1297. display: flex;
  1298. flex-direction: column;
  1299. align-items: center;
  1300. margin: 32rpx 0;
  1301. .agree-text {
  1302. .checkbox {
  1303. float: left;
  1304. margin: 4rpx 6rpx 0 0;
  1305. color: #999999;
  1306. font-size: $font-size-32;
  1307. &.icon-gouxuan {
  1308. color: $color-system;
  1309. }
  1310. }
  1311. font-size: 20rpx;
  1312. line-height: 44rpx;
  1313. color: #999999;
  1314. text {
  1315. color: #0091ff;
  1316. }
  1317. }
  1318. }
  1319. }
  1320. .register-btn {
  1321. width: 702rpx;
  1322. height: 88rpx;
  1323. border-radius: 44rpx;
  1324. font-size: $font-size-28;
  1325. line-height: 88rpx;
  1326. color: #ffffff;
  1327. margin: 0 auto;
  1328. text-align: center;
  1329. background: $btn-confirm;
  1330. margin-top: 96rpx;
  1331. &.none {
  1332. background: #ffffff;
  1333. color: $text-color;
  1334. margin-top: 0;
  1335. }
  1336. &.sub {
  1337. margin-top: 0;
  1338. }
  1339. }
  1340. }
  1341. }
  1342. </style>