orderDetails.vue 24 KB

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