reportedRecord.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="reportedRecord">
  3. <view class="top">
  4. <view class="time">
  5. <picker mode="date" fields="month" :value="date" @change="bindDateChange">
  6. <view class="uni-input">月份</view>
  7. </picker>
  8. </view>
  9. </view>
  10. <view class="main">
  11. <view class="tab" v-for="v in 10" :key="v">
  12. <view class="name">
  13. 红蜻蜓三级香菜籽油20L
  14. </view>
  15. <view class="">
  16. 0箱 / 1瓶 / 0.00吨
  17. </view>
  18. </view>
  19. </view>
  20. <view class="bom">
  21. 合计: 0个上报记录
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. date: ''
  30. };
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. .reportedRecord {
  36. height: 100%;
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: space-between;
  40. .top {
  41. height: 100rpx;
  42. line-height: 100rpx;
  43. background-color: #e40315;
  44. position: relative;
  45. .time {
  46. position: absolute;
  47. top: 0;
  48. right: 0;
  49. text-align: center;
  50. width: 100rpx;
  51. height: 100%;
  52. color: #fff;
  53. }
  54. }
  55. .main {
  56. flex: 1;
  57. overflow-y: scroll;
  58. padding: 0 20rpx;
  59. .tab {
  60. padding: 15rpx 0;
  61. border-bottom: 1rpx solid #e3e3e3;
  62. .name {
  63. margin-bottom: 20rpx;
  64. }
  65. }
  66. }
  67. .bom {
  68. height: 120rpx;
  69. border-top: 10rpx solid #f1f1f1;
  70. text-align: center;
  71. line-height: 120rpx;
  72. color: #e40315;
  73. font-size: 26rpx;
  74. }
  75. }
  76. </style>