ctms/ctms-appgm/assets/pages-order-detail-detail.dbfd1a6d.js
2025-04-10 23:19:13 +08:00

2 lines
5.1 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{o as e,c as a,w as r,a as t,b as l,t as i,Q as d,i as o,e as s,h as n,k as u,l as _,n as c,m as f,p,q as h,K as m,j as b}from"./index.e9f016fd.js";import{_ as v}from"./uni-card.ee833f92.js";import{r as g}from"./uni-app.es.d4b58485.js";import{_ as y}from"./uni-section.1b5bcd39.js";import{_ as w}from"./uni-icons.219b5d7c.js";import{_ as x}from"./uni-link.337b675b.js";import{_ as k}from"./plugin-vue_export-helper.21dcd24c.js";var j=k({data:()=>({userinfo:{},oid:0,lsIndex:"OrderDetail",order:{id:1,car_id:1,car_number:"车牌号",car_title:"车型号",start_city:"起运城市",from_province:"起运省份",aim_city:"目的城市",to_province:"目标省份",signdate:"下单日期",car_extra:"随车物品",checker:"验车人",receiver_name:"收车人姓名",receiver_mobiles:"收车人电话",sender_name:"发车人姓名",sender_mobiles:"发车人电话"},h5_url:""}),methods:{checkLogin(){var e=u("UserInfo");e?(this.userinfo=e,_("log","at pages/order/detail/detail.vue:39",e)):c({url:"../../login/login"})},getOderDetail:function(e){var a=this.apis.domain+this.apis.OrderDetail;f({url:a,data:{oid:this.oid,pid:this.apis.appid},method:"POST",header:{"content-type":"application/x-www-form-urlencoded"},success:e=>{switch(_("log","at pages/order/detail/detail.vue:61",e.data),e.data.code){case 100:case 101:default:h({title:"查询失败",icon:"error"});break;case 200:var a=e.data.data;this.oid=a.id,this.order=a;var r=this.lsIndex+"-"+this.oid;_("log","at pages/order/detail/detail.vue:73",a),p(r,a),h({title:"查询完成!",icon:"success"})}},fail:e=>{h({title:"云端错误",icon:"error"})}})},callTo(e){m({phoneNumber:e})}},onLoad(e){this.checkLogin(),_("log","at pages/order/detail/detail.vue:92",e),this.oid=e.oid,this.h5_url=this.apis.h5_url},onShow:function(){_("log","at pages/order/detail/detail.vue:98","订单详情界面显示");var e=this.lsIndex+"-"+this.oid,a=u(e);a?this.order=a:this.getOderDetail()},onPullDownRefresh(){this.getOderDetail(),b()}},[["render",function(u,_,c,f,p,h){const m=o,b=g(s("uni-card"),v),k=g(s("uni-section"),y),j=g(s("uni-icons"),w),D=n,O=g(s("uni-link"),x);return e(),a(m,{class:"container"},{default:r((()=>[t(k,{title:"基础信息",type:"line"},{default:r((()=>[t(b,{"is-shadow":!1},{default:r((()=>[t(m,{class:"uni-body"},{default:r((()=>[t(m,null,{default:r((()=>[l("车辆:"+i(p.order.car_title)+" -- "+i(p.order.car_number),1)])),_:1}),t(m,null,{default:r((()=>[l("运单号:"+i(p.order.sn),1)])),_:1}),t(m,null,{default:r((()=>[l("日期:"+i(p.order.signdate),1)])),_:1}),t(m,null,{default:r((()=>[l("起运地:"+i(p.order.from_province)+"-"+i(p.order.start_city)+" => 目的地:"+i(p.order.to_province)+"-"+i(p.order.aim_city),1)])),_:1}),t(m,null,{default:r((()=>[l("随车物品:"+i(p.order.car_extra),1)])),_:1})])),_:1})])),_:1})])),_:1}),t(k,{title:"联系信息",type:"line"},{default:r((()=>[t(b,{"is-shadow":!1},{default:r((()=>[t(m,{class:"uni-body"},{default:r((()=>[t(m,{onClick:_[0]||(_[0]=e=>h.callTo(p.order.sender_mobiles))},{default:r((()=>[t(j,{type:"phone",size:"20",color:"#0095F6"}),l(" 发车人:"+i(p.order.sender_name)+" ",1),d("em",null,i(p.order.sender_mobiles),1)])),_:1}),t(m,{onClick:_[1]||(_[1]=e=>h.callTo(p.order.receiver_mobiles))},{default:r((()=>[t(j,{type:"phone",size:"20",color:"#0095F6"}),l("接车人:"+i(p.order.receiver_name),1),d("em",null,i(p.order.receiver_mobiles),1)])),_:1}),t(m,null,{default:r((()=>[l("送车地址:"+i(p.order.aim_address),1)])),_:1})])),_:1})])),_:1})])),_:1}),t(k,{title:"费用信息",type:"line"},{default:r((()=>[t(b,{"is-shadow":!1},{default:r((()=>[t(m,{class:"uni-body"},{default:r((()=>[t(m,null,{default:r((()=>[l("总运费:"+i(p.order.fee_total)+" 元",1)])),_:1}),t(m,null,{default:r((()=>[l("现付:"),t(D,{class:"error"},{default:r((()=>[l(i(p.order.pay_send),1)])),_:1}),l("元")])),_:1}),t(m,null,{default:r((()=>[l("到付:"),t(D,{class:"error"},{default:r((()=>[l(i(p.order.pay_receive),1)])),_:1}),l("元")])),_:1})])),_:1})])),_:1})])),_:1}),t(k,{title:"关联信息",type:"line"},{default:r((()=>[t(b,{"is-shadow":!1},{default:r((()=>[t(m,{class:"uni-body"},{default:r((()=>[t(m,null,{default:r((()=>[l("经办人:"+i(p.order.employee_title),1)])),_:1}),t(m,null,{default:r((()=>[l("验车人:"+i(p.order.checker),1)])),_:1}),t(m,null,{default:r((()=>[l("委托人:"+i(p.order.wtdw),1)])),_:1})])),_:1})])),_:1})])),_:1}),t(k,{title:"链接",subTitle:"使用系统浏览器打开",type:"line",padding:""},{default:r((()=>[t(O,{href:p.h5_url+"?oid="+p.oid,text:p.h5_url},null,8,["href","text"])])),_:1}),t(k,{title:"操作提示",type:"line"},{default:r((()=>[t(b,{"is-shadow":!1},{default:r((()=>[t(m,{class:"uni-body"},{default:r((()=>[t(m,null,{default:r((()=>[l("订单详情页首次打开时需要联网搜索运单信息;")])),_:1}),t(m,null,{default:r((()=>[l("打开过一次的运单信息将会缓存在APP内一段时间在这期间即使手机没有网络也能查看")])),_:1}),t(m,null,{default:r((()=>[l("如果需要查看该运单的最新信息,可通过下拉本页面进行刷新(手机需要联网)")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-890f0ecc"]]);export{j as default};