bottomSheet.vue 14 KB

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