bottomSheetMoreNew.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  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=='除锈刷油'||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!='调压柜'&&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-if="title=='阀井'">
  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.cannula" :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.cannula)">
  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.wallPlaster" :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.wallPlaster)">
  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.protectiveNet" :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.protectiveNet)">
  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 class="uni-common-mt" style="width: 100%;">
  243. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  244. #000;margin-top: 5px;margin-left: 8px;">八角照片:</text>
  245. </view>
  246. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  247. <view v-for="(item,index) in value.starAnise" :key="index"
  248. style="position: relative;">
  249. <view
  250. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  251. <image :src="item" mode=""
  252. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  253. @click="showPhoto(index,value.starAnise)">
  254. </image>
  255. </view>
  256. <view v-else>
  257. <video :src="item"
  258. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. <view v-else-if="title=='回填、撤场'">
  264. <view class="uni-common-mt" style="width: 100%;">
  265. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  266. #000;margin-top: 5px; margin-left: 8px;">回填前照片:</text>
  267. </view>
  268. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  269. <view v-for="(item,index) in value.zEngiineeringPhotoBoListOne" :key="index"
  270. style="position: relative;">
  271. <view
  272. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  273. <image :src="item" mode=""
  274. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  275. @click="showPhoto(index,value.zEngiineeringPhotoBoListOne)">
  276. </image>
  277. </view>
  278. <view v-else>
  279. <video :src="item"
  280. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  281. </view>
  282. </view>
  283. </view>
  284. <view class="uni-common-mt" style="width: 100%;">
  285. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  286. #000;margin-top: 5px; margin-left: 8px;">警示带铺设照片:</text>
  287. </view>
  288. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  289. <view v-for="(item,index) in value.zEngiineeringPhotoBoListTwo" :key="index"
  290. style="position: relative;">
  291. <view
  292. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  293. <image :src="item" mode=""
  294. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  295. @click="showPhoto(index,value.zEngiineeringPhotoBoListTwo)">
  296. </image>
  297. </view>
  298. <view v-else>
  299. <video :src="item"
  300. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  301. </view>
  302. </view>
  303. </view>
  304. <view class="uni-common-mt" style="width: 100%;">
  305. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  306. #000;margin-top: 5px; margin-left: 8px;">回填后照片:</text>
  307. </view>
  308. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  309. <view v-for="(item,index) in value.zEngiineeringPhotoBoListThree" :key="index"
  310. style="position: relative;">
  311. <view
  312. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  313. <image :src="item" mode=""
  314. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  315. @click="showPhoto(index,value.zEngiineeringPhotoBoListThree)">
  316. </image>
  317. </view>
  318. <view v-else>
  319. <video :src="item"
  320. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  321. </view>
  322. </view>
  323. </view>
  324. </view>
  325. </view>
  326. </view>
  327. </view>
  328. </scroll-view>
  329. </view>
  330. </view>
  331. </template>
  332. <script>
  333. export default {
  334. props: {
  335. data: {
  336. type: Object,
  337. default: {}
  338. },
  339. TitleType: {
  340. type: String
  341. }
  342. },
  343. created() {
  344. this.getParamsData();
  345. },
  346. watch: {
  347. data(data) {
  348. this.getParamsData();
  349. }
  350. },
  351. data() {
  352. return {
  353. outPutData: {},
  354. historyList: [], //历史数据
  355. historyPhotoList: [], //历史图片数据
  356. shareState: false,
  357. title: '',
  358. };
  359. },
  360. methods: {
  361. // isEmpty(str) {
  362. // return (!str || 0 === str.length);
  363. // },
  364. showPhoto(index, list) {
  365. let newArr = [];
  366. list.forEach((item, index) => {
  367. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  368. item.substring(item.length - 4) == 'jpeg') {
  369. newArr.push(item)
  370. }
  371. });
  372. uni.previewImage({
  373. current: index,
  374. urls: newArr,
  375. })
  376. },
  377. getParamsData() {
  378. var selectData = this.data;
  379. this.outPutData = selectData;
  380. this.title = this.TitleType;
  381. this.historyList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList;
  382. },
  383. // 显示分享
  384. handleShowShare() {
  385. this.shareState = true;
  386. },
  387. // 隐藏分享
  388. handleHiddenShare() {
  389. this.shareState = false;
  390. }
  391. }
  392. }
  393. </script>
  394. <style lang="scss">
  395. .uni-media-list-body {
  396. border: 1px solid #eee;
  397. border-radius: 40rpx;
  398. margin: 10rpx 30rpx 20rpx;
  399. padding: 10rpx 0 40rpx;
  400. box-shadow: 0 0 5px #eee;
  401. }
  402. .share {
  403. width: 100%;
  404. height: 100%;
  405. }
  406. .tit-text {
  407. color: #4f535a;
  408. margin-right: 20rpx;
  409. }
  410. .normal-text {}
  411. .cz-style {
  412. background: #e8f4f9;
  413. margin: 20rpx;
  414. padding: 10rpx;
  415. border-radius: 20rpx;
  416. border: 1px solid #d4e3f0;
  417. }
  418. .uni-media-list-text-top {
  419. font-size: 14px;
  420. color: #696969;
  421. padding: 20rpx 20rpx;
  422. border-bottom: 1px solid #eee;
  423. display: flex;
  424. align-items: center;
  425. }
  426. .share-box {
  427. width: 100%;
  428. height: 100%;
  429. position: fixed;
  430. top: 0rpx;
  431. left: 0rpx;
  432. bottom: 0rpx;
  433. right: 0rpx;
  434. background-color: rgba(0, 0, 0, 0.4);
  435. transition: .3s;
  436. z-index: 999;
  437. }
  438. // 进入分享动画
  439. .share-show {
  440. transition: all 0.3s ease;
  441. transform: translateY(0%) !important;
  442. border-radius: 20px 20px 0px 0px;
  443. }
  444. .scroll-Y {
  445. height: 58vh;
  446. }
  447. // 离开分享动画
  448. .share-item {
  449. position: fixed;
  450. left: 0;
  451. bottom: 0;
  452. width: 100%;
  453. height: 70%;
  454. background-color: #FFFFFF;
  455. transition: all 0.3s ease;
  456. transform: translateY(100%);
  457. z-index: 1999;
  458. .share-to {
  459. width: 100%;
  460. height: 30px;
  461. display: flex;
  462. justify-content: center;
  463. margin: 30rpx 0;
  464. align-items: center;
  465. // &::after {
  466. // content: '';
  467. // width: 240rpx;
  468. // height: 0rpx;
  469. // border-top: 1px solid #E4E7ED;
  470. // -webkit-transform: scaleY(0.5);
  471. // transform: scaleY(0.5);
  472. // margin-left: 30rpx;
  473. // }
  474. // &::before {
  475. // content: '';
  476. // width: 240rpx;
  477. // height: 0rpx;
  478. // border-top: 1px solid #E4E7ED;
  479. // -webkit-transform: scaleY(0.5);
  480. // transform: scaleY(0.5);
  481. // margin-right: 30rpx;
  482. // }
  483. }
  484. .content {
  485. width: 100%;
  486. height: auto;
  487. display: flex;
  488. flex-wrap: wrap;
  489. .block {
  490. width: 100%;
  491. display: flex;
  492. flex-direction: column;
  493. justify-content: center;
  494. align-items: left;
  495. height: auto;
  496. image {
  497. width: 80rpx;
  498. height: 80rpx;
  499. }
  500. text {
  501. margin-top: 16rpx;
  502. font-size: 28rpx;
  503. color: #606266;
  504. }
  505. }
  506. }
  507. .cancel {
  508. width: 100%;
  509. height: 3rem;
  510. display: flex;
  511. justify-content: center;
  512. align-items: center;
  513. border-top: 1rpx solid #E4E7ED;
  514. }
  515. }
  516. </style>