logistics/public/admin/assets/index.375f53e3.js
2023-09-20 16:53:08 +08:00

2 lines
7.1 KiB
JavaScript

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