handleThree.vue 10 KB

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