planDetail.vue 7.3 KB

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