bottomSheetMoreNew.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. <template>
  2. <view class="share">
  3. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  4. </view>
  5. <view class="share-item" :class="{'share-show': shareState}">
  6. <view class="share-to">
  7. <text style="font-size: 16px;color: #000;">{{title}}</text>
  8. </view>
  9. <scroll-view scroll-y="true" class="scroll-Y">
  10. <view class="uni-list-cell" hover-class="uni-list-cell-hover" v-for="(value, key) in historyList"
  11. :key="key">
  12. <view class="uni-media-list">
  13. <view class="uni-media-list-body">
  14. <view class="uni-media-list-text-top">
  15. <view class="tit-text">施工时间:</view>
  16. <view class="normal-text">{{value.constructTime}}</view>
  17. </view>
  18. <view class="uni-media-list-text-top" v-if="title=='管道压力'">
  19. <view class="tit-text">管道压力:</view>
  20. <view class="normal-text">{{value.constructAccordingDrawings}}</view>
  21. </view>
  22. <view class="uni-media-list-text-top" v-if="title=='原有管线压力'">
  23. <view class="tit-text">原有管线压力:</view>
  24. <view class="normal-text">{{value.constructAddre}}</view>
  25. </view>
  26. <view class="uni-media-list-text-top">
  27. <view class="uni-common-mt" style="width: 100%;">
  28. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  29. #000;margin-top: 5px;">施工内容:</text>
  30. <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
  31. <textarea class="textarea" maxlength="255" :disabled="true"
  32. placeholder-style="padding: 10rpx;"
  33. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  34. auto-height>{{value.remark}}</textarea>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="cz-style" v-for="(a,index) in value.zEngineeringMaterialBo" :key="index"
  39. v-if="title=='焊接、防腐'||title=='下管'||title=='沟下连头'||title=='架空管线'||title=='焊接'">
  40. <view class="uni-media-list-text-top" style=" ">
  41. <view class="tit-text">材质:</view>
  42. <view class="normal-text">{{a.materialQualityName}}</view>
  43. </view>
  44. <view class="uni-media-list-text-top" style=" ">
  45. <view class="tit-text">规格:</view>
  46. <view class="normal-text">{{a.specificationsName}}</view>
  47. </view>
  48. <view class="uni-media-list-text-top" style=" ">
  49. <view class="tit-text">数量:</view>
  50. <view class="normal-text">{{a.number}}</view>
  51. </view>
  52. </view>
  53. <view class="uni-media-list-text-top">
  54. <view class="tit-text">负责人:</view>
  55. <view class="normal-text">{{value.constructUser}}</view>
  56. </view>
  57. <view class="uni-media-list-text-top">
  58. <view class="tit-text">负责人联系电话:</view>
  59. <view class="normal-text">{{value.constructPhone}}</view>
  60. </view>
  61. <view v-if="title!='回填、撤场'&&title!='调压柜'">
  62. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  63. <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index"
  64. style="position: relative;">
  65. <view
  66. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  67. <image :src="item" mode=""
  68. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  69. @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
  70. </image>
  71. </view>
  72. <view v-else>
  73. <video :src="item"
  74. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view v-else-if="title=='调压柜'">
  80. <view class="uni-common-mt" style="width: 100%;">
  81. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  82. #000;margin-top: 5px;margin-left: 8px;">调压箱名牌照片:</text>
  83. </view>
  84. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  85. <view v-for="(item,index) in value.boxBrand" :key="index"
  86. style="position: relative;">
  87. <view
  88. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  89. <image :src="item" mode=""
  90. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  91. @click="showPhoto(index,value.boxBrand)">
  92. </image>
  93. </view>
  94. <view v-else>
  95. <video :src="item"
  96. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="uni-common-mt" style="width: 100%;">
  101. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  102. #000;margin-top: 5px;margin-left: 8px;">调压箱内石粉回填照片:</text>
  103. </view>
  104. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  105. <view v-for="(item,index) in value.stonePowder" :key="index"
  106. style="position: relative;">
  107. <view
  108. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  109. <image :src="item" mode=""
  110. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  111. @click="showPhoto(index,value.stonePowder)">
  112. </image>
  113. </view>
  114. <view v-else>
  115. <video :src="item"
  116. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="uni-common-mt" style="width: 100%;">
  121. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  122. #000;margin-top: 5px;margin-left: 8px;">调压箱防雷接地照片:</text>
  123. </view>
  124. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  125. <view v-for="(item,index) in value.lightning" :key="index"
  126. style="position: relative;">
  127. <view
  128. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  129. <image :src="item" mode=""
  130. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  131. @click="showPhoto(index,value.lightning)">
  132. </image>
  133. </view>
  134. <view v-else>
  135. <video :src="item"
  136. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="uni-common-mt" style="width: 100%;">
  141. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  142. #000;margin-top: 5px;margin-left: 8px;">调压箱底腿连接照片:</text>
  143. </view>
  144. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  145. <view v-for="(item,index) in value.bottomLeg" :key="index"
  146. style="position: relative;">
  147. <view
  148. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  149. <image :src="item" mode=""
  150. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  151. @click="showPhoto(index,value.bottomLeg)">
  152. </image>
  153. </view>
  154. <view v-else>
  155. <video :src="item"
  156. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="uni-common-mt" style="width: 100%;">
  161. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  162. #000;margin-top: 5px;margin-left: 8px;">调压箱护栏及地面硬化(远景)照片:</text>
  163. </view>
  164. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  165. <view v-for="(item,index) in value.groundHardening" :key="index"
  166. style="position: relative;">
  167. <view
  168. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  169. <image :src="item" mode=""
  170. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  171. @click="showPhoto(index,value.groundHardening)">
  172. </image>
  173. </view>
  174. <view v-else>
  175. <video :src="item"
  176. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. <view v-else>
  182. <view class="uni-common-mt" style="width: 100%;">
  183. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  184. #000;margin-top: 5px; margin-left: 8px;">回填前照片:</text>
  185. </view>
  186. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  187. <view v-for="(item,index) in value.zEngiineeringPhotoBoListOne" :key="index"
  188. style="position: relative;">
  189. <view
  190. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  191. <image :src="item" mode=""
  192. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  193. @click="showPhoto(index,value.zEngiineeringPhotoBoListOne)">
  194. </image>
  195. </view>
  196. <view v-else>
  197. <video :src="item"
  198. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  199. </view>
  200. </view>
  201. </view>
  202. <view class="uni-common-mt" style="width: 100%;">
  203. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  204. #000;margin-top: 5px; margin-left: 8px;">警示带铺设照片:</text>
  205. </view>
  206. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  207. <view v-for="(item,index) in value.zEngiineeringPhotoBoListTwo" :key="index"
  208. style="position: relative;">
  209. <view
  210. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  211. <image :src="item" mode=""
  212. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  213. @click="showPhoto(index,value.zEngiineeringPhotoBoListTwo)">
  214. </image>
  215. </view>
  216. <view v-else>
  217. <video :src="item"
  218. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  219. </view>
  220. </view>
  221. </view>
  222. <view class="uni-common-mt" style="width: 100%;">
  223. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  224. #000;margin-top: 5px; margin-left: 8px;">回填后照片:</text>
  225. </view>
  226. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  227. <view v-for="(item,index) in value.zEngiineeringPhotoBoListThree" :key="index"
  228. style="position: relative;">
  229. <view
  230. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  231. <image :src="item" mode=""
  232. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  233. @click="showPhoto(index,value.zEngiineeringPhotoBoListThree)">
  234. </image>
  235. </view>
  236. <view v-else>
  237. <video :src="item"
  238. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  239. </view>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. </view>
  246. </scroll-view>
  247. </view>
  248. </view>
  249. </template>
  250. <script>
  251. export default {
  252. props: {
  253. data: {
  254. type: Object,
  255. default: {}
  256. },
  257. TitleType: {
  258. type: String
  259. }
  260. },
  261. created() {
  262. this.getParamsData();
  263. },
  264. watch: {
  265. data(data) {
  266. this.getParamsData();
  267. }
  268. },
  269. data() {
  270. return {
  271. outPutData: {},
  272. historyList: [], //历史数据
  273. historyPhotoList: [], //历史图片数据
  274. shareState: false,
  275. title: '',
  276. };
  277. },
  278. methods: {
  279. // isEmpty(str) {
  280. // return (!str || 0 === str.length);
  281. // },
  282. showPhoto(index, list) {
  283. let newArr = [];
  284. list.forEach((item, index) => {
  285. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  286. item.substring(item.length - 4) == 'jpeg') {
  287. newArr.push(item)
  288. }
  289. });
  290. uni.previewImage({
  291. current: index,
  292. urls: newArr,
  293. })
  294. },
  295. getParamsData() {
  296. var selectData = this.data;
  297. this.outPutData = selectData;
  298. this.title = this.TitleType;
  299. this.historyList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList;
  300. },
  301. // 显示分享
  302. handleShowShare() {
  303. this.shareState = true;
  304. },
  305. // 隐藏分享
  306. handleHiddenShare() {
  307. this.shareState = false;
  308. }
  309. }
  310. }
  311. </script>
  312. <style lang="scss">
  313. .uni-media-list-body {
  314. border: 1px solid #eee;
  315. border-radius: 40rpx;
  316. margin: 10rpx 30rpx 20rpx;
  317. padding: 10rpx 0 40rpx;
  318. box-shadow: 0 0 5px #eee;
  319. }
  320. .share {
  321. width: 100%;
  322. height: 100%;
  323. }
  324. .tit-text {
  325. color: #4f535a;
  326. margin-right: 20rpx;
  327. }
  328. .normal-text {}
  329. .cz-style {
  330. background: #e8f4f9;
  331. margin: 20rpx;
  332. padding: 10rpx;
  333. border-radius: 20rpx;
  334. border: 1px solid #d4e3f0;
  335. }
  336. .uni-media-list-text-top {
  337. font-size: 14px;
  338. color: #696969;
  339. padding: 20rpx 20rpx;
  340. border-bottom: 1px solid #eee;
  341. display: flex;
  342. align-items: center;
  343. }
  344. .share-box {
  345. width: 100%;
  346. height: 100%;
  347. position: fixed;
  348. top: 0rpx;
  349. left: 0rpx;
  350. bottom: 0rpx;
  351. right: 0rpx;
  352. background-color: rgba(0, 0, 0, 0.4);
  353. transition: .3s;
  354. z-index: 999;
  355. }
  356. // 进入分享动画
  357. .share-show {
  358. transition: all 0.3s ease;
  359. transform: translateY(0%) !important;
  360. border-radius: 20px 20px 0px 0px;
  361. }
  362. .scroll-Y {
  363. height: 58vh;
  364. }
  365. // 离开分享动画
  366. .share-item {
  367. position: fixed;
  368. left: 0;
  369. bottom: 0;
  370. width: 100%;
  371. height: 70%;
  372. background-color: #FFFFFF;
  373. transition: all 0.3s ease;
  374. transform: translateY(100%);
  375. z-index: 1999;
  376. .share-to {
  377. width: 100%;
  378. height: 30px;
  379. display: flex;
  380. justify-content: center;
  381. margin: 30rpx 0;
  382. align-items: center;
  383. // &::after {
  384. // content: '';
  385. // width: 240rpx;
  386. // height: 0rpx;
  387. // border-top: 1px solid #E4E7ED;
  388. // -webkit-transform: scaleY(0.5);
  389. // transform: scaleY(0.5);
  390. // margin-left: 30rpx;
  391. // }
  392. // &::before {
  393. // content: '';
  394. // width: 240rpx;
  395. // height: 0rpx;
  396. // border-top: 1px solid #E4E7ED;
  397. // -webkit-transform: scaleY(0.5);
  398. // transform: scaleY(0.5);
  399. // margin-right: 30rpx;
  400. // }
  401. }
  402. .content {
  403. width: 100%;
  404. height: auto;
  405. display: flex;
  406. flex-wrap: wrap;
  407. .block {
  408. width: 100%;
  409. display: flex;
  410. flex-direction: column;
  411. justify-content: center;
  412. align-items: left;
  413. height: auto;
  414. image {
  415. width: 80rpx;
  416. height: 80rpx;
  417. }
  418. text {
  419. margin-top: 16rpx;
  420. font-size: 28rpx;
  421. color: #606266;
  422. }
  423. }
  424. }
  425. .cancel {
  426. width: 100%;
  427. height: 3rem;
  428. display: flex;
  429. justify-content: center;
  430. align-items: center;
  431. border-top: 1rpx solid #E4E7ED;
  432. }
  433. }
  434. </style>