planDetail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <!-- 计划详情 -->
  2. <template>
  3. <view class="planDetail">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="title">
  6. <view class="title-t">{{newData.data1}}</view>
  7. <view class="title-b">
  8. <view v-for="(item,index) in newData.data2" :key="index">{{item}}</view>
  9. </view>
  10. </view>
  11. <view class="box">
  12. <view class="content-li">
  13. <view>检查周期</view>
  14. <view>{{newData.data3}}</view>
  15. </view>
  16. <view class="content-li">
  17. <view>检查范围</view>
  18. <view>{{newData.data4}}</view>
  19. </view>
  20. <view class="content-li">
  21. <view>检查组织</view>
  22. <view>{{newData.data5}}</view>
  23. </view>
  24. <view class="content-li-tow">
  25. <view>检查要求</view>
  26. <view>{{newData.data6}}</view>
  27. </view>
  28. </view>
  29. <view class="small-title">
  30. <view>材料附件</view>
  31. <view>
  32. <text>{{newData.data7}}个</text>
  33. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  34. </view>
  35. </view>
  36. <view class="list" v-for="(item,index) in newData.data8">
  37. <view class="subscript">{{index+1}}</view>
  38. <view class="list-li">
  39. <view>第1次检查</view>
  40. <view :id="item.status==0?'color-A':(item.status==1?'color-B':'color-C')">{{item.data1}}</view>
  41. </view>
  42. <view class="list-li">
  43. <view>检查开始日期</view>
  44. <view>{{item.data2}}</view>
  45. </view>
  46. <view class="list-li">
  47. <view>整改期限</view>
  48. <view class="rectify-term">
  49. <text class="rectify-term-l" v-if="item.status==4">逾期未完成整改关闭实验室</text>
  50. <text class="rectify-term-c" v-if="item.status==4">丨</text>
  51. <text class="rectify-term-r">{{item.data3}}</text>
  52. </view>
  53. </view>
  54. <view class="list-li">
  55. <view>检查依据</view>
  56. <view>{{item.data4}}</view>
  57. </view>
  58. </view>
  59. </scroll-view>
  60. </view>
  61. </template>
  62. <script>
  63. import {
  64. config
  65. } from '@/api/request/config.js'
  66. import {
  67. chemicalAppletGetStockDetail
  68. } from '@/pages/api/index.js'
  69. export default {
  70. name: "planDetail",
  71. components: {
  72. },
  73. data() {
  74. return {
  75. baseUrl: config.base_url,
  76. pageType: 0,
  77. newData: {
  78. data1: '计划标题计划标题计划标题计划标题计划标题计标题计划标题计划标题',
  79. data2: ['校级检查', '全面检查', '交叉检查'],
  80. data3: '2024-04-01至2024-08-31',
  81. data4: '共33间实验室',
  82. data5: '督导组名称',
  83. data6: '内容内容内容内容内容内容内容内容内内容内容 内容内容容内容内容内容内容内容内容内容内容 内容内容内容内容内容内容内容内容',
  84. data7: '2',
  85. data8: [{
  86. data1: '未开始',
  87. data2: '2024-09-06',
  88. data3: '2024-09-06',
  89. data4: '全部检查项',
  90. status: 0,
  91. },
  92. {
  93. data1: '进行中',
  94. data2: '2024-09-06',
  95. data3: '2024-09-06',
  96. data4: '全部检查项',
  97. status: 1,
  98. },
  99. ],
  100. },
  101. }
  102. },
  103. onLoad(option) {
  104. this.$set(this, 'newData', JSON.parse(decodeURIComponent(option.infoData)));
  105. },
  106. onShow() {
  107. },
  108. mounted() {
  109. },
  110. methods: {
  111. //滚动事件
  112. scrollGet() {},
  113. }
  114. }
  115. </script>
  116. <style lang="stylus" scoped>
  117. .planDetail {
  118. height: 100%;
  119. display flex;
  120. box-sizing: border-box;
  121. padding: 0 30rpx;
  122. box-sizing: border-box;
  123. .title {
  124. width: 689rpx;
  125. min-height: 200rpx;
  126. background: #FFFFFF;
  127. border-radius: 0rpx 0rpx 20rpx 20rpx;
  128. padding: 20rpx 30rpx 0;
  129. box-sizing: border-box;
  130. .title-t {
  131. font-size: 30rpx;
  132. color: #333333;
  133. line-height: 42rpx;
  134. text-align: left;
  135. }
  136. .title-b {
  137. display: flex;
  138. justify-content: flex-start;
  139. margin-top: 16rpx;
  140. >view {
  141. width: 130rpx;
  142. height: 50rpx;
  143. background: rgba(1, 131, 250, 0.2);
  144. border-radius: 6rpx 6rpx 6rpx 6rpx;
  145. font-size: 24rpx;
  146. color: #0183FA;
  147. line-height: 50rpx;
  148. text-align: center;
  149. margin-right: 14rpx;
  150. }
  151. }
  152. }
  153. .box {
  154. width: 689rpx;
  155. min-height: 500rpx;
  156. background: #FFFFFF;
  157. border-radius: 20rpx 20rpx 20rpx 20rpx;
  158. margin-top: 20rpx;
  159. .content-li {
  160. height: 80rpx;
  161. border-bottom: 1rpx solid #E0E0E0;
  162. display: flex;
  163. justify-content: space-between;
  164. padding: 0 30rpx;
  165. box-sizing: border-box;
  166. >view:nth-of-type(1) {
  167. font-size: 30rpx;
  168. color: #333333;
  169. line-height: 80rpx;
  170. text-align: left;
  171. }
  172. >view:nth-of-type(2) {
  173. font-size: 30rpx;
  174. color: #666666;
  175. line-height: 80rpx;
  176. text-align: right;
  177. }
  178. }
  179. .content-li-tow {
  180. padding: 0 30rpx;
  181. box-sizing: border-box;
  182. >view:nth-of-type(1) {
  183. font-size: 30rpx;
  184. color: #333333;
  185. line-height: 80rpx;
  186. text-align: left;
  187. }
  188. >view:nth-of-type(2) {
  189. padding: 20rpx;
  190. box-sizing: border-box;
  191. width: 630rpx;
  192. min-height: 160rpx;
  193. background: #F5F5F5;
  194. border-radius: 20rpx 20rpx 20rpx 20rpx;
  195. font-size: 28rpx;
  196. color: #666666;
  197. line-height: 39rpx;
  198. text-align: left;
  199. }
  200. }
  201. }
  202. .small-title {
  203. display: flex;
  204. justify-content: space-between;
  205. padding: 0 30rpx;
  206. box-sizing: border-box;
  207. >view:nth-of-type(1) {
  208. font-size: 30rpx;
  209. color: #333333;
  210. line-height: 80rpx;
  211. text-align: left;
  212. }
  213. >view:nth-of-type(2) {
  214. display: flex;
  215. justify-content: flex-start;
  216. align-items: center;
  217. >text {
  218. font-size: 28rpx;
  219. color: #0183FA;
  220. line-height: 80rpx;
  221. text-align: left;
  222. }
  223. >img {
  224. width: 24rpx;
  225. height: 24rpx;
  226. margin-left: 12rpx;
  227. }
  228. }
  229. }
  230. .list {
  231. width: 690rpx;
  232. height: 323rpx;
  233. background: #FFFFFF;
  234. border-radius: 20rpx 20rpx 20rpx 20rpx;
  235. padding: 0 30rpx;
  236. box-sizing: border-box;
  237. margin-bottom: 20rpx;
  238. position: relative;
  239. .subscript {
  240. position: absolute;
  241. left: 0;
  242. top: 0;
  243. width: 36rpx;
  244. height: 36rpx;
  245. background: #0183FA;
  246. border-radius: 20rpx 0rpx 20rpx 0rpx;
  247. font-size: 24rpx;
  248. color: #FFFFFF;
  249. line-height: 36rpx;
  250. text-align: center;
  251. }
  252. .list-li {
  253. border-bottom: 1rpx solid #E0E0E0;
  254. display: flex;
  255. justify-content: space-between;
  256. >view:nth-of-type(1) {
  257. font-size: 28rpx;
  258. color: #333333;
  259. line-height: 80rpx;
  260. text-align: left;
  261. }
  262. >view:nth-of-type(2) {
  263. font-size: 28rpx;
  264. color: #666666;
  265. line-height: 80rpx;
  266. text-align: left;
  267. }
  268. }
  269. .rectify-term {
  270. .rectify-term-l {
  271. font-size: 24rpx;
  272. color: #FF8C00;
  273. line-height: 34rpx;
  274. text-align: left;
  275. }
  276. .rectify-term-c {
  277. color: #666666;
  278. }
  279. .rectify-term-r {
  280. font-size: 28rpx;
  281. color: #666666;
  282. line-height: 80rpx;
  283. text-align: left;
  284. }
  285. }
  286. .list-li:last-of-type {
  287. border: none;
  288. }
  289. }
  290. #color-A {
  291. color: #FF8C00;
  292. }
  293. #color-B {
  294. color: #0183FA;
  295. }
  296. #color-C {
  297. color: #16B531;
  298. }
  299. }
  300. </style>