agent-stock.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <!-- 经销商库存页面 -->
  3. <view class="header">
  4. <view class="header-one">
  5. 库存是否充足:<text>充足</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-select style=" color: #fff;" v-model="showmateriel" :list="materielList"></u-select>
  11. <!-- <u-calendar style=" color: #fff;" v-model="showDate" :mode="mode"></u-calendar> -->
  12. <u-search :show-action="true" :animation="true"></u-search>
  13. </view>
  14. <view class="content-one">
  15. <view class="content-two" v-for="(item,index) in datalist" :key="index">
  16. <view>
  17. {{ item.name }}
  18. </view>
  19. <view>
  20. {{ item.number}}
  21. </view>
  22. <view>
  23. {{ item.state }}
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. datalist: [
  34. {
  35. name: '赛轮',
  36. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  37. state: '充足'
  38. },{
  39. name: '赛轮',
  40. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  41. state: '紧张'
  42. },
  43. {
  44. name: '赛轮',
  45. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  46. state: '充足'
  47. },
  48. {
  49. name: '赛轮',
  50. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  51. state: '充足'
  52. },
  53. {
  54. name: '赛轮',
  55. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  56. state: '充足'
  57. },
  58. {
  59. name: '赛轮',
  60. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  61. state: '充足'
  62. },
  63. {
  64. name: '赛轮',
  65. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  66. state: '充足'
  67. },
  68. {
  69. name: '赛轮',
  70. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  71. state: '充足'
  72. },
  73. {
  74. name: '赛轮',
  75. number: '12R22.5 152/149K 18PR S838 LBGSL 0L',
  76. state: '充足'
  77. },
  78. ],
  79. list: [{
  80. name: '全部'
  81. }, {
  82. name: '品牌'
  83. }, {
  84. name: '物料',
  85. }],
  86. itemList: [{
  87. head: "赛轮 12R22.5 18PR S838",
  88. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  89. open: true,
  90. disabled: true
  91. },{
  92. head: "赛轮 12R22.5 18PR S838",
  93. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  94. open: false,
  95. },{
  96. head: "赛轮 12R22.5 18PR S838",
  97. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  98. open: false,
  99. }],
  100. brandList: [{
  101. value: '1',
  102. label: '赛轮'
  103. },
  104. {
  105. value: '2',
  106. label: '黑鹰'
  107. }
  108. ],
  109. materielList: [{
  110. value: '1',
  111. label: '物料1'
  112. },
  113. {
  114. value: '2',
  115. label: '物料2'
  116. }
  117. ],
  118. current: 0,
  119. showBrand: false,
  120. showmateriel: false,
  121. showDate: false,
  122. mode: 'date'
  123. };
  124. },
  125. methods: {
  126. change(index) {
  127. this.current = index;
  128. if(this.current==1){
  129. this.showBrand=true
  130. }else if(this.current==2){
  131. this.showmateriel=true
  132. }
  133. }
  134. }
  135. }
  136. </script>
  137. <style lang="scss" scoped>
  138. .header {
  139. height: 400rpx;
  140. width: 100%;
  141. background: #0094FE;
  142. color: #fff;
  143. font-size: 28rpx;
  144. }
  145. .header-one {
  146. text-align: center;
  147. padding-top: 40rpx;
  148. }
  149. .header-one>text {
  150. font-size: 52rpx;
  151. }
  152. .content {
  153. display: flex;
  154. justify-content: space-between;
  155. width: 700rpx;
  156. margin-top: 80rpx;
  157. }
  158. .content-one {
  159. width: 690rpx;
  160. // height: 305rpx;
  161. background: #FFFFFF;
  162. color: #000;
  163. font-size: 24rpx;
  164. box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
  165. border-radius: 20px;
  166. margin: 0 auto;
  167. margin-top: 50rpx;
  168. }
  169. .content-one-view {
  170. width: 6rpx;
  171. height: 30rpx;
  172. background: #0292FD;
  173. position: relative;
  174. top: 20rpx;
  175. left: 30rpx;
  176. }
  177. .content-one-text {
  178. position: relative;
  179. top: -8rpx;
  180. left: 60rpx;
  181. font-size: 24rpx;
  182. font-weight: bold;
  183. color: #000;
  184. }
  185. .content-one-time {
  186. position: relative;
  187. top: -40rpx;
  188. left: 530rpx;
  189. font-size: 13rpx;
  190. color: #626262;
  191. }
  192. .content-two {
  193. display: flex; justify-content: space-between;
  194. font-size: 24rpx;
  195. color: #6A6A6A;
  196. margin-left: 30rpx;
  197. margin-right: 30rpx;
  198. padding-top: 25rpx;
  199. padding-bottom: 25rpx;
  200. }
  201. </style>