dataStatistics.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <template>
  2. <view>
  3. <view class="head">
  4. <view class="title">
  5. <view class="name">
  6. 食堂管理系统
  7. </view>
  8. <view class="option" @click="changePlaceShow">
  9. 地方铁路食堂<u-icon name="arrow-down"></u-icon>
  10. <view class="options-box" v-if="placeShow">
  11. <view class="options-item">
  12. 选项1
  13. </view>
  14. <view class="options-item">
  15. 选项2
  16. </view>
  17. <view class="options-item">
  18. 选项3
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 曲线图 -->
  24. <view class="chart">
  25. <view class="chart-title">
  26. <view class="name">
  27. 月度饭卡消费曲线图
  28. </view>
  29. <view class="time" @click="changeTimeShow">
  30. 2023年4月<u-icon name="arrow-down"></u-icon>.
  31. <view class="time-box" v-if="timeShow">
  32. <view class="options-item">
  33. 2023年4月
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <img src="../../../assets/img/chart.png" alt="">
  39. </view>
  40. </view>
  41. <!-- 订餐上报 -->
  42. <view class="order-food">
  43. <view class="title">
  44. <view class="name">
  45. <text><img src="../../../assets/img/riLine-calendar-2-line@1x.png" alt=""></text>订餐上报
  46. </view>
  47. <view class="record">
  48. 全部记录 <u-icon name="arrow-right" size="20"></u-icon>
  49. </view>
  50. </view>
  51. <!-- 记录卡片 -->
  52. <view class="record-card" v-for="item in 2">
  53. <view class="record-title">
  54. <view class="date">
  55. 2023年4月10日 星期一
  56. </view>
  57. <view class="people-number">
  58. 订餐人数 <text class="num1">29</text>
  59. </view>
  60. </view>
  61. <view class="classify">
  62. <view class="item">
  63. <view class="type1">
  64. 机务段
  65. </view>
  66. <view class="number">
  67. 订餐人数 <text class="num2">10</text>
  68. </view>
  69. </view>
  70. <view class="item">
  71. <view class="type2">
  72. 荆州南
  73. </view>
  74. <view class="number">
  75. 订餐人数 <text class="num3">19</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <canteenTabbar ref="mytabbar"
  82. current="0"></canteenTabbar>
  83. </view>
  84. </template>
  85. <script>
  86. import canteenTabbar from "../../../components/canteenTabbar.vue"
  87. export default {
  88. components: {
  89. canteenTabbar
  90. },
  91. data() {
  92. return {
  93. placeShow: false,
  94. timeShow: false
  95. }
  96. },
  97. methods: {
  98. changePlaceShow() {
  99. this.placeShow = !this.placeShow
  100. },
  101. changeTimeShow() {
  102. this.timeShow = !this.timeShow
  103. }
  104. }
  105. }
  106. </script>
  107. <style lang="scss" scoped>
  108. page {
  109. padding-bottom: 100px;
  110. }
  111. .head {
  112. padding: 24rpx 32rpx;
  113. background: linear-gradient(180deg, rgba(183, 208, 255, 1) 0%, rgba(244, 244, 246, 1) 100%);
  114. height: 177px;
  115. .title {
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. .name {
  120. color: rgba(31, 74, 153, 1);
  121. font-size: 40rpx;
  122. font-family: 'Medium';
  123. }
  124. .option {
  125. color: rgba(65, 80, 88, 1);
  126. font-size: 32rpx;
  127. position: relative;
  128. .options-box {
  129. background-color: #fff;
  130. z-index: 999;
  131. width: 240rpx;
  132. box-shadow: 0px 0px 2px #999999;
  133. position: absolute;
  134. top: 50rpx;
  135. left: 0px;
  136. .options-item {
  137. line-height: 60rpx;
  138. padding-left: 8rpx;
  139. }
  140. }
  141. }
  142. }
  143. // 曲线图
  144. .chart {
  145. border-radius: 12px;
  146. margin-top: 24rpx;
  147. background-color: #fff;
  148. height: 268px;
  149. .chart-title {
  150. padding: 38rpx 24rpx;
  151. display: flex;
  152. justify-content: space-between;
  153. align-items: center;
  154. font-size: 32rpx;
  155. .name {
  156. color: rgba(51, 51, 51, 1);
  157. font-weight: bold;
  158. font-family: 'Medium';
  159. }
  160. .time {
  161. color: rgba(119, 119, 119, 1);
  162. position: relative;
  163. .time-box {
  164. background-color: #fff;
  165. z-index: 999;
  166. width: 200rpx;
  167. box-shadow: 0px 0px 2px #999999;
  168. position: absolute;
  169. top: 50rpx;
  170. left: 0px;
  171. .options-item {
  172. line-height: 64rpx;
  173. padding-left: 8rpx;
  174. }
  175. }
  176. }
  177. }
  178. img {
  179. width: 100%;
  180. height: 200px;
  181. }
  182. }
  183. }
  184. // 订餐上报
  185. .order-food {
  186. padding: 0 32rpx;
  187. margin-top: 160px;
  188. font-family: 'PingFang Regular';
  189. .title {
  190. display: flex;
  191. justify-content: space-between;
  192. align-items: center;
  193. .name {
  194. color: rgba(56, 109, 205, 1);
  195. font-size: 36rpx;
  196. line-height: 36rpx;
  197. font-weight: bold;
  198. text {
  199. vertical-align: middle;
  200. margin-right: 8rpx;
  201. }
  202. }
  203. .record {
  204. color: rgba(119, 119, 119, 1);
  205. }
  206. }
  207. }
  208. // 记录卡片
  209. .record-card {
  210. padding: 24rpx;
  211. margin-top: 24rpx;
  212. border-radius: 12px;
  213. background-color: rgba(255, 255, 255, 1);
  214. .record-title {
  215. display: flex;
  216. justify-content: space-between;
  217. align-items: center;
  218. margin-bottom: 16rpx;
  219. .date {
  220. color: rgba(51, 51, 51, 1);
  221. font-size: 32rpx;
  222. }
  223. .people-number {
  224. color: rgba(51, 51, 51, 1);
  225. font-size: 16px;
  226. text {
  227. margin-left: 8rpx;
  228. }
  229. }
  230. }
  231. .classify {
  232. display: flex;
  233. align-items: center;
  234. .item {
  235. display: flex;
  236. align-items: center;
  237. .type1 {
  238. width: 112rpx;
  239. height: 48rpx;
  240. line-height: 48rpx;
  241. border-radius: 4px;
  242. border: 1px solid rgba(96, 184, 201, 1);
  243. color: rgba(96, 184, 201, 1);
  244. text-align: center;
  245. margin-right: 8rpx;
  246. }
  247. .type2 {
  248. width: 112rpx;
  249. height: 48rpx;
  250. line-height: 48rpx;
  251. border-radius: 4px;
  252. border: 1px solid rgba(77, 140, 255, 1);
  253. color: rgba(77, 140, 255, 1);
  254. text-align: center;
  255. margin-right: 8rpx;
  256. }
  257. .number {
  258. color: rgba(51, 51, 51, 1);
  259. text {
  260. margin-left: 8rpx;
  261. }
  262. }
  263. }
  264. .item:nth-of-type(2) {
  265. margin-left: 48rpx;
  266. }
  267. }
  268. .num1 {
  269. color: #FF6923;
  270. font-weight: bold;
  271. }
  272. .num2 {
  273. color: #85C8D5;
  274. font-weight: bold;
  275. }
  276. .num3 {
  277. color: #74A5FF;
  278. font-weight: bold;
  279. }
  280. }
  281. /deep/.uicon-arrow-down,
  282. /deep/.uicon-arrow-right {
  283. margin-left: 8rpx;
  284. }
  285. </style>