index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <!-- 出库明细页面 -->
  3. <view class="header">
  4. <view class="header-one">
  5. 库存总量:<text>999</text>
  6. </view>
  7. <view class="content">
  8. <u-tabs style="width: 500rpx;" bg-color="#0095ff" inactive-color="#FFFFFF" active-color="#fff" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  9. <u-select style=" color: #fff;" v-model="showBrand" :list="brandList"></u-select>
  10. <u-calendar style=" color: #fff;" v-model="showDate" :mode="mode"></u-calendar>
  11. <u-search :show-action="true" :animation="true"></u-search>
  12. </view>
  13. <view class="content-one" v-for="(item,index) in datalist" :key="index">
  14. <view class="content-one-view">
  15. </view>
  16. <view class="content-one-text">单号:20200609135904795 - 20753</view>
  17. <view class="content-one-time">2020-10-28</view>
  18. <u-collapse class="content-two">
  19. <u-collapse-item :title="item.head" v-for="(item, index) in itemList" :key="index">
  20. <view class="content-two1">
  21. 物料描述:{{item.body}}
  22. </view>
  23. <view class="content-two1">
  24. 轮胎胎号:{{item.body}}
  25. </view>
  26. <view class="content-two1">
  27. 参加活动: {{item.body}}
  28. </view>
  29. </u-collapse-item>
  30. </u-collapse>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. datalist: [
  39. {},
  40. {}
  41. ],
  42. list: [{
  43. name: '全部'
  44. }, {
  45. name: '品牌'
  46. }, {
  47. name: '时间',
  48. }],
  49. itemList: [{
  50. head: "赛轮 12R22.5 18PR S838",
  51. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  52. open: true,
  53. disabled: true
  54. },{
  55. head: "赛轮 12R22.5 18PR S838",
  56. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  57. open: false,
  58. },{
  59. head: "赛轮 12R22.5 18PR S838",
  60. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  61. open: false,
  62. }],
  63. brandList: [{
  64. value: '1',
  65. label: '赛轮'
  66. },
  67. {
  68. value: '2',
  69. label: '黑鹰'
  70. }
  71. ],
  72. current: 0,
  73. showBrand: false,
  74. showDate: false,
  75. mode: 'date'
  76. };
  77. },
  78. methods: {
  79. change(index) {
  80. this.current = index;
  81. if(this.current==1){
  82. this.showBrand=true
  83. }else if(this.current==2){
  84. this.showDate=true
  85. }
  86. }
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .header {
  92. height: 400rpx;
  93. width: 100%;
  94. background: #0094FE;
  95. color: #fff;
  96. font-size: 28rpx;
  97. }
  98. .header-one {
  99. text-align: center;
  100. padding-top: 40rpx;
  101. }
  102. .header-one>text {
  103. font-size: 52rpx;
  104. }
  105. .content {
  106. display: flex;
  107. justify-content: space-between;
  108. width: 700rpx;
  109. margin-top: 80rpx;
  110. }
  111. .content-one {
  112. width: 690rpx;
  113. // height: 338rpx;
  114. background: #FFFFFF;
  115. box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
  116. border-radius: 20px;
  117. margin: 0 auto;
  118. margin-top: 50rpx;
  119. }
  120. .content-one-view {
  121. width: 6rpx;
  122. height: 30rpx;
  123. background: #0292FD;
  124. position: relative;
  125. top: 20rpx;
  126. left: 30rpx;
  127. }
  128. .content-one-text {
  129. position: relative;
  130. top: -8rpx;
  131. left: 60rpx;
  132. font-size: 24rpx;
  133. font-weight: bold;
  134. color: #000;
  135. }
  136. .content-one-time {
  137. position: relative;
  138. top: -40rpx;
  139. left: 530rpx;
  140. font-size: 13rpx;
  141. color: #626262;
  142. }
  143. .content-two {
  144. width: 600rpx;
  145. margin: 0 auto;
  146. margin-bottom: 50rpx;
  147. }
  148. .content-two1 {
  149. font-size: 24rpx;
  150. margin-top: 30rpx;
  151. }
  152. </style>