import{C as D,D as x,F as y}from"./element-plus.3a5be7a7.js";import{P as F}from"./index.af8521d0.js";import{a as B}from"./store_product.b40ea9b2.js";import"./lodash.60201f64.js";import{d as p,s as u,r as C,Z as E,o as h,c as k,U as a,L as s,u as n}from"./@vue.18505fe0.js";const w={class:"edit-popup"},R=p({name:"storeProductDETAILS"}),U=p({...R,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(b,{expose:c,emit:v}){const m=u(),r=u();C("add");const o=E({id:"",store_name:""}),l=async e=>{for(const t in o)e[t]!=null&&e[t]!=null&&(o[t]=e[t])};return c({open:()=>{var e;(e=r.value)==null||e.open()},setFormData:l,getDetail:async e=>{const t=await B({id:e.id});l(t)}}),(e,t)=>{const i=D,f=x,_=y;return h(),k("div",w,[a(F,{ref_key:"popupRef",ref:r,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:s(()=>[a(_,{ref_key:"formRef",ref:m,model:n(o),"label-width":"90px"},{default:s(()=>[a(f,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:s(()=>[a(i,{modelValue:n(o).store_name,"onUpdate:modelValue":t[0]||(t[0]=d=>n(o).store_name=d),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{U as _};
