planDetail.vue 7.6 KB

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