add.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="领料" background-color="#F7F9FA"
  4. color="#404446" @clickLeft="back">
  5. <block slot="right">
  6. <u-button
  7. type="success"
  8. size="small"
  9. class="u-reset-button"
  10. @click="openSearch"
  11. text="搜索"
  12. ></u-button>
  13. </block>
  14. </uni-nav-bar>
  15. <view class="list_box">
  16. <u-list @scrolltolower="scrolltolower">
  17. <view v-for="(item,index) in 100" :key='index'>
  18. {{item}}
  19. </view>
  20. </u-list>
  21. </view>
  22. <view class="bottom-wrapper">
  23. <view class="btn_box rx-bc">
  24. <view class="zdy_check rx-cc" @click='allChecked = !allChecked' :class="{ check_active : allChecked }">
  25. <u-icon size="28" v-if='allChecked' name='checkbox-mark'></u-icon>
  26. </view>
  27. <view>
  28. <u-button
  29. type="success"
  30. class="u-reset-button"
  31. @click="openSearch"
  32. text="确定添加"
  33. ></u-button>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. allChecked: false,
  44. searchFrom: {
  45. keyWord: ''
  46. }
  47. }
  48. },
  49. methods: {
  50. scrolltolower() {},
  51. openSearch() {
  52. uni.navigateTo({
  53. url: '/pages/pda/workOrder/search/index'
  54. })
  55. },
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .content-box {
  61. height: 100vh;
  62. overflow: hidden;
  63. display: flex;
  64. flex-direction: column;
  65. background-color: $page-bg;
  66. }
  67. .list_box {
  68. flex: 1;
  69. overflow: hidden;
  70. padding: 4rpx 0;
  71. .u-list {
  72. height: 100% !important;
  73. }
  74. }
  75. .btn_box {
  76. height: 112rpx;
  77. background: #fff;
  78. padding: 0 32rpx;
  79. .zdy_check {
  80. width: 30rpx;
  81. height: 30rpx;
  82. border: 2rpx solid #c8c9cc;
  83. border-radius: 4rpx;
  84. }
  85. .check_active {
  86. background: $theme-color;
  87. border: 2rpx solid $theme-color;
  88. /deep/ .u-icon__icon {
  89. color: #fff !important;
  90. }
  91. }
  92. }
  93. </style>