information.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <template name='information'>
  2. <view class="container">
  3. <view class="wrap-info">
  4. <view class="row">
  5. <view class="info-title">基本信息</view>
  6. </view>
  7. <view class="info-from">
  8. <view class="label">公司名称</view>
  9. <input class="row-input" type="text" placeholder="请与营业执照的注册名称保持一致" maxlength="6"/>
  10. </view>
  11. <view class="info-from">
  12. <view class="label">公司简称</view>
  13. <input class="row-input" type="text" placeholder="请输入公司简称" maxlength="6"/>
  14. </view>
  15. <view class="info-from">
  16. <view class="label">公司地址</view>
  17. <view class="row-input" @click="showMulLinkageThreePicker">
  18. <text :class="addressData.address === '请选择公司所在地区' ? 'none' : ''">
  19. {{addressData.address}}
  20. </text>
  21. <text class="iconfont icon-xiayibu"></text>
  22. </view>
  23. </view>
  24. <textarea value="" placeholder="请填写详细地址,如街道/小区/门牌等" maxlength="50" class="address-details"/>
  25. <view class="info-from">
  26. <view class="label">联系人</view>
  27. <input class="row-input" type="text" placeholder="请输入联系人姓名" maxlength="6"/>
  28. </view>
  29. <view class="info-from">
  30. <view class="label">邮箱</view>
  31. <input class="row-input" type="text" placeholder="请输入邮箱地址 " maxlength="6"/>
  32. </view>
  33. <text class="info-email">邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text>
  34. <view class="info-from">
  35. <view class="label">固定电话</view>
  36. <input class="row-input" type="text" placeholder="请在号码前加区 " maxlength="6"/>
  37. </view>
  38. <view class="info-from">
  39. <view class="label">传真</view>
  40. <input class="row-input" type="text" placeholder="请输入公司传真号 " maxlength="6"/>
  41. </view>
  42. <view class="info-from">
  43. <view class="label">法人代表</view>
  44. <input class="row-input" type="text" placeholder="请输入公司法人代表姓名 " maxlength="6"/>
  45. </view>
  46. <view class="info-from">
  47. <view class="label">注册资本</view>
  48. <input class="row-input" type="text" placeholder="请填写公司注册资本 " maxlength="6"/>
  49. </view>
  50. <view class="info-from">
  51. <view class="label">公司性质</view>
  52. <input class="row-input" type="text" placeholder="请填写公司性质 " maxlength="6"/>
  53. </view>
  54. <view class="info-from">
  55. <view class="label">年营业额</view>
  56. <input class="row-input" type="text" placeholder="请输入公司年营业额 " maxlength="6"/>
  57. </view>
  58. </view>
  59. <view class="wrap-content">
  60. <view class="row">
  61. <view class="info-title">经营信息</view>
  62. </view>
  63. <view class="info-from" style="border: 0;">
  64. <view class="label">公司类型</view>
  65. <view class="row-input ShopTyperadio">
  66. <view class="radio" v-for="(item,index) in typename" :key="index" @click="firstShopTypeRidio(item)" :class="firsttype==item.value?'active':''">
  67. <label class="iconfont" :class="firsttype==item.value?'icon-yixuanze':'icon-weixuanze'"></label>{{item.name}}
  68. </view>
  69. </view>
  70. </view>
  71. <view class="secondTyperadio" v-if="isfirstShow" >
  72. <view class="radio" v-for="(item,index) in secondtype" :key="index" @click="secondypeRidio(item)" :class="secontype==item.value?'active':''">
  73. <view class="secondRadio">{{item.name}}</view>
  74. </view>
  75. </view>
  76. <view class="zizhi" v-if="issecondshow">
  77. <view class="info-title">资质</view>
  78. <view class="uploadImage">
  79. <!-- <view class="form-upload-image" >
  80. <image class="upload-img" src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/15.jpg" alt="" @click="showViewerbigImage()"></image>
  81. <i class="iconfont icon-shanchu1" @click="deleteMedicalImage()"></i>
  82. </view> -->
  83. <view class="formLine-file" >
  84. <input ref="medicalPracticeLicenseImg1" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg" @change="uploadzizhiImageFn">
  85. <view class="file-zizhi"></view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="wrap-image">
  91. <view class="row">
  92. <view class="info-title">资质证明</view>
  93. </view>
  94. </view>
  95. <mpvue-city-picker :themeColor="themeColor"
  96. ref="mpvueCityPicker"
  97. :pickerValueDefault="cityPickerValueDefault"
  98. @onCancel="onCancel"
  99. @onConfirm="onConfirm">
  100. </mpvue-city-picker>
  101. </view>
  102. </template>
  103. <script>
  104. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  105. import { uploadFileImage } from "@/api/utils.js"
  106. import { mapState,mapMutations } from 'vuex';
  107. export default{
  108. name:'information',
  109. components:{
  110. mpvueCityPicker,
  111. },
  112. data(){
  113. return{
  114. isShowInput:false,
  115. firsttype:0,
  116. secontype:0,
  117. isfirstShow:false,
  118. issecondshow:false,
  119. addressData:{
  120. address:'请选择公司所在地区',
  121. townID:'', //区ID
  122. cityID:'', //区ID
  123. provinceID:'', //区ID
  124. addressDetail: '', //地址
  125. },
  126. typename:[
  127. {name:'医疗',value:'1'},
  128. {name:'非医疗',value:'2'}
  129. ],
  130. secondtype:[
  131. {name:'一类器械',value:'1'},
  132. {name:'二类器械',value:'2'},
  133. {name:'三类器械',value:'3'},
  134. {name:'其它',value:'4'}
  135. ]
  136. }
  137. },
  138. methods:{
  139. secondypeRidio(item){
  140. this.secontype = item.value;
  141. if (item.value==3){
  142. this.issecondshow = true;
  143. }else {
  144. this.issecondshow = false;
  145. }
  146. },
  147. firstShopTypeRidio(item){
  148. this.firsttype = item.value;
  149. if (item.value==1){
  150. this.isfirstShow = true;
  151. }else {
  152. this.isfirstShow = false;
  153. }
  154. },
  155. showMulLinkageThreePicker() {//三级地址联动
  156. this.isShowInput = true
  157. this.$refs.mpvueCityPicker.show()
  158. },
  159. onConfirm(e) {//获取选择的地址信息
  160. console.log('地址',e);
  161. this.addressData.address = e.name;
  162. this.addressData.townID = e.townCode;
  163. this.addressData.cityID = e.cityCode;
  164. this.addressData.provinceID = e.provinceCode;
  165. this.secondParams.townId = this.addressData.townID;
  166. this.secondParams.address = this.addressData.address;
  167. },
  168. onConfirmbrand(e){
  169. this.brandname = e.name;
  170. },
  171. }
  172. }
  173. </script>
  174. <style lang="scss">
  175. .row{
  176. line-height: 80rpx;
  177. background: #f7f7f7;
  178. padding: 0 24rpx;
  179. .info-title{
  180. font-size: $font-size-30;
  181. color: $text-color;
  182. font-weight: bold;
  183. }
  184. }
  185. .info-from{
  186. width: 702rpx;
  187. height: 90rpx;
  188. line-height: 90rpx;
  189. border-bottom: 2rpx solid #e1e1e1;
  190. margin: auto;
  191. position: relative;
  192. .label{
  193. width: 112rpx;
  194. text-align: left;
  195. font-size: $font-size-28;
  196. color: #666666;
  197. line-height: 90rpx;
  198. float: left;
  199. }
  200. .row-input{
  201. width: 520rpx;
  202. padding-left:10rpx;
  203. font-size: $font-size-28;
  204. color: $text-color;
  205. line-height: 90rpx;
  206. float: left;
  207. height: 90rpx;
  208. margin-left: 50rpx;
  209. .icon-xiayibu{
  210. position: absolute;
  211. right: 0;
  212. color: #b2b2b2;
  213. }
  214. .none{
  215. color: #b2b2b2;
  216. }
  217. }
  218. }
  219. .address-details{
  220. height: 146rpx;
  221. border-bottom: 2rpx solid #e1e1e1;
  222. width: 702rpx;
  223. margin: auto;
  224. font-size: $font-size-28;
  225. padding-top: 20rpx;
  226. }
  227. input[type="text"]::placeholder,textarea::placeholder {color: #b2b2b2;}
  228. .info-email{
  229. color: #fea785;
  230. font-size: $font-size-20;
  231. padding-left: 24rpx ;
  232. }
  233. .ShopTyperadio{
  234. overflow: hidden;
  235. height: auto;
  236. border: 0;
  237. .radio{
  238. float: left;
  239. margin-right: 60rpx;
  240. .iconfont{
  241. margin-right: 10rpx;
  242. }
  243. .icon-weixuanze{
  244. color: #b2b2b2;
  245. }
  246. .icon-yixuanze{
  247. color: $color-system;
  248. }
  249. }
  250. }
  251. .active{
  252. color: $color-system;
  253. }
  254. .secondTyperadio{
  255. overflow: hidden;
  256. height: auto;
  257. padding: 0 24rpx;
  258. margin-bottom: 20rpx;
  259. color: #999999;
  260. .radio{
  261. float: left;
  262. margin-right: 20rpx;
  263. .secondRadio{
  264. border: 2rpx solid #e1e1e1;
  265. padding: 0 30rpx;
  266. text-align: center;
  267. line-height: 42rpx;
  268. font-size: $font-size-26;
  269. border-radius: 21rpx;
  270. }
  271. }
  272. }
  273. .zizhi{
  274. .info-title{
  275. padding-left: 24rpx;
  276. font-size: $font-size-28;
  277. color: #999999;
  278. }
  279. }
  280. </style>