2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{B as C,C as E,Z as B,_ as R,D as x,w as F}from"./element-plus.0e78cb27.js";import{a as I,u as N}from"./vue-router.12d45bc3.js";import{c as S,s as q,a as z}from"./contract.24d3ae82.js";import{f as v}from"./index.e36afc36.js";import{$ as L,r as T,o as r,c as w,U as e,L as l,K as c,R as y,a as u,V as j,a7 as A,S as V,T as K}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.d871e3e1.js";import"./axios.263e335e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.e8c2b926.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.49c13ae5.js";import"./color.6f36a052.js";import"./clone.0bac550d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.762f2b8b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f7d60be2.js";import"./vue-clipboard3.536bdb56.js";import"./clipboard.cadf3e40.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const M={class:"edit-popup"},Z=u("div",{class:"tit"},"\u516C\u53F8\u4FE1\u606F",-1),$=u("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),G={style:{display:"flex","justify-content":"left"}},H={class:"right"},J=u("div",{class:"tit"},"\u79DF\u8D41\u4FE1\u606F",-1),O=V("\u53D1\u9001\u5408\u540C"),P=V("\u67E5\u770B\u5408\u540C"),Ie={__name:"detail",setup(Q){I();const b=N(),a=L({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=T(0);S({id:b.query.id}).then(o=>{for(let t in a)a[t]=o[t];console.log(a)});const k=()=>{window.open(a.contract_url,"_blank")},h=()=>{const o=setInterval(()=>{m.value--,m.value<=0&&clearInterval(o)},1e3)},g=()=>{q({id:b.query.id}).then(o=>{a.status=2,v.msgSuccess("\u53D1\u9001\u6210\u529F"),m.value=10,h()})},D=()=>{z({id:b.query.id}).then(o=>{v.msgSuccess("\u53D1\u9001\u6210\u529F"),m.value=10,h()})};return(o,t)=>{const n=C,i=E,d=B,_=R,U=x,f=F;return r(),w("div",M,[e(U,{ref:"formRef",model:a,"label-width":"90px",rules:o.formRules,disabled:!0},{default:l(()=>[e(d,{span:24,class:"el-card pt-6"},{default:l(()=>[Z,e(_,null,{default:l(()=>[e(d,{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]=s=>a.company_b_name=s),placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0",clearable:"",disabled:o.isDisabled,style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(d,{span:8},{default:l(()=>[e(i,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:l(()=>[e(n,{disabled:o.isDisabled,modelValue:a.company_b_code,"onUpdate:modelValue":t[1]||(t[1]=s=>a.company_b_code=s),placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),e(d,{span:24,class:"el-card pt-6"},{default:l(()=>[$,e(_,null,{default:l(()=>[u("div",G,[u("div",H,[e(_,null,{default:l(()=>[e(d,{span:8},{default:l(()=>[e(i,{label:"\u59D3\u540D",prop:"master_name"},{default:l(()=>[e(n,{disabled:o.isDisabled,modelValue:a.company_b_user,"onUpdate:modelValue":t[2]||(t[2]=s=>a.company_b_user=s),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(d,{span:8},{default:l(()=>[e(i,{label:"\u624B\u673A",prop:"master_phone"},{default:l(()=>[e(n,{disabled:o.isDisabled,modelValue:a.company_b_phone,"onUpdate:modelValue":t[3]||(t[3]=s=>a.company_b_phone=s),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(d,{span:8},{default:l(()=>[e(i,{label:"\u90AE\u7BB1"},{default:l(()=>[e(n,{disabled:o.isDisabled,modelValue:a.company_b_email,"onUpdate:modelValue":t[4]||(t[4]=s=>a.company_b_email=s),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})])])]),_:1})]),_:1}),e(d,{span:24,class:"el-card pt-6"},{default:l(()=>[J,(r(!0),w(j,null,A(a.cars_info,(s,W)=>(r(),c(_,null,{default:l(()=>[e(d,{span:4},{default:l(()=>[e(i,{"label-width":"120px",label:"\u8F66\u724C\u53F7"},{default:l(()=>[e(n,{modelValue:s.license,"onUpdate:modelValue":p=>s.license=p,placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),e(d,{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(d,{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(f,{key:0,type:"primary",disabled:o.isDisabled,size:"medium",onClick:g},{default:l(()=>[O]),_:1},8,["disabled"])):y("",!0),a.status==2?(r(),c(f,{key:1,type:"primary",disabled:m.value,size:"medium",onClick:D},{default:l(()=>[V("\u91CD\u65B0\u53D1\u9001"+K(m.value?m.value+"s":""),1)]),_:1},8,["disabled"])):y("",!0),a.contract_url?(r(),c(f,{key:2,type:"primary",onClick:k},{default:l(()=>[P]),_:1})):y("",!0)])}}};export{Ie as default};
|