improvedExWaehousing.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.val1}}</view>
  20. <view class="item-style">{{item.val2}}</view>
  21. <view class="item-style">{{item.val3}}</view>
  22. <view class="item-style">{{item.val4}}</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. warehouseName: '鲅鱼圈一号库',
  37. positionName: '102仓位',
  38. warehouseList: [
  39. {
  40. "label": '1',
  41. "value": '1'
  42. }
  43. ],
  44. positionList: [
  45. {
  46. "label": '102仓位',
  47. "value": '1'
  48. }
  49. ],
  50. dataList:[
  51. {
  52. val1:'我是合同编号',
  53. val2:'我是车牌号',
  54. val3:'我是暂存时间',
  55. val4:'我是提交人姓名'
  56. },
  57. {
  58. val1:'我是合同编号',
  59. val2:'我是车牌号',
  60. val3:'我是暂存时间',
  61. val4:'我是提交人姓名'
  62. },
  63. {
  64. val1:'我是合同编号',
  65. val2:'我是车牌号',
  66. val3:'我是暂存时间',
  67. val4:'我是提交人姓名'
  68. },
  69. ]
  70. }
  71. },
  72. onLoad() {
  73. console.log(helper.erpWarehouse.baseId,"仓库id")
  74. this.getList()
  75. },
  76. methods: {
  77. getList(){
  78. // this.detailData.positionId = helper.erpWarehouse.baseId
  79. // this.detailData.binNumber = this.binNumber
  80. this.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo',
  81. {positionId:helper.erpWarehouse.baseId,binNumber:helper.erpWarehouse.binNumber,currentPage:this.currentPage,pageSize:this.pageSize}).then(res => {
  82. if (res.data.code == 200) {
  83. // this.$api.msg(title)
  84. // uni.navigateBack()
  85. }
  86. })
  87. },
  88. confirmWarehouse(){},
  89. confirmPositon(){},
  90. goDetail(val){
  91. uni.navigateTo({
  92. url:'improvedWrehousingDetail?data='+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,.right{
  104. display: flex;
  105. }
  106. }
  107. .content1{
  108. padding: 20rpx;
  109. margin: 20rpx;
  110. border-radius: 10rpx;
  111. }
  112. .content2{
  113. // padding: 20rpx;
  114. margin: 20rpx;
  115. // border-bottom: 1px solid #ccc;
  116. .content2-item{
  117. padding: 20rpx;
  118. margin-bottom: 10rpx;
  119. // border-bottom:1px solid #ccc ;
  120. background: #FFFFFF;
  121. border-radius: 10rpx;
  122. // padding-bottom: 10px;
  123. }
  124. .item-style{
  125. display: inline-block;
  126. width: 50%;
  127. }
  128. }
  129. </style>