orderDetails.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  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" @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 v-if="dataObj.orderStatus=='未装车'" class="btn" text="确认装车" @click="confirmLoading" ></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="#F5BA3C" 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 v-if='dataObj.billingMethod==1' class='row-between'>
  148. <view class="gray">预付款(元)</view>
  149. {{dataObj.advanceCharge}}元
  150. </view>
  151. <view class='row-between'>
  152. <view class=" gray">装车时间</view>
  153. <view class="">{{carrierInfo.loadingDate}}</view>
  154. </view>
  155. <view class='row-between'>
  156. <view class=" gray">运输时长</view>
  157. <view class="">{{carrierInfo.transportationDuration }} 小时</view>
  158. </view>
  159. <view class='row-between'>
  160. <view class=" gray">装车照片</view>
  161. <view class="flex">
  162. <u--image @click='ylImg(zcPhoneList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in zcPhoneList"></u--image>
  163. </view>
  164. </view>
  165. <view v-if='dataObj.orderStatus!="待货主确认"&&dataObj.orderStatus!="未装车"&&dataObj.orderStatus!="待货主确认装车"&&dataObj.orderStatus!="货主驳回装车信息"&&dataObj.orderStatus!="待平台确认装车"&&dataObj.orderStatus!="平台驳回装车信息"&&dataObj.orderStatus!="运输中"&&dataObj.orderStatus!="已终止"'>
  166. <view class='row-between'>
  167. <view class=" gray">合计应付运费</view>
  168. <view class="">{{carrierInfo.totalFreight}}元</view>
  169. </view>
  170. <view class='row-between'>
  171. <view class=" gray">卸车时间</view>
  172. <view class="">{{carrierInfo.loadingDate}}</view>
  173. </view>
  174. <view class='row-between'>
  175. <view class=" gray">卸车照片</view>
  176. <view class="flex">
  177. <u--image @click='ylImg(xcPhoneList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in xcPhoneList"></u--image>
  178. </view>
  179. </view>
  180. <view class='row-between'>
  181. <view class=" gray">回单照片</view>
  182. <view class="flex">
  183. <u--image @click='ylImg(hdPhoneList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in hdPhoneList"></u--image>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. <!-- v-if="status2 -->
  189. <!-- dataObj.orderStatus!="待货主确认"&&dataObj.orderStatus!="未装车"&&dataObj.orderStatus!="待货主确认装车"&&dataObj.orderStatus!="货主驳回装车信息"&&dataObj.orderStatus!="待平台确认装车"&&dataObj.orderStatus!="平台驳回装车信息"&&dataObj.orderStatus!="已终止" -->
  190. <view class="content4" v-if='status2'>
  191. <view class="level2-title">运费信息(单位:元)</view>
  192. <view class='row-between'>
  193. <view class=" gray">预付运费</view>
  194. <view class="">{{freightInfo.prepaidFreightDate?freightInfo.prepaidFreight:'未支付'}}</view>
  195. </view>
  196. <view class='flex flex-end'>
  197. <view class="">{{freightInfo.prepaidFreightDate}}</view>
  198. </view>
  199. <view class='row-between'>
  200. <view class=" gray">运费尾款</view>
  201. <view class="">{{freightInfo.freightBalance?freightInfo.freightBalance:'未支付'}}</view>
  202. </view>
  203. <view class='flex flex-end'>
  204. <view class="">{{freightInfo.freightBalanceDate}}</view>
  205. </view>
  206. <view class='row-between mx ' v-if="freightInfo.freightBalance">
  207. <!-- 明细:预付{{freightInfo.prepaidFreight}}元,服务费{{freightInfo.driverServiceCharge}}元,尾款{{freightInfo.freightBalance}}元,合计收款{{freightInfo.totalCollection}}元。 -->
  208. 明细:预付{{freightInfo.prepaidFreight}}元,尾款{{freightInfo.freightBalance}}元,合计收款{{freightInfo.totalCollection}}元。
  209. </view>
  210. </view>
  211. <u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :confirmText='confirmText'
  212. :closeOnClickOverlay='true' :showCancelButton='showCancelButton' @confirm="$u.throttle(confirmClick(), 1000)" @close="cancelClick"
  213. @cancel="cancelClick" class="modal">
  214. <u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' class='row'>
  215. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  216. :label="item.name" :name="item.name">
  217. </u-radio>
  218. </u-radio-group>
  219. <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
  220. v-if='isShowTerminationReason'>
  221. </u--textarea>
  222. </u-modal>
  223. <u-popup :show="show" mode="bottom" @close="close" @open="open">
  224. <view class="u-popup-wrap">
  225. <view>
  226. <image style='width:12px;height:12px;' @click='closepopup' class='close' src="../../static/images/order/guanbi@3x.png" mode=""></image>
  227. <!-- <u-icon @click="closepopup" class='close' name="close" size="20"></u-icon> -->
  228. </view>
  229. <view style='fon-size:34rpx;margin-bottom:20px;text-align:center;font-weight: 600;'>确认终止订单</view>
  230. <view style="margin: 0 auto;">
  231. <u-radio-group iconPlacement="right" v-model="radiovalue1" placement="" v-if='isShowTerminationReason' >
  232. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
  233. :label="item.name" :name="item.name">
  234. </u-radio>
  235. </u-radio-group>
  236. </view>
  237. <view style='border-top:10px solid #F2F4F7;position:absolute;left:0;height:0;width:100%;'></view>
  238. <view style='padding:40rpx 0 30rpx;'>终止原因描述</view>
  239. <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
  240. v-if='isShowTerminationReason'>
  241. </u--textarea>
  242. <view class='termination' :class="{'active':value2.length>0}" @click='$u.throttle(confirmClick, 1000)'>终止</view>
  243. </view>
  244. </u-popup>
  245. <u-modal :show="moneyShow" title="提示" :content='freightContent' showCancelButton @confirm="moneyClick" @close="moneyclose"
  246. @cancel="moneyclose"></u-modal>
  247. <u-toast ref="uToast"></u-toast>
  248. </view>
  249. </view>
  250. </template>
  251. <script>
  252. import uniPopup from '@/components/uni-popup/uni-popup.vue'
  253. export default {
  254. components:{
  255. uniPopup
  256. },
  257. data() {
  258. return {
  259. zcPhoneList:[],
  260. xcPhoneList:[],
  261. hdPhoneList:[],
  262. show:false,
  263. carrierInfo:{},
  264. freightInfo:{},
  265. cyinfoStatus: '未装车',
  266. isShowTerminationReason: false,
  267. dataObj:{},
  268. status1:false,
  269. status2:false,
  270. id: '',
  271. showCancelButton:true,
  272. value2: '',
  273. radiolist1: [{
  274. name: '已与货主协商',
  275. disabled: false
  276. },
  277. {
  278. name: '货主原因终止',
  279. disabled: false
  280. },
  281. {
  282. name: '司机个人原因终止',
  283. disabled: false
  284. }, {
  285. name: '其他',
  286. disabled: false
  287. }
  288. ],
  289. radiovalue1: '已与货主协商',
  290. confirmText: '终止',
  291. alertTitle: '确定终止订单?',
  292. alertContent: "",
  293. isShowAlert: false,
  294. moneyShow:false,
  295. freightContent:"",
  296. tips:""
  297. }
  298. },
  299. onLoad(options) {
  300. this.id = options.id
  301. },
  302. onShow() {
  303. this.getList()
  304. },
  305. methods: {
  306. open() {
  307. // console.log('open');
  308. },
  309. close() {
  310. this.show = false
  311. // console.log('close');
  312. },
  313. cargoOwner(_obj){
  314. // uni.$u.route('/pages/order/evaluateList');
  315. // console.log("查看---------------",_obj)
  316. uni.$u.route('/pages/order/cargoOwnerSee',_obj)
  317. },
  318. moneyclose(){
  319. this.moneyShow=false
  320. },
  321. moneyClick(){
  322. this.$request.baseRequest('post', '/orderInfo/api/confirmFreight', {
  323. id: this.dataObj.id,
  324. typeFlag:2,
  325. examineFlag:this.tips
  326. }).then(res => {
  327. if (res.code == 200) {
  328. this.$refs.uToast.show({
  329. type: 'success',
  330. message: this.tips == 1?"确认成功":"驳回成功",
  331. })
  332. this.moneyShow=false
  333. this.getList()
  334. }
  335. })
  336. },
  337. checkfreight(num){
  338. this.tips = num
  339. if(num == 1){
  340. this.freightContent = "合计应付运费 "+ this.dataObj.hyCarrierInfo.totalFreight + " 元,确认无误?"
  341. }else{
  342. this.freightContent = "确认驳回运费信息?"
  343. }
  344. this.moneyShow=true
  345. },
  346. ylImg(src) {
  347. uni.previewImage({
  348. urls: src,
  349. longPressActions: {
  350. itemList: ['发送给朋友', '保存图片', '收藏'],
  351. success: function(data) {
  352. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  353. },
  354. fail: function(err) {
  355. console.log(err.errMsg);
  356. }
  357. }
  358. });
  359. },
  360. closepopup(){
  361. this.show=false
  362. },
  363. lookContract(){
  364. uni.downloadFile({
  365. url: this.dataObj.driverContractUrl,
  366. success: function (res) {
  367. var filePath = res.tempFilePath;
  368. uni.openDocument({
  369. filePath: filePath,
  370. showMenu: true,
  371. success: function (res) {
  372. console.log('打开文档成功');
  373. }
  374. });
  375. }
  376. });
  377. // this.$request.baseRequest('get', '/orderInfo/setPdf', {
  378. // }).then(res => {
  379. // if (res.code == 200) {
  380. // this.contractSrc = res.data
  381. // uni.downloadFile({
  382. // url: res.data,
  383. // success: function (res) {
  384. // var filePath = res.tempFilePath;
  385. // uni.openDocument({
  386. // filePath: filePath,
  387. // showMenu: true,
  388. // success: function (res) {
  389. // console.log('打开文档成功');
  390. // }
  391. // });
  392. // }
  393. // });
  394. // // this.$refs.uToast.show({
  395. // // type: 'success',
  396. // // message: "提交成功",
  397. // // complete() {
  398. // // that.upCallback({
  399. // // size: 10,
  400. // // num: 1
  401. // // })
  402. // // }
  403. // // })
  404. // }
  405. // })
  406. // .catch(res => {
  407. // uni.$u.toast(res.message);
  408. // });
  409. },
  410. signContract() {
  411. // this.lookAlert = true
  412. uni.$u.route('/pages/order/signContract',{obj:encodeURIComponent(JSON.stringify(this.dataObj))}
  413. );
  414. },
  415. // 完结
  416. closed() {
  417. let item = this.dataDetails
  418. let that = this
  419. this.$request.baseRequest('post', '/orderInfo/api/editEnd', {
  420. id: item.id,
  421. }).then(res => {
  422. if (res.code == 200) {
  423. this.$refs.uToast.show({
  424. type: 'success',
  425. message: "提交成功",
  426. complete() {
  427. that.upCallback({
  428. size: 10,
  429. num: 1
  430. })
  431. }
  432. })
  433. }
  434. })
  435. .catch(res => {
  436. uni.$u.toast(res.message);
  437. });
  438. },
  439. confirmLoading() {
  440. var that = this
  441. this.$request.baseRequest('get', '/driverCarInfo/selectDriverCar', {
  442. commonId: uni.getStorageSync('userInfo').id,
  443. searchType:2
  444. }).then(res => {
  445. if (res.code == '200') {
  446. if(res.data&&res.data.length>0){
  447. uni.$u.route('/pages/order/confirmLoading', {
  448. obj: JSON.stringify({id:that.id,carrierId:that.dataObj.hyCarrierInfo.id}),
  449. });
  450. }else{
  451. that.alertTitle = '尚未完成车辆认证!'
  452. that.showCancelButton = false
  453. that.confirmText = '立即添加'
  454. that.isShowAlert = true
  455. }
  456. } else {
  457. uni.$u.toast(res.message);
  458. }
  459. })
  460. .catch(res => {
  461. uni.$u.toast(res.message);
  462. });
  463. // uni.$u.route('/pages/order/confirmLoading', {id:this.id});
  464. },
  465. confirmUnLoading() {
  466. let item = this.dataObj
  467. uni.$u.route('/pages/order/confirmUnloading', {obj:JSON.stringify(item)});
  468. },
  469. confirmClick() {
  470. if(this.alertTitle == '尚未完成车辆认证!'){
  471. uni.$u.route('/pages/mine/manageVehicles/index');
  472. }else{
  473. let that = this
  474. if (this.radiovalue1 == '其他' && !this.value2) {
  475. this.$refs.uToast.show({
  476. type: 'error',
  477. message: "请填写终止原因描述!",
  478. })
  479. return
  480. }
  481. let _terminationReason = ''
  482. if (this.radiovalue1 == '已与货主协商') {
  483. _terminationReason = 1
  484. } else if (this.radiovalue1 == '货主原因终止') {
  485. _terminationReason = 2
  486. } else if (this.radiovalue1 == '司机个人原因终止') {
  487. _terminationReason = 3
  488. } else if (this.radiovalue1 == '其他') {
  489. _terminationReason = 4
  490. }
  491. this.$request.baseRequest('post', '/orderInfo/api/end', {
  492. id: this.id,
  493. terminationReason: _terminationReason,
  494. terminationReasonDescription: this.value2,
  495. terminator:1
  496. }).then(res => {
  497. this.show=false
  498. this.radiovalue1 == '已与货主协商'
  499. this.value2=''
  500. this.isShowAlert = false
  501. // this.mescroll.resetUpScroll()
  502. this.$refs.uToast.show({
  503. type: 'success',
  504. message: "提交成功!",
  505. complete() {
  506. that.getList()
  507. }
  508. })
  509. })
  510. .catch(res => {
  511. uni.$u.toast(res.message);
  512. });
  513. }
  514. },
  515. cancelClick() {
  516. this.isShowAlert = false
  517. },
  518. stop() {
  519. let item = this.dataObj
  520. // 货主接单
  521. this.id = item.id
  522. if (item.orderStatusKey == 1) {
  523. this.isShowTerminationReason = false
  524. } else {
  525. this.isShowTerminationReason = true
  526. }
  527. if(item.orderStatus=='未装车'){
  528. this.show = true
  529. }else{
  530. this.isShowAlert=true
  531. }
  532. },
  533. toPhone(){
  534. uni.makePhoneCall({
  535. phoneNumber: this.dataObj.cargoOwnerPhone
  536. });
  537. },
  538. back() {
  539. uni.navigateBack()
  540. },
  541. getList(){
  542. this.$request.baseRequest('get', '/orderInfo/getOrderInfo', {
  543. id: this.id,
  544. }).then(res => {
  545. if(res.code==200){
  546. this.dataObj = res.data
  547. if(res.data.hyCarrierInfo){
  548. this.carrierInfo = res.data.hyCarrierInfo
  549. }
  550. this.freightInfo = res.data.freightInfo
  551. if(this.carrierInfo.loadingImg&&this.carrierInfo.loadingImg.length>0){
  552. this.zcPhoneList = this.carrierInfo.loadingImg.split(',')
  553. }
  554. if(this.carrierInfo.unloadingImg&&this.carrierInfo.unloadingImg.length>0){
  555. this.xcPhoneList = this.carrierInfo.unloadingImg.split(',')
  556. }
  557. if(this.carrierInfo.receiptImg&&this.carrierInfo.receiptImg.length>0){
  558. this.hdPhoneList = this.carrierInfo.receiptImg.split(',')
  559. }
  560. // if(res.data.orderStatus!="待货主确认"&&res.data.orderStatus!="未装车"&&res.data.orderStatus!="已终止"){
  561. // this.status1 = true
  562. // }
  563. // 运费信息
  564. if (res.data.cargoOwnerStatus != "待接单" && res.data.cargoOwnerStatus != "未装车" && res.data
  565. .cargoOwnerStatus != "待确认装车" && res.data.cargoOwnerStatus != "已驳回装车信息" && res.data
  566. .cargoOwnerStatus != "待平台确认装车" && res.data.cargoOwnerStatus != "平台驳回装车信息" && res.data.cargoOwnerStatus != "待结算" && res.data
  567. .cargoOwnerStatus != "已终止") {
  568. this.status2 = true
  569. }
  570. }
  571. })
  572. },
  573. goConfirmLoading(id) {
  574. uni.$u.route('/pages/order/confirmLoading', {
  575. obj: JSON.stringify({id:this.id}),
  576. });
  577. },
  578. }
  579. }
  580. </script>
  581. <style lang="scss">
  582. .content{
  583. min-height: 100vh;
  584. }
  585. .fixed,
  586. .fixed1 {
  587. background: white;
  588. position: fixed;
  589. top: var(--status-bar-height);
  590. z-index: 999;
  591. width: 100%;
  592. }
  593. .fixed {
  594. padding-bottom: 10rpx;
  595. .title {
  596. background: white;
  597. position: relative;
  598. font-size: 36rpx;
  599. color: rgba(0, 0, 0, 0.85);
  600. .search {
  601. position: absolute;
  602. right: 20rpx;
  603. }
  604. .back {
  605. position: absolute;
  606. left: 20rpx;
  607. width:18px;height:18px;
  608. }
  609. }
  610. }
  611. .fixed1 {
  612. top: 0;
  613. height: var(--status-bar-height);
  614. background: white;
  615. }
  616. .row-between{
  617. margin-bottom: 10rpx;
  618. }
  619. .content1 {
  620. background: white;
  621. margin: calc(var(--status-bar-height) + 80rpx) 20rpx 0 20rpx;
  622. border-radius: 20rpx;
  623. padding: 40rpx 0rpx 0 0;
  624. box-sizing: border-box;
  625. .status {
  626. display: flex;
  627. justify-content: center;
  628. margin-bottom: 40rpx;
  629. font-size: 36rpx;
  630. color: #333333;
  631. font-weight: 700;
  632. }
  633. .btn {
  634. width: 40%;
  635. margin-top: 20rpx;
  636. }
  637. .item2 {
  638. padding-bottom: 40rpx;
  639. }
  640. .item3 {
  641. padding: 20rpx;
  642. background: linear-gradient(180deg, #F7F7F9 0%, #FFFFFF 100%);
  643. border-radius: 0 0 20rpx 20rpx;
  644. .name {
  645. margin-left: 10rpx;
  646. margin-right: 20rpx;
  647. font-size: 32rpx;
  648. font-weight: 500;
  649. color: #333333;
  650. }
  651. .number {
  652. font-size: 26rpx;
  653. color: #878787;
  654. }
  655. .star {
  656. margin-left: 10rpx;
  657. }
  658. .phone {
  659. .bgc {
  660. background: #E5F0FE;
  661. width: 58rpx;
  662. height: 58rpx;
  663. display: flex;
  664. align-items: center;
  665. justify-content: center;
  666. border-radius: 50%;
  667. }
  668. .hz-name {
  669. font-size: 26rpx;
  670. color: #F5BA3C;
  671. }
  672. }
  673. }
  674. }
  675. .level2-title {
  676. margin: 20rpx 0 20rpx 0;
  677. }
  678. .content2 {
  679. background: white;
  680. margin: 20rpx;
  681. border-radius: 20rpx;
  682. padding: 20rpx;
  683. .change-btn {
  684. width: 86rpx;
  685. height: 86rpx;
  686. position: relative;
  687. top: -20rpx;
  688. }
  689. .item1,
  690. .item2 {
  691. width: 40%;
  692. .text {
  693. text-overflow: ellipsis;
  694. overflow: hidden;
  695. white-space: nowrap;
  696. }
  697. .gray {
  698. text-align: center;
  699. }
  700. }
  701. .item1 .text {
  702. text-align: center;
  703. }
  704. .item2 .text {
  705. text-align: center;
  706. }
  707. .border {
  708. border-bottom: 1px solid #EEEEEE;
  709. padding-bottom: 33rpx;
  710. }
  711. .place {
  712. width: 80%;
  713. text-align: right;
  714. }
  715. }
  716. .content3,
  717. .content4 {
  718. background: white;
  719. margin: 20rpx 0;
  720. border-radius: 20rpx;
  721. padding: 20rpx 0;
  722. }
  723. .content3{
  724. padding: 20rpx 0;
  725. margin:20rpx 0;
  726. }
  727. .content4 {
  728. .time{
  729. text-align: right;
  730. }
  731. .mx {
  732. background: #F7F8FA;
  733. padding: 10rpx;
  734. margin: 10rpx 0;
  735. }
  736. }
  737. /deep/.u-modal__content {
  738. flex-direction: column;
  739. }
  740. /deep/.u-popup__content{
  741. border-radius: 10px;
  742. // padding:20px;
  743. }
  744. /deep/.u-radio{
  745. margin:40rpx 0;
  746. }
  747. .close{
  748. position:absolute;
  749. right:20px;
  750. top:26px;
  751. }
  752. .termination{
  753. background:#F1F3F6;
  754. color:#C5CAD4;
  755. padding:10px;
  756. border-radius:30px;
  757. text-align: center;
  758. margin-top:30rpx;
  759. }
  760. .termination.active{
  761. background: #F5BA3C;
  762. color: white;
  763. }
  764. .u-popup-wrap{
  765. padding:20px;
  766. }
  767. </style>