import{M as x,b as y,N as B,g as D}from"./element-plus.a63a26dd.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as k}from"./usePaging.6a6670f9.js";import{i as N}from"./workbench.4b711c97.js";import{d as w,r as m,Z as L,o as _,c,U as e,L as n,a as d,u as a,j as f,Q as T}from"./@vue.18505fe0.js";const U={class:"edit-popup"},j={key:0,class:"flex mt-4 justify-end"},I=w({name:"storeProductDETAILS"}),$=w({...I,emits:["success","close"],setup(q,{expose:h,emit:z}){const u=m(!1),v=m(1),r=L({product_id:"",type:1}),g=async(i,t)=>{r.product_id=i.id,r.type=t,v.value=t,p()},E=()=>{u.value=!0},{pager:l,getLists:p,resetParams:A,resetPage:M}=k({fetchFun:N,params:r});return h({open:E,getDetail:g}),(i,t)=>{const o=x,b=y,C=B,V=P,F=D;return _(),c("div",U,[e(F,{title:"\u7ED3\u7B97\u8BE6\u60C5",size:1e3,modelValue:a(u),"onUpdate:modelValue":t[1]||(t[1]=s=>f(u)?u.value=s:null)},{default:n(()=>[d("div",null,[d("div",null,[e(C,{data:a(l).lists},{default:n(()=>[e(o,{label:"id",prop:"id","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:n(({row:s})=>[e(b,{style:{width:"50px",height:"50px"},src:s.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(o,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(o,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(o,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(o,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(o,{label:"\u4EF7\u503C",prop:"total_price","show-overflow-tooltip":""})]),_:1},8,["data"])]),a(l).lists.length<a(l).count?(_(),c("div",j,[e(V,{modelValue:a(l),"onUpdate:modelValue":t[0]||(t[0]=s=>f(l)?l.value=s:null),onChange:a(p)},null,8,["modelValue","onChange"])])):T("",!0)])]),_:1},8,["modelValue"])])}}});export{$ as _};
