improvedExWaehousing.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. export default {
  29. data() {
  30. return {
  31. show1:false,
  32. show2:false,
  33. warehouseName: '鲅鱼圈一号库',
  34. positionName: '102仓位',
  35. warehouseList: [
  36. {
  37. "label": '1',
  38. "value": '1'
  39. }
  40. ],
  41. positionList: [
  42. {
  43. "label": '102仓位',
  44. "value": '1'
  45. }
  46. ],
  47. dataList:[
  48. {
  49. val1:'我是合同编号',
  50. val2:'我是车牌号',
  51. val3:'我是暂存时间',
  52. val4:'我是提交人姓名'
  53. },
  54. {
  55. val1:'我是合同编号',
  56. val2:'我是车牌号',
  57. val3:'我是暂存时间',
  58. val4:'我是提交人姓名'
  59. },
  60. {
  61. val1:'我是合同编号',
  62. val2:'我是车牌号',
  63. val3:'我是暂存时间',
  64. val4:'我是提交人姓名'
  65. },
  66. ]
  67. }
  68. },
  69. onLoad() {
  70. this.getList()
  71. },
  72. methods: {
  73. getList(){
  74. that.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo',
  75. that.detailData).then(res => {
  76. if (res.data.code == 200) {
  77. that.$api.msg(title)
  78. uni.navigateBack()
  79. }
  80. })
  81. },
  82. confirmWarehouse(){},
  83. confirmPositon(){},
  84. goDetail(val){
  85. uni.navigateTo({
  86. url:'improvedWrehousingDetail?data='+val,
  87. })
  88. }
  89. }
  90. }
  91. </script>
  92. <style scoped lang="scss">
  93. .dropdown{
  94. display: flex;
  95. margin:20rpx 0;
  96. justify-content: space-between;
  97. .left,.right{
  98. display: flex;
  99. }
  100. }
  101. .content1{
  102. padding: 20rpx;
  103. margin: 20rpx;
  104. border-radius: 10rpx;
  105. }
  106. .content2{
  107. // padding: 20rpx;
  108. margin: 20rpx;
  109. // border-bottom: 1px solid #ccc;
  110. .content2-item{
  111. padding: 20rpx;
  112. margin-bottom: 10rpx;
  113. // border-bottom:1px solid #ccc ;
  114. background: #FFFFFF;
  115. border-radius: 10rpx;
  116. // padding-bottom: 10px;
  117. }
  118. .item-style{
  119. display: inline-block;
  120. width: 50%;
  121. }
  122. }
  123. </style>