list.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="wrap">
  3. <view class="dropdown content1">
  4. <view class="right" @click='show1=true'>
  5. <view>{{status}}</view>
  6. <u-icon name="arrow-right"></u-icon>
  7. <u-picker @confirm="statuschange" range-key='name' mode="selector" v-model="show1"
  8. :range="statusList"></u-picker>
  9. </view>
  10. </view>
  11. <view class="content2">
  12. <view class="content2-item" v-for="(item,index) in dataList" @click="goDetail(item)">
  13. <view class="row bold">
  14. <view class="left">{{item.processNo}}</view>
  15. <view>{{item.tranType}}</view>
  16. </view>
  17. <view style='color:#878C9C;font-size:14px;' class="row">
  18. <view class="left">{{item.goodsName}}</view>
  19. <view>{{item.weight}}</view>
  20. </view>
  21. <view style='color:#878C9C;font-size:14px;' class="row">
  22. <view style='flex:1;' class="left">发货</view>
  23. <view style='flex:2;text-align:right;'>{{item.send}}</view>
  24. </view>
  25. <view style='color:#878C9C;font-size:14px;' class="row">
  26. <view style='flex:1;' class="left">收货</view>
  27. <view style='flex:2;text-align:right;'>{{item.receive}}</view>
  28. </view>
  29. <view style='color:#878C9C;font-size:14px;' class="row">
  30. <view style='flex:1;' class="left">运输周期</view>
  31. <view style='flex:2;text-align:right;'>{{item.deliveryDateStart}} ~ {{item.deliveryDateEnd}}</view>
  32. </view>
  33. <view style='color:#878C9C;font-size:14px;' class="row">
  34. <view style='flex:1;' class="left">{{item.feedbackStatus}}</view>
  35. <view style='flex:2;text-align:right;'>{{item.createDate}}</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import helper from '@/common/helper.js';
  43. export default {
  44. data() {
  45. return {
  46. show1: false,
  47. show2: false,
  48. currentPage: 1,
  49. pageSize: 10,
  50. positionId: "",
  51. binNumber: "",
  52. status: '执行中',
  53. positionName: '',
  54. statusList: [
  55. {name:'执行中',value:1},
  56. {name:'已完货',value:2},
  57. {name:'全部任务',value:3},
  58. ],
  59. feedbackFlag:1,
  60. dataList: [],
  61. allWarehouse: [],
  62. showTime: ''
  63. }
  64. },
  65. onLoad() {
  66. this.positionId = helper.erpWarehouse.positionId
  67. this.warehouseId = helper.erpWarehouse.warehouseId
  68. },
  69. onShow() {
  70. let _data = helper.erpWarehouse
  71. this.warehouseList = _data.allWarehouse
  72. this.warehouseCWList = _data.warehouseCWList
  73. this.binNumber = _data.binNumber
  74. this.positionId = _data.positionId
  75. this.warehouseId = _data.warehouseId
  76. this.getList()
  77. },
  78. onReachBottom() {
  79. this.currentPage+=1
  80. this.getList(false)
  81. // this.getMoreNews()
  82. },
  83. methods: {
  84. getList() {
  85. this.$api.doRequest('get', '/tranProcessInfo/selectTranProcessInfo', {
  86. feedbackFlag: this.feedbackFlag,
  87. currentPage: this.currentPage,
  88. pageSize: this.pageSize
  89. }).then(res => {
  90. if (res.data.code == 200) {
  91. var data=res.data.data.records
  92. this.dataList = this.dataList.concat(data)
  93. }
  94. })
  95. },
  96. statuschange(e) {
  97. this.status = this.statusList[e[0]].name
  98. this.getList()
  99. },
  100. goDetail(val) {
  101. uni.navigateTo({
  102. url: '/pages/erp/deliveryfeedback/details?id=' + val.id,
  103. })
  104. }
  105. }
  106. }
  107. </script>
  108. <style scoped lang="scss">
  109. .dropdown {
  110. display: flex;
  111. margin: 20rpx 0;
  112. justify-content: space-between;
  113. .left,
  114. .right {
  115. display: flex;
  116. align-items: center;
  117. }
  118. }
  119. .content1 {
  120. padding: 40rpx 20rpx;
  121. margin: 20rpx;
  122. border-radius: 10rpx;
  123. background: #FFFFFF;
  124. }
  125. .content2 {
  126. background: white;
  127. margin:10px;
  128. border-radius:10px;
  129. .row {
  130. display: flex;
  131. justify-content: space-between;
  132. // border-bottom: 1px solid #EEEEEE;
  133. padding: 18rpx 10rpx;
  134. .right,
  135. input {
  136. font-size: 28rpx;
  137. color: #333333;
  138. }
  139. }
  140. .row-bottom {
  141. .right-bottom {
  142. width: 300rpx;
  143. text-align: right;
  144. }
  145. }
  146. }
  147. .content2-item {
  148. // margin: 0 20rpx 20rpx 20rpx;
  149. margin:0 10px;
  150. // padding: 10rpx;
  151. border-bottom: 1px solid #EEEEEE;
  152. }
  153. .content2-item:last-child{
  154. border-bottom: 1px solid transparent;
  155. }
  156. .no-boder {
  157. border-bottom: none !important;
  158. }
  159. .bold{
  160. font-size:18px;
  161. font-weight:600;
  162. }
  163. </style>