import{y as R,A as j,B as A,C as V,D as N}from"./element-plus.517d4382.js";import{P}from"./index.b17dae19.js";import{a as I}from"./custom.99349afc.js";import{d as E,s as F,a0 as m,o as r,c as p,V as e,M as t,T as s,U as n,W as S,a8 as T,a as D}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as $}from"./index.8b1962e9.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const L={class:"detail-popup"},M={key:0},U={style:{"margin-left":"5px",display:"block"}},W=["href"],q=["onClick"],z={key:1},G=E({name:"customdetail"}),H=E({...G,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(J,{expose:b,emit:y}){const h=F(),_=F(),c=m([]);m({provinceOptions:[],cityOptions:[],areaOptions:[]});const u=m({}),d=async l=>{if(Object.assign(u,l),l.annex&&l.annex.length>0){const i=l.annex.map((a,o)=>({name:`\u6587\u4EF6${o+1}`,uri:a}));Object.assign(c,i)}},C=async l=>{const i=await I({id:l.id});d(i)},x=async()=>{var l;(l=_.value)==null||l.close()},g=()=>{var l;console.log("1111111"),(l=_.value)==null||l.open()},v=()=>{y("close")};return b({open:g,setFormData:d,getDetail:C}),(l,i)=>{const a=R,o=j,k=A,B=V,w=N;return r(),p("div",L,[e(P,{ref_key:"popupRef",ref:_,title:"\u4FDD\u9669\u7BA1\u7406\u8BE6\u60C5",async:!0,width:"80%",onConfirm:x,onClose:v},{default:t(()=>[e(w,{ref_key:"formRef",ref:h,model:u,"label-width":"120px"},{default:t(()=>[e(B,{class:"mb-2"},{default:t(()=>[e(k,null,{default:t(()=>[e(o,{span:12},{default:t(()=>[e(a,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[s(n(u.project_name),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u9879\u76EE\u7F16\u53F7"},{default:t(()=>[s(n(u.project_code),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u59D3\u540D"},{default:t(()=>[s(n(u.person_name),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u8EAB\u4EFD\u8BC1\u53F7"},{default:t(()=>[s(n(u.person_idcard),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u6295\u4FDD\u65E5\u671F"},{default:t(()=>[s(n(u.insurance_date),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u5230\u671F\u65E5\u671F"},{default:t(()=>[s(n(u.due_date),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u4FDD\u8D39\uFF08\u5143\uFF09"},{default:t(()=>[s(n(u.insurance),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u6295\u4FDD\u91D1\u989D\uFF08\u4E07\u5143\uFF09"},{default:t(()=>[s(n(u.insured_amount),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u4FDD\u9669\u516C\u53F8"},{default:t(()=>[s(n(u.insurance_company),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u4FDD\u5355\u660E\u7EC6"},{default:t(()=>[s(n(u.insurance_detail),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u53D1\u7968\u7F16\u53F7"},{default:t(()=>[s(n(u.invoice_no),1)]),_:1})]),_:1}),e(o,{span:12},{default:t(()=>[e(a,{label:"\u7ECF\u529E\u4EBA"},{default:t(()=>[s(n(u.handler),1)]),_:1})]),_:1}),e(o,{span:24},{default:t(()=>[e(a,{label:"\u5408\u540C\u9644\u4EF6"},{default:t(()=>[c.length>0?(r(),p("div",M,[(r(!0),p(S,null,T(c,(f,O)=>(r(),p("div",U,[D("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:f.uri,target:"_blank"},n(f.name),9,W),D("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:K=>l.delFileFn(O)},"x",8,q)]))),256))])):(r(),p("div",z,"\u6682\u65E0\u9644\u4EF6"))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const je=$(H,[["__scopeId","data-v-7bf5ca2e"]]);export{je as default};