planDetail.vue 7.7 KB

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