logistics_sy/public/admin/assets/detail.41fd4e9b.js

2 lines
5.5 KiB
JavaScript

import{Z as k,_ as C,w as x,L as E,M as S,D as M}from"./element-plus.44a1c90c.js";import{u as L}from"./vue-router.12d45bc3.js";import{v as q}from"./vehicle.352e0ef9.js";import{d as D}from"./index.600d25a3.js";import{$ as V,j as B,a4 as I,o as w,c as v,U as o,L as t,S as c,T as i,R as N,V as R,a7 as T,a as l,u as j,b7 as A,b6 as F}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.d871e3e1.js";import"./axios.263e335e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.e8c2b926.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.49c13ae5.js";import"./color.6f36a052.js";import"./clone.0bac550d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.762f2b8b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f7d60be2.js";import"./vue-clipboard3.536bdb56.js";import"./clipboard.cadf3e40.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const s=d=>(A("data-v-5ecafe48"),d=d(),F(),d),z={class:"box"},J=s(()=>l("span",null,"\u8F66\u724C\u53F7:",-1)),O=s(()=>l("span",null,"\u4F7F\u7528\u4EBA:",-1)),P=s(()=>l("span",null,"\u8054\u7CFB\u65B9\u5F0F:",-1)),U=s(()=>l("span",null,"\u627F\u79DF\u5BF9\u8C61:",-1)),W=s(()=>l("span",null,"\u79DF\u8D41\u65F6\u95F4:",-1)),Z=s(()=>l("span",null,"\u5408\u540C:",-1)),$=s(()=>l("span",null,"\u4ECA\u65E5\u8F68\u8FF9:",-1)),G=s(()=>l("div",{id:"container"},null,-1)),H=s(()=>l("div",{id:"panel"},null,-1)),K=s(()=>l("span",null,"\u8F66\u8F86\u4F7F\u7528\u60C5\u51B5:",-1)),Q=s(()=>l("span",null,"\u8F66\u8F86\u56FE\u7247:",-1)),X=["src"],Y=s(()=>l("span",null," \u5F53\u524D\u8FD0\u8F7D\u8D27\u7269:",-1)),oo=c("\u67E5\u770B\u5168\u90E8"),eo={__name:"detail",setup(d){const n=V({id:0,license:"",gps_imei:"",type:0,status:0,create_time:"",update_time:"",mileage:0,track_info:[],travel_info:[],pic:"",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}]}),y=L(),g=()=>{window.open(n.rent_info.contract_file,"_blank")};return q({id:y.query.id}).then(p=>{Object.keys(n).forEach(u=>{n[u]=p[u]})}),B(()=>{var m,r,f,h;const p=[{lon:116.368904,lat:39.913423},{lon:116.382122,lat:39.901176},{lon:116.387271,lat:39.912501},{lon:116.398258,lat:39.9046}];var u=new AMap.Map("container",{viewMode:"3D",zoom:11,center:[((m=n.track_info[0])==null?void 0:m.lon)||((r=p[0])==null?void 0:r.lon),((f=n.track_info[0])==null?void 0:f.lat)||((h=p[0])==null?void 0:h.lat)],mapStyle:"amap://styles/red"});let a=n.track_info;var _=[];a.forEach(e=>{_.push(new AMap.LngLat(e.lon,e.lat))});var b=new AMap.Polyline({path:_,borderWeight:100,strokeColor:"blue",lineJoin:"round"});u.add(b)}),(p,u)=>{const a=k,_=C,b=I("router-link"),m=x,r=E,f=S,h=M;return w(),v("div",z,[o(h,{ref:"formRef","label-width":"84px"},{default:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(a,{span:8},{default:t(()=>[J,c(i(n.license),1)]),_:1}),o(a,{span:8},{default:t(()=>{var e;return[O,c(i((e=n.rent_info)==null?void 0:e.use_user_name),1)]}),_:1}),o(a,{span:8},{default:t(()=>{var e;return[P,c(i((e=n.rent_info)==null?void 0:e.use_user_phone),1)]}),_:1})]),_:1}),o(_,null,{default:t(()=>[o(a,{span:8},{default:t(()=>{var e;return[U,c(i((e=n.rent_info)==null?void 0:e.company_name),1)]}),_:1}),o(a,{span:8},{default:t(()=>{var e;return[W,c(i((e=n.rent_info)==null?void 0:e.create_time),1)]}),_:1}),o(a,{span:8},{default:t(()=>{var e;return[Z,(e=n.rent_info)!=null&&e.contract_file?(w(),v("span",{key:0,onClick:g,style:{color:"blue",cursor:"pointer"}},"\u5408\u540C")):N("",!0)]}),_:1})]),_:1}),o(_,{class:"map_row"},{default:t(()=>[o(a,{span:8},{default:t(()=>[$,G,H]),_:1}),o(a,{span:8},{default:t(()=>[K,(w(!0),v(R,null,T(n.travel_info,(e,to)=>(w(),v("p",null,i(e.day)+"\u884C\u9A76\u4E86"+i(e.mileage)+"\u7C73 ",1))),256))]),_:1}),o(a,{span:8},{default:t(()=>[Q,l("img",{src:n.pic,style:{width:"200px",height:"200px"},alt:""},null,8,X)]),_:1})]),_:1}),o(_,null,{default:t(()=>[Y,o(m,{type:"primary"},{default:t(()=>[o(b,{to:{path:"/vehicle/goodsList",query:{id:j(y).query.id}}},{default:t(()=>[oo]),_:1},8,["to"])]),_:1})]),_:1}),o(_,null,{default:t(()=>[o(f,{"default-sort":{prop:"create_time",order:"descending"},data:n.logistic_info,onSelectionChange:p.handleSelectionChange},{default:t(()=>[o(r,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"order_sn","show-overflow-tooltip":""}),o(r,{label:"\u5546\u54C1",prop:"shop_name","show-overflow-tooltip":""}),o(r,{label:"\u63D0\u4F9B\u5546\u5BB6",prop:"shop_name","show-overflow-tooltip":""}),o(r,{label:"\u4E0B\u5355\u7528\u6237",prop:"user_name","show-overflow-tooltip":""}),o(r,{label:"\u6536\u8D27\u5730\u5740",prop:"receiver_address","show-overflow-tooltip":""}),o(r,{label:"\u4E0A\u8F66\u65F6\u95F4",prop:"qh_time","show-overflow-tooltip":""}),o(r,{label:"\u8FD0\u8F93\u65F6\u95F4",prop:"diff_time","show-overflow-tooltip":""})]),_:1},8,["data","onSelectionChange"])]),_:1})]),_:1})]),_:1},512)])}}},Ao=D(eo,[["__scopeId","data-v-5ecafe48"]]);export{Ao as default};