import{B as k,C as U,a1 as g,a2 as v,D,w as C}from"./element-plus.4f2efd79.js";import{a as E,u as B}from"./vue-router.12d45bc3.js";import{c as R,s as x}from"./contract.8be35fa1.js";import{$ as N,o as p,c,U as e,L as l,K as b,R as f,a as r,V as q,a7 as F,S as z}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"./index.179c19e4.js";import"./lodash.13c37079.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 I={class:"edit-popup"},L=r("div",{class:"tit"},"\u516C\u53F8\u4FE1\u606F",-1),j=r("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),K={style:{display:"flex","justify-content":"left"}},S={class:"right"},T=r("div",{class:"tit"},"\u79DF\u8D41\u4FE1\u606F",-1),$=z("\u53D1\u9001\u5408\u540C"),ve={__name:"edit",setup(A){E();const u=B(),a=N({id:8,contract_no:"",company_a_name:"",company_a_code:"",company_a_user:"",company_a_phone:"",company_a_email:"",company_b_id:165,company_b_name:"",company_b_user:"",company_b_phone:"",company_b_code:"",company_b_email:"",num:1,cars_info:[{id:20,license:""}],status:0,file:"",contract_url:"",signing_timer:0,url:null,create_time:"",update_time:""});console.log(u.query.id),R({id:u.query.id}).then(d=>{for(let o in a)a[o]=d[o];console.log(a)});const y=()=>{window.open(a.file,"_blank")},V=()=>{x({id:u.query.id}).then(d=>{console.log(d)})};return(d,o)=>{const s=k,i=U,n=g,_=v,h=D,w=C;return p(),c("div",I,[e(h,{ref:"formRef",model:a,"label-width":"90px",rules:d.formRules,disabled:!0},{default:l(()=>[e(n,{span:24,class:"el-card pt-6"},{default:l(()=>[L,e(_,null,{default:l(()=>[e(n,{span:8},{default:l(()=>[e(i,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:l(()=>[e(s,{modelValue:a.company_b_name,"onUpdate:modelValue":o[0]||(o[0]=t=>a.company_b_name=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0",clearable:"",disabled:d.isDisabled,style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(i,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:l(()=>[e(s,{disabled:d.isDisabled,modelValue:a.company_b_code,"onUpdate:modelValue":o[1]||(o[1]=t=>a.company_b_code=t),placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),e(n,{span:24,class:"el-card pt-6"},{default:l(()=>[j,e(_,null,{default:l(()=>[r("div",K,[r("div",S,[e(_,null,{default:l(()=>[e(n,{span:8},{default:l(()=>[e(i,{label:"\u59D3\u540D",prop:"master_name"},{default:l(()=>[e(s,{disabled:d.isDisabled,modelValue:a.company_b_user,"onUpdate:modelValue":o[2]||(o[2]=t=>a.company_b_user=t),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(i,{label:"\u624B\u673A",prop:"master_phone"},{default:l(()=>[e(s,{disabled:d.isDisabled,modelValue:a.company_b_phone,"onUpdate:modelValue":o[3]||(o[3]=t=>a.company_b_phone=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(n,{span:8},{default:l(()=>[e(i,{label:"\u90AE\u7BB1"},{default:l(()=>[e(s,{disabled:d.isDisabled,modelValue:a.company_b_email,"onUpdate:modelValue":o[4]||(o[4]=t=>a.company_b_email=t),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})])])]),_:1})]),_:1}),e(n,{span:24,class:"el-card pt-6"},{default:l(()=>[T,(p(!0),c(q,null,F(a.cars_info,(t,G)=>(p(),b(_,null,{default:l(()=>[e(n,{span:4},{default:l(()=>[e(i,{"label-width":"120px",label:"\u8F66\u724C\u53F7"},{default:l(()=>[e(s,{modelValue:t.license,"onUpdate:modelValue":m=>t.license=m,placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),e(n,{span:6},{default:l(()=>[e(i,{"label-width":"120px",label:"\u4F7F\u7528\u516C\u53F8"},{default:l(()=>[e(s,{modelValue:a.company_b_name,"onUpdate:modelValue":o[5]||(o[5]=m=>a.company_b_name=m),placeholder:"\u8BF7\u8F93\u5165\u4F7F\u7528\u516C\u53F8",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(i,{"label-width":"120px",label:"\u7B7E\u7EA6\u65F6\u95F4"},{default:l(()=>[e(s,{modelValue:a.update_time,"onUpdate:modelValue":o[6]||(o[6]=m=>a.update_time=m),placeholder:"\u8BF7\u8F93\u5165\u7B7E\u7EA6\u65F6\u95F4",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:2},1024))),256))]),_:1})]),_:1},8,["model","rules"]),a.status==1?(p(),b(w,{key:0,type:"primary",disabled:d.isDisabled,size:"medium",onClick:V},{default:l(()=>[$]),_:1},8,["disabled"])):f("",!0),a.file?(p(),c("span",{key:1,onClick:y,style:{color:"blue",cursor:"pointer"}},"\u67E5\u770B\u5408\u540C")):f("",!0)])}}};export{ve as default};