inventoryDetails.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view>
  3. <view class="ordertop" v-for="(item, index) in lisi" :key="index">
  4. <view>
  5. <view class="iconblue"></view>
  6. <text class="license">提单号:{{item.fMblno}}</text>
  7. <view class="various" @click="viewDetails(item)">{{item.billTypeName}}</view>
  8. </view>
  9. <view class="line">
  10. <u-line color="#ccc" border-style='dashed' />
  11. </view>
  12. <view class="basic">
  13. <view>业务日期</view>
  14. <view>{{item.fBsdate}}</view>
  15. </view>
  16. <view class="basic">
  17. <view>件数</view>
  18. <view>{{item.fQty}}</view>
  19. </view>
  20. <view class="basic">
  21. <view>毛重</view>
  22. <view>{{item.fGrossweight}}</view>
  23. </view>
  24. <view class="basic">
  25. <view>净重</view>
  26. <view>{{item.fNetweight}}</view>
  27. </view>
  28. <view class="line">
  29. <u-line color="#ccc" border-style='dashed' />
  30. </view>
  31. <view class="view" @click="viewDetails(item)">
  32. <view>
  33. <text>查看详情</text>
  34. </view>
  35. <view>
  36. <u-icon name="arrow-right"></u-icon>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. form: {},
  47. lisi: []
  48. }
  49. },
  50. onLoad(option) {
  51. this.form = JSON.parse(option.item)
  52. this.$u.get('/warehouse/app/whgenlegDetail', {
  53. id: this.form.fId
  54. }).then(res => {
  55. console.log(res)
  56. this.lisi = res.data
  57. })
  58. },
  59. methods: {
  60. viewDetails(item) {
  61. console.log(item)
  62. uni.navigateTo({
  63. url: './detailedAttachment?item=' + JSON.stringify(item)
  64. });
  65. }
  66. }
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .ordertop {
  71. width: 96%;
  72. background-color: #fff;
  73. margin: 20rpx auto;
  74. border-radius: 20rpx;
  75. padding-top: 20rpx;
  76. box-shadow: 0px 0px 8px 0px rgba(165, 189, 251, 0.4);
  77. padding-bottom: 10rpx;
  78. }
  79. .ordertop>view:nth-child(1) {
  80. width: 98%;
  81. margin-bottom: 60rpx;
  82. }
  83. .iconblue {
  84. width: 10rpx;
  85. height: 45rpx;
  86. float: left;
  87. background-color: #3a63cf;
  88. margin-right: 10rpx;
  89. }
  90. .license {
  91. float: left;
  92. font-size: 32rpx;
  93. }
  94. .various {
  95. float: right;
  96. padding: 0 20rpx 0 20rpx;
  97. border: 2rpx solid #3a63cf;
  98. text-align: center;
  99. border-radius: 100rpx;
  100. color: #1669e6;
  101. }
  102. .view {
  103. width: 96%;
  104. margin: 20rpx auto;
  105. display: flex;
  106. justify-content: space-between
  107. }
  108. .line {
  109. width: 92%;
  110. margin: 0 auto;
  111. }
  112. .basic {
  113. width: 94%;
  114. margin: 10rpx auto;
  115. display: flex;
  116. justify-content: space-between;
  117. }
  118. .basic>view {
  119. margin-bottom: 10rpx;
  120. }
  121. .basic>view:nth-child(1) {
  122. color: #797979;
  123. }
  124. .search {
  125. width: 96%;
  126. margin: 10rpx auto;
  127. }
  128. .condition {
  129. background-color: #1669e6;
  130. height: 60rpx;
  131. }
  132. .conditionone {
  133. width: 92%;
  134. height: 44rpx;
  135. margin: 0rpx auto;
  136. display: flex;
  137. justify-content: space-between;
  138. color: #fff;
  139. }
  140. .conditionone>view {
  141. color: #e6e8e8;
  142. }
  143. </style>