orderDetails.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <!-- 订单详情-->
  2. <template>
  3. <view class="content">
  4. <view class="fixed1"></view>
  5. <view class="fixed">
  6. <view class='title flex flex-center'>
  7. <image class="back" src="../../static/images/return.png" @click="back" mode="" style="width: 40rpx; height: 40rpx;"></image>
  8. <!-- <u-icon class="back" name="arrow-left" color="" size="20" ></u-icon> -->
  9. <view class="nav-title">订单</view>
  10. <image class="search" style='width:18px;height:18px;' src="../../static/images/kefu.png" @click="$helper.contactCustomerService()" mode=""></image>
  11. <!-- <u-icon class="search" name="server-fill" color="" size="28" @click="$helper.contactCustomerService"></u-icon> -->
  12. </view>
  13. </view>
  14. <view class="content1">
  15. <view class="item1">
  16. <view class="status">{{dataObj.orderStatus}}</view>
  17. </view>
  18. <!-- flex flex-space-between -->
  19. <view class="item2">
  20. <u-button class="btn" text="查看合同" @click="lookContract" v-if="dataObj.driverContract=='1'"></u-button>
  21. <!-- <u-button class="btn" text="签订合同" @click="signContract" v-if="dataObj.cargoOwnerStatus=='未装车'&&dataObj.driverContract!='1'"></u-button> -->
  22. <u-button class="btn" text="终止" @click="stop" v-if="dataObj.orderStatus=='待货主确认'||dataObj.orderStatus=='未装车'"></u-button>
  23. <!-- <u-button class="btn" text="联系客服" @click="$helper.contactCustomerService()"></u-button> -->
  24. <u-button class="btn" text="确认装车" @click="confirmLoading" v-if="dataObj.orderStatus=='未装车'"></u-button>
  25. <!-- <u-button class="btn" text="确认装车" @click="confirmLoading"></u-button> -->
  26. <u-button class="btn" text="修改装车信息" @click="confirmLoading" v-if="dataObj.orderStatus=='货主驳回装车信息'||dataObj.orderStatus=='平台驳回装车信息'"></u-button>
  27. <u-button class="btn" text="确认卸车" @click="confirmUnLoading" v-if="dataObj.orderStatus=='运输中'"></u-button>
  28. <u-button class="btn" text="修改卸车信息" @click="confirmUnLoading" v-if="dataObj.orderStatus=='货主驳回卸车信息'||dataObj.orderStatus=='平台驳回卸车信息'"></u-button>
  29. <u-button class="btn" text="完结" @click="closed" v-if="dataObj.orderStatus=='结算中'"></u-button>
  30. </view>
  31. <view class="item3 flex flex-space-between align-center">
  32. <view class="left flex align-center">
  33. <u--image :showLoading="true" :src="dataObj.cargoOwnerPortrait" width="44px" height="44px" @click="" shape='circle'>
  34. </u--image>
  35. <view class="name">{{dataObj.cargoOwner}}</view>
  36. <view class="flex align-center">
  37. <!-- <view class="number">4.98</view> -->
  38. <!-- <u-icon class="star" name="star-fill" color="#FEC823" size="20" @click="back"></u-icon> -->
  39. </view>
  40. </view>
  41. <view class="right flex s-row align-center phone">
  42. <view class="bgc">
  43. <image class="phone" style='width:24px;height:24px;' src="../../static/images/dianhua.png" @click="$helper.contactCustomerService(dataObj.cargoOwnerPhone)" mode=""></image>
  44. <!-- <u-icon class="phone" name="phone-fill" color="#2772FB" size="20" @click="$helper.contactCustomerService(dataObj.cargoOwnerPhone)"></u-icon> -->
  45. </view>
  46. <view class="hz-name">联系货主</view>
  47. </view>
  48. </view>
  49. <!-- <view class='row-between'>
  50. <view class="">货主</view>
  51. <view>张三</view>
  52. </view>
  53. <view class='row-between'>
  54. <view class="">货主单位</view>
  55. <view>黑龙江中天昊元贸易有限公司</view>
  56. </view>
  57. <view class='row-between'>
  58. <view class="">卸货地</view>
  59. <view>黑龙江省齐齐哈尔市梅里斯达斡尔族区杜尔门沁达斡尔乡53农场</view>
  60. </view>
  61. <view class='row-between'>
  62. <view class="">货名</view>
  63. <view>玉米</view>
  64. </view>
  65. <view class='row-between'>
  66. <view class="">距离</view>
  67. <view>约15公里</view>
  68. </view>
  69. <view class='row-between'>
  70. <view class="">货运费</view>
  71. <view>100元/吨</view>
  72. </view> -->
  73. </view>
  74. <view class="content2">
  75. <view class="flex flex-space-between border">
  76. <view class="flex s-row item1">
  77. <view class="fontsize-46 fontweight-500 text">{{dataObj.sendCity}}</view>
  78. <view class="fontsize-28 gray">发货地</view>
  79. </view>
  80. <image class="change-btn" src="@/static/images/common/jt.png" mode='widthFix'></image>
  81. <view class="flex s-row item2">
  82. <view class="fontsize-46 fontweight-500 text" @click="">{{dataObj.unloadCity}}</view>
  83. <view class="fontsize-28 gray text-align-right">卸货地</view>
  84. </view>
  85. </view>
  86. <view class="level2-title">基本信息</view>
  87. <view class='row-between'>
  88. <view class=" gray">订单编号</view>
  89. <view class="">{{dataObj.orderNo}}</view>
  90. </view>
  91. <!-- <view class='row-between'>
  92. <view class=" gray">货主</view>
  93. <view class="">{{dataObj.cargoOwner}}</view>
  94. </view> -->
  95. <view class='row-between'>
  96. <view class=" gray">货主单位</view>
  97. <view class="">{{dataObj.compName?dataObj.compName:'个人货主'}}</view>
  98. </view>
  99. <view class='row-between'>
  100. <view class=" gray">发货地</view>
  101. <view class=" place">{{dataObj.sendPrivate}}{{dataObj.sendCity}}{{dataObj.sendArea}}{{dataObj.sendDetailedAddress}}</view>
  102. </view>
  103. <view class='row-between'>
  104. <view class=" gray">卸货地</view>
  105. <view class=" place">{{dataObj.unloadPrivate}}{{dataObj.unloadCity}}{{dataObj.unloadArea}}{{dataObj.unloadDetailedAddress}}</view>
  106. </view>
  107. <view class='row-between'>
  108. <view class=" gray">货名</view>
  109. <view class="">{{dataObj.goodsName}}</view>
  110. </view>
  111. <view class='row-between'>
  112. <view class=" gray">距离</view>
  113. <view class="">约{{dataObj.distance}}公里</view>
  114. </view>
  115. <view v-if='dataObj.publishTaskInfo' class='row-between'>
  116. <view class=" gray">收货联系人</view>
  117. <view class="flex flex-center">{{dataObj.publishTaskInfo.sender?dataObj.publishTaskInfo.sender:''}}
  118. <image style='width:12px;height:12px;margin-left:5px;' v-if='dataObj.publishTaskInfo.senderPhone' class="phone" @click="$helper.contactCustomerService(dataObj.publishTaskInfo.senderPhone)" src="../../static/images/order/dianhua.png" mode=""></image>
  119. </view>
  120. </view>
  121. <view v-if='dataObj.publishTaskInfo' class='row-between'>
  122. <view class=" gray">发货联系人</view>
  123. <view class="flex flex-center">{{dataObj.publishTaskInfo.receiver?dataObj.publishTaskInfo.receiver:''}}
  124. <image style='width:12px;height:12px;margin-left:5px;' v-if='dataObj.publishTaskInfo.receiverPhone' class="phone" @click="$helper.contactCustomerService(dataObj.publishTaskInfo.receiverPhone)" src="../../static/images/order/dianhua.png" mode=""></image>
  125. </view>
  126. <!-- <view class='row-between'>
  127. <view class=" gray">运费</view>
  128. <view class="">{{dataObj.freight}}{{dataObj.illingMethod==0?'元/吨':'元/车'}}</view>
  129. </view> -->
  130. </view>
  131. <view class="content3" v-if='dataObj.orderStatus!="待货主确认"&&dataObj.orderStatus!="未装车"&&dataObj.orderStatus!="已终止"'>
  132. <view class="level2-title">承运信息</view>
  133. <view class='row-between'>
  134. <view class=" gray">合同编号</view>
  135. <view class="">{{carrierInfo.contractNo}}</view>
  136. </view>
  137. <view class='row-between'>
  138. <view class=" gray">车牌号</view>
  139. <view class="">{{carrierInfo.carNo}}</view>
  140. </view>
  141. <view class='row-between'>
  142. <view class=" gray">运费</view>
  143. <view class="">{{carrierInfo.estimatedFreight}}元</view>
  144. </view>
  145. <view class='row-between'>
  146. <view class=" gray">装车时间</view>
  147. <view class="">{{carrierInfo.loadingDate}}</view>
  148. </view>
  149. <view class='row-between'>
  150. <view class=" gray">装车照片</view>
  151. <view class="flex">
  152. <u--image @click='ylImg(zcPhoneList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in zcPhoneList"></u--image>
  153. </view>
  154. </view>
  155. <view v-if='dataObj.orderStatus!="待货主确认"&&dataObj.orderStatus!="未装车"&&dataObj.orderStatus!="待货主确认装车"&&dataObj.orderStatus!="货主驳回装车信息"&&dataObj.orderStatus!="待平台确认装车"&&dataObj.orderStatus!="平台驳回装车信息"&&dataObj.orderStatus!="运输中"&&dataObj.orderStatus!="已终止"'>
  156. <view class='row-between'>
  157. <view class=" gray">合计应付运费</view>
  158. <view class="">{{carrierInfo.totalFreight}}元</view>
  159. </view>
  160. <view class='row-between'>
  161. <view class=" gray">卸车时间</view>
  162. <view class="">{{carrierInfo.loadingDate}}</view>
  163. </view>
  164. <view class='row-between'>
  165. <view class=" gray">卸车照片</view>
  166. <view class="flex">
  167. <u--image @click='ylImg(xcPhoneList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in xcPhoneList"></u--image>
  168. </view>
  169. </view>
  170. <view class='row-between'>
  171. <view class=" gray">回单照片</view>
  172. <view class="flex">
  173. <u--image @click='ylImg(hdPhoneList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in hdPhoneList"></u--image>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- v-if="status2 -->
  179. <!-- dataObj.orderStatus!="待货主确认"&&dataObj.orderStatus!="未装车"&&dataObj.orderStatus!="待货主确认装车"&&dataObj.orderStatus!="货主驳回装车信息"&&dataObj.orderStatus!="待平台确认装车"&&dataObj.orderStatus!="平台驳回装车信息"&&dataObj.orderStatus!="已终止" -->
  180. <view class="content4" v-if='status2'>
  181. <view class="level2-title gray">运费信息(单位:元)</view>
  182. <view class='row-between'>
  183. <view class=" gray">预付运费</view>
  184. <view class="">{{freightInfo.prepaidFreight}}</view>
  185. </view>
  186. <view class='flex flex-end'>
  187. <view class="">{{freightInfo.prepaidFreightDate}}</view>
  188. </view>
  189. <view class='row-between'>
  190. <view class=" gray">运费尾款</view>
  191. <view class="">{{freightInfo.freightBalance?freightInfo.freightBalance:'未支付'}}</view>
  192. </view>
  193. <view class='row-between mx ' v-if="freightInfo.freightBalance">
  194. 明细:预付{{freightInfo.prepaidFreight}}元,服务费{{freightInfo.driverServiceCharge}}元,尾款{{freightInfo.freightBalance}}元,合计收款{{freightInfo.totalCollection}}元。
  195. </view>
  196. </view>
  197. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :confirmText='confirmText'
  198. :closeOnClickOverlay='true' :showCancelButton='showCancelButton' @confirm="confirmClick" @close="cancelClick"
  199. @cancel="cancelClick" class="modal">
  200. <u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' class='row'>
  201. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  202. :label="item.name" :name="item.name" @change="radioChange">
  203. </u-radio>
  204. </u-radio-group>
  205. <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
  206. v-if='isShowTerminationReason'>
  207. </u--textarea>
  208. </u-modal>
  209. <u-popup :show="show" mode="bottom" @close="close" @open="open">
  210. <view class="">
  211. <view>
  212. <image style='width:12px;height:12px;' @click='closepopup' class='close' src="../../static/images/order/guanbi@3x.png" mode=""></image>
  213. <!-- <u-icon @click="closepopup" class='close' name="close" size="20"></u-icon> -->
  214. </view>
  215. <view style='fon-size:34rpx;margin-bottom:20px;text-align:center;font-weight: 600;'>确认终止订单</view>
  216. <view style="margin: 0 auto;">
  217. <u-radio-group iconPlacement="right" v-model="radiovalue1" placement="" v-if='isShowTerminationReason' >
  218. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  219. :label="item.name" :name="item.name" @change="radioChange" >
  220. </u-radio>
  221. </u-radio-group>
  222. </view>
  223. <view style='border-top:10px solid #F2F4F7;position:absolute;left:0;height:0;width:100%;'></view>
  224. <view style='padding:40rpx 0 30rpx;'>终止原因描述</view>
  225. <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
  226. v-if='isShowTerminationReason'>
  227. </u--textarea>
  228. <view class='termination' :class="{'active':value2.length>0}" @click='confirmClick'>终止</view>
  229. </view>
  230. </u-popup>
  231. <u-toast ref="uToast"></u-toast>
  232. </view>
  233. </view>
  234. </template>
  235. <script>
  236. import uniPopup from '@/components/uni-popup/uni-popup.vue'
  237. export default {
  238. components:{
  239. uniPopup
  240. },
  241. data() {
  242. return {
  243. zcPhoneList:[],
  244. xcPhoneList:[],
  245. hdPhoneList:[],
  246. show:false,
  247. carrierInfo:{},
  248. freightInfo:{},
  249. cyinfoStatus: '未装车',
  250. isShowTerminationReason: false,
  251. dataObj:{},
  252. status1:false,
  253. status2:false,
  254. id: '',
  255. showCancelButton:true,
  256. value2: '',
  257. radiolist1: [{
  258. name: '已与货主协商',
  259. disabled: false
  260. },
  261. {
  262. name: '货主原因终止',
  263. disabled: false
  264. },
  265. {
  266. name: '司机个人原因终止',
  267. disabled: false
  268. }, {
  269. name: '其他',
  270. disabled: false
  271. }
  272. ],
  273. radiovalue1: '已与货主协商',
  274. confirmText: '终止',
  275. alertTitle: '确定终止订单?',
  276. alertContent: "",
  277. isShowAlert: false,
  278. }
  279. },
  280. onLoad(options) {
  281. this.id = options.id
  282. },
  283. onShow() {
  284. this.getList()
  285. },
  286. methods: {
  287. open() {
  288. // console.log('open');
  289. },
  290. close() {
  291. this.show = false
  292. // console.log('close');
  293. },
  294. ylImg(src) {
  295. uni.previewImage({
  296. urls: src,
  297. longPressActions: {
  298. itemList: ['发送给朋友', '保存图片', '收藏'],
  299. success: function(data) {
  300. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  301. },
  302. fail: function(err) {
  303. console.log(err.errMsg);
  304. }
  305. }
  306. });
  307. },
  308. closepopup(){
  309. this.show=false
  310. },
  311. lookContract(){
  312. uni.downloadFile({
  313. url: this.dataObj.driverContractUrl,
  314. success: function (res) {
  315. var filePath = res.tempFilePath;
  316. uni.openDocument({
  317. filePath: filePath,
  318. showMenu: true,
  319. success: function (res) {
  320. console.log('打开文档成功');
  321. }
  322. });
  323. }
  324. });
  325. // this.$request.baseRequest('get', '/orderInfo/setPdf', {
  326. // }).then(res => {
  327. // if (res.code == 200) {
  328. // this.contractSrc = res.data
  329. // uni.downloadFile({
  330. // url: res.data,
  331. // success: function (res) {
  332. // var filePath = res.tempFilePath;
  333. // uni.openDocument({
  334. // filePath: filePath,
  335. // showMenu: true,
  336. // success: function (res) {
  337. // console.log('打开文档成功');
  338. // }
  339. // });
  340. // }
  341. // });
  342. // // this.$refs.uToast.show({
  343. // // type: 'success',
  344. // // message: "提交成功",
  345. // // complete() {
  346. // // that.upCallback({
  347. // // size: 10,
  348. // // num: 1
  349. // // })
  350. // // }
  351. // // })
  352. // }
  353. // })
  354. // .catch(res => {
  355. // uni.$u.toast(res.message);
  356. // });
  357. },
  358. signContract() {
  359. // this.lookAlert = true
  360. uni.$u.route('/pages/order/signContract',{obj:encodeURIComponent(JSON.stringify(this.dataObj))}
  361. );
  362. },
  363. // 完结
  364. closed() {
  365. let item = this.dataDetails
  366. let that = this
  367. this.$request.baseRequest('post', '/orderInfo/api/editEnd', {
  368. id: item.id,
  369. }).then(res => {
  370. if (res.code == 200) {
  371. this.$refs.uToast.show({
  372. type: 'success',
  373. message: "提交成功",
  374. complete() {
  375. that.upCallback({
  376. size: 10,
  377. num: 1
  378. })
  379. }
  380. })
  381. }
  382. })
  383. .catch(res => {
  384. uni.$u.toast(res.message);
  385. });
  386. },
  387. confirmLoading() {
  388. var that = this
  389. this.$request.baseRequest('get', '/driverCarInfo/selectDriverCar', {
  390. commonId: uni.getStorageSync('userInfo').id,
  391. searchType:2
  392. }).then(res => {
  393. if (res.code == '200') {
  394. if(res.data&&res.data.length>0){
  395. uni.$u.route('/pages/order/confirmLoading', {
  396. obj: JSON.stringify({id:that.id,carrierId:that.dataObj.hyCarrierInfo.id}),
  397. });
  398. }else{
  399. that.alertTitle = '尚未添加车辆!'
  400. that.showCancelButton = false
  401. that.confirmText = '立即添加'
  402. that.isShowAlert = true
  403. }
  404. } else {
  405. uni.$u.toast(res.message);
  406. }
  407. })
  408. .catch(res => {
  409. uni.$u.toast(res.message);
  410. });
  411. // uni.$u.route('/pages/order/confirmLoading', {id:this.id});
  412. },
  413. confirmUnLoading() {
  414. let item = this.dataObj
  415. uni.$u.route('/pages/order/confirmUnloading', {obj:JSON.stringify(item)});
  416. },
  417. confirmClick() {
  418. if(this.alertTitle == '尚未添加车辆!'){
  419. uni.$u.route('/pages/mine/manageVehicles/index');
  420. }else{
  421. let that = this
  422. if (this.radiovalue1 == '其他' && !this.value2) {
  423. this.$refs.uToast.show({
  424. type: 'error',
  425. message: "请填写终止原因描述!",
  426. })
  427. return
  428. }
  429. let _terminationReason = ''
  430. if (this.radiovalue1 == '已与货主协商') {
  431. _terminationReason = 1
  432. } else if (this.radiovalue1 == '货主原因终止') {
  433. _terminationReason = 2
  434. } else if (this.radiovalue1 == '司机个人原因终止') {
  435. _terminationReason = 3
  436. } else if (this.radiovalue1 == '其他') {
  437. _terminationReason = 4
  438. }
  439. this.$request.baseRequest('post', '/orderInfo/api/end', {
  440. id: this.id,
  441. terminationReason: _terminationReason,
  442. terminationReasonDescription: this.value2,
  443. terminator:1
  444. }).then(res => {
  445. this.show=false
  446. this.isShowAlert = false
  447. // this.mescroll.resetUpScroll()
  448. this.$refs.uToast.show({
  449. type: 'success',
  450. message: "提交成功!",
  451. complete() {
  452. that.getList()
  453. }
  454. })
  455. })
  456. .catch(res => {
  457. uni.$u.toast(res.message);
  458. });
  459. }
  460. },
  461. cancelClick() {
  462. this.isShowAlert = false
  463. },
  464. stop() {
  465. let item = this.dataObj
  466. // 货主接单
  467. this.id = item.id
  468. if (item.orderStatusKey == 1) {
  469. this.isShowTerminationReason = false
  470. } else {
  471. this.isShowTerminationReason = true
  472. }
  473. if(item.orderStatus=='未装车'){
  474. this.show = true
  475. }else{
  476. this.isShowAlert=true
  477. }
  478. },
  479. toPhone(){
  480. uni.makePhoneCall({
  481. phoneNumber: this.dataObj.cargoOwnerPhone
  482. });
  483. },
  484. back() {
  485. uni.navigateBack()
  486. },
  487. getList(){
  488. this.$request.baseRequest('get', '/orderInfo/getOrderInfo', {
  489. id: this.id,
  490. }).then(res => {
  491. if(res.code==200){
  492. this.dataObj = res.data
  493. this.carrierInfo = res.data.hyCarrierInfo
  494. this.freightInfo = res.data.freightInfo
  495. if(this.carrierInfo.loadingImg&&this.carrierInfo.loadingImg.length>0){
  496. this.zcPhoneList = this.carrierInfo.loadingImg.split(',')
  497. }
  498. if(this.carrierInfo.unloadingImg&&this.carrierInfo.unloadingImg.length>0){
  499. this.xcPhoneList = this.carrierInfo.unloadingImg.split(',')
  500. }
  501. if(this.carrierInfo.receiptImg&&this.carrierInfo.receiptImg.length>0){
  502. this.hdPhoneList = this.carrierInfo.receiptImg.split(',')
  503. }
  504. // if(res.data.orderStatus!="待货主确认"&&res.data.orderStatus!="未装车"&&res.data.orderStatus!="已终止"){
  505. // this.status1 = true
  506. // }
  507. // 运费信息
  508. if (res.data.cargoOwnerStatus != "待接单" && res.data.cargoOwnerStatus != "未装车" && res.data
  509. .cargoOwnerStatus != "待确认装车" && res.data.cargoOwnerStatus != "已驳回装车信息" && res.data
  510. .cargoOwnerStatus != "待平台确认装车" && res.data.cargoOwnerStatus != "平台驳回装车信息" && res.data.cargoOwnerStatus != "待结算" && res.data
  511. .cargoOwnerStatus != "已终止") {
  512. this.status2 = true
  513. }
  514. }
  515. })
  516. },
  517. goConfirmLoading(id) {
  518. uni.$u.route('/pages/order/confirmLoading', {
  519. obj: JSON.stringify({id:this.id}),
  520. });
  521. },
  522. }
  523. }
  524. </script>
  525. <style lang="scss">
  526. .fixed,
  527. .fixed1 {
  528. background: white;
  529. position: fixed;
  530. top: var(--status-bar-height);
  531. z-index: 999;
  532. width: 100%;
  533. }
  534. .fixed {
  535. padding-bottom: 10rpx;
  536. .title {
  537. background: white;
  538. position: relative;
  539. font-size: 36rpx;
  540. color: rgba(0, 0, 0, 0.85);
  541. .search {
  542. position: absolute;
  543. right: 20rpx;
  544. }
  545. .back {
  546. position: absolute;
  547. left: 20rpx;
  548. width:18px;height:18px;
  549. }
  550. }
  551. }
  552. .fixed1 {
  553. top: 0;
  554. height: var(--status-bar-height);
  555. background: white;
  556. }
  557. .row-between{
  558. margin-bottom: 10rpx;
  559. }
  560. .content1 {
  561. background: white;
  562. margin: calc(var(--status-bar-height) + 80rpx) 20rpx 0 20rpx;
  563. border-radius: 20rpx;
  564. padding: 40rpx 0rpx 0 0;
  565. box-sizing: border-box;
  566. .status {
  567. display: flex;
  568. justify-content: center;
  569. margin-bottom: 40rpx;
  570. font-size: 36rpx;
  571. color: #333333;
  572. font-weight: 700;
  573. }
  574. .btn {
  575. width: 40%;
  576. margin-top: 20rpx;
  577. }
  578. .item2 {
  579. padding-bottom: 40rpx;
  580. }
  581. .item3 {
  582. padding: 20rpx;
  583. background: linear-gradient(180deg, #F7F7F9 0%, #FFFFFF 100%);
  584. border-radius: 0 0 20rpx 20rpx;
  585. .name {
  586. margin-left: 10rpx;
  587. margin-right: 20rpx;
  588. font-size: 32rpx;
  589. font-weight: 500;
  590. color: #333333;
  591. }
  592. .number {
  593. font-size: 26rpx;
  594. color: #878787;
  595. }
  596. .star {
  597. margin-left: 10rpx;
  598. }
  599. .phone {
  600. .bgc {
  601. background: #E5F0FE;
  602. width: 58rpx;
  603. height: 58rpx;
  604. display: flex;
  605. align-items: center;
  606. justify-content: center;
  607. border-radius: 50%;
  608. }
  609. .hz-name {
  610. font-size: 26rpx;
  611. color: #2772FB;
  612. }
  613. }
  614. }
  615. }
  616. .level2-title {
  617. margin: 20rpx 0 20rpx 0;
  618. }
  619. .content2 {
  620. background: white;
  621. margin: 20rpx;
  622. border-radius: 20rpx;
  623. padding: 20rpx;
  624. .change-btn {
  625. width: 86rpx;
  626. height: 86rpx;
  627. position: relative;
  628. top: -20rpx;
  629. }
  630. .item1,
  631. .item2 {
  632. width: 40%;
  633. .text {
  634. text-overflow: ellipsis;
  635. overflow: hidden;
  636. white-space: nowrap;
  637. }
  638. .gray {
  639. text-align: center;
  640. }
  641. }
  642. .item1 .text {
  643. text-align: center;
  644. }
  645. .item2 .text {
  646. text-align: center;
  647. }
  648. .border {
  649. border-bottom: 1px solid #EEEEEE;
  650. padding-bottom: 33rpx;
  651. }
  652. .place {
  653. width: 80%;
  654. text-align: right;
  655. }
  656. }
  657. .content3,
  658. .content4 {
  659. background: white;
  660. margin: 20rpx;
  661. border-radius: 20rpx;
  662. padding: 20rpx;
  663. }
  664. .content4 {
  665. .time{
  666. text-align: right;
  667. }
  668. .mx {
  669. background: #F7F8FA;
  670. padding: 10rpx;
  671. margin: 10rpx 0;
  672. }
  673. }
  674. /deep/.u-modal__content {
  675. flex-direction: column;
  676. }
  677. /deep/.u-popup__content{
  678. border-radius: 10px;
  679. padding:20px;
  680. }
  681. /deep/.u-radio{
  682. margin:40rpx 0;
  683. }
  684. .close{
  685. position:absolute;
  686. right:20px;
  687. top:26px;
  688. }
  689. .termination{
  690. background:#F1F3F6;
  691. color:#C5CAD4;
  692. padding:10px;
  693. border-radius:30px;
  694. text-align: center;
  695. margin-top:30rpx;
  696. }
  697. .termination.active{
  698. background: #2772FB;
  699. color: white;
  700. }
  701. </style>