records.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view>
  3. <u-navbar title="订餐上报"></u-navbar>
  4. <!-- 筛选 -->
  5. <view class="options">
  6. <view class="date-option" @click="changeDateShow">
  7. 2023年4月<u-icon name="arrow-down" size="24"></u-icon>
  8. <view class="date-box" v-if="dateShow">
  9. <view class="options-item">
  10. 2023年4月
  11. </view>
  12. </view>
  13. </view>
  14. <view class="department-option" @click="changeDepartmentShow">
  15. 全部部门<u-icon name="arrow-down" size="24"></u-icon>
  16. <view class="department-box" v-if="departmentShow">
  17. <view class="options-item">
  18. 全部部门
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 记录卡片 -->
  24. <view class="main">
  25. <view class="record-card" v-for="item in 6">
  26. <view class="record-title">
  27. <view class="date">
  28. 2023年4月10日 星期一
  29. </view>
  30. <view class="people-number">
  31. 订餐人数 <text class="num1">29</text>
  32. </view>
  33. </view>
  34. <view class="classify">
  35. <view class="item">
  36. <view class="type1">
  37. 机务段
  38. </view>
  39. <view class="number">
  40. 订餐人数 <text class="num2">10</text>
  41. </view>
  42. </view>
  43. <view class="item">
  44. <view class="type2">
  45. 荆州南
  46. </view>
  47. <view class="number">
  48. 订餐人数 <text class="num3">19</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <u-divider bg-color="#F2F4F4" border-color="#CFD2D5">没有更多数据了</u-divider>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data() {
  60. return {
  61. dateShow:false,
  62. departmentShow:false
  63. }
  64. },
  65. methods: {
  66. changeDateShow() {
  67. this.dateShow = !this.dateShow
  68. },
  69. changeDepartmentShow() {
  70. this.departmentShow = !this.departmentShow
  71. },
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. page{
  77. padding-bottom: 100px;
  78. font-family: 'PingFang Regular';
  79. }
  80. // 筛选
  81. .options{
  82. background-color: #fff;
  83. padding: 0 92rpx;
  84. line-height: 88rpx;
  85. display: flex;
  86. justify-content: space-between;
  87. color: #7D7D7D;
  88. .date-option,.department-option{
  89. position: relative;
  90. }
  91. /deep/.uicon-arrow-down{
  92. margin-left: 8rpx;
  93. }
  94. .date-box{
  95. background-color: #fff;
  96. z-index: 999;
  97. width: 180rpx;
  98. box-shadow: 0px 0px 2px #999999;
  99. position: absolute;
  100. top: 70rpx;
  101. right: 0px;
  102. .options-item {
  103. line-height: 60rpx;
  104. padding-left: 8rpx;
  105. background-color: #2A8EFB ;
  106. color: #fff;
  107. }
  108. }
  109. .department-box{
  110. background-color: #fff;
  111. z-index: 999;
  112. width: 180rpx;
  113. box-shadow: 0px 0px 2px #999999;
  114. position: absolute;
  115. top: 70rpx;
  116. left: 0px;
  117. .options-item {
  118. line-height: 60rpx;
  119. padding-left: 8rpx;
  120. background-color: #2A8EFB ;
  121. color: #fff;
  122. }
  123. }
  124. }
  125. // 记录卡片
  126. .main{
  127. padding: 0 32rpx;
  128. }
  129. .record-card {
  130. padding: 24rpx;
  131. margin-top: 24rpx;
  132. border-radius: 12px;
  133. background-color: rgba(255, 255, 255, 1);
  134. .record-title {
  135. display: flex;
  136. justify-content: space-between;
  137. align-items: center;
  138. margin-bottom: 16rpx;
  139. .date {
  140. color: rgba(51, 51, 51, 1);
  141. font-size: 32rpx;
  142. }
  143. .people-number {
  144. color: rgba(51, 51, 51, 1);
  145. font-size: 16px;
  146. text {
  147. margin-left: 8rpx;
  148. }
  149. }
  150. }
  151. .classify {
  152. display: flex;
  153. align-items: center;
  154. .item {
  155. display: flex;
  156. align-items: center;
  157. .type1 {
  158. width: 112rpx;
  159. height: 48rpx;
  160. line-height: 48rpx;
  161. border-radius: 4px;
  162. border: 1px solid rgba(96, 184, 201, 1);
  163. color: rgba(96, 184, 201, 1);
  164. text-align: center;
  165. margin-right: 8rpx;
  166. }
  167. .type2 {
  168. width: 112rpx;
  169. height: 48rpx;
  170. line-height: 48rpx;
  171. border-radius: 4px;
  172. border: 1px solid rgba(77, 140, 255, 1);
  173. color: rgba(77, 140, 255, 1);
  174. text-align: center;
  175. margin-right: 8rpx;
  176. }
  177. .number {
  178. color: rgba(51, 51, 51, 1);
  179. text {
  180. margin-left: 8rpx;
  181. }
  182. }
  183. }
  184. .item:nth-of-type(2) {
  185. margin-left: 48rpx;
  186. }
  187. }
  188. .num1 {
  189. color: #FF6923;
  190. font-weight: bold;
  191. }
  192. .num2 {
  193. color: #85C8D5;
  194. font-weight: bold;
  195. }
  196. .num3 {
  197. color: #74A5FF;
  198. font-weight: bold;
  199. }
  200. }
  201. /deep/.u-divider{
  202. margin-top: 40rpx !important;
  203. font-family: 'PingFang Regular';
  204. }
  205. </style>