2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
import{a1 as k,a2 as C,w as x,L as E,M as S,D as M}from"./element-plus.4f2efd79.js";import{u as L}from"./vue-router.12d45bc3.js";import{v as q}from"./vehicle.c35d22a1.js";import{d as D}from"./index.179c19e4.js";import{$ as B,j as I,a4 as T,o as f,c as h,U as o,L as e,S as c,T as i,a as l,V,a7 as j,u as A,b7 as N,b6 as R}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.0cfb9bfd.js";import"./axios.5170aa30.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.13c37079.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.c06168c6.js";import"./color.6d4d506e.js";import"./clone.c839a30a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.858ebc14.js";import"./ms.a9ae1d6d.js";import"./nprogress.5c1127b0.js";import"./vue-clipboard3.a5eb3840.js";import"./clipboard.ffe9b9d8.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const r=u=>(N("data-v-f04a0af2"),u=u(),R(),u),F={class:"box"},z=r(()=>l("span",null,"\u8F66\u724C\u53F7:",-1)),J=r(()=>l("span",null,"\u4F7F\u7528\u4EBA:",-1)),O=r(()=>l("span",null,"\u8054\u7CFB\u65B9\u5F0F:",-1)),P=r(()=>l("span",null,"\u627F\u79DF\u5BF9\u8C61:",-1)),U=r(()=>l("span",null,"\u79DF\u8D41\u65F6\u95F4:",-1)),W=r(()=>l("span",null,"\u5408\u540C:",-1)),$=r(()=>l("span",null,"\u4ECA\u65E5\u8F68\u8FF9:",-1)),G=r(()=>l("div",{id:"container"},null,-1)),H=r(()=>l("div",{id:"panel"},null,-1)),K=r(()=>l("span",null,"\u8F66\u8F86\u4F7F\u7528\u60C5\u51B5:",-1)),Q=r(()=>l("span",null," \u5F53\u524D\u8FD0\u8F7D\u8D27\u7269:",-1)),X=c("\u67E5\u770B\u5168\u90E8"),Y={__name:"detail",setup(u){const t=B({id:0,license:"",gps_imei:"",type:0,status:0,create_time:"",update_time:"",mileage:0,track_info:[],travel_info:[],rent_info:{id:null,car_id:null,contract_id:null,company_id:null,company_name:"",company_user:"",company_phone:"",use_user_id:null,use_user_name:"",use_user_phone:"",create_time:"",contract_file:""},logistic_info:[{order_id:null,order_sn:"",shop_name:"",user_name:"",receiver_address:"",qh_time:null,ps_time:null,diff_time:"",products:[{product_num:null,goods_name:"null",goods_unit:"null"}],product_count:null}]}),v=L(),b=()=>{window.open(t.rent_info.contract_file,"_blank")};return q({id:v.query.id}).then(d=>{Object.keys(t).forEach(p=>{t[p]=d[p]})}),I(()=>{var d=new AMap.Map("container",{viewMode:"2D",zoom:11,center:[t.track_info[0].lon,t.track_info[0].lat],mapStyle:"amap://styles/red"});console.log(t);let p=t.track_info;var a=[p.forEach((m,w)=>{new AMap.LngLat(m.lon,m.lat)})];console.log(p);var s=new AMap.Polyline({path:a,borderWeight:100,strokeColor:"blue",lineJoin:"round"});d.add(s)}),(d,p)=>{const a=k,s=C,m=T("router-link"),w=x,_=E,y=S,g=M;return f(),h("div",F,[o(g,{ref:"formRef","label-width":"84px"},{default:e(()=>[o(a,null,{default:e(()=>[o(s,null,{default:e(()=>[o(a,{span:8},{default:e(()=>[z,c(i(t.license),1)]),_:1}),o(a,{span:8},{default:e(()=>{var n;return[J,c(i((n=t.rent_info)==null?void 0:n.use_user_name),1)]}),_:1}),o(a,{span:8},{default:e(()=>{var n;return[O,c(i((n=t.rent_info)==null?void 0:n.use_user_phone),1)]}),_:1})]),_:1}),o(s,null,{default:e(()=>[o(a,{span:8},{default:e(()=>{var n;return[P,c(i((n=t.rent_info)==null?void 0:n.company_name),1)]}),_:1}),o(a,{span:8},{default:e(()=>{var n;return[U,c(i((n=t.rent_info)==null?void 0:n.create_time),1)]}),_:1}),o(a,{span:8},{default:e(()=>[W,l("span",{onClick:b,style:{color:"blue",cursor:"pointer"}},"\u8FD9\u662F\u5408\u540C\u94FE\u63A5")]),_:1})]),_:1}),o(s,{class:"map_row"},{default:e(()=>[o(a,{span:9},{default:e(()=>[$,G,H]),_:1}),o(a,{span:10},{default:e(()=>[K,(f(!0),h(V,null,j(t.travel_info,(n,Z)=>(f(),h("p",null,i(n.day)+"\u884C\u9A76\u4E86"+i(n.mileage)+"\u7C73 ",1))),256))]),_:1})]),_:1}),o(s,null,{default:e(()=>[Q,o(w,{type:"primary"},{default:e(()=>[o(m,{to:{path:"/vehicle/goodsList",query:{id:A(v).query.id}}},{default:e(()=>[X]),_:1},8,["to"])]),_:1})]),_:1}),o(s,null,{default:e(()=>[o(y,{"default-sort":{prop:"create_time",order:"descending"},data:t.logistic_info,onSelectionChange:d.handleSelectionChange},{default:e(()=>[o(_,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"order_sn","show-overflow-tooltip":""}),o(_,{label:"\u5546\u54C1",prop:"shop_name","show-overflow-tooltip":""}),o(_,{label:"\u63D0\u4F9B\u5546\u5BB6",prop:"shop_name","show-overflow-tooltip":""}),o(_,{label:"\u4E0B\u5355\u7528\u6237",prop:"user_name","show-overflow-tooltip":""}),o(_,{label:"\u6536\u8D27\u5730\u5740",prop:"receiver_address","show-overflow-tooltip":""}),o(_,{label:"\u4E0A\u8F66\u65F6\u95F4",prop:"qh_time","show-overflow-tooltip":""}),o(_,{label:"\u8FD0\u8F93\u65F6\u95F4",prop:"diff_time","show-overflow-tooltip":""})]),_:1},8,["data","onSelectionChange"])]),_:1})]),_:1})]),_:1},512)])}}},jo=D(Y,[["__scopeId","data-v-f04a0af2"]]);export{jo as default};
|