improvedWrehousing.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="wrap">
  3. <view class="dropdown content1">
  4. <view class="left" @click='show1=true'>
  5. <view>{{warehouseName}}</view>
  6. <u-icon name="arrow-right"></u-icon>
  7. <u-picker @confirm="warehousechange" range-key='warehouseName' mode="selector" v-model="show1"
  8. :range="warehouseList"></u-picker>
  9. </view>
  10. <view class="right" @click='show2=true'>
  11. <view>{{binNumber}}仓位</view>
  12. <u-icon name="arrow-right"></u-icon>
  13. <u-picker @confirm="warehouseCWchange" range-key='binNumber' mode="selector" v-model="show2"
  14. :range="warehouseCWList"></u-picker>
  15. </view>
  16. </view>
  17. <view class="content2">
  18. <view class="content2-item" v-for="(item,index) in dataList" @click="goDetail(item)">
  19. <view class="row">
  20. <view class="left">合同编号</view>
  21. <view>{{item.contractNo}}</view>
  22. </view>
  23. <view class="row">
  24. <view class="left">车牌号</view>
  25. <view>{{item.carNo}}</view>
  26. </view>
  27. <view class="row">
  28. <view class="left">暂存时间</view>
  29. <view>{{item.inOutDate}}</view>
  30. </view>
  31. <view class="row no-boder">
  32. <view class="left">提交人</view>
  33. <view>{{item.backOffice}}</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import helper from '@/common/helper.js';
  41. export default {
  42. data() {
  43. return {
  44. show1: false,
  45. show2: false,
  46. currentPage: 1,
  47. pageSize: 9999,
  48. positionId: "",
  49. binNumber: "",
  50. warehouseName: '',
  51. positionName: '',
  52. warehouseList: [],
  53. warehouseCWList: [],
  54. dataList: [],
  55. allWarehouse: []
  56. }
  57. },
  58. onLoad() {
  59. },
  60. onShow() {
  61. console.log("完善入库-仓库信息", helper.erpWarehouse)
  62. let _data = helper.erpWarehouse
  63. this.warehouseName = _data.warehouseName
  64. this.warehouseList = _data.allWarehouse
  65. this.warehouseCWList = _data.warehouseCWList
  66. this.binNumber = _data.binNumber
  67. this.positionId = _data.positionId
  68. this.getList()
  69. },
  70. methods: {
  71. getList() {
  72. this.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo', {
  73. positionId: helper.erpWarehouse.positionId,
  74. baseId: helper.erpWarehouse.warehouseId,
  75. currentPage: this.currentPage,
  76. pageSize: this.pageSize,
  77. inOutFlag: 2
  78. }).then(res => {
  79. if (res.data.code == 200) {
  80. this.dataList = res.data.data.records
  81. }
  82. })
  83. },
  84. warehousechange(e) {
  85. this.warehouseName = this.warehouseList[e[0]].warehouseName
  86. },
  87. warehouseCWchange(e) {
  88. this.binNumber = this.warehouseCWList[e[0]].binNumber
  89. },
  90. goDetail(val) {
  91. uni.navigateTo({
  92. url: '/pages/erp/improvedWrehousing/improvedWrehousingDetail?data=' + JSON.stringify(val),
  93. })
  94. }
  95. }
  96. }
  97. </script>
  98. <style scoped lang="scss">
  99. .dropdown {
  100. display: flex;
  101. margin: 20rpx 0;
  102. justify-content: space-between;
  103. .left,
  104. .right {
  105. display: flex;
  106. }
  107. }
  108. .content1 {
  109. padding: 40rpx 20rpx;
  110. margin: 20rpx;
  111. border-radius: 10rpx;
  112. background: #FFFFFF;
  113. }
  114. .content2 {
  115. .row {
  116. display: flex;
  117. justify-content: space-between;
  118. border-bottom: 1px solid #EEEEEE;
  119. padding: 21rpx 0;
  120. .right,
  121. input {
  122. font-size: 28rpx;
  123. color: #333333;
  124. }
  125. }
  126. .row-bottom {
  127. .right-bottom {
  128. width: 300rpx;
  129. text-align: right;
  130. }
  131. }
  132. }
  133. .content2-item{
  134. background: white;
  135. margin:0 20rpx 20rpx 20rpx;
  136. padding: 10rpx;
  137. border-radius: 15rpx;
  138. }
  139. .no-boder{
  140. border-bottom: none!important;
  141. }
  142. </style>