bottomSheet.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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" style="margin-left: 15px;">
  14. <view v-if="title=='拆旧管'">
  15. <view class="uni-media-list-text-top"
  16. style="font-size: 13px;color: #000;margin-top: 5px;">
  17. 腐蚀等级:{{value.zEngineeringMaterialBo[0].corrosionLevel}}</view>
  18. <view class="uni-media-list-text-top"
  19. style="font-size: 13px;color: #000;margin-top: 5px;">
  20. 施工时间:{{value.createTime}}</view>
  21. </view>
  22. <view v-if="title=='打孔'">
  23. <view class="uni-media-list-text-top"
  24. style="font-size: 13px;color: #000;margin-top: 5px;">
  25. 孔距:{{value.zEngineeringMaterialBo[0].corrosionLevel}}</view>
  26. <view class="uni-media-list-text-top"
  27. style="font-size: 13px;color: #000;margin-top: 5px;">
  28. 施工时间:{{value.createTime}}</view>
  29. </view>
  30. <view v-else-if="title=='立杠'||title=='表后管'">
  31. <view class="uni-media-list-text-top"
  32. style="font-size: 13px;color: #000;margin-top: 5px;">
  33. 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
  34. <view class="uni-media-list-text-top"
  35. style="font-size: 13px;color: #000;margin-top: 5px;">
  36. 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
  37. <view class="uni-media-list-text-top"
  38. style="font-size: 13px;color: #000;margin-top: 5px;">
  39. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  40. <view class="uni-media-list-text-top"
  41. style="font-size: 13px;color: #000;margin-top: 5px;">
  42. 施工时间:{{value.createTime}}</view>
  43. </view>
  44. <view v-else-if="title=='挂表'">
  45. <view class="uni-media-list-text-top"
  46. style="font-size: 13px;color: #000;margin-top: 5px;">
  47. 品牌:{{value.zEngineeringMaterialBo[0].brand}}</view>
  48. <view class="uni-media-list-text-top"
  49. style="font-size: 13px;color: #000;margin-top: 5px;">
  50. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  51. <view class="uni-media-list-text-top"
  52. style="font-size: 13px;color: #000;margin-top: 5px;">
  53. 施工时间:{{value.createTime}}</view>
  54. </view>
  55. <!-- <view v-else-if="title=='表后管'">
  56. <view class="uni-media-list-text-top"
  57. style="font-size: 13px;color: #000;margin-top: 5px;">
  58. 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
  59. <view class="uni-media-list-text-top"
  60. style="font-size: 13px;color: #000;margin-top: 5px;">
  61. 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
  62. <view class="uni-media-list-text-top"
  63. style="font-size: 13px;color: #000;margin-top: 5px;">
  64. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  65. <view class="uni-media-list-text-top"
  66. style="font-size: 13px;color: #000;margin-top: 5px;">
  67. 施工时间:{{value.createTime}}</view>
  68. </view> -->
  69. <view v-else-if="title=='阀管'">
  70. <view class="uni-media-list-text-top"
  71. style="font-size: 13px;color: #000;margin-top: 5px;">
  72. 上门类型:{{value.zEngineeringMaterialBo[0].visitType}}</view>
  73. <view class="uni-media-list-text-top"
  74. style="font-size: 13px;color: #000;margin-top: 5px;">
  75. 自闭阀类型:{{value.zEngineeringMaterialBo[0].selfClosingValveType}}</view>
  76. <view class="uni-media-list-text-top"
  77. style="font-size: 13px;color: #000;margin-top: 5px;">
  78. 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
  79. <view class="uni-media-list-text-top"
  80. style="font-size: 13px;color: #000;margin-top: 5px;">
  81. 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
  82. <view class="uni-media-list-text-top"
  83. style="font-size: 13px;color: #000;margin-top: 5px;">
  84. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  85. <view class="uni-media-list-text-top"
  86. style="font-size: 13px;color: #000;margin-top: 5px;">
  87. 施工时间:{{value.createTime}}</view>
  88. </view>
  89. <view v-else-if="title=='放线'||title=='挖沟'||title=='焊接'||title=='下沟'||title=='除锈'||title=='刷油'||title=='打磨'||title=='焊接'">
  90. <view class="uni-media-list-text-top"
  91. style="font-size: 13px;color: #000;margin-top: 5px;">
  92. 施工时间:{{value.constructTime}}</view>
  93. <view class="uni-media-list-text-top">
  94. <view class="uni-common-mt" style="width: 100%;">
  95. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  96. #000;margin-top: 5px;">施工内容:</text>
  97. <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
  98. <textarea class="textarea" maxlength="255" :disabled="true"
  99. placeholder-style="padding: 10rpx;"
  100. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  101. auto-height>{{value.remark}}</textarea>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="uni-media-list-text-top"
  106. style="font-size: 13px;color: #000;margin-top: 5px;">
  107. 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
  108. <view class="uni-media-list-text-top"
  109. style="font-size: 13px;color: #000;margin-top: 5px;">
  110. 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
  111. <view class="uni-media-list-text-top"
  112. style="font-size: 13px;color: #000;margin-top: 5px;">
  113. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  114. </view>
  115. <view v-else-if="title=='回填'">
  116. <view class="uni-media-list-text-top"
  117. style="font-size: 13px;color: #000;margin-top: 5px;">
  118. 施工时间:{{value.constructTime}}</view>
  119. <view class="uni-media-list-text-top"
  120. style="font-size: 13px;color: #000;margin-top: 5px;">
  121. 回填时间:{{value.backfillTime}}</view>
  122. <view class="uni-media-list-text-top">
  123. <view class="uni-common-mt" style="width: 100%;">
  124. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  125. #000;margin-top: 5px;">施工内容:</text>
  126. <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
  127. <textarea class="textarea" maxlength="255" :disabled="true"
  128. placeholder-style="padding: 10rpx;"
  129. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  130. auto-height>{{value.remark}}</textarea>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="uni-media-list-text-top"
  135. style="font-size: 13px;color: #000;margin-top: 5px;">
  136. 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
  137. <view class="uni-media-list-text-top"
  138. style="font-size: 13px;color: #000;margin-top: 5px;">
  139. 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
  140. <view class="uni-media-list-text-top"
  141. style="font-size: 13px;color: #000;margin-top: 5px;">
  142. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  143. </view>
  144. <view v-else-if="title=='打压'">
  145. <view class="uni-media-list-text-top"
  146. style="font-size: 13px;color: #000;margin-top: 5px;">
  147. 施工时间:{{value.constructTime}}</view>
  148. <view class="uni-media-list-text-top"
  149. style="font-size: 13px;color: #000;margin-top: 5px;">
  150. 分段打压是否台格:{{value.segmentedCompressionQualified=='Y'?'是':'否'}}</view>
  151. <view class="uni-media-list-text-top">
  152. <view class="uni-common-mt" style="width: 100%;">
  153. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  154. #000;margin-top: 5px;">施工内容:</text>
  155. <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
  156. <textarea class="textarea" maxlength="255" :disabled="true"
  157. placeholder-style="padding: 10rpx;"
  158. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  159. auto-height>{{value.remark}}</textarea>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="uni-media-list-text-top"
  164. style="font-size: 13px;color: #000;margin-top: 5px;">
  165. 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
  166. <view class="uni-media-list-text-top"
  167. style="font-size: 13px;color: #000;margin-top: 5px;">
  168. 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
  169. <view class="uni-media-list-text-top"
  170. style="font-size: 13px;color: #000;margin-top: 5px;">
  171. 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
  172. </view>
  173. <view class="uni-media-list-text-top">
  174. <text style="font-size: 13px;color: #000;margin-top: 5px;">负责人:</text>
  175. <text
  176. style="font-size: 13px;color: #000;margin-top: 5px;">{{value.constructUser}}</text>
  177. </view>
  178. <view class="uni-media-list-text-top">
  179. <text style="font-size: 13px;color: #000;margin-top: 5px;">负责人联系电话:</text>
  180. <text
  181. style="font-size: 13px;color: #000;margin-top: 5px;">{{value.constructPhone}}</text>
  182. </view>
  183. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  184. <text style="margin-left: 30rpx;margin-top: 6rpx;">{{ value.published_at }}</text>
  185. <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index"
  186. style="position: relative;">
  187. <view
  188. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  189. <image :src="item" mode=""
  190. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  191. @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
  192. </image>
  193. </view>
  194. <view v-else>
  195. <video :src="item"
  196. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. </scroll-view>
  204. </view>
  205. </view>
  206. </template>
  207. <script>
  208. export default {
  209. props: {
  210. data: {
  211. type: Object,
  212. default: {}
  213. },
  214. },
  215. created() {
  216. this.getParamsData();
  217. },
  218. watch: {
  219. data(data) {
  220. this.getParamsData();
  221. }
  222. },
  223. data() {
  224. return {
  225. outPutData: {},
  226. historyList: [], //历史数据
  227. historyPhotoList: [], //历史图片数据
  228. shareState: false,
  229. title: '',
  230. };
  231. },
  232. methods: {
  233. showPhoto(index, list) {
  234. uni.previewImage({
  235. current: index,
  236. urls: list,
  237. })
  238. },
  239. getParamsData() {
  240. var selectData = this.data;
  241. this.outPutData = selectData;
  242. this.title = selectData.zEngineeringNodeBo.type;
  243. this.historyList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList;
  244. //this.historyPhotoList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList.zEngiineeringPhotoBoList;
  245. },
  246. // 显示分享
  247. handleShowShare() {
  248. this.shareState = true;
  249. },
  250. // 隐藏分享
  251. handleHiddenShare() {
  252. this.shareState = false;
  253. }
  254. }
  255. }
  256. </script>
  257. <style lang="less">
  258. .share {
  259. width: 100%;
  260. height: 100%;
  261. }
  262. .share-box {
  263. width: 100%;
  264. height: 100%;
  265. position: fixed;
  266. top: 0rpx;
  267. left: 0rpx;
  268. bottom: 0rpx;
  269. right: 0rpx;
  270. background-color: rgba(0, 0, 0, 0.4);
  271. transition: .3s;
  272. z-index: 999;
  273. }
  274. // 进入分享动画
  275. .share-show {
  276. transition: all 0.3s ease;
  277. transform: translateY(0%) !important;
  278. border-radius: 20px 20px 0px 0px;
  279. }
  280. .scroll-Y {
  281. height: 750rpx;
  282. }
  283. // 离开分享动画
  284. .share-item {
  285. position: fixed;
  286. left: 0;
  287. bottom: 0;
  288. width: 100%;
  289. height: 70%;
  290. background-color: #FFFFFF;
  291. transition: all 0.3s ease;
  292. transform: translateY(100%);
  293. z-index: 1999;
  294. .share-to {
  295. width: 100%;
  296. height: 30px;
  297. display: flex;
  298. justify-content: left;
  299. margin-left: 15px;
  300. align-items: center;
  301. // &::after {
  302. // content: '';
  303. // width: 240rpx;
  304. // height: 0rpx;
  305. // border-top: 1px solid #E4E7ED;
  306. // -webkit-transform: scaleY(0.5);
  307. // transform: scaleY(0.5);
  308. // margin-left: 30rpx;
  309. // }
  310. // &::before {
  311. // content: '';
  312. // width: 240rpx;
  313. // height: 0rpx;
  314. // border-top: 1px solid #E4E7ED;
  315. // -webkit-transform: scaleY(0.5);
  316. // transform: scaleY(0.5);
  317. // margin-right: 30rpx;
  318. // }
  319. }
  320. .content {
  321. width: 100%;
  322. height: auto;
  323. display: flex;
  324. flex-wrap: wrap;
  325. .block {
  326. width: 100%;
  327. display: flex;
  328. flex-direction: column;
  329. justify-content: center;
  330. align-items: left;
  331. height: auto;
  332. image {
  333. width: 80rpx;
  334. height: 80rpx;
  335. }
  336. text {
  337. margin-top: 16rpx;
  338. font-size: 28rpx;
  339. color: #606266;
  340. }
  341. }
  342. }
  343. .cancel {
  344. width: 100%;
  345. height: 3rem;
  346. display: flex;
  347. justify-content: center;
  348. align-items: center;
  349. border-top: 1rpx solid #E4E7ED;
  350. }
  351. }
  352. </style>