index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view>
  3. <!-- <view class="condition">
  4. <view class="conditionone">
  5. <view :style="{'border-bottom':(underline =='0'?'3rpx solid #fff':'none')}" @click="whole">全部</view>
  6. <view :style="{'border-bottom':(underline =='1'?'3rpx solid #fff':'none')}" @click="show = !show,underline = '1'">仓库</view>
  7. <view :style="{'border-bottom':(underline =='3'?'3rpx solid #fff':'none')}" @click="choiceState = !choiceState,underline = '3'">状态</view>
  8. </view>
  9. </view> -->
  10. <view class="search">
  11. <u-search shape="round" placeholder="请输入提单号" @custom="custom" @search="custom" :clearabled="false">
  12. </u-search>
  13. </view>
  14. <view class="ordertop" v-for="(item, index) in lisi" :key="index">
  15. <view>
  16. <view class="iconblue"></view>
  17. <text class="license">提单号:{{item.fMblno}}</text>
  18. <view class="various" @click="viewDetails(item)">{{item.fOriginalbilldate}}</view>
  19. </view>
  20. <view class="line">
  21. <u-line color="#ccc" border-style='dashed' />
  22. </view>
  23. <view class="basic">
  24. <view>货物属性</view>
  25. <view>{{item.fBusinessTypes}}</view>
  26. </view>
  27. <view class="basic">
  28. <view>品名</view>
  29. <view>{{item.fGoodsids}}</view>
  30. </view>
  31. <view class="basic">
  32. <view>仓库</view>
  33. <view>{{item.fWarehouseids}}</view>
  34. </view>
  35. <view class="basic">
  36. <view>结余件数</view>
  37. <view>{{item.fQtyblc}}</view>
  38. </view>
  39. <view class="basic">
  40. <view>结余毛重(kg)</view>
  41. <view>{{item.fGrossweightblc}}</view>
  42. </view>
  43. <view class="basic">
  44. <view>结余净重(kg)</view>
  45. <view>{{item.fNetweightblc}}</view>
  46. </view>
  47. <view class="basic">
  48. <view>箱号</view>
  49. <view>{{item.fLocalcntrno}}</view>
  50. </view>
  51. </view>
  52. <u-loadmore :status="status" :icon-type="iconType" :load-text="loadText" />
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data(){
  58. return{
  59. underline:'0',
  60. loadText: {
  61. loadmore: '轻轻上拉',
  62. loading: '努力加载中',
  63. nomore: '实在没有了'
  64. },
  65. total:0,
  66. iconType: 'flower',
  67. status: 'loadmore',
  68. form:{
  69. pageNum: 1,
  70. pageSize: 10
  71. },
  72. lisi:[]
  73. }
  74. },
  75. created() {
  76. this.query()
  77. },
  78. onReachBottom() {
  79. this.status = 'loading'
  80. if (this.lisi.length < this.total) {
  81. this.form.pageNum++
  82. this.query()
  83. } else {
  84. this.status = 'nomore'
  85. }
  86. },
  87. methods:{
  88. custom(text){
  89. console.log(text)
  90. this.form={
  91. fMblno:text,
  92. pageNum: 1,
  93. pageSize: 10
  94. }
  95. this.query()
  96. },
  97. query(){
  98. this.$u.get("/warehouseBusiness/whgenleg/appWhGenLegList",this.form).then(res=>{
  99. console.log(res)
  100. this.lisi = res.rows
  101. this.total = res.total
  102. if(this.total < 10) this.status = 'nomore'
  103. })
  104. }
  105. }
  106. }
  107. </script>
  108. <style scoped lang="scss">
  109. .ordertop {
  110. width: 96%;
  111. background-color: #fff;
  112. margin: 20rpx auto;
  113. border-radius: 20rpx;
  114. padding-top: 20rpx;
  115. box-shadow: 0px 0px 8px 0px rgba(165, 189, 251, 0.4);
  116. padding-bottom: 10rpx;
  117. }
  118. .ordertop>view:nth-child(1) {
  119. width: 98%;
  120. margin-bottom: 60rpx;
  121. }
  122. .iconblue {
  123. width: 10rpx;
  124. height: 45rpx;
  125. float: left;
  126. background-color: #3a63cf;
  127. margin-right: 10rpx;
  128. }
  129. .license {
  130. float: left;
  131. font-size: 32rpx;
  132. }
  133. .various {
  134. float: right;
  135. width: 230rpx;
  136. border: 2rpx solid #3a63cf;
  137. text-align: center;
  138. border-radius: 100rpx;
  139. color: #1669e6;
  140. }
  141. .line {
  142. width: 92%;
  143. margin: 0 auto;
  144. }
  145. .basic {
  146. width: 94%;
  147. margin: 10rpx auto;
  148. display: flex;
  149. justify-content: space-between;
  150. }
  151. .basic>view {
  152. margin-bottom: 10rpx;
  153. }
  154. .basic>view:nth-child(1) {
  155. color: #797979;
  156. }
  157. .search {
  158. width: 96%;
  159. margin: 10rpx auto;
  160. }
  161. .condition {
  162. background-color: #1669e6;
  163. height: 60rpx;
  164. }
  165. .conditionone {
  166. width: 92%;
  167. height: 44rpx;
  168. margin: 0rpx auto;
  169. display: flex;
  170. justify-content: space-between;
  171. color: #fff;
  172. }
  173. .conditionone>view {
  174. color: #e6e8e8;
  175. }
  176. </style>