import{a0 as A,a1 as N,x as U,y as P,b as I,M as L,t as j,N as z,g as O}from"./element-plus.a63a26dd.js";import{r as E}from"./index.d7fb2d76.js";import{d as w,r as _,Z as b,o as R,c as q,U as e,L as o,u,j as v,R as h,S as d,a as M}from"./@vue.18505fe0.js";function Z(r){return E.get({url:"/store_branch_product_attr_value/storebranchproductattrvalue/lists",params:r})}function $(r){return E.post({url:"/store_branch_product_attr_value/storebranchproductattrvalue/status",params:r})}const G={class:"edit-popup"},H={style:{"white-space":"pre"}},J=w({name:"storeProductDETAILS"}),Y=w({...J,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(r,{expose:C,emit:K}){const m=_([]),c=_(!1),p=_("first"),n=b({id:"",image:"",store_name:"",bar_code:"",cate_id:"",cate_name:"",price:"",unit:"",unit_name:"",stock:"",cost:"",purchase:"",rose:"0",manufacturer_information:""}),B=async a=>{for(const t in n)a[t]!=null&&a[t]!=null&&(n[t]=a[t]);Z({product_id:a.product_id,store_id:a.store_id}).then(t=>{m.value=t.lists})},V=a=>{$({id:a.id,status:a.status})},F=()=>{c.value=!0};return b({product_id:""}),C({open:F,setFormData:B}),(a,t)=>{const i=A,g=I,D=N,s=L,x=j,k=z,S=U,y=P,T=O;return R(),q("div",G,[e(T,{title:"\u5546\u54C1\u8BE6\u60C5",size:1200,modelValue:u(c),"onUpdate:modelValue":t[1]||(t[1]=l=>v(c)?c.value=l:null)},{default:o(()=>[e(y,{modelValue:u(p),"onUpdate:modelValue":t[0]||(t[0]=l=>v(p)?p.value=l:null),class:"demo-tabs"},{default:o(()=>[e(S,{label:"\u57FA\u7840\u4FE1\u606F",name:"first"},{default:o(()=>[e(D,{class:"margin-top",column:2,border:""},{default:o(()=>[e(i,{label:"\u5546\u54C1\u540D\u79F0"},{default:o(()=>[h(d(u(n).store_name),1)]),_:1}),e(i,{label:"\u5546\u54C1\u5206\u7C7B"},{default:o(()=>[h(d(u(n).cate_name),1)]),_:1}),e(i,{label:"\u5546\u54C1\u56FE\u7247",span:2},{default:o(()=>[e(g,{src:u(n).image,class:"w-20 h-20","preview-teleported":!0},null,8,["src"])]),_:1}),e(i,{label:"\u5382\u5BB6\u5907\u6CE8",span:2},{default:o(()=>[M("div",H,d(u(n).manufacturer_information),1)]),_:1})]),_:1}),e(k,{data:u(m),border:"",class:"mt-4"},{default:o(()=>[e(s,{label:"\u89C4\u683C\u540D\u79F0",prop:"sku_name","min-width":"150"}),e(s,{label:"\u5355\u4F4D",prop:"unit_name"}),e(s,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(s,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(s,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u9500\u91CF",prop:"sales","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(s,{label:"\u6761\u7801",prop:"bar_code","show-overflow-tooltip":""}),e(s,{label:"\u72B6\u6001","show-overflow-tooltip":""},{default:o(({row:l})=>[e(x,{size:"large",onChange:f=>V(l),modelValue:l.status,"onUpdate:modelValue":f=>l.status=f,"active-value":1,"inactive-value":0,"active-text":"\u4E0A\u67B6","inactive-text":"\u4E0B\u67B6","inline-prompt":""},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{Y as _};
