improvedExWaehousing.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. positionId:"",
  37. binNumber:"",
  38. warehouseName: '鲅鱼圈一号库',
  39. positionName: '102仓位',
  40. warehouseList: [
  41. {
  42. "label": '1',
  43. "value": '1'
  44. }
  45. ],
  46. positionList: [
  47. {
  48. "label": '102仓位',
  49. "value": '1'
  50. }
  51. ],
  52. dataList:[
  53. {
  54. val1:'我是合同编号',
  55. val2:'我是车牌号',
  56. val3:'我是暂存时间',
  57. val4:'我是提交人姓名'
  58. },
  59. {
  60. val1:'我是合同编号',
  61. val2:'我是车牌号',
  62. val3:'我是暂存时间',
  63. val4:'我是提交人姓名'
  64. },
  65. {
  66. val1:'我是合同编号',
  67. val2:'我是车牌号',
  68. val3:'我是暂存时间',
  69. val4:'我是提交人姓名'
  70. },
  71. ]
  72. }
  73. },
  74. onLoad() {
  75. console.log(helper.erpWarehouse.baseId,"仓库id")
  76. this.getList()
  77. },
  78. methods: {
  79. getList(){
  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>