WokerTask/public/admin/assets/vehicle_detail.2f2478bb.js

2 lines
9.8 KiB
JavaScript
Raw Normal View History

2024-01-12 14:06:13 +08:00
import{K as T,C as z,D as G,a2 as I,a3 as L,F as A,G as J,a1 as K,w as O}from"./element-plus.ff90c99c.js";import{a as P,u as Q}from"./vue-router.6d4cf914.js";import{l as W,f as $}from"./contract.1b4d754a.js";import{a as H}from"./index.c5585224.js";import{r as M,$ as X,E as Y,o as p,c as m,W as e,Q as a,a as r,P as f,F as w,a9 as g,T as c,U,V as Z,u as k}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const ee={class:"edit-popup"},le=r("div",{class:"tit"},"\u7532\u65B9\u4FE1\u606F",-1),ae=r("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),oe={style:{display:"flex","justify-content":"left"}},te={class:"right"},de=r("div",{class:"tit"},"\u4E59\u65B9\u4FE1\u606F",-1),se=r("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),ne={style:{display:"flex","justify-content":"left"}},ie={class:"right"},re=r("div",{class:"tit"},"\u79DF\u8D41\u4FE1\u606F",-1),pe={key:0,class:"el-card pt-6"},ue=r("div",{class:"tit"},"\u79DF\u8D41\u4FE1\u606F",-1),_e={style:{padding:"0 2vw"}},me={class:"el-card pt-6"},ce=["href"],fe=["href"],ll={__name:"vehicle_detail",setup(be){const E=H(),C=P(),h=Q(),V=M([]),l=X({contract_logistic_id:"",contract_no:"",company_a_id:"",company_a_name:"",company_a_code:"",company_a_user:"",company_a_phone:"",company_a_email:"@service.ebaoquan.org",company_b_id:"",company_b_name:"",company_b_user:"",company_b_phone:"",company_b_code:"",company_b_email:"@service.ebaoquan.org",num:"",cars_info:[{id:"",license:"",type:"",rent_time:""}],car_list:[],type:0,status:0,file:"",contract_url:"",signing_timer:0,url:null,create_time:"2023-08-31 14:26:42",update_time:"2023-08-31 14:26:49",reject_message:""});let b=[];const x=Y("base_url"),D=d=>{b=[],d.map(o=>{l.car_list.forEach(n=>{n.license==o&&b.push(n)})})},F=d=>{if(d==0)return"\u79DF\u8D41\u8F66\u8F86";if(d==1)return"\u81EA\u6709\u8F66\u8F86";if(d==2)return"\u8D2D\u4E70\u8F66\u8F86"};W({id:h.query.id}).then(d=>{for(let o in l)l[o]=d[o];l.cars_info.forEach(o=>{o.type=F(o.type)})});const B=(d,o)=>{l.file=d.data.uri},N=()=>{$({id:h.query.id,file:l.file,cars:JSON.stringify(b)}).then(d=>{setTimeout(()=>{C.go(-1)},1e3)})};return(d,o)=>{const n=z,i=G,s=I,u=L,R=A,S=J,j=K,v=O,q=T;return p(),m("div",ee,[e(R,{ref:"formRef",model:l,"label-width":"90px",rules:d.formRules,disabled:!0},{default:a(()=>[e(s,{span:24,class:"el-card pt-6"},{default:a(()=>[le,e(u,null,{default:a(()=>[e(s,{span:8},{default:a(()=>[e(i,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:a(()=>[e(n,{modelValue:l.company_a_name,"onUpdate:modelValue":o[0]||(o[0]=t=>l.company_a_name=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0",clearable:"",disabled:d.isDisabled,style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(s,{span:8},{default:a(()=>[e(i,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:a(()=>[e(n,{disabled:d.isDisabled,modelValue:l.company_a_code,"onUpdate:modelValue":o[1]||(o[1]=t=>l.company_a_code=t),placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801",clearable:"",style:{width:"100%"}},null,8,["disabled","modelVal