2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{B as U,C as E,Z as B,_ as R,D as x,w as F}from"./element-plus.b64c0a90.js";import{a as I,u as N}from"./vue-router.9f65afb1.js";import{f as v}from"./index.f190d0dd.js";import{l as S}from"./contract.51a4c60e.js";import{$ as q,r as z,o as r,c as w,U as e,L as l,a as u,T as L,a7 as T,K as c,R as V,Q as h,S as j}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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.40d5feba.js";const A={class:"edit-popup"},K=u("div",{class:"tit"},"\u516C\u53F8\u4FE1\u606F",-1),M=u("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),Q={style:{display:"flex","justify-content":"left"}},Z={class:"right"},$=u("div",{class:"tit"},"\u79DF\u8D41\u4FE1\u606F",-1),Re={__name:"detail",setup(G){I();const b=N(),a=q({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:""}),m=z(0);S({id:b.query.id}).then(d=>{for(let t in a)a[t]=d[t]});const k=()=>{window.open(a.contract_url,"_blank")},f=()=>{setInterval(()=>{m.value--,m.value<=0&&clearInterval(f)},1e3)},g=()=>{sendContract({id:b.query.id}).then(d=>{a.status=2,v.msgSuccess("\u53D1\u9001\u6210\u529F"),m.value=10,f()})},C=()=>{sendMsg({id:b.query.id}).then(d=>{v.msgSuccess("\u53D1\u9001\u6210\u529F"),m.value=10,f()})};return(d,t)=>{const n=U,i=E,s=B,_=R,D=x,y=F;return r(),w("div",A,[e(D,{ref:"formRef",model:a,"label-width":"90px",rules:d.formRules,disabled:!0},{default:l(()=>[e(s,{span:24,class:"el-card pt-6"},{default:l(()=>[K,e(_,null,{default:l(()=>[e(s,{span:8},{default:l(()=>[e(i,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:l(()=>[e(n,{modelValue:a.company_b_name,"onUpdate:modelValue":t[0]||(t[0]=o=>a.company_b_name=o),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:l(()=>[e(i,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:l(()=>[e(n,{disabled:d.isDisabled,modelValue:a.company_b_code,"onUpdate:modelValue":t[1]||(t[1]=o=>a.company_b_code=o),placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),e(s,{span:24,class:"el-card pt-6"},{default:l(()=>[M,e(_,null,{default:l(()=>[u("div",Q,[u("div",Z,[e(_,null,{default:l(()=>[e(s,{span:8},{default:l(()=>[e(i,{label:"\u59D3\u540D",prop:"master_name"},{default:l(()=>[e(n,{disabled:d.isDisabled,modelValue:a.company_b_user,"onUpdate:modelValue":t[2]||(t[2]=o=>a.company_b_user=o),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:l(()=>[e(i,{label:"\u624B\u673A",prop:"master_phone"},{default:l(()=>[e(n,{disabled:d.isDisabled,modelValue:a.company_b_phone,"onUpdate:modelValue":t[3]||(t[3]=o=>a.company_b_phone=o),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:l(()=>[e(i,{label:"\u90AE\u7BB1"},{default:l(()=>[e(n,{disabled:d.isDisabled,modelValue:a.company_b_email,"onUpdate:modelValue":t[4]||(t[4]=o=>a.company_b_email=o),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})])])]),_:1})]),_:1}),e(s,{span:24,class:"el-card pt-6"},{default:l(()=>[$,(r(!0),w(L,null,T(a.cars_info,(o,H)=>(r(),c(_,null,{default:l(()=>[e(s,{span:4},{default:l(()=>[e(i,{"label-width":"120px",label:"\u8F66\u724C\u53F7"},{default:l(()=>[e(n,{modelValue:o.license,"onUpdate:modelValue":p=>o.license=p,placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),e(s,{span:6},{default:l(()=>[e(i,{"label-width":"120px",label:"\u4F7F\u7528\u516C\u53F8"},{default:l(()=>[e(n,{modelValue:a.company_b_name,"onUpdate:modelValue":t[5]||(t[5]=p=>a.company_b_name=p),placeholder:"\u8BF7\u8F93\u5165\u4F7F\u7528\u516C\u53F8",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{"label-width":"120px",label:"\u7B7E\u7EA6\u65F6\u95F4"},{default:l(()=>[e(n,{modelValue:a.update_time,"onUpdate:modelValue":t[6]||(t[6]=p=>a.update_time=p),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?(r(),c(y,{key:0,type:"primary",disabled:d.isDisabled,size:"medium",onClick:g},{default:l(()=>[V("\u53D1\u9001\u5408\u540C")]),_:1},8,["disabled"])):h("",!0),a.status==2?(r(),c(y,{key:1,type:"primary",disabled:m.value,size:"medium",onClick:C},{default:l(()=>[V("\u91CD\u65B0\u53D1\u9001"+j(m.value?m.value+"s":""),1)]),_:1},8,["disabled"])):h("",!0),a.file?(r(),c(y,{key:2,type:"primary",onClick:k},{default:l(()=>[V("\u67E5\u770B\u5408\u540C")]),_:1})):h("",!0)])}}};export{Re as default};
|