handle.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box order_detail">
  5. <view>
  6. <view class="item ctt">订单确认</view>
  7. </view>
  8. <view class="expand" :style="{height:expand?'auto':'300px'}">
  9. <view class="item">
  10. <text class="label">订单编号</text>
  11. <text class="desc omit">{{ item.tradeNo }}</text>
  12. </view>
  13. <view class="item">
  14. <text class="label">结算单号</text>
  15. <text class="desc omit">{{ item.settleBillNo }}</text>
  16. </view>
  17. <view class="item">
  18. <text class="label">预申报编号</text>
  19. <text class="desc omit">{{ item.platSeqNo }}</text>
  20. </view>
  21. <view class="item">
  22. <text class="label">买家</text>
  23. <text class="desc omit">{{ item.buyUserName }}</text>
  24. </view>
  25. <view class="item">
  26. <text class="label">车牌号</text>
  27. <text class="desc">{{ item.veNo }}</text>
  28. </view>
  29. <view class="item">
  30. <text class="label">商品名称</text>
  31. <text class="desc">{{ item.goodsNames }}</text>
  32. </view>
  33. <view class="item">
  34. <text class="label">申报金额</text>
  35. <text class="desc">¥ {{ item.totalPrice }}</text>
  36. </view>
  37. <view class="item">
  38. <text class="label">净重</text>
  39. <text class="desc">{{ item.netWt }}</text>
  40. </view>
  41. <view class="item">
  42. <text class="label">毛重</text>
  43. <text class="desc">{{ item.grossWt }}</text>
  44. </view>
  45. <view class="item">
  46. <text class="label">申报数量</text>
  47. <text class="desc">{{ item.buyQty }}</text>
  48. </view>
  49. <view class="item">
  50. <text class="label">商户名称</text>
  51. <text class="desc">{{ item.enterpriseName }}</text>
  52. </view>
  53. <view class="item">
  54. <text class="label">边民额度序号</text>
  55. <text class="desc">{{ item.limitNo }}</text>
  56. </view>
  57. <view class="item">
  58. <text class="label">商品额度</text>
  59. <text class="desc">{{ item.glimit }}</text>
  60. </view>
  61. <view class="item">
  62. <text class="label">商品序号</text>
  63. <text class="desc">{{ item.gno }}</text>
  64. </view>
  65. <view class="item">
  66. <text class="label">交易地区名称</text>
  67. <text class="desc">{{ item.tradeAreaName }}</text>
  68. </view>
  69. <view class="item">
  70. <text class="label">进口预申报号</text>
  71. <text class="desc">{{ item.preIeportNo }}</text>
  72. </view>
  73. <view class="item">
  74. <text class="label">批次预录入号</text>
  75. <text class="desc">{{ item.preNo }}</text>
  76. </view>
  77. </view>
  78. <view class="more" @click="expand = !expand">
  79. <text class="icon">&#xe649;</text>
  80. <text>{{expand?'收起':'更多信息'}}</text>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="mfooter">
  85. <view class="flex">
  86. <view class="f">
  87. <button class="btn" @click="ok()">确定</button>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </template>
  93. <script>
  94. export default {
  95. data() {
  96. return {
  97. expand: false, //展开
  98. item: {},
  99. orderId: ''
  100. };
  101. },
  102. onLoad(e) {
  103. if (e.orderId) {
  104. this.orderId = e.orderId;
  105. this.getData();
  106. }
  107. },
  108. methods: {
  109. getData() {
  110. this.http.request({
  111. url: '/level-one-server/app/TbOrder/orderDetail',
  112. data: { orderId: this.orderId },
  113. success: res => {
  114. this.item = res.data.data;
  115. }
  116. });
  117. },
  118. ok() {
  119. uni.showModal({
  120. title: '提示',
  121. content: '我已核对信息无误',
  122. success: res => {
  123. if (res.confirm) {
  124. this.http.request({
  125. url: '/level-one-server/app/TbOrder/confirmOrder',
  126. method: 'POST',
  127. data: { orderId: this.item.id },
  128. success: res => {
  129. uni.showToast({ title: '订单确认成功' });
  130. setTimeout(() => {
  131. uni.switchTab({ url: '/pages/index/index' });
  132. }, 1000);
  133. }
  134. });
  135. }
  136. }
  137. });
  138. }
  139. }
  140. };
  141. </script>
  142. <style lang="scss">
  143. page {
  144. background-color: $pg;
  145. }
  146. .cmain{
  147. padding-bottom: 100px;
  148. }
  149. .expand {
  150. overflow: hidden;
  151. }
  152. .more {
  153. text-align: center;
  154. padding: 10px 10px 15px 10px;
  155. .icon {
  156. padding-right: 3px;
  157. }
  158. }
  159. .ctt {
  160. text-align: center;
  161. font-weight: bold;
  162. }
  163. </style>