mixed.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <template>
  2. <view class="order-infos">
  3. <view class="code-wrap">
  4. <view>
  5. <image style="width:84px;height:66px" src="/subpages/static/czzn-img/order/order-detail1.png"
  6. mode="aspectFit" />
  7. </view>
  8. </view>
  9. <view class="order-card">
  10. <view class="order-card-title">
  11. <text class="info">{{ orderInfo.tenantName || '' }}</text>
  12. <text class="status" style="background:#2cab0c">{{$t('order.mainOrder')}}</text>
  13. <view class="orderStatus-info" v-if="orderInfo.orderType != '4'">
  14. <u--image width="100rpx" height="88rpx" v-if="orderInfo.orderStatus == 0"
  15. src="/subpages/static/czzn-img/state/not-factory.png"></u--image>
  16. <u--image width="100rpx" height="88rpx"
  17. v-if="orderInfo.orderStatus == 1 && orderInfo.weighingStatus == 0"
  18. src="/subpages/static/czzn-img/state/in-factory.png"></u--image>
  19. <u--image width="100rpx" height="88rpx" v-if="orderInfo.orderStatus == 2"
  20. src="/subpages/static/czzn-img/state/completed.png"></u--image>
  21. <u--image width="100rpx" height="88rpx"
  22. v-if="orderInfo.orderStatus == 1 && orderInfo.weighingStatus != 0"
  23. src="/subpages/static/czzn-img/state/weighed.png"></u--image>
  24. <u--image width="100rpx" height="88rpx" v-if="orderInfo.orderStatus == 4"
  25. src="/subpages/static/czzn-img/state/cancellation.png"></u--image>
  26. </view>
  27. <view class="orderStatus-info" v-if="orderInfo.orderType == '4'">
  28. <u--image width="100rpx" height="88rpx" v-if="orderInfo.orderStatus == 0"
  29. src="/subpages/static/czzn-img/state/no-take-order.png"></u--image>
  30. <u--image width="100rpx" height="88rpx" v-if="orderInfo.orderStatus == 1"
  31. src="/subpages/static/czzn-img/state/start-take-order.png"></u--image>
  32. <u--image width="100rpx" height="88rpx" v-if="orderInfo.orderStatus == 2"
  33. src="/subpages/static/czzn-img/state/completed.png"></u--image>
  34. <u--image width="100rpx" height="88rpx"
  35. v-if="orderInfo.enabledMarkType == 1 || orderInfo.orderStatus == 4"
  36. src="/subpages/static/czzn-img/state/cancellation.png"></u--image>
  37. </view>
  38. </view>
  39. <view class="order-card-info">
  40. <view class="row">
  41. <p class="cell">
  42. <text class="label">{{ $t('order.orderDate') }}</text>
  43. <text class="info">{{ orderInfo.setDate || '' }}</text>
  44. </p>
  45. <p class="cell">
  46. <text class="no">No {{ orderInfo.code || '' }}</text>
  47. </p>
  48. </view>
  49. <view class="row">
  50. <p class="cell">
  51. <text class="label">{{ $t('order.vehicleType') }}</text>
  52. <text class="info" v-if="orderInfo.vehicleType == '101'">{{ $t('order.saleOrder') }}</text>
  53. <text class="info" v-if="orderInfo.vehicleType == '102'">{{ $t('order.purchaseOrder') }}</text>
  54. <text class="info" v-if="orderInfo.vehicleType == '103'">{{ $t('order.materialsOrder') }}</text>
  55. <text class="info" v-if="orderInfo.vehicleType == '104'">{{ $t('order.transferOrder') }}</text>
  56. <span class="tag tag-ls" v-if="orderInfo.orderType == '1'">{{ $t('order.temp') }}</span>
  57. <span class="tag tag-gd" v-if="orderInfo.orderType == '2'">{{ $t('order.fixed') }}</span>
  58. </p>
  59. </view>
  60. <view class="row">
  61. <p class="cell">
  62. <text class="label">{{ $t('order.companyName') }}</text>
  63. <text class="info">{{ orderInfo.companyName || '' }}</text>
  64. </p>
  65. </view>
  66. <view class="row">
  67. <view class="cell">
  68. <text class="label">{{ $t('order.materialName') }}</text>
  69. <text class="info">{{ orderInfo.materialName || '' }}</text>
  70. </view>
  71. <view class="cell">
  72. <text class="label">{{ $t('order.orderNumber') }}</text>
  73. <text class="info">{{ orderInfo.orderNumber || '' }}{{ orderInfo.orderType ==
  74. '4' ? $t('customer_meter.unitN') : $t('customer_meter.unitT') }}</text>
  75. </view>
  76. </view>
  77. <view class="row">
  78. <p class="cell">
  79. <text class="label">{{ $t('order.driver') }}</text>
  80. <text class="info">{{ orderInfo.driver || '' }}</text>
  81. </p>
  82. <p class="cell">
  83. <text class="label">{{ $t('order.vehicle') }}</text>
  84. <text class="info">{{ orderInfo.vehicle || '' }}</text>
  85. </p>
  86. </view>
  87. <!--
  88. <view class="row" v-if="orderInfo.orderStatus != 0 && orderInfo.weighingStatus != 0">
  89. <p class="cell">
  90. <text class="label">{{ $t('order.tareWeight') }}</text>
  91. <text class="info">{{ orderInfo.tareWeight || '0' }}</text>
  92. </p>
  93. <p class="cell">
  94. <text class="label">{{ $t('order.grossWeight') }}</text>
  95. <text class="info">{{ orderInfo.grossWeight || '0' }}</text>
  96. </p>
  97. </view>
  98. <view class="row" v-if="orderInfo.orderStatus != 0 && orderInfo.weighingStatus != 0">
  99. <p class="cell">
  100. <text class="label">{{ $t('order.netWeight') }}</text>
  101. <text class="info">{{ orderInfo.netWeight || '0' }}</text>
  102. </p>
  103. </view>
  104. <view class="row" v-if="orderInfo.orderStatus != 0 && orderInfo.weighingStatus == 1">
  105. <p class="cell">
  106. <text class="label">{{ $t('order.inTime') }}</text>
  107. <text class="info">{{ orderInfo.inTime || '' }}</text>
  108. </p>
  109. </view>
  110. <view class="row" v-if="orderInfo.orderStatus != 0 && orderInfo.weighingStatus == 2">
  111. <p class="cell">
  112. <text class="label">{{ $t('order.outTime') }}</text>
  113. <text class="info">{{ orderInfo.outTime || '' }}</text>
  114. </p>
  115. </view>
  116. <view class="row" v-if="orderInfo.orderStatus == 2">
  117. <p class="cell">
  118. <text class="label">{{ $t('order.outDate') }}</text>
  119. <text class="info">{{ orderInfo.outDoorTime || '' }}</text>
  120. </p>
  121. </view> -->
  122. </view>
  123. </view>
  124. <view class="order-mixed">
  125. </view>
  126. <view class="swiper-box">
  127. <u-tabs :list="tabList" @click="onTabClick" :is-scroll="false" :current="currentTab" bar-width="60"
  128. lineWidth="60" active-color="orange"></u-tabs>
  129. <view v-if="currentTab == 0 && orderHaxMixedList.length > 0">
  130. <view class="order-card" v-for="(item, index) in orderHaxMixedList" :key="index">
  131. <view class="order-card-title">
  132. <text class="info">{{ item.tenantName || '' }}</text>
  133. <text class="status" style="background:rgb(235 199 22)">{{$t('order.suppOrder')}}</text>
  134. <view class="orderStatus-info" v-if="item.orderType != '4'">
  135. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 0"
  136. src="/subpages/static/czzn-img/state/not-factory.png"></u--image>
  137. <u--image width="100rpx" height="88rpx"
  138. v-if="item.orderStatus == 1 && item.weighingStatus == 0"
  139. src="/subpages/static/czzn-img/state/in-factory.png"></u--image>
  140. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 2"
  141. src="/subpages/static/czzn-img/state/completed.png"></u--image>
  142. <u--image width="100rpx" height="88rpx"
  143. v-if="item.orderStatus == 1 && item.weighingStatus != 0"
  144. src="/subpages/static/czzn-img/state/weighed.png"></u--image>
  145. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 4"
  146. src="/subpages/static/czzn-img/state/cancellation.png"></u--image>
  147. </view>
  148. <view class="orderStatus-info" v-if="item.orderType == '4'">
  149. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 0"
  150. src="/subpages/static/czzn-img/state/no-take-order.png"></u--image>
  151. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 1"
  152. src="/subpages/static/czzn-img/state/start-take-order.png"></u--image>
  153. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 2"
  154. src="/subpages/static/czzn-img/state/completed.png"></u--image>
  155. <u--image width="100rpx" height="88rpx"
  156. v-if="item.enabledMarkType == 1 || item.orderStatus == 4"
  157. src="/subpages/static/czzn-img/state/cancellation.png"></u--image>
  158. </view>
  159. </view>
  160. <view class="order-card-info">
  161. <view class="row">
  162. <p class="cell">
  163. <text class="label">{{ $t('order.orderDate') }}</text>
  164. <text class="info">{{ item.setDate || '' }}</text>
  165. </p>
  166. <p class="cell">
  167. <text class="no">No {{ item.code || '' }}</text>
  168. </p>
  169. </view>
  170. <view class="row">
  171. <p class="cell">
  172. <text class="label">{{ $t('order.vehicleType') }}</text>
  173. <text class="info" v-if="item.vehicleType == '101'">{{ $t('order.saleOrder') }}</text>
  174. <text class="info"
  175. v-if="item.vehicleType == '102'">{{ $t('order.purchaseOrder') }}</text>
  176. <span class="tag tag-ls" v-if="item.orderType == '1'">{{ $t('order.temp') }}</span>
  177. <span class="tag tag-gd" v-if="item.orderType == '2'">{{ $t('order.fixed') }}</span>
  178. </p>
  179. </view>
  180. <view class="row">
  181. <p class="cell">
  182. <text class="label">{{ $t('order.companyName') }}</text>
  183. <text class="info">{{ item.companyName || '' }}</text>
  184. </p>
  185. </view>
  186. <view class="row">
  187. <p class="cell">
  188. <text class="label">{{ $t('order.materialName') }}</text>
  189. <text class="info">{{ item.materialName || '' }}</text>
  190. </p>
  191. <p class="cell">
  192. <text class="label">{{ $t('order.orderNumber') }}</text>
  193. <text class="info">{{ item.orderNumber || '' }}{{ item.orderType ==
  194. '4' ? $t('customer_meter.unitN') : $t('customer_meter.unitT') }}</text>
  195. </p>
  196. </view>
  197. <view class="row">
  198. <p class="cell">
  199. <text class="label">{{ $t('order.driver') }}</text>
  200. <text class="info">{{ item.driver || '' }}</text>
  201. </p>
  202. <p class="cell">
  203. <text class="label">{{ $t('order.vehicle') }}</text>
  204. <text class="info">{{ item.vehicle || '' }}</text>
  205. </p>
  206. </view>
  207. <view class="row" v-if="item.orderStatus != 0 && item.weighingStatus != 0">
  208. <p class="cell">
  209. <text class="label">{{ $t('order.tareWeight') }}</text>
  210. <text class="info">{{ item.tareWeight || '0' }}</text>
  211. </p>
  212. <p class="cell">
  213. <text class="label">{{ $t('order.grossWeight') }}</text>
  214. <text class="info">{{ item.grossWeight || '0' }}</text>
  215. </p>
  216. </view>
  217. <view class="row">
  218. <p class="cell">
  219. <text class="label">{{ $t('order.netWeight') }}</text>
  220. <text class="info">{{ item.netWeight || '0' }}</text>
  221. </p>
  222. </view>
  223. <view class="row" v-if="item.orderStatus != 0 && item.weighingStatus == 1">
  224. <p class="cell">
  225. <text class="label">{{ $t('order.inTime') }}</text>
  226. <text class="info">{{ item.inTime || '' }}</text>
  227. </p>
  228. </view>
  229. <view class="row" v-if="item.orderStatus != 0 && item.weighingStatus == 2">
  230. <p class="cell">
  231. <text class="label">{{ $t('order.outTime') }}</text>
  232. <text class="info">{{ item.outTime || '' }}</text>
  233. </p>
  234. </view>
  235. <view class="row" v-if="item.orderStatus == 2">
  236. <p class="cell">
  237. <text class="label">{{ $t('order.outDate') }}</text>
  238. <text class="info">{{ item.outDoorTime || '' }}</text>
  239. </p>
  240. </view>
  241. </view>
  242. <view class="order-card-bottom" v-if="item.isMain == 1">
  243. <view class="btn">
  244. <u-button class="btn" type='error' shape="circle" size="small"
  245. @click="onCancelMixedOrderClick(item.id)">
  246. {{ $t('base.button.cancel') }}
  247. </u-button>
  248. </view>
  249. </view>
  250. </view>
  251. </view>
  252. <view v-if="currentTab == 1 && orderUnMixedList.length > 0">
  253. <view class="order-card" v-for="(item, index) in orderUnMixedList" :key="index">
  254. <view class="order-card-title">
  255. <text class="info">{{ item.tenantName || '' }}</text>
  256. <text class="status" style="background:rgb(235 199 22)">{{$t('order.suppOrder')}}</text>
  257. <view class="orderStatus-info" v-if="item.orderType != '4'">
  258. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 0"
  259. src="/subpages/static/czzn-img/state/not-factory.png"></u--image>
  260. <u--image width="100rpx" height="88rpx"
  261. v-if="item.orderStatus == 1 && item.weighingStatus == 0"
  262. src="/subpages/static/czzn-img/state/in-factory.png"></u--image>
  263. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 2"
  264. src="/subpages/static/czzn-img/state/completed.png"></u--image>
  265. <u--image width="100rpx" height="88rpx"
  266. v-if="item.orderStatus == 1 && item.weighingStatus != 0"
  267. src="/subpages/static/czzn-img/state/weighed.png"></u--image>
  268. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 4"
  269. src="/subpages/static/czzn-img/state/cancellation.png"></u--image>
  270. </view>
  271. <view class="orderStatus-info" v-if="item.orderType == '4'">
  272. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 0"
  273. src="/subpages/static/czzn-img/state/no-take-order.png"></u--image>
  274. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 1"
  275. src="/subpages/static/czzn-img/state/start-take-order.png"></u--image>
  276. <u--image width="100rpx" height="88rpx" v-if="item.orderStatus == 2"
  277. src="/subpages/static/czzn-img/state/completed.png"></u--image>
  278. <u--image width="100rpx" height="88rpx"
  279. v-if="item.enabledMarkType == 1 || item.orderStatus == 4"
  280. src="/subpages/static/czzn-img/state/cancellation.png"></u--image>
  281. </view>
  282. </view>
  283. <view class="order-card-info">
  284. <view class="order-card-info">
  285. <view class="row">
  286. <p class="cell">
  287. <text class="label">{{ $t('order.orderDate') }}</text>
  288. <text class="info">{{ item.setDate || '' }}</text>
  289. </p>
  290. <p class="cell">
  291. <text class="no">No {{ item.code || '' }}</text>
  292. </p>
  293. </view>
  294. <view class="row">
  295. <p class="cell">
  296. <text class="label">{{ $t('order.vehicleType') }}</text>
  297. <text class="info"
  298. v-if="item.vehicleType == '101'">{{ $t('order.saleOrder') }}</text>
  299. <text class="info"
  300. v-if="item.vehicleType == '102'">{{ $t('order.purchaseOrder') }}</text>
  301. <span class="tag tag-ls" v-if="item.orderType == '1'">{{ $t('order.temp') }}</span>
  302. <span class="tag tag-gd" v-if="item.orderType == '2'">{{ $t('order.fixed') }}</span>
  303. </p>
  304. </view>
  305. <view class="row">
  306. <p class="cell">
  307. <text class="label">{{ $t('order.companyName') }}</text>
  308. <text class="info">{{ item.companyName || '' }}</text>
  309. </p>
  310. </view>
  311. <view class="row">
  312. <p class="cell">
  313. <text class="label">{{ $t('order.materialName') }}</text>
  314. <text class="info">{{ item.materialName || '' }}</text>
  315. </p>
  316. <p class="cell">
  317. <text class="label">{{ $t('order.orderNumber') }}</text>
  318. <text class="info">{{ item.orderNumber || '' }}{{ item.orderType ==
  319. '4' ? $t('customer_meter.unitN') : $t('customer_meter.unitT') }}</text>
  320. </p>
  321. </view>
  322. <view class="row">
  323. <p class="cell">
  324. <text class="label">{{ $t('order.driver') }}</text>
  325. <text class="info">{{ item.driver || '' }}</text>
  326. </p>
  327. <p class="cell">
  328. <text class="label">{{ $t('order.vehicle') }}</text>
  329. <text class="info">{{ item.vehicle || '' }}</text>
  330. </p>
  331. </view>
  332. <view class="row" v-if="item.orderStatus != 0 && item.weighingStatus != 0">
  333. <p class="cell">
  334. <text class="label">{{ $t('order.tareWeight') }}</text>
  335. <text class="info">{{ item.tareWeight || '0' }}</text>
  336. </p>
  337. <p class="cell">
  338. <text class="label">{{ $t('order.grossWeight') }}</text>
  339. <text class="info">{{ item.grossWeight || '0' }}</text>
  340. </p>
  341. </view>
  342. <view class="row">
  343. <p class="cell">
  344. <text class="label">{{ $t('order.netWeight') }}</text>
  345. <text class="info">{{ item.netWeight || '0' }}</text>
  346. </p>
  347. </view>
  348. <view class="row" v-if="item.orderStatus != 0 && item.weighingStatus == 1">
  349. <p class="cell">
  350. <text class="label">{{ $t('order.inTime') }}</text>
  351. <text class="info">{{ item.inTime || '' }}</text>
  352. </p>
  353. </view>
  354. <view class="row" v-if="item.orderStatus != 0 && item.weighingStatus == 2">
  355. <p class="cell">
  356. <text class="label">{{ $t('order.outTime') }}</text>
  357. <text class="info">{{ item.outTime || '' }}</text>
  358. </p>
  359. </view>
  360. <view class="row" v-if="item.orderStatus == 2">
  361. <p class="cell">
  362. <text class="label">{{ $t('order.outDate') }}</text>
  363. <text class="info">{{ item.outDoorTime || '' }}</text>
  364. </p>
  365. </view>
  366. </view>
  367. </view>
  368. <view class="order-card-bottom" v-if="item.isMain == 0">
  369. <view class="btn">
  370. <u-button class="btn" type='error' shape="circle" size="small"
  371. @click="onOrderMixedClick(item.id)">
  372. {{ $t('base.button.submit') }}
  373. </u-button>
  374. </view>
  375. </view>
  376. </view>
  377. </view>
  378. </view>
  379. <u-toast ref="loadingToast"></u-toast>
  380. </view>
  381. </template>
  382. <script>
  383. import {
  384. getOrderInfo,
  385. getOrderMixedList,
  386. operateMixedOrder,
  387. cancelMixedOrder
  388. } from '../../api/order'
  389. export default {
  390. data() {
  391. return {
  392. tabList: [{
  393. "name": this.$t('order.hasMixed'),
  394. "tabIndex": 0
  395. }, {
  396. "name": this.$t('order.unMixed'),
  397. "tabIndex": 1
  398. }],
  399. currentTab: 0,
  400. orderInfo: {},
  401. orderHaxMixedList: [],
  402. orderUnMixedList: [],
  403. statusBarHeight: null,
  404. options: {}
  405. }
  406. },
  407. onLoad(options) {
  408. this.options = options
  409. console.log("收到的参数信息、", options);
  410. this.bindOrderInfo()
  411. this.bindMixedOrderInfo()
  412. debugger
  413. let sysInfo = wx.getSystemInfoSync(); //状态栏的高度
  414. this.statusBarHeight = sysInfo.statusBarHeight;
  415. this.rect = wx.getMenuButtonBoundingClientRect();
  416. console.log(this.rect, this.statusBarHeight);
  417. },
  418. methods: {
  419. onTabClick(item) {
  420. this.bindMixedOrderInfo()
  421. console.log("选择的Tab项、", item);
  422. this.currentTab = item.tabIndex
  423. },
  424. onOrderMixedClick(orderId) {
  425. var that = this;
  426. uni.showModal({
  427. // title: '提示',
  428. content: that.$t('order.isConfirmMixedOrder'),
  429. showCancel: true,
  430. cancelText: that.$t('base.button.cancel'),
  431. confirmText: that.$t('base.button.confirm'),
  432. success: function(res) {
  433. if (res.confirm) {
  434. let param = {
  435. "mainOrderId": that.orderInfo.id,
  436. "orderId": orderId,
  437. "tenantId": that.orderInfo.tenantId
  438. }
  439. that.$refs.loadingToast.show({
  440. type: "loading",
  441. message: that.$t('base.common.loading'),
  442. duration: "1000000"
  443. })
  444. operateMixedOrder(param).then(res => {
  445. that.$refs.loadingToast.hide()
  446. if (res.data.code == 0) {
  447. that.bindMixedOrderInfo()
  448. }
  449. }).catch(res => {
  450. that.$refs.loadingToast.hide()
  451. console.log("调用异常返回、", res);
  452. });
  453. let pages = getCurrentPages();
  454. let prevPage = pages[pages.length - 2]; //上一个页面
  455. prevPage.$vm.isRefresh = true
  456. uni.navigateBack();
  457. console.log('用户点击确定');
  458. } else if (res.cancel) {
  459. console.log('用户点击取消');
  460. that.$refs.loadingToast.hide()
  461. }
  462. }
  463. })
  464. },
  465. onCancelMixedOrderClick(orderId) {
  466. var that = this;
  467. uni.showModal({
  468. // title: '提示',
  469. content: that.$t('order.isCancelMixedOrder'),
  470. showCancel: true,
  471. cancelText: that.$t('base.button.cancel'),
  472. confirmText: that.$t('base.button.confirm'),
  473. success: function(res) {
  474. if (res.confirm) {
  475. let param = {
  476. "orderId": orderId,
  477. "tenantId": that.orderInfo.tenantId
  478. }
  479. that.$refs.loadingToast.show({
  480. type: "loading",
  481. message: that.$t('base.common.loading'),
  482. duration: "1000000"
  483. })
  484. cancelMixedOrder(param).then(res => {
  485. that.$refs.loadingToast.hide()
  486. if (res.data.code == 0) {
  487. that.bindMixedOrderInfo()
  488. }
  489. let pages = getCurrentPages();
  490. let prevPage = pages[pages.length - 2]; //上一个页面
  491. prevPage.$vm.isRefresh = true
  492. uni.navigateBack();
  493. }).catch(res => {
  494. that.$refs.loadingToast.hide()
  495. console.log("调用异常返回、", res);
  496. });
  497. console.log('用户点击确定');
  498. } else if (res.cancel) {
  499. console.log('用户点击取消');
  500. that.$refs.loadingToast.hide()
  501. }
  502. }
  503. })
  504. },
  505. bindOrderInfo() {
  506. getOrderInfo(this.options).then(res => {
  507. if (res.statusCode == 200) {
  508. this.orderInfo = res.data.data
  509. console.log("获取到订单信息、", this.orderInfo);
  510. }
  511. })
  512. },
  513. bindMixedOrderInfo() {
  514. getOrderMixedList(this.options).then(res => {
  515. if (res.statusCode == 200) {
  516. this.orderHaxMixedList = res.data.data.mixed
  517. this.orderUnMixedList = res.data.data.orderList
  518. console.log("获取到已拼车订单信息、", this.orderHaxMixedList);
  519. console.log("获取到未拼车订单信息、", this.orderUnMixedList);
  520. }
  521. })
  522. },
  523. pageBack() {
  524. uni.navigateBack({
  525. delta: 1
  526. })
  527. }
  528. }
  529. }
  530. </script>
  531. <style>
  532. /* #ifndef APP-NVUE */
  533. view {
  534. display: flex;
  535. box-sizing: border-box;
  536. flex-direction: column;
  537. }
  538. page {
  539. box-sizing: border-box;
  540. /* padding: 40rpx 40rpx 80rpx; */
  541. height: 100%;
  542. background-image: url('/subpages/static/czzn-img/order/order-detail2.png');
  543. background-size: 750rpx 100%;
  544. }
  545. /* #endif*/
  546. </style>
  547. <style lang="scss" scoped>
  548. @import '../../common/css/public.scss';
  549. /deep/ .u-cell {
  550. background-color: #e5ecf8;
  551. }
  552. /deep/.u-tabs__wrapper {
  553. display: flex;
  554. flex-direction: row;
  555. align-items: center;
  556. background-color: #dfebff;
  557. border-radius: 5px;
  558. }
  559. // .code-wrap {
  560. // padding: 24rpx;
  561. // display: flex;
  562. // flex-direction: row;
  563. // justify-content: space-around;
  564. // .code-info {
  565. // color: #fff;
  566. // justify-content: space-around;
  567. // .label {
  568. // font-size: 36rpx;
  569. // }
  570. // .info {
  571. // font-size: 28rpx;
  572. // }
  573. // }
  574. // }
  575. // .topbar {
  576. // width: 100%;
  577. // text-align: center;
  578. // font-size: 32rpx;
  579. // color: #fff;
  580. // line-height: 88rpx;
  581. // font-weight: bold;
  582. // position: relative;
  583. // .back-icon {
  584. // position: absolute;
  585. // padding: 20rpx;
  586. // color: #fff;
  587. // bottom: 0;
  588. // left: 0;
  589. // }
  590. // }
  591. .order-mixed {
  592. padding: 6rpx 0rpx 6rpx 0rpx;
  593. margin: 12rpx 12rpx 0;
  594. }
  595. </style>