todayCheck.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view class="todayCheckPage">
  3. <view class="content" v-for="item in list">
  4. <view class="contTitle">
  5. <text class="contTitleLeft">{{ item.situationName }}</text>
  6. <text class="contTitleRight">{{ item.checkPlan }}</text>
  7. </view>
  8. <view class="contCon">
  9. <view
  10. v-for="items in item.planDepListReps"
  11. class="conEveryCon"
  12. @click="goToPonitDetails(items)"
  13. >
  14. <view class="title">
  15. <view class="name">{{ items.deptName }}</view>
  16. <view class="buMen">
  17. <image
  18. src="../../static/icon-map-dis.png"
  19. mode=""
  20. class="img"
  21. ></image>
  22. <view class="keshi">{{ items.deptClassName }}</view>
  23. </view>
  24. </view>
  25. <view class="status">
  26. <image
  27. :src="
  28. items.completeDes == '已完成'
  29. ? '../../static/top-img.png'
  30. : items.completeDes == '查核中'
  31. ? '../../static/hight-bg.png'
  32. : '../../static/disabled-bg.png'
  33. "
  34. mode=""
  35. class="bgImg"
  36. ></image>
  37. <text class="statusType">{{ items.completeDes }}</text>
  38. </view>
  39. <view class="points">{{ items.decs }}</view>
  40. <view class="pointsGK">要点概括:{{ items.checkPointNames }}</view>
  41. <view>
  42. <view class="checkName">{{ items.empName }}</view>
  43. <view class="checkTime"
  44. >{{ items.startDate }}~{{ items.endDate }}</view
  45. >
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. list: [],
  57. date: "",
  58. };
  59. },
  60. mounted() {
  61. this.getList();
  62. },
  63. methods: {
  64. getList() {
  65. this.$store
  66. .dispatch({
  67. type: "todayCheck/commActions",
  68. payload: {
  69. key: "specificCheckTaskList",
  70. data: {
  71. specificDate: this.date,
  72. },
  73. },
  74. })
  75. .then((res) => {
  76. if (res) {
  77. this.list = res;
  78. }
  79. });
  80. },
  81. goToPonitDetails(data) {
  82. // console.log(data)
  83. // uni.navigateTo({
  84. // url: `/pages/messages/messages?id=${data.checkId}`,
  85. // });
  86. },
  87. },
  88. onLoad({ date }) {
  89. this.date = date;
  90. },
  91. };
  92. </script>
  93. <style lang="less">
  94. .todayCheckPage {
  95. padding: 0rpx 25rpx;
  96. height: 100%;
  97. width: 100%;
  98. .content {
  99. width: 100%;
  100. .contTitle {
  101. font-size: 22.5rpx;
  102. color: #666f80;
  103. height: 22.5rpx;
  104. line-height: 22.5rpx;
  105. margin: 25rpx 0rpx 15rpx;
  106. .contTitleLeft {
  107. display: inline-block;
  108. width: 60%;
  109. text-align: left;
  110. }
  111. .contTitleRight {
  112. display: inline-block;
  113. width: 40%;
  114. text-align: right;
  115. }
  116. }
  117. .contCon {
  118. .conEveryCon {
  119. margin-bottom: 25rpx;
  120. padding: 25rpx 25rpx 0rpx;
  121. background-color: #fff;
  122. height: 225rpx;
  123. border-radius: 5rpx;
  124. position: relative;
  125. .title {
  126. margin-bottom: 10rpx;
  127. color: #292c33;
  128. // vertical-align: top;
  129. .name {
  130. height: 35rpx;
  131. display: inline-block;
  132. font-size: 35rpx;
  133. font-weight: 400;
  134. }
  135. .buMen {
  136. margin-left: 20rpx;
  137. display: inline-block;
  138. // width: 117.5rpx;
  139. height: 35rpx;
  140. background-color: #edf2fa;
  141. border-radius: 17.5rpx;
  142. line-height: 82.5rpx;
  143. vertical-align: top;
  144. .img {
  145. vertical-align: top;
  146. width: 35rpx;
  147. height: 35rpx;
  148. }
  149. .keshi {
  150. margin-left: 10rpx;
  151. margin-right: 20rpx;
  152. display: inline-block;
  153. vertical-align: top;
  154. font-size: 17.5rpx;
  155. line-height: 35rpx;
  156. }
  157. }
  158. }
  159. .status {
  160. width: 100rpx;
  161. height: 35rpx;
  162. position: absolute;
  163. top: 0rpx;
  164. right: 0rpx;
  165. .bgImg {
  166. width: 100rpx;
  167. height: 35rpx;
  168. }
  169. .statusType {
  170. width: 100%;
  171. position: absolute;
  172. top: 8.75rpx;
  173. right: 0rpx;
  174. font-size: 17.5rpx;
  175. line-height: 17.5rpx;
  176. color: #fff;
  177. text-align: center;
  178. }
  179. }
  180. .points {
  181. font-size: 20rpx;
  182. color: #292c33;
  183. line-height: 50rpx;
  184. font-weight: bold;
  185. }
  186. .pointsGK {
  187. padding-bottom: 25rpx;
  188. border-bottom: 0.62rpx solid #dadee6;
  189. font-size: 20rpx;
  190. color: #666f80;
  191. }
  192. .checkName {
  193. // padding-top: 20.62rpx;
  194. // width: 22%;
  195. display: inline-block;
  196. color: #666e80;
  197. text-align: left;
  198. line-height: 17.5rpx;
  199. font-size: 17.5rpx;
  200. position: absolute;
  201. left: 25rpx;
  202. bottom: 21.25rpx;
  203. }
  204. .checkTime {
  205. // padding-top: 20.62rpx;
  206. // width: 78%;
  207. display: inline-block;
  208. color: #666e80;
  209. text-align: right;
  210. line-height: 17.5rpx;
  211. font-size: 17.5rpx;
  212. position: absolute;
  213. right: 25rpx;
  214. bottom: 21.25rpx;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. </style>