logistics/public/admin/assets/index.992a86a9.js
2023-10-17 20:19:54 +08:00

2 lines
7.5 KiB
JavaScript

import{B as ee,C as oe,w as le,D as te,L as se,M as ae,I as ue,c as ne,W as ie,J as ce,N as de}from"./element-plus.cd30671c.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.b7fe404d.js";import{a as pe,u as _e,d as me}from"./index.bd90991f.js";import{u as Fe}from"./usePaging.160b82b8.js";import{b as fe,c as ve,d as he}from"./vehicle.6c2dfeb6.js";import{d as A,C as ge,r as h,$ as V,s as ye,a4 as P,af as Ce,o as d,c as g,a as s,M as U,u as c,K as B,L as t,U as e,V as Ve,S as _,T as Be,k as ke,b7 as Ee,b6 as be}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.dd12dff4.js";import"./axios.6d9e98c9.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.5dcf6140.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.253630a7.js";import"./color.b3fdead5.js";import"./clone.ea9971c9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.92d1dcc2.js";import"./vue-clipboard3.ddf7a13f.js";import"./clipboard.3e4b8d76.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const r=y=>(Ee("data-v-27d65848"),y=y(),be(),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=r(()=>s("span",null,"\u65B0\u589E\u4E09\u8F6E\u8F66",-1)),Te={class:"col"},Le=r(()=>s("span",{class:"cls"},"\u8F66\u724C\u53F7:",-1)),Ge={class:"col"},$e=r(()=>s("span",{class:"cls"}," GPS\u8BBE\u5907\u53F7:",-1)),Ne={class:"col"},je=r(()=>s("span",{class:"cls"},"\u8F66\u8F86\u56FE\u7247:",-1)),qe=["src"],Me={key:1},Re=r(()=>s("span",null,"\u7ED1\u5B9A\u8BBE\u5907\u53F7",-1)),Ke={class:"col"},We=r(()=>s("span",{class:"cls"}," \u8F66\u724C\u53F7:",-1)),ze={class:"col"},He=r(()=>s("span",{class:"cls"}," GPS\u8BBE\u5907\u53F7:",-1)),Je={class:"col"},Oe=r(()=>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 b=pe(),I=_e(),k=ge("base_url");console.log(k);const T=()=>{I.refreshView()};h("");const L=V({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}),n=V({license:"",gps_imei:"",pic:""}),u=V({license:"",gps_imei:"",id:"",type:"",status:"",pic:""}),G=a=>{for(let o in u)u[o]=a[o];u.license=a.license;for(let o in a.rent_info)L[o]=a.rent_info[o];m.value=!0,C.value=!1};ye(),h(!1);const f=V({license:"",gps_imei:"",status:""}),$=h([]),N=a=>{$.value=a.map(({id:o})=>o)},{pager:v,getLists:w,resetParams:j,resetPage:q}=Fe({fetchFun:fe,params:f}),C=h(!0),M=a=>{for(const o in a)a[o]=void 0},m=h(!1),R=a=>{n.pic=a.data.uri,console.log(n.pic)},K=a=>{u.pic=a.data.uri,console.log(u.pic)},W=async()=>{C.value?ve({...n}):he({...u}),M(n),m.value=!1,u.license="",T()};return w(),(a,o)=>{const F=ee,E=oe,p=le,z=te,H=P("router-link"),i=se,J=ae,O=re,Q=ue,D=P("Plus"),S=ne,x=ie,X=ce,Y=Ce("perms"),Z=de;return d(),g(Ve,null,[s("div",null,[U((d(),B(Q,{class:"!border-none",shadow:"never"},{default:t(()=>[e(z,{class:"mb-[-16px]",inline:""},{default:t(()=>[e(E,{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(E,{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(E,null,{default:t(()=>[e(p,{type:"primary",onClick:c(q)},{default:t(()=>[we]),_:1},8,["onClick"]),e(p,{onClick:c(j)},{default:t(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1}),s("div",Se,[U((d(),B(p,{type:"primary",onClick:o[2]||(o[2]=l=>(m.value=!0,C.value=!0))},{default:t(()=>[xe]),_:1})),[[Y,["vehicle.vehicle/add"]]]),e(J,{data:c(v).lists,"default-sort":{prop:"create_time",order:"descending"},onSelectionChange:N},{default:t(()=>[e(i,{label:"\u8F66\u8F86\u724C\u7167",width:"180",align:"center"},{default:t(({row:l})=>[e(p,{type:"primary",link:""},{default:t(()=>[e(H,{to:{path:"/vehicle/detail",query:{id:l.id}}},{default:t(()=>[_(Be(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",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(p,{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=>ke(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(p,{onClick:o[8]||(o[8]=l=>m.value=!1)},{default:t(()=>[Ye]),_:1}),e(p,{type:"primary",onClick:W},{default:t(()=>[Ze]),_:1})])]),default:t(()=>[C.value?(d(),g("div",Ae,[Ie,s("div",Te,[Le,e(F,{modelValue:n.license,"onUpdate:modelValue":o[4]||(o[4]=l=>n.license=l),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),s("div",Ge,[$e,e(F,{modelValue:n.gps_imei,"onUpdate:modelValue":o[5]||(o[5]=l=>n.gps_imei=l),placeholder:"\u8BF7\u8F93\u5165GPS\u8BBE\u5907\u53F7"},null,8,["modelValue"])]),s("div",Ne,[je,e(x,{headers:{Token:c(b).token},action:c(k)+"/upload/image","on-success":R,limit:1,class:"uplode_cls"},{default:t(()=>[n.pic?(d(),g("img",{key:0,src:n.pic,class:"avatar"},null,8,qe)):(d(),B(S,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(D)]),_:1}))]),_:1},8,["headers","action"])])])):(d(),g("div",Me,[Re,s("div",Ke,[We,e(F,{modelValue:u.license,"onUpdate:modelValue":o[6]||(o[6]=l=>u.license=l),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),s("div",ze,[He,e(F,{modelValue:u.gps_imei,"onUpdate:modelValue":o[7]||(o[7]=l=>u.gps_imei=l),placeholder:"\u8BF7\u8F93\u5165GPS\u8BBE\u5907\u53F7"},null,8,["modelValue"])]),s("div",Je,[Oe,e(x,{headers:{Token:c(b).token},action:c(k)+"/upload/image","on-success":K,limit:1,class:"uplode_cls"},{default:t(()=>[u.pic?(d(),g("img",{key:0,src:u.pic,class:"avatar"},null,8,Qe)):(d(),B(S,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(D)]),_:1}))]),_:1},8,["headers","action"])])]))]),_:1},8,["modelValue"])])],64)}}});const $o=me(oo,[["__scopeId","data-v-27d65848"]]);export{$o as default};