import{$,a0 as I,x as j,y as A,D as G,F as q,w as J,G as M,J as O,M as Q,b as S,N as W,O as z}from"./element-plus.ab0703f2.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as K}from"./usePaging.fff444fa.js";import{a as X}from"./goodsList.34b32919.js";import{_ as Y}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.f2fa4172.js";import{a as Z}from"./index.ae42b2c0.js";import{d as F,s as oo,r as w,$ as E,o as i,c as eo,W as o,Q as e,u as n,U as v,R as to,P as C,a as h,j as lo,T as ao}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.2a3b95e2.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const so={class:"mt-4"},no={class:"flex mt-4 justify-end"},ro=F({name:"manageProjectLists"}),zo=F({...ro,setup(uo){const g=oo(),_=w(!1),m=w("all"),B=D=>{m.value=="all"?s.status="":s.status=m.value,p()},s=E({status:"",store_name:"",cate_id:""}),{pager:r,getLists:p,resetParams:V,resetPage:k}=K({fetchFun:X,params:s});return Z().userInfo.store_id,E([]),p(),(D,l)=>{const x=G,c=q,d=$,f=J,y=I,P=M,b=O,u=j,T=A,t=Q,N=S,R=W,L=H,U=z;return i(),eo("div",null,[o(b,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(P,{class:"mb-[-16px]",model:s,"label-width":"80px"},{default:e(()=>[o(y,null,{default:e(()=>[o(d,{span:6},{default:e(()=>[o(c,{label:"\u5546\u54C1\u641C\u7D22"},{default:e(()=>[o(x,{modelValue:s.store_name,"onUpdate:modelValue":l[0]||(l[0]=a=>s.store_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:6},{default:e(()=>[o(c,null,{default:e(()=>[o(f,{type:"primary",onClick:n(k)},{default:e(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:n(V)},{default:e(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),to((i(),C(b,{class:"!border-none",shadow:"never"},{default:e(()=>[o(T,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=a=>m.value=a),class:"demo-tabs",onTabChange:B},{default:e(()=>[o(u,{label:"\u5168\u90E8",name:"all"}),o(u,{label:"\u4E0A\u67B6\u4E2D",name:"1"}),o(u,{label:"\u4E0B\u67B6\u4E2D",name:"2"}),o(u,{label:"\u5DF2\u552E\u7F44",name:"3"}),o(u,{label:"\u5E93\u5B58\u9884\u8B66",name:"4"})]),_:1},8,["modelValue"]),h("div",so,[o(R,{data:n(r).lists},{default:e(()=>[o(t,{label:"\u5546\u54C1id",prop:"id","show-overflow-tooltip":""}),o(t,{label:"\u5546\u54C1\u56FE","show-overflow-tooltip":""},{default:e(({row:a})=>[o(N,{style:{width:"50px",height:"50px"},src:a.image},null,8,["src"])]),_:1}),o(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),o(t,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),o(t,{label:"\u89C4\u683C",prop:"store_info","show-overflow-tooltip":""}),o(t,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),o(t,{label:"\u4F1A\u5458\u4EF7",prop:"vip_price","show-overflow-tooltip":""}),o(t,{label:"\u7EC8\u7AEF\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),o(t,{label:"\u9500\u91CF",prop:"sales","show-overflow-tooltip":""}),o(t,{label:"\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""})]),_:1},8,["data"])]),h("div",no,[o(L,{modelValue:n(r),"onUpdate:modelValue":l[2]||(l[2]=a=>lo(r)?r.value=a:null),onChange:n(p)},null,8,["modelValue","onChange"])])]),_:1})),[[U,n(r).loading]]),_.value?(i(),C(Y,{key:0,ref_key:"editRef",ref:g,onClose:l[3]||(l[3]=a=>_.value=!1)},null,512)):ao("",!0)])}}});export{zo as default};