import{M as x,b as D,w as F,N as P,g as N}from"./element-plus.a63a26dd.js";import{_ as L}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as T}from"./usePaging.6a6670f9.js";import{c as U,d as j}from"./warehouse_product.72318036.js";import{d as w,r as I,Z as R,o as p,c as _,U as e,L as u,a as d,u as l,K as f,R as S,Q as m,j as h}from"./@vue.18505fe0.js";const W={class:"edit-popup"},$={key:0,class:"flex mt-4 justify-end"},q=w({name:"storeProductDETAILS"}),X=w({...q,emits:["success","close"],setup(z,{expose:g,emit:A}){const n=I(!1),r=R({supplier_id:"",is_pay:1}),v=async(i,a)=>{r.supplier_id=i.id,r.is_pay=a,c()},E=()=>{n.value=!0},b=i=>{U({id:i.id}).then(a=>{c()})},{pager:s,getLists:c,resetParams:K,resetPage:M}=T({fetchFun:j,params:r});return g({open:E,getDetail:v}),(i,a)=>{const o=x,C=D,y=F,B=P,V=L,k=N;return p(),_("div",W,[e(k,{title:"\u7ED3\u7B97\u8BE6\u60C5",size:1e3,modelValue:l(n),"onUpdate:modelValue":a[1]||(a[1]=t=>h(n)?n.value=t:null)},{default:u(()=>[d("div",null,[d("div",null,[e(B,{data:l(s).lists},{default:u(()=>[e(o,{label:"id",prop:"id","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:u(({row:t})=>[e(C,{style:{width:"50px",height:"50px"},src:t.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":""}),l(r).is_pay==0?(p(),f(o,{key:0,label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:t})=>[t.is_pay==0?(p(),f(y,{key:0,type:"primary",link:"",onClick:O=>b(t)},{default:u(()=>[S(" \u7ED3\u7B97 ")]),_:2},1032,["onClick"])):m("",!0)]),_:1})):m("",!0)]),_:1},8,["data"])]),l(s).lists.length<l(s).count?(p(),_("div",$,[e(V,{modelValue:l(s),"onUpdate:modelValue":a[0]||(a[0]=t=>h(s)?s.value=t:null),onChange:l(c)},null,8,["modelValue","onChange"])])):m("",!0)])]),_:1},8,["modelValue"])])}}});export{X as _};
