import{P as y}from"./index.e64ff1d1.js";import"./index.80696382.js";import{d as l,s as p,r as v,b as q,a0 as x,o as k,c as w,W as c,O as C,a as V,U as g,u as a}from"./@vue.a7a54728.js";import"./lodash.fc1b942f.js";import{Q as D}from"./vue-qrcode.2793d2de.js";const b={class:"qrcode-popup"},j=l({name:"HeadQrcode"}),S=l({...j,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(B,{expose:i,emit:m}){const s=m;p();const n=p(),r=v("qrcode"),u=q(()=>(r.value=="qrcode","")),e=x({id:"",qrValue:"",property_name:"",village_name:"",head_name:""}),d=async t=>{for(const o in e)t[o]!=null&&t[o]!=null&&(e[o]=t[o]);e.qrValue="https://weixiu.kyjlkj.com/agent/company_h5/index.html?id="+e.id+"&property_name="+e.property_name},_=(t="qrcode")=>{var o;r.value=t,(o=n.value)==null||o.open()},f=()=>{s("close")},h=async()=>{s("close")};return i({open:_,setFormData:d}),(t,o)=>(k(),w("div",b,[c(y,{ref_key:"popupRef",ref:n,title:a(u),width:"550px",onClose:f,onConfirm:h},{default:C(()=>[V("h4",null,g(a(e).property_name+a(e).village_name+"-"+a(e).head_name),1),c(a(D),{value:a(e).qrValue,options:{width:256}},null,8,["value"])]),_:1},8,["title"])]))}});export{S as _};
