improvedExWaehousing.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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-select v-model="show1" :default-value='[0]' :list="warehouseList" @confirm="confirmWarehouse">
  8. </u-select>
  9. </view>
  10. <view class="right" @click='show2=true'>
  11. <view>{{positionName}}</view>
  12. <u-icon name="arrow-right"></u-icon>
  13. <u-select v-model="show2" :default-value='[0]' :list="positionList" @confirm="confirmPositon">
  14. </u-select>
  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="item-style">{{item.contractNo}}</view>
  20. <view class="item-style">{{item.carNo}}</view>
  21. <view class="item-style">{{item.inOutDate}}</view>
  22. <view class="item-style">{{item.backOffice}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import helper from '@/common/helper.js';
  29. export default {
  30. data() {
  31. return {
  32. show1: false,
  33. show2: false,
  34. currentPage: 1,
  35. pageSize: 10,
  36. positionId: "",
  37. binNumber: "",
  38. warehouseName: '鲅鱼圈一号库',
  39. positionName: '102仓位',
  40. warehouseList: [{
  41. "label": '1',
  42. "value": '1'
  43. }],
  44. positionList: [{
  45. "label": '102仓位',
  46. "value": '1'
  47. }],
  48. dataList: []
  49. }
  50. },
  51. onLoad() {
  52. this.positionId = helper.erpWarehouse.positionId
  53. this.getList()
  54. },
  55. onShow() {
  56. this.positionId = helper.erpWarehouse.positionId
  57. },
  58. methods: {
  59. getList() {
  60. this.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo', {
  61. positionId:this.positionId,
  62. baseId: helper.erpWarehouse.warehouseId,
  63. currentPage: this.currentPage,
  64. pageSize: this.pageSize,
  65. inOutFlag:1
  66. }).then(res => {
  67. if (res.data.code == 200) {
  68. this.dataList = res.data.data.records
  69. }
  70. })
  71. },
  72. confirmWarehouse() {},
  73. confirmPositon() {},
  74. goDetail(val) {
  75. uni.navigateTo({
  76. // /pages/erp/warehousing/selectContractNo
  77. url: '/pages/erp/improvedExWaehousing/improvedExWaehousingDetail?data=' + JSON.stringify(val),
  78. })
  79. }
  80. }
  81. }
  82. </script>
  83. <style scoped lang="scss">
  84. .dropdown {
  85. display: flex;
  86. margin: 20rpx 0;
  87. justify-content: space-between;
  88. .left,
  89. .right {
  90. display: flex;
  91. }
  92. }
  93. .content1 {
  94. padding: 40rpx 20rpx;
  95. margin: 20rpx;
  96. border-radius: 10rpx;
  97. background: #FFFFFF;
  98. }
  99. .content2 {
  100. // padding: 20rpx;
  101. margin: 20rpx;
  102. // border-bottom: 1px solid #ccc;
  103. background: #FFFFFF;
  104. border-radius: 10rpx;
  105. .content2-item {
  106. padding: 20rpx;
  107. margin-bottom: 10rpx;
  108. border-bottom: 1px solid #ccc;
  109. // padding-bottom: 10px;
  110. }
  111. .item-style {
  112. display: inline-block;
  113. width: 50%;
  114. }
  115. }
  116. </style>