planDetail.vue 7.5 KB

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