orderDetails.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966
  1. <!-- 订单详情-->
  2. <template>
  3. <view class="content">
  4. <view class="fixed1"></view>
  5. <view class="fixed">
  6. <view class='title flex flex-center'>
  7. <u-icon class="back" name="arrow-left" color="" size="20" @click="back"></u-icon>
  8. <view class="nav-title">订单详情</view>
  9. <u-icon class="search" name="server-fill" color="" size="28" @click="$helper.contactCustomerService">
  10. </u-icon>
  11. </view>
  12. </view>
  13. <view class="content1">
  14. <view class="item1">
  15. <view class="status">{{dataObj.cargoOwnerStatus}}</view>
  16. </view>
  17. <!-- flex flex-space-between -->
  18. <view class="item2">
  19. <u-button class="btn" text="驳回" @click="accept(2)" v-if="dataObj.cargoOwnerStatus=='待接单'">
  20. </u-button>
  21. <u-button class="btn" text="接受" @click="accept(1)" v-if="dataObj.cargoOwnerStatus=='待接单'">
  22. </u-button>
  23. <u-button class="btn" text="终止" @click="stop()" v-if="dataObj.cargoOwnerStatus=='未装车'">
  24. </u-button>
  25. <u-button class="btn" text="查看合同" @click="lookContract"></u-button>
  26. <u-button class="btn" text="签订合同" @click="signContract"
  27. v-if="dataObj.cargoOwnerStatus=='待确认装车'&&dataObj.cargoOwnerContract!='1'">
  28. </u-button>
  29. <u-button class="btn" text="驳回装车信息" @click="confirmLoading()" v-if="dataObj.cargoOwnerStatus=='待确认装车'">
  30. </u-button>
  31. <u-button class="btn" text="确认装车" @click="confirmLoading(3)"
  32. v-if="dataObj.cargoOwnerStatus=='待确认装车'&&dataObj.cargoOwnerContract=='1'">
  33. </u-button>
  34. <u-button class="btn" text="驳回卸车信息" @click="confirmUnLoading" v-if="dataObj.cargoOwnerStatus=='待收货'">
  35. </u-button>
  36. <u-button class="btn" text="确认卸车" @click="confirmUnLoading" v-if="dataObj.cargoOwnerStatus=='待收货'">
  37. </u-button>
  38. <u-button class="btn" text="付款" @click="closed"
  39. v-if="dataObj.cargoOwnerStatus=='待结算'||dataObj.cargoOwnerStatus=='已结算'"></u-button>
  40. <u-button class="btn" text="还款" @click="stop" v-if="dataObj.cargoOwnerStatus=='待还款'"></u-button>
  41. <u-button class="btn" text="联系客服"
  42. v-if="dataObj.cargoOwnerStatus!='待接单'&&dataObj.cargoOwnerStatus!='未装车'">
  43. </u-button>
  44. </view>
  45. <view class="item3 flex flex-space-between align-center">
  46. <view class="left flex align-center">
  47. <u--image :showLoading="true" :src="src" width="44px" height="44px" @click="" shape='circle'>
  48. </u--image>
  49. <view class="name">{{dataObj.cargoOwner}}</view>
  50. <view class="flex align-center">
  51. <!-- <view class="number">4.98</view> -->
  52. <!-- <u-icon class="star" name="star-fill" color="#FEC823" size="20" @click="back"></u-icon> -->
  53. </view>
  54. </view>
  55. <view class="right flex s-row align-center phone">
  56. <view class="bgc">
  57. <u-icon class="phone" name="phone-fill" color="#2772FB" size="20" @click="toPhone"></u-icon>
  58. </view>
  59. <view class="hz-name">联系司机</view>
  60. </view>
  61. </view>
  62. <!-- <view class='row-between'>
  63. <view class="">货主</view>
  64. <view>张三</view>
  65. </view>
  66. <view class='row-between'>
  67. <view class="">货主单位</view>
  68. <view>黑龙江中天昊元贸易有限公司</view>
  69. </view>
  70. <view class='row-between'>
  71. <view class="">卸货地</view>
  72. <view>黑龙江省齐齐哈尔市梅里斯达斡尔族区杜尔门沁达斡尔乡53农场</view>
  73. </view>
  74. <view class='row-between'>
  75. <view class="">货名</view>
  76. <view>玉米</view>
  77. </view>
  78. <view class='row-between'>
  79. <view class="">距离</view>
  80. <view>约15公里</view>
  81. </view>
  82. <view class='row-between'>
  83. <view class="">货运费</view>
  84. <view>100元/吨</view>
  85. </view> -->
  86. </view>
  87. <view class="content2">
  88. <view class="flex flex-space-between border">
  89. <view class="flex s-row item1">
  90. <view class="fontsize-46 fontweight-500 text">{{dataObj.sendCity}}</view>
  91. <view class="fontsize-28 gray">发货地</view>
  92. </view>
  93. <image class="change-btn" src="@/static/images/common/jt.png" mode='widthFix'></image>
  94. <view class="flex s-row item2">
  95. <view class="fontsize-46 fontweight-500 text" @click="">{{dataObj.unloadCity}}</view>
  96. <view class="fontsize-28 gray text-align-right">卸货地</view>
  97. </view>
  98. </view>
  99. <view class="level2-title">基本信息</view>
  100. <view class='row-between'>
  101. <view class="row-left-text gray">订单编号</view>
  102. <view class="row-right-text">{{dataObj.orderNo}}</view>
  103. </view>
  104. <!-- <view class='row-between'>
  105. <view class="row-left-text gray">货主</view>
  106. <view class="row-right-text">{{dataObj.cargoOwner}}</view>
  107. </view> -->
  108. <view class='row-between'>
  109. <view class="row-left-text gray">发货单位</view>
  110. <view class="row-right-text">{{dataObj.compName?dataObj.compName:'个人货主'}}</view>
  111. </view>
  112. <view class='row-between'>
  113. <view class="row-left-text gray">发货地</view>
  114. <view class="row-right-text place">
  115. {{dataObj.sendPrivate}}{{dataObj.sendCity}}{{dataObj.sendArea}}{{dataObj.sendDetailedAddress}}
  116. </view>
  117. </view>
  118. <view class='row-between'>
  119. <view class="row-left-text gray">卸货地</view>
  120. <view class="row-right-text place">
  121. {{dataObj.unloadPrivate}}{{dataObj.unloadCity}}{{dataObj.unloadArea}}{{dataObj.unloadDetailedAddress}}
  122. </view>
  123. </view>
  124. <view class='row-between'>
  125. <view class="row-left-text gray">货名</view>
  126. <view class="row-right-text">{{dataObj.goodsName}}</view>
  127. </view>
  128. <view class='row-between'>
  129. <view class="row-left-text gray">距离</view>
  130. <view class="row-right-text">约{{dataObj.distance}}公里</view>
  131. </view>
  132. <view class='row-between'>
  133. <view class="row-left-text gray">运费</view>
  134. <view class="row-right-text">{{dataObj.freight}}{{dataObj.illingMethod==0?'元/吨':'元/车'}}</view>
  135. </view>
  136. </view>
  137. <view class="content3" v-if="status1">
  138. <view class="level2-title">承运信息</view>
  139. <view class='row-between'>
  140. <view class="row-left-text gray">合同编号</view>
  141. <view class="row-right-text">{{dataObj.contractNo}}</view>
  142. </view>
  143. <view class='row-between'>
  144. <view class="row-left-text gray">车牌号</view>
  145. <view class="row-right-text">{{dataObj.carrierInfo.carNo}}</view>
  146. </view>
  147. <view class='row-between'>
  148. <view class="row-left-text gray">预计运费</view>
  149. <view class="row-right-text">{{dataObj.carrierInfo.estimatedFreight}}元</view>
  150. </view>
  151. <view class='row-between'>
  152. <view class="row-left-text gray">装车时间</view>
  153. <view class="row-right-text gray">{{dataObj.carrierInfo.loadingDate}}</view>
  154. </view>
  155. <view class='row-between'>
  156. <view class="row-left-text gray">装车照片</view>
  157. <view class="flex">
  158. <u--image :showLoading="true" :src="item" width="40px" height="40px"
  159. v-for="(item,index) in zcImgList" :key='index'></u--image>
  160. </view>
  161. </view>
  162. <view class='row-between'>
  163. <view class="row-left-text gray">合计应付运费</view>
  164. <view class="row-right-text">{{dataObj.carrierInfo.totalFreight}}元</view>
  165. </view>
  166. <view class='row-between'>
  167. <view class="row-left-text gray">卸车时间</view>
  168. <view class="row-right-text gray">{{dataObj.carrierInfo.loadingDate}}</view>
  169. </view>
  170. <view class='row-between'>
  171. <view class="row-left-text gray">卸车照片</view>
  172. <view class="flex">
  173. <u--image :showLoading="true" :src="item" width="40px" height="40px"
  174. v-for="(item,index) in xcImgList" :key='index'></u--image>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- v-if="status2 -->
  179. <view class="content4" v-if="status2">
  180. <view class="level2-title gray">运费信息(单位:元)</view>
  181. <view class='row-between'>
  182. <view class="row-left-text gray">预付运费</view>
  183. <view class="row-right-text">{{dataObj.freightInfo.prepaidFreight}}</view>
  184. </view>
  185. <view class='flex flex-end'>
  186. <view class="gray row-right-text">{{dataObj.freightInfo.prepaidFreightDate}}</view>
  187. </view>
  188. <view class='row-between'>
  189. <view class="row-left-text gray">运费尾款</view>
  190. <view class="row-right-text">{{dataObj.freightInfo.freightBalance}}</view>
  191. </view>
  192. <view class='row-between mx row-left-text gray'>
  193. 明细:预付{{dataObj.freightInfo.freightBalance}}元,扣款{{dataObj.freightInfo.deduction}}元,服务费{{dataObj.freightInfo.serviceCharge}}元,尾款{{dataObj.freightInfo.freightBalance}}元,合计收款{{dataObj.freightInfo.totalCollection}}元。
  194. </view>
  195. </view>
  196. <!-- v-if="status3" -->
  197. <view class="content4" v-if="status3">
  198. <view class="level2-title gray">还款信息</view>
  199. <view class='row-between'>
  200. <view class="row-left-text gray">运费</view>
  201. <view class="row-right-text">{{dataObj.freightInfo.totalRepayable}}</view>
  202. </view>
  203. <view class='flex flex-end'>
  204. <view class="gray row-right-text">{{dataObj.freightInfo.prepaidFreightDate}}</view>
  205. </view>
  206. <view class='row-between'>
  207. <view class="row-left-text gray">超期费(每天3%)</view>
  208. <view class="row-right-text">{{dataObj.freightInfo.overdueFee}}</view>
  209. </view>
  210. <view class='row-between'>
  211. <view class="row-left-text gray">合计应还</view>
  212. <view class="row-right-text">{{dataObj.freightInfo.totalRepayable}}</view>
  213. </view>
  214. <view class='row-between'>
  215. <view class="row-left-text gray">还款(尾号{{dataObj.freightInfo.repaymentBank}})</view>
  216. <view class="row-right-text">{{dataObj.freightInfo.repaymentConfirm}}</view>
  217. </view>
  218. <view class='row-between'>
  219. <view class="row-left-text gray">{{dataObj.freightInfo.updateDate}}</view>
  220. <!-- <view class="row-right-text">{{dataObj.freightInfo.freightBalance}}</view> -->
  221. </view>
  222. </view>
  223. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :confirmText='confirmText'
  224. :closeOnClickOverlay='true' :showCancelButton='true' @confirm="confirmClick" @close="cancelClick"
  225. @cancel="cancelClick" class="modal">
  226. <u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' class='row'>
  227. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  228. :label="item.name" :name="item.name" @change="radioChange">
  229. </u-radio>
  230. </u-radio-group>
  231. <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
  232. v-if='isShowTerminationReason'>
  233. </u--textarea>
  234. </u-modal>
  235. <u-toast ref="uToast"></u-toast>
  236. <!-- <view v-if="lookAlert" class="look-contract" @click="lookAlert==false">
  237. <u-button class="btn" text="查看合同" @click="lookContract"></u-button>
  238. <u-button class="btn" text="签名"></u-button>
  239. <view class="wrapper">
  240. <view class="handBtn">
  241. <image @click="selectColorEvent('black','#1A1A1A')"
  242. :src="selectColor === 'black' ? '/static/other/color_black_selected.png' : '/static/other/color_black.png'"
  243. :class="[selectColor === 'black' ? 'color_select' : '', 'black-select']"></image>
  244. <image @click="selectColorEvent('red','#ca262a')"
  245. :src="selectColor === 'red' ? '/static/other/color_red_selected.png' : '/static/other/color_red.png'"
  246. :class="[selectColor === 'red' ? 'color_select' : '', 'black-select']"></image>
  247. <button @click="retDraw" class="delBtn">重写</button>
  248. <button @click="saveCanvasAsImg" class="saveBtn">保存</button>
  249. <button @click="previewCanvasImg" class="previewBtn">预览</button>
  250. <button @click="subCanvas" class="subBtn">完成</button>
  251. </view>
  252. <view class="handCenter">
  253. <canvas class="handWriting" :disable-scroll="true" @touchstart="uploadScaleStart"
  254. @touchmove="uploadScaleMove" canvas-id="handWriting"></canvas>
  255. </view>
  256. <view class="handRight">
  257. <view class="handTitle">请签名</view>
  258. </view>
  259. </view>
  260. </view> -->
  261. </view>
  262. </template>
  263. <script>
  264. var that;
  265. import uploadImage from '@/components/ossutil/uploadFile.js';
  266. export default {
  267. data() {
  268. return {
  269. type: null,
  270. cyinfoStatus: '未装车',
  271. src: 'https://cdn.uviewui.com/uview/album/1.jpg',
  272. isShowTerminationReason: false,
  273. id: "",
  274. dataObj: {
  275. contractNo: '123'
  276. },
  277. type: null,
  278. status1: false,
  279. status2: false,
  280. status3: false,
  281. id: '',
  282. value2: '',
  283. radiolist1: [{
  284. name: '已与货主协商',
  285. disabled: false
  286. },
  287. {
  288. name: '货主原因终止',
  289. disabled: false
  290. },
  291. {
  292. name: '司机个人原因终止',
  293. disabled: false
  294. }, {
  295. name: '其他',
  296. disabled: false
  297. }
  298. ],
  299. radiovalue1: '已与货主协商',
  300. confirmText: '终止',
  301. alertTitle: '确定终止订单?',
  302. alertContent: "",
  303. isShowAlert: false,
  304. zcImgList: [],
  305. xcImgList: [],
  306. contractSrc: '',
  307. canvasName: 'handWriting',
  308. ctx: '',
  309. startX: null,
  310. startY: null,
  311. canvasWidth: 0,
  312. canvasHeight: 0,
  313. selectColor: 'black',
  314. lineColor: '#1A1A1A', // 颜色
  315. lineSize: 5, // 笔记倍数
  316. }
  317. },
  318. onLoad(options) {
  319. that = this
  320. this.id = options.id
  321. // this.ctx = uni.createCanvasContext("handWriting");
  322. // this.$nextTick(() => {
  323. // uni.createSelectorQuery().select('.handCenter').boundingClientRect(rect => {
  324. // this.canvasWidth = rect.width;
  325. // this.canvasHeight = rect.height;
  326. // /* 将canvas背景设置为 白底,不设置 导出的canvas的背景为透明 */
  327. // this.setCanvasBg('#fff');
  328. // })
  329. // .exec();
  330. // });
  331. },
  332. onShow() {
  333. this.getList()
  334. },
  335. methods: {
  336. lookContract() {
  337. this.$request.baseRequest('get', '/orderInfo/setPdf', {}).then(res => {
  338. if (res.code == 200) {
  339. debugger
  340. this.contractSrc = res.data
  341. uni.downloadFile({
  342. url: res.data,
  343. success: function(res) {
  344. var filePath = res.tempFilePath;
  345. uni.openDocument({
  346. filePath: filePath,
  347. showMenu: true,
  348. success: function(res) {
  349. console.log('打开文档成功');
  350. }
  351. });
  352. }
  353. });
  354. // this.$refs.uToast.show({
  355. // type: 'success',
  356. // message: "提交成功",
  357. // complete() {
  358. // that.upCallback({
  359. // size: 10,
  360. // num: 1
  361. // })
  362. // }
  363. // })
  364. }
  365. })
  366. .catch(res => {
  367. uni.$u.toast(res.message);
  368. });
  369. },
  370. signContract() {
  371. // this.lookAlert = true
  372. uni.$u.route('/pages/order/signContract', this.dataObj);
  373. },
  374. // 完结
  375. closed() {
  376. let item = this.dataObj
  377. let that = this
  378. this.$request.baseRequest('post', '/orderInfo/api/editEnd', {
  379. id: item.id,
  380. }).then(res => {
  381. if (res.code == 200) {
  382. this.$refs.uToast.show({
  383. type: 'success',
  384. message: "提交成功",
  385. complete() {
  386. that.upCallback({
  387. size: 10,
  388. num: 1
  389. })
  390. }
  391. })
  392. }
  393. })
  394. .catch(res => {
  395. uni.$u.toast(res.message);
  396. });
  397. },
  398. accept(type) {
  399. this.type = type
  400. if (type == 1) {
  401. this.alertTitle = '确定接受订单?'
  402. this.confirmText = '确定'
  403. } else if (type == 2) {
  404. this.alertTitle = '确定拒绝订单?'
  405. this.confirmText = '确定'
  406. } else {
  407. this.alertTitle = '确定终止订单?'
  408. this.confirmText = '终止'
  409. }
  410. this.isShowAlert = true
  411. },
  412. confirmLoading(type) {
  413. debugger
  414. this.type = type
  415. if (type == 3) {
  416. this.alertTitle = '确认装车?'
  417. this.confirmText = '确定'
  418. } else if (type == 4) {
  419. this.alertTitle = '确认卸车?'
  420. this.confirmText = '确定'
  421. }
  422. this.isShowAlert = true
  423. // uni.$u.route('/pages/order/confirmLoading', item);
  424. },
  425. confirmUnLoading() {
  426. let item = this.dataObj
  427. uni.$u.route('/pages/order/confirmUnloading', item);
  428. },
  429. confirmClick() {
  430. debugger
  431. that.isShowAlert = false
  432. if (this.type == 1 || this.type == 2) {
  433. let _title = ''
  434. this.$request.baseRequest('post', '/orderInfo/api/orderReceiving', {
  435. id: this.dataObj.id,
  436. flag: this.type
  437. }).then(res => {
  438. if (res.code == 200) {
  439. if (this.type == 1) {
  440. _title = '接单成功'
  441. } else {
  442. _title = '拒绝接单成功'
  443. }
  444. this.$refs.uToast.show({
  445. type: 'success',
  446. message: _title,
  447. complete() {
  448. that.mescroll.resetUpScroll()
  449. }
  450. })
  451. } else {
  452. if (this.type == 1) {
  453. _title = '接单失败'
  454. } else {
  455. _title = '拒绝接单失败'
  456. }
  457. this.$refs.uToast.show({
  458. type: 'success',
  459. message: _title,
  460. complete() {
  461. that.mescroll.resetUpScroll()
  462. }
  463. })
  464. }
  465. })
  466. .catch(res => {
  467. uni.$u.toast(res.message);
  468. });
  469. } else if (this.type == 3 || this.type == 4) {
  470. debugger
  471. let _flag = ''
  472. if (this.type == 3) _flag = 1
  473. if (this.type == 4) _flag = 2
  474. this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
  475. id: this.dataObj.id,
  476. loadingFlag: _flag,
  477. flag: 1
  478. }).then(res => {
  479. if (res.code == 200) {
  480. this.$refs.uToast.show({
  481. type: 'success',
  482. message: "提交成功",
  483. complete() {
  484. this.getList()
  485. // that.upCallback({
  486. // size: 10,
  487. // num: 1
  488. // })
  489. }
  490. })
  491. }
  492. })
  493. .catch(res => {
  494. uni.$u.toast(res.message);
  495. });
  496. } else {
  497. if (this.radiovalue1 == '其他' && !this.value2) {
  498. this.$refs.uToast.show({
  499. type: 'error',
  500. message: "请填写终止原因描述!",
  501. })
  502. return
  503. }
  504. let _terminationReason = ''
  505. if (this.radiovalue1 == '已与货主协商') {
  506. _terminationReason = 1
  507. } else if (this.radiovalue1 == '货主原因终止') {
  508. _terminationReason = 2
  509. } else if (this.radiovalue1 == '司机个人原因终止') {
  510. _terminationReason = 3
  511. } else if (this.radiovalue1 == '其他') {
  512. _terminationReason = 4
  513. }
  514. this.$request.baseRequest('post', '/orderInfo/api/end', {
  515. id: this.id,
  516. terminator: 2,
  517. }).then(res => {
  518. if (res.code == 200) {
  519. this.$refs.uToast.show({
  520. type: 'success',
  521. message: '终止订单成功',
  522. })
  523. } else {
  524. this.$refs.uToast.show({
  525. type: 'success',
  526. message: '终止订单失败',
  527. })
  528. }
  529. that.mescroll.resetUpScroll()
  530. })
  531. .catch(res => {
  532. uni.$u.toast(res.message);
  533. });
  534. }
  535. },
  536. cancelClick() {
  537. this.isShowAlert = false
  538. },
  539. stop() {
  540. let item = this.dataObj
  541. // 货主接单
  542. if (item.cargoOwnerStatusKey == 1) {
  543. this.isShowTerminationReason = false
  544. } else {
  545. this.isShowTerminationReason = true
  546. }
  547. this.id = item.id
  548. this.isShowAlert = true
  549. },
  550. toPhone() {
  551. uni.makePhoneCall({
  552. phoneNumber: this.dataObj.cargoOwnerPhone
  553. });
  554. },
  555. back() {
  556. uni.navigateBack()
  557. },
  558. getList() {
  559. this.$request.baseRequest('get', '/orderInfo/getOrderInfo', {
  560. id: this.id,
  561. }).then(res => {
  562. if (res.code == 200) {
  563. this.dataObj = res.data
  564. // 承运信息显示
  565. if (res.data.cargoOwnerStatus != "待接单" && res.data.cargoOwnerStatus != "未装车" && res.data
  566. .cargoOwnerStatus != "已终止") {
  567. this.status1 = true
  568. }
  569. // 运费信息
  570. if (res.data.cargoOwnerStatus != "待接单" && res.data.cargoOwnerStatus != "未装车" && res.data
  571. .cargoOwnerStatus != "待确认装车" && res.data.cargoOwnerStatus != "已驳回装车信息" && res.data
  572. .cargoOwnerStatus != "待平台确认装车" && res.data.cargoOwnerStatus != "平台驳回装车信息" && res.data
  573. .cargoOwnerStatus != "运输中" && res.data.cargoOwnerStatus != "待结算" && res.data
  574. .cargoOwnerStatus != "已终止") {
  575. this.status2 = true
  576. }
  577. //还款信息
  578. if (res.data.cargoOwnerStatus == "待还款" && res.data.cargoOwnerStatus == "已还款" && res.data
  579. .cargoOwnerStatus == "已完结") {
  580. this.status3 = true
  581. }
  582. if (res.data.carrierInfo) {
  583. if (res.data.carrierInfo.loadingImg) {
  584. let _zcList = res.data.carrierInfo.loadingImg.split(',')
  585. for (let i = 0; i < _zcList.length; i++) {
  586. if (_zcList[i]) this.zcImgList.push(_zcList[i])
  587. }
  588. }
  589. if (res.data.carrierInfo.unloadingImg) {
  590. let _xcList = res.data.carrierInfo.unloadingImg.split(',')
  591. for (let i = 0; i < _xcList.length; i++) {
  592. if (_xcList[i]) this.xcImgList.push(_xcList[i])
  593. }
  594. }
  595. }
  596. }
  597. })
  598. },
  599. goConfirmLoading(id) {
  600. console.log('点击详情id:', id)
  601. uni.$u.route('/pages/order/confirmLoading', {
  602. id: this.id,
  603. });
  604. },
  605. }
  606. }
  607. </script>
  608. <style lang="scss">
  609. .fixed,
  610. .fixed1 {
  611. background: white;
  612. position: fixed;
  613. top: var(--status-bar-height);
  614. z-index: 999;
  615. width: 100%;
  616. }
  617. .fixed {
  618. padding-bottom: 10rpx;
  619. .title {
  620. background: white;
  621. position: relative;
  622. font-size: 36rpx;
  623. color: rgba(0, 0, 0, 0.85);
  624. .search {
  625. position: absolute;
  626. right: 20rpx;
  627. }
  628. .back {
  629. position: absolute;
  630. left: 20rpx;
  631. }
  632. }
  633. }
  634. .fixed1 {
  635. top: 0;
  636. height: var(--status-bar-height);
  637. background: white;
  638. }
  639. .row-between {
  640. margin-bottom: 10rpx;
  641. }
  642. .content1 {
  643. background: white;
  644. margin: calc(var(--status-bar-height) + 80rpx) 20rpx 0 20rpx;
  645. border-radius: 20rpx;
  646. padding: 40rpx 0rpx 0 0;
  647. box-sizing: border-box;
  648. .status {
  649. display: flex;
  650. justify-content: center;
  651. margin-bottom: 40rpx;
  652. font-size: 36rpx;
  653. color: #333333;
  654. font-weight: 700;
  655. }
  656. .btn {
  657. width: 40%;
  658. margin-top: 20rpx;
  659. }
  660. .item2 {
  661. padding-bottom: 40rpx;
  662. }
  663. .item3 {
  664. padding: 20rpx;
  665. background: linear-gradient(180deg, #F7F7F9 0%, #FFFFFF 100%);
  666. border-radius: 0 0 20rpx 20rpx;
  667. .name {
  668. margin-left: 10rpx;
  669. margin-right: 20rpx;
  670. font-size: 32rpx;
  671. font-weight: 500;
  672. color: #333333;
  673. }
  674. .number {
  675. font-size: 26rpx;
  676. color: #878787;
  677. }
  678. .star {
  679. margin-left: 10rpx;
  680. }
  681. .phone {
  682. .bgc {
  683. background: #E5F0FE;
  684. width: 58rpx;
  685. height: 58rpx;
  686. display: flex;
  687. align-items: center;
  688. justify-content: center;
  689. border-radius: 50%;
  690. }
  691. .hz-name {
  692. font-size: 26rpx;
  693. color: #2772FB;
  694. }
  695. }
  696. }
  697. }
  698. .level2-title {
  699. margin: 20rpx 0 20rpx 0;
  700. }
  701. .content2 {
  702. background: white;
  703. margin: 20rpx;
  704. border-radius: 20rpx;
  705. padding: 20rpx;
  706. .change-btn {
  707. width: 86rpx;
  708. height: 86rpx;
  709. position: relative;
  710. top: -20rpx;
  711. }
  712. .item1,
  713. .item2 {
  714. width: 40%;
  715. .text {
  716. text-overflow: ellipsis;
  717. overflow: hidden;
  718. white-space: nowrap;
  719. }
  720. .gray {
  721. text-align: center;
  722. }
  723. }
  724. .item1 .text {
  725. text-align: center;
  726. }
  727. .item2 .text {
  728. text-align: center;
  729. }
  730. .border {
  731. border-bottom: 1px solid #EEEEEE;
  732. padding-bottom: 33rpx;
  733. }
  734. .place {
  735. width: 80%;
  736. text-align: right;
  737. }
  738. }
  739. .content3,
  740. .content4 {
  741. background: white;
  742. margin: 20rpx;
  743. border-radius: 20rpx;
  744. padding: 20rpx;
  745. }
  746. .content4 {
  747. .time {
  748. text-align: right;
  749. }
  750. .mx {
  751. background: #F7F8FA;
  752. padding: 10rpx;
  753. margin: 10rpx 0;
  754. }
  755. }
  756. /deep/.u-modal__content {
  757. flex-direction: column;
  758. }
  759. .look-contract {
  760. padding-top: 1000rpx;
  761. position: fixed;
  762. top: 0;
  763. bottom: 0;
  764. left: 0;
  765. right: 0;
  766. margin: auto;
  767. background: #0000005e;
  768. width: 100%;
  769. height: 100vh;
  770. .btn {
  771. width: 70%;
  772. margin-bottom: 20rpx;
  773. }
  774. }
  775. .wrapper {
  776. width: 100%;
  777. height: 95vh;
  778. margin: 30rpx 0;
  779. overflow: hidden;
  780. display: flex;
  781. align-content: center;
  782. flex-direction: row;
  783. justify-content: center;
  784. font-size: 28rpx;
  785. position: relative;
  786. }
  787. .handWriting {
  788. background: #fff;
  789. width: 100%;
  790. height: 95vh;
  791. }
  792. .handRight {
  793. display: inline-flex;
  794. align-items: center;
  795. }
  796. .handCenter {
  797. border: 4rpx dashed #e9e9e9;
  798. flex: 5;
  799. overflow: hidden;
  800. box-sizing: border-box;
  801. }
  802. .handTitle {
  803. transform: rotate(90deg);
  804. flex: 1;
  805. color: #666;
  806. }
  807. .handBtn button {
  808. font-size: 28rpx;
  809. }
  810. .handBtn {
  811. height: 95vh;
  812. display: inline-flex;
  813. flex-direction: column;
  814. justify-content: space-between;
  815. align-content: space-between;
  816. flex: 1;
  817. }
  818. .delBtn {
  819. position: absolute;
  820. top: 250rpx;
  821. left: 0rpx;
  822. transform: rotate(90deg);
  823. color: #666;
  824. }
  825. .delBtn image {
  826. position: absolute;
  827. top: 13rpx;
  828. left: 25rpx;
  829. }
  830. .subBtn {
  831. position: absolute;
  832. bottom: 52rpx;
  833. left: -3rpx;
  834. display: inline-flex;
  835. transform: rotate(90deg);
  836. background: #008ef6;
  837. color: #fff;
  838. margin-bottom: 30rpx;
  839. text-align: center;
  840. justify-content: center;
  841. }
  842. /*Peach - 新增 - 保存*/
  843. .saveBtn {
  844. position: absolute;
  845. top: 375rpx;
  846. left: 0rpx;
  847. transform: rotate(90deg);
  848. color: #666;
  849. }
  850. .previewBtn {
  851. position: absolute;
  852. top: 500rpx;
  853. left: 0rpx;
  854. transform: rotate(90deg);
  855. color: #666;
  856. }
  857. .uploadBtn {
  858. position: absolute;
  859. top: 625rpx;
  860. left: 0rpx;
  861. transform: rotate(90deg);
  862. color: #666;
  863. }
  864. /*Peach - 新增 - 保存*/
  865. .black-select {
  866. width: 60rpx;
  867. height: 60rpx;
  868. position: absolute;
  869. top: 30rpx;
  870. left: 25rpx;
  871. }
  872. .black-select.color_select {
  873. width: 90rpx;
  874. height: 90rpx;
  875. top: 100rpx;
  876. left: 10rpx;
  877. }
  878. .red-select {
  879. width: 60rpx;
  880. height: 60rpx;
  881. position: absolute;
  882. top: 140rpx;
  883. left: 25rpx;
  884. }
  885. .red-select.color_select {
  886. width: 90rpx;
  887. height: 90rpx;
  888. top: 120rpx;
  889. left: 10rpx;
  890. }
  891. </style>