todayCheck.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. <tm-no-data v-if="list.length === 0"
  51. :textArr="['暂时没有内容可以展示哦', '请返回上一页面或尝试刷新页面']" />
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. list: [],
  59. date: "",
  60. };
  61. },
  62. mounted() {
  63. this.getList();
  64. },
  65. methods: {
  66. getList() {
  67. this.$store
  68. .dispatch({
  69. type: "todayCheck/commActions",
  70. payload: {
  71. key: "specificCheckTaskList",
  72. data: {
  73. specificDate: this.date,
  74. },
  75. },
  76. })
  77. .then((res) => {
  78. if (res) {
  79. this.list = res;
  80. }
  81. });
  82. },
  83. goToPonitDetails(data) {
  84. // console.log(data)
  85. uni.navigateTo({
  86. url: `/pages/checkMainPoints/checkMainPoints?checkId=${data.checkId}&deptId=${data.deptId}&situationType=${data.situationType}`,
  87. });
  88. },
  89. },
  90. onLoad({ date }) {
  91. this.date = date;
  92. },
  93. };
  94. </script>
  95. <style lang="less">
  96. .todayCheckPage {
  97. padding: 0rpx 25rpx;
  98. height: 100%;
  99. width: 100%;
  100. .content {
  101. width: 100%;
  102. .contTitle {
  103. font-size: 22.5rpx;
  104. color: #666f80;
  105. height: 22.5rpx;
  106. line-height: 22.5rpx;
  107. margin: 25rpx 0rpx 15rpx;
  108. .contTitleLeft {
  109. display: inline-block;
  110. width: 60%;
  111. text-align: left;
  112. }
  113. .contTitleRight {
  114. display: inline-block;
  115. width: 40%;
  116. text-align: right;
  117. }
  118. }
  119. .contCon {
  120. .conEveryCon {
  121. margin-bottom: 25rpx;
  122. padding: 25rpx 25rpx 0rpx;
  123. background-color: #fff;
  124. height: 225rpx;
  125. border-radius: 5rpx;
  126. position: relative;
  127. .title {
  128. margin-bottom: 10rpx;
  129. color: #292c33;
  130. // vertical-align: top;
  131. .name {
  132. height: 35rpx;
  133. display: inline-block;
  134. font-size: 35rpx;
  135. font-weight: 400;
  136. }
  137. .buMen {
  138. margin-left: 20rpx;
  139. display: inline-block;
  140. // width: 117.5rpx;
  141. height: 35rpx;
  142. background-color: #edf2fa;
  143. border-radius: 17.5rpx;
  144. line-height: 82.5rpx;
  145. vertical-align: top;
  146. .img {
  147. vertical-align: top;
  148. width: 35rpx;
  149. height: 35rpx;
  150. }
  151. .keshi {
  152. margin-left: 10rpx;
  153. margin-right: 20rpx;
  154. display: inline-block;
  155. vertical-align: top;
  156. font-size: 17.5rpx;
  157. line-height: 35rpx;
  158. }
  159. }
  160. }
  161. .status {
  162. width: 100rpx;
  163. height: 35rpx;
  164. position: absolute;
  165. top: 0rpx;
  166. right: 0rpx;
  167. .bgImg {
  168. width: 100rpx;
  169. height: 35rpx;
  170. }
  171. .statusType {
  172. width: 100%;
  173. position: absolute;
  174. top: 8.75rpx;
  175. right: 0rpx;
  176. font-size: 17.5rpx;
  177. line-height: 17.5rpx;
  178. color: #fff;
  179. text-align: center;
  180. }
  181. }
  182. .points {
  183. font-size: 20rpx;
  184. color: #292c33;
  185. line-height: 50rpx;
  186. font-weight: bold;
  187. }
  188. .pointsGK {
  189. overflow: hidden;
  190. padding-bottom: 25rpx;
  191. border-bottom: 0.62rpx solid #dadee6;
  192. font-size: 20rpx;
  193. white-space: nowrap;
  194. text-overflow: ellipsis;
  195. color: #666f80;
  196. }
  197. .checkName {
  198. // padding-top: 20.62rpx;
  199. // width: 22%;
  200. display: inline-block;
  201. color: #666e80;
  202. text-align: left;
  203. line-height: 17.5rpx;
  204. font-size: 17.5rpx;
  205. position: absolute;
  206. left: 25rpx;
  207. bottom: 21.25rpx;
  208. }
  209. .checkTime {
  210. // padding-top: 20.62rpx;
  211. // width: 78%;
  212. display: inline-block;
  213. color: #666e80;
  214. text-align: right;
  215. line-height: 17.5rpx;
  216. font-size: 17.5rpx;
  217. position: absolute;
  218. right: 25rpx;
  219. bottom: 21.25rpx;
  220. }
  221. }
  222. }
  223. }
  224. }
  225. </style>