handleThree.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box order_detail" style="padding: 13px">
  5. <u-steps :current="current">
  6. <u-steps-item title="订单确认"></u-steps-item>
  7. <u-steps-item title="互助委托确认"></u-steps-item>
  8. <u-steps-item title="进口申报确认"></u-steps-item>
  9. </u-steps>
  10. </view>
  11. <view class="box order_detail">
  12. <view v-if="current == 0">
  13. <view class="item ctt">订单确认</view>
  14. </view>
  15. <view v-if="current == 1">
  16. <view class="item ctt">互助委托书</view>
  17. <view class="item desc">边民 {{ item.buyUserName }}(身份证号:4509231***12)委托代理边民互市(进口/入境)商品交易(进口/入境)商品交易信息如下:</view>
  18. </view>
  19. <view v-if="current == 2">
  20. <view class="item ctt">进口申报确认</view>
  21. </view>
  22. <view class="expand" v-if="current == 0" :style="{height:expand?'auto':'300px'}">
  23. <view class="item">
  24. <text class="label">订单编号</text>
  25. <text class="desc omit">{{ item.tradeNo }}</text>
  26. </view>
  27. <view class="item">
  28. <text class="label">结算单号</text>
  29. <text class="desc omit">{{ item.settleBillNo }}</text>
  30. </view>
  31. <view class="item">
  32. <text class="label">预申报编号</text>
  33. <text class="desc omit">{{ item.platSeqNo }}</text>
  34. </view>
  35. <view class="item">
  36. <text class="label">买家</text>
  37. <text class="desc omit">{{ item.buyUserName }}</text>
  38. </view>
  39. <view class="item">
  40. <text class="label">车牌号</text>
  41. <text class="desc">{{ item.veNo }}</text>
  42. </view>
  43. <view class="item">
  44. <text class="label">商品名称</text>
  45. <text class="desc">{{ item.goodsNames }}</text>
  46. </view>
  47. <view class="item">
  48. <text class="label">申报金额</text>
  49. <text class="desc">¥ {{ item.totalPrice }}</text>
  50. </view>
  51. <view class="item">
  52. <text class="label">净重</text>
  53. <text class="desc">{{ item.netWt }}</text>
  54. </view>
  55. <view class="item">
  56. <text class="label">毛重</text>
  57. <text class="desc">{{ item.grossWt }}</text>
  58. </view>
  59. <view class="item">
  60. <text class="label">申报数量</text>
  61. <text class="desc">{{ item.buyQty }}</text>
  62. </view>
  63. <view class="item">
  64. <text class="label">商户名称</text>
  65. <text class="desc">{{ item.enterpriseName }}</text>
  66. </view>
  67. <view class="item">
  68. <text class="label">边民额度序号</text>
  69. <text class="desc">{{ item.limitNo }}</text>
  70. </view>
  71. <view class="item">
  72. <text class="label">商品额度</text>
  73. <text class="desc">{{ item.glimit }}</text>
  74. </view>
  75. <view class="item">
  76. <text class="label">商品序号</text>
  77. <text class="desc">{{ item.gno }}</text>
  78. </view>
  79. <view class="item">
  80. <text class="label">交易地区名称</text>
  81. <text class="desc">{{ item.tradeAreaName }}</text>
  82. </view>
  83. <view class="item">
  84. <text class="label">进口预申报号</text>
  85. <text class="desc">{{ item.preIeportNo }}</text>
  86. </view>
  87. <view class="item">
  88. <text class="label">批次预录入号</text>
  89. <text class="desc">{{ item.preNo }}</text>
  90. </view>
  91. </view>
  92. <view class="expand" v-else :style="{height:expand?'auto':'300px'}">
  93. <view class="item">
  94. <text class="label">业务编号</text>
  95. <text class="desc omit">{{ item2.platSeqNo }}</text>
  96. </view>
  97. <view class="item">
  98. <text class="label">预录入编号</text>
  99. <text class="desc">{{ item2.preNo }}</text>
  100. </view>
  101. <view class="item">
  102. <text class="label">关联进境申报单编号</text>
  103. <text class="desc">{{ item2.itrdclDeclareId }}</text>
  104. </view>
  105. <view class="item">
  106. <text class="label">申报人类型</text>
  107. <text class="desc">{{ item2.declareType }}</text>
  108. </view>
  109. <view class="item">
  110. <text class="label">申报人姓名</text>
  111. <text class="desc">{{ item2.declareName }}</text>
  112. </view>
  113. <view class="item">
  114. <text class="label">申报人身份证号</text>
  115. <text class="desc">{{ item2.ciphertextIdno }}</text>
  116. </view>
  117. <view class="item" v-if="item2.declareType == '2'">
  118. <text class="label">商铺编码</text>
  119. <text class="desc">{{ item2.shopNo }}</text>
  120. </view>
  121. <view class="item" v-if="item2.declareType == '2'">
  122. <text class="label">商铺名称</text>
  123. <text class="desc">{{ item2.shopName }}</text>
  124. </view>
  125. <view class="item">
  126. <text class="label">商品名称</text>
  127. <text class="desc">{{ item2.goodsNames }}</text>
  128. </view>
  129. <view class="item">
  130. <text class="label">商品额度</text>
  131. <text class="desc">{{ item2.gLimit }}</text>
  132. </view>
  133. <view class="item">
  134. <text class="label">总金额</text>
  135. <text class="desc">{{ item2.sumAmt }}</text>
  136. </view>
  137. <view class="item">
  138. <text class="label">总毛重</text>
  139. <text class="desc">{{ item2.sumGrossWt }}</text>
  140. </view>
  141. <view class="item">
  142. <text class="label">总净重</text>
  143. <text class="desc">{{ item2.sumNetWt }}</text>
  144. </view>
  145. <view class="item">
  146. <text class="label">币制</text>
  147. <text class="desc">{{ item2.currCode }}</text>
  148. </view>
  149. <view class="item">
  150. <text class="label">件数</text>
  151. <text class="desc">{{ item2.packNo }}</text>
  152. </view>
  153. <view class="item">
  154. <text class="label">车牌号</text>
  155. <text class="desc">{{ item2.veNo }}</text>
  156. </view>
  157. <view class="item">
  158. <text class="label">运输方式</text>
  159. <text class="desc">{{ item2.trafMode }}</text>
  160. </view>
  161. <view class="item" v-if="item2.declareType == '3' || item2.declareType == '4'">
  162. <text class="label" v-if="item2.declareType == '3'">互助组备案编号</text>
  163. <text class="label" v-if="item2.declareType == '4'">合作社备案编号</text>
  164. <text class="desc">¥ {{ item2.orgPutrecNo }}</text>
  165. </view>
  166. <view class="item" v-if="item2.declareType == '3' || item2.declareType == '4'">
  167. <text class="label" v-if="item2.declareType == '3'">互助组名称</text>
  168. <text class="label" v-if="item2.declareType == '4'">合作社名称</text>
  169. <text class="desc">¥ {{ item2.orgName }}</text>
  170. </view>
  171. <view class="item" v-if="item2.declareType == '4'">
  172. <text class="label">合作社信用代码</text>
  173. <text class="desc">¥ {{ item2.orgScc }}</text>
  174. </view>
  175. <view class="item">
  176. <text class="label">监管场所</text>
  177. <text class="desc">{{ item2.fieldName }}</text>
  178. </view>
  179. <view class="item">
  180. <text class="label">贸易国别</text>
  181. <text class="desc">{{ item2.tradeCountry }}</text>
  182. </view>
  183. <view class="item">
  184. <text class="label">企业编码</text>
  185. <text class="desc">{{ item2.entCode }}</text>
  186. </view>
  187. <view class="item">
  188. <text class="label">企业名称</text>
  189. <text class="desc">{{ item2.entName }}</text>
  190. </view>
  191. </view>
  192. <view class="more" @click="expand = !expand">
  193. <text class="icon">&#xe649;</text>
  194. <text>{{expand?'收起':'更多信息'}}</text>
  195. </view>
  196. </view>
  197. </view>
  198. <view class="mfooter">
  199. <view class="flex">
  200. <view class="f">
  201. <button class="btn" @click="ok()">确定</button>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </template>
  207. <script>
  208. export default {
  209. data() {
  210. return {
  211. expand: false, //展开
  212. current: 0,
  213. item: {},
  214. item2: {},
  215. orderId: '',
  216. peopleConfirmStatus: '',
  217. cooperEntrustStatus: '',
  218. applyConfirmStatus: ''
  219. };
  220. },
  221. onLoad(e) {
  222. if (e.orderId && e.peopleConfirmStatus && e.cooperEntrustStatus && e.applyConfirmStatus) {
  223. this.orderId = e.orderId;
  224. this.peopleConfirmStatus = e.peopleConfirmStatus;
  225. this.cooperEntrustStatus = e.cooperEntrustStatus;
  226. this.applyConfirmStatus = e.applyConfirmStatus;
  227. if(this.peopleConfirmStatus == 0) {
  228. this.current = 0;
  229. this.getData1();
  230. } else if(this.peopleConfirmStatus == 1 && this.cooperEntrustStatus == 0) {
  231. this.current = 1;
  232. this.getData2();
  233. } else if(this.peopleConfirmStatus == 1 && this.cooperEntrustStatus == 1 && this.applyConfirmStatus == 0) {
  234. this.current = 2;
  235. this.getData2();
  236. }
  237. }
  238. //人脸认证回调
  239. uni.$on('face',res=>{
  240. if (this.current == 0){
  241. this.http.request({
  242. url: '/level-one-server/app/TbOrder/confirmOrder',
  243. method: 'POST',
  244. data: { orderId: this.item.id },
  245. success: res => {
  246. uni.showToast({ title: '订单确认成功' });
  247. this.current = 1;
  248. uni.setNavigationBarTitle({ title: '互助委托确认' });
  249. }
  250. });
  251. }
  252. if (this.current == 1){
  253. this.http.request({
  254. url: '/level-one-server/app/TbOrder/cooperOrder',
  255. method: 'POST',
  256. data: { orderId: this.item.id },
  257. success: res => {
  258. uni.showToast({ title: '互助委托确认成功' });
  259. this.current = 2;
  260. uni.setNavigationBarTitle({ title: '进口申报确认' });
  261. }
  262. });
  263. }
  264. if (this.current == 2){
  265. this.http.request({
  266. url: '/level-one-server/app/TbOrder/applyOrder',
  267. method: 'POST',
  268. data: { orderId: this.item.id },
  269. success: res => {
  270. uni.showToast({ title: '进口申报确认成功' });
  271. setTimeout(() => {
  272. uni.switchTab({ url: '/pages/index/index' });
  273. }, 1000);
  274. }
  275. });
  276. }
  277. })
  278. },
  279. methods: {
  280. getData1() {
  281. this.http.request({
  282. url: '/level-one-server/app/TbOrder/orderDetail',
  283. data: { orderId: this.orderId },
  284. success: res => {
  285. this.item = res.data.data;
  286. }
  287. });
  288. },
  289. getData2() {
  290. this.http.request({
  291. url: '/level-one-server/app/TbImportOrder/importOrderDetail',
  292. data: { orderId: this.orderId },
  293. success: res => {
  294. this.item2 = res.data.data;
  295. }
  296. });
  297. },
  298. ok() {
  299. //根据不同的步骤提交不同的url或者状态参数
  300. if (this.current == 0) {
  301. uni.showModal({
  302. title: '提示',
  303. content: '我已核对信息无误',
  304. success: res => {
  305. if (res.confirm) {
  306. //跳转到人脸认证
  307. uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
  308. }
  309. }
  310. });
  311. }
  312. if (this.current == 1) {
  313. uni.showModal({
  314. title: '提示',
  315. content: '我已核对信息无误',
  316. success: res => {
  317. if (res.confirm) {
  318. //跳转到人脸认证
  319. uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
  320. }
  321. }
  322. });
  323. }
  324. if (this.current == 2) {
  325. uni.showModal({
  326. title: '提示',
  327. content: '我已核对信息无误',
  328. success: res => {
  329. if (res.confirm) {
  330. //跳转到人脸认证
  331. uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
  332. }
  333. }
  334. });
  335. }
  336. }
  337. },
  338. destroyed() {
  339. uni.$off('face');
  340. }
  341. };
  342. </script>
  343. <style lang="scss">
  344. page {
  345. background-color: $pg;
  346. }
  347. .cmain{
  348. padding-bottom: 100px;
  349. }
  350. .expand {
  351. overflow: hidden;
  352. }
  353. .more {
  354. text-align: center;
  355. padding: 10px 10px 15px 10px;
  356. .icon {
  357. padding-right: 3px;
  358. }
  359. }
  360. .ctt {
  361. text-align: center;
  362. font-weight: bold;
  363. }
  364. </style>