bottomSheet.vue 13 KB

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