logistics_sy/public/admin/assets/index.ac376aa7.js

2 lines
7.6 KiB
JavaScript

import{B as ee,C as oe,w as le,D as te,K as se,L as ae,I as ne,c as ue,W as ie,J as ce,M as re}from"./element-plus.0e78cb27.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.1d09c8e8.js";import{a as de,u as _e,d as me}from"./index.e36afc36.js";import{u as fe}from"./usePaging.160b82b8.js";import{b as Fe,c as ve,d as he}from"./vehicle.129d4204.js";import{d as A,C as ge,r as h,$ as C,s as ye,a4 as P,af as be,o as r,c as g,a as s,M as U,u as c,K as V,L as t,U as e,V as Ce,S as _,T as Ve,k as Be,b7 as ke,b6 as Ee}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"./vue-router.12d45bc3.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 p=y=>(ke("data-v-5bfab4da"),y=y(),Ee(),y),we=_("\u67E5\u8BE2"),De=_("\u91CD\u7F6E"),Se={class:"mt-4"},xe=_("\u589E\u52A0"),Pe=_("\u7F16\u8F91"),Ue={class:"flex mt-4 justify-end"},Ae={key:0},Ie=p(()=>s("span",null,"\u65B0\u589E\u4E09\u8F6E\u8F66",-1)),Te={class:"col"},Le=p(()=>s("span",{class:"cls"},"\u8F66\u724C\u53F7:",-1)),Ge={class:"col"},$e=p(()=>s("span",{class:"cls"}," GPS\u8BBE\u5907\u53F7:",-1)),je={class:"col"},Ne=p(()=>s("span",{class:"cls"},"\u8F66\u8F86\u56FE\u7247:",-1)),qe=["src"],Ke={key:1},Me=p(()=>s("span",null,"\u7ED1\u5B9A\u8BBE\u5907\u53F7",-1)),Re={class:"col"},We=p(()=>s("span",{class:"cls"}," \u8F66\u724C\u53F7:",-1)),ze={class:"col"},He=p(()=>s("span",{class:"cls"}," GPS\u8BBE\u5907\u53F7:",-1)),Je={class:"col"},Oe=p(()=>s("span",{class:"cls"},"\u8F66\u8F86\u56FE\u7247:",-1)),Qe=["src"],Xe={class:"dialog-footer"},Ye=_("\u53D6\u6D88"),Ze=_(" \u786E\u5B9A "),eo=A({name:"flowTypeLists"}),oo=A({...eo,setup(y){const E=de(),I=_e(),B=ge("base_url");console.log(B);const T=()=>{I.refreshView()};h("");const L=C({id:null,car_id:null,contract_id:null,company_id:null,company_name:null,company_user:null,company_phone:null,use_user_id:null,use_user_name:null,use_user_phone:null,create_time:null,status:null}),u=C({license:"",gps_imei:"",pic:""}),n=C({license:"",gps_imei:"",id:"",type:"",status:"",pic:""}),G=a=>{for(let o in n)n[o]=a[o];n.license=a.license;for(let o in a.rent_info)L[o]=a.rent_info[o];m.value=!0,b.value=!1};ye(),h(!1);const F=C({license:"",gps_imei:"",status:""}),$=h([]),j=a=>{$.value=a.map(({id:o})=>o)},{pager:v,getLists:w,resetParams:N,resetPage:q}=fe({fetchFun:Fe,params:F}),b=h(!0),K=a=>{for(const o in a)a[o]=void 0},m=h(!1),M=a=>{u.pic=a.data.uri,console.log(u.pic)},R=a=>{n.pic=a.data.uri,console.log(n.pic)},W=async()=>{b.value?ve({...u}):he({...n}),K(u),m.value=!1,n.license="",T()};return w(),(a,o)=>{const f=ee,k=oe,d=le,z=te,H=P("router-link"),i=se,J=ae,O=pe,Q=ne,D=P("Plus"),S=ue,x=ie,X=ce,Y=be("perms"),Z=re;return r(),g(Ce,null,[s("div",null,[U((r(),V(Q,{class:"!border-none",shadow:"never"},{default:t(()=>[e(z,{class:"mb-[-16px]",inline:""},{default:t(()=>[e(k,{label:"\u8F66\u724C\u53F7",prop:"company_id"},{default:t(()=>[e(f,{class:"w-[280px]",modelValue:F.license,"onUpdate:modelValue":o[0]||(o[0]=l=>F.license=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),_:1}),e(k,{label:"imei\u7F16\u53F7",prop:"company_id"},{default:t(()=>[e(f,{class:"w-[280px]",modelValue:F.gps_imei,"onUpdate:modelValue":o[1]||(o[1]=l=>F.gps_imei=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165imei\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(k,null,{default:t(()=>[e(d,{type:"primary",onClick:c(q)},{default:t(()=>[we]),_:1},8,["onClick"]),e(d,{onClick:c(N)},{default:t(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1}),s("div",Se,[U((r(),V(d,{type:"primary",onClick:o[2]||(o[2]=l=>(m.value=!0,b.value=!0))},{default:t(()=>[xe]),_:1})),[[Y,["vehicle.vehicle/add"]]]),e(J,{data:c(v).lists,"default-sort":{prop:"create_time",order:"descending"},onSelectionChange:j},{default:t(()=>[e(i,{label:"\u8F66\u8F86\u724C\u7167",width:"180",align:"center"},{default:t(({row:l})=>[e(d,{type:"primary",link:""},{default:t(()=>[e(H,{to:{path:"/vehicle/detail",query:{id:l.id}}},{default:t(()=>[_(Ve(l.license),1)]),_:2},1032,["to"])]),_:2},1024)]),_:1}),e(i,{label:"GPS\u7F16\u53F7",prop:"gps_imei","show-overflow-tooltip":""}),e(i,{label:"\u5F53\u524D\u4F7F\u7528\u4EBA",prop:"rent_info.use_user_name","show-overflow-tooltip":""}),e(i,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"rent_info.use_user_phone","show-overflow-tooltip":""}),e(i,{label:"\u8F66\u8F86\u4F7F\u7528\u60C5\u51B5",align:"center",prop:"status_name","show-overflow-tooltip":""}),e(i,{label:"\u5F53\u524D\u8FD0\u8F7D\u8D27\u7269",prop:"create_time","show-overflow-tooltip":""}),e(i,{label:"\u8F66\u8F86\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),e(i,{label:"\u5F53\u524D\u6240\u5C5E\u516C\u53F8",prop:"rent_info.company_name","show-overflow-tooltip":""}),e(i,{label:"\u79DF\u8D41\u65F6\u95F4",prop:"rent_info.create_time","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",align:"center",width:"auto",fixed:"right"},{default:t(({row:l})=>[e(d,{type:"primary",link:"",onClick:lo=>G(l)},{default:t(()=>[Pe]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),s("div",Ue,[e(O,{modelValue:c(v),"onUpdate:modelValue":o[3]||(o[3]=l=>Be(v)?v.value=l:null),onChange:c(w)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,c(v).loading]])]),s("div",null,[e(X,{modelValue:m.value,"onUpdate:modelValue":o[9]||(o[9]=l=>m.value=l),title:"",width:"30%"},{footer:t(()=>[s("span",Xe,[e(d,{onClick:o[8]||(o[8]=l=>m.value=!1)},{default:t(()=>[Ye]),_:1}),e(d,{type:"primary",onClick:W},{default:t(()=>[Ze]),_:1})])]),default:t(()=>[b.value?(r(),g("div",Ae,[Ie,s("div",Te,[Le,e(f,{modelValue:u.license,"onUpdate:modelValue":o[4]||(o[4]=l=>u.license=l),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),s("div",Ge,[$e,e(f,{modelValue:u.gps_imei,"onUpdate:modelValue":o[5]||(o[5]=l=>u.gps_imei=l),placeholder:"\u8BF7\u8F93\u5165GPS\u8BBE\u5907\u53F7"},null,8,["modelValue"])]),s("div",je,[Ne,e(x,{headers:{Token:c(E).token},action:c(B)+"/upload/image","on-success":M,limit:1,class:"uplode_cls"},{default:t(()=>[u.pic?(r(),g("img",{key:0,src:u.pic,class:"avatar"},null,8,qe)):(r(),V(S,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(D)]),_:1}))]),_:1},8,["headers","action"])])])):(r(),g("div",Ke,[Me,s("div",Re,[We,e(f,{modelValue:n.license,"onUpdate:modelValue":o[6]||(o[6]=l=>n.license=l),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),s("div",ze,[He,e(f,{modelValue:n.gps_imei,"onUpdate:modelValue":o[7]||(o[7]=l=>n.gps_imei=l),placeholder:"\u8BF7\u8F93\u5165GPS\u8BBE\u5907\u53F7"},null,8,["modelValue"])]),s("div",Je,[Oe,e(x,{headers:{Token:c(E).token},action:c(B)+"/upload/image","on-success":R,limit:1,class:"uplode_cls"},{default:t(()=>[n.pic?(r(),g("img",{key:0,src:n.pic,class:"avatar"},null,8,Qe)):(r(),V(S,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(D)]),_:1}))]),_:1},8,["headers","action"])])]))]),_:1},8,["modelValue"])])],64)}}});const No=me(oo,[["__scopeId","data-v-5bfab4da"]]);export{No as default};