handle.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. uni.$on('face', res => {
  109. this.http.request({
  110. url: '/level-one-server/app/TbOrder/confirmOrder',
  111. method: 'POST',
  112. data: { orderId: this.item.id },
  113. success: res => {
  114. uni.showToast({ title: '订单确认成功' });
  115. setTimeout(() => {
  116. uni.switchTab({ url: '/pages/index/index' });
  117. }, 1000);
  118. }
  119. });
  120. });
  121. },
  122. methods: {
  123. getData() {
  124. this.http.request({
  125. url: '/level-one-server/app/TbOrder/orderDetail',
  126. data: { orderId: this.orderId },
  127. success: res => {
  128. this.item = res.data.data;
  129. }
  130. });
  131. },
  132. ok() {
  133. uni.showModal({
  134. title: '提示',
  135. content: '我已核对信息无误',
  136. success: res => {
  137. if (res.confirm) {
  138. //跳转到人脸认证
  139. uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
  140. }
  141. }
  142. });
  143. }
  144. },
  145. destroyed() {
  146. uni.$off('face');
  147. }
  148. };
  149. </script>
  150. <style lang="scss">
  151. page {
  152. background-color: $pg;
  153. }
  154. .cmain {
  155. padding-bottom: 100px;
  156. }
  157. .expand {
  158. overflow: hidden;
  159. }
  160. .more {
  161. text-align: center;
  162. padding: 10px 10px 15px 10px;
  163. .icon {
  164. padding-right: 3px;
  165. }
  166. }
  167. .ctt {
  168. text-align: center;
  169. font-weight: bold;
  170. }
  171. </style>