storeDetail.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <view class="container-body">
  3. <view class="box">
  4. <view class="storeInfo title">基础信息</view>
  5. <view class="storeInfo-item x-start">
  6. <view class="label" style="width: 4rem;">公司全称</view>
  7. <view class="val">{{storeInfo.fullName|| ''}}</view>
  8. </view>
  9. <view class="storeInfo-item x-start">
  10. <view class="label" style="width: 4rem;">联系电话</view>
  11. <view class="val">{{storeInfo.sendPhone|| ''}}</view>
  12. </view>
  13. <view class="storeInfo-item x-start">
  14. <view class="label" style="width: 4rem;">详细地址</view>
  15. <view class="val">{{storeInfo.address|| ''}}{{storeInfo.enterpriseAddress||''}}</view>
  16. </view>
  17. <view class="storeInfo-item x-start">
  18. <view class="label" style="width: 4rem;">经营范围</view>
  19. <view id="descbox-desc" :class="showDes|| !showExpandText? 'opacity descbox-desc':'descbox-desc' "
  20. :style="{height: isExpand ? 'auto': '84rpx'}">
  21. {{storeInfo.businessScope|| ''}}
  22. <!-- <view class="expand x-ac">
  23. {{!isExpand&&showExpandText ? '展开':'收起'}}
  24. <u-icon name="arrow-down" color="#333" size="14"></u-icon>
  25. <u-icon name="arrow-up" color="#333" size="14"></u-icon>
  26. </view> -->
  27. </view>
  28. </view>
  29. </view>
  30. <view class="box mb20">
  31. <view class="storeInfo title">资质信息</view>
  32. <view class="storeInfo-item mb20">
  33. <view class="label mb20">营业执照</view>
  34. <view class="label mb20" v-if="storeInfo.businessCode">营业执照上传编码 {{storeInfo.businessCode}}</view>
  35. <view class="val x-f">
  36. <u-image v-if="storeInfo.businessLicense" shape="square" lazyLoad :src="storeInfo.businessLicense"
  37. width="600rpx" height="auto" mode="widthFix" radius="6"
  38. @click="previewImage('businessLicense')"></u-image>
  39. <view v-else>暂未上传</view>
  40. </view>
  41. </view>
  42. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice2">
  43. <view class="label" mb20>2类器械生产备案</view>
  44. <view class="label mb20" v-if="storeInfo.medicalDevice2Code">二类器械生产备案文件编码 {{storeInfo.medicalDevice2Code}}</view>
  45. <view class="val x-f">
  46. <u-image v-if="storeInfo.medicalDevice2" shape="square" lazyLoad :src="storeInfo.medicalDevice2"
  47. width="600rpx" height="auto" mode="widthFix" radius="6"
  48. @click="previewImage('medicalDevice2')"></u-image>
  49. <view v-else>暂未上传</view>
  50. </view>
  51. </view>
  52. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice1">
  53. <view class="label mb20">1类医疗器械备案</view>
  54. <view class="label mb20" v-if="storeInfo.medicalDevice1Code">一类器械生产备案文件编码 {{storeInfo.medicalDevice1Code}}</view>
  55. <view class="val x-start">
  56. <u-image v-if="storeInfo.medicalDevice1" shape="square" lazyLoad :src="storeInfo.medicalDevice1"
  57. width="600rpx" height="auto" mode="widthFix" radius="6"
  58. @click="previewImage('medicalDevice1')"></u-image>
  59. <view v-else>暂未上传</view>
  60. </view>
  61. </view>
  62. <view class="storeInfo-item mb20" v-if="storeInfo.medicalDevice3">
  63. <view class="label mb20">3类器械经营许可证</view>
  64. <view class="label mb20" v-if="storeInfo.medicalDevice3Code">三类器械生产备案文件编码 {{storeInfo.medicalDevice3Code}}</view>
  65. <view class="val x-f">
  66. <u-image v-if="storeInfo.medicalDevice3" shape="square" lazyLoad :src="storeInfo.medicalDevice3"
  67. width="600rpx" height="auto" mode="widthFix" radius="6"
  68. @click="previewImage('medicalDevice3')"></u-image>
  69. <view v-else>暂未上传</view>
  70. </view>
  71. </view>
  72. <view class="storeInfo-item mb20" v-if="storeInfo.foodLicense">
  73. <view class="label mb20">食品经营许可证</view>
  74. <view class="label mb20" v-if="storeInfo.foodCode">食品经营许可证上传编码 {{storeInfo.foodCode}}</view>
  75. <view class="val x-f">
  76. <u-image v-if="storeInfo.foodLicense" shape="square" lazyLoad :src="storeInfo.foodLicense"
  77. width="600rpx" height="auto" mode="widthFix" radius="6"
  78. @click="previewImage('foodLicense')"></u-image>
  79. <view v-else>暂未上传</view>
  80. </view>
  81. </view>
  82. <view class="storeInfo-item mb20" v-if="storeInfo.medicalLicense">
  83. <view class="label mb20">医疗机构执业许可证</view>
  84. <view class="label mb20" v-if="storeInfo.medicalCode">医疗机构执业许可证上传编码 {{storeInfo.medicalCode}}</view>
  85. <view class="val x-f">
  86. <u-image v-if="storeInfo.medicalLicense" shape="square" lazyLoad :src="storeInfo.medicalLicense"
  87. width="600rpx" height="auto" mode="widthFix" radius="6"
  88. @click="previewImage('medicalLicense')"></u-image>
  89. <view v-else>暂未上传</view>
  90. </view>
  91. </view>
  92. <view class="storeInfo-item mb20" v-if="storeInfo.drugLicense">
  93. <view class="label mb20">药品经营许可证</view>
  94. <view class="label mb20" v-if="storeInfo.drugCode">药品经营许可证编码 {{storeInfo.drugCode}}</view>
  95. <view class="val x-f">
  96. <u-image v-if="storeInfo.drugLicense" shape="square" lazyLoad :src="storeInfo.drugLicense"
  97. width="600rpx" height="auto" mode="widthFix" radius="6"
  98. @click="previewImage('drugLicense')"></u-image>
  99. <view v-else>暂未上传</view>
  100. </view>
  101. </view>
  102. <view class="storeInfo-item mb20" v-if="storeInfo&&storeInfo.doctorList&&storeInfo.doctorList.length>0">
  103. <view v-for="(item,index) in storeInfo.doctorList" :key="index">
  104. <view class="label mb20">药师职业证书:{{item.doctorName}}</view>
  105. <view class="label mb20" v-if="item.practiseCode">药师职业许可证编码 {{item.practiseCode}}</view>
  106. <view class="val ">
  107. <!-- <view v-for="(img,indexs) in item.imagesArray" :key="indexs">
  108. <u-image shape="square" lazyLoad :src="img"
  109. width="600rpx" height="auto" mode="widthFix" radius="6"
  110. @click="previewImages(item.imagesArray,indexs)"></u-image>
  111. </view>
  112. -->
  113. <view v-if="item.imagesArray&&item.imagesArray.length>0">
  114. <u-image shape="square" lazyLoad :src="item.imagesArray[0]"
  115. width="600rpx" height="auto" mode="widthFix" radius="6"
  116. @click="previewImages(item.imagesArray,indexs)"></u-image>
  117. </view>
  118. <!-- <u-image v-if="item.practiseImages" shape="square" lazyLoad :src="item.practiseImages"
  119. width="600rpx" height="auto" mode="widthFix" radius="6"
  120. @click="previewImage('drugLicense')"></u-image> -->
  121. <view v-else>暂未上传</view>
  122. </view>
  123. </view>
  124. </view>
  125. <view class="storeInfo-item mb20" v-if="storeInfo.otherSpecialQualificationCode">
  126. <view class="label mb20">其它特殊资质编码 {{storeInfo.otherSpecialQualificationCode}}
  127. </view>
  128. </view>
  129. <view class="storeInfo-item mb20" v-if="storeInfo.qualityAssuranceAgreementCode">
  130. <view class="label mb20">质量保证协议编码 {{storeInfo.qualityAssuranceAgreementCode}}</view>
  131. </view>
  132. <view class="storeInfo-item mb20" v-if="storeInfo.settlementAgreementCode">
  133. <view class="label mb20">其它资质入驻协议编码 {{storeInfo.settlementAgreementCode}}</view>
  134. </view>
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. export default {
  140. props: ['storeInfo', 'source'],
  141. data() {
  142. return {
  143. showDes: false,
  144. showExpandText: false,
  145. isExpand: true,
  146. textHeight: 0, //文本高度
  147. }
  148. },
  149. methods: {
  150. sliceimg(){
  151. console.log(this.storeInfo)
  152. if (this.storeInfo.doctorList && this.storeInfo.doctorList.length > 0) {
  153. this.storeInfo.doctorList = this.storeInfo.doctorList.map(doctor => {
  154. if (doctor.practiseImages) {
  155. doctor.practiseImages = doctor.practiseImages.split(',').map(img => img.trim());
  156. }
  157. return doctor;
  158. });
  159. }
  160. console.log(this.storeInfo.doctorList)
  161. },
  162. previewImage(type) {
  163. uni.previewImage({
  164. current: 0,
  165. urls: [this.storeInfo[type]]
  166. });
  167. },
  168. previewImages(type,indexs) {
  169. uni.previewImage({
  170. current: type[indexs],
  171. urls: [type[0]]
  172. });
  173. },
  174. getDescHeight() {
  175. return
  176. this.$nextTick(() => {
  177. const query = uni.createSelectorQuery().in(this);
  178. query
  179. .select("#descbox-desc")
  180. .boundingClientRect((data) => {
  181. this.textHeight = data.height
  182. this.isExpand = this.textHeight > uni.upx2px(84) ? false : true
  183. this.showExpandText = this.textHeight >= uni.upx2px(84) ? true : false
  184. this.showDes = true
  185. })
  186. .exec();
  187. })
  188. },
  189. }
  190. }
  191. </script>
  192. <style scoped lang="scss">
  193. .mb20 {
  194. margin-bottom: 20rpx;
  195. }
  196. .box {
  197. padding: 0 32rpx 26rpx 32rpx;
  198. background-color: #fff;
  199. }
  200. .opacity {
  201. position: relative !important;
  202. opacity: 1 !important;
  203. z-index: 1 !important;
  204. }
  205. .descbox-desc {
  206. color: #222;
  207. font-weight: 400;
  208. font-size: 28rpx;
  209. color: #222222;
  210. word-break: break-all;
  211. overflow: hidden;
  212. line-height: 42rpx;
  213. position: absolute;
  214. opacity: 0;
  215. z-index: -1;
  216. }
  217. .container-body {
  218. font-family: PingFang SC, PingFang SC;
  219. font-weight: 400;
  220. font-size: 28rpx;
  221. color: #939599;
  222. }
  223. .businessLicense {
  224. height: 80rpx;
  225. width: 80rpx;
  226. border-radius: 8rpx;
  227. }
  228. .storeInfo {
  229. &-item {
  230. padding: 6rpx 0;
  231. .label {
  232. flex-shrink: 0;
  233. }
  234. .val {
  235. color: #222;
  236. }
  237. }
  238. }
  239. .title {
  240. font-family: PingFang SC, PingFang SC;
  241. font-weight: 600;
  242. font-size: 30rpx;
  243. color: #222222;
  244. padding: 24rpx 0;
  245. }
  246. </style>