${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),F=D(JSON.parse(JSON.stringify(C))),c=f([]),m=D(JSON.parse(JSON.stringify(C))),r=f([]),h=D(JSON.parse(JSON.stringify(C))),U=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],P=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),E=()=>{let n="";d.value[0]&&d.value[1]&&(n=J(d.value[0]).format("YYYY/MM/DD")+"-"+J(d.value[1]).format("YYYY/MM/DD")),nt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},F.series[0].data=e.left.series[1].value,F.series[1].data=e.left.series[0].value,c.value=e.right.today.series,r.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,h.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),h.series[0].name=e.right.month[0].name,h.series[0].data=Object.values(e.right.month[0].value).map(o=>o),h.series[1].name=e.right.month[1].name,h.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),lt({date:n}).then(e=>{u.xAxis.data=[],u.series=[],console.log(e),u.legend.data=Object.values(e.series).map(o=>o.name),u.xAxis.data=e.x,u.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate,desc:o.desc,cash_title:o.cash_title}))})};return it(()=>{E()}),(n,e)=>{const o=tt,W=X,Q=et,Z=at,q=ct("Warning"),H=st,K=ot;return b(),w("div",yt,[i(o,{shadow:"never",class:"!border-none"},{default:y(()=>{var l,x,B,k,S,O,L,N,R,M,T,j,I,Y,V,z;return[t("div",gt,[t("div",vt,[Dt,t("div",null,[bt,t("span",wt,a(s(A).money||"0.00"),1)]),i(s(v),{style:{height:"200px"},option:s(F),autoresize:!0},null,8,["option"])]),Ct,t("div",Ft,[t("div",Et,[t("div",At,[_(a((l=s(c)[0])==null?void 0:l.name),1),t("span",Bt,a((x=s(c)[0])==null?void 0:x.now_money),1)]),t("div",kt,[t("span",St,"\u6628\u65E5: "+a((B=s(c)[0])==null?void 0:B.last_money),1),Ot,t("span",Lt,a((k=s(c)[0])==null?void 0:k.rate)+"%",1)]),i(s(v),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Nt,[_(a((S=s(r)[0])==null?void 0:S.name),1),t("span",Rt,a((O=s(r)[0])==null?void 0:O.now_money),1)]),t("div",Mt,[t("span",Tt,"\u4E0A\u6708: "+a((L=s(r)[0])==null?void 0:L.last_money),1),jt,t("span",It,a((N=s(r)[0])==null?void 0:N.rate)+"%",1)])]),t("div",Yt,[t("div",Vt,[_(a((R=s(c)[1])==null?void 0:R.name),1),t("span",zt,a((M=s(c)[1])==null?void 0:M.now_money),1)]),t("div",Jt,[t("span",$t,"\u6628\u65E5: "+a((T=s(c)[1])==null?void 0:T.last_money),1),Gt,t("span",Ut,a((j=s(c)[1])==null?void 0:j.rate)+"%",1)]),i(s(v),{style:{height:"160px","margin-bottom":"20px"},option:s(h),autoresize:!0},null,8,["option"]),t("div",Pt,[_(a((I=s(r)[1])==null?void 0:I.name),1),t("span",Wt,a((Y=s(r)[1])==null?void 0:Y.now_money),1)]),t("div",Qt,[t("span",Zt,"\u4E0A\u6708: "+a((V=s(r)[1])==null?void 0:V.last_money),1),qt,t("span",Ht,a((z=s(r)[1])==null?void 0:z.rate)+"%",1)])])])])]}),_:1}),i(o,{shadow:"never",class:"mt-4 !border-none"},{default:y(()=>[t("div",Kt,[Xt,t("div",te,[ee,i(W,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=l=>rt(d)?d.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:E},null,8,["modelValue"]),i(Q,{type:"primary",class:"ml-4",onClick:E},{default:y(()=>[_("\u67E5\u8BE2")]),_:1})])]),t("div",se,[(b(!0),w(pt,null,ut(s(u).series,(l,x)=>(b(),w("div",{class:"w-1/5 flex mb-6",key:x},[t("div",oe,[t("div",{class:"rounded-full p-2",style:dt({"background-color":U[x%4]})},[i(Z,{iconName:s(P)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",ae,[_(a(l.name)+" ",1),i(K,{class:"box-item",effect:"dark",content:l.desc,placement:"top-start"},{default:y(()=>[i(H,null,{default:y(()=>[i(q)]),_:1})]),_:2},1032,["content"])]),t("div",null,[t("span",ne,a(l.money),1),l.money>0?(b(),w("span",le,a(l.cash_title),1)):_t("",!0)]),t("div",ie,[_(" \u73AF\u6BD4\u589E\u957F: "),t("span",{class:mt(l.rate>0?"text-success":"text-danger")},a(l.rate)+"%",3)])])]))),128))]),t("div",null,[i(s(v),{style:{height:"400px"},option:s(u),autoresize:!0},null,8,["option"])])]),_:1})])}}});const Pe=ft(re,[["__scopeId","data-v-c1856ad7"]]);export{Pe as default}; +import{U as X,L as tt,w as et,c as st,a as ot}from"./element-plus.a63a26dd.js";import{_ as at}from"./index.4d4cbfac.js";import{j as nt,k as lt}from"./workbench.1c4b1ac8.js";import{h as J}from"./moment.40bc58bf.js";import{B as v}from"./vue-echarts.01ad0ec2.js";import{d as $,Z as D,r as f,i as it,af as ct,o as b,c as w,U as i,L as y,a as t,S as a,u as s,R as _,j as rt,T as pt,a9 as ut,a0 as dt,Q as _t,O as mt,bl as ht,bk as xt}from"./@vue.18505fe0.js";import{d as ft}from"./index.79885fb7.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const p=g=>(ht("data-v-c1856ad7"),g=g(),xt(),g),yt={class:"workbench"},gt={class:"flex"},vt={class:"flex-1 h-[270px]"},Dt=p(()=>t("div",{class:"text-2xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1)),bt=p(()=>t("span",{class:"text-[12px]"},"\xA5",-1)),wt={class:"text-2xl"},Ct=p(()=>t("div",{class:"w-[1px] bg-[#ccc] mr-4"},null,-1)),Ft={class:"flex-1 flex"},Et={class:"flex-1"},At={class:"text-1xl"},Bt={class:"ml-2 text-[18px]"},kt={class:"text-[12px]"},St={class:"text-info"},Ot=p(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),Lt={class:"text-success"},Nt={class:"text-1xl"},Rt={class:"ml-2 text-[18px]"},Mt={class:"text-[12px]"},Tt={class:"text-info"},jt=p(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),It={class:"text-success"},Yt={class:"flex-1"},Vt={class:"text-1xl"},zt={class:"ml-2 text-[18px]"},Jt={class:"text-[12px]"},$t={class:"text-info"},Gt=p(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),Ut={class:"text-success"},Pt={class:"text-1xl"},Wt={class:"ml-2 text-[18px]"},Qt={class:"text-[12px]"},Zt={class:"text-info"},qt=p(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Ht={class:"text-success"},Kt={class:"mb-6 flex justify-between items-center"},Xt=p(()=>t("span",{class:"text-2xl"},"\u4EA4\u6613\u6982\u51B5",-1)),te={class:"flex items-center text-sm"},ee=p(()=>t("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1)),se={class:"flex flex-wrap"},oe={class:"mr-2"},ae={class:"text-info"},ne={class:"text-6xl mr-2"},le={key:0},ie={class:"text-info"},ce=$({name:"statistics_user"}),re=$({...ce,setup(g){const G=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,n]}},{text:"\u672C\u6708",value:()=>{const n=new Date,e=new Date;return e.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),[e,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,n]}}],u=D({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),C={tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:n=>{let e=`${n[0].name}\u70B9
`;return n.forEach(o=>{e+=`${o.seriesName}: ${o.value}
`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),F=D(JSON.parse(JSON.stringify(C))),c=f([]),m=D(JSON.parse(JSON.stringify(C))),r=f([]),h=D(JSON.parse(JSON.stringify(C))),U=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],P=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),E=()=>{let n="";d.value[0]&&d.value[1]&&(n=J(d.value[0]).format("YYYY/MM/DD")+"-"+J(d.value[1]).format("YYYY/MM/DD")),nt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},F.series[0].data=e.left.series[1].value,F.series[1].data=e.left.series[0].value,c.value=e.right.today.series,r.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,h.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),h.series[0].name=e.right.month[0].name,h.series[0].data=Object.values(e.right.month[0].value).map(o=>o),h.series[1].name=e.right.month[1].name,h.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),lt({date:n}).then(e=>{u.xAxis.data=[],u.series=[],console.log(e),u.legend.data=Object.values(e.series).map(o=>o.name),u.xAxis.data=e.x,u.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate,desc:o.desc,cash_title:o.cash_title}))})};return it(()=>{E()}),(n,e)=>{const o=tt,W=X,Q=et,Z=at,q=ct("Warning"),H=st,K=ot;return b(),w("div",yt,[i(o,{shadow:"never",class:"!border-none"},{default:y(()=>{var l,x,B,k,S,O,L,N,R,M,T,j,I,Y,V,z;return[t("div",gt,[t("div",vt,[Dt,t("div",null,[bt,t("span",wt,a(s(A).money||"0.00"),1)]),i(s(v),{style:{height:"200px"},option:s(F),autoresize:!0},null,8,["option"])]),Ct,t("div",Ft,[t("div",Et,[t("div",At,[_(a((l=s(c)[0])==null?void 0:l.name),1),t("span",Bt,a((x=s(c)[0])==null?void 0:x.now_money),1)]),t("div",kt,[t("span",St,"\u6628\u65E5: "+a((B=s(c)[0])==null?void 0:B.last_money),1),Ot,t("span",Lt,a((k=s(c)[0])==null?void 0:k.rate)+"%",1)]),i(s(v),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Nt,[_(a((S=s(r)[0])==null?void 0:S.name),1),t("span",Rt,a((O=s(r)[0])==null?void 0:O.now_money),1)]),t("div",Mt,[t("span",Tt,"\u4E0A\u6708: "+a((L=s(r)[0])==null?void 0:L.last_money),1),jt,t("span",It,a((N=s(r)[0])==null?void 0:N.rate)+"%",1)])]),t("div",Yt,[t("div",Vt,[_(a((R=s(c)[1])==null?void 0:R.name),1),t("span",zt,a((M=s(c)[1])==null?void 0:M.now_money),1)]),t("div",Jt,[t("span",$t,"\u6628\u65E5: "+a((T=s(c)[1])==null?void 0:T.last_money),1),Gt,t("span",Ut,a((j=s(c)[1])==null?void 0:j.rate)+"%",1)]),i(s(v),{style:{height:"160px","margin-bottom":"20px"},option:s(h),autoresize:!0},null,8,["option"]),t("div",Pt,[_(a((I=s(r)[1])==null?void 0:I.name),1),t("span",Wt,a((Y=s(r)[1])==null?void 0:Y.now_money),1)]),t("div",Qt,[t("span",Zt,"\u4E0A\u6708: "+a((V=s(r)[1])==null?void 0:V.last_money),1),qt,t("span",Ht,a((z=s(r)[1])==null?void 0:z.rate)+"%",1)])])])])]}),_:1}),i(o,{shadow:"never",class:"mt-4 !border-none"},{default:y(()=>[t("div",Kt,[Xt,t("div",te,[ee,i(W,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=l=>rt(d)?d.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:E},null,8,["modelValue"]),i(Q,{type:"primary",class:"ml-4",onClick:E},{default:y(()=>[_("\u67E5\u8BE2")]),_:1})])]),t("div",se,[(b(!0),w(pt,null,ut(s(u).series,(l,x)=>(b(),w("div",{class:"w-1/5 flex mb-6",key:x},[t("div",oe,[t("div",{class:"rounded-full p-2",style:dt({"background-color":U[x%4]})},[i(Z,{iconName:s(P)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",ae,[_(a(l.name)+" ",1),i(K,{class:"box-item",effect:"dark",content:l.desc,placement:"top-start"},{default:y(()=>[i(H,null,{default:y(()=>[i(q)]),_:1})]),_:2},1032,["content"])]),t("div",null,[t("span",ne,a(l.money),1),l.money>0?(b(),w("span",le,a(l.cash_title),1)):_t("",!0)]),t("div",ie,[_(" \u73AF\u6BD4\u589E\u957F: "),t("span",{class:mt(l.rate>0?"text-success":"text-danger")},a(l.rate)+"%",3)])])]))),128))]),t("div",null,[i(s(v),{style:{height:"400px"},option:s(u),autoresize:!0},null,8,["option"])])]),_:1})])}}});const Pe=ft(re,[["__scopeId","data-v-c1856ad7"]]);export{Pe as default}; diff --git a/build/admin/assets/index.1050911c.js b/build/admin/assets/index.a5c1d2e3.js similarity index 89% rename from build/admin/assets/index.1050911c.js rename to build/admin/assets/index.a5c1d2e3.js index 5371309fe..87cbf06a8 100644 --- a/build/admin/assets/index.1050911c.js +++ b/build/admin/assets/index.a5c1d2e3.js @@ -1 +1 @@ -import{d,b as c}from"./index.28c6cdcf.js";import{d as r,o as s,c as n,H as p,a3 as _,U as i,Q as m}from"./@vue.18505fe0.js";const u=r({props:{showClose:{type:Boolean,default:!0}},emits:["close"],setup(e,{emit:o}){return{handleClose:()=>{o("close")}}}});const f={class:"del-wrap"};function C(e,o,t,h,v,$){const a=c;return s(),n("div",f,[p(e.$slots,"default",{},void 0,!0),e.showClose?(s(),n("div",{key:0,class:"icon-close",onClick:o[0]||(o[0]=_((...l)=>e.handleClose&&e.handleClose(...l),["stop"]))},[i(a,{size:12,name:"el-icon-CloseBold"})])):m("",!0)])}const y=d(u,[["render",C],["__scopeId","data-v-acafd744"]]);export{y as _}; +import{d,b as c}from"./index.79885fb7.js";import{d as r,o as s,c as n,H as p,a3 as _,U as i,Q as m}from"./@vue.18505fe0.js";const u=r({props:{showClose:{type:Boolean,default:!0}},emits:["close"],setup(e,{emit:o}){return{handleClose:()=>{o("close")}}}});const f={class:"del-wrap"};function C(e,o,t,h,v,$){const a=c;return s(),n("div",f,[p(e.$slots,"default",{},void 0,!0),e.showClose?(s(),n("div",{key:0,class:"icon-close",onClick:o[0]||(o[0]=_((...l)=>e.handleClose&&e.handleClose(...l),["stop"]))},[i(a,{size:12,name:"el-icon-CloseBold"})])):m("",!0)])}const y=d(u,[["render",C],["__scopeId","data-v-acafd744"]]);export{y as _}; diff --git a/build/admin/assets/index.01a2bfd3.js b/build/admin/assets/index.ac1baf83.js similarity index 87% rename from build/admin/assets/index.01a2bfd3.js rename to build/admin/assets/index.ac1baf83.js index 1aa9ef7f5..00df43046 100644 --- a/build/admin/assets/index.01a2bfd3.js +++ b/build/admin/assets/index.ac1baf83.js @@ -1 +1 @@ -import{C as O,D as Q,w as Z,F as H,L as J,M as W,p as X,q as Y,r as ee,N as te,O as oe}from"./element-plus.4a7d92a3.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{e as ne,f as v,b as le}from"./index.28c6cdcf.js";import{d as $,Z as A,r as ue,af as re,ap as se,o as u,c as C,U as e,L as t,u as a,aa as P,R as s,M as i,K as d,a as b,j as ie,Q as me}from"./@vue.18505fe0.js";import{b as de,c as ce,d as pe,e as _e,s as fe}from"./code.70f7a4cb.js";import{u as Fe}from"./usePaging.6a6670f9.js";import{_ as ge}from"./data-table.vue_vue_type_script_setup_true_lang.a5928663.js";import{_ as Ce}from"./code-preview.vue_vue_type_script_setup_true_lang.e49ce5ca.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const be={class:"code-generation"},we={class:"flex"},ye={class:"mt-4"},Ee={class:"flex items-center"},he={class:"flex justify-end mt-4"},ve=$({name:"codeGenerate"}),mt=$({...ve,setup(ke){const c=A({table_name:"",table_comment:""}),p=A({show:!1,loading:!1,code:[]}),{pager:f,getLists:g,resetParams:K,resetPage:w}=Fe({fetchFun:_e,params:c}),F=ue([]),S=n=>{F.value=n.map(({id:o})=>o)},T=async n=>{await v.confirm("\u786E\u5B9A\u8981\u540C\u6B65\u8868\u7ED3\u6784\uFF1F"),await fe({id:n})},k=async n=>{await v.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:n}),g()},N=async n=>{const o=await ce({id:n});p.code=o,p.show=!0},U=n=>n.some(o=>o.generate_type==1),D=async n=>{if(U(n))return v.msgError("\u751F\u6210\u65B9\u5F0F\u4E3A\u751F\u6210\u5230\u6A21\u5757\uFF0C\u8BF7\u5728\u524D\u7AEF\u5F00\u53D1\u6A21\u5F0F\u4E0B\u4F7F\u7528\uFF0C\u8BE6\u7EC6\u53C2\u8003\u6587\u6863");const o=await pe({id:n});o.file&&window.open(o.file,"_blank")},I=(n,o)=>{switch(n){case"generate":D([o.id]);break;case"sync":T(o.id);break;case"delete":k(o.id)}};return g(),(n,o)=>{const B=O,y=Q,r=Z,L=H,V=J,E=le,_=W,M=re("router-link"),h=X,G=Y,R=ee,j=te,q=ae,m=se("perms"),z=oe;return u(),C("div",be,[e(V,{class:"!border-none",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:a(c),inline:""},{default:t(()=>[e(y,{label:"\u8868\u540D\u79F0"},{default:t(()=>[e(B,{class:"w-[280px]",modelValue:a(c).table_name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(c).table_name=l),clearable:"",onKeyup:P(a(w),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u8868\u63CF\u8FF0"},{default:t(()=>[e(B,{class:"w-[280px]",modelValue:a(c).table_comment,"onUpdate:modelValue":o[1]||(o[1]=l=>a(c).table_comment=l),clearable:"",onKeyup:P(a(w),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,null,{default:t(()=>[e(r,{type:"primary",onClick:a(w)},{default:t(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:a(K)},{default:t(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),i((u(),d(V,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[b("div",we,[i((u(),d(ge,{class:"inline-block mr-[10px]",onSuccess:a(g)},{default:t(()=>[e(r,{type:"primary"},{icon:t(()=>[e(E,{name:"el-icon-Plus"})]),default:t(()=>[s(" \u5BFC\u5165\u6570\u636E\u8868 ")]),_:1})]),_:1},8,["onSuccess"])),[[m,["tools.generator/selectTable"]]]),i((u(),d(r,{disabled:!a(F).length,onClick:o[2]||(o[2]=l=>k(a(F))),type:"danger"},{icon:t(()=>[e(E,{name:"el-icon-Delete"})]),default:t(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[m,["tools.generator/delete"]]]),i((u(),d(r,{disabled:!a(F).length,onClick:o[3]||(o[3]=l=>D(a(F)))},{default:t(()=>[s(" \u751F\u6210\u4EE3\u7801 ")]),_:1},8,["disabled"])),[[m,["tools.generator/generate"]]])]),b("div",ye,[e(j,{data:a(f).lists,size:"large",onSelectionChange:S},{default:t(()=>[e(_,{type:"selection",width:"55"}),e(_,{label:"\u8868\u540D\u79F0",prop:"table_name","min-width":"180"}),e(_,{label:"\u8868\u63CF\u8FF0",prop:"table_comment","min-width":"180"}),e(_,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(_,{label:"\u66F4\u65B0\u65F6\u95F4",prop:"update_time","min-width":"180"}),e(_,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:l})=>[b("div",Ee,[i((u(),d(r,{type:"primary",link:"",onClick:x=>N(l.id)},{default:t(()=>[s(" \u9884\u89C8 ")]),_:2},1032,["onClick"])),[[m,["tools.generator/preview"]]]),e(r,{type:"primary",link:""},{default:t(()=>[i((u(),d(M,{to:{path:a(ne)("tools.generator/edit"),query:{id:l.id}}},{default:t(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["to"])),[[m,["tools.generator/edit"]]])]),_:2},1024),i((u(),d(R,{class:"ml-2",onCommand:x=>I(x,l)},{dropdown:t(()=>[e(G,null,{default:t(()=>[i((u(),C("div",null,[e(h,{command:"generate"},{default:t(()=>[e(r,{type:"primary",link:""},{default:t(()=>[s(" \u751F\u6210\u4EE3\u7801 ")]),_:1})]),_:1})])),[[m,["tools.generator/generate"]]]),i((u(),C("div",null,[e(h,{command:"sync"},{default:t(()=>[e(r,{type:"primary",link:""},{default:t(()=>[s(" \u540C\u6B65 ")]),_:1})]),_:1})])),[[m,["tools.generator/syncColumn"]]]),i((u(),C("div",null,[e(h,{command:"delete"},{default:t(()=>[e(r,{type:"danger",link:""},{default:t(()=>[s(" \u5220\u9664 ")]),_:1})]),_:1})])),[[m,["tools.generator/delete"]]])]),_:1})]),default:t(()=>[e(r,{type:"primary",link:""},{default:t(()=>[s(" \u66F4\u591A "),e(E,{name:"el-icon-ArrowDown",size:14})]),_:1})]),_:2},1032,["onCommand"])),[[m,["tools.generator/generate","tools.generator/syncColumn","tools.generator/delete"]]])])]),_:1})]),_:1},8,["data"])]),b("div",he,[e(q,{modelValue:a(f),"onUpdate:modelValue":o[4]||(o[4]=l=>ie(f)?f.value=l:null),onChange:a(g)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(f).loading]]),a(p).show?(u(),d(Ce,{key:0,modelValue:a(p).show,"onUpdate:modelValue":o[5]||(o[5]=l=>a(p).show=l),code:a(p).code},null,8,["modelValue","code"])):me("",!0)])}}});export{mt as default}; +import{C as O,D as Q,w as Z,F as H,L as J,M as W,p as X,q as Y,r as ee,N as te,O as oe}from"./element-plus.a63a26dd.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{e as ne,f as v,b as le}from"./index.79885fb7.js";import{d as $,Z as A,r as ue,af as re,ap as se,o as u,c as C,U as e,L as t,u as a,aa as P,R as s,M as i,K as d,a as b,j as ie,Q as me}from"./@vue.18505fe0.js";import{b as de,c as ce,d as pe,e as _e,s as fe}from"./code.6493ebc9.js";import{u as Fe}from"./usePaging.6a6670f9.js";import{_ as ge}from"./data-table.vue_vue_type_script_setup_true_lang.c0d871fc.js";import{_ as Ce}from"./code-preview.vue_vue_type_script_setup_true_lang.6a467929.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const be={class:"code-generation"},we={class:"flex"},ye={class:"mt-4"},Ee={class:"flex items-center"},he={class:"flex justify-end mt-4"},ve=$({name:"codeGenerate"}),mt=$({...ve,setup(ke){const c=A({table_name:"",table_comment:""}),p=A({show:!1,loading:!1,code:[]}),{pager:f,getLists:g,resetParams:K,resetPage:w}=Fe({fetchFun:_e,params:c}),F=ue([]),S=n=>{F.value=n.map(({id:o})=>o)},T=async n=>{await v.confirm("\u786E\u5B9A\u8981\u540C\u6B65\u8868\u7ED3\u6784\uFF1F"),await fe({id:n})},k=async n=>{await v.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:n}),g()},N=async n=>{const o=await ce({id:n});p.code=o,p.show=!0},U=n=>n.some(o=>o.generate_type==1),D=async n=>{if(U(n))return v.msgError("\u751F\u6210\u65B9\u5F0F\u4E3A\u751F\u6210\u5230\u6A21\u5757\uFF0C\u8BF7\u5728\u524D\u7AEF\u5F00\u53D1\u6A21\u5F0F\u4E0B\u4F7F\u7528\uFF0C\u8BE6\u7EC6\u53C2\u8003\u6587\u6863");const o=await pe({id:n});o.file&&window.open(o.file,"_blank")},I=(n,o)=>{switch(n){case"generate":D([o.id]);break;case"sync":T(o.id);break;case"delete":k(o.id)}};return g(),(n,o)=>{const B=O,y=Q,r=Z,L=H,V=J,E=le,_=W,M=re("router-link"),h=X,G=Y,R=ee,j=te,q=ae,m=se("perms"),z=oe;return u(),C("div",be,[e(V,{class:"!border-none",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:a(c),inline:""},{default:t(()=>[e(y,{label:"\u8868\u540D\u79F0"},{default:t(()=>[e(B,{class:"w-[280px]",modelValue:a(c).table_name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(c).table_name=l),clearable:"",onKeyup:P(a(w),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u8868\u63CF\u8FF0"},{default:t(()=>[e(B,{class:"w-[280px]",modelValue:a(c).table_comment,"onUpdate:modelValue":o[1]||(o[1]=l=>a(c).table_comment=l),clearable:"",onKeyup:P(a(w),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,null,{default:t(()=>[e(r,{type:"primary",onClick:a(w)},{default:t(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:a(K)},{default:t(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),i((u(),d(V,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[b("div",we,[i((u(),d(ge,{class:"inline-block mr-[10px]",onSuccess:a(g)},{default:t(()=>[e(r,{type:"primary"},{icon:t(()=>[e(E,{name:"el-icon-Plus"})]),default:t(()=>[s(" \u5BFC\u5165\u6570\u636E\u8868 ")]),_:1})]),_:1},8,["onSuccess"])),[[m,["tools.generator/selectTable"]]]),i((u(),d(r,{disabled:!a(F).length,onClick:o[2]||(o[2]=l=>k(a(F))),type:"danger"},{icon:t(()=>[e(E,{name:"el-icon-Delete"})]),default:t(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[m,["tools.generator/delete"]]]),i((u(),d(r,{disabled:!a(F).length,onClick:o[3]||(o[3]=l=>D(a(F)))},{default:t(()=>[s(" \u751F\u6210\u4EE3\u7801 ")]),_:1},8,["disabled"])),[[m,["tools.generator/generate"]]])]),b("div",ye,[e(j,{data:a(f).lists,size:"large",onSelectionChange:S},{default:t(()=>[e(_,{type:"selection",width:"55"}),e(_,{label:"\u8868\u540D\u79F0",prop:"table_name","min-width":"180"}),e(_,{label:"\u8868\u63CF\u8FF0",prop:"table_comment","min-width":"180"}),e(_,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(_,{label:"\u66F4\u65B0\u65F6\u95F4",prop:"update_time","min-width":"180"}),e(_,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:l})=>[b("div",Ee,[i((u(),d(r,{type:"primary",link:"",onClick:x=>N(l.id)},{default:t(()=>[s(" \u9884\u89C8 ")]),_:2},1032,["onClick"])),[[m,["tools.generator/preview"]]]),e(r,{type:"primary",link:""},{default:t(()=>[i((u(),d(M,{to:{path:a(ne)("tools.generator/edit"),query:{id:l.id}}},{default:t(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["to"])),[[m,["tools.generator/edit"]]])]),_:2},1024),i((u(),d(R,{class:"ml-2",onCommand:x=>I(x,l)},{dropdown:t(()=>[e(G,null,{default:t(()=>[i((u(),C("div",null,[e(h,{command:"generate"},{default:t(()=>[e(r,{type:"primary",link:""},{default:t(()=>[s(" \u751F\u6210\u4EE3\u7801 ")]),_:1})]),_:1})])),[[m,["tools.generator/generate"]]]),i((u(),C("div",null,[e(h,{command:"sync"},{default:t(()=>[e(r,{type:"primary",link:""},{default:t(()=>[s(" \u540C\u6B65 ")]),_:1})]),_:1})])),[[m,["tools.generator/syncColumn"]]]),i((u(),C("div",null,[e(h,{command:"delete"},{default:t(()=>[e(r,{type:"danger",link:""},{default:t(()=>[s(" \u5220\u9664 ")]),_:1})]),_:1})])),[[m,["tools.generator/delete"]]])]),_:1})]),default:t(()=>[e(r,{type:"primary",link:""},{default:t(()=>[s(" \u66F4\u591A "),e(E,{name:"el-icon-ArrowDown",size:14})]),_:1})]),_:2},1032,["onCommand"])),[[m,["tools.generator/generate","tools.generator/syncColumn","tools.generator/delete"]]])])]),_:1})]),_:1},8,["data"])]),b("div",he,[e(q,{modelValue:a(f),"onUpdate:modelValue":o[4]||(o[4]=l=>ie(f)?f.value=l:null),onChange:a(g)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(f).loading]]),a(p).show?(u(),d(Ce,{key:0,modelValue:a(p).show,"onUpdate:modelValue":o[5]||(o[5]=l=>a(p).show=l),code:a(p).code},null,8,["modelValue","code"])):me("",!0)])}}});export{mt as default}; diff --git a/build/admin/assets/index.6a5a873e.js b/build/admin/assets/index.b2f38d05.js similarity index 86% rename from build/admin/assets/index.6a5a873e.js rename to build/admin/assets/index.b2f38d05.js index a9f92ec77..5d2f92759 100644 --- a/build/admin/assets/index.6a5a873e.js +++ b/build/admin/assets/index.b2f38d05.js @@ -1 +1 @@ -import{U as N,J as T,K as j,w as z,L as G}from"./element-plus.4a7d92a3.js";import{_ as K}from"./index.bab0dd7c.js";import{e as O,f as q}from"./workbench.b1ea8db6.js";import{h as C}from"./moment.40bc58bf.js";import{B as J}from"./vue-echarts.01ad0ec2.js";import{a as Z}from"./system_store.6d454f9d.js";import{d as A,Z as f,r as h,i as H,o as c,c as d,U as u,L as _,a as o,u as s,T as E,a9 as B,K as I,j as Q,R as W,a0 as X,S as b}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.28c6cdcf.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const $={class:"workbench"},ee={class:"mb-6 flex justify-between items-center"},te=o("span",{class:"text-2xl"},"\u7528\u6237\u6982\u51B5",-1),oe={class:"flex items-center text-sm"},ae={class:"flex items-center mr-4"},ne=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),se={class:"flex flex-wrap"},re={class:"mr-2"},ue={class:"text-info"},le={class:"text-6xl"},ie=o("div",{class:"mb-6 flex justify-between items-center"},[o("span",{class:"text-2xl"},"\u7528\u6237\u8D8B\u52BF")],-1),ce=A({name:"statistics_user"}),Ie=A({...ce,setup(me){const i=f({store_id:"",date:""}),k=[{text:"\u8FD1\u4E00\u5468",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,t]}},{text:"\u672C\u6708",value:()=>{const t=new Date,e=new Date;return e.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,t]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,t]}}],l=f({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),M=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],y=f([{name:"\u4F59\u989D",type:"now_money",icon:"RectangleCopy",num:0,percent:0},{name:"\u91C7\u8D2D\u6B3E",type:"purchase_funds",icon:"RectangleCopy49",num:0,percent:0},{name:"\u65B0\u589E\u7528\u6237\u6570",type:"newUser",icon:"RectangleCopy53",num:0,percent:0},{name:"\u6210\u4EA4\u7528\u6237\u6570",type:"payPeople",icon:"RectangleCopy5",num:0,percent:0},{name:"\u4F1A\u5458\u6570",type:"rechargePeople",icon:"RectangleCopy59",num:0,percent:0},{name:"\u7D2F\u8BA1\u4F1A\u5458\u6570",type:"cumulativeRechargePeople",icon:"RectangleCopy6",num:0,percent:0},{name:"\u7D2F\u8BA1\u6210\u4EA4\u7528\u6237\u6570",type:"cumulativePayPeople",icon:"RectangleCopy9",num:0,percent:0},{name:"\u7D2F\u8BA1\u7528\u6237",type:"cumulativeUser",icon:"RectangleCopy54",num:0,percent:0}]),D=new Date,v=D.getFullYear(),x=D.getMonth()+1,R=new Date(v,x-1,1),L=new Date(v,x,0),r=h([R,L]),m=()=>{let t="";r.value[0]&&r.value[1]&&(t=C(r.value[0]).format("YYYY/MM/DD")+"-"+C(r.value[1]).format("YYYY/MM/DD")),i.date=t,O(i).then(e=>{y.forEach(a=>{a.num=e[a.type].num,a.percent=e[a.type].percent})}),q(i).then(e=>{l.xAxis.data=[],l.series=[],l.legend.data=e.series.map(a=>a.name),l.xAxis.data=e.xAxis,l.series=e.series.map(a=>({type:"line",smooth:!0,data:a.value,name:a.name}))})},p=h(!1),g=h([]),V=(t="")=>{p.value=!0,Z({name:t,page_size:50}).then(e=>{g.value=e.lists,setTimeout(()=>{p.value=!1},300)}).catch(e=>{setTimeout(()=>{p.value=!1},300)})};return H(()=>{m()}),(t,e)=>{const a=T,Y=j,U=N,P=z,S=K,F=G;return c(),d("div",$,[u(F,{shadow:"never",class:"!border-none"},{default:_(()=>[o("div",ee,[te,o("div",oe,[o("div",ae,[u(Y,{modelValue:s(i).store_id,"onUpdate:modelValue":e[0]||(e[0]=n=>s(i).store_id=n),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":V,loading:s(p),style:{width:"240px"},onChange:m},{default:_(()=>[(c(!0),d(E,null,B(s(g),n=>(c(),I(a,{key:n.id,label:n.name,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),ne,u(U,{modelValue:s(r),"onUpdate:modelValue":e[1]||(e[1]=n=>Q(r)?r.value=n:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:k,onChange:m},null,8,["modelValue"]),u(P,{type:"primary",class:"ml-4",onClick:m},{default:_(()=>[W("\u67E5\u8BE2")]),_:1})])]),o("div",se,[(c(!0),d(E,null,B(s(y),(n,w)=>(c(),d("div",{class:"w-1/5 flex mb-6",key:w},[o("div",re,[o("div",{class:"rounded-full p-2",style:X({"background-color":M[w%8]})},[u(S,{iconName:n.icon,white:"",className:"text-6xl"},null,8,["iconName"])],4)]),o("div",null,[o("div",ue,b(n.name),1),o("div",le,b(n.num),1)])]))),128))])]),_:1}),u(F,{shadow:"never",class:"mt-4 !border-none"},{default:_(()=>[o("div",null,[ie,u(s(J),{style:{height:"400px"},option:s(l),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Ie as default}; +import{U as N,J as T,K as j,w as z,L as G}from"./element-plus.a63a26dd.js";import{_ as K}from"./index.4d4cbfac.js";import{e as O,f as q}from"./workbench.1c4b1ac8.js";import{h as C}from"./moment.40bc58bf.js";import{B as J}from"./vue-echarts.01ad0ec2.js";import{a as Z}from"./system_store.0480155e.js";import{d as A,Z as f,r as h,i as H,o as c,c as d,U as u,L as _,a as o,u as s,T as E,a9 as B,K as I,j as Q,R as W,a0 as X,S as b}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.79885fb7.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const $={class:"workbench"},ee={class:"mb-6 flex justify-between items-center"},te=o("span",{class:"text-2xl"},"\u7528\u6237\u6982\u51B5",-1),oe={class:"flex items-center text-sm"},ae={class:"flex items-center mr-4"},ne=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),se={class:"flex flex-wrap"},re={class:"mr-2"},ue={class:"text-info"},le={class:"text-6xl"},ie=o("div",{class:"mb-6 flex justify-between items-center"},[o("span",{class:"text-2xl"},"\u7528\u6237\u8D8B\u52BF")],-1),ce=A({name:"statistics_user"}),Ie=A({...ce,setup(me){const i=f({store_id:"",date:""}),k=[{text:"\u8FD1\u4E00\u5468",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,t]}},{text:"\u672C\u6708",value:()=>{const t=new Date,e=new Date;return e.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,t]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,t]}}],l=f({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),M=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],y=f([{name:"\u4F59\u989D",type:"now_money",icon:"RectangleCopy",num:0,percent:0},{name:"\u91C7\u8D2D\u6B3E",type:"purchase_funds",icon:"RectangleCopy49",num:0,percent:0},{name:"\u65B0\u589E\u7528\u6237\u6570",type:"newUser",icon:"RectangleCopy53",num:0,percent:0},{name:"\u6210\u4EA4\u7528\u6237\u6570",type:"payPeople",icon:"RectangleCopy5",num:0,percent:0},{name:"\u4F1A\u5458\u6570",type:"rechargePeople",icon:"RectangleCopy59",num:0,percent:0},{name:"\u7D2F\u8BA1\u4F1A\u5458\u6570",type:"cumulativeRechargePeople",icon:"RectangleCopy6",num:0,percent:0},{name:"\u7D2F\u8BA1\u6210\u4EA4\u7528\u6237\u6570",type:"cumulativePayPeople",icon:"RectangleCopy9",num:0,percent:0},{name:"\u7D2F\u8BA1\u7528\u6237",type:"cumulativeUser",icon:"RectangleCopy54",num:0,percent:0}]),D=new Date,v=D.getFullYear(),x=D.getMonth()+1,R=new Date(v,x-1,1),L=new Date(v,x,0),r=h([R,L]),m=()=>{let t="";r.value[0]&&r.value[1]&&(t=C(r.value[0]).format("YYYY/MM/DD")+"-"+C(r.value[1]).format("YYYY/MM/DD")),i.date=t,O(i).then(e=>{y.forEach(a=>{a.num=e[a.type].num,a.percent=e[a.type].percent})}),q(i).then(e=>{l.xAxis.data=[],l.series=[],l.legend.data=e.series.map(a=>a.name),l.xAxis.data=e.xAxis,l.series=e.series.map(a=>({type:"line",smooth:!0,data:a.value,name:a.name}))})},p=h(!1),g=h([]),V=(t="")=>{p.value=!0,Z({name:t,page_size:50}).then(e=>{g.value=e.lists,setTimeout(()=>{p.value=!1},300)}).catch(e=>{setTimeout(()=>{p.value=!1},300)})};return H(()=>{m()}),(t,e)=>{const a=T,Y=j,U=N,P=z,S=K,F=G;return c(),d("div",$,[u(F,{shadow:"never",class:"!border-none"},{default:_(()=>[o("div",ee,[te,o("div",oe,[o("div",ae,[u(Y,{modelValue:s(i).store_id,"onUpdate:modelValue":e[0]||(e[0]=n=>s(i).store_id=n),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":V,loading:s(p),style:{width:"240px"},onChange:m},{default:_(()=>[(c(!0),d(E,null,B(s(g),n=>(c(),I(a,{key:n.id,label:n.name,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),ne,u(U,{modelValue:s(r),"onUpdate:modelValue":e[1]||(e[1]=n=>Q(r)?r.value=n:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:k,onChange:m},null,8,["modelValue"]),u(P,{type:"primary",class:"ml-4",onClick:m},{default:_(()=>[W("\u67E5\u8BE2")]),_:1})])]),o("div",se,[(c(!0),d(E,null,B(s(y),(n,w)=>(c(),d("div",{class:"w-1/5 flex mb-6",key:w},[o("div",re,[o("div",{class:"rounded-full p-2",style:X({"background-color":M[w%8]})},[u(S,{iconName:n.icon,white:"",className:"text-6xl"},null,8,["iconName"])],4)]),o("div",null,[o("div",ue,b(n.name),1),o("div",le,b(n.num),1)])]))),128))])]),_:1}),u(F,{shadow:"never",class:"mt-4 !border-none"},{default:_(()=>[o("div",null,[ie,u(s(J),{style:{height:"400px"},option:s(l),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Ie as default}; diff --git a/build/admin/assets/index.fa709ab4.js b/build/admin/assets/index.bbdd8109.js similarity index 82% rename from build/admin/assets/index.fa709ab4.js rename to build/admin/assets/index.bbdd8109.js index c419db872..24867fbc1 100644 --- a/build/admin/assets/index.fa709ab4.js +++ b/build/admin/assets/index.bbdd8109.js @@ -1 +1 @@ -import{C as q,D as M,w as O,F as Q,L as Z,M as z,b as G,N as H,O as J}from"./element-plus.4a7d92a3.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as X,b as Y}from"./index.28c6cdcf.js";import{d as x,s as ee,r as g,Z as te,af as oe,ap as ae,o as i,c as le,U as e,L as t,u as a,aa as k,R as n,M as f,K as m,a as d,S as h,j as se,Q as ne,n as B}from"./@vue.18505fe0.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.b08aa554.js";import{h as ie,a as pe}from"./system_store.6d454f9d.js";import"./lodash.9dc701ad.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_systemStoreEdit_lang.d2f92027.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.771d2d71.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.d777fd30.js";import"./index.1050911c.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";const de={class:"mt-4"},_e={class:"text-danger"},ce={href:"https://admin-store.lihaink.cn/store/",target:"_blank",class:"ml-2"},fe={class:"flex mt-4 justify-end"},he=x({name:"systemStoreLists"}),it=x({...he,setup(ye){const y=ee(),E=g(!1),p=te({name:"",phone:"",is_show:""});g("\u5168\u90E8");const F=g([]),V=u=>{F.value=u.map(({id:l})=>l)},{dictData:A}=re(""),{pager:_,getLists:w,resetParams:S,resetPage:b}=ue({fetchFun:pe,params:p}),L=async()=>{var u;E.value=!0,await B(),(u=y.value)==null||u.open("add")},K=async u=>{var l,c;E.value=!0,await B(),(l=y.value)==null||l.open("edit"),(c=y.value)==null||c.getDetail(u)},$=async u=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:u}),w()};return w(),(u,l)=>{const c=q,C=M,r=O,N=Q,D=Z,P=Y,s=z,R=G,I=oe("router-link"),T=H,U=W,v=ae("perms"),j=J;return i(),le("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:a(p),inline:""},{default:t(()=>[e(C,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:a(p).name,"onUpdate:modelValue":l[0]||(l[0]=o=>a(p).name=o),onKeydown:k(a(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(C,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:a(p).phone,"onUpdate:modelValue":l[1]||(l[1]=o=>a(p).phone=o),onKeydown:k(a(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue","onKeydown"])]),_:1}),e(C,null,{default:t(()=>[e(r,{type:"primary",onClick:a(b)},{default:t(()=>[n("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:a(S)},{default:t(()=>[n("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),m(D,{class:"!border-none",shadow:"never"},{default:t(()=>[f((i(),m(r,{type:"primary",onClick:L},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[n(" \u65B0\u589E ")]),_:1})),[[v,["system_store.system_store/add"]]]),f((i(),m(r,{disabled:!a(F).length,onClick:l[2]||(l[2]=o=>$(a(F)))},{default:t(()=>[n(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["system_store.system_store/delete"]]]),d("div",de,[e(T,{data:a(_).lists,onSelectionChange:V},{default:t(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:t(({row:o})=>[e(R,{src:o.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u8D1F\u8D23\u4EBA",prop:"staff_name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u5730\u5740",prop:"detailed_address"}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u4FDD\u8BC1\u91D1",prop:"phone"},{default:t(({row:o})=>[d("div",null,"\u5E94\u7F34\u7EB3: "+h(o.security_deposit||"-"),1),d("div",null,[n(" \u5DF2\u7F34\u7EB3: "),d("span",_e,h(o.paid_deposit||"-"),1)])]),_:1}),e(s,{label:"\u8425\u4E1A\u65F6\u95F4","show-overflow-tooltip":""},{default:t(({row:o})=>[n(h(o.day_start)+" - "+h(o.day_end),1)]),_:1}),e(s,{label:"\u8425\u4E1A\u72B6\u6001",prop:"is_show","show-overflow-tooltip":""},{default:t(({row:o})=>[n(h(o.is_show?"\u8425\u4E1A":"\u6253\u70CA"),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"180",fixed:"right"},{default:t(({row:o})=>[f((i(),m(r,{type:"primary",link:"",onClick:Ee=>K(o)},{default:t(()=>[n(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["system_store.system_store/edit"]]]),d("a",ce,[f((i(),m(r,{type:"primary",link:""},{default:t(()=>[n(" \u8FDB\u5165\u95E8\u5E97 ")]),_:1})),[[v,["system_store.system_store/edit"]]])]),e(r,{type:"primary",link:""},{default:t(()=>[e(I,{to:{path:"/user/userList",query:{store_id:o.id}}},{default:t(()=>[n("\u95E8\u5E97\u4F1A\u5458")]),_:2},1032,["to"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),d("div",fe,[e(U,{modelValue:a(_),"onUpdate:modelValue":l[3]||(l[3]=o=>se(_)?_.value=o:null),onChange:a(w)},null,8,["modelValue","onChange"])])]),_:1})),[[j,a(_).loading]]),a(E)?(i(),m(me,{key:0,ref_key:"editRef",ref:y,"dict-data":a(A),onSuccess:a(w),onClose:l[4]||(l[4]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{it as default}; +import{C as q,D as M,w as O,F as Q,L as Z,M as z,b as G,N as H,O as J}from"./element-plus.a63a26dd.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as X,b as Y}from"./index.79885fb7.js";import{d as x,s as ee,r as g,Z as te,af as oe,ap as ae,o as i,c as le,U as e,L as t,u as a,aa as k,R as n,M as f,K as m,a as d,S as h,j as se,Q as ne,n as B}from"./@vue.18505fe0.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.1ff41454.js";import{h as ie,a as pe}from"./system_store.0480155e.js";import"./lodash.2473fc51.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_systemStoreEdit_lang.ba0d8702.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.bfcf15be.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.c1432c63.js";import"./index.a5c1d2e3.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";const de={class:"mt-4"},_e={class:"text-danger"},ce={href:"https://admin-store.lihaink.cn/store/",target:"_blank",class:"ml-2"},fe={class:"flex mt-4 justify-end"},he=x({name:"systemStoreLists"}),it=x({...he,setup(ye){const y=ee(),E=g(!1),p=te({name:"",phone:"",is_show:""});g("\u5168\u90E8");const F=g([]),V=u=>{F.value=u.map(({id:l})=>l)},{dictData:A}=re(""),{pager:_,getLists:w,resetParams:S,resetPage:b}=ue({fetchFun:pe,params:p}),L=async()=>{var u;E.value=!0,await B(),(u=y.value)==null||u.open("add")},K=async u=>{var l,c;E.value=!0,await B(),(l=y.value)==null||l.open("edit"),(c=y.value)==null||c.getDetail(u)},$=async u=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:u}),w()};return w(),(u,l)=>{const c=q,C=M,r=O,N=Q,D=Z,P=Y,s=z,R=G,I=oe("router-link"),T=H,U=W,v=ae("perms"),j=J;return i(),le("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:a(p),inline:""},{default:t(()=>[e(C,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:a(p).name,"onUpdate:modelValue":l[0]||(l[0]=o=>a(p).name=o),onKeydown:k(a(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(C,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:a(p).phone,"onUpdate:modelValue":l[1]||(l[1]=o=>a(p).phone=o),onKeydown:k(a(b),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue","onKeydown"])]),_:1}),e(C,null,{default:t(()=>[e(r,{type:"primary",onClick:a(b)},{default:t(()=>[n("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:a(S)},{default:t(()=>[n("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),m(D,{class:"!border-none",shadow:"never"},{default:t(()=>[f((i(),m(r,{type:"primary",onClick:L},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[n(" \u65B0\u589E ")]),_:1})),[[v,["system_store.system_store/add"]]]),f((i(),m(r,{disabled:!a(F).length,onClick:l[2]||(l[2]=o=>$(a(F)))},{default:t(()=>[n(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["system_store.system_store/delete"]]]),d("div",de,[e(T,{data:a(_).lists,onSelectionChange:V},{default:t(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:t(({row:o})=>[e(R,{src:o.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u8D1F\u8D23\u4EBA",prop:"staff_name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u5730\u5740",prop:"detailed_address"}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u4FDD\u8BC1\u91D1",prop:"phone"},{default:t(({row:o})=>[d("div",null,"\u5E94\u7F34\u7EB3: "+h(o.security_deposit||"-"),1),d("div",null,[n(" \u5DF2\u7F34\u7EB3: "),d("span",_e,h(o.paid_deposit||"-"),1)])]),_:1}),e(s,{label:"\u8425\u4E1A\u65F6\u95F4","show-overflow-tooltip":""},{default:t(({row:o})=>[n(h(o.day_start)+" - "+h(o.day_end),1)]),_:1}),e(s,{label:"\u8425\u4E1A\u72B6\u6001",prop:"is_show","show-overflow-tooltip":""},{default:t(({row:o})=>[n(h(o.is_show?"\u8425\u4E1A":"\u6253\u70CA"),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"180",fixed:"right"},{default:t(({row:o})=>[f((i(),m(r,{type:"primary",link:"",onClick:Ee=>K(o)},{default:t(()=>[n(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["system_store.system_store/edit"]]]),d("a",ce,[f((i(),m(r,{type:"primary",link:""},{default:t(()=>[n(" \u8FDB\u5165\u95E8\u5E97 ")]),_:1})),[[v,["system_store.system_store/edit"]]])]),e(r,{type:"primary",link:""},{default:t(()=>[e(I,{to:{path:"/user/userList",query:{store_id:o.id}}},{default:t(()=>[n("\u95E8\u5E97\u4F1A\u5458")]),_:2},1032,["to"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),d("div",fe,[e(U,{modelValue:a(_),"onUpdate:modelValue":l[3]||(l[3]=o=>se(_)?_.value=o:null),onChange:a(w)},null,8,["modelValue","onChange"])])]),_:1})),[[j,a(_).loading]]),a(E)?(i(),m(me,{key:0,ref_key:"editRef",ref:y,"dict-data":a(A),onSuccess:a(w),onClose:l[4]||(l[4]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{it as default}; diff --git a/build/admin/assets/index.1697a37d.js b/build/admin/assets/index.bd02bf11.js similarity index 81% rename from build/admin/assets/index.1697a37d.js rename to build/admin/assets/index.bd02bf11.js index eb212fe58..041c7cec7 100644 --- a/build/admin/assets/index.1697a37d.js +++ b/build/admin/assets/index.bd02bf11.js @@ -1 +1 @@ -import{a0 as Q,G as Z,H as z,a1 as J,M as W,w as X,N as Y,L as ee,C as te,D as oe,F as ae,I as le,O as ne}from"./element-plus.4a7d92a3.js";import{_ as ie}from"./picker.771d2d71.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.b08aa554.js";import{r as g,t as me,f as pe}from"./index.28c6cdcf.js";import{d as B,Z as w,r as F,o as d,c as C,M as _e,u as a,K as D,L as t,a as y,U as e,R as n,S as f,Q as k,j as V}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.d777fd30.js";import"./index.1050911c.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";function de(m){return g.get({url:"/financial_transfers/financialtransfers/lists",params:m})}function ce(m){return g.post({url:"/financial_transfers/FinancialTransfers/send_transfers",params:m})}function fe(m){return g.post({url:"/financial_transfers/FinancialTransfers/success_send",params:m})}const be={key:0,class:"flex"},ve={key:1},Fe={class:"flex mt-4 justify-end"},Ce=B({name:"financialTransfersLists"}),mt=B({...Ce,setup(m){const h=w({store_id:"",admin_id:"",uid:"",status:"",initiation_time:"",confirmation_time:"",mark:"",money:"",remark_time:""}),x=({row:i,rowIndex:l})=>(console.log(i.receivable),i.receivable?"":"warning-row"),T=F([]),A=i=>{T.value=i.map(({id:l})=>l)};ue("");const{pager:c,getLists:b,resetParams:De,resetPage:ge}=re({fetchFun:de,params:h}),I=async i=>{await pe.confirm("\u786E\u5B9A\u8981\u53D1\u9001\u5417\uFF1F"),await ce({id:i}),b()},p=F(!1),_=F(""),N=i=>{_.value=i,p.value=!0},s=w({id:"",transfer_picture:"",status:"",fail_msg:""}),L=async i=>{s.id=_.value.id,await fe({...s}),b(),p.value=!1};return b(),(i,l)=>{const r=W,v=X,U=Y,R=se,S=ee,u=Q,E=Z,P=z,$=ie,j=te,q=J,G=oe,M=ae,H=le,K=ne;return d(),C("div",null,[_e((d(),D(S,{class:"!border-none",shadow:"never"},{default:t(()=>[y("div",null,[e(U,{data:a(c).lists,onSelectionChange:A,"row-class-name":x},{default:t(()=>[e(r,{label:"ID",prop:"id","min-width":"55"}),e(r,{label:"\u5E97\u94FAID",prop:"store_id","show-overflow-tooltip":""}),e(r,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(r,{label:"\u6536\u6B3E\u65B9",prop:"store_name","show-overflow-tooltip":""}),e(r,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(r,{label:"\u7ED3\u7B97\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(r,{label:"\u786E\u8BA4\u65F6\u95F4",prop:"initiation_time","show-overflow-tooltip":""},{default:t(({row:o})=>[n(f(a(me)(o.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:o})=>[o.receivable?(d(),C("div",be,[o.status==0?(d(),D(v,{key:0,link:"",type:"primary",onClick:O=>I(o.id)},{default:t(()=>[n(" \u53D1\u9001 ")]),_:2},1032,["onClick"])):k("",!0),o.status==2?(d(),D(v,{key:1,link:"",type:"primary",onClick:O=>N(o)},{default:t(()=>[n(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])):k("",!0)])):(d(),C("div",ve))]),_:1})]),_:1},8,["data"])]),y("div",Fe,[e(R,{modelValue:a(c),"onUpdate:modelValue":l[0]||(l[0]=o=>V(c)?c.value=o:null),onChange:a(b)},null,8,["modelValue","onChange"])])]),_:1})),[[K,a(c).loading]]),e(H,{modelValue:a(p),"onUpdate:modelValue":l[5]||(l[5]=o=>V(p)?p.value=o:null),title:"\u786E\u8BA4\u7ED3\u7B97",width:"680px"},{default:t(()=>[e(q,{column:1,border:""},{default:t(()=>[e(u,{label:"\u59D3\u540D"},{default:t(()=>[n(f(a(_).store_realName),1)]),_:1}),e(u,{label:"\u94F6\u884C\u5361\u53F7"},{default:t(()=>[n(f(a(_).store_bank_code),1)]),_:1}),e(u,{label:"\u94F6\u884C\u540D\u79F0"},{default:t(()=>[n(f(a(_).store_bank),1)]),_:1}),e(u,{label:"\u5F00\u6237\u5730\u5740"},{default:t(()=>[n(f(a(_).store_bank_address),1)]),_:1}),e(u,{label:"\u64CD\u4F5C"},{default:t(()=>[e(P,{modelValue:a(s).status,"onUpdate:modelValue":l[1]||(l[1]=o=>a(s).status=o)},{default:t(()=>[e(E,{label:"1"},{default:t(()=>[n("\u901A\u8FC7")]),_:1}),e(E,{label:"0"},{default:t(()=>[n("\u4E0D\u901A\u8FC7")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u9644\u4EF6"},{default:t(()=>[e($,{modelValue:a(s).transfer_picture,"onUpdate:modelValue":l[2]||(l[2]=o=>a(s).transfer_picture=o)},null,8,["modelValue"])]),_:1}),e(u,{label:"\u5907\u6CE8"},{default:t(()=>[e(j,{class:"w-[280px]",modelValue:a(s).fail_msg,"onUpdate:modelValue":l[3]||(l[3]=o=>a(s).fail_msg=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(M,{class:"mt-4"},{default:t(()=>[e(G,null,{default:t(()=>[e(v,{type:"primary",onClick:L},{default:t(()=>[n("\u786E\u5B9A")]),_:1}),e(v,{onClick:l[4]||(l[4]=o=>p.value=!1)},{default:t(()=>[n("\u53D6\u6D88")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});export{mt as default}; +import{a0 as Q,G as Z,H as z,a1 as J,M as W,w as X,N as Y,L as ee,C as te,D as oe,F as ae,I as le,O as ne}from"./element-plus.a63a26dd.js";import{_ as ie}from"./picker.bfcf15be.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.1ff41454.js";import{r as g,t as me,f as pe}from"./index.79885fb7.js";import{d as B,Z as w,r as F,o as d,c as C,M as _e,u as a,K as D,L as t,a as y,U as e,R as n,S as f,Q as k,j as V}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.c1432c63.js";import"./index.a5c1d2e3.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";function de(m){return g.get({url:"/financial_transfers/financialtransfers/lists",params:m})}function ce(m){return g.post({url:"/financial_transfers/FinancialTransfers/send_transfers",params:m})}function fe(m){return g.post({url:"/financial_transfers/FinancialTransfers/success_send",params:m})}const be={key:0,class:"flex"},ve={key:1},Fe={class:"flex mt-4 justify-end"},Ce=B({name:"financialTransfersLists"}),mt=B({...Ce,setup(m){const h=w({store_id:"",admin_id:"",uid:"",status:"",initiation_time:"",confirmation_time:"",mark:"",money:"",remark_time:""}),x=({row:i,rowIndex:l})=>(console.log(i.receivable),i.receivable?"":"warning-row"),T=F([]),A=i=>{T.value=i.map(({id:l})=>l)};ue("");const{pager:c,getLists:b,resetParams:De,resetPage:ge}=re({fetchFun:de,params:h}),I=async i=>{await pe.confirm("\u786E\u5B9A\u8981\u53D1\u9001\u5417\uFF1F"),await ce({id:i}),b()},p=F(!1),_=F(""),N=i=>{_.value=i,p.value=!0},s=w({id:"",transfer_picture:"",status:"",fail_msg:""}),L=async i=>{s.id=_.value.id,await fe({...s}),b(),p.value=!1};return b(),(i,l)=>{const r=W,v=X,U=Y,R=se,S=ee,u=Q,E=Z,P=z,$=ie,j=te,q=J,G=oe,M=ae,H=le,K=ne;return d(),C("div",null,[_e((d(),D(S,{class:"!border-none",shadow:"never"},{default:t(()=>[y("div",null,[e(U,{data:a(c).lists,onSelectionChange:A,"row-class-name":x},{default:t(()=>[e(r,{label:"ID",prop:"id","min-width":"55"}),e(r,{label:"\u5E97\u94FAID",prop:"store_id","show-overflow-tooltip":""}),e(r,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(r,{label:"\u6536\u6B3E\u65B9",prop:"store_name","show-overflow-tooltip":""}),e(r,{label:"\u7ED3\u7B97\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(r,{label:"\u7ED3\u7B97\u65B9\u5F0F",prop:"extract_type","show-overflow-tooltip":""}),e(r,{label:"\u786E\u8BA4\u65F6\u95F4",prop:"initiation_time","show-overflow-tooltip":""},{default:t(({row:o})=>[n(f(a(me)(o.initiation_time,"yyyy-mm-dd")),1)]),_:1}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:o})=>[o.receivable?(d(),C("div",be,[o.status==0?(d(),D(v,{key:0,link:"",type:"primary",onClick:O=>I(o.id)},{default:t(()=>[n(" \u53D1\u9001 ")]),_:2},1032,["onClick"])):k("",!0),o.status==2?(d(),D(v,{key:1,link:"",type:"primary",onClick:O=>N(o)},{default:t(()=>[n(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])):k("",!0)])):(d(),C("div",ve))]),_:1})]),_:1},8,["data"])]),y("div",Fe,[e(R,{modelValue:a(c),"onUpdate:modelValue":l[0]||(l[0]=o=>V(c)?c.value=o:null),onChange:a(b)},null,8,["modelValue","onChange"])])]),_:1})),[[K,a(c).loading]]),e(H,{modelValue:a(p),"onUpdate:modelValue":l[5]||(l[5]=o=>V(p)?p.value=o:null),title:"\u786E\u8BA4\u7ED3\u7B97",width:"680px"},{default:t(()=>[e(q,{column:1,border:""},{default:t(()=>[e(u,{label:"\u59D3\u540D"},{default:t(()=>[n(f(a(_).store_realName),1)]),_:1}),e(u,{label:"\u94F6\u884C\u5361\u53F7"},{default:t(()=>[n(f(a(_).store_bank_code),1)]),_:1}),e(u,{label:"\u94F6\u884C\u540D\u79F0"},{default:t(()=>[n(f(a(_).store_bank),1)]),_:1}),e(u,{label:"\u5F00\u6237\u5730\u5740"},{default:t(()=>[n(f(a(_).store_bank_address),1)]),_:1}),e(u,{label:"\u64CD\u4F5C"},{default:t(()=>[e(P,{modelValue:a(s).status,"onUpdate:modelValue":l[1]||(l[1]=o=>a(s).status=o)},{default:t(()=>[e(E,{label:"1"},{default:t(()=>[n("\u901A\u8FC7")]),_:1}),e(E,{label:"0"},{default:t(()=>[n("\u4E0D\u901A\u8FC7")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u9644\u4EF6"},{default:t(()=>[e($,{modelValue:a(s).transfer_picture,"onUpdate:modelValue":l[2]||(l[2]=o=>a(s).transfer_picture=o)},null,8,["modelValue"])]),_:1}),e(u,{label:"\u5907\u6CE8"},{default:t(()=>[e(j,{class:"w-[280px]",modelValue:a(s).fail_msg,"onUpdate:modelValue":l[3]||(l[3]=o=>a(s).fail_msg=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1}),e(M,{class:"mt-4"},{default:t(()=>[e(G,null,{default:t(()=>[e(v,{type:"primary",onClick:L},{default:t(()=>[n("\u786E\u5B9A")]),_:1}),e(v,{onClick:l[4]||(l[4]=o=>p.value=!1)},{default:t(()=>[n("\u53D6\u6D88")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}});export{mt as default}; diff --git a/build/admin/assets/index.d777fd30.js b/build/admin/assets/index.c1432c63.js similarity index 98% rename from build/admin/assets/index.d777fd30.js rename to build/admin/assets/index.c1432c63.js index a30e54238..d0e9de807 100644 --- a/build/admin/assets/index.d777fd30.js +++ b/build/admin/assets/index.c1432c63.js @@ -1 +1 @@ -import{V as Ze,W as Oe,I as $e,X as Qe,J as ze,K as Re,C as Ie,w as Le,k as Je,b as Xe,Y as He,p as et,q as tt,r as lt,Z as nt,E as at,B as st,M as ot,_ as it,N as ut,O as dt,a as rt}from"./element-plus.4a7d92a3.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as pt}from"./index.1050911c.js";import{a as mt,i as re,R as xe,f as Z,d as me,r as T,b as Pe,j as ft}from"./index.28c6cdcf.js";import{P as vt}from"./index.ac70fa70.js";import{d as Q,s as ae,r as A,b as ne,t as _t,o,c,U as n,L as a,H as fe,K as B,a as s,T as j,a9 as G,S as te,Q as h,w as O,a3 as Y,u as t,j as U,R as g,Z as gt,a0 as Ue,M as le,V as pe,n as Be,_ as ht,i as yt,aa as Ct,O as De,D as kt,bl as bt,bk as Et}from"./@vue.18505fe0.js";import{u as wt}from"./@vueuse.fbc6a400.js";import{u as Ft}from"./usePaging.6a6670f9.js";const At=Q({components:{},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},data:{type:Object,default:()=>({})},showProgress:{type:Boolean,default:!1}},emits:["change","error","success"],setup(e,{emit:y}){const C=mt(),m=ae(),f=A(`${re.baseUrl}${re.urlPrefix}/upload/${e.type}`),E=ne(()=>({token:C.token,version:re.version})),d=A(!1),u=A([]),w=(b,S,$)=>{d.value=!0,u.value=_t($)},i=(b,S,$)=>{var N;$.every(L=>L.status=="success")&&((N=m.value)==null||N.clearFiles(),d.value=!1),y("change",S),b.code==xe.SUCCESS&&y("success",b),b.code==xe.FAIL&&b.msg&&Z.msgError(b.msg)},k=(b,S)=>{var $;Z.msgError(`${S.name}\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`),($=m.value)==null||$.abort(S),d.value=!1,y("change",S),y("error",S)},r=()=>{Z.msgError(`\u8D85\u51FA\u4E0A\u4F20\u4E0A\u9650${e.limit}\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20`)},R=()=>{var b;(b=m.value)==null||b.clearFiles(),d.value=!1},M=ne(()=>{switch(e.type){case"image":return".jpg,.png,.gif,.jpeg";case"video":return".wmv,.avi,.mpg,.mpeg,.3gp,.mov,.mp4,.flv,.rmvb,.mkv";default:return"*"}});return{uploadRefs:m,action:f,headers:E,visible:d,fileList:u,getAccept:M,handleProgress:w,handleSuccess:i,handleError:k,handleExceed:r,handleClose:R}}}),St={class:"upload"},Vt={class:"file-list p-4"},xt={class:"flex-1"};function Bt(e,y,C,m,f,E){const d=Ze,u=Oe,w=$e;return o(),c("div",St,[n(d,{ref:"uploadRefs",action:e.action,multiple:e.multiple,limit:e.limit,"show-file-list":!1,headers:e.headers,data:e.data,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-exceed":e.handleExceed,"on-error":e.handleError,accept:e.getAccept},{default:a(()=>[fe(e.$slots,"default")]),_:3},8,["action","multiple","limit","headers","data","on-progress","on-success","on-exceed","on-error","accept"]),e.showProgress&&e.fileList.length?(o(),B(w,{key:0,modelValue:e.visible,"onUpdate:modelValue":y[0]||(y[0]=i=>e.visible=i),title:"\u4E0A\u4F20\u8FDB\u5EA6","close-on-click-modal":!1,width:"500px",modal:!1,onClose:e.handleClose},{default:a(()=>[s("div",Vt,[(o(!0),c(j,null,G(e.fileList,(i,k)=>(o(),c("div",{key:k,class:"mb-5"},[s("div",null,te(i.name),1),s("div",xt,[n(u,{percentage:parseInt(i.percentage)},null,8,["percentage"])])]))),128))])]),_:1},8,["modelValue","onClose"])):h("",!0)])}const Dt=me(At,[["render",Bt]]),$t={class:"popover-input__input mr-[10px] flex-1"},zt={class:"popover-input__btns flex-none"},Rt=Q({__name:"index",props:{value:{type:String},type:{type:String,default:"text"},width:{type:[Number,String],default:"300px"},placeholder:String,disabled:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},size:{type:String,default:"default"},limit:{type:Number,default:200},showLimit:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0}},emits:["confirm"],setup(e,{emit:y}){const C=e,m=y,f=A(!1),E=A(!1),d=A(),u=()=>{i(),m("confirm",d.value)},w=()=>{C.disabled||(f.value=!0)},i=()=>{f.value=!1};return O(()=>C.value,k=>{d.value=k},{immediate:!0}),wt(document.documentElement,"click",()=>{E.value||i()}),(k,r)=>{const R=ze,M=Re,b=Ie,S=Le,$=Qe;return o(),c("div",{onMouseenter:r[4]||(r[4]=F=>E.value=!0),onMouseleave:r[5]||(r[5]=F=>E.value=!1)},[n($,{placement:"top",visible:t(f),"onUpdate:visible":r[3]||(r[3]=F=>U(f)?f.value=F:null),width:e.width,trigger:"contextmenu",class:"popover-input",teleported:e.teleported,persistent:!1,"popper-class":"!p-0"},{reference:a(()=>[s("div",{class:"inline",onClick:Y(w,["stop"])},[fe(k.$slots,"default")])]),default:a(()=>[s("div",{class:"flex p-3",onClick:r[2]||(r[2]=Y(()=>{},["stop"]))},[s("div",$t,[e.type=="select"?(o(),B(M,{key:0,class:"flex-1",size:e.size,modelValue:t(d),"onUpdate:modelValue":r[0]||(r[0]=F=>U(d)?d.value=F:null),teleported:e.teleported},{default:a(()=>[(o(!0),c(j,null,G(e.options,F=>(o(),B(R,{key:F.value,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:1},8,["size","modelValue","teleported"])):(o(),B(b,{key:1,modelValue:t(d),"onUpdate:modelValue":r[1]||(r[1]=F=>U(d)?d.value=F:null),modelModifiers:{trim:!0},maxlength:e.limit,"show-word-limit":e.showLimit,type:e.type,size:e.size,clearable:"",placeholder:e.placeholder},null,8,["modelValue","maxlength","show-word-limit","type","size","placeholder"]))]),s("div",zt,[n(S,{link:"",onClick:i},{default:a(()=>[g("\u53D6\u6D88")]),_:1}),n(S,{type:"primary",size:e.size,onClick:u},{default:a(()=>[g("\u786E\u5B9A")]),_:1},8,["size"])])])]),_:3},8,["visible","width","teleported"])],32)}}}),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function Lt(e){return T.post({url:"/file/addCate",params:e})}function Pt(e){return T.post({url:"/file/editCate",params:e})}function Ut(e){return T.post({url:"/file/delCate",params:e})}function jt(e){return T.get({url:"/file/listCate",params:e})}function Tt(e){return T.get({url:"/file/lists",params:e},{ignoreCancelToken:!0,isOpenRetry:!1})}function Mt(e){return T.post({url:"/file/delete",params:e})}function Nt(e){return T.post({url:"/file/move",params:e})}function Wt(e){return T.post({url:"/file/rename",params:e})}function Gt(e){const y=ae(),C=A([]),m=A(""),f=async()=>{const i=await jt({page_type:0,type:e}),k=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];C.value=i.lists,C.value.unshift(...k),setTimeout(()=>{var r;(r=y.value)==null||r.setCurrentKey(m.value)},0)};return{treeRef:y,cateId:m,cateLists:C,handleAddCate:async i=>{await Lt({type:e,name:i,pid:0}),f()},handleEditCate:async(i,k)=>{await Pt({id:k,name:i}),f()},handleDeleteCate:async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ut({id:i}),m.value="",f()},getCateLists:f,handleCatSelect:i=>{m.value=i.id}}}function Yt(e,y,C,m){const f=ae(),E=A("normal"),d=A(0),u=A([]),w=A(!1),i=A(!1),k=gt({name:"",type:y,cid:e}),{pager:r,getLists:R,resetPage:M}=Ft({fetchFun:Tt,params:k,firstLoading:!0,size:m}),b=()=>{R()},S=()=>{M()},$=p=>!!u.value.find(_=>_.id==p),F=async p=>{await Z.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const _=p||u.value.map(W=>W.id);await Mt({ids:_}),b(),I()},N=async()=>{const p=u.value.map(_=>_.id);await Nt({ids:p,cid:d.value}),d.value=0,b(),I()},L=p=>{const _=u.value.findIndex(W=>W.id==p.id);if(_!=-1){u.value.splice(_,1);return}if(u.value.length==C.value){if(C.value==1){u.value=[],u.value.push(p);return}Je.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}u.value.push(p)},I=()=>{u.value=[]};return{listShowType:E,tableRef:f,moveId:d,pager:r,fileParams:k,select:u,isCheckAll:w,isIndeterminate:i,getFileList:b,refresh:S,batchFileDelete:F,batchFileMove:N,selectFile:L,isSelect:$,clearSelect:I,cancelSelete:p=>{u.value=u.value.filter(_=>_.id!=p)},selectAll:p=>{var _;if(i.value=!1,(_=f.value)==null||_.toggleAllSelection(),p){u.value=[...r.lists];return}I()},handleFileRename:async(p,_)=>{await Wt({id:_,name:p}),b()}}}const qt=Q({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const Kt=["src"],Zt={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function Ot(e,y,C,m,f,E){const d=Xe,u=Pe;return o(),c("div",null,[s("div",{class:"file-item relative",style:Ue({height:e.fileSize,width:e.fileSize})},[e.type=="image"?(o(),B(d,{key:0,class:"image",fit:"contain",src:e.uri,"preview-teleported":!0},null,8,["src"])):e.type=="video"?(o(),c("video",{key:1,class:"video",src:e.uri},null,8,Kt)):h("",!0),e.type=="video"?(o(),c("div",Zt,[n(u,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):h("",!0),fe(e.$slots,"default",{},void 0,!0)],4)])}const ce=me(qt,[["render",Ot],["__scopeId","data-v-1ee7b564"]]),Qt={key:0},Jt={key:1},Xt=Q({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(e,{emit:y}){const C=e,m=y,f=ae(),E=ne({get(){return C.modelValue},set(w){m("update:modelValue",w)}}),d=()=>{m("update:modelValue",!1)},u=A([]);return O(()=>C.modelValue,w=>{w?Be(()=>{var i;u.value=[C.url],(i=f.value)==null||i.play()}):Be(()=>{var i;u.value=[],(i=f.value)==null||i.pause()})}),(w,i)=>{const k=He,r=$e;return le((o(),c("div",null,[e.type=="image"?(o(),c("div",Qt,[t(u).length?(o(),B(k,{key:0,"url-list":t(u),"hide-on-click-modal":"",onClose:d},null,8,["url-list"])):h("",!0)])):h("",!0),e.type=="video"?(o(),c("div",Jt,[n(r,{modelValue:t(E),"onUpdate:modelValue":i[0]||(i[0]=R=>U(E)?E.value=R:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":d},null,8,["modelValue"])])):h("",!0)],512)),[[pe,e.modelValue]])}}}),se=e=>(bt("data-v-9cc1892d"),e=e(),Et(),e),Ht={class:"material"},el={class:"material__left"},tl={class:"flex-1 min-h-0"},ll={class:"material-left__content pt-4 p-b-4"},nl={class:"flex flex-1 items-center min-w-0 pr-4"},al=se(()=>s("img",{class:"w-[20px] h-[16px] mr-3",src:It},null,-1)),sl={class:"flex-1 truncate mr-2"},ol=se(()=>s("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),il=["onClick"],ul={class:"flex justify-center p-2 border-t border-br"},dl={class:"material__center flex flex-col"},rl={class:"operate-btn flex"},cl={class:"flex-1 flex"},pl=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),ml={class:"flex items-center ml-2"},fl={key:0,class:"mt-3"},vl={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},_l={class:"file-list flex flex-wrap mt-4"},gl={key:0,class:"item-selected"},hl={class:"operation-btns flex items-center"},yl={class:"inline-block"},Cl={class:"inline-block"},kl={class:"inline-block"},bl={key:1,class:"flex flex-1 justify-center items-center"},El={class:"material-center__footer flex justify-between items-center mt-2"},wl={class:"flex"},Fl={class:"mr-3"},Al=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),Sl={key:0,class:"material__right"},Vl={class:"flex justify-between p-2 flex-wrap"},xl={class:"sm flex items-center"},Bl={key:0},Dl={class:"flex-1 min-h-0"},$l={class:"select-lists flex flex-col p-t-3"},zl={class:"select-item"},Rl=Q({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(e,{expose:y,emit:C}){const m=e,f=C,{limit:E}=ht(m),d=ne(()=>{switch(m.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),u=kt("visible"),w=A(""),i=A(!1),{treeRef:k,cateId:r,cateLists:R,handleAddCate:M,handleEditCate:b,handleDeleteCate:S,getCateLists:$,handleCatSelect:F}=Gt(d.value),{tableRef:N,listShowType:L,moveId:I,pager:D,fileParams:J,select:P,isCheckAll:p,isIndeterminate:_,getFileList:W,refresh:q,batchFileDelete:X,batchFileMove:ve,selectFile:oe,isSelect:_e,clearSelect:ge,cancelSelete:je,selectAll:he,handleFileRename:ye}=Yt(r,d,E,m.pageSize),Ce=async()=>{var z;await $(),(z=k.value)==null||z.setCurrentKey(r.value),W()},ie=z=>{w.value=z,i.value=!0};return O(u,async z=>{z&&Ce()},{immediate:!0}),O(r,()=>{J.name="",q()}),O(P,z=>{if(f("change",z),z.length==D.lists.length&&z.length!==0){_.value=!1,p.value=!0;return}z.length>0?_.value=!0:(p.value=!1,_.value=!1)},{deep:!0}),yt(()=>{m.mode=="page"&&Ce()}),y({clearSelect:ge}),(z,v)=>{const ke=ft,be=et,H=Rt,Te=tt,Me=lt,Ne=nt,ue=at,V=Le,Ee=Dt,we=ze,Fe=Re,Ae=vt,ee=Pe,We=Ie,Se=rt,de=st,Ve=pt,K=ot,Ge=it,Ye=ut,qe=ct,Ke=dt;return le((o(),c("div",Ht,[s("div",el,[s("div",tl,[n(ue,null,{default:a(()=>[s("div",ll,[n(Ne,{ref_key:"treeRef",ref:k,"node-key":"id",data:t(R),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":t(r),onNodeClick:t(F)},{default:a(({data:l})=>[s("div",nl,[al,s("span",sl,[n(ke,{content:l.name},null,8,["content"])]),l.id>0?(o(),B(Me,{key:0,"hide-on-click":!1},{dropdown:a(()=>[n(Te,null,{default:a(()=>[n(H,{onConfirm:x=>t(b)(x,l.id),size:"default",value:l.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[s("div",null,[n(be,null,{default:a(()=>[g(" \u547D\u540D\u5206\u7EC4 ")]),_:1})])]),_:2},1032,["onConfirm","value"]),s("div",{onClick:x=>t(S)(l.id)},[n(be,null,{default:a(()=>[g("\u5220\u9664\u5206\u7EC4")]),_:1})],8,il)]),_:2},1024)]),default:a(()=>[ol]),_:2},1024)):h("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),s("div",ul,[n(H,{onConfirm:t(M),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[n(V,null,{default:a(()=>[g(" \u6DFB\u52A0\u5206\u7EC4 ")]),_:1})]),_:1},8,["onConfirm"])])]),s("div",dl,[s("div",rl,[s("div",cl,[e.type=="image"?(o(),B(Ee,{key:0,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[g("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):h("",!0),e.type=="video"?(o(),B(Ee,{key:1,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[g("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):h("",!0),e.mode=="page"?(o(),B(V,{key:2,disabled:!t(P).length,onClick:v[0]||(v[0]=Y(l=>t(X)(),["stop"]))},{default:a(()=>[g(" \u5220\u9664 ")]),_:1},8,["disabled"])):h("",!0),e.mode=="page"?(o(),B(Ae,{key:3,class:"ml-3",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[g("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[pl,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[1]||(v[1]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(j,null,G(t(R),l=>(o(),c(j,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):h("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):h("",!0)]),n(We,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:t(J).name,"onUpdate:modelValue":v[2]||(v[2]=l=>t(J).name=l),onKeyup:Ct(t(q),["enter"])},{append:a(()=>[n(V,{onClick:t(q)},{icon:a(()=>[n(ee,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),s("div",ml,[n(Se,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="table"}]),onClick:v[3]||(v[3]=l=>L.value="table")},[n(ee,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(Se,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="normal"}]),onClick:v[4]||(v[4]=l=>L.value="normal")},[n(ee,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),e.mode=="page"?(o(),c("div",fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[5]||(v[5]=l=>U(p)?p.value=l:null),onChange:t(he),indeterminate:t(_)},{default:a(()=>[g(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):h("",!0),s("div",vl,[t(D).lists.length?le((o(),B(ue,{key:0},{default:a(()=>[s("ul",_l,[(o(!0),c(j,null,G(t(D).lists,l=>(o(),c("li",{class:"file-item-wrap",key:l.id,style:Ue({width:e.fileSize})},[n(Ve,{onClose:x=>t(X)([l.id])},{default:a(()=>[n(ce,{uri:l.uri,"file-size":e.fileSize,type:e.type,onClick:x=>t(oe)(l)},{default:a(()=>[t(_e)(l.id)?(o(),c("div",gl,[n(ee,{size:24,name:"el-icon-Check",color:"#fff"})])):h("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(ke,{class:"mt-1",content:l.name},null,8,["content"]),s("div",hl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[g(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"]),n(V,{type:"primary",link:"",onClick:x=>ie(l.uri)},{default:a(()=>[g(" \u67E5\u770B ")]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[pe,t(L)=="normal"]]):h("",!0),le(n(Ye,{ref_key:"tableRef",ref:N,class:"mt-4",data:t(D).lists,width:"100%",height:"100%",size:"large",onRowClick:t(oe)},{default:a(()=>[n(K,{width:"55"},{default:a(({row:l})=>[n(de,{modelValue:t(_e)(l.id),onChange:x=>t(oe)(l)},null,8,["modelValue","onChange"])]),_:1}),n(K,{label:"\u56FE\u7247",width:"100"},{default:a(({row:l})=>[n(ce,{uri:l.uri,"file-size":"50px",type:e.type},null,8,["uri","type"])]),_:1}),n(K,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:a(({row:l})=>[n(Ge,{onClick:Y(x=>ie(l.uri),["stop"]),underline:!1},{default:a(()=>[g(te(l.name),1)]),_:2},1032,["onClick"])]),_:1}),n(K,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(K,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:l})=>[s("div",yl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[g(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"])]),s("div",Cl,[n(V,{type:"primary",link:"",onClick:Y(x=>ie(l.uri),["stop"])},{default:a(()=>[g(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),s("div",kl,[n(V,{type:"primary",link:"",onClick:Y(x=>t(X)([l.id]),["stop"])},{default:a(()=>[g(" \u5220\u9664 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[pe,t(L)=="table"]]),!t(D).loading&&!t(D).lists.length?(o(),c("div",bl," \u6682\u65E0\u6570\u636E~ ")):h("",!0)]),s("div",El,[s("div",wl,[e.mode=="page"?(o(),c(j,{key:0},[s("span",Fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[6]||(v[6]=l=>U(p)?p.value=l:null),onChange:t(he),indeterminate:t(_)},{default:a(()=>[g(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(V,{disabled:!t(P).length,onClick:v[7]||(v[7]=l=>t(X)())},{default:a(()=>[g(" \u5220\u9664 ")]),_:1},8,["disabled"]),n(Ae,{class:"ml-3 inline",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[g("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[Al,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[8]||(v[8]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(j,null,G(t(R),l=>(o(),c(j,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):h("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):h("",!0)]),n(qe,{modelValue:t(D),"onUpdate:modelValue":v[9]||(v[9]=l=>U(D)?D.value=l:null),onChange:t(W),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),e.mode=="picker"?(o(),c("div",Sl,[s("div",Vl,[s("div",xl,[g(" \u5DF2\u9009\u62E9 "+te(t(P).length)+" ",1),t(E)?(o(),c("span",Bl,"/"+te(t(E)),1)):h("",!0)]),n(V,{type:"primary",link:"",onClick:t(ge)},{default:a(()=>[g("\u6E05\u7A7A")]),_:1},8,["onClick"])]),s("div",Dl,[n(ue,{class:"ls-scrollbar"},{default:a(()=>[s("ul",$l,[(o(!0),c(j,null,G(t(P),l=>(o(),c("li",{class:"mb-4",key:l.id},[s("div",zl,[n(Ve,{onClose:x=>t(je)(l.id)},{default:a(()=>[n(ce,{uri:l.uri,"file-size":"100px",type:e.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):h("",!0),n(Xt,{modelValue:t(i),"onUpdate:modelValue":v[10]||(v[10]=l=>U(i)?i.value=l:null),url:t(w),type:e.type},null,8,["modelValue","url","type"])])),[[Ke,t(D).loading]])}}});const Wl=me(Rl,[["__scopeId","data-v-9cc1892d"]]);export{ce as F,Wl as _,Xt as a}; +import{V as Ze,W as Oe,I as $e,X as Qe,J as ze,K as Re,C as Ie,w as Le,k as Je,b as Xe,Y as He,p as et,q as tt,r as lt,Z as nt,E as at,B as st,M as ot,_ as it,N as ut,O as dt,a as rt}from"./element-plus.a63a26dd.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as pt}from"./index.a5c1d2e3.js";import{a as mt,i as re,R as xe,f as Z,d as me,r as T,b as Pe,j as ft}from"./index.79885fb7.js";import{P as vt}from"./index.ec3439ad.js";import{d as Q,s as ae,r as A,b as ne,t as _t,o,c,U as n,L as a,H as fe,K as B,a as s,T as j,a9 as G,S as te,Q as h,w as O,a3 as Y,u as t,j as U,R as g,Z as gt,a0 as Ue,M as le,V as pe,n as Be,_ as ht,i as yt,aa as Ct,O as De,D as kt,bl as bt,bk as Et}from"./@vue.18505fe0.js";import{u as wt}from"./@vueuse.fbc6a400.js";import{u as Ft}from"./usePaging.6a6670f9.js";const At=Q({components:{},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},data:{type:Object,default:()=>({})},showProgress:{type:Boolean,default:!1}},emits:["change","error","success"],setup(e,{emit:y}){const C=mt(),m=ae(),f=A(`${re.baseUrl}${re.urlPrefix}/upload/${e.type}`),E=ne(()=>({token:C.token,version:re.version})),d=A(!1),u=A([]),w=(b,S,$)=>{d.value=!0,u.value=_t($)},i=(b,S,$)=>{var N;$.every(L=>L.status=="success")&&((N=m.value)==null||N.clearFiles(),d.value=!1),y("change",S),b.code==xe.SUCCESS&&y("success",b),b.code==xe.FAIL&&b.msg&&Z.msgError(b.msg)},k=(b,S)=>{var $;Z.msgError(`${S.name}\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`),($=m.value)==null||$.abort(S),d.value=!1,y("change",S),y("error",S)},r=()=>{Z.msgError(`\u8D85\u51FA\u4E0A\u4F20\u4E0A\u9650${e.limit}\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20`)},R=()=>{var b;(b=m.value)==null||b.clearFiles(),d.value=!1},M=ne(()=>{switch(e.type){case"image":return".jpg,.png,.gif,.jpeg";case"video":return".wmv,.avi,.mpg,.mpeg,.3gp,.mov,.mp4,.flv,.rmvb,.mkv";default:return"*"}});return{uploadRefs:m,action:f,headers:E,visible:d,fileList:u,getAccept:M,handleProgress:w,handleSuccess:i,handleError:k,handleExceed:r,handleClose:R}}}),St={class:"upload"},Vt={class:"file-list p-4"},xt={class:"flex-1"};function Bt(e,y,C,m,f,E){const d=Ze,u=Oe,w=$e;return o(),c("div",St,[n(d,{ref:"uploadRefs",action:e.action,multiple:e.multiple,limit:e.limit,"show-file-list":!1,headers:e.headers,data:e.data,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-exceed":e.handleExceed,"on-error":e.handleError,accept:e.getAccept},{default:a(()=>[fe(e.$slots,"default")]),_:3},8,["action","multiple","limit","headers","data","on-progress","on-success","on-exceed","on-error","accept"]),e.showProgress&&e.fileList.length?(o(),B(w,{key:0,modelValue:e.visible,"onUpdate:modelValue":y[0]||(y[0]=i=>e.visible=i),title:"\u4E0A\u4F20\u8FDB\u5EA6","close-on-click-modal":!1,width:"500px",modal:!1,onClose:e.handleClose},{default:a(()=>[s("div",Vt,[(o(!0),c(j,null,G(e.fileList,(i,k)=>(o(),c("div",{key:k,class:"mb-5"},[s("div",null,te(i.name),1),s("div",xt,[n(u,{percentage:parseInt(i.percentage)},null,8,["percentage"])])]))),128))])]),_:1},8,["modelValue","onClose"])):h("",!0)])}const Dt=me(At,[["render",Bt]]),$t={class:"popover-input__input mr-[10px] flex-1"},zt={class:"popover-input__btns flex-none"},Rt=Q({__name:"index",props:{value:{type:String},type:{type:String,default:"text"},width:{type:[Number,String],default:"300px"},placeholder:String,disabled:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},size:{type:String,default:"default"},limit:{type:Number,default:200},showLimit:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0}},emits:["confirm"],setup(e,{emit:y}){const C=e,m=y,f=A(!1),E=A(!1),d=A(),u=()=>{i(),m("confirm",d.value)},w=()=>{C.disabled||(f.value=!0)},i=()=>{f.value=!1};return O(()=>C.value,k=>{d.value=k},{immediate:!0}),wt(document.documentElement,"click",()=>{E.value||i()}),(k,r)=>{const R=ze,M=Re,b=Ie,S=Le,$=Qe;return o(),c("div",{onMouseenter:r[4]||(r[4]=F=>E.value=!0),onMouseleave:r[5]||(r[5]=F=>E.value=!1)},[n($,{placement:"top",visible:t(f),"onUpdate:visible":r[3]||(r[3]=F=>U(f)?f.value=F:null),width:e.width,trigger:"contextmenu",class:"popover-input",teleported:e.teleported,persistent:!1,"popper-class":"!p-0"},{reference:a(()=>[s("div",{class:"inline",onClick:Y(w,["stop"])},[fe(k.$slots,"default")])]),default:a(()=>[s("div",{class:"flex p-3",onClick:r[2]||(r[2]=Y(()=>{},["stop"]))},[s("div",$t,[e.type=="select"?(o(),B(M,{key:0,class:"flex-1",size:e.size,modelValue:t(d),"onUpdate:modelValue":r[0]||(r[0]=F=>U(d)?d.value=F:null),teleported:e.teleported},{default:a(()=>[(o(!0),c(j,null,G(e.options,F=>(o(),B(R,{key:F.value,label:F.label,value:F.value},null,8,["label","value"]))),128))]),_:1},8,["size","modelValue","teleported"])):(o(),B(b,{key:1,modelValue:t(d),"onUpdate:modelValue":r[1]||(r[1]=F=>U(d)?d.value=F:null),modelModifiers:{trim:!0},maxlength:e.limit,"show-word-limit":e.showLimit,type:e.type,size:e.size,clearable:"",placeholder:e.placeholder},null,8,["modelValue","maxlength","show-word-limit","type","size","placeholder"]))]),s("div",zt,[n(S,{link:"",onClick:i},{default:a(()=>[g("\u53D6\u6D88")]),_:1}),n(S,{type:"primary",size:e.size,onClick:u},{default:a(()=>[g("\u786E\u5B9A")]),_:1},8,["size"])])])]),_:3},8,["visible","width","teleported"])],32)}}}),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function Lt(e){return T.post({url:"/file/addCate",params:e})}function Pt(e){return T.post({url:"/file/editCate",params:e})}function Ut(e){return T.post({url:"/file/delCate",params:e})}function jt(e){return T.get({url:"/file/listCate",params:e})}function Tt(e){return T.get({url:"/file/lists",params:e},{ignoreCancelToken:!0,isOpenRetry:!1})}function Mt(e){return T.post({url:"/file/delete",params:e})}function Nt(e){return T.post({url:"/file/move",params:e})}function Wt(e){return T.post({url:"/file/rename",params:e})}function Gt(e){const y=ae(),C=A([]),m=A(""),f=async()=>{const i=await jt({page_type:0,type:e}),k=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];C.value=i.lists,C.value.unshift(...k),setTimeout(()=>{var r;(r=y.value)==null||r.setCurrentKey(m.value)},0)};return{treeRef:y,cateId:m,cateLists:C,handleAddCate:async i=>{await Lt({type:e,name:i,pid:0}),f()},handleEditCate:async(i,k)=>{await Pt({id:k,name:i}),f()},handleDeleteCate:async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ut({id:i}),m.value="",f()},getCateLists:f,handleCatSelect:i=>{m.value=i.id}}}function Yt(e,y,C,m){const f=ae(),E=A("normal"),d=A(0),u=A([]),w=A(!1),i=A(!1),k=gt({name:"",type:y,cid:e}),{pager:r,getLists:R,resetPage:M}=Ft({fetchFun:Tt,params:k,firstLoading:!0,size:m}),b=()=>{R()},S=()=>{M()},$=p=>!!u.value.find(_=>_.id==p),F=async p=>{await Z.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const _=p||u.value.map(W=>W.id);await Mt({ids:_}),b(),I()},N=async()=>{const p=u.value.map(_=>_.id);await Nt({ids:p,cid:d.value}),d.value=0,b(),I()},L=p=>{const _=u.value.findIndex(W=>W.id==p.id);if(_!=-1){u.value.splice(_,1);return}if(u.value.length==C.value){if(C.value==1){u.value=[],u.value.push(p);return}Je.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}u.value.push(p)},I=()=>{u.value=[]};return{listShowType:E,tableRef:f,moveId:d,pager:r,fileParams:k,select:u,isCheckAll:w,isIndeterminate:i,getFileList:b,refresh:S,batchFileDelete:F,batchFileMove:N,selectFile:L,isSelect:$,clearSelect:I,cancelSelete:p=>{u.value=u.value.filter(_=>_.id!=p)},selectAll:p=>{var _;if(i.value=!1,(_=f.value)==null||_.toggleAllSelection(),p){u.value=[...r.lists];return}I()},handleFileRename:async(p,_)=>{await Wt({id:_,name:p}),b()}}}const qt=Q({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const Kt=["src"],Zt={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function Ot(e,y,C,m,f,E){const d=Xe,u=Pe;return o(),c("div",null,[s("div",{class:"file-item relative",style:Ue({height:e.fileSize,width:e.fileSize})},[e.type=="image"?(o(),B(d,{key:0,class:"image",fit:"contain",src:e.uri,"preview-teleported":!0},null,8,["src"])):e.type=="video"?(o(),c("video",{key:1,class:"video",src:e.uri},null,8,Kt)):h("",!0),e.type=="video"?(o(),c("div",Zt,[n(u,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):h("",!0),fe(e.$slots,"default",{},void 0,!0)],4)])}const ce=me(qt,[["render",Ot],["__scopeId","data-v-1ee7b564"]]),Qt={key:0},Jt={key:1},Xt=Q({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(e,{emit:y}){const C=e,m=y,f=ae(),E=ne({get(){return C.modelValue},set(w){m("update:modelValue",w)}}),d=()=>{m("update:modelValue",!1)},u=A([]);return O(()=>C.modelValue,w=>{w?Be(()=>{var i;u.value=[C.url],(i=f.value)==null||i.play()}):Be(()=>{var i;u.value=[],(i=f.value)==null||i.pause()})}),(w,i)=>{const k=He,r=$e;return le((o(),c("div",null,[e.type=="image"?(o(),c("div",Qt,[t(u).length?(o(),B(k,{key:0,"url-list":t(u),"hide-on-click-modal":"",onClose:d},null,8,["url-list"])):h("",!0)])):h("",!0),e.type=="video"?(o(),c("div",Jt,[n(r,{modelValue:t(E),"onUpdate:modelValue":i[0]||(i[0]=R=>U(E)?E.value=R:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":d},null,8,["modelValue"])])):h("",!0)],512)),[[pe,e.modelValue]])}}}),se=e=>(bt("data-v-9cc1892d"),e=e(),Et(),e),Ht={class:"material"},el={class:"material__left"},tl={class:"flex-1 min-h-0"},ll={class:"material-left__content pt-4 p-b-4"},nl={class:"flex flex-1 items-center min-w-0 pr-4"},al=se(()=>s("img",{class:"w-[20px] h-[16px] mr-3",src:It},null,-1)),sl={class:"flex-1 truncate mr-2"},ol=se(()=>s("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),il=["onClick"],ul={class:"flex justify-center p-2 border-t border-br"},dl={class:"material__center flex flex-col"},rl={class:"operate-btn flex"},cl={class:"flex-1 flex"},pl=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),ml={class:"flex items-center ml-2"},fl={key:0,class:"mt-3"},vl={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},_l={class:"file-list flex flex-wrap mt-4"},gl={key:0,class:"item-selected"},hl={class:"operation-btns flex items-center"},yl={class:"inline-block"},Cl={class:"inline-block"},kl={class:"inline-block"},bl={key:1,class:"flex flex-1 justify-center items-center"},El={class:"material-center__footer flex justify-between items-center mt-2"},wl={class:"flex"},Fl={class:"mr-3"},Al=se(()=>s("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),Sl={key:0,class:"material__right"},Vl={class:"flex justify-between p-2 flex-wrap"},xl={class:"sm flex items-center"},Bl={key:0},Dl={class:"flex-1 min-h-0"},$l={class:"select-lists flex flex-col p-t-3"},zl={class:"select-item"},Rl=Q({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(e,{expose:y,emit:C}){const m=e,f=C,{limit:E}=ht(m),d=ne(()=>{switch(m.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),u=kt("visible"),w=A(""),i=A(!1),{treeRef:k,cateId:r,cateLists:R,handleAddCate:M,handleEditCate:b,handleDeleteCate:S,getCateLists:$,handleCatSelect:F}=Gt(d.value),{tableRef:N,listShowType:L,moveId:I,pager:D,fileParams:J,select:P,isCheckAll:p,isIndeterminate:_,getFileList:W,refresh:q,batchFileDelete:X,batchFileMove:ve,selectFile:oe,isSelect:_e,clearSelect:ge,cancelSelete:je,selectAll:he,handleFileRename:ye}=Yt(r,d,E,m.pageSize),Ce=async()=>{var z;await $(),(z=k.value)==null||z.setCurrentKey(r.value),W()},ie=z=>{w.value=z,i.value=!0};return O(u,async z=>{z&&Ce()},{immediate:!0}),O(r,()=>{J.name="",q()}),O(P,z=>{if(f("change",z),z.length==D.lists.length&&z.length!==0){_.value=!1,p.value=!0;return}z.length>0?_.value=!0:(p.value=!1,_.value=!1)},{deep:!0}),yt(()=>{m.mode=="page"&&Ce()}),y({clearSelect:ge}),(z,v)=>{const ke=ft,be=et,H=Rt,Te=tt,Me=lt,Ne=nt,ue=at,V=Le,Ee=Dt,we=ze,Fe=Re,Ae=vt,ee=Pe,We=Ie,Se=rt,de=st,Ve=pt,K=ot,Ge=it,Ye=ut,qe=ct,Ke=dt;return le((o(),c("div",Ht,[s("div",el,[s("div",tl,[n(ue,null,{default:a(()=>[s("div",ll,[n(Ne,{ref_key:"treeRef",ref:k,"node-key":"id",data:t(R),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":t(r),onNodeClick:t(F)},{default:a(({data:l})=>[s("div",nl,[al,s("span",sl,[n(ke,{content:l.name},null,8,["content"])]),l.id>0?(o(),B(Me,{key:0,"hide-on-click":!1},{dropdown:a(()=>[n(Te,null,{default:a(()=>[n(H,{onConfirm:x=>t(b)(x,l.id),size:"default",value:l.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[s("div",null,[n(be,null,{default:a(()=>[g(" \u547D\u540D\u5206\u7EC4 ")]),_:1})])]),_:2},1032,["onConfirm","value"]),s("div",{onClick:x=>t(S)(l.id)},[n(be,null,{default:a(()=>[g("\u5220\u9664\u5206\u7EC4")]),_:1})],8,il)]),_:2},1024)]),default:a(()=>[ol]),_:2},1024)):h("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),s("div",ul,[n(H,{onConfirm:t(M),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[n(V,null,{default:a(()=>[g(" \u6DFB\u52A0\u5206\u7EC4 ")]),_:1})]),_:1},8,["onConfirm"])])]),s("div",dl,[s("div",rl,[s("div",cl,[e.type=="image"?(o(),B(Ee,{key:0,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[g("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):h("",!0),e.type=="video"?(o(),B(Ee,{key:1,class:"mr-3",data:{cid:t(r)},type:e.type,"show-progress":!0,onChange:t(q)},{default:a(()=>[n(V,{type:"primary"},{default:a(()=>[g("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):h("",!0),e.mode=="page"?(o(),B(V,{key:2,disabled:!t(P).length,onClick:v[0]||(v[0]=Y(l=>t(X)(),["stop"]))},{default:a(()=>[g(" \u5220\u9664 ")]),_:1},8,["disabled"])):h("",!0),e.mode=="page"?(o(),B(Ae,{key:3,class:"ml-3",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[g("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[pl,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[1]||(v[1]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(j,null,G(t(R),l=>(o(),c(j,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):h("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):h("",!0)]),n(We,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:t(J).name,"onUpdate:modelValue":v[2]||(v[2]=l=>t(J).name=l),onKeyup:Ct(t(q),["enter"])},{append:a(()=>[n(V,{onClick:t(q)},{icon:a(()=>[n(ee,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),s("div",ml,[n(Se,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="table"}]),onClick:v[3]||(v[3]=l=>L.value="table")},[n(ee,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(Se,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:a(()=>[s("div",{class:De(["list-icon",{select:t(L)=="normal"}]),onClick:v[4]||(v[4]=l=>L.value="normal")},[n(ee,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),e.mode=="page"?(o(),c("div",fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[5]||(v[5]=l=>U(p)?p.value=l:null),onChange:t(he),indeterminate:t(_)},{default:a(()=>[g(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):h("",!0),s("div",vl,[t(D).lists.length?le((o(),B(ue,{key:0},{default:a(()=>[s("ul",_l,[(o(!0),c(j,null,G(t(D).lists,l=>(o(),c("li",{class:"file-item-wrap",key:l.id,style:Ue({width:e.fileSize})},[n(Ve,{onClose:x=>t(X)([l.id])},{default:a(()=>[n(ce,{uri:l.uri,"file-size":e.fileSize,type:e.type,onClick:x=>t(oe)(l)},{default:a(()=>[t(_e)(l.id)?(o(),c("div",gl,[n(ee,{size:24,name:"el-icon-Check",color:"#fff"})])):h("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(ke,{class:"mt-1",content:l.name},null,8,["content"]),s("div",hl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[g(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"]),n(V,{type:"primary",link:"",onClick:x=>ie(l.uri)},{default:a(()=>[g(" \u67E5\u770B ")]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[pe,t(L)=="normal"]]):h("",!0),le(n(Ye,{ref_key:"tableRef",ref:N,class:"mt-4",data:t(D).lists,width:"100%",height:"100%",size:"large",onRowClick:t(oe)},{default:a(()=>[n(K,{width:"55"},{default:a(({row:l})=>[n(de,{modelValue:t(_e)(l.id),onChange:x=>t(oe)(l)},null,8,["modelValue","onChange"])]),_:1}),n(K,{label:"\u56FE\u7247",width:"100"},{default:a(({row:l})=>[n(ce,{uri:l.uri,"file-size":"50px",type:e.type},null,8,["uri","type"])]),_:1}),n(K,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:a(({row:l})=>[n(Ge,{onClick:Y(x=>ie(l.uri),["stop"]),underline:!1},{default:a(()=>[g(te(l.name),1)]),_:2},1032,["onClick"])]),_:1}),n(K,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(K,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:l})=>[s("div",yl,[n(H,{onConfirm:x=>t(ye)(x,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(V,{type:"primary",link:""},{default:a(()=>[g(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"])]),s("div",Cl,[n(V,{type:"primary",link:"",onClick:Y(x=>ie(l.uri),["stop"])},{default:a(()=>[g(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),s("div",kl,[n(V,{type:"primary",link:"",onClick:Y(x=>t(X)([l.id]),["stop"])},{default:a(()=>[g(" \u5220\u9664 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[pe,t(L)=="table"]]),!t(D).loading&&!t(D).lists.length?(o(),c("div",bl," \u6682\u65E0\u6570\u636E~ ")):h("",!0)]),s("div",El,[s("div",wl,[e.mode=="page"?(o(),c(j,{key:0},[s("span",Fl,[n(de,{disabled:!t(D).lists.length,modelValue:t(p),"onUpdate:modelValue":v[6]||(v[6]=l=>U(p)?p.value=l:null),onChange:t(he),indeterminate:t(_)},{default:a(()=>[g(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(V,{disabled:!t(P).length,onClick:v[7]||(v[7]=l=>t(X)())},{default:a(()=>[g(" \u5220\u9664 ")]),_:1},8,["disabled"]),n(Ae,{class:"ml-3 inline",onConfirm:t(ve),disabled:!t(P).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(V,{disabled:!t(P).length},{default:a(()=>[g("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[s("div",null,[Al,n(Fe,{modelValue:t(I),"onUpdate:modelValue":v[8]||(v[8]=l=>U(I)?I.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(o(!0),c(j,null,G(t(R),l=>(o(),c(j,{key:l.id},[l.id!==""?(o(),B(we,{key:0,label:l.name,value:l.id},null,8,["label","value"])):h("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):h("",!0)]),n(qe,{modelValue:t(D),"onUpdate:modelValue":v[9]||(v[9]=l=>U(D)?D.value=l:null),onChange:t(W),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),e.mode=="picker"?(o(),c("div",Sl,[s("div",Vl,[s("div",xl,[g(" \u5DF2\u9009\u62E9 "+te(t(P).length)+" ",1),t(E)?(o(),c("span",Bl,"/"+te(t(E)),1)):h("",!0)]),n(V,{type:"primary",link:"",onClick:t(ge)},{default:a(()=>[g("\u6E05\u7A7A")]),_:1},8,["onClick"])]),s("div",Dl,[n(ue,{class:"ls-scrollbar"},{default:a(()=>[s("ul",$l,[(o(!0),c(j,null,G(t(P),l=>(o(),c("li",{class:"mb-4",key:l.id},[s("div",zl,[n(Ve,{onClose:x=>t(je)(l.id)},{default:a(()=>[n(ce,{uri:l.uri,"file-size":"100px",type:e.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):h("",!0),n(Xt,{modelValue:t(i),"onUpdate:modelValue":v[10]||(v[10]=l=>U(i)?i.value=l:null),url:t(w),type:e.type},null,8,["modelValue","url","type"])])),[[Ke,t(D).loading]])}}});const Wl=me(Rl,[["__scopeId","data-v-9cc1892d"]]);export{ce as F,Wl as _,Xt as a}; diff --git a/build/admin/assets/index.f6febbae.js b/build/admin/assets/index.c4923286.js similarity index 88% rename from build/admin/assets/index.f6febbae.js rename to build/admin/assets/index.c4923286.js index c0abe1a62..1d50cfeea 100644 --- a/build/admin/assets/index.f6febbae.js +++ b/build/admin/assets/index.c4923286.js @@ -1 +1 @@ -import{U as j,P as S,w as T,b as U,L as z}from"./element-plus.4a7d92a3.js";import{d as R,s as q}from"./workbench.b1ea8db6.js";import{h as d}from"./moment.40bc58bf.js";import{B as I}from"./vue-echarts.01ad0ec2.js";import{d as b,Z as F,r as _,i as K,o as m,c as h,U as c,L as f,a as o,u as s,j as O,R as Q,T as Z,a9 as $,S as i,K as G,Q as C}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.28c6cdcf.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const H={class:"workbench"},J={class:"mb-6 flex justify-between items-center"},W=o("span",{class:"text-2xl"},"\u5546\u54C1\u6982\u51B5",-1),X={class:"flex items-center text-sm"},tt=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),et={class:"flex flex-wrap"},ot=["onClick"],at={class:"mr-2"},st={class:"rounded-full p-2"},nt={class:"text-info"},rt={class:""},it={class:""},lt={class:"mb-6 flex justify-between items-center"},ut=o("span",{class:"text-2xl"},"\u5546\u54C1\u8D8B\u52BF",-1),ct={key:0,class:"text-2xl",style:{margin:"0 auto","padding-right":"67px"}},mt=b({name:"product"}),Gt=b({...mt,setup(pt){const B=[{text:"\u8FD1\u4E00\u5468",value:()=>{const e=new Date,t=new Date;return t.setDate(t.getDate()-7),[t,e]}},{text:"\u672C\u6708",value:()=>{const e=new Date,t=new Date;return t.setDate(1),e.setMonth(e.getMonth()+1),e.setDate(0),[t,e]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const e=new Date,t=new Date;return t.setMonth(t.getMonth()-1),[t,e]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const e=new Date,t=new Date;return t.setMonth(t.getMonth()-3),[t,e]}}],u=F({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:[{type:"value",name:"\u91D1\u989D",position:"right",axisLabel:{formatter:"{value}"}},{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}}],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),v=new Date,D=v.getFullYear(),y=v.getMonth()+1,Y=new Date(D,y-1,1),M=new Date(D,y,0),l=_([Y,M]),w=_([]),g=_(0),x=_(""),a=F({product_id:"",start_time:"",end_time:"",page_no:1,page_size:10}),p=()=>{a.start_time=d(l.value[0]).format("YYYY-MM-DD"),a.end_time=d(l.value[1]).format("YYYY-MM-DD"),R(a).then(e=>{w.value=e.lists,g.value=e.count})},k=e=>{a.page_no=e,p()},L=e=>{a.start_time=d(l.value[0]).format("YYYY-MM-DD"),a.end_time=d(l.value[1]).format("YYYY-MM-DD"),a.product_id=e.product_id,x.value=e.store_name,q(a).then(t=>{u.xAxis.data=[],u.series=[],u.legend.data=t.series.map(r=>r.name),t.xAxis.forEach(r=>{u.xAxis.data.push(r)}),u.series=t.series.map(r=>({type:"line",smooth:!0,data:r.value,name:r.name}))})};return K(()=>{p()}),(e,t)=>{const r=j,V=T,A=U,P=S,E=z;return m(),h("div",H,[c(E,{shadow:"never",class:"!border-none"},{default:f(()=>[o("div",J,[W,o("div",X,[tt,c(r,{modelValue:s(l),"onUpdate:modelValue":t[0]||(t[0]=n=>O(l)?l.value=n:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:B,onChange:p},null,8,["modelValue"]),c(V,{type:"primary",class:"ml-4",onClick:p},{default:f(()=>[Q("\u67E5\u8BE2")]),_:1})])]),o("div",et,[(m(!0),h(Z,null,$(s(w),(n,N)=>(m(),h("div",{class:"w-1/5 flex mb-6",key:N,onClick:dt=>L(n)},[o("div",at,[o("div",st,[c(A,{style:{width:"50px",height:"50px"},src:n.image},null,8,["src"])])]),o("div",null,[o("div",nt,i(n.store_name),1),o("div",rt," \u9500\u91CF:"+i(n.cart_num)+i(n.unit_name)+"|\u603B\u4EF7:"+i(n.total_price),1),o("div",it,"\u89C4\u683C:"+i(n.store_info),1)])],8,ot))),128))]),s(g)>10?(m(),G(P,{key:0,background:"",layout:"prev, pager, next",total:s(g),onChange:k,style:{"margin-right":"56px","margin-bottom":"11px",float:"right"}},null,8,["total"])):C("",!0)]),_:1}),c(E,{shadow:"never",class:"mt-4 !border-none"},{default:f(()=>[o("div",lt,[ut,s(x)?(m(),h("span",ct,i(s(x))+" "+i(s(a).start_time)+" - "+i(s(a).end_time),1)):C("",!0)]),o("div",null,[c(s(I),{style:{height:"400px"},option:s(u),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Gt as default}; +import{U as j,P as S,w as T,b as U,L as z}from"./element-plus.a63a26dd.js";import{d as R,s as q}from"./workbench.1c4b1ac8.js";import{h as d}from"./moment.40bc58bf.js";import{B as I}from"./vue-echarts.01ad0ec2.js";import{d as b,Z as F,r as _,i as K,o as m,c as h,U as c,L as f,a as o,u as s,j as O,R as Q,T as Z,a9 as $,S as i,K as G,Q as C}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.79885fb7.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const H={class:"workbench"},J={class:"mb-6 flex justify-between items-center"},W=o("span",{class:"text-2xl"},"\u5546\u54C1\u6982\u51B5",-1),X={class:"flex items-center text-sm"},tt=o("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),et={class:"flex flex-wrap"},ot=["onClick"],at={class:"mr-2"},st={class:"rounded-full p-2"},nt={class:"text-info"},rt={class:""},it={class:""},lt={class:"mb-6 flex justify-between items-center"},ut=o("span",{class:"text-2xl"},"\u5546\u54C1\u8D8B\u52BF",-1),ct={key:0,class:"text-2xl",style:{margin:"0 auto","padding-right":"67px"}},mt=b({name:"product"}),Gt=b({...mt,setup(pt){const B=[{text:"\u8FD1\u4E00\u5468",value:()=>{const e=new Date,t=new Date;return t.setDate(t.getDate()-7),[t,e]}},{text:"\u672C\u6708",value:()=>{const e=new Date,t=new Date;return t.setDate(1),e.setMonth(e.getMonth()+1),e.setDate(0),[t,e]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const e=new Date,t=new Date;return t.setMonth(t.getMonth()-1),[t,e]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const e=new Date,t=new Date;return t.setMonth(t.getMonth()-3),[t,e]}}],u=F({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:[{type:"value",name:"\u91D1\u989D",position:"right",axisLabel:{formatter:"{value}"}},{type:"value",name:"\u6570\u91CF",position:"left",axisLabel:{formatter:"{value}"}}],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),v=new Date,D=v.getFullYear(),y=v.getMonth()+1,Y=new Date(D,y-1,1),M=new Date(D,y,0),l=_([Y,M]),w=_([]),g=_(0),x=_(""),a=F({product_id:"",start_time:"",end_time:"",page_no:1,page_size:10}),p=()=>{a.start_time=d(l.value[0]).format("YYYY-MM-DD"),a.end_time=d(l.value[1]).format("YYYY-MM-DD"),R(a).then(e=>{w.value=e.lists,g.value=e.count})},k=e=>{a.page_no=e,p()},L=e=>{a.start_time=d(l.value[0]).format("YYYY-MM-DD"),a.end_time=d(l.value[1]).format("YYYY-MM-DD"),a.product_id=e.product_id,x.value=e.store_name,q(a).then(t=>{u.xAxis.data=[],u.series=[],u.legend.data=t.series.map(r=>r.name),t.xAxis.forEach(r=>{u.xAxis.data.push(r)}),u.series=t.series.map(r=>({type:"line",smooth:!0,data:r.value,name:r.name}))})};return K(()=>{p()}),(e,t)=>{const r=j,V=T,A=U,P=S,E=z;return m(),h("div",H,[c(E,{shadow:"never",class:"!border-none"},{default:f(()=>[o("div",J,[W,o("div",X,[tt,c(r,{modelValue:s(l),"onUpdate:modelValue":t[0]||(t[0]=n=>O(l)?l.value=n:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:B,onChange:p},null,8,["modelValue"]),c(V,{type:"primary",class:"ml-4",onClick:p},{default:f(()=>[Q("\u67E5\u8BE2")]),_:1})])]),o("div",et,[(m(!0),h(Z,null,$(s(w),(n,N)=>(m(),h("div",{class:"w-1/5 flex mb-6",key:N,onClick:dt=>L(n)},[o("div",at,[o("div",st,[c(A,{style:{width:"50px",height:"50px"},src:n.image},null,8,["src"])])]),o("div",null,[o("div",nt,i(n.store_name),1),o("div",rt," \u9500\u91CF:"+i(n.cart_num)+i(n.unit_name)+"|\u603B\u4EF7:"+i(n.total_price),1),o("div",it,"\u89C4\u683C:"+i(n.store_info),1)])],8,ot))),128))]),s(g)>10?(m(),G(P,{key:0,background:"",layout:"prev, pager, next",total:s(g),onChange:k,style:{"margin-right":"56px","margin-bottom":"11px",float:"right"}},null,8,["total"])):C("",!0)]),_:1}),c(E,{shadow:"never",class:"mt-4 !border-none"},{default:f(()=>[o("div",lt,[ut,s(x)?(m(),h("span",ct,i(s(x))+" "+i(s(a).start_time)+" - "+i(s(a).end_time),1)):C("",!0)]),o("div",null,[c(s(I),{style:{height:"400px"},option:s(u),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Gt as default}; diff --git a/build/admin/assets/index.b59d36d1.js b/build/admin/assets/index.ca20faf9.js similarity index 82% rename from build/admin/assets/index.b59d36d1.js rename to build/admin/assets/index.ca20faf9.js index b06493e85..74392b2fa 100644 --- a/build/admin/assets/index.b59d36d1.js +++ b/build/admin/assets/index.ca20faf9.js @@ -1 +1 @@ -import{$ as A,C as I,D as M,J as O,K as q,w as J,F as Q,L as Z,M as G,N as H,O as W}from"./element-plus.4a7d92a3.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as Y,b as ee}from"./index.28c6cdcf.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{d as h,s as oe,r as ae,Z as le,ap as se,o as r,c as ne,U as e,L as o,u as t,aa as g,R as m,a as k,M as v,K as c,S as ue,j as ie,Q as re,n as D}from"./@vue.18505fe0.js";import{c as V,d as me}from"./post.4ce5711b.js";import{u as pe}from"./usePaging.6a6670f9.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_lang.338ce783.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"post-lists"},_e={class:"flex justify-end mt-4"},fe=h({name:"post"}),tt=h({...fe,setup(be){const _=oe(),f=ae(!1),s=le({code:"",name:"",status:""}),{pager:i,getLists:b,resetPage:F,resetParams:x}=pe({fetchFun:V,params:s}),B=async()=>{var n;f.value=!0,await D(),(n=_.value)==null||n.open("add")},$=async n=>{var a,p;f.value=!0,await D(),(a=_.value)==null||a.open("edit"),(p=_.value)==null||p.getDetail(n)},j=async n=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:n}),b()};return b(),(n,a)=>{const p=I,C=M,w=O,K=q,d=J,R=te,L=Q,E=Z,N=ee,u=G,P=A,S=H,T=X,y=se("perms"),U=W;return r(),ne("div",ce,[e(E,{class:"!border-none",shadow:"never"},{default:o(()=>[e(L,{ref:"formRef",class:"mb-[-16px]",model:t(s),inline:!0},{default:o(()=>[e(C,{label:"\u5C97\u4F4D\u7F16\u7801"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:t(s).code,"onUpdate:modelValue":a[0]||(a[0]=l=>t(s).code=l),clearable:"",onKeyup:g(t(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5C97\u4F4D\u540D\u79F0"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:t(s).name,"onUpdate:modelValue":a[1]||(a[1]=l=>t(s).name=l),clearable:"",onKeyup:g(t(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5C97\u4F4D\u72B6\u6001"},{default:o(()=>[e(K,{class:"w-[280px]",modelValue:t(s).status,"onUpdate:modelValue":a[2]||(a[2]=l=>t(s).status=l)},{default:o(()=>[e(w,{label:"\u5168\u90E8",value:""}),e(w,{label:"\u6B63\u5E38",value:1}),e(w,{label:"\u505C\u7528",value:0})]),_:1},8,["modelValue"])]),_:1}),e(C,null,{default:o(()=>[e(d,{type:"primary",onClick:t(F)},{default:o(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(x)},{default:o(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":t(V),params:t(s),"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(E,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[k("div",null,[v((r(),c(d,{type:"primary",onClick:a[3]||(a[3]=l=>B())},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[m(" \u65B0\u589E ")]),_:1})),[[y,["dept.jobs/add"]]])]),v((r(),c(S,{class:"mt-4",size:"large",data:t(i).lists},{default:o(()=>[e(u,{label:"\u5C97\u4F4D\u7F16\u7801",prop:"code","min-width":"100"}),e(u,{label:"\u5C97\u4F4D\u540D\u79F0",prop:"name","min-width":"100"}),e(u,{label:"\u6392\u5E8F",prop:"sort","min-width":"100"}),e(u,{label:"\u5907\u6CE8",prop:"remark","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u6DFB\u52A0\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(u,{label:"\u72B6\u6001",prop:"status","min-width":"100"},{default:o(({row:l})=>[e(P,{class:"ml-2",type:l.status?"":"danger"},{default:o(()=>[m(ue(l.status_desc),1)]),_:2},1032,["type"])]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[v((r(),c(d,{type:"primary",link:"",onClick:z=>$(l)},{default:o(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["dept.jobs/edit"]]]),v((r(),c(d,{type:"danger",link:"",onClick:z=>j(l.id)},{default:o(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["dept.jobs/delete"]]])]),_:1})]),_:1},8,["data"])),[[U,t(i).loading]]),k("div",_e,[e(T,{modelValue:t(i),"onUpdate:modelValue":a[4]||(a[4]=l=>ie(i)?i.value=l:null),onChange:t(b)},null,8,["modelValue","onChange"])])]),_:1}),t(f)?(r(),c(de,{key:0,ref_key:"editRef",ref:_,onSuccess:t(b),onClose:a[5]||(a[5]=l=>f.value=!1)},null,8,["onSuccess"])):re("",!0)])}}});export{tt as default}; +import{$ as A,C as I,D as M,J as O,K as q,w as J,F as Q,L as Z,M as G,N as H,O as W}from"./element-plus.a63a26dd.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as Y,b as ee}from"./index.79885fb7.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{d as h,s as oe,r as ae,Z as le,ap as se,o as r,c as ne,U as e,L as o,u as t,aa as g,R as m,a as k,M as v,K as c,S as ue,j as ie,Q as re,n as D}from"./@vue.18505fe0.js";import{c as V,d as me}from"./post.5fcb5de3.js";import{u as pe}from"./usePaging.6a6670f9.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_lang.358d8e8d.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"post-lists"},_e={class:"flex justify-end mt-4"},fe=h({name:"post"}),tt=h({...fe,setup(be){const _=oe(),f=ae(!1),s=le({code:"",name:"",status:""}),{pager:i,getLists:b,resetPage:F,resetParams:x}=pe({fetchFun:V,params:s}),B=async()=>{var n;f.value=!0,await D(),(n=_.value)==null||n.open("add")},$=async n=>{var a,p;f.value=!0,await D(),(a=_.value)==null||a.open("edit"),(p=_.value)==null||p.getDetail(n)},j=async n=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:n}),b()};return b(),(n,a)=>{const p=I,C=M,w=O,K=q,d=J,R=te,L=Q,E=Z,N=ee,u=G,P=A,S=H,T=X,y=se("perms"),U=W;return r(),ne("div",ce,[e(E,{class:"!border-none",shadow:"never"},{default:o(()=>[e(L,{ref:"formRef",class:"mb-[-16px]",model:t(s),inline:!0},{default:o(()=>[e(C,{label:"\u5C97\u4F4D\u7F16\u7801"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:t(s).code,"onUpdate:modelValue":a[0]||(a[0]=l=>t(s).code=l),clearable:"",onKeyup:g(t(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5C97\u4F4D\u540D\u79F0"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:t(s).name,"onUpdate:modelValue":a[1]||(a[1]=l=>t(s).name=l),clearable:"",onKeyup:g(t(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5C97\u4F4D\u72B6\u6001"},{default:o(()=>[e(K,{class:"w-[280px]",modelValue:t(s).status,"onUpdate:modelValue":a[2]||(a[2]=l=>t(s).status=l)},{default:o(()=>[e(w,{label:"\u5168\u90E8",value:""}),e(w,{label:"\u6B63\u5E38",value:1}),e(w,{label:"\u505C\u7528",value:0})]),_:1},8,["modelValue"])]),_:1}),e(C,null,{default:o(()=>[e(d,{type:"primary",onClick:t(F)},{default:o(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(x)},{default:o(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":t(V),params:t(s),"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(E,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[k("div",null,[v((r(),c(d,{type:"primary",onClick:a[3]||(a[3]=l=>B())},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[m(" \u65B0\u589E ")]),_:1})),[[y,["dept.jobs/add"]]])]),v((r(),c(S,{class:"mt-4",size:"large",data:t(i).lists},{default:o(()=>[e(u,{label:"\u5C97\u4F4D\u7F16\u7801",prop:"code","min-width":"100"}),e(u,{label:"\u5C97\u4F4D\u540D\u79F0",prop:"name","min-width":"100"}),e(u,{label:"\u6392\u5E8F",prop:"sort","min-width":"100"}),e(u,{label:"\u5907\u6CE8",prop:"remark","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u6DFB\u52A0\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(u,{label:"\u72B6\u6001",prop:"status","min-width":"100"},{default:o(({row:l})=>[e(P,{class:"ml-2",type:l.status?"":"danger"},{default:o(()=>[m(ue(l.status_desc),1)]),_:2},1032,["type"])]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[v((r(),c(d,{type:"primary",link:"",onClick:z=>$(l)},{default:o(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["dept.jobs/edit"]]]),v((r(),c(d,{type:"danger",link:"",onClick:z=>j(l.id)},{default:o(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["dept.jobs/delete"]]])]),_:1})]),_:1},8,["data"])),[[U,t(i).loading]]),k("div",_e,[e(T,{modelValue:t(i),"onUpdate:modelValue":a[4]||(a[4]=l=>ie(i)?i.value=l:null),onChange:t(b)},null,8,["modelValue","onChange"])])]),_:1}),t(f)?(r(),c(de,{key:0,ref_key:"editRef",ref:_,onSuccess:t(b),onClose:a[5]||(a[5]=l=>f.value=!1)},null,8,["onSuccess"])):re("",!0)])}}});export{tt as default}; diff --git a/build/admin/assets/index.810a2ef5.js b/build/admin/assets/index.d29eed2d.js similarity index 84% rename from build/admin/assets/index.810a2ef5.js rename to build/admin/assets/index.d29eed2d.js index d09b18662..5785c778d 100644 --- a/build/admin/assets/index.810a2ef5.js +++ b/build/admin/assets/index.d29eed2d.js @@ -1 +1 @@ -import{C as N,D as R,w as S,F as P,L as $,M as z,N as M,O as T}from"./element-plus.4a7d92a3.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{u as q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.b08aa554.js";import{d as w}from"./store_extract.74473b44.js";import"./lodash.9dc701ad.js";import"./index.28c6cdcf.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_name_storeExtractEdit_lang.bcb3019c.js";import{d as E,s as Q,r as b,Z,i as G,o as m,c as H,U as e,L as l,u as o,R as B,M as J,K as F,a as v,j as W,Q as X}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const Y={class:"mt-4"},ee={class:"flex mt-4 justify-end"},oe=E({name:"storeExtractLists"}),Ie=E({...oe,setup(te){const C=Q(),d=b(!1),a=Z({store_id:"",extract_type:"",status:"",pay_status:"",create_time:""}),h=b([]),V=c=>{h.value=c.map(({id:t})=>t)},{dictData:x}=K(""),{pager:r,getLists:i,resetParams:y,resetPage:g}=q({fetchFun:w,params:a});return G(()=>{i()}),(c,t)=>{const n=N,p=R,_=S,D=I,k=P,f=$,s=z,L=M,U=j,A=T;return m(),H("div",null,[e(f,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(k,{class:"mb-[-16px]",model:o(a),inline:""},{default:l(()=>[e(p,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).store_id,"onUpdate:modelValue":t[0]||(t[0]=u=>o(a).store_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u6536\u6B3E\u65B9\u5F0F",prop:"extract_type"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).extract_type,"onUpdate:modelValue":t[1]||(t[1]=u=>o(a).extract_type=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).status,"onUpdate:modelValue":t[2]||(t[2]=u=>o(a).status=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).pay_status,"onUpdate:modelValue":t[3]||(t[3]=u=>o(a).pay_status=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8F6C\u8D26\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(_,{type:"primary",onClick:o(g)},{default:l(()=>[B("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:o(y)},{default:l(()=>[B("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(D,{class:"ml-2.5","fetch-fun":o(w),params:o(a),"page-size":o(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),J((m(),F(f,{class:"!border-none",shadow:"never"},{default:l(()=>[v("div",Y,[e(L,{data:o(r).lists,onSelectionChange:V},{default:l(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"id",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(s,{label:"\u63D0\u73B0\u91D1\u989D",prop:"extract_price","show-overflow-tooltip":""}),e(s,{label:"openid",prop:"openid","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(s,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status","show-overflow-tooltip":""}),e(s,{label:"\u7BA1\u7406\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),v("div",ee,[e(U,{modelValue:o(r),"onUpdate:modelValue":t[4]||(t[4]=u=>W(r)?r.value=u:null),onChange:o(i)},null,8,["modelValue","onChange"])])]),_:1})),[[A,o(r).loading]]),o(d)?(m(),F(O,{key:0,ref_key:"editRef",ref:C,"dict-data":o(x),onSuccess:o(i),onClose:t[5]||(t[5]=u=>d.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});export{Ie as default}; +import{C as N,D as R,w as S,F as P,L as $,M as z,N as M,O as T}from"./element-plus.a63a26dd.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{u as q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.1ff41454.js";import{d as w}from"./store_extract.cf9cd881.js";import"./lodash.2473fc51.js";import"./index.79885fb7.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_name_storeExtractEdit_lang.ed31c4c5.js";import{d as E,s as Q,r as b,Z,i as G,o as m,c as H,U as e,L as l,u as o,R as B,M as J,K as F,a as v,j as W,Q as X}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const Y={class:"mt-4"},ee={class:"flex mt-4 justify-end"},oe=E({name:"storeExtractLists"}),Ie=E({...oe,setup(te){const C=Q(),d=b(!1),a=Z({store_id:"",extract_type:"",status:"",pay_status:"",create_time:""}),h=b([]),V=c=>{h.value=c.map(({id:t})=>t)},{dictData:x}=K(""),{pager:r,getLists:i,resetParams:y,resetPage:g}=q({fetchFun:w,params:a});return G(()=>{i()}),(c,t)=>{const n=N,p=R,_=S,D=I,k=P,f=$,s=z,L=M,U=j,A=T;return m(),H("div",null,[e(f,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(k,{class:"mb-[-16px]",model:o(a),inline:""},{default:l(()=>[e(p,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).store_id,"onUpdate:modelValue":t[0]||(t[0]=u=>o(a).store_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u6536\u6B3E\u65B9\u5F0F",prop:"extract_type"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).extract_type,"onUpdate:modelValue":t[1]||(t[1]=u=>o(a).extract_type=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u65B9\u5F0F"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).status,"onUpdate:modelValue":t[2]||(t[2]=u=>o(a).status=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(a).pay_status,"onUpdate:modelValue":t[3]||(t[3]=u=>o(a).pay_status=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8F6C\u8D26\u72B6\u6001"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(_,{type:"primary",onClick:o(g)},{default:l(()=>[B("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:o(y)},{default:l(()=>[B("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(D,{class:"ml-2.5","fetch-fun":o(w),params:o(a),"page-size":o(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),J((m(),F(f,{class:"!border-none",shadow:"never"},{default:l(()=>[v("div",Y,[e(L,{data:o(r).lists,onSelectionChange:V},{default:l(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"id",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(s,{label:"\u63D0\u73B0\u91D1\u989D",prop:"extract_price","show-overflow-tooltip":""}),e(s,{label:"openid",prop:"openid","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u5BA1\u6838\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(s,{label:"\u8F6C\u8D26\u72B6\u6001",prop:"pay_status","show-overflow-tooltip":""}),e(s,{label:"\u7BA1\u7406\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),v("div",ee,[e(U,{modelValue:o(r),"onUpdate:modelValue":t[4]||(t[4]=u=>W(r)?r.value=u:null),onChange:o(i)},null,8,["modelValue","onChange"])])]),_:1})),[[A,o(r).loading]]),o(d)?(m(),F(O,{key:0,ref_key:"editRef",ref:C,"dict-data":o(x),onSuccess:o(i),onClose:t[5]||(t[5]=u=>d.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});export{Ie as default}; diff --git a/build/admin/assets/index.d3b68d04.js b/build/admin/assets/index.d3b68d04.js deleted file mode 100644 index 39b254b2e..000000000 --- a/build/admin/assets/index.d3b68d04.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as ee,C as oe,D as te,J as ae,K as le,w as se,F as ue,L as ne,M as re,b as ie,t as pe,N as de,O as me}from"./element-plus.4a7d92a3.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{d as I,s as fe,r as g,Z as he,i as we,af as ve,ap as Ce,o as d,c as be,U as e,L as a,u as o,aa as ge,R as m,M as f,K as _,a as A,j as ye,Q as Ee,n as Fe}from"./@vue.18505fe0.js";import{u as ke}from"./usePaging.6a6670f9.js";import{u as Ve}from"./useDictOptions.b08aa554.js";import{a as q,g as Be,h as De}from"./store_product.8e022f19.js";import"./lodash.9dc701ad.js";import{f as xe}from"./index.28c6cdcf.js";import{_ as Se}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.ee4708c3.js";import{_ as Pe}from"./copy.vue_vue_type_script_setup_true_name_storeProductEdit_lang.9ef76e14.js";import{a as $e}from"./store_category.fc260137.js";import{u as ze}from"./vue-router.101084e3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./system_store.6d454f9d.js";import"./warehouse_product_storege.224b265e.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfc949e2.js";const Le={class:"mt-4"},Re={class:"flex mt-4 justify-end"},Ue=I({name:"storeProductLists"}),xo=I({...Ue,setup(Ae){const P=ze(),y=fe(),E=g(null),F=g(!1),n=he({store_name:"",class_all:"",is_show:"",bar_code:""}),k=g([]),K=s=>{k.value=s.map(({id:t})=>t)};Ve("");let $=1;P.query.page_no&&($=parseInt(P.query.page_no));const{pager:c,getLists:C,resetParams:N,resetPage:b}=ke({page:$,fetchFun:q,params:n}),T=async s=>{var t,r;(t=E.value)==null||t.open(),(r=E.value)==null||r.setFormData(s)},M=async s=>{var t,r;F.value=!0,await Fe(),(t=y.value)==null||t.open("edit"),(r=y.value)==null||r.setFormData(s)};let V,B;const D=g(!1);let x;const j=s=>(x=s,D.value=!0,z.lazyLoad(B,V),!1),z={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(s,t){V||(V=t),B||(B=s);const r=s.value||0;let i={};D.value?(i={name:x},x||(i={pid:r,page_size:1e4})):i={pid:r,page_size:1e4},$e({...i}).then(S=>{t(S.lists.map(h=>(h.leaf=!0,D.value=!1,h)))})}},O=s=>{Be({id:s.id,is_show:s.is_show})},L=async s=>{await xe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await De({id:s}),C()};return we(()=>{C()}),(s,t)=>{const r=oe,i=te,S=ee,h=ae,J=le,p=se,Q=_e,Z=ue,R=ne,U=ve("router-link"),u=re,G=ie,H=pe,W=de,X=ce,w=Ce("perms"),Y=me;return d(),be("div",null,[e(R,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(Z,{class:"mb-[-16px]",model:o(n),inline:""},{default:a(()=>[e(i,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(r,{class:"w-[280px]",onKeydown:ge(o(b),["enter"]),modelValue:o(n).store_name,"onUpdate:modelValue":t[0]||(t[0]=l=>o(n).store_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:o(n).bar_code,"onUpdate:modelValue":t[1]||(t[1]=l=>o(n).bar_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u5206\u7C7B",prop:"store_name"},{default:a(()=>[e(S,{class:"w-[280px]",modelValue:o(n).class_all,"onUpdate:modelValue":t[2]||(t[2]=l=>o(n).class_all=l),filterable:"",clearable:"","before-filter":j,props:z,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B",onChange:o(b)},null,8,["modelValue","onChange"])]),_:1}),e(i,{label:"\u663E\u793A",prop:"is_show"},{default:a(()=>[e(J,{modelValue:o(n).is_show,"onUpdate:modelValue":t[3]||(t[3]=l=>o(n).is_show=l),placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u663E\u793A",style:{width:"240px"},onChange:o(b)},{default:a(()=>[e(h,{label:"\u663E\u793A",value:"1"}),e(h,{label:"\u4E0D\u663E\u793A",value:"0"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(i,null,{default:a(()=>[e(p,{type:"primary",onClick:o(b)},{default:a(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:o(N)},{default:a(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(Q,{class:"ml-2.5","fetch-fun":o(q),params:o(n),"page-size":o(c).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((d(),_(R,{class:"!border-none",shadow:"never"},{default:a(()=>[f((d(),_(U,{to:{path:"store_product_edit",query:{id:0,mode:"add"}},class:"mr-4"},{default:a(()=>[e(p,{type:"primary",icon:"Plus"},{default:a(()=>[m(" \u65B0\u589E ")]),_:1})]),_:1})),[[w,["store_product.store_product/add"]]]),f((d(),_(p,{disabled:!o(k).length,onClick:t[4]||(t[4]=l=>L(o(k)))},{default:a(()=>[m(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["store_product.store_product/delete"]]]),A("div",Le,[e(W,{data:o(c).lists,onSelectionChange:K},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:l})=>[e(G,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(u,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(u,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u5546\u6237\u4EF7",prop:"cost","min-width":"120","show-overflow-tooltip":""}),e(u,{label:"\u96F6\u552E\u4EF7",prop:"price","min-width":"120","show-overflow-tooltip":""}),e(u,{label:"\u8D77\u6279\u91CF",prop:"batch","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u552E\u5356\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u9500\u91CF",prop:"sales","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u72B6\u6001",prop:"is_show"},{default:a(({row:l})=>[e(H,{size:"large",onChange:v=>O(l),modelValue:l.is_show,"onUpdate:modelValue":v=>l.is_show=v,"active-value":1,"inactive-value":0,"active-text":"\u4E0A\u67B6","inactive-text":"\u4E0B\u67B6","inline-prompt":""},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u6761\u7801",prop:"bar_code","min-width":"200","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"180",fixed:"right"},{default:a(({row:l})=>[f((d(),_(U,{to:{path:"store_product_edit",query:{id:l.id,mode:"edit",page:o(c).page}},class:"mr-4"},{default:a(()=>[e(p,{type:"primary",link:""},{default:a(()=>[m(" \u7F16\u8F91 ")]),_:1})]),_:2},1032,["to"])),[[w,["store_product.store_product/edit"]]]),f((d(),_(p,{type:"primary",link:"",onClick:v=>T(l)},{default:a(()=>[m(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[w,["store_product.store_product/edit"]]]),e(p,{type:"primary",link:"",onClick:v=>M(l)},{default:a(()=>[m(" \u590D\u5236 ")]),_:2},1032,["onClick"]),f((d(),_(p,{type:"danger",link:"",onClick:v=>L(l.id)},{default:a(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["store_product.store_product/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",Re,[e(X,{modelValue:o(c),"onUpdate:modelValue":t[5]||(t[5]=l=>ye(c)?c.value=l:null),onChange:o(C)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,o(c).loading]]),e(Se,{ref_key:"detailsRef",ref:E},null,512),o(F)?(d(),_(Pe,{key:0,ref_key:"copyRef",ref:y,onSuccess:o(C),onClose:t[6]||(t[6]=l=>F.value=!1)},null,8,["onSuccess"])):Ee("",!0)])}}});export{xo as default}; diff --git a/build/admin/assets/index.3a7842da.js b/build/admin/assets/index.d641df97.js similarity index 92% rename from build/admin/assets/index.3a7842da.js rename to build/admin/assets/index.d641df97.js index f1e808bfd..d1f9dc921 100644 --- a/build/admin/assets/index.3a7842da.js +++ b/build/admin/assets/index.d641df97.js @@ -1 +1 @@ -import{S as N,T as S,J as T,K as U,D as j,C as R,w as $,F as I,L as K,M,N as O,O as q}from"./element-plus.4a7d92a3.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as J}from"./usePaging.6a6670f9.js";import{d as b,Z,r as z,o as E,c as G,U as e,L as o,u as s,R as i,M as H,K as Q,a as C,j as W}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";const X={class:"mt-4"},Y={class:"flex mt-4 justify-end"},ee=b({name:"manageProjectLists"}),fe=b({...ee,setup(oe){const a=Z({status:""}),v=z([]),D=c=>{v.value=c.map(({id:l})=>l)},{pager:n,getLists:F,resetParams:g,resetPage:w}=J({params:a}),m=async c=>{};return(c,l)=>{const r=T,h=U,_=j,d=N,B=R,p=$,k=S,V=I,f=K,u=M,x=O,y=A,L=q;return E(),G("div",null,[e(f,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(V,{class:"mb-[-16px]",model:a,"label-width":"80px"},{default:o(()=>[e(k,null,{default:o(()=>[e(d,{span:6},{default:o(()=>[e(_,{label:"\u968F\u4FBF\u641C"},{default:o(()=>[e(h,{class:"flex-1",modelValue:a.status,"onUpdate:modelValue":l[0]||(l[0]=t=>a.status=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u72B6\u6001"},{default:o(()=>[e(r,{label:"\u9500\u552E\u4E2D",value:0}),e(r,{label:"\u4ED3\u5E93\u4E2D",value:0}),e(r,{label:"\u5DF2\u552E\u7F44",value:0}),e(r,{label:"\u5E93\u5B58\u9884\u8B66",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:o(()=>[e(_,{label:"\u968F\u4FBF\u641C",prop:"nature"},{default:o(()=>[e(B,{modelValue:a.status,"onUpdate:modelValue":l[1]||(l[1]=t=>a.status=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:o(()=>[e(_,null,{default:o(()=>[e(p,{type:"primary",onClick:s(w)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:s(g)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),H((E(),Q(f,{class:"!border-none",shadow:"never"},{default:o(()=>[C("div",X,[e(x,{data:s(n).lists,onSelectionChange:D},{default:o(()=>[e(u,{label:"\u5165\u8D26\u95E8\u5E97",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u5165\u8D26\u65F6\u95F4",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u5E94\u5165\u5E10\u91D1\u989D",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u5DF2\u5165\u8D26\u91D1\u989D",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u672A\u5165\u8D26\u91D1\u989D",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:t})=>[e(p,{type:"primary",link:"",onClick:P=>m(t)},{default:o(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(p,{type:"primary",link:"",onClick:P=>m(t)},{default:o(()=>[i(" \u8D77\u7801\u5B50 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),C("div",Y,[e(y,{modelValue:s(n),"onUpdate:modelValue":l[2]||(l[2]=t=>W(n)?n.value=t:null),onChange:s(F)},null,8,["modelValue","onChange"])])]),_:1})),[[L,s(n).loading]])])}}});export{fe as default}; +import{S as N,T as S,J as T,K as U,D as j,C as R,w as $,F as I,L as K,M,N as O,O as q}from"./element-plus.a63a26dd.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as J}from"./usePaging.6a6670f9.js";import{d as b,Z,r as z,o as E,c as G,U as e,L as o,u as s,R as i,M as H,K as Q,a as C,j as W}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";const X={class:"mt-4"},Y={class:"flex mt-4 justify-end"},ee=b({name:"manageProjectLists"}),fe=b({...ee,setup(oe){const a=Z({status:""}),v=z([]),D=c=>{v.value=c.map(({id:l})=>l)},{pager:n,getLists:F,resetParams:g,resetPage:w}=J({params:a}),m=async c=>{};return(c,l)=>{const r=T,h=U,_=j,d=N,B=R,p=$,k=S,V=I,f=K,u=M,x=O,y=A,L=q;return E(),G("div",null,[e(f,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(V,{class:"mb-[-16px]",model:a,"label-width":"80px"},{default:o(()=>[e(k,null,{default:o(()=>[e(d,{span:6},{default:o(()=>[e(_,{label:"\u968F\u4FBF\u641C"},{default:o(()=>[e(h,{class:"flex-1",modelValue:a.status,"onUpdate:modelValue":l[0]||(l[0]=t=>a.status=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u72B6\u6001"},{default:o(()=>[e(r,{label:"\u9500\u552E\u4E2D",value:0}),e(r,{label:"\u4ED3\u5E93\u4E2D",value:0}),e(r,{label:"\u5DF2\u552E\u7F44",value:0}),e(r,{label:"\u5E93\u5B58\u9884\u8B66",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:o(()=>[e(_,{label:"\u968F\u4FBF\u641C",prop:"nature"},{default:o(()=>[e(B,{modelValue:a.status,"onUpdate:modelValue":l[1]||(l[1]=t=>a.status=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:o(()=>[e(_,null,{default:o(()=>[e(p,{type:"primary",onClick:s(w)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:s(g)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),H((E(),Q(f,{class:"!border-none",shadow:"never"},{default:o(()=>[C("div",X,[e(x,{data:s(n).lists,onSelectionChange:D},{default:o(()=>[e(u,{label:"\u5165\u8D26\u95E8\u5E97",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u5165\u8D26\u65F6\u95F4",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u5E94\u5165\u5E10\u91D1\u989D",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u5DF2\u5165\u8D26\u91D1\u989D",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u672A\u5165\u8D26\u91D1\u989D",prop:"progress","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:t})=>[e(p,{type:"primary",link:"",onClick:P=>m(t)},{default:o(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(p,{type:"primary",link:"",onClick:P=>m(t)},{default:o(()=>[i(" \u8D77\u7801\u5B50 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),C("div",Y,[e(y,{modelValue:s(n),"onUpdate:modelValue":l[2]||(l[2]=t=>W(n)?n.value=t:null),onChange:s(F)},null,8,["modelValue","onChange"])])]),_:1})),[[L,s(n).loading]])])}}});export{fe as default}; diff --git a/build/admin/assets/index.41a58160.js b/build/admin/assets/index.d79601c6.js similarity index 74% rename from build/admin/assets/index.41a58160.js rename to build/admin/assets/index.d79601c6.js index 6949c860f..3318fd941 100644 --- a/build/admin/assets/index.41a58160.js +++ b/build/admin/assets/index.d79601c6.js @@ -1 +1 @@ -import{w as T,M as j,N as M,L as P,O as U}from"./element-plus.4a7d92a3.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as I,b as K}from"./index.28c6cdcf.js";import{c as O,d as Q}from"./role.fdeae050.js";import{u as q}from"./usePaging.6a6670f9.js";import{_ as G}from"./edit.vue_vue_type_script_setup_true_lang.2d1ecd0f.js";import{_ as H}from"./auth.vue_vue_type_script_setup_true_lang.ae38cb26.js";import{d as D,s as F,r as g,ap as J,o as a,c as E,U as t,L as i,a as C,M as c,K as u,R as h,u as n,j as W,Q as B,n as y}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./menu.a402a18b.js";const X={class:"role-lists"},Y={class:"mt-4"},Z={class:"flex justify-end mt-4"},ee=D({name:"role"}),ze=D({...ee,setup(te){const d=F(),k=F(),_=g(!1),w=g(!1),{pager:m,getLists:p}=q({fetchFun:Q}),$=async()=>{var o;_.value=!0,await y(),(o=d.value)==null||o.open("add")},x=async o=>{var e,l;_.value=!0,await y(),(e=d.value)==null||e.open("edit"),(l=d.value)==null||l.setFormData(o)},A=async o=>{var e,l;w.value=!0,await y(),(e=k.value)==null||e.open(),(l=k.value)==null||l.setFormData(o)},R=async o=>{await I.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await O({id:o}),p()};return p(),(o,e)=>{const l=K,f=T,s=j,V=M,L=z,N=P,v=J("perms"),S=U;return a(),E("div",X,[t(N,{class:"!border-none",shadow:"never"},{default:i(()=>[C("div",null,[c((a(),u(f,{type:"primary",onClick:$},{icon:i(()=>[t(l,{name:"el-icon-Plus"})]),default:i(()=>[h(" \u65B0\u589E ")]),_:1})),[[v,["auth.role/add"]]])]),c((a(),E("div",Y,[C("div",null,[t(V,{data:n(m).lists,size:"large"},{default:i(()=>[t(s,{prop:"id",label:"ID","min-width":"100"}),t(s,{prop:"name",label:"\u540D\u79F0","min-width":"150"}),t(s,{prop:"desc",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""}),t(s,{prop:"sort",label:"\u6392\u5E8F","min-width":"100"}),t(s,{prop:"num",label:"\u7BA1\u7406\u5458\u4EBA\u6570","min-width":"100"}),t(s,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"180"}),t(s,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:i(({row:r})=>[c((a(),u(f,{link:"",type:"primary",onClick:b=>x(r)},{default:i(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((a(),u(f,{link:"",type:"primary",onClick:b=>A(r)},{default:i(()=>[h(" \u5206\u914D\u6743\u9650 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((a(),u(f,{link:"",type:"danger",onClick:b=>R(r.id)},{default:i(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["auth.role/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Z,[t(L,{modelValue:n(m),"onUpdate:modelValue":e[0]||(e[0]=r=>W(m)?m.value=r:null),onChange:n(p)},null,8,["modelValue","onChange"])])])),[[S,n(m).loading]])]),_:1}),n(_)?(a(),u(G,{key:0,ref_key:"editRef",ref:d,onSuccess:n(p),onClose:e[1]||(e[1]=r=>_.value=!1)},null,8,["onSuccess"])):B("",!0),n(w)?(a(),u(H,{key:1,ref_key:"authRef",ref:k,onSuccess:n(p),onClose:e[2]||(e[2]=r=>w.value=!1)},null,8,["onSuccess"])):B("",!0)])}}});export{ze as default}; +import{w as T,M as j,N as M,L as P,O as U}from"./element-plus.a63a26dd.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as I,b as K}from"./index.79885fb7.js";import{c as O,d as Q}from"./role.243de741.js";import{u as q}from"./usePaging.6a6670f9.js";import{_ as G}from"./edit.vue_vue_type_script_setup_true_lang.ce2fe29b.js";import{_ as H}from"./auth.vue_vue_type_script_setup_true_lang.2e0adcee.js";import{d as D,s as F,r as g,ap as J,o as a,c as E,U as t,L as i,a as C,M as c,K as u,R as h,u as n,j as W,Q as B,n as y}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./menu.49654f2b.js";const X={class:"role-lists"},Y={class:"mt-4"},Z={class:"flex justify-end mt-4"},ee=D({name:"role"}),ze=D({...ee,setup(te){const d=F(),k=F(),_=g(!1),w=g(!1),{pager:m,getLists:p}=q({fetchFun:Q}),$=async()=>{var o;_.value=!0,await y(),(o=d.value)==null||o.open("add")},x=async o=>{var e,l;_.value=!0,await y(),(e=d.value)==null||e.open("edit"),(l=d.value)==null||l.setFormData(o)},A=async o=>{var e,l;w.value=!0,await y(),(e=k.value)==null||e.open(),(l=k.value)==null||l.setFormData(o)},R=async o=>{await I.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await O({id:o}),p()};return p(),(o,e)=>{const l=K,f=T,s=j,V=M,L=z,N=P,v=J("perms"),S=U;return a(),E("div",X,[t(N,{class:"!border-none",shadow:"never"},{default:i(()=>[C("div",null,[c((a(),u(f,{type:"primary",onClick:$},{icon:i(()=>[t(l,{name:"el-icon-Plus"})]),default:i(()=>[h(" \u65B0\u589E ")]),_:1})),[[v,["auth.role/add"]]])]),c((a(),E("div",Y,[C("div",null,[t(V,{data:n(m).lists,size:"large"},{default:i(()=>[t(s,{prop:"id",label:"ID","min-width":"100"}),t(s,{prop:"name",label:"\u540D\u79F0","min-width":"150"}),t(s,{prop:"desc",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""}),t(s,{prop:"sort",label:"\u6392\u5E8F","min-width":"100"}),t(s,{prop:"num",label:"\u7BA1\u7406\u5458\u4EBA\u6570","min-width":"100"}),t(s,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"180"}),t(s,{label:"\u64CD\u4F5C",width:"200",fixed:"right"},{default:i(({row:r})=>[c((a(),u(f,{link:"",type:"primary",onClick:b=>x(r)},{default:i(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((a(),u(f,{link:"",type:"primary",onClick:b=>A(r)},{default:i(()=>[h(" \u5206\u914D\u6743\u9650 ")]),_:2},1032,["onClick"])),[[v,["auth.role/edit"]]]),c((a(),u(f,{link:"",type:"danger",onClick:b=>R(r.id)},{default:i(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["auth.role/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Z,[t(L,{modelValue:n(m),"onUpdate:modelValue":e[0]||(e[0]=r=>W(m)?m.value=r:null),onChange:n(p)},null,8,["modelValue","onChange"])])])),[[S,n(m).loading]])]),_:1}),n(_)?(a(),u(G,{key:0,ref_key:"editRef",ref:d,onSuccess:n(p),onClose:e[1]||(e[1]=r=>_.value=!1)},null,8,["onSuccess"])):B("",!0),n(w)?(a(),u(H,{key:1,ref_key:"authRef",ref:k,onSuccess:n(p),onClose:e[2]||(e[2]=r=>w.value=!1)},null,8,["onSuccess"])):B("",!0)])}}});export{ze as default}; diff --git a/build/admin/assets/index.23d53fad.js b/build/admin/assets/index.dd607cec.js similarity index 67% rename from build/admin/assets/index.23d53fad.js rename to build/admin/assets/index.dd607cec.js index c4e1ee521..378b42205 100644 --- a/build/admin/assets/index.23d53fad.js +++ b/build/admin/assets/index.dd607cec.js @@ -1 +1 @@ -import{x as c,y as u,L as f}from"./element-plus.4a7d92a3.js";import{_ as y}from"./index.d777fd30.js";import{d as i,r as x,o as r,c as m,U as t,L as a,u as b,j as v,T as g,a9 as E}from"./@vue.18505fe0.js";import{d as C}from"./index.28c6cdcf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import"./index.1050911c.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./usePaging.6a6670f9.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const T={class:"material-index"},V=i({name:"material"}),k=i({...V,setup(z){const n=[{type:"image",name:"\u56FE\u7247"},{type:"video",name:"\u89C6\u9891"},{type:"file",name:"\u6587\u4EF6"}],o=x("image");return(F,p)=>{const s=y,l=c,_=u,d=f;return r(),m("div",T,[t(d,{class:"!border-none",shadow:"never"},{default:a(()=>[t(_,{modelValue:b(o),"onUpdate:modelValue":p[0]||(p[0]=e=>v(o)?o.value=e:null)},{default:a(()=>[(r(),m(g,null,E(n,e=>t(l,{label:e.name,name:e.type,index:e.type,key:e.type,lazy:""},{default:a(()=>[t(s,{type:e.type,mode:"page","file-size":"120px",limit:-1,"page-size":20},null,8,["type"])]),_:2},1032,["label","name","index"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});const _e=C(k,[["__scopeId","data-v-99c14979"]]);export{_e as default}; +import{x as c,y as u,L as f}from"./element-plus.a63a26dd.js";import{_ as y}from"./index.c1432c63.js";import{d as i,r as x,o as r,c as m,U as t,L as a,u as b,j as v,T as g,a9 as E}from"./@vue.18505fe0.js";import{d as C}from"./index.79885fb7.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import"./index.a5c1d2e3.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./usePaging.6a6670f9.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const T={class:"material-index"},V=i({name:"material"}),k=i({...V,setup(z){const n=[{type:"image",name:"\u56FE\u7247"},{type:"video",name:"\u89C6\u9891"},{type:"file",name:"\u6587\u4EF6"}],o=x("image");return(F,p)=>{const s=y,l=c,_=u,d=f;return r(),m("div",T,[t(d,{class:"!border-none",shadow:"never"},{default:a(()=>[t(_,{modelValue:b(o),"onUpdate:modelValue":p[0]||(p[0]=e=>v(o)?o.value=e:null)},{default:a(()=>[(r(),m(g,null,E(n,e=>t(l,{label:e.name,name:e.type,index:e.type,key:e.type,lazy:""},{default:a(()=>[t(s,{type:e.type,mode:"page","file-size":"120px",limit:-1,"page-size":20},null,8,["type"])]),_:2},1032,["label","name","index"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});const _e=C(k,[["__scopeId","data-v-99c14979"]]);export{_e as default}; diff --git a/build/admin/assets/index.391facd2.js b/build/admin/assets/index.df62c162.js similarity index 80% rename from build/admin/assets/index.391facd2.js rename to build/admin/assets/index.df62c162.js index 1d32e3b26..a6bf0fddf 100644 --- a/build/admin/assets/index.391facd2.js +++ b/build/admin/assets/index.df62c162.js @@ -1 +1 @@ -import{C as q,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.4a7d92a3.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as X,b as Y}from"./index.28c6cdcf.js";import{d as P,r as F,Z as ee,ap as te,o as i,c as oe,U as o,L as a,u as e,aa as ae,R as s,M as m,K as r,a as $,S as ne,j as le,Q as x,n as h}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.b08aa554.js";import{b as re,e as ue,a as de}from"./store_product_unit.6f2a1920.js";import{_ as pe}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.ea0da735.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_unitEdit_lang.80cd4dd5.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=P({name:"unitLists"}),ot=P({...fe,setup(ve){const c=F(null),w=F(null),b=F(!1),D=F(!1),k=ee({name:"",py:"",number:"",data:"",more:""}),y=F([]),L=l=>{y.value=l.map(({id:t})=>t)},{dictData:g}=se(""),{pager:_,getLists:f,resetParams:R,resetPage:E}=ie({fetchFun:de,params:k}),U=async()=>{var l;b.value=!0,await h(),(l=c.value)==null||l.open("add")},N=async l=>{var t,u;console.log(c.value),b.value=!0,await h(),(t=c.value)==null||t.open("edit"),(u=c.value)==null||u.setFormData(l)},K=async l=>{var u,v;let t=await re({id:l});D.value=!0,await h(),(u=w.value)==null||u.open("edit"),(v=w.value)==null||v.setFormData(t)},S=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:l}),f()};return f(),(l,t)=>{const u=q,v=O,d=Q,T=Z,B=z,I=Y,p=G,j=H,A=W,C=te("perms"),M=J;return i(),oe("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(T,{class:"mb-[-16px]",model:e(k),inline:""},{default:a(()=>[o(v,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:e(k).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(k).name=n),onKeydown:ae(e(E),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(v,null,{default:a(()=>[o(d,{type:"primary",onClick:e(E)},{default:a(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(d,{onClick:e(R)},{default:a(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((i(),r(B,{class:"!border-none",shadow:"never"},{default:a(()=>[m((i(),r(d,{type:"primary",onClick:U},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[s(" \u65B0\u589E ")]),_:1})),[[C,["store_product_unit.store_product_unit/add"]]]),m((i(),r(d,{disabled:!e(y).length,onClick:t[1]||(t[1]=n=>S(e(y)))},{default:a(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["store_product_unit.store_product_unit/delete"]]]),$("div",ce,[o(j,{data:e(_).lists,onSelectionChange:L},{default:a(()=>[o(p,{type:"selection",width:"55"}),o(p,{label:"ID",prop:"id",width:"55"}),o(p,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(p,{label:"\u5355\u4F4D\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),o(p,{label:"\u662F\u5426\u6563\u88C5",prop:"is_bulk","show-overflow-tooltip":""},{default:a(({row:n})=>[s(ne(n.is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(p,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(p,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:n})=>[m((i(),r(d,{type:"primary",link:"",onClick:V=>N(n)},{default:a(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]]),m((i(),r(d,{type:"danger",link:"",onClick:V=>S(n.id)},{default:a(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/delete"]]]),m((i(),r(d,{link:"",onClick:V=>K(n.id)},{default:a(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]])]),_:1})]),_:1},8,["data"])]),$("div",_e,[o(A,{modelValue:e(_),"onUpdate:modelValue":t[2]||(t[2]=n=>le(_)?_.value=n:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,e(_).loading]]),e(b)?(i(),r(me,{key:0,ref_key:"editRef",ref:c,"dict-data":e(g),onSuccess:e(f),onClose:t[3]||(t[3]=n=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),e(D)?(i(),r(pe,{key:1,ref_key:"detailRef",ref:w,"dict-data":e(g),onSuccess:e(f),onClose:t[4]||(t[4]=n=>D.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0)])}}});export{ot as default}; +import{C as q,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.a63a26dd.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as X,b as Y}from"./index.79885fb7.js";import{d as P,r as F,Z as ee,ap as te,o as i,c as oe,U as o,L as a,u as e,aa as ae,R as s,M as m,K as r,a as $,S as ne,j as le,Q as x,n as h}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.1ff41454.js";import{b as re,e as ue,a as de}from"./store_product_unit.6a39215f.js";import{_ as pe}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.c4f1a663.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_unitEdit_lang.0156ce94.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=P({name:"unitLists"}),ot=P({...fe,setup(ve){const c=F(null),w=F(null),b=F(!1),D=F(!1),k=ee({name:"",py:"",number:"",data:"",more:""}),y=F([]),L=l=>{y.value=l.map(({id:t})=>t)},{dictData:g}=se(""),{pager:_,getLists:f,resetParams:R,resetPage:E}=ie({fetchFun:de,params:k}),U=async()=>{var l;b.value=!0,await h(),(l=c.value)==null||l.open("add")},N=async l=>{var t,u;console.log(c.value),b.value=!0,await h(),(t=c.value)==null||t.open("edit"),(u=c.value)==null||u.setFormData(l)},K=async l=>{var u,v;let t=await re({id:l});D.value=!0,await h(),(u=w.value)==null||u.open("edit"),(v=w.value)==null||v.setFormData(t)},S=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:l}),f()};return f(),(l,t)=>{const u=q,v=O,d=Q,T=Z,B=z,I=Y,p=G,j=H,A=W,C=te("perms"),M=J;return i(),oe("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(T,{class:"mb-[-16px]",model:e(k),inline:""},{default:a(()=>[o(v,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:e(k).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(k).name=n),onKeydown:ae(e(E),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(v,null,{default:a(()=>[o(d,{type:"primary",onClick:e(E)},{default:a(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(d,{onClick:e(R)},{default:a(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((i(),r(B,{class:"!border-none",shadow:"never"},{default:a(()=>[m((i(),r(d,{type:"primary",onClick:U},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[s(" \u65B0\u589E ")]),_:1})),[[C,["store_product_unit.store_product_unit/add"]]]),m((i(),r(d,{disabled:!e(y).length,onClick:t[1]||(t[1]=n=>S(e(y)))},{default:a(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["store_product_unit.store_product_unit/delete"]]]),$("div",ce,[o(j,{data:e(_).lists,onSelectionChange:L},{default:a(()=>[o(p,{type:"selection",width:"55"}),o(p,{label:"ID",prop:"id",width:"55"}),o(p,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(p,{label:"\u5355\u4F4D\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),o(p,{label:"\u662F\u5426\u6563\u88C5",prop:"is_bulk","show-overflow-tooltip":""},{default:a(({row:n})=>[s(ne(n.is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(p,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(p,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:n})=>[m((i(),r(d,{type:"primary",link:"",onClick:V=>N(n)},{default:a(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]]),m((i(),r(d,{type:"danger",link:"",onClick:V=>S(n.id)},{default:a(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/delete"]]]),m((i(),r(d,{link:"",onClick:V=>K(n.id)},{default:a(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]])]),_:1})]),_:1},8,["data"])]),$("div",_e,[o(A,{modelValue:e(_),"onUpdate:modelValue":t[2]||(t[2]=n=>le(_)?_.value=n:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,e(_).loading]]),e(b)?(i(),r(me,{key:0,ref_key:"editRef",ref:c,"dict-data":e(g),onSuccess:e(f),onClose:t[3]||(t[3]=n=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),e(D)?(i(),r(pe,{key:1,ref_key:"detailRef",ref:w,"dict-data":e(g),onSuccess:e(f),onClose:t[4]||(t[4]=n=>D.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0)])}}});export{ot as default}; diff --git a/build/admin/assets/index.26214ed4.js b/build/admin/assets/index.e260e3d3.js similarity index 80% rename from build/admin/assets/index.26214ed4.js rename to build/admin/assets/index.e260e3d3.js index 868128a9d..814dd3a7e 100644 --- a/build/admin/assets/index.26214ed4.js +++ b/build/admin/assets/index.e260e3d3.js @@ -1 +1 @@ -import{C as Z,D as z,w as G,F as H,L as J,M as W,b as X,N as Y,O as ee}from"./element-plus.4a7d92a3.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as te,b as ae}from"./index.28c6cdcf.js";import{d as K,s as le,r as D,Z as re,ap as ne,o as i,c as se,U as e,L as a,u as o,aa as E,R as d,M as _,K as m,a as B,a3 as V,j as ie,Q as ue,n as x}from"./@vue.18505fe0.js";import{u as pe}from"./usePaging.6a6670f9.js";import{u as de}from"./useDictOptions.b08aa554.js";import{e as me,a as ce}from"./store_category.fc260137.js";import"./lodash.9dc701ad.js";import{u as _e,a as fe}from"./vue-router.101084e3.js";import{_ as ye}from"./edit.vue_vue_type_script_setup_true_name_storeCategoryEdit_lang.15e995fd.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.771d2d71.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.d777fd30.js";import"./index.1050911c.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";const Ce={class:"mt-4",style:{cursor:"pointer"}},we={class:"flex mt-4 justify-end"},ge=K({name:"storeCategoryLists"}),mo=K({...ge,setup(Fe){var h;const f=le(),y=D(!1),R=_e(),$=fe(),n=re({pid:((h=R.query)==null?void 0:h.pid)||0,name:"",data:"",pic:"",sort:""}),v=D([]),L=r=>{v.value=r.map(({id:t})=>t)},{dictData:S}=de(""),{pager:c,getLists:C,resetParams:I,resetPage:w}=pe({fetchFun:ce,params:n}),N=async()=>{var r;y.value=!0,await x(),(r=f.value)==null||r.open("add")},P=async r=>{var t,u;y.value=!0,await x(),(t=f.value)==null||t.open("edit"),(u=f.value)==null||u.setFormData(r)},b=async r=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:r}),C()};C();const U=(r,t)=>{if(t.no==7)return console.log("\u65E0\u6548\u70B9\u51FB");$.push({path:"/store/store_category",query:{pid:r.id}})};return(r,t)=>{const u=Z,g=z,p=G,T=H,k=J,q=ae,s=W,M=X,j=Y,A=oe,F=ne("perms"),O=ee;return i(),se("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(T,{class:"mb-[-16px] disabledEdit",model:o(n),inline:""},{default:a(()=>[e(g,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:o(n).name,"onUpdate:modelValue":t[0]||(t[0]=l=>o(n).name=l),onKeydown:E(o(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(g,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:o(n).data,"onUpdate:modelValue":t[1]||(t[1]=l=>o(n).data=l),onKeydown:E(o(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"},null,8,["modelValue","onKeydown"])]),_:1}),e(g,{label:"\u6392\u5E8F",prop:"sort"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:o(n).sort,"onUpdate:modelValue":t[2]||(t[2]=l=>o(n).sort=l),onKeydown:E(o(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F"},null,8,["modelValue","onKeydown"])]),_:1}),e(g,null,{default:a(()=>[e(p,{type:"primary",onClick:o(w)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:o(I)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(k,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),m(p,{type:"primary",onClick:N},{icon:a(()=>[e(q,{name:"el-icon-Plus"})]),default:a(()=>[d(" \u65B0\u589E ")]),_:1})),[[F,["store_category.store_category/add"]]]),_((i(),m(p,{disabled:!o(v).length,onClick:t[3]||(t[3]=l=>b(o(v)))},{default:a(()=>[d(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[F,["store_category.store_category/delete"]]]),B("div",Ce,[e(j,{data:o(c).lists,onSelectionChange:L,onCellClick:U},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id",width:"120"}),e(s,{label:"\u6240\u5C5EID",prop:"pid","show-overflow-tooltip":""}),e(s,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u56FE\u7247",prop:"pic"},{default:a(({row:l})=>[e(M,{style:{width:"50px",height:"50px"},src:l.pic,"preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),e(s,{label:"\u6392\u5E8F",prop:"sort","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((i(),m(p,{type:"primary",link:"",onClick:V(Q=>P(l),["stop"])},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[F,["store_category.store_category/edit"]]]),_((i(),m(p,{type:"danger",link:"",onClick:V(Q=>b(l.id),["stop"])},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[F,["store_category.store_category/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",we,[e(A,{modelValue:o(c),"onUpdate:modelValue":t[4]||(t[4]=l=>ie(c)?c.value=l:null),onChange:o(C)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(c).loading]]),o(y)?(i(),m(ye,{key:0,ref_key:"editRef",ref:f,"dict-data":o(S),onSuccess:o(C),onClose:t[5]||(t[5]=l=>y.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{mo as default}; +import{C as Z,D as z,w as G,F as H,L as J,M as W,b as X,N as Y,O as ee}from"./element-plus.a63a26dd.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as te,b as ae}from"./index.79885fb7.js";import{d as K,s as le,r as D,Z as re,ap as ne,o as i,c as se,U as e,L as a,u as o,aa as E,R as d,M as _,K as m,a as B,a3 as V,j as ie,Q as ue,n as x}from"./@vue.18505fe0.js";import{u as pe}from"./usePaging.6a6670f9.js";import{u as de}from"./useDictOptions.1ff41454.js";import{e as me,a as ce}from"./store_category.9b1021ea.js";import"./lodash.2473fc51.js";import{u as _e,a as fe}from"./vue-router.101084e3.js";import{_ as ye}from"./edit.vue_vue_type_script_setup_true_name_storeCategoryEdit_lang.fba11c2e.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.bfcf15be.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.c1432c63.js";import"./index.a5c1d2e3.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";const Ce={class:"mt-4",style:{cursor:"pointer"}},we={class:"flex mt-4 justify-end"},ge=K({name:"storeCategoryLists"}),mo=K({...ge,setup(Fe){var h;const f=le(),y=D(!1),R=_e(),$=fe(),n=re({pid:((h=R.query)==null?void 0:h.pid)||0,name:"",data:"",pic:"",sort:""}),v=D([]),L=r=>{v.value=r.map(({id:t})=>t)},{dictData:S}=de(""),{pager:c,getLists:C,resetParams:I,resetPage:w}=pe({fetchFun:ce,params:n}),N=async()=>{var r;y.value=!0,await x(),(r=f.value)==null||r.open("add")},P=async r=>{var t,u;y.value=!0,await x(),(t=f.value)==null||t.open("edit"),(u=f.value)==null||u.setFormData(r)},b=async r=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:r}),C()};C();const U=(r,t)=>{if(t.no==7)return console.log("\u65E0\u6548\u70B9\u51FB");$.push({path:"/store/store_category",query:{pid:r.id}})};return(r,t)=>{const u=Z,g=z,p=G,T=H,k=J,q=ae,s=W,M=X,j=Y,A=oe,F=ne("perms"),O=ee;return i(),se("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(T,{class:"mb-[-16px] disabledEdit",model:o(n),inline:""},{default:a(()=>[e(g,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:o(n).name,"onUpdate:modelValue":t[0]||(t[0]=l=>o(n).name=l),onKeydown:E(o(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(g,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:o(n).data,"onUpdate:modelValue":t[1]||(t[1]=l=>o(n).data=l),onKeydown:E(o(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"},null,8,["modelValue","onKeydown"])]),_:1}),e(g,{label:"\u6392\u5E8F",prop:"sort"},{default:a(()=>[e(u,{class:"w-[280px]",modelValue:o(n).sort,"onUpdate:modelValue":t[2]||(t[2]=l=>o(n).sort=l),onKeydown:E(o(w),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F"},null,8,["modelValue","onKeydown"])]),_:1}),e(g,null,{default:a(()=>[e(p,{type:"primary",onClick:o(w)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:o(I)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(k,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),m(p,{type:"primary",onClick:N},{icon:a(()=>[e(q,{name:"el-icon-Plus"})]),default:a(()=>[d(" \u65B0\u589E ")]),_:1})),[[F,["store_category.store_category/add"]]]),_((i(),m(p,{disabled:!o(v).length,onClick:t[3]||(t[3]=l=>b(o(v)))},{default:a(()=>[d(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[F,["store_category.store_category/delete"]]]),B("div",Ce,[e(j,{data:o(c).lists,onSelectionChange:L,onCellClick:U},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id",width:"120"}),e(s,{label:"\u6240\u5C5EID",prop:"pid","show-overflow-tooltip":""}),e(s,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u56FE\u7247",prop:"pic"},{default:a(({row:l})=>[e(M,{style:{width:"50px",height:"50px"},src:l.pic,"preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),e(s,{label:"\u6392\u5E8F",prop:"sort","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((i(),m(p,{type:"primary",link:"",onClick:V(Q=>P(l),["stop"])},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[F,["store_category.store_category/edit"]]]),_((i(),m(p,{type:"danger",link:"",onClick:V(Q=>b(l.id),["stop"])},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[F,["store_category.store_category/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",we,[e(A,{modelValue:o(c),"onUpdate:modelValue":t[4]||(t[4]=l=>ie(c)?c.value=l:null),onChange:o(C)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(c).loading]]),o(y)?(i(),m(ye,{key:0,ref_key:"editRef",ref:f,"dict-data":o(S),onSuccess:o(C),onClose:t[5]||(t[5]=l=>y.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{mo as default}; diff --git a/build/admin/assets/index.6e2ee231.js b/build/admin/assets/index.e2fc72fa.js similarity index 77% rename from build/admin/assets/index.6e2ee231.js rename to build/admin/assets/index.e2fc72fa.js index 33a09d419..b62a6f8b9 100644 --- a/build/admin/assets/index.6e2ee231.js +++ b/build/admin/assets/index.e2fc72fa.js @@ -1 +1 @@ -import{C as U,D as j,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.4a7d92a3.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as G,b as H}from"./index.28c6cdcf.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.b08aa554.js";import{d as X,e as Y}from"./inventory_transfer.f5f0fcf8.js";import"./lodash.9dc701ad.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.d607bce6.js";import{d as B,s as oe,r as k,Z as te,ap as ae,o as s,c as le,U as e,L as o,u as t,R as u,M as d,K as p,a as E,j as ne,Q as re,n as g}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.06d9ba7c.js";import"./warehouse.f60d78fc.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.0a016a9d.js";import"./store_product.8e022f19.js";import"./store_branch_product.f62e9946.js";import"./warehouse_product_storege.224b265e.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfc949e2.js";import"./system_store.6d454f9d.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const se={class:"mt-4"},ie={class:"flex mt-4 justify-end"},ue=B({name:"inventoryTransferLists"}),ao=B({...ue,setup(pe){const c=oe(),_=k(!1),f=te({store_name:""}),F=k([]),D=n=>{F.value=n.map(({id:a})=>a)},{dictData:V}=W(""),{pager:m,getLists:v,resetParams:x,resetPage:T}=J({fetchFun:Y,params:f}),$=async()=>{var n;_.value=!0,await g(),(n=c.value)==null||n.open("add")},A=async n=>{var a,C;_.value=!0,await g(),(a=c.value)==null||a.open("edit"),(C=c.value)==null||C.setFormData(n)},b=async n=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:n}),v()};return v(),(n,a)=>{const C=U,h=j,i=M,L=q,y=K,N=H,l=O,P=Q,R=z,w=ae("perms"),I=Z;return s(),le("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(L,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(h,{label:"\u5546\u54C1",prop:"store_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:t(f).store_name,"onUpdate:modelValue":a[0]||(a[0]=r=>t(f).store_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(h,null,{default:o(()=>[e(i,{type:"primary",onClick:t(T)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:t(x)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),p(y,{class:"!border-none",shadow:"never"},{default:o(()=>[d((s(),p(i,{type:"primary",onClick:$},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[w,["inventory_transfer/add"]]]),d((s(),p(i,{disabled:!t(F).length,onClick:a[1]||(a[1]=r=>b(t(F)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["inventory_transfer/delete"]]]),E("div",se,[e(P,{data:t(m).lists,onSelectionChange:D},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"id",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(l,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u65B9",prop:"one_name","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u524D\u6570\u91CF",prop:"one_before_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u540E\u6570\u91CF",prop:"one_after_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u65B9",prop:"two_name","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u524D\u6570\u91CF",prop:"two_before_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u540E\u6570\u91CF",prop:"two_after_nums","show-overflow-tooltip":""}),e(l,{label:"\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),e(l,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:r})=>[d((s(),p(i,{type:"primary",link:"",onClick:S=>A(r)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/edit"]]]),d((s(),p(i,{type:"danger",link:"",onClick:S=>b(r.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ie,[e(R,{modelValue:t(m),"onUpdate:modelValue":a[2]||(a[2]=r=>ne(m)?m.value=r:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[I,t(m).loading]]),t(_)?(s(),p(ee,{key:0,ref_key:"editRef",ref:c,"dict-data":t(V),onSuccess:t(v),onClose:a[3]||(a[3]=r=>_.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{ao as default}; +import{C as U,D as j,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.a63a26dd.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as G,b as H}from"./index.79885fb7.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.1ff41454.js";import{d as X,e as Y}from"./inventory_transfer.b6c01a1c.js";import"./lodash.2473fc51.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.c859a7c0.js";import{d as B,s as oe,r as k,Z as te,ap as ae,o as s,c as le,U as e,L as o,u as t,R as u,M as d,K as p,a as E,j as ne,Q as re,n as g}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.17ab95d4.js";import"./warehouse.925874d3.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.79666e01.js";import"./store_product.88b61be2.js";import"./store_branch_product.ce7e9094.js";import"./warehouse_product_storege.a82fd3ce.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7c8ed79c.js";import"./system_store.0480155e.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const se={class:"mt-4"},ie={class:"flex mt-4 justify-end"},ue=B({name:"inventoryTransferLists"}),ao=B({...ue,setup(pe){const c=oe(),_=k(!1),f=te({store_name:""}),F=k([]),D=n=>{F.value=n.map(({id:a})=>a)},{dictData:V}=W(""),{pager:m,getLists:v,resetParams:x,resetPage:T}=J({fetchFun:Y,params:f}),$=async()=>{var n;_.value=!0,await g(),(n=c.value)==null||n.open("add")},A=async n=>{var a,C;_.value=!0,await g(),(a=c.value)==null||a.open("edit"),(C=c.value)==null||C.setFormData(n)},b=async n=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:n}),v()};return v(),(n,a)=>{const C=U,h=j,i=M,L=q,y=K,N=H,l=O,P=Q,R=z,w=ae("perms"),I=Z;return s(),le("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(L,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(h,{label:"\u5546\u54C1",prop:"store_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:t(f).store_name,"onUpdate:modelValue":a[0]||(a[0]=r=>t(f).store_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(h,null,{default:o(()=>[e(i,{type:"primary",onClick:t(T)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:t(x)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),p(y,{class:"!border-none",shadow:"never"},{default:o(()=>[d((s(),p(i,{type:"primary",onClick:$},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[w,["inventory_transfer/add"]]]),d((s(),p(i,{disabled:!t(F).length,onClick:a[1]||(a[1]=r=>b(t(F)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["inventory_transfer/delete"]]]),E("div",se,[e(P,{data:t(m).lists,onSelectionChange:D},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"id",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(l,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u65B9",prop:"one_name","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u524D\u6570\u91CF",prop:"one_before_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u540E\u6570\u91CF",prop:"one_after_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u65B9",prop:"two_name","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u524D\u6570\u91CF",prop:"two_before_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u540E\u6570\u91CF",prop:"two_after_nums","show-overflow-tooltip":""}),e(l,{label:"\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),e(l,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:r})=>[d((s(),p(i,{type:"primary",link:"",onClick:S=>A(r)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/edit"]]]),d((s(),p(i,{type:"danger",link:"",onClick:S=>b(r.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ie,[e(R,{modelValue:t(m),"onUpdate:modelValue":a[2]||(a[2]=r=>ne(m)?m.value=r:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[I,t(m).loading]]),t(_)?(s(),p(ee,{key:0,ref_key:"editRef",ref:c,"dict-data":t(V),onSuccess:t(v),onClose:a[3]||(a[3]=r=>_.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{ao as default}; diff --git a/build/admin/assets/index.c36c2139.js b/build/admin/assets/index.e3350e7a.js similarity index 89% rename from build/admin/assets/index.c36c2139.js rename to build/admin/assets/index.e3350e7a.js index 7bd872cb0..2051c1766 100644 --- a/build/admin/assets/index.c36c2139.js +++ b/build/admin/assets/index.e3350e7a.js @@ -1 +1 @@ -import{L as l}from"./element-plus.4a7d92a3.js";import{F as p}from"./index.28c6cdcf.js";import{B as x}from"./vue-echarts.01ad0ec2.js";import{d as c,Z as _,i as m,o as h,c as f,a as t,U as r,L as s,S as i,u as a}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const v={class:"workbench"},y={class:"flex box-border"},b=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u9500\u552E\u989D"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),E={class:"text-6xl"},w={class:"flex items-center justify-between"},B=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1),g={class:"text-tx-secondary text-xs"},F=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u6210\u4EA4\u8BA2\u5355"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),A={class:"text-6xl"},C={class:"flex items-center justify-between"},j=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1),D={class:"text-tx-secondary text-xs"},O=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u7528\u6237"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),k={class:"text-6xl"},S={class:"flex items-center justify-between"},L=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1),N={class:"text-tx-secondary text-xs"},V=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u8BBF\u95EE\u91CF"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),z={class:"text-6xl"},M={class:"flex items-center justify-between"},P=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1),U={class:"text-tx-secondary text-xs"},W={class:"flex box-border"},Z=t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1),q=c({name:"workbench"}),Bt=c({...q,setup(G){const e=_({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),u=()=>{p().then(o=>{e.version=o.version,e.today=o.today,e.menu=o.menu,e.visitor=o.visitor,e.support=o.support,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],o.visitor.date.reverse().forEach(d=>{e.visitorOption.xAxis.data.push(d)}),o.visitor.list[0].data.forEach(d=>{e.visitorOption.series[0].data.push(d)}),console.log(e.visitorOption)}).catch(o=>{console.log("err",o)})};return m(()=>{u()}),(o,d)=>{const n=l;return h(),f("div",v,[t("div",y,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[b]),footer:s(()=>[t("div",w,[B,t("span",g,i(a(e).today.today_sales)+"\u5143",1)])]),default:s(()=>[t("div",E,i(a(e).today.today_sales),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[F]),footer:s(()=>[t("div",C,[j,t("span",D,i(a(e).today.order_sum)+"\u5355",1)])]),default:s(()=>[t("div",A,i(a(e).today.order_num),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[O]),footer:s(()=>[t("div",S,[L,t("span",N,i(a(e).today.total_new_user)+"\u4F4D",1)])]),default:s(()=>[t("div",k,i(a(e).today.today_new_user),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[V]),footer:s(()=>[t("div",M,[P,t("span",U,i(a(e).today.total_visitor)+"Pv",1)])]),default:s(()=>[t("div",z,i(a(e).today.today_visitor),1)]),_:1})]),t("div",W,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[Z]),default:s(()=>[t("div",null,[r(a(x),{style:{height:"350px"},option:a(e).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{Bt as default}; +import{L as l}from"./element-plus.a63a26dd.js";import{F as p}from"./index.79885fb7.js";import{B as x}from"./vue-echarts.01ad0ec2.js";import{d as c,Z as _,i as m,o as h,c as f,a as t,U as r,L as s,S as i,u as a}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const v={class:"workbench"},y={class:"flex box-border"},b=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u9500\u552E\u989D"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),E={class:"text-6xl"},w={class:"flex items-center justify-between"},B=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1),g={class:"text-tx-secondary text-xs"},F=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u6210\u4EA4\u8BA2\u5355"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),A={class:"text-6xl"},C={class:"flex items-center justify-between"},j=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1),D={class:"text-tx-secondary text-xs"},O=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u7528\u6237"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),k={class:"text-6xl"},S={class:"flex items-center justify-between"},L=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1),N={class:"text-tx-secondary text-xs"},V=t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u8BBF\u95EE\u91CF"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1),z={class:"text-6xl"},M={class:"flex items-center justify-between"},P=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1),U={class:"text-tx-secondary text-xs"},W={class:"flex box-border"},Z=t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1),q=c({name:"workbench"}),Bt=c({...q,setup(G){const e=_({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),u=()=>{p().then(o=>{e.version=o.version,e.today=o.today,e.menu=o.menu,e.visitor=o.visitor,e.support=o.support,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],o.visitor.date.reverse().forEach(d=>{e.visitorOption.xAxis.data.push(d)}),o.visitor.list[0].data.forEach(d=>{e.visitorOption.series[0].data.push(d)}),console.log(e.visitorOption)}).catch(o=>{console.log("err",o)})};return m(()=>{u()}),(o,d)=>{const n=l;return h(),f("div",v,[t("div",y,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[b]),footer:s(()=>[t("div",w,[B,t("span",g,i(a(e).today.today_sales)+"\u5143",1)])]),default:s(()=>[t("div",E,i(a(e).today.today_sales),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[F]),footer:s(()=>[t("div",C,[j,t("span",D,i(a(e).today.order_sum)+"\u5355",1)])]),default:s(()=>[t("div",A,i(a(e).today.order_num),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[O]),footer:s(()=>[t("div",S,[L,t("span",N,i(a(e).today.total_new_user)+"\u4F4D",1)])]),default:s(()=>[t("div",k,i(a(e).today.today_new_user),1)]),_:1}),r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[V]),footer:s(()=>[t("div",M,[P,t("span",U,i(a(e).today.total_visitor)+"Pv",1)])]),default:s(()=>[t("div",z,i(a(e).today.today_visitor),1)]),_:1})]),t("div",W,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[Z]),default:s(()=>[t("div",null,[r(a(x),{style:{height:"350px"},option:a(e).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{Bt as default}; diff --git a/build/admin/assets/index.ba48a170.js b/build/admin/assets/index.e4f13efa.js similarity index 76% rename from build/admin/assets/index.ba48a170.js rename to build/admin/assets/index.e4f13efa.js index e07f9733e..ad6439fa0 100644 --- a/build/admin/assets/index.ba48a170.js +++ b/build/admin/assets/index.e4f13efa.js @@ -1 +1 @@ -import{C as A,D as M,w as q,F as K,L as O,M as Q,b as Z,N as z,O as G}from"./element-plus.4a7d92a3.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as J,b as W}from"./index.28c6cdcf.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.b08aa554.js";import{_ as ee,a as te,b as oe}from"./edit.vue_vue_type_script_setup_true_name_labelEdit_lang.7f854b87.js";import"./lodash.9dc701ad.js";import{d as D,s as ae,r as w,Z as le,ap as ne,o as i,c as ie,U as e,L as t,u as o,R as r,M as p,K as m,a as y,j as se,Q as re,n as B}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.771d2d71.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.d777fd30.js";import"./index.1050911c.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";const me={class:"mt-4"},ue={class:"flex mt-4 justify-end"},pe=D({name:"labelLists"}),ot=D({...pe,setup(de){const d=ae(),c=w(!1),_=le({label_name:"",logo:""}),C=w([]),F=n=>{C.value=n.map(({id:a})=>a)},{dictData:x}=Y(""),{pager:u,getLists:f,resetParams:V,resetPage:L}=X({fetchFun:oe,params:_}),$=async()=>{var n;c.value=!0,await B(),(n=d.value)==null||n.open("add")},N=async n=>{var a,b;c.value=!0,await B(),(a=d.value)==null||a.open("edit"),(b=d.value)==null||b.setFormData(n)},E=async n=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:n}),f()};return f(),(n,a)=>{const b=A,h=M,s=q,P=K,k=O,R=W,g=Q,S=Z,T=z,I=H,v=ne("perms"),U=G;return i(),ie("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:o(_),inline:""},{default:t(()=>[e(h,{label:"\u6807\u7B7E\u540D\u5B57",prop:"label_name"},{default:t(()=>[e(b,{class:"w-[280px]",modelValue:o(_).label_name,"onUpdate:modelValue":a[0]||(a[0]=l=>o(_).label_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u5B57"},null,8,["modelValue"])]),_:1}),e(h,null,{default:t(()=>[e(s,{type:"primary",onClick:o(L)},{default:t(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(s,{onClick:o(V)},{default:t(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((i(),m(k,{class:"!border-none",shadow:"never"},{default:t(()=>[p((i(),m(s,{type:"primary",onClick:$},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[r(" \u65B0\u589E ")]),_:1})),[[v,["setting.label/add"]]]),p((i(),m(s,{disabled:!o(C).length,onClick:a[1]||(a[1]=l=>E(o(C)))},{default:t(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["setting.label/delete"]]]),y("div",me,[e(T,{data:o(u).lists,onSelectionChange:F},{default:t(()=>[e(g,{type:"selection",width:"55"}),e(g,{label:"\u6807\u7B7E\u540D\u5B57",prop:"label_name","show-overflow-tooltip":""}),e(g,{label:"logo(\u56FE\u7247)",prop:"logo"},{default:t(({row:l})=>[e(S,{style:{width:"50px",height:"50px"},src:l.logo,"preview-teleported":!0},null,8,["src"])]),_:1}),e(g,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[p((i(),m(s,{type:"primary",link:"",onClick:j=>N(l)},{default:t(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["setting.label/edit"]]]),p((i(),m(s,{type:"danger",link:"",onClick:j=>E(l.id)},{default:t(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["setting.label/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",ue,[e(I,{modelValue:o(u),"onUpdate:modelValue":a[2]||(a[2]=l=>se(u)?u.value=l:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})),[[U,o(u).loading]]),o(c)?(i(),m(ee,{key:0,ref_key:"editRef",ref:d,"dict-data":o(x),onSuccess:o(f),onClose:a[3]||(a[3]=l=>c.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{ot as default}; +import{C as A,D as M,w as q,F as K,L as O,M as Q,b as Z,N as z,O as G}from"./element-plus.a63a26dd.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as J,b as W}from"./index.79885fb7.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.1ff41454.js";import{_ as ee,a as te,b as oe}from"./edit.vue_vue_type_script_setup_true_name_labelEdit_lang.f498e434.js";import"./lodash.2473fc51.js";import{d as D,s as ae,r as w,Z as le,ap as ne,o as i,c as ie,U as e,L as t,u as o,R as r,M as p,K as m,a as y,j as se,Q as re,n as B}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.bfcf15be.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.c1432c63.js";import"./index.a5c1d2e3.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";const me={class:"mt-4"},ue={class:"flex mt-4 justify-end"},pe=D({name:"labelLists"}),ot=D({...pe,setup(de){const d=ae(),c=w(!1),_=le({label_name:"",logo:""}),C=w([]),F=n=>{C.value=n.map(({id:a})=>a)},{dictData:x}=Y(""),{pager:u,getLists:f,resetParams:V,resetPage:L}=X({fetchFun:oe,params:_}),$=async()=>{var n;c.value=!0,await B(),(n=d.value)==null||n.open("add")},N=async n=>{var a,b;c.value=!0,await B(),(a=d.value)==null||a.open("edit"),(b=d.value)==null||b.setFormData(n)},E=async n=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:n}),f()};return f(),(n,a)=>{const b=A,h=M,s=q,P=K,k=O,R=W,g=Q,S=Z,T=z,I=H,v=ne("perms"),U=G;return i(),ie("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:o(_),inline:""},{default:t(()=>[e(h,{label:"\u6807\u7B7E\u540D\u5B57",prop:"label_name"},{default:t(()=>[e(b,{class:"w-[280px]",modelValue:o(_).label_name,"onUpdate:modelValue":a[0]||(a[0]=l=>o(_).label_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u5B57"},null,8,["modelValue"])]),_:1}),e(h,null,{default:t(()=>[e(s,{type:"primary",onClick:o(L)},{default:t(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(s,{onClick:o(V)},{default:t(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((i(),m(k,{class:"!border-none",shadow:"never"},{default:t(()=>[p((i(),m(s,{type:"primary",onClick:$},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[r(" \u65B0\u589E ")]),_:1})),[[v,["setting.label/add"]]]),p((i(),m(s,{disabled:!o(C).length,onClick:a[1]||(a[1]=l=>E(o(C)))},{default:t(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["setting.label/delete"]]]),y("div",me,[e(T,{data:o(u).lists,onSelectionChange:F},{default:t(()=>[e(g,{type:"selection",width:"55"}),e(g,{label:"\u6807\u7B7E\u540D\u5B57",prop:"label_name","show-overflow-tooltip":""}),e(g,{label:"logo(\u56FE\u7247)",prop:"logo"},{default:t(({row:l})=>[e(S,{style:{width:"50px",height:"50px"},src:l.logo,"preview-teleported":!0},null,8,["src"])]),_:1}),e(g,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[p((i(),m(s,{type:"primary",link:"",onClick:j=>N(l)},{default:t(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["setting.label/edit"]]]),p((i(),m(s,{type:"danger",link:"",onClick:j=>E(l.id)},{default:t(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["setting.label/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",ue,[e(I,{modelValue:o(u),"onUpdate:modelValue":a[2]||(a[2]=l=>se(u)?u.value=l:null),onChange:o(f)},null,8,["modelValue","onChange"])])]),_:1})),[[U,o(u).loading]]),o(c)?(i(),m(ee,{key:0,ref_key:"editRef",ref:d,"dict-data":o(x),onSuccess:o(f),onClose:a[3]||(a[3]=l=>c.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{ot as default}; diff --git a/build/admin/assets/index.6bed8f08.js b/build/admin/assets/index.e60fd0cd.js similarity index 80% rename from build/admin/assets/index.6bed8f08.js rename to build/admin/assets/index.e60fd0cd.js index c3dd71e8a..2bba2391a 100644 --- a/build/admin/assets/index.6bed8f08.js +++ b/build/admin/assets/index.e60fd0cd.js @@ -1 +1 @@ -import{C as L,D as U,w as I,F as N,L as R,M as P,N as S,O as $}from"./element-plus.4a7d92a3.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.77dd59e0.js";import{u as q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.b08aa554.js";import{d as O}from"./log.982eef2d.js";import"./lodash.9dc701ad.js";import"./index.28c6cdcf.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_logEdit_lang.afba0367.js";import{d as E,s as Z,r as F,Z as z,o as p,c as G,U as o,L as u,u as e,R as w,M as H,K as B,a as b,j as J,Q as W}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const X={class:"flex mt-4 justify-end"},Y=E({name:"logLists"}),Mo=E({...Y,setup(oo){const v=Z(),d=F(!1),l=z({admin_id:"",admin_name:"",url:"",create_time:"",start_time:"",end_time:""}),C=F([]),D=_=>{C.value=_.map(({id:t})=>t)},{dictData:g}=K(""),{pager:n,getLists:m,resetParams:V,resetPage:h}=q({fetchFun:O,params:l});return m(),(_,t)=>{const s=L,i=U,k=M,c=I,A=N,f=R,r=P,x=S,T=j,y=$;return p(),G("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[o(A,{class:"mb-[-16px]",model:e(l),inline:""},{default:u(()=>[o(i,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_id,"onUpdate:modelValue":t[0]||(t[0]=a=>e(l).admin_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458ID"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_name,"onUpdate:modelValue":t[1]||(t[1]=a=>e(l).admin_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).url,"onUpdate:modelValue":t[2]||(t[2]=a=>e(l).url=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:u(()=>[o(k,{startTime:e(l).start_time,"onUpdate:startTime":t[3]||(t[3]=a=>e(l).start_time=a),endTime:e(l).end_time,"onUpdate:endTime":t[4]||(t[4]=a=>e(l).end_time=a)},null,8,["startTime","endTime"])]),_:1}),o(i,null,{default:u(()=>[o(c,{type:"primary",onClick:e(h)},{default:u(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(c,{onClick:e(V)},{default:u(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((p(),B(f,{class:"!border-none",shadow:"never"},{default:u(()=>[b("div",null,[o(x,{data:e(n).lists,onSelectionChange:D},{default:u(()=>[o(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C\u540D\u79F0",prop:"action","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u65B9\u5F0F",prop:"type","show-overflow-tooltip":""}),o(r,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u6570\u636E",prop:"params","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),o(r,{label:"ip\u5730\u5740",prop:"ip","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",X,[o(T,{modelValue:e(n),"onUpdate:modelValue":t[5]||(t[5]=a=>J(n)?n.value=a:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(n).loading]]),e(d)?(p(),B(Q,{key:0,ref_key:"editRef",ref:v,"dict-data":e(g),onSuccess:e(m),onClose:t[6]||(t[6]=a=>d.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{Mo as default}; +import{C as L,D as U,w as I,F as N,L as R,M as P,N as S,O as $}from"./element-plus.a63a26dd.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.22edb8e7.js";import{u as q}from"./usePaging.6a6670f9.js";import{u as K}from"./useDictOptions.1ff41454.js";import{d as O}from"./log.be44be64.js";import"./lodash.2473fc51.js";import"./index.79885fb7.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_logEdit_lang.3be649a3.js";import{d as E,s as Z,r as F,Z as z,o as p,c as G,U as o,L as u,u as e,R as w,M as H,K as B,a as b,j as J,Q as W}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const X={class:"flex mt-4 justify-end"},Y=E({name:"logLists"}),Mo=E({...Y,setup(oo){const v=Z(),d=F(!1),l=z({admin_id:"",admin_name:"",url:"",create_time:"",start_time:"",end_time:""}),C=F([]),D=_=>{C.value=_.map(({id:t})=>t)},{dictData:g}=K(""),{pager:n,getLists:m,resetParams:V,resetPage:h}=q({fetchFun:O,params:l});return m(),(_,t)=>{const s=L,i=U,k=M,c=I,A=N,f=R,r=P,x=S,T=j,y=$;return p(),G("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[o(A,{class:"mb-[-16px]",model:e(l),inline:""},{default:u(()=>[o(i,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_id,"onUpdate:modelValue":t[0]||(t[0]=a=>e(l).admin_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458ID"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).admin_name,"onUpdate:modelValue":t[1]||(t[1]=a=>e(l).admin_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:e(l).url,"onUpdate:modelValue":t[2]||(t[2]=a=>e(l).url=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:u(()=>[o(k,{startTime:e(l).start_time,"onUpdate:startTime":t[3]||(t[3]=a=>e(l).start_time=a),endTime:e(l).end_time,"onUpdate:endTime":t[4]||(t[4]=a=>e(l).end_time=a)},null,8,["startTime","endTime"])]),_:1}),o(i,null,{default:u(()=>[o(c,{type:"primary",onClick:e(h)},{default:u(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(c,{onClick:e(V)},{default:u(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((p(),B(f,{class:"!border-none",shadow:"never"},{default:u(()=>[b("div",null,[o(x,{data:e(n).lists,onSelectionChange:D},{default:u(()=>[o(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C\u540D\u79F0",prop:"action","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u65B9\u5F0F",prop:"type","show-overflow-tooltip":""}),o(r,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u6570\u636E",prop:"params","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),o(r,{label:"ip\u5730\u5740",prop:"ip","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",X,[o(T,{modelValue:e(n),"onUpdate:modelValue":t[5]||(t[5]=a=>J(n)?n.value=a:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(n).loading]]),e(d)?(p(),B(Q,{key:0,ref_key:"editRef",ref:v,"dict-data":e(g),onSuccess:e(m),onClose:t[6]||(t[6]=a=>d.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{Mo as default}; diff --git a/build/admin/assets/index.4ab42509.js b/build/admin/assets/index.eb013c93.js similarity index 85% rename from build/admin/assets/index.4ab42509.js rename to build/admin/assets/index.eb013c93.js index 919fe204d..c75ae5f26 100644 --- a/build/admin/assets/index.4ab42509.js +++ b/build/admin/assets/index.eb013c93.js @@ -1 +1 @@ -import{d as t,o as s,c as n,a as _,H as a,a0 as d}from"./@vue.18505fe0.js";import{d as r}from"./index.28c6cdcf.js";const c={class:"footer-btns"},i=t({__name:"index",props:{fixed:{type:Boolean,default:!0}},setup(e){return(o,l)=>(s(),n("div",c,[_("div",{class:"footer-btns__content",style:d(e.fixed?"position: fixed":"")},[a(o.$slots,"default",{},void 0,!0)],4)]))}});const u=r(i,[["__scopeId","data-v-9f638557"]]);export{u as _}; +import{d as t,o as s,c as n,a as _,H as a,a0 as d}from"./@vue.18505fe0.js";import{d as r}from"./index.79885fb7.js";const c={class:"footer-btns"},i=t({__name:"index",props:{fixed:{type:Boolean,default:!0}},setup(e){return(o,l)=>(s(),n("div",c,[_("div",{class:"footer-btns__content",style:d(e.fixed?"position: fixed":"")},[a(o.$slots,"default",{},void 0,!0)],4)]))}});const u=r(i,[["__scopeId","data-v-9f638557"]]);export{u as _}; diff --git a/build/admin/assets/index.ac70fa70.js b/build/admin/assets/index.ec3439ad.js similarity index 90% rename from build/admin/assets/index.ac70fa70.js rename to build/admin/assets/index.ec3439ad.js index e33dc6bd9..6843dcae0 100644 --- a/build/admin/assets/index.ac70fa70.js +++ b/build/admin/assets/index.ec3439ad.js @@ -1 +1 @@ -import{w as p,I as f}from"./element-plus.4a7d92a3.js";import{_ as k}from"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import{d as v}from"./index.28c6cdcf.js";import{o as a,c as g,a as d,H as i,U as B,ab as C,L as s,R as l,S as n,K as m,Q as u}from"./@vue.18505fe0.js";const $={class:"dialog"},y={class:"dialog-footer"};function V(e,o,b,w,E,T){const r=p,c=f;return a(),g("div",$,[d("div",{class:"dialog__trigger",onClick:o[0]||(o[0]=(...t)=>e.open&&e.open(...t))},[i(e.$slots,"trigger",{},void 0,!0)]),B(c,{modelValue:e.visible,"onUpdate:modelValue":o[3]||(o[3]=t=>e.visible=t),"custom-class":e.customClass,center:e.center,"append-to-body":!0,width:e.width,"close-on-click-modal":e.clickModalClose,onClosed:e.close},C({footer:s(()=>[d("div",y,[e.cancelButtonText?(a(),m(r,{key:0,onClick:o[1]||(o[1]=t=>e.handleEvent("cancel"))},{default:s(()=>[l(n(e.cancelButtonText),1)]),_:1})):u("",!0),e.confirmButtonText?(a(),m(r,{key:1,type:"primary",onClick:o[2]||(o[2]=t=>e.handleEvent("confirm"))},{default:s(()=>[l(n(e.confirmButtonText),1)]),_:1})):u("",!0)])]),default:s(()=>[i(e.$slots,"default",{},()=>[l(n(e.content),1)],!0)]),_:2},[e.title?{name:"header",fn:s(()=>[l(n(e.title),1)]),key:"0"}:void 0]),1032,["modelValue","custom-class","center","width","close-on-click-modal","onClosed"])])}const I=v(k,[["render",V],["__scopeId","data-v-d380c88d"]]);export{I as P}; +import{w as p,I as f}from"./element-plus.a63a26dd.js";import{_ as k}from"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import{d as v}from"./index.79885fb7.js";import{o as a,c as g,a as d,H as i,U as B,ab as C,L as s,R as l,S as n,K as m,Q as u}from"./@vue.18505fe0.js";const $={class:"dialog"},y={class:"dialog-footer"};function V(e,o,b,w,E,T){const r=p,c=f;return a(),g("div",$,[d("div",{class:"dialog__trigger",onClick:o[0]||(o[0]=(...t)=>e.open&&e.open(...t))},[i(e.$slots,"trigger",{},void 0,!0)]),B(c,{modelValue:e.visible,"onUpdate:modelValue":o[3]||(o[3]=t=>e.visible=t),"custom-class":e.customClass,center:e.center,"append-to-body":!0,width:e.width,"close-on-click-modal":e.clickModalClose,onClosed:e.close},C({footer:s(()=>[d("div",y,[e.cancelButtonText?(a(),m(r,{key:0,onClick:o[1]||(o[1]=t=>e.handleEvent("cancel"))},{default:s(()=>[l(n(e.cancelButtonText),1)]),_:1})):u("",!0),e.confirmButtonText?(a(),m(r,{key:1,type:"primary",onClick:o[2]||(o[2]=t=>e.handleEvent("confirm"))},{default:s(()=>[l(n(e.confirmButtonText),1)]),_:1})):u("",!0)])]),default:s(()=>[i(e.$slots,"default",{},()=>[l(n(e.content),1)],!0)]),_:2},[e.title?{name:"header",fn:s(()=>[l(n(e.title),1)]),key:"0"}:void 0]),1032,["modelValue","custom-class","center","width","close-on-click-modal","onClosed"])])}const I=v(k,[["render",V],["__scopeId","data-v-d380c88d"]]);export{I as P}; diff --git a/build/admin/assets/index.20a87a83.js b/build/admin/assets/index.ee0a629d.js similarity index 77% rename from build/admin/assets/index.20a87a83.js rename to build/admin/assets/index.ee0a629d.js index 5990e0d62..c02fb40da 100644 --- a/build/admin/assets/index.20a87a83.js +++ b/build/admin/assets/index.ee0a629d.js @@ -1 +1 @@ -import{U as R,x as Y,y as q,J as M,K as U,D as $,w as A,F as S,L as K}from"./element-plus.4a7d92a3.js";import"./index.28c6cdcf.js";import"./lodash.9dc701ad.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.e7fd9da7.js";import{a as j}from"./system_store.6d454f9d.js";import{_ as f}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.453a2fee.js";import{s as z}from"./shortcuts.7e7a323b.js";import{h as T}from"./moment.40bc58bf.js";import{d as w,r as m,Z as I,w as J,n as O,o as c,c as h,U as e,L as a,u as o,T as Z,a9 as G,K as H,j as C,R as g}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_cash_finance_flow.d94b6a30.js";import"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.b08aa554.js";import"./store_finance_flow.022a22e8.js";const Q=w({name:"storeCashFinanceFlowLists"}),Ke=w({...Q,setup(W){const i=m([]),r=I({store_id:"",start_time:"",end_time:""});J(()=>i.value,(s,t)=>{r.start_time=T(s[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(s[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const p=m(!1),b=m([]),N=(s="")=>{p.value=!0,j({name:s,page_size:50}).then(t=>{b.value=t.lists,setTimeout(()=>{p.value=!1},300)}).catch(t=>{setTimeout(()=>{p.value=!1},300)})},v=m(null),y=m(null),E=m(null),n=m("first"),u=s=>{s.paneName=="first"?v.value.getLists():s.paneName=="second"?y.value.getLists():s.paneName=="three"&&E.value.getLists()},V=()=>{r.store_id="",r.create_time="",u({paneName:n.value})};return O(()=>{u({paneName:n.value})}),(s,t)=>{const D=M,P=U,d=$,x=R,k=A,B=S,F=K,_=Y,L=q;return c(),h("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(B,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(P,{modelValue:o(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(p),style:{width:"240px"},onChange:t[1]||(t[1]=l=>u({paneName:o(n)}))},{default:a(()=>[(c(!0),h(Z,null,G(o(b),l=>(c(),H(D,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(d,{label:"\u65F6\u95F4",prop:"create_time"},{default:a(()=>[e(x,{modelValue:o(i),"onUpdate:modelValue":t[2]||(t[2]=l=>C(i)?i.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:o(z),onChange:t[3]||(t[3]=l=>u({paneName:o(n)}))},null,8,["modelValue","shortcuts"])]),_:1}),e(d,null,{default:a(()=>[e(k,{type:"primary",onClick:t[4]||(t[4]=l=>u({paneName:o(n)}))},{default:a(()=>[g("\u67E5\u8BE2")]),_:1}),e(k,{onClick:V},{default:a(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(F,{class:"!border-none",shadow:"never"},{default:a(()=>[e(L,{modelValue:o(n),"onUpdate:modelValue":t[5]||(t[5]=l=>C(n)?n.value=l:null),class:"demo-tabs",onTabClick:u},{default:a(()=>[e(_,{label:"\u65E5\u8BA2\u5355",name:"first"},{default:a(()=>[e(f,{ref_key:"billTableRef1",ref:v,queryParams:o(r),type:"day"},null,8,["queryParams"])]),_:1}),e(_,{label:"\u5468\u8BA2\u5355",name:"second"},{default:a(()=>[e(f,{ref_key:"billTableRef2",ref:y,queryParams:o(r),type:"week"},null,8,["queryParams"])]),_:1}),e(_,{label:"\u6708\u8BA2\u5355",name:"three"},{default:a(()=>[e(f,{ref_key:"billTableRef3",ref:E,queryParams:o(r),type:"month"},null,8,["queryParams"])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ke as default}; +import{U as R,x as Y,y as q,J as M,K as U,D as $,w as A,F as S,L as K}from"./element-plus.a63a26dd.js";import"./index.79885fb7.js";import"./lodash.2473fc51.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.8def9d9d.js";import{a as j}from"./system_store.0480155e.js";import{_ as f}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.d7aa4418.js";import{s as z}from"./shortcuts.7e7a323b.js";import{h as T}from"./moment.40bc58bf.js";import{d as w,r as m,Z as I,w as J,n as O,o as c,c as h,U as e,L as a,u as o,T as Z,a9 as G,K as H,j as C,R as g}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_cash_finance_flow.a81692b6.js";import"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.1ff41454.js";import"./store_finance_flow.b29c0356.js";const Q=w({name:"storeCashFinanceFlowLists"}),Ke=w({...Q,setup(W){const i=m([]),r=I({store_id:"",start_time:"",end_time:""});J(()=>i.value,(s,t)=>{r.start_time=T(s[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(s[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const p=m(!1),b=m([]),N=(s="")=>{p.value=!0,j({name:s,page_size:50}).then(t=>{b.value=t.lists,setTimeout(()=>{p.value=!1},300)}).catch(t=>{setTimeout(()=>{p.value=!1},300)})},v=m(null),y=m(null),E=m(null),n=m("first"),u=s=>{s.paneName=="first"?v.value.getLists():s.paneName=="second"?y.value.getLists():s.paneName=="three"&&E.value.getLists()},V=()=>{r.store_id="",r.create_time="",u({paneName:n.value})};return O(()=>{u({paneName:n.value})}),(s,t)=>{const D=M,P=U,d=$,x=R,k=A,B=S,F=K,_=Y,L=q;return c(),h("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(B,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(P,{modelValue:o(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(p),style:{width:"240px"},onChange:t[1]||(t[1]=l=>u({paneName:o(n)}))},{default:a(()=>[(c(!0),h(Z,null,G(o(b),l=>(c(),H(D,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(d,{label:"\u65F6\u95F4",prop:"create_time"},{default:a(()=>[e(x,{modelValue:o(i),"onUpdate:modelValue":t[2]||(t[2]=l=>C(i)?i.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:o(z),onChange:t[3]||(t[3]=l=>u({paneName:o(n)}))},null,8,["modelValue","shortcuts"])]),_:1}),e(d,null,{default:a(()=>[e(k,{type:"primary",onClick:t[4]||(t[4]=l=>u({paneName:o(n)}))},{default:a(()=>[g("\u67E5\u8BE2")]),_:1}),e(k,{onClick:V},{default:a(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(F,{class:"!border-none",shadow:"never"},{default:a(()=>[e(L,{modelValue:o(n),"onUpdate:modelValue":t[5]||(t[5]=l=>C(n)?n.value=l:null),class:"demo-tabs",onTabClick:u},{default:a(()=>[e(_,{label:"\u65E5\u8BA2\u5355",name:"first"},{default:a(()=>[e(f,{ref_key:"billTableRef1",ref:v,queryParams:o(r),type:"day"},null,8,["queryParams"])]),_:1}),e(_,{label:"\u5468\u8BA2\u5355",name:"second"},{default:a(()=>[e(f,{ref_key:"billTableRef2",ref:y,queryParams:o(r),type:"week"},null,8,["queryParams"])]),_:1}),e(_,{label:"\u6708\u8BA2\u5355",name:"three"},{default:a(()=>[e(f,{ref_key:"billTableRef3",ref:E,queryParams:o(r),type:"month"},null,8,["queryParams"])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ke as default}; diff --git a/build/admin/assets/index.e27dda4a.js b/build/admin/assets/index.f53427ea.js similarity index 81% rename from build/admin/assets/index.e27dda4a.js rename to build/admin/assets/index.f53427ea.js index 22a08b26b..642349c5a 100644 --- a/build/admin/assets/index.e27dda4a.js +++ b/build/admin/assets/index.f53427ea.js @@ -1 +1 @@ -import{C as Q,D as Z,J as q,K as G,w as H,F as W,L as X,M as Y,o as ee,t as te,N as oe,O as ae}from"./element-plus.4a7d92a3.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as ne,b as ie}from"./index.28c6cdcf.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{d as A,s as se,Z as me,r as re,i as pe,ap as de,o as u,c as k,U as e,L as a,u as o,aa as D,T as ce,a9 as _e,K as m,R as d,M as v,a as V,Q as C,j as fe,n as B}from"./@vue.18505fe0.js";import{a as x,_ as ve,b as be,c as he}from"./edit.vue_vue_type_script_setup_true_lang.3f5edb5f.js";import{r as we}from"./role.fdeae050.js";import{a as Fe}from"./useDictOptions.b08aa554.js";import{u as ge}from"./usePaging.6a6670f9.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./picker.771d2d71.js";import"./index.d777fd30.js";import"./index.1050911c.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";import"./post.4ce5711b.js";import"./department.f4b4a4c2.js";const Ce={class:"admin"},Ee={class:"mt-4"},ye={class:"flex mt-4 justify-end"},ke=A({name:"admin"}),Ft=A({...ke,setup(De){const b=se(),s=me({account:"",name:"",role_id:""}),h=re(!1),{pager:r,getLists:c,resetParams:$,resetPage:g}=ge({fetchFun:x,params:s}),K=l=>{be({id:l.id,avatar:l.avatar,account:l.account,name:l.name,role_id:l.role_id,job_id:l.job_id,dept_id:l.dept_id,disable:l.disable,multipoint_login:l.multipoint_login}).finally(()=>{c()})},U=async()=>{var l;h.value=!0,await B(),(l=b.value)==null||l.open("add")},L=async l=>{var n,_;h.value=!0,await B(),(n=b.value)==null||n.open("edit"),(_=b.value)==null||_.setFormData(l)},z=async l=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:l}),c()},{optionsData:N}=Fe({role:{api:we}});return pe(()=>{c()}),(l,n)=>{const _=Q,w=Z,E=q,P=G,f=H,R=ue,S=W,y=X,T=ie,i=Y,j=ee,I=te,M=oe,O=le,F=de("perms"),J=ae;return u(),k("div",Ce,[e(y,{class:"!border-none",shadow:"never"},{default:a(()=>[e(S,{class:"mb-[-16px]",model:o(s),inline:""},{default:a(()=>[e(w,{label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:a(()=>[e(_,{modelValue:o(s).account,"onUpdate:modelValue":n[0]||(n[0]=t=>o(s).account=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u540D\u79F0"},{default:a(()=>[e(_,{modelValue:o(s).name,"onUpdate:modelValue":n[1]||(n[1]=t=>o(s).name=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u89D2\u8272"},{default:a(()=>[e(P,{class:"w-[280px]",modelValue:o(s).role_id,"onUpdate:modelValue":n[2]||(n[2]=t=>o(s).role_id=t)},{default:a(()=>[e(E,{label:"\u5168\u90E8",value:""}),(u(!0),k(ce,null,_e(o(N).role,(t,p)=>(u(),m(E,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(w,null,{default:a(()=>[e(f,{type:"primary",onClick:o(g)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o($)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(x),params:o(s),"page-size":o(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),m(y,{class:"mt-4 !border-none",shadow:"never"},{default:a(()=>[v((u(),m(f,{type:"primary",onClick:U},{icon:a(()=>[e(T,{name:"el-icon-Plus"})]),default:a(()=>[d(" \u65B0\u589E ")]),_:1})),[[F,["auth/admin/add"]]]),V("div",Ee,[e(M,{data:o(r).lists,size:"large"},{default:a(()=>[e(i,{label:"ID",prop:"id","min-width":"60"}),d("> "),e(i,{label:"\u5934\u50CF","min-width":"100"},{default:a(({row:t})=>[e(j,{size:50,src:t.avatar},null,8,["src"])]),_:1}),e(i,{label:"\u8D26\u53F7",prop:"account","min-width":"100"}),e(i,{label:"\u540D\u79F0",prop:"name","min-width":"100"}),e(i,{label:"\u89D2\u8272",prop:"role_name","min-width":"100","show-tooltip-when-overflow":""}),e(i,{label:"\u90E8\u95E8",prop:"dept_name","min-width":"100","show-tooltip-when-overflow":""}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(i,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4",prop:"login_time","min-width":"180"}),e(i,{label:"\u6700\u8FD1\u767B\u5F55IP",prop:"login_ip","min-width":"120"}),v((u(),m(i,{label:"\u72B6\u6001","min-width":"100"},{default:a(({row:t})=>[t.root!=1?(u(),m(I,{key:0,modelValue:t.disable,"onUpdate:modelValue":p=>t.disable=p,"active-value":0,"inactive-value":1,onChange:p=>K(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):C("",!0)]),_:1})),[[F,["auth/admin/edit"]]]),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[v((u(),m(f,{type:"primary",link:"",onClick:p=>L(t)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[F,["auth/admin/edit"]]]),t.root!=1?v((u(),m(f,{key:0,type:"danger",link:"",onClick:p=>z(t.id)},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[F,["auth/admin/delete"]]]):C("",!0)]),_:1})]),_:1},8,["data"])]),V("div",ye,[e(O,{modelValue:o(r),"onUpdate:modelValue":n[3]||(n[3]=t=>fe(r)?r.value=t:null),onChange:o(c)},null,8,["modelValue","onChange"])])]),_:1})),[[J,o(r).loading]]),o(h)?(u(),m(ve,{key:0,ref_key:"editRef",ref:b,onSuccess:o(c),onClose:n[4]||(n[4]=t=>h.value=!1)},null,8,["onSuccess"])):C("",!0)])}}});export{Ft as default}; +import{C as Q,D as Z,J as q,K as G,w as H,F as W,L as X,M as Y,o as ee,t as te,N as oe,O as ae}from"./element-plus.a63a26dd.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as ne,b as ie}from"./index.79885fb7.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{d as A,s as se,Z as me,r as re,i as pe,ap as de,o as u,c as k,U as e,L as a,u as o,aa as D,T as ce,a9 as _e,K as m,R as d,M as v,a as V,Q as C,j as fe,n as B}from"./@vue.18505fe0.js";import{a as x,_ as ve,b as be,c as he}from"./edit.vue_vue_type_script_setup_true_lang.7854f803.js";import{r as we}from"./role.243de741.js";import{a as Fe}from"./useDictOptions.1ff41454.js";import{u as ge}from"./usePaging.6a6670f9.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./picker.bfcf15be.js";import"./index.c1432c63.js";import"./index.a5c1d2e3.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";import"./post.5fcb5de3.js";import"./department.4629143a.js";const Ce={class:"admin"},Ee={class:"mt-4"},ye={class:"flex mt-4 justify-end"},ke=A({name:"admin"}),Ft=A({...ke,setup(De){const b=se(),s=me({account:"",name:"",role_id:""}),h=re(!1),{pager:r,getLists:c,resetParams:$,resetPage:g}=ge({fetchFun:x,params:s}),K=l=>{be({id:l.id,avatar:l.avatar,account:l.account,name:l.name,role_id:l.role_id,job_id:l.job_id,dept_id:l.dept_id,disable:l.disable,multipoint_login:l.multipoint_login}).finally(()=>{c()})},U=async()=>{var l;h.value=!0,await B(),(l=b.value)==null||l.open("add")},L=async l=>{var n,_;h.value=!0,await B(),(n=b.value)==null||n.open("edit"),(_=b.value)==null||_.setFormData(l)},z=async l=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:l}),c()},{optionsData:N}=Fe({role:{api:we}});return pe(()=>{c()}),(l,n)=>{const _=Q,w=Z,E=q,P=G,f=H,R=ue,S=W,y=X,T=ie,i=Y,j=ee,I=te,M=oe,O=le,F=de("perms"),J=ae;return u(),k("div",Ce,[e(y,{class:"!border-none",shadow:"never"},{default:a(()=>[e(S,{class:"mb-[-16px]",model:o(s),inline:""},{default:a(()=>[e(w,{label:"\u7BA1\u7406\u5458\u8D26\u53F7"},{default:a(()=>[e(_,{modelValue:o(s).account,"onUpdate:modelValue":n[0]||(n[0]=t=>o(s).account=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u540D\u79F0"},{default:a(()=>[e(_,{modelValue:o(s).name,"onUpdate:modelValue":n[1]||(n[1]=t=>o(s).name=t),class:"w-[280px]",clearable:"",onKeyup:D(o(g),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u7BA1\u7406\u5458\u89D2\u8272"},{default:a(()=>[e(P,{class:"w-[280px]",modelValue:o(s).role_id,"onUpdate:modelValue":n[2]||(n[2]=t=>o(s).role_id=t)},{default:a(()=>[e(E,{label:"\u5168\u90E8",value:""}),(u(!0),k(ce,null,_e(o(N).role,(t,p)=>(u(),m(E,{key:p,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(w,null,{default:a(()=>[e(f,{type:"primary",onClick:o(g)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o($)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(x),params:o(s),"page-size":o(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),m(y,{class:"mt-4 !border-none",shadow:"never"},{default:a(()=>[v((u(),m(f,{type:"primary",onClick:U},{icon:a(()=>[e(T,{name:"el-icon-Plus"})]),default:a(()=>[d(" \u65B0\u589E ")]),_:1})),[[F,["auth/admin/add"]]]),V("div",Ee,[e(M,{data:o(r).lists,size:"large"},{default:a(()=>[e(i,{label:"ID",prop:"id","min-width":"60"}),d("> "),e(i,{label:"\u5934\u50CF","min-width":"100"},{default:a(({row:t})=>[e(j,{size:50,src:t.avatar},null,8,["src"])]),_:1}),e(i,{label:"\u8D26\u53F7",prop:"account","min-width":"100"}),e(i,{label:"\u540D\u79F0",prop:"name","min-width":"100"}),e(i,{label:"\u89D2\u8272",prop:"role_name","min-width":"100","show-tooltip-when-overflow":""}),e(i,{label:"\u90E8\u95E8",prop:"dept_name","min-width":"100","show-tooltip-when-overflow":""}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(i,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4",prop:"login_time","min-width":"180"}),e(i,{label:"\u6700\u8FD1\u767B\u5F55IP",prop:"login_ip","min-width":"120"}),v((u(),m(i,{label:"\u72B6\u6001","min-width":"100"},{default:a(({row:t})=>[t.root!=1?(u(),m(I,{key:0,modelValue:t.disable,"onUpdate:modelValue":p=>t.disable=p,"active-value":0,"inactive-value":1,onChange:p=>K(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):C("",!0)]),_:1})),[[F,["auth/admin/edit"]]]),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[v((u(),m(f,{type:"primary",link:"",onClick:p=>L(t)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[F,["auth/admin/edit"]]]),t.root!=1?v((u(),m(f,{key:0,type:"danger",link:"",onClick:p=>z(t.id)},{default:a(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[F,["auth/admin/delete"]]]):C("",!0)]),_:1})]),_:1},8,["data"])]),V("div",ye,[e(O,{modelValue:o(r),"onUpdate:modelValue":n[3]||(n[3]=t=>fe(r)?r.value=t:null),onChange:o(c)},null,8,["modelValue","onChange"])])]),_:1})),[[J,o(r).loading]]),o(h)?(u(),m(ve,{key:0,ref_key:"editRef",ref:b,onSuccess:o(c),onClose:n[4]||(n[4]=t=>h.value=!1)},null,8,["onSuccess"])):C("",!0)])}}});export{Ft as default}; diff --git a/build/admin/assets/index.65f8a212.js b/build/admin/assets/index.f710f5a7.js similarity index 83% rename from build/admin/assets/index.65f8a212.js rename to build/admin/assets/index.f710f5a7.js index 43bd28f44..e6ecde2b2 100644 --- a/build/admin/assets/index.65f8a212.js +++ b/build/admin/assets/index.f710f5a7.js @@ -1 +1 @@ -import{U as J,J as W,K as Z,D as G,C as H,w as Q,F as X,L as ee,M as oe,b as te,N as le,O as ae}from"./element-plus.4a7d92a3.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ie}from"./useDictOptions.b08aa554.js";import{d as k}from"./warehouse_product.2726ef24.js";import{d as M,s as pe,r as p,Z as ne,i as me,o as d,c as v,U as e,L as r,u as o,a as f,T as y,a9 as B,K as b,j as L,R as T,M as de,S as _e}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import"./index.28c6cdcf.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.4be46edf.js";import{a as ce}from"./system_store.6d454f9d.js";import{h as U}from"./moment.40bc58bf.js";import{a as fe}from"./supplier.4ca7878d.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.0a016a9d.js";import"./store_product.8e022f19.js";import"./store_branch_product.f62e9946.js";import"./warehouse_product_storege.224b265e.js";import"./warehouse_order.bb400fe7.js";import"./warehouse.f60d78fc.js";const he={class:"flex items-center mr-4"},we={class:"mt-4"},ve={style:{color:"red"}},be={class:"flex mt-4 justify-end"},Ee=M({name:"warehouseProductLists"}),wo=M({...Ee,setup(Fe){pe(),p(!1);const a=ne({warehouse_id:"",product_id:"",financial_pm:1,store_id:"",bar_code:"",start_time:"",end_time:"",supplier_id:""}),S=p([]),Y=m=>{S.value=m.map(({id:l})=>l)};ie("warehouse_produc_pm");const{pager:n,getLists:h,resetParams:P,resetPage:E}=se({fetchFun:k,params:a}),s=p([]),z=()=>{s.value[0]&&s.value[1]?(a.start_time=U(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=U(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),h()},_=p(!1),F=p([]),I=(m="")=>{_.value=!0,ce({name:m,page_size:50}).then(l=>{F.value=l.lists,setTimeout(()=>{_.value=!1},300)}).catch(l=>{setTimeout(()=>{_.value=!1},300)})},c=p(!1),g=p([]),N=(m="")=>{c.value=!0,fe({mer_name:m}).then(l=>{g.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return me(()=>{h()}),(m,l)=>{const C=W,D=Z,i=G,w=H,A=J,V=Q,R=ue,j=X,x=ee,u=oe,K=te,O=le,$=re,q=ae;return d(),v("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(j,{class:"mb-[-16px]",model:o(a),inline:""},{default:r(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[f("div",he,[e(D,{modelValue:o(a).store_id,"onUpdate:modelValue":l[0]||(l[0]=t=>o(a).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":I,loading:o(_),style:{width:"240px"},onChange:o(E)},{default:r(()=>[(d(!0),v(y,null,B(o(F),t=>(d(),b(C,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(i,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).warehouse_id,"onUpdate:modelValue":l[1]||(l[1]=t=>o(a).warehouse_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:r(()=>[e(D,{modelValue:o(a).supplier_id,"onUpdate:modelValue":l[2]||(l[2]=t=>o(a).supplier_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(c),style:{width:"240px"}},{default:r(()=>[(d(!0),v(y,null,B(o(g),t=>(d(),b(C,{key:t.id,label:t.mer_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(i,{label:"\u5546\u54C1",prop:"product_id"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).product_id,"onUpdate:modelValue":l[3]||(l[3]=t=>o(a).product_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).bar_code,"onUpdate:modelValue":l[4]||(l[4]=t=>o(a).bar_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65E5\u671F",prop:"create_time"},{default:r(()=>[e(A,{modelValue:o(s),"onUpdate:modelValue":l[5]||(l[5]=t=>L(s)?s.value=t:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:z},null,8,["modelValue"])]),_:1}),e(i,null,{default:r(()=>[e(V,{type:"primary",onClick:o(E)},{default:r(()=>[T("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(V,{onClick:o(P)},{default:r(()=>[T("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(k),params:o(a),"page-size":o(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),de((d(),b(x,{class:"!border-none",shadow:"never"},{default:r(()=>[f("div",we,[e(O,{data:o(n).lists,onSelectionChange:Y},{default:r(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(u,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(u,{label:"\u56FE\u7247",prop:"image","min-width":"80"},{default:r(({row:t})=>[e(K,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u51FA\u5165\u5E93",prop:"financial_pm_name","show-overflow-tooltip":""}),e(u,{label:"\u6279\u6B21",prop:"batch","show-overflow-tooltip":""}),e(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(u,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u751F\u4EA7\u671F",prop:"manufacture","show-overflow-tooltip":""}),e(u,{label:"\u4FDD\u8D28\u671F",prop:"expiration_date","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8","show-overflow-tooltip":""},{default:r(({row:t})=>[f("span",ve,_e(t.mark),1)]),_:1})]),_:1},8,["data"])]),f("div",be,[e($,{modelValue:o(n),"onUpdate:modelValue":l[6]||(l[6]=t=>L(n)?n.value=t:null),onChange:o(h)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(n).loading]])])}}});export{wo as default}; +import{U as J,J as W,K as Z,D as G,C as H,w as Q,F as X,L as ee,M as oe,b as te,N as le,O as ae}from"./element-plus.a63a26dd.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ie}from"./useDictOptions.1ff41454.js";import{d as k}from"./warehouse_product.ff7eff19.js";import{d as M,s as pe,r as p,Z as ne,i as me,o as d,c as v,U as e,L as r,u as o,a as f,T as y,a9 as B,K as b,j as L,R as T,M as de,S as _e}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";import"./index.79885fb7.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.7b2e945d.js";import{a as ce}from"./system_store.0480155e.js";import{h as U}from"./moment.40bc58bf.js";import{a as fe}from"./supplier.1bf9e15b.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.79666e01.js";import"./store_product.88b61be2.js";import"./store_branch_product.ce7e9094.js";import"./warehouse_product_storege.a82fd3ce.js";import"./warehouse_order.1c8410e3.js";import"./warehouse.925874d3.js";const he={class:"flex items-center mr-4"},we={class:"mt-4"},ve={style:{color:"red"}},be={class:"flex mt-4 justify-end"},Ee=M({name:"warehouseProductLists"}),wo=M({...Ee,setup(Fe){pe(),p(!1);const a=ne({warehouse_id:"",product_id:"",financial_pm:1,store_id:"",bar_code:"",start_time:"",end_time:"",supplier_id:""}),S=p([]),Y=m=>{S.value=m.map(({id:l})=>l)};ie("warehouse_produc_pm");const{pager:n,getLists:h,resetParams:P,resetPage:E}=se({fetchFun:k,params:a}),s=p([]),z=()=>{s.value[0]&&s.value[1]?(a.start_time=U(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=U(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),h()},_=p(!1),F=p([]),I=(m="")=>{_.value=!0,ce({name:m,page_size:50}).then(l=>{F.value=l.lists,setTimeout(()=>{_.value=!1},300)}).catch(l=>{setTimeout(()=>{_.value=!1},300)})},c=p(!1),g=p([]),N=(m="")=>{c.value=!0,fe({mer_name:m}).then(l=>{g.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return me(()=>{h()}),(m,l)=>{const C=W,D=Z,i=G,w=H,A=J,V=Q,R=ue,j=X,x=ee,u=oe,K=te,O=le,$=re,q=ae;return d(),v("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(j,{class:"mb-[-16px]",model:o(a),inline:""},{default:r(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:r(()=>[f("div",he,[e(D,{modelValue:o(a).store_id,"onUpdate:modelValue":l[0]||(l[0]=t=>o(a).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":I,loading:o(_),style:{width:"240px"},onChange:o(E)},{default:r(()=>[(d(!0),v(y,null,B(o(F),t=>(d(),b(C,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(i,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).warehouse_id,"onUpdate:modelValue":l[1]||(l[1]=t=>o(a).warehouse_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:r(()=>[e(D,{modelValue:o(a).supplier_id,"onUpdate:modelValue":l[2]||(l[2]=t=>o(a).supplier_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(c),style:{width:"240px"}},{default:r(()=>[(d(!0),v(y,null,B(o(g),t=>(d(),b(C,{key:t.id,label:t.mer_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(i,{label:"\u5546\u54C1",prop:"product_id"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).product_id,"onUpdate:modelValue":l[3]||(l[3]=t=>o(a).product_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:r(()=>[e(w,{class:"w-[280px]",modelValue:o(a).bar_code,"onUpdate:modelValue":l[4]||(l[4]=t=>o(a).bar_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65E5\u671F",prop:"create_time"},{default:r(()=>[e(A,{modelValue:o(s),"onUpdate:modelValue":l[5]||(l[5]=t=>L(s)?s.value=t:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:z},null,8,["modelValue"])]),_:1}),e(i,null,{default:r(()=>[e(V,{type:"primary",onClick:o(E)},{default:r(()=>[T("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(V,{onClick:o(P)},{default:r(()=>[T("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":o(k),params:o(a),"page-size":o(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),de((d(),b(x,{class:"!border-none",shadow:"never"},{default:r(()=>[f("div",we,[e(O,{data:o(n).lists,onSelectionChange:Y},{default:r(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(u,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(u,{label:"\u56FE\u7247",prop:"image","min-width":"80"},{default:r(({row:t})=>[e(K,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u51FA\u5165\u5E93",prop:"financial_pm_name","show-overflow-tooltip":""}),e(u,{label:"\u6279\u6B21",prop:"batch","show-overflow-tooltip":""}),e(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(u,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u751F\u4EA7\u671F",prop:"manufacture","show-overflow-tooltip":""}),e(u,{label:"\u4FDD\u8D28\u671F",prop:"expiration_date","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8","show-overflow-tooltip":""},{default:r(({row:t})=>[f("span",ve,_e(t.mark),1)]),_:1})]),_:1},8,["data"])]),f("div",be,[e($,{modelValue:o(n),"onUpdate:modelValue":l[6]||(l[6]=t=>L(n)?n.value=t:null),onChange:o(h)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(n).loading]])])}}});export{wo as default}; diff --git a/build/admin/assets/index.5fc68689.js b/build/admin/assets/index.f97878c2.js similarity index 85% rename from build/admin/assets/index.5fc68689.js rename to build/admin/assets/index.f97878c2.js index 8e4d7fe5c..59287bbbe 100644 --- a/build/admin/assets/index.5fc68689.js +++ b/build/admin/assets/index.f97878c2.js @@ -1 +1 @@ -import{a6 as ce,C as me,D as _e,J as de,K as fe,w as he,F as ye,L as Ce,c as ge,a as ve,M as we,b as be,N as ke,O as Ee}from"./element-plus.4a7d92a3.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as De}from"./index.bab0dd7c.js";import{_ as xe}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{d as K,r as f,Z as I,i as Be,af as Re,o as h,c as g,U as e,L as a,u as l,aa as Ve,T,a9 as U,R as p,a as c,a0 as Le,S as m,M as Pe,K as Ae,j as Se,n as P}from"./@vue.18505fe0.js";import{u as $e}from"./usePaging.6a6670f9.js";import{u as ze}from"./useDictOptions.b08aa554.js";import{a as Ne}from"./store_product.8e022f19.js";import{g as Ie,t as Te,w as Ue}from"./workbench.b1ea8db6.js";import{_ as Ke}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.a366f2ee.js";import{_ as Oe}from"./stockDetails.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.379ce411.js";import{_ as We}from"./warehouseProduct.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.a4f0f0b7.js";import{a as je}from"./store_category.fc260137.js";import{u as qe}from"./vue-router.101084e3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.28c6cdcf.js";import"./lodash.9dc701ad.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_order.df8bb070.js";const Me={class:"flex flex-wrap"},Je={class:"mr-2"},Ze={class:"text-info"},Ge={key:0},He={class:"text-2xl mr-2"},Qe={class:"text-2xl mr-2"},Xe={key:1},Ye={class:"text-6xl mr-2"},et={class:"mt-4"},tt={class:"flex mt-4 justify-end"},ot=K({name:"storeProductLists"}),Gt=K({...ot,setup(at){const O=f(!1),W=f(!1),j=f(!1),A=qe(),b=f(null),k=f(null),E=f(null),i=I({store_name:"",class_all:"",bar_code:"",field:"stock",order_by:""}),q=()=>{Ie({}).then(n=>{})},M=async n=>{var o,r;O.value=!0,await P(),(o=b.value)==null||o.open(),(r=b.value)==null||r.getDetail(n)},S=async(n,o=1)=>{var r,s;W.value=!0,await P(),(r=k.value)==null||r.open(),(s=k.value)==null||s.getDetail(n,o)},F=async(n,o=1)=>{var r,s;j.value=!0,await P(),(r=E.value)==null||r.open(),(s=E.value)==null||s.getDetail(n,o)},J=f([]),Z=n=>{J.value=n.map(({id:o})=>o)};ze("");let $=1;A.query.page_no&&($=parseInt(A.query.page_no));const{pager:y,getLists:z,resetParams:G,resetPage:v}=$e({page:$,fetchFun:Ue,params:i});let D,x;const B=f(!1);let R;const H=n=>(R=n,B.value=!0,N.lazyLoad(x,D),!1),N={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(n,o){D||(D=o),x||(x=n);const r=n.value||0;let s={};B.value?(s={name:R},R||(s={pid:r,page_size:1e4})):s={pid:r,page_size:1e4},je({...s}).then(V=>{o(V.lists.map(w=>(w.leaf=!0,B.value=!1,w)))})}},Q=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],X=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),C=I({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),Y=()=>{Te({}).then(n=>{C.xAxis.data=[],C.series=[],console.log(n),C.legend.data=Object.values(n.series).map(o=>o.name),C.xAxis.data=n.x,C.series=Object.values(n.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,total_value:o.total_value,rate:o.rate,desc:o.desc,total_money:o.total_money}))})};return Be(()=>{z(),Y()}),(n,o)=>{const r=me,s=_e,V=ce,w=de,ee=fe,_=he,te=xe,oe=ye,L=Ce,ae=De,le=Re("Warning"),ne=ge,se=ve,u=we,re=be,ue=ke,ie=Fe,pe=Ee;return h(),g("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(oe,{class:"mb-[-16px]",model:l(i),inline:""},{default:a(()=>[e(s,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(r,{class:"w-[280px]",onKeydown:Ve(l(v),["enter"]),modelValue:l(i).store_name,"onUpdate:modelValue":o[0]||(o[0]=t=>l(i).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(s,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:l(i).bar_code,"onUpdate:modelValue":o[1]||(o[1]=t=>l(i).bar_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5546\u54C1\u5206\u7C7B",prop:"store_name"},{default:a(()=>[e(V,{class:"w-[280px]",modelValue:l(i).class_all,"onUpdate:modelValue":o[2]||(o[2]=t=>l(i).class_all=t),filterable:"",clearable:"","before-filter":H,props:N,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B",onChange:l(v)},null,8,["modelValue","onChange"])]),_:1}),e(s,{label:"\u6392\u5E8F",prop:"order_by"},{default:a(()=>[e(ee,{modelValue:l(i).order_by,"onUpdate:modelValue":o[3]||(o[3]=t=>l(i).order_by=t),placeholder:"\u8BF7\u9009\u62E9\u6392\u5E8F",style:{width:"240px"},onChange:l(v)},{default:a(()=>[(h(),g(T,null,U([{id:"asc",name:"\u5347\u5E8F"},{id:"desc",name:"\u964D\u5E8F"}],t=>e(w,{key:t.id,label:t.name,value:t.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),e(s,null,{default:a(()=>[e(_,{type:"primary",onClick:l(v)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:l(G)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(_,{type:"primary",onClick:q},{default:a(()=>[p("\u91CD\u65B0\u7EDF\u8BA1\u6570\u636E")]),_:1}),e(te,{class:"ml-2.5","fetch-fun":l(Ne),params:l(i),"page-size":l(y).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[c("div",Me,[(h(!0),g(T,null,U(l(C).series,(t,d)=>(h(),g("div",{class:"w-1/5 flex mb-6",key:d},[c("div",Je,[c("div",{class:"rounded-full p-2",style:Le({"background-color":Q[d%4]})},[e(ae,{iconName:l(X)[d],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),c("div",null,[c("div",Ze,[p(m(t.name)+" ",1),e(se,{class:"box-item",effect:"dark",content:t.desc,placement:"top-start"},{default:a(()=>[e(ne,null,{default:a(()=>[e(le)]),_:1})]),_:2},1032,["content"])]),t.total_money!=""?(h(),g("div",Ge,[c("span",He,"\u5E93\u5B58:"+m(t.total_value),1),c("span",Qe,"\u91D1\u989D:"+m(t.total_money),1)])):(h(),g("div",Xe,[c("span",Ye,m(t.total_value),1)]))])]))),128))])]),_:1}),Pe((h(),Ae(L,{class:"!border-none",shadow:"never"},{default:a(()=>[c("div",et,[e(ue,{data:l(y).lists,onSelectionChange:Z},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:t})=>[e(re,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(u,{label:"\u9500\u91CF",prop:"sales","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>M(t)},{default:a(()=>[p(m(t.sales||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u95E8\u5E97\u5E93\u5B58",prop:"store_stock","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>S(t,1)},{default:a(()=>[p(m(t.store_stock||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u4ED3\u5E93\u5E93\u5B58",prop:"warehouse_stock","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>S(t,0)},{default:a(()=>[p(m(t.warehouse_stock||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u5E93\u5B58",prop:"total_stock","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u4EF7\u503C",prop:"total_price","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u91C7\u8D2D\u603B\u4EF7",prop:"total_purchase","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>F(t,1)},{default:a(()=>[p(m(t.total_purchase||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u5DF2\u7ED3",prop:"total_completed_amount","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>F(t,2)},{default:a(()=>[p(m(t.total_completed_amount||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u672A\u7ED3",prop:"total_outstanding_amount","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>F(t,3)},{default:a(()=>[p(m(t.total_outstanding_amount||0),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),c("div",tt,[e(ie,{modelValue:l(y),"onUpdate:modelValue":o[4]||(o[4]=t=>Se(y)?y.value=t:null),onChange:l(z)},null,8,["modelValue","onChange"])])]),_:1})),[[pe,l(y).loading]]),e(Ke,{ref_key:"detailsRef",ref:b},null,512),e(Oe,{ref_key:"stockDetailsRef",ref:k},null,512),e(We,{ref_key:"warehouseProductRef",ref:E},null,512)])}}});export{Gt as default}; +import{a6 as ce,C as me,D as _e,J as de,K as fe,w as he,F as ye,L as Ce,c as ge,a as ve,M as we,b as be,N as ke,O as Ee}from"./element-plus.a63a26dd.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as De}from"./index.4d4cbfac.js";import{_ as xe}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{d as K,r as f,Z as I,i as Be,af as Re,o as h,c as g,U as e,L as a,u as l,aa as Ve,T,a9 as U,R as p,a as c,a0 as Le,S as m,M as Pe,K as Ae,j as Se,n as P}from"./@vue.18505fe0.js";import{u as $e}from"./usePaging.6a6670f9.js";import{u as ze}from"./useDictOptions.1ff41454.js";import{a as Ne}from"./store_product.88b61be2.js";import{g as Ie,t as Te,w as Ue}from"./workbench.1c4b1ac8.js";import{_ as Ke}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.eb83ac72.js";import{_ as Oe}from"./stockDetails.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.7f96bbbb.js";import{_ as We}from"./warehouseProduct.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.fddd77e6.js";import{a as je}from"./store_category.9b1021ea.js";import{u as qe}from"./vue-router.101084e3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.79885fb7.js";import"./lodash.2473fc51.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_order.24e9ca87.js";const Me={class:"flex flex-wrap"},Je={class:"mr-2"},Ze={class:"text-info"},Ge={key:0},He={class:"text-2xl mr-2"},Qe={class:"text-2xl mr-2"},Xe={key:1},Ye={class:"text-6xl mr-2"},et={class:"mt-4"},tt={class:"flex mt-4 justify-end"},ot=K({name:"storeProductLists"}),Gt=K({...ot,setup(at){const O=f(!1),W=f(!1),j=f(!1),A=qe(),b=f(null),k=f(null),E=f(null),i=I({store_name:"",class_all:"",bar_code:"",field:"stock",order_by:""}),q=()=>{Ie({}).then(n=>{})},M=async n=>{var o,r;O.value=!0,await P(),(o=b.value)==null||o.open(),(r=b.value)==null||r.getDetail(n)},S=async(n,o=1)=>{var r,s;W.value=!0,await P(),(r=k.value)==null||r.open(),(s=k.value)==null||s.getDetail(n,o)},F=async(n,o=1)=>{var r,s;j.value=!0,await P(),(r=E.value)==null||r.open(),(s=E.value)==null||s.getDetail(n,o)},J=f([]),Z=n=>{J.value=n.map(({id:o})=>o)};ze("");let $=1;A.query.page_no&&($=parseInt(A.query.page_no));const{pager:y,getLists:z,resetParams:G,resetPage:v}=$e({page:$,fetchFun:Ue,params:i});let D,x;const B=f(!1);let R;const H=n=>(R=n,B.value=!0,N.lazyLoad(x,D),!1),N={value:"id",label:"name",emitPath:!1,lazy:!0,lazyLoad(n,o){D||(D=o),x||(x=n);const r=n.value||0;let s={};B.value?(s={name:R},R||(s={pid:r,page_size:1e4})):s={pid:r,page_size:1e4},je({...s}).then(V=>{o(V.lists.map(w=>(w.leaf=!0,B.value=!1,w)))})}},Q=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],X=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),C=I({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),Y=()=>{Te({}).then(n=>{C.xAxis.data=[],C.series=[],console.log(n),C.legend.data=Object.values(n.series).map(o=>o.name),C.xAxis.data=n.x,C.series=Object.values(n.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,total_value:o.total_value,rate:o.rate,desc:o.desc,total_money:o.total_money}))})};return Be(()=>{z(),Y()}),(n,o)=>{const r=me,s=_e,V=ce,w=de,ee=fe,_=he,te=xe,oe=ye,L=Ce,ae=De,le=Re("Warning"),ne=ge,se=ve,u=we,re=be,ue=ke,ie=Fe,pe=Ee;return h(),g("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(oe,{class:"mb-[-16px]",model:l(i),inline:""},{default:a(()=>[e(s,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(r,{class:"w-[280px]",onKeydown:Ve(l(v),["enter"]),modelValue:l(i).store_name,"onUpdate:modelValue":o[0]||(o[0]=t=>l(i).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(s,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:a(()=>[e(r,{class:"w-[280px]",modelValue:l(i).bar_code,"onUpdate:modelValue":o[1]||(o[1]=t=>l(i).bar_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5546\u54C1\u5206\u7C7B",prop:"store_name"},{default:a(()=>[e(V,{class:"w-[280px]",modelValue:l(i).class_all,"onUpdate:modelValue":o[2]||(o[2]=t=>l(i).class_all=t),filterable:"",clearable:"","before-filter":H,props:N,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B",onChange:l(v)},null,8,["modelValue","onChange"])]),_:1}),e(s,{label:"\u6392\u5E8F",prop:"order_by"},{default:a(()=>[e(ee,{modelValue:l(i).order_by,"onUpdate:modelValue":o[3]||(o[3]=t=>l(i).order_by=t),placeholder:"\u8BF7\u9009\u62E9\u6392\u5E8F",style:{width:"240px"},onChange:l(v)},{default:a(()=>[(h(),g(T,null,U([{id:"asc",name:"\u5347\u5E8F"},{id:"desc",name:"\u964D\u5E8F"}],t=>e(w,{key:t.id,label:t.name,value:t.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),e(s,null,{default:a(()=>[e(_,{type:"primary",onClick:l(v)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:l(G)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(_,{type:"primary",onClick:q},{default:a(()=>[p("\u91CD\u65B0\u7EDF\u8BA1\u6570\u636E")]),_:1}),e(te,{class:"ml-2.5","fetch-fun":l(Ne),params:l(i),"page-size":l(y).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[c("div",Me,[(h(!0),g(T,null,U(l(C).series,(t,d)=>(h(),g("div",{class:"w-1/5 flex mb-6",key:d},[c("div",Je,[c("div",{class:"rounded-full p-2",style:Le({"background-color":Q[d%4]})},[e(ae,{iconName:l(X)[d],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),c("div",null,[c("div",Ze,[p(m(t.name)+" ",1),e(se,{class:"box-item",effect:"dark",content:t.desc,placement:"top-start"},{default:a(()=>[e(ne,null,{default:a(()=>[e(le)]),_:1})]),_:2},1032,["content"])]),t.total_money!=""?(h(),g("div",Ge,[c("span",He,"\u5E93\u5B58:"+m(t.total_value),1),c("span",Qe,"\u91D1\u989D:"+m(t.total_money),1)])):(h(),g("div",Xe,[c("span",Ye,m(t.total_value),1)]))])]))),128))])]),_:1}),Pe((h(),Ae(L,{class:"!border-none",shadow:"never"},{default:a(()=>[c("div",et,[e(ue,{data:l(y).lists,onSelectionChange:Z},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:t})=>[e(re,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(u,{label:"\u9500\u91CF",prop:"sales","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>M(t)},{default:a(()=>[p(m(t.sales||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u95E8\u5E97\u5E93\u5B58",prop:"store_stock","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>S(t,1)},{default:a(()=>[p(m(t.store_stock||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u4ED3\u5E93\u5E93\u5B58",prop:"warehouse_stock","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>S(t,0)},{default:a(()=>[p(m(t.warehouse_stock||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u5E93\u5B58",prop:"total_stock","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u4EF7\u503C",prop:"total_price","min-width":"100","show-overflow-tooltip":""}),e(u,{label:"\u91C7\u8D2D\u603B\u4EF7",prop:"total_purchase","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>F(t,1)},{default:a(()=>[p(m(t.total_purchase||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u5DF2\u7ED3",prop:"total_completed_amount","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>F(t,2)},{default:a(()=>[p(m(t.total_completed_amount||0),1)]),_:2},1032,["onClick"])]),_:1}),e(u,{label:"\u672A\u7ED3",prop:"total_outstanding_amount","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[e(_,{type:"primary",link:"",onClick:d=>F(t,3)},{default:a(()=>[p(m(t.total_outstanding_amount||0),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),c("div",tt,[e(ie,{modelValue:l(y),"onUpdate:modelValue":o[4]||(o[4]=t=>Se(y)?y.value=t:null),onChange:l(z)},null,8,["modelValue","onChange"])])]),_:1})),[[pe,l(y).loading]]),e(Ke,{ref_key:"detailsRef",ref:b},null,512),e(Oe,{ref_key:"stockDetailsRef",ref:k},null,512),e(We,{ref_key:"warehouseProductRef",ref:E},null,512)])}}});export{Gt as default}; diff --git a/build/admin/assets/index.ceb3d7b9.js b/build/admin/assets/index.f99c66f6.js similarity index 81% rename from build/admin/assets/index.ceb3d7b9.js rename to build/admin/assets/index.f99c66f6.js index 2656ede9c..fc6e0e689 100644 --- a/build/admin/assets/index.ceb3d7b9.js +++ b/build/admin/assets/index.f99c66f6.js @@ -1 +1 @@ -import{C as T,D as I,w as j,F as M,L as q,M as O,N as Q,O as Z}from"./element-plus.4a7d92a3.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as G,b as H}from"./index.28c6cdcf.js";import{d as V,s as J,r as D,Z as W,ap as X,o as n,c as Y,U as e,L as o,u as t,aa as ee,R as u,M as d,K as p,a as E,j as te,Q as oe,n as g}from"./@vue.18505fe0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.b08aa554.js";import{e as se,a as ie}from"./user_ship.a76b472f.js";import"./lodash.9dc701ad.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_userShipEdit_lang.b0483845.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const re={class:"mt-4"},ue={class:"flex mt-4 justify-end"},pe=V({name:"userShipLists"}),Je=V({...pe,setup(me){const c=J(),_=D(!1),f=W({title:""}),w=D([]),x=l=>{w.value=l.map(({id:a})=>a)},{dictData:B}=le(""),{pager:m,getLists:h,resetParams:S,resetPage:F}=ae({fetchFun:ie,params:f}),$=async()=>{var l;_.value=!0,await g(),(l=c.value)==null||l.open("add")},L=async l=>{var a,v;_.value=!0,await g(),(a=c.value)==null||a.open("edit"),(v=c.value)==null||v.setFormData(l)},b=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:l}),h()};return h(),(l,a)=>{const v=T,k=I,r=j,A=M,y=q,N=H,i=O,P=Q,R=z,C=X("perms"),U=Z;return n(),Y("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(k,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:t(f).title,"onUpdate:modelValue":a[0]||(a[0]=s=>t(f).title=s),onKeydown:ee(t(F),["enter"]),onClear:t(F),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u540D\u79F0"},null,8,["modelValue","onKeydown","onClear"])]),_:1}),e(k,null,{default:o(()=>[e(r,{type:"primary",onClick:t(F)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:t(S)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),p(y,{class:"!border-none",shadow:"never"},{default:o(()=>[d((n(),p(r,{type:"primary",onClick:$},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[C,["user_ship.user_ship/add"]]]),d((n(),p(r,{disabled:!t(w).length,onClick:a[1]||(a[1]=s=>b(t(w)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["user_ship.user_ship/delete"]]]),E("div",re,[e(P,{data:t(m).lists,onSelectionChange:x},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(i,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(i,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),e(i,{label:"\u5145\u503C\u91D1\u989D",prop:"limit","show-overflow-tooltip":""}),e(i,{label:"\u6392\u5E8F\u5012\u5E8F",prop:"sort","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:s})=>[d((n(),p(r,{type:"primary",link:"",onClick:K=>L(s)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["user_ship.user_ship/edit"]]]),d((n(),p(r,{type:"danger",link:"",onClick:K=>b(s.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["user_ship.user_ship/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ue,[e(R,{modelValue:t(m),"onUpdate:modelValue":a[2]||(a[2]=s=>te(m)?m.value=s:null),onChange:t(h)},null,8,["modelValue","onChange"])])]),_:1})),[[U,t(m).loading]]),t(_)?(n(),p(ne,{key:0,ref_key:"editRef",ref:c,"dict-data":t(B),onSuccess:t(h),onClose:a[3]||(a[3]=s=>_.value=!1)},null,8,["dict-data","onSuccess"])):oe("",!0)])}}});export{Je as default}; +import{C as T,D as I,w as j,F as M,L as q,M as O,N as Q,O as Z}from"./element-plus.a63a26dd.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as G,b as H}from"./index.79885fb7.js";import{d as V,s as J,r as D,Z as W,ap as X,o as n,c as Y,U as e,L as o,u as t,aa as ee,R as u,M as d,K as p,a as E,j as te,Q as oe,n as g}from"./@vue.18505fe0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.1ff41454.js";import{e as se,a as ie}from"./user_ship.123b3054.js";import"./lodash.2473fc51.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_userShipEdit_lang.a9aaa263.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const re={class:"mt-4"},ue={class:"flex mt-4 justify-end"},pe=V({name:"userShipLists"}),Je=V({...pe,setup(me){const c=J(),_=D(!1),f=W({title:""}),w=D([]),x=l=>{w.value=l.map(({id:a})=>a)},{dictData:B}=le(""),{pager:m,getLists:h,resetParams:S,resetPage:F}=ae({fetchFun:ie,params:f}),$=async()=>{var l;_.value=!0,await g(),(l=c.value)==null||l.open("add")},L=async l=>{var a,v;_.value=!0,await g(),(a=c.value)==null||a.open("edit"),(v=c.value)==null||v.setFormData(l)},b=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:l}),h()};return h(),(l,a)=>{const v=T,k=I,r=j,A=M,y=q,N=H,i=O,P=Q,R=z,C=X("perms"),U=Z;return n(),Y("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(k,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:t(f).title,"onUpdate:modelValue":a[0]||(a[0]=s=>t(f).title=s),onKeydown:ee(t(F),["enter"]),onClear:t(F),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u540D\u79F0"},null,8,["modelValue","onKeydown","onClear"])]),_:1}),e(k,null,{default:o(()=>[e(r,{type:"primary",onClick:t(F)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:t(S)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),p(y,{class:"!border-none",shadow:"never"},{default:o(()=>[d((n(),p(r,{type:"primary",onClick:$},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[C,["user_ship.user_ship/add"]]]),d((n(),p(r,{disabled:!t(w).length,onClick:a[1]||(a[1]=s=>b(t(w)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["user_ship.user_ship/delete"]]]),E("div",re,[e(P,{data:t(m).lists,onSelectionChange:x},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(i,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(i,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),e(i,{label:"\u5145\u503C\u91D1\u989D",prop:"limit","show-overflow-tooltip":""}),e(i,{label:"\u6392\u5E8F\u5012\u5E8F",prop:"sort","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:s})=>[d((n(),p(r,{type:"primary",link:"",onClick:K=>L(s)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["user_ship.user_ship/edit"]]]),d((n(),p(r,{type:"danger",link:"",onClick:K=>b(s.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["user_ship.user_ship/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ue,[e(R,{modelValue:t(m),"onUpdate:modelValue":a[2]||(a[2]=s=>te(m)?m.value=s:null),onChange:t(h)},null,8,["modelValue","onChange"])])]),_:1})),[[U,t(m).loading]]),t(_)?(n(),p(ne,{key:0,ref_key:"editRef",ref:c,"dict-data":t(B),onSuccess:t(h),onClose:a[3]||(a[3]=s=>_.value=!1)},null,8,["dict-data","onSuccess"])):oe("",!0)])}}});export{Je as default}; diff --git a/build/admin/assets/index.a8464516.js b/build/admin/assets/index.fd173a36.js similarity index 85% rename from build/admin/assets/index.a8464516.js rename to build/admin/assets/index.fd173a36.js index fa4732374..e82ec690c 100644 --- a/build/admin/assets/index.a8464516.js +++ b/build/admin/assets/index.fd173a36.js @@ -1 +1 @@ -import{a2 as G,H,$ as J,J as Q,K as Z,D as W,w as X,F as Y,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.4a7d92a3.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.b08aa554.js";import{b as re,d as ie}from"./system_store_storage.702aaf8a.js";import{a as me}from"./system_store.6d454f9d.js";import"./lodash.9dc701ad.js";import{f as pe}from"./index.28c6cdcf.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.6a409536.js";import{d as L,s as _e,r as f,Z as ce,ap as fe,o as s,c as C,U as t,L as o,u as a,T as D,a9 as V,K as i,R as r,M as S,a as x,Q as b,j as Ee}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ge={class:"mt-4"},ve={class:"flex mt-4 justify-end"},Ce=L({name:"systemStoreStorageLists"}),nt=L({...Ce,setup(be){const A=_e(),y=f(!1),n=ce({store_id:"",admin_name:"",staff_name:"",status:"",type:1}),R=f([]),T=m=>{R.value=m.map(({id:l})=>l)},{dictData:N}=ne(""),{pager:p,getLists:d,resetParams:U,resetPage:_}=ue({fetchFun:ie,params:n}),$=async m=>{await pe.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),re({id:m.id}).then(l=>{d()})};d();const c=f(!1),h=f([]),P=(m="")=>{c.value=!0,me({name:m,page_size:50}).then(l=>{h.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return(m,l)=>{const B=Q,k=Z,E=W,g=X,M=Y,F=ee,w=G,j=H,u=te,I=oe,v=J,K=ae,O=se,q=fe("perms"),z=le;return s(),C("div",null,[t(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(M,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[t(E,{label:"\u95E8\u5E97",prop:"store_id"},{default:o(()=>[t(k,{modelValue:a(n).store_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(n).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:a(c),style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(!0),C(D,null,V(a(h),e=>(s(),i(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(E,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(k,{modelValue:a(n).status,"onUpdate:modelValue":l[1]||(l[1]=e=>a(n).status=e),placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22",style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(),C(D,null,V([{id:1,name:"\u5DF2\u5165\u5E93"},{id:0,name:"\u5F85\u786E\u8BA4"},{id:-1,name:"\u5E93\u5B58\u4E0D\u8DB3"}],e=>t(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),t(E,null,{default:o(()=>[t(g,{type:"primary",onClick:a(_)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(g,{onClick:a(U)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),S((s(),i(F,{class:"!border-none",shadow:"never"},{default:o(()=>[t(j,{modelValue:a(n).type,"onUpdate:modelValue":l[2]||(l[2]=e=>a(n).type=e),onChange:a(_)},{default:o(()=>[t(w,{label:1,value:1},{default:o(()=>[r("\u552E\u5356\u5E93\u5B58")]),_:1}),t(w,{label:2,value:2},{default:o(()=>[r("\u5151\u6362\u5E93\u5B58")]),_:1})]),_:1},8,["modelValue","onChange"]),x("div",ge,[t(K,{data:a(p).lists,onSelectionChange:T},{default:o(()=>[t(u,{label:"\u95E8\u5E97",prop:"system_store_name"}),t(u,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(u,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(u,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:o(({row:e})=>[t(I,{class:"w-[40px] h-[40px]",src:e.image},null,8,["src"])]),_:1}),t(u,{label:"\u5546\u54C1",prop:"store_name"}),t(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(u,{label:"\u72B6\u6001",prop:"status"},{default:o(({row:e})=>[e.status===1?(s(),i(v,{key:0,type:"success"},{default:o(()=>[r("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),i(v,{key:1,type:"warning"},{default:o(()=>[r("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),i(v,{key:2,type:"danger"},{default:o(()=>[r("\u5E93\u5B58\u4E0D\u8DB3")]),_:1})):b("",!0)]),_:1}),t(u,{label:"\u5907\u6CE8",prop:"mark"}),t(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:e})=>[e.status==0?S((s(),i(g,{key:0,type:"success",link:"",onClick:ye=>$(e)},{default:o(()=>[r(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[q,["system_store_storage.system_store_storage/edit"]]]):b("",!0)]),_:1})]),_:1},8,["data"])]),x("div",ve,[t(O,{modelValue:a(p),"onUpdate:modelValue":l[3]||(l[3]=e=>Ee(p)?p.value=e:null),onChange:a(d)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(p).loading]]),a(y)?(s(),i(de,{key:0,ref_key:"editRef",ref:A,"dict-data":a(N),onSuccess:a(d),onClose:l[4]||(l[4]=e=>y.value=!1)},null,8,["dict-data","onSuccess"])):b("",!0)])}}});export{nt as default}; +import{a2 as G,H,$ as J,J as Q,K as Z,D as W,w as X,F as Y,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.a63a26dd.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.1ff41454.js";import{b as re,d as ie}from"./system_store_storage.410da2f8.js";import{a as me}from"./system_store.0480155e.js";import"./lodash.2473fc51.js";import{f as pe}from"./index.79885fb7.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.ec29530e.js";import{d as L,s as _e,r as f,Z as ce,ap as fe,o as s,c as C,U as t,L as o,u as a,T as D,a9 as V,K as i,R as r,M as S,a as x,Q as b,j as Ee}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ge={class:"mt-4"},ve={class:"flex mt-4 justify-end"},Ce=L({name:"systemStoreStorageLists"}),nt=L({...Ce,setup(be){const A=_e(),y=f(!1),n=ce({store_id:"",admin_name:"",staff_name:"",status:"",type:1}),R=f([]),T=m=>{R.value=m.map(({id:l})=>l)},{dictData:N}=ne(""),{pager:p,getLists:d,resetParams:U,resetPage:_}=ue({fetchFun:ie,params:n}),$=async m=>{await pe.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),re({id:m.id}).then(l=>{d()})};d();const c=f(!1),h=f([]),P=(m="")=>{c.value=!0,me({name:m,page_size:50}).then(l=>{h.value=l.lists,setTimeout(()=>{c.value=!1},300)}).catch(l=>{setTimeout(()=>{c.value=!1},300)})};return(m,l)=>{const B=Q,k=Z,E=W,g=X,M=Y,F=ee,w=G,j=H,u=te,I=oe,v=J,K=ae,O=se,q=fe("perms"),z=le;return s(),C("div",null,[t(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(M,{class:"mb-[-16px]",model:a(n),inline:""},{default:o(()=>[t(E,{label:"\u95E8\u5E97",prop:"store_id"},{default:o(()=>[t(k,{modelValue:a(n).store_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(n).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":P,loading:a(c),style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(!0),C(D,null,V(a(h),e=>(s(),i(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(E,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(k,{modelValue:a(n).status,"onUpdate:modelValue":l[1]||(l[1]=e=>a(n).status=e),placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22",style:{width:"240px"},onChange:a(_)},{default:o(()=>[(s(),C(D,null,V([{id:1,name:"\u5DF2\u5165\u5E93"},{id:0,name:"\u5F85\u786E\u8BA4"},{id:-1,name:"\u5E93\u5B58\u4E0D\u8DB3"}],e=>t(B,{key:e.id,label:e.name,value:e.id},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"])]),_:1}),t(E,null,{default:o(()=>[t(g,{type:"primary",onClick:a(_)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(g,{onClick:a(U)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),S((s(),i(F,{class:"!border-none",shadow:"never"},{default:o(()=>[t(j,{modelValue:a(n).type,"onUpdate:modelValue":l[2]||(l[2]=e=>a(n).type=e),onChange:a(_)},{default:o(()=>[t(w,{label:1,value:1},{default:o(()=>[r("\u552E\u5356\u5E93\u5B58")]),_:1}),t(w,{label:2,value:2},{default:o(()=>[r("\u5151\u6362\u5E93\u5B58")]),_:1})]),_:1},8,["modelValue","onChange"]),x("div",ge,[t(K,{data:a(p).lists,onSelectionChange:T},{default:o(()=>[t(u,{label:"\u95E8\u5E97",prop:"system_store_name"}),t(u,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(u,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(u,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:o(({row:e})=>[t(I,{class:"w-[40px] h-[40px]",src:e.image},null,8,["src"])]),_:1}),t(u,{label:"\u5546\u54C1",prop:"store_name"}),t(u,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(u,{label:"\u72B6\u6001",prop:"status"},{default:o(({row:e})=>[e.status===1?(s(),i(v,{key:0,type:"success"},{default:o(()=>[r("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),i(v,{key:1,type:"warning"},{default:o(()=>[r("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),i(v,{key:2,type:"danger"},{default:o(()=>[r("\u5E93\u5B58\u4E0D\u8DB3")]),_:1})):b("",!0)]),_:1}),t(u,{label:"\u5907\u6CE8",prop:"mark"}),t(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:e})=>[e.status==0?S((s(),i(g,{key:0,type:"success",link:"",onClick:ye=>$(e)},{default:o(()=>[r(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[q,["system_store_storage.system_store_storage/edit"]]]):b("",!0)]),_:1})]),_:1},8,["data"])]),x("div",ve,[t(O,{modelValue:a(p),"onUpdate:modelValue":l[3]||(l[3]=e=>Ee(p)?p.value=e:null),onChange:a(d)},null,8,["modelValue","onChange"])])]),_:1})),[[z,a(p).loading]]),a(y)?(s(),i(de,{key:0,ref_key:"editRef",ref:A,"dict-data":a(N),onSuccess:a(d),onClose:l[4]||(l[4]=e=>y.value=!1)},null,8,["dict-data","onSuccess"])):b("",!0)])}}});export{nt as default}; diff --git a/build/admin/assets/index.vue_vue_type_script_setup_true_lang.77dd59e0.js b/build/admin/assets/index.vue_vue_type_script_setup_true_lang.22edb8e7.js similarity index 92% rename from build/admin/assets/index.vue_vue_type_script_setup_true_lang.77dd59e0.js rename to build/admin/assets/index.vue_vue_type_script_setup_true_lang.22edb8e7.js index 6b7f6deaf..4b6d6335c 100644 --- a/build/admin/assets/index.vue_vue_type_script_setup_true_lang.77dd59e0.js +++ b/build/admin/assets/index.vue_vue_type_script_setup_true_lang.22edb8e7.js @@ -1 +1 @@ -import{U as p}from"./element-plus.4a7d92a3.js";import{d as l,b as i,o as c,K as T}from"./@vue.18505fe0.js";const g=l({__name:"index",props:{startTime:{default:""},endTime:{default:""},type:{default:"datetimerange"}},emits:["update:startTime","update:endTime","change"],setup(r,{emit:m}){const a=r,t=m,s=e=>{t("change",e)},n=i({get:()=>[a.startTime,a.endTime],set:e=>{e===null?(t("update:startTime",""),t("update:endTime","")):(t("update:startTime",e[0]),t("update:endTime",e[1]))}});return(e,o)=>{const u=p;return c(),T(u,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=d=>n.value=d),type:e.type,"range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD HH:mm:ss",clearable:"",onChange:s},null,8,["modelValue","type"])}}});export{g as _}; +import{U as p}from"./element-plus.a63a26dd.js";import{d as l,b as i,o as c,K as T}from"./@vue.18505fe0.js";const g=l({__name:"index",props:{startTime:{default:""},endTime:{default:""},type:{default:"datetimerange"}},emits:["update:startTime","update:endTime","change"],setup(r,{emit:m}){const a=r,t=m,s=e=>{t("change",e)},n=i({get:()=>[a.startTime,a.endTime],set:e=>{e===null?(t("update:startTime",""),t("update:endTime","")):(t("update:startTime",e[0]),t("update:endTime",e[1]))}});return(e,o)=>{const u=p;return c(),T(u,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=d=>n.value=d),type:e.type,"range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD HH:mm:ss",clearable:"",onChange:s},null,8,["modelValue","type"])}}});export{g as _}; diff --git a/build/admin/assets/index.vue_vue_type_script_setup_true_lang.5d4e738c.js b/build/admin/assets/index.vue_vue_type_script_setup_true_lang.ecb80feb.js similarity index 93% rename from build/admin/assets/index.vue_vue_type_script_setup_true_lang.5d4e738c.js rename to build/admin/assets/index.vue_vue_type_script_setup_true_lang.ecb80feb.js index 074e6deed..01e060d54 100644 --- a/build/admin/assets/index.vue_vue_type_script_setup_true_lang.5d4e738c.js +++ b/build/admin/assets/index.vue_vue_type_script_setup_true_lang.ecb80feb.js @@ -1 +1 @@ -import{P as d}from"./element-plus.4a7d92a3.js";import{d as m,b as c,o as z,c as f,U as h,I as C,u as a}from"./@vue.18505fe0.js";const P={class:"pagination"},V=m({__name:"index",props:{modelValue:{default:()=>({})},pageSizes:{default:()=>[15,20,30,40]},layout:{default:"total, sizes, prev, pager, next, jumper"}},emits:["change","update:modelValue"],setup(g,{emit:r}){const p=g,o=r,e=c({get(){return p.modelValue},set(t){o("update:modelValue",t)}}),i=()=>{e.value.page=1,o("change")},l=()=>{o("change")};return(t,n)=>{const u=d;return z(),f("div",P,[h(u,C(p,{"pager-count":5,currentPage:a(e).page,"onUpdate:currentPage":n[0]||(n[0]=s=>a(e).page=s),pageSize:a(e).size,"onUpdate:pageSize":n[1]||(n[1]=s=>a(e).size=s),"page-sizes":t.pageSizes,layout:t.layout,total:a(e).count,"hide-on-single-page":!1,onSizeChange:i,onCurrentChange:l}),null,16,["currentPage","pageSize","page-sizes","layout","total"])])}}});export{V as _}; +import{P as d}from"./element-plus.a63a26dd.js";import{d as m,b as c,o as z,c as f,U as h,I as C,u as a}from"./@vue.18505fe0.js";const P={class:"pagination"},V=m({__name:"index",props:{modelValue:{default:()=>({})},pageSizes:{default:()=>[15,20,30,40]},layout:{default:"total, sizes, prev, pager, next, jumper"}},emits:["change","update:modelValue"],setup(g,{emit:r}){const p=g,o=r,e=c({get(){return p.modelValue},set(t){o("update:modelValue",t)}}),i=()=>{e.value.page=1,o("change")},l=()=>{o("change")};return(t,n)=>{const u=d;return z(),f("div",P,[h(u,C(p,{"pager-count":5,currentPage:a(e).page,"onUpdate:currentPage":n[0]||(n[0]=s=>a(e).page=s),pageSize:a(e).size,"onUpdate:pageSize":n[1]||(n[1]=s=>a(e).size=s),"page-sizes":t.pageSizes,layout:t.layout,total:a(e).count,"hide-on-single-page":!1,onSizeChange:i,onCurrentChange:l}),null,16,["currentPage","pageSize","page-sizes","layout","total"])])}}});export{V as _}; diff --git a/build/admin/assets/index.vue_vue_type_script_setup_true_lang.616746cc.js b/build/admin/assets/index.vue_vue_type_script_setup_true_lang.efe648dd.js similarity index 96% rename from build/admin/assets/index.vue_vue_type_script_setup_true_lang.616746cc.js rename to build/admin/assets/index.vue_vue_type_script_setup_true_lang.efe648dd.js index 2f8750116..d22ccc506 100644 --- a/build/admin/assets/index.vue_vue_type_script_setup_true_lang.616746cc.js +++ b/build/admin/assets/index.vue_vue_type_script_setup_true_lang.efe648dd.js @@ -1 +1 @@ -import{G as D,H as v,w as z,D as R,C as k,F as N}from"./element-plus.4a7d92a3.js";import{f as i}from"./index.28c6cdcf.js";import{P as S}from"./index.ac70fa70.js";import{d as U,s as E,Z as x,o as y,c as q,U as u,L as o,R as _,a as f,u as a,S as m,K as L,Q as O}from"./@vue.18505fe0.js";const j={class:"export-data"},G={class:"flex"},I=f("span",{class:"flex-none ml-2 mr-2"},"\u9875\uFF0C\u81F3",-1),Q=U({__name:"index",props:{params:{type:Object,default:()=>({})},pageSize:{type:Number,default:25},fetchFun:{type:Function,required:!0}},setup(A){const c=E(),p=A,g=E(),t=x({page_type:0,page_start:1,page_end:200,file_name:""}),b={page_start:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CB\u9875\u7801"},{type:"number",message:"\u9875\u7801\u5FC5\u987B\u662F\u6574\u6570"},{validator:(l,e,r)=>{if(e<=0)return r(new Error("\u9875\u7801\u5FC5\u987B\u5927\u4E8E0"));r()}}],page_end:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675F\u9875\u7801"},{type:"number",message:"\u9875\u7801\u5FC5\u987B\u662F\u6574\u6570"},{validator:(l,e,r)=>{if(e<=0)return r(new Error("\u9875\u7801\u5FC5\u987B\u5927\u4E8E0"));r()}}]},d=x({count:0,sum_page:0,page_size:0,max_page:0,all_max_size:0}),B=async()=>{const l=await p.fetchFun({...p.params,page_size:p.pageSize,export:1});Object.assign(d,l),t.file_name=l.file_name,t.page_end=l.page_end,t.page_start=l.page_start},V=async()=>{var l,e;await((l=c.value)==null?void 0:l.validate()),i.loading("\u6B63\u5728\u5BFC\u51FA\u4E2D...");try{await p.fetchFun({...p.params,...t,page_size:p.pageSize,export:2}),(e=g.value)==null||e.close(),i.closeLoading()}catch{i.closeLoading()}};return B(),(l,e)=>{const r=z,n=R,C=D,w=v,F=k,h=N;return y(),q("div",j,[u(S,{ref_key:"popupRef",ref:g,title:"\u5BFC\u51FA\u8BBE\u7F6E",width:"500px","confirm-button-text":"\u786E\u8BA4\u5BFC\u51FA",onConfirm:V,async:!0,onOpen:B},{trigger:o(()=>[u(r,null,{default:o(()=>[_("\u5BFC\u51FA")]),_:1})]),default:o(()=>[f("div",null,[u(h,{ref_key:"formRef",ref:c,model:a(t),"label-width":"120px",rules:b},{default:o(()=>[u(n,{label:"\u6570\u636E\u91CF\uFF1A"},{default:o(()=>[_(" \u9884\u8BA1\u5BFC\u51FA"+m(a(d).count)+"\u6761\u6570\u636E\uFF0C \u5171"+m(a(d).sum_page)+"\u9875\uFF0C\u6BCF\u9875"+m(a(d).page_size)+"\u6761\u6570\u636E ",1)]),_:1}),u(n,{label:"\u5BFC\u51FA\u9650\u5236\uFF1A"},{default:o(()=>[_(" \u6BCF\u6B21\u5BFC\u51FA\u6700\u5927\u5141\u8BB8"+m(a(d).max_page)+"\u9875\uFF0C\u5171"+m(a(d).all_max_size)+"\u6761\u6570\u636E ",1)]),_:1}),u(n,{prop:"page_type",label:"\u5BFC\u51FA\u8303\u56F4\uFF1A",required:""},{default:o(()=>[u(w,{modelValue:a(t).page_type,"onUpdate:modelValue":e[0]||(e[0]=s=>a(t).page_type=s)},{default:o(()=>[u(C,{label:0},{default:o(()=>[_("\u5168\u90E8\u5BFC\u51FA")]),_:1}),u(C,{label:1},{default:o(()=>[_("\u5206\u9875\u5BFC\u51FA")]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(t).page_type==1?(y(),L(n,{key:0,label:"\u5206\u9875\u8303\u56F4\uFF1A"},{default:o(()=>[f("div",G,[u(n,{prop:"page_start"},{default:o(()=>[u(F,{style:{width:"140px"},modelValue:a(t).page_start,"onUpdate:modelValue":e[1]||(e[1]=s=>a(t).page_start=s),modelModifiers:{number:!0},placeholder:""},null,8,["modelValue"])]),_:1}),I,u(n,{prop:"page_end"},{default:o(()=>[u(F,{style:{width:"140px"},modelValue:a(t).page_end,"onUpdate:modelValue":e[2]||(e[2]=s=>a(t).page_end=s),modelModifiers:{number:!0},placeholder:""},null,8,["modelValue"])]),_:1})])]),_:1})):O("",!0),u(n,{label:"\u5BFC\u51FA\u6587\u4EF6\u540D\u79F0\uFF1A",prop:"file_name"},{default:o(()=>[u(F,{modelValue:a(t).file_name,"onUpdate:modelValue":e[3]||(e[3]=s=>a(t).file_name=s),placeholder:"\u8BF7\u8F93\u5165\u5BFC\u51FA\u6587\u4EF6\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)])}}});export{Q as _}; +import{G as D,H as v,w as z,D as R,C as k,F as N}from"./element-plus.a63a26dd.js";import{f as i}from"./index.79885fb7.js";import{P as S}from"./index.ec3439ad.js";import{d as U,s as E,Z as x,o as y,c as q,U as u,L as o,R as _,a as f,u as a,S as m,K as L,Q as O}from"./@vue.18505fe0.js";const j={class:"export-data"},G={class:"flex"},I=f("span",{class:"flex-none ml-2 mr-2"},"\u9875\uFF0C\u81F3",-1),Q=U({__name:"index",props:{params:{type:Object,default:()=>({})},pageSize:{type:Number,default:25},fetchFun:{type:Function,required:!0}},setup(A){const c=E(),p=A,g=E(),t=x({page_type:0,page_start:1,page_end:200,file_name:""}),b={page_start:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CB\u9875\u7801"},{type:"number",message:"\u9875\u7801\u5FC5\u987B\u662F\u6574\u6570"},{validator:(l,e,r)=>{if(e<=0)return r(new Error("\u9875\u7801\u5FC5\u987B\u5927\u4E8E0"));r()}}],page_end:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675F\u9875\u7801"},{type:"number",message:"\u9875\u7801\u5FC5\u987B\u662F\u6574\u6570"},{validator:(l,e,r)=>{if(e<=0)return r(new Error("\u9875\u7801\u5FC5\u987B\u5927\u4E8E0"));r()}}]},d=x({count:0,sum_page:0,page_size:0,max_page:0,all_max_size:0}),B=async()=>{const l=await p.fetchFun({...p.params,page_size:p.pageSize,export:1});Object.assign(d,l),t.file_name=l.file_name,t.page_end=l.page_end,t.page_start=l.page_start},V=async()=>{var l,e;await((l=c.value)==null?void 0:l.validate()),i.loading("\u6B63\u5728\u5BFC\u51FA\u4E2D...");try{await p.fetchFun({...p.params,...t,page_size:p.pageSize,export:2}),(e=g.value)==null||e.close(),i.closeLoading()}catch{i.closeLoading()}};return B(),(l,e)=>{const r=z,n=R,C=D,w=v,F=k,h=N;return y(),q("div",j,[u(S,{ref_key:"popupRef",ref:g,title:"\u5BFC\u51FA\u8BBE\u7F6E",width:"500px","confirm-button-text":"\u786E\u8BA4\u5BFC\u51FA",onConfirm:V,async:!0,onOpen:B},{trigger:o(()=>[u(r,null,{default:o(()=>[_("\u5BFC\u51FA")]),_:1})]),default:o(()=>[f("div",null,[u(h,{ref_key:"formRef",ref:c,model:a(t),"label-width":"120px",rules:b},{default:o(()=>[u(n,{label:"\u6570\u636E\u91CF\uFF1A"},{default:o(()=>[_(" \u9884\u8BA1\u5BFC\u51FA"+m(a(d).count)+"\u6761\u6570\u636E\uFF0C \u5171"+m(a(d).sum_page)+"\u9875\uFF0C\u6BCF\u9875"+m(a(d).page_size)+"\u6761\u6570\u636E ",1)]),_:1}),u(n,{label:"\u5BFC\u51FA\u9650\u5236\uFF1A"},{default:o(()=>[_(" \u6BCF\u6B21\u5BFC\u51FA\u6700\u5927\u5141\u8BB8"+m(a(d).max_page)+"\u9875\uFF0C\u5171"+m(a(d).all_max_size)+"\u6761\u6570\u636E ",1)]),_:1}),u(n,{prop:"page_type",label:"\u5BFC\u51FA\u8303\u56F4\uFF1A",required:""},{default:o(()=>[u(w,{modelValue:a(t).page_type,"onUpdate:modelValue":e[0]||(e[0]=s=>a(t).page_type=s)},{default:o(()=>[u(C,{label:0},{default:o(()=>[_("\u5168\u90E8\u5BFC\u51FA")]),_:1}),u(C,{label:1},{default:o(()=>[_("\u5206\u9875\u5BFC\u51FA")]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(t).page_type==1?(y(),L(n,{key:0,label:"\u5206\u9875\u8303\u56F4\uFF1A"},{default:o(()=>[f("div",G,[u(n,{prop:"page_start"},{default:o(()=>[u(F,{style:{width:"140px"},modelValue:a(t).page_start,"onUpdate:modelValue":e[1]||(e[1]=s=>a(t).page_start=s),modelModifiers:{number:!0},placeholder:""},null,8,["modelValue"])]),_:1}),I,u(n,{prop:"page_end"},{default:o(()=>[u(F,{style:{width:"140px"},modelValue:a(t).page_end,"onUpdate:modelValue":e[2]||(e[2]=s=>a(t).page_end=s),modelModifiers:{number:!0},placeholder:""},null,8,["modelValue"])]),_:1})])]),_:1})):O("",!0),u(n,{label:"\u5BFC\u51FA\u6587\u4EF6\u540D\u79F0\uFF1A",prop:"file_name"},{default:o(()=>[u(F,{modelValue:a(t).file_name,"onUpdate:modelValue":e[3]||(e[3]=s=>a(t).file_name=s),placeholder:"\u8BF7\u8F93\u5165\u5BFC\u51FA\u6587\u4EF6\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)])}}});export{Q as _}; diff --git a/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.06d9ba7c.js b/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.17ab95d4.js similarity index 86% rename from build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.06d9ba7c.js rename to build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.17ab95d4.js index 51fbf8226..d3220ef92 100644 --- a/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.06d9ba7c.js +++ b/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.17ab95d4.js @@ -1 +1 @@ -import{k as y,C as x,D as L,w as N,F as P,M as S,N as A,O as I}from"./element-plus.4a7d92a3.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as T}from"./usePaging.6a6670f9.js";import{u as U}from"./useDictOptions.b08aa554.js";import{a as W}from"./warehouse.f60d78fc.js";import"./lodash.9dc701ad.js";import"./index.28c6cdcf.js";import{d as E,Z as j,r as R,o as _,c as f,U as e,L as a,u as o,R as m,M as q,a as O,j as Z}from"./@vue.18505fe0.js";const $={class:"mt-4"},z={class:"flex mt-4 justify-end"},G=E({name:"systemStoreLists"}),ae=E({...G,emits:["onBindWarehouse"],setup(H,{emit:h}){const u=j({name:""}),c=R([]),g=n=>{c.value=n.map(({id:t})=>t)};U("");const{pager:l,getLists:p,resetParams:w,resetPage:C}=T({fetchFun:W,params:u});p();const v=h,D=()=>{const n=l.lists.filter(t=>c.value.includes(t.id));if(!n.length)return y.error("\u8BF7\u5148\u9009\u62E9\u4ED3\u5E93");v("onBindWarehouse",n[0])};return(n,t)=>{const b=x,d=L,i=N,B=P,s=S,F=A,V=M,k=I;return _(),f("div",null,[e(B,{class:"mb-[-16px]",model:o(u),inline:""},{default:a(()=>[e(d,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:a(()=>[e(b,{class:"w-[200px]",modelValue:o(u).name,"onUpdate:modelValue":t[0]||(t[0]=r=>o(u).name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(i,{type:"primary",onClick:o(C)},{default:a(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:o(w)},{default:a(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),q((_(),f("div",$,[e(F,{data:o(l).lists,onSelectionChange:g,height:300},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts","show-overflow-tooltip":""}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"tel","show-overflow-tooltip":""}),e(s,{label:"\u8BE6\u7EC6\u5730\u5740",prop:"address","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[k,o(l).loading]]),O("div",z,[e(V,{modelValue:o(l),"onUpdate:modelValue":t[1]||(t[1]=r=>Z(l)?l.value=r:null),onChange:o(p)},null,8,["modelValue","onChange"])]),e(i,{class:"w-full mt-4",type:"primary",onClick:D},{default:a(()=>[m("\u6DFB\u52A0\u4ED3\u5E93")]),_:1})])}}});export{ae as _}; +import{k as y,C as x,D as L,w as N,F as P,M as S,N as A,O as I}from"./element-plus.a63a26dd.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as T}from"./usePaging.6a6670f9.js";import{u as U}from"./useDictOptions.1ff41454.js";import{a as W}from"./warehouse.925874d3.js";import"./lodash.2473fc51.js";import"./index.79885fb7.js";import{d as E,Z as j,r as R,o as _,c as f,U as e,L as a,u as o,R as m,M as q,a as O,j as Z}from"./@vue.18505fe0.js";const $={class:"mt-4"},z={class:"flex mt-4 justify-end"},G=E({name:"systemStoreLists"}),ae=E({...G,emits:["onBindWarehouse"],setup(H,{emit:h}){const u=j({name:""}),c=R([]),g=n=>{c.value=n.map(({id:t})=>t)};U("");const{pager:l,getLists:p,resetParams:w,resetPage:C}=T({fetchFun:W,params:u});p();const v=h,D=()=>{const n=l.lists.filter(t=>c.value.includes(t.id));if(!n.length)return y.error("\u8BF7\u5148\u9009\u62E9\u4ED3\u5E93");v("onBindWarehouse",n[0])};return(n,t)=>{const b=x,d=L,i=N,B=P,s=S,F=A,V=M,k=I;return _(),f("div",null,[e(B,{class:"mb-[-16px]",model:o(u),inline:""},{default:a(()=>[e(d,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:a(()=>[e(b,{class:"w-[200px]",modelValue:o(u).name,"onUpdate:modelValue":t[0]||(t[0]=r=>o(u).name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(i,{type:"primary",onClick:o(C)},{default:a(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:o(w)},{default:a(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),q((_(),f("div",$,[e(F,{data:o(l).lists,onSelectionChange:g,height:300},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts","show-overflow-tooltip":""}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"tel","show-overflow-tooltip":""}),e(s,{label:"\u8BE6\u7EC6\u5730\u5740",prop:"address","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[k,o(l).loading]]),O("div",z,[e(V,{modelValue:o(l),"onUpdate:modelValue":t[1]||(t[1]=r=>Z(l)?l.value=r:null),onChange:o(p)},null,8,["modelValue","onChange"])]),e(i,{class:"w-full mt-4",type:"primary",onClick:D},{default:a(()=>[m("\u6DFB\u52A0\u4ED3\u5E93")]),_:1})])}}});export{ae as _}; diff --git a/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.0a016a9d.js b/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.79666e01.js similarity index 90% rename from build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.0a016a9d.js rename to build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.79666e01.js index 8210d0fb2..8feb086d3 100644 --- a/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.0a016a9d.js +++ b/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.79666e01.js @@ -1 +1 @@ -import{k as w,C as T,D as U,w as j,F as R,M as $,b as q,N as A,O}from"./element-plus.4a7d92a3.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{d as F,Z as W,r as v,o as p,c as C,U as e,L as u,u as a,aa as Z,R as h,M as z,K as d,Q as b,a as G,j as H}from"./@vue.18505fe0.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as X}from"./useDictOptions.b08aa554.js";import{a as Y}from"./store_product.8e022f19.js";import{a as ee}from"./store_branch_product.f62e9946.js";import{a as oe}from"./warehouse_product_storege.224b265e.js";import"./lodash.9dc701ad.js";import"./index.28c6cdcf.js";const te={class:"mt-4"},se={class:"flex mt-4 justify-end"},ae=F({name:"systemStoreLists"}),we=F({...ae,props:{is_warehouse:{},is_branch:{},store_id:{},code:{},warehouse_id:{}},emits:["onBindStore"],setup(g,{emit:B}){const t=g,l=W({store_name:"",warehouse_id:"",store_id:""}),f=v([]),m=v(),y=i=>{f.value=i.map(({id:s})=>s)};X(""),t.is_warehouse==1?t.warehouse_id==""||t.warehouse_id==null?w.error("\u8BF7\u5148\u9009\u62E9\u4ED3\u5E93"):(l.warehouse_id=t.warehouse_id,m.value={fetchFun:oe,params:l}):t.is_branch==1?(t.store_id==""||t.store_id==null?w.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97"):l.store_id=t.store_id,m.value={fetchFun:ee,params:l}):m.value={fetchFun:Y,params:l};const D=()=>{c()},{pager:r,getLists:c,resetParams:k,resetPage:V}=J(m.value);c();const S=B,x=()=>{const i=r.lists.filter(s=>f.value.includes(s.id));if(!i.length)return w.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97");S("onBindStore",i)};return(i,s)=>{const L=T,E=U,_=j,P=R,o=$,I=q,N=A,K=Q,M=O;return p(),C("div",null,[e(P,{class:"mb-[-16px]",model:a(l),inline:""},{default:u(()=>[e(E,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:u(()=>[e(L,{class:"w-[200px]",modelValue:a(l).store_name,"onUpdate:modelValue":s[0]||(s[0]=n=>a(l).store_name=n),onKeydown:s[1]||(s[1]=Z(n=>D(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(E,null,{default:u(()=>[e(_,{type:"primary",onClick:a(V)},{default:u(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:a(k)},{default:u(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),z((p(),C("div",te,[e(N,{data:a(r).lists,onSelectionChange:y,height:300},{default:u(()=>[e(o,{type:"selection",width:"55"}),i.is_warehouse==0?(p(),d(o,{key:0,label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""})):(p(),d(o,{key:1,label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""})),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:u(({row:n})=>[e(I,{style:{width:"50px",height:"50px"},src:n.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(o,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),e(o,{label:"\u6210\u672C\u4EF7",prop:"cost","min-width":"100","show-overflow-tooltip":""}),e(o,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","min-width":"100","show-overflow-tooltip":""}),e(o,{label:"\u552E\u5356\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),t.is_warehouse!=1?(p(),d(o,{key:2,label:"\u5151\u6362\u5E93\u5B58",prop:"swap","min-width":"100","show-overflow-tooltip":""})):b("",!0),t.is_warehouse!=1?(p(),d(o,{key:3,label:"\u9500\u91CF",prop:"sales","min-width":"100","show-overflow-tooltip":""})):b("",!0)]),_:1},8,["data"])])),[[M,a(r).loading]]),G("div",se,[e(K,{modelValue:a(r),"onUpdate:modelValue":s[2]||(s[2]=n=>H(r)?r.value=n:null),onChange:a(c)},null,8,["modelValue","onChange"])]),e(_,{class:"w-full mt-4",type:"primary",onClick:x},{default:u(()=>[h("\u6DFB\u52A0\u5546\u54C1")]),_:1})])}}});export{we as _}; +import{k as w,C as T,D as U,w as j,F as R,M as $,b as q,N as A,O}from"./element-plus.a63a26dd.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{d as F,Z as W,r as v,o as p,c as C,U as e,L as u,u as a,aa as Z,R as h,M as z,K as d,Q as b,a as G,j as H}from"./@vue.18505fe0.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as X}from"./useDictOptions.1ff41454.js";import{a as Y}from"./store_product.88b61be2.js";import{a as ee}from"./store_branch_product.ce7e9094.js";import{a as oe}from"./warehouse_product_storege.a82fd3ce.js";import"./lodash.2473fc51.js";import"./index.79885fb7.js";const te={class:"mt-4"},se={class:"flex mt-4 justify-end"},ae=F({name:"systemStoreLists"}),we=F({...ae,props:{is_warehouse:{},is_branch:{},store_id:{},code:{},warehouse_id:{}},emits:["onBindStore"],setup(g,{emit:B}){const t=g,l=W({store_name:"",warehouse_id:"",store_id:""}),f=v([]),m=v(),y=i=>{f.value=i.map(({id:s})=>s)};X(""),t.is_warehouse==1?t.warehouse_id==""||t.warehouse_id==null?w.error("\u8BF7\u5148\u9009\u62E9\u4ED3\u5E93"):(l.warehouse_id=t.warehouse_id,m.value={fetchFun:oe,params:l}):t.is_branch==1?(t.store_id==""||t.store_id==null?w.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97"):l.store_id=t.store_id,m.value={fetchFun:ee,params:l}):m.value={fetchFun:Y,params:l};const D=()=>{c()},{pager:r,getLists:c,resetParams:k,resetPage:V}=J(m.value);c();const S=B,x=()=>{const i=r.lists.filter(s=>f.value.includes(s.id));if(!i.length)return w.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97");S("onBindStore",i)};return(i,s)=>{const L=T,E=U,_=j,P=R,o=$,I=q,N=A,K=Q,M=O;return p(),C("div",null,[e(P,{class:"mb-[-16px]",model:a(l),inline:""},{default:u(()=>[e(E,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:u(()=>[e(L,{class:"w-[200px]",modelValue:a(l).store_name,"onUpdate:modelValue":s[0]||(s[0]=n=>a(l).store_name=n),onKeydown:s[1]||(s[1]=Z(n=>D(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(E,null,{default:u(()=>[e(_,{type:"primary",onClick:a(V)},{default:u(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:a(k)},{default:u(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),z((p(),C("div",te,[e(N,{data:a(r).lists,onSelectionChange:y,height:300},{default:u(()=>[e(o,{type:"selection",width:"55"}),i.is_warehouse==0?(p(),d(o,{key:0,label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""})):(p(),d(o,{key:1,label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""})),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:u(({row:n})=>[e(I,{style:{width:"50px",height:"50px"},src:n.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(o,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),e(o,{label:"\u6210\u672C\u4EF7",prop:"cost","min-width":"100","show-overflow-tooltip":""}),e(o,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","min-width":"100","show-overflow-tooltip":""}),e(o,{label:"\u552E\u5356\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),t.is_warehouse!=1?(p(),d(o,{key:2,label:"\u5151\u6362\u5E93\u5B58",prop:"swap","min-width":"100","show-overflow-tooltip":""})):b("",!0),t.is_warehouse!=1?(p(),d(o,{key:3,label:"\u9500\u91CF",prop:"sales","min-width":"100","show-overflow-tooltip":""})):b("",!0)]),_:1},8,["data"])])),[[M,a(r).loading]]),G("div",se,[e(K,{modelValue:a(r),"onUpdate:modelValue":s[2]||(s[2]=n=>H(r)?r.value=n:null),onChange:a(c)},null,8,["modelValue","onChange"])]),e(_,{class:"w-full mt-4",type:"primary",onClick:x},{default:u(()=>[h("\u6DFB\u52A0\u5546\u54C1")]),_:1})])}}});export{we as _}; diff --git a/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfc949e2.js b/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7c8ed79c.js similarity index 91% rename from build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfc949e2.js rename to build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7c8ed79c.js index 8d415b0e1..758ce1d01 100644 --- a/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bfc949e2.js +++ b/build/admin/assets/index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7c8ed79c.js @@ -1 +1 @@ -import{k as P,C as U,D as M,w as T,F as j,M as R,b as q,N as O,O as Z}from"./element-plus.4a7d92a3.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.b08aa554.js";import{a as H}from"./system_store.6d454f9d.js";import{d as v,Z as J,r as c,o as w,c as C,U as e,L as l,u as o,R as i,M as K,S as Q,a as W,j as X}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import"./index.28c6cdcf.js";const Y={class:"mt-4"},ee={class:"flex mt-4 justify-end"},oe=v({name:"systemStoreLists"}),pe=v({...oe,props:{is_selection:{}},emits:["onBindStore"],setup(F,{emit:b}){const B=F,u=J({name:"",phone:""}),d=c("selection"),_=c(!1);B.is_selection==0&&(d.value="",_.value=!0);const f=c([]),D=n=>{f.value=n.map(({id:t})=>t)};G("");const{pager:r,getLists:h,resetParams:V,resetPage:y}=z({fetchFun:H,params:u});h();const g=b,S=n=>{g("onBindStore",n)},x=()=>{const n=r.lists.filter(t=>f.value.includes(t.id));if(!n.length)return P.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97");g("onBindStore",n)};return(n,t)=>{const E=U,p=M,m=T,k=j,s=R,A=q,L=O,I=$,N=Z;return w(),C("div",null,[e(k,{class:"mb-[-16px]",model:o(u),inline:""},{default:l(()=>[e(p,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:l(()=>[e(E,{class:"w-[200px]",modelValue:o(u).name,"onUpdate:modelValue":t[0]||(t[0]=a=>o(u).name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:l(()=>[e(E,{class:"w-[200px]",modelValue:o(u).phone,"onUpdate:modelValue":t[1]||(t[1]=a=>o(u).phone=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(m,{type:"primary",onClick:o(y)},{default:l(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:o(V)},{default:l(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),K((w(),C("div",Y,[e(L,{data:o(r).lists,onSelectionChange:D,height:300,"highlight-current-row":o(_),onCurrentChange:S},{default:l(()=>[e(s,{type:o(d),width:"55"},null,8,["type"]),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u8BE6\u7EC6\u5730\u5740",prop:"detailed_address","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:l(({row:a})=>[e(A,{src:a.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u662F\u5426\u663E\u793A",prop:"is_show","show-overflow-tooltip":""},{default:l(({row:a})=>[i(Q(a.is_show?"\u663E\u793A":"\u9690\u85CF"),1)]),_:1})]),_:1},8,["data","highlight-current-row"])])),[[N,o(r).loading]]),W("div",ee,[e(I,{modelValue:o(r),"onUpdate:modelValue":t[2]||(t[2]=a=>X(r)?r.value=a:null),onChange:o(h)},null,8,["modelValue","onChange"])]),e(m,{class:"w-full mt-4",type:"primary",onClick:x},{default:l(()=>[i("\u6DFB\u52A0\u95E8\u5E97")]),_:1})])}}});export{pe as _}; +import{k as P,C as U,D as M,w as T,F as j,M as R,b as q,N as O,O as Z}from"./element-plus.a63a26dd.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.1ff41454.js";import{a as H}from"./system_store.0480155e.js";import{d as v,Z as J,r as c,o as w,c as C,U as e,L as l,u as o,R as i,M as K,S as Q,a as W,j as X}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";import"./index.79885fb7.js";const Y={class:"mt-4"},ee={class:"flex mt-4 justify-end"},oe=v({name:"systemStoreLists"}),pe=v({...oe,props:{is_selection:{}},emits:["onBindStore"],setup(F,{emit:b}){const B=F,u=J({name:"",phone:""}),d=c("selection"),_=c(!1);B.is_selection==0&&(d.value="",_.value=!0);const f=c([]),D=n=>{f.value=n.map(({id:t})=>t)};G("");const{pager:r,getLists:h,resetParams:V,resetPage:y}=z({fetchFun:H,params:u});h();const g=b,S=n=>{g("onBindStore",n)},x=()=>{const n=r.lists.filter(t=>f.value.includes(t.id));if(!n.length)return P.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97");g("onBindStore",n)};return(n,t)=>{const E=U,p=M,m=T,k=j,s=R,A=q,L=O,I=$,N=Z;return w(),C("div",null,[e(k,{class:"mb-[-16px]",model:o(u),inline:""},{default:l(()=>[e(p,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:l(()=>[e(E,{class:"w-[200px]",modelValue:o(u).name,"onUpdate:modelValue":t[0]||(t[0]=a=>o(u).name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:l(()=>[e(E,{class:"w-[200px]",modelValue:o(u).phone,"onUpdate:modelValue":t[1]||(t[1]=a=>o(u).phone=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(m,{type:"primary",onClick:o(y)},{default:l(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:o(V)},{default:l(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),K((w(),C("div",Y,[e(L,{data:o(r).lists,onSelectionChange:D,height:300,"highlight-current-row":o(_),onCurrentChange:S},{default:l(()=>[e(s,{type:o(d),width:"55"},null,8,["type"]),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u8BE6\u7EC6\u5730\u5740",prop:"detailed_address","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:l(({row:a})=>[e(A,{src:a.image,class:"w-[50px] h-[50px]","preview-teleported":!0},null,8,["src"])]),_:1}),e(s,{label:"\u662F\u5426\u663E\u793A",prop:"is_show","show-overflow-tooltip":""},{default:l(({row:a})=>[i(Q(a.is_show?"\u663E\u793A":"\u9690\u85CF"),1)]),_:1})]),_:1},8,["data","highlight-current-row"])])),[[N,o(r).loading]]),W("div",ee,[e(I,{modelValue:o(r),"onUpdate:modelValue":t[2]||(t[2]=a=>X(r)?r.value=a:null),onChange:o(h)},null,8,["modelValue","onChange"])]),e(m,{class:"w-full mt-4",type:"primary",onClick:x},{default:l(()=>[i("\u6DFB\u52A0\u95E8\u5E97")]),_:1})])}}});export{pe as _}; diff --git a/build/admin/assets/indexList.35b374f0.js b/build/admin/assets/indexList.3d23fda6.js similarity index 79% rename from build/admin/assets/indexList.35b374f0.js rename to build/admin/assets/indexList.3d23fda6.js index 6928d14f8..3b7d31d42 100644 --- a/build/admin/assets/indexList.35b374f0.js +++ b/build/admin/assets/indexList.3d23fda6.js @@ -1 +1 @@ -import{U as ae,C as oe,D as le,J as ue,K as ne,w as re,F as se,L as ie,M as me,N as pe,O as de}from"./element-plus.4a7d92a3.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{u as fe}from"./vue-router.101084e3.js";import{d as P,r as d,s as be,Z as De,i as he,ap as ve,o as i,c as g,U as e,L as l,u as t,aa as w,T,a9 as M,K as _,j as R,R as b,M as E,a as Y,S as Fe,Q as Ce,n as ye}from"./@vue.18505fe0.js";import{u as ge}from"./usePaging.6a6670f9.js";import{u as we}from"./useDictOptions.b08aa554.js";import{h as $}from"./index.28c6cdcf.js";import{a as Ee}from"./user_ship.a76b472f.js";import{a as ke}from"./system_store.6d454f9d.js";import"./lodash.9dc701ad.js";import{_ as Ve}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.81e0d480.js";import{_ as Be}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.e4936723.js";import{h as N}from"./moment.40bc58bf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./user_label.bd719b44.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.37d9a1ee.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.db27321f.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.a882fada.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.46b9d5cd.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.e4964400.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.474f38e7.js";const xe={class:"mt-4"},Se={class:"flex mt-4 justify-end"},Ue=P({name:"userList"}),xt=P({...Ue,setup(Le){var x;const z=fe(),F=d(null),k=d([]),C=be(),y=d(!1),u=De({nickname:"",account:"",mobile:"",store_id:(x=z.query.store_id)!=null?x:"",user_ship:"",start_time:"",end_time:""});Ee([]).then(r=>{k.value=r.lists});const I=d([]),j=r=>{I.value=r.map(({id:a})=>a)},{dictData:V}=we("sex,system_disable"),{pager:c,getLists:D,resetParams:q,resetPage:f}=ge({fetchFun:$,params:u}),A=async r=>{var a,s;y.value=!0,await ye(),(a=C.value)==null||a.open("edit"),(s=C.value)==null||s.setFormData(r)},O=async r=>{var a,s;(a=F.value)==null||a.open(),(s=F.value)==null||s.setFormData(r)},h=d(!1),B=d([]),J=(r="")=>{h.value=!0,ke({name:r,page_size:50}).then(a=>{B.value=a.lists,setTimeout(()=>{h.value=!1},300)}).catch(a=>{setTimeout(()=>{h.value=!1},300)})},m=d([new Date,new Date]),Q=()=>{m.value[0]&&m.value[1]?(u.start_time=N(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=N(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),D()};return he(()=>{D()}),(r,a)=>{const s=oe,p=le,S=ue,U=ne,Z=ae,v=re,G=_e,H=se,L=ie,n=me,W=pe,X=ce,K=ve("perms"),ee=de;return i(),g("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[e(p,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:t(u).nickname,"onUpdate:modelValue":a[0]||(a[0]=o=>t(u).nickname=o),onKeydown:w(t(f),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(p,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:t(u).account,"onUpdate:modelValue":a[1]||(a[1]=o=>t(u).account=o),onKeydown:w(t(f),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),e(p,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:t(u).mobile,"onUpdate:modelValue":a[2]||(a[2]=o=>t(u).mobile=o),onKeydown:w(t(f),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(p,{label:"\u7528\u6237\u7C7B\u578B",prop:"user_ship"},{default:l(()=>[e(U,{class:"w-[280px]",modelValue:t(u).user_ship,"onUpdate:modelValue":a[3]||(a[3]=o=>t(u).user_ship=o),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",onChange:t(f)},{default:l(()=>[(i(!0),g(T,null,M(t(k),o=>(i(),_(S,{label:o.title,value:o.id,key:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),e(p,{label:"\u6240\u5C5E\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(U,{modelValue:t(u).store_id,"onUpdate:modelValue":a[4]||(a[4]=o=>t(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":J,loading:t(h),style:{width:"240px"}},{default:l(()=>[(i(!0),g(T,null,M(t(B),o=>(i(),_(S,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(p,{label:"",prop:"create_time"},{default:l(()=>[e(Z,{modelValue:t(m),"onUpdate:modelValue":a[5]||(a[5]=o=>R(m)?m.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:Q},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(v,{type:"primary",onClick:t(f)},{default:l(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:t(q)},{default:l(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(G,{class:"ml-2.5","fetch-fun":t($),params:t(u),"page-size":t(c).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((i(),_(L,{class:"!border-none",shadow:"never"},{default:l(()=>[Y("div",xe,[e(W,{data:t(c).lists,onSelectionChange:j},{default:l(()=>[e(n,{label:"ID",prop:"id","min-width":"55"}),e(n,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),e(n,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),e(n,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),e(n,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),e(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),e(n,{label:"\u5F00\u901A\u65F6\u95F4",prop:"vip_time"}),e(n,{label:"\u793C\u54C1\u5238",prop:"integral"}),e(n,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"},{default:l(({row:o})=>[b(Fe(Number(o.return_money).toFixed(2)),1)]),_:1}),e(n,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(n,{label:"\u7528\u6237\u4F59\u989D",prop:"now_money"}),e(n,{label:"\u7D2F\u8BA1\u6D88\u8D39",prop:"total_recharge_amount"}),e(n,{label:"\u5730\u5740",prop:"format_address",width:"150"}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[E((i(),_(v,{type:"primary",link:"",onClick:te=>A(o)},{default:l(()=>[b(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[K,["user.user/edit"]]]),E((i(),_(v,{type:"primary",link:"",onClick:te=>O(o)},{default:l(()=>[b(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[K,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])]),Y("div",Se,[e(X,{modelValue:t(c),"onUpdate:modelValue":a[6]||(a[6]=o=>R(c)?c.value=o:null),onChange:t(D)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,t(c).loading]]),e(Be,{ref_key:"detailsRef",ref:F,"dict-data":t(V)},null,8,["dict-data"]),t(y)?(i(),_(Ve,{key:0,ref_key:"editRef",ref:C,"dict-data":t(V),onSuccess:t(D),onClose:a[7]||(a[7]=o=>y.value=!1)},null,8,["dict-data","onSuccess"])):Ce("",!0)])}}});export{xt as default}; +import{U as ae,C as oe,D as le,J as ue,K as ne,w as re,F as se,L as ie,M as me,N as pe,O as de}from"./element-plus.a63a26dd.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{u as fe}from"./vue-router.101084e3.js";import{d as P,r as d,s as be,Z as De,i as he,ap as ve,o as i,c as g,U as e,L as l,u as t,aa as w,T,a9 as M,K as _,j as R,R as b,M as E,a as Y,S as Fe,Q as Ce,n as ye}from"./@vue.18505fe0.js";import{u as ge}from"./usePaging.6a6670f9.js";import{u as we}from"./useDictOptions.1ff41454.js";import{h as $}from"./index.79885fb7.js";import{a as Ee}from"./user_ship.123b3054.js";import{a as ke}from"./system_store.0480155e.js";import"./lodash.2473fc51.js";import{_ as Ve}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.21f8af63.js";import{_ as Be}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.458c581a.js";import{h as N}from"./moment.40bc58bf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./user_label.db040973.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.74229d81.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.eec4dd64.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.f9d31231.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.19a0209d.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.caedc8c3.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.5a03bfa3.js";const xe={class:"mt-4"},Se={class:"flex mt-4 justify-end"},Ue=P({name:"userList"}),xt=P({...Ue,setup(Le){var x;const z=fe(),F=d(null),k=d([]),C=be(),y=d(!1),u=De({nickname:"",account:"",mobile:"",store_id:(x=z.query.store_id)!=null?x:"",user_ship:"",start_time:"",end_time:""});Ee([]).then(r=>{k.value=r.lists});const I=d([]),j=r=>{I.value=r.map(({id:a})=>a)},{dictData:V}=we("sex,system_disable"),{pager:c,getLists:D,resetParams:q,resetPage:f}=ge({fetchFun:$,params:u}),A=async r=>{var a,s;y.value=!0,await ye(),(a=C.value)==null||a.open("edit"),(s=C.value)==null||s.setFormData(r)},O=async r=>{var a,s;(a=F.value)==null||a.open(),(s=F.value)==null||s.setFormData(r)},h=d(!1),B=d([]),J=(r="")=>{h.value=!0,ke({name:r,page_size:50}).then(a=>{B.value=a.lists,setTimeout(()=>{h.value=!1},300)}).catch(a=>{setTimeout(()=>{h.value=!1},300)})},m=d([new Date,new Date]),Q=()=>{m.value[0]&&m.value[1]?(u.start_time=N(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=N(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),D()};return he(()=>{D()}),(r,a)=>{const s=oe,p=le,S=ue,U=ne,Z=ae,v=re,G=_e,H=se,L=ie,n=me,W=pe,X=ce,K=ve("perms"),ee=de;return i(),g("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[e(p,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:t(u).nickname,"onUpdate:modelValue":a[0]||(a[0]=o=>t(u).nickname=o),onKeydown:w(t(f),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(p,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:t(u).account,"onUpdate:modelValue":a[1]||(a[1]=o=>t(u).account=o),onKeydown:w(t(f),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),e(p,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:l(()=>[e(s,{class:"w-[280px]",modelValue:t(u).mobile,"onUpdate:modelValue":a[2]||(a[2]=o=>t(u).mobile=o),onKeydown:w(t(f),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(p,{label:"\u7528\u6237\u7C7B\u578B",prop:"user_ship"},{default:l(()=>[e(U,{class:"w-[280px]",modelValue:t(u).user_ship,"onUpdate:modelValue":a[3]||(a[3]=o=>t(u).user_ship=o),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",onChange:t(f)},{default:l(()=>[(i(!0),g(T,null,M(t(k),o=>(i(),_(S,{label:o.title,value:o.id,key:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),e(p,{label:"\u6240\u5C5E\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(U,{modelValue:t(u).store_id,"onUpdate:modelValue":a[4]||(a[4]=o=>t(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":J,loading:t(h),style:{width:"240px"}},{default:l(()=>[(i(!0),g(T,null,M(t(B),o=>(i(),_(S,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(p,{label:"",prop:"create_time"},{default:l(()=>[e(Z,{modelValue:t(m),"onUpdate:modelValue":a[5]||(a[5]=o=>R(m)?m.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:Q},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(v,{type:"primary",onClick:t(f)},{default:l(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:t(q)},{default:l(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(G,{class:"ml-2.5","fetch-fun":t($),params:t(u),"page-size":t(c).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((i(),_(L,{class:"!border-none",shadow:"never"},{default:l(()=>[Y("div",xe,[e(W,{data:t(c).lists,onSelectionChange:j},{default:l(()=>[e(n,{label:"ID",prop:"id","min-width":"55"}),e(n,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),e(n,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),e(n,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),e(n,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),e(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),e(n,{label:"\u5F00\u901A\u65F6\u95F4",prop:"vip_time"}),e(n,{label:"\u793C\u54C1\u5238",prop:"integral"}),e(n,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"},{default:l(({row:o})=>[b(Fe(Number(o.return_money).toFixed(2)),1)]),_:1}),e(n,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(n,{label:"\u7528\u6237\u4F59\u989D",prop:"now_money"}),e(n,{label:"\u7D2F\u8BA1\u6D88\u8D39",prop:"total_recharge_amount"}),e(n,{label:"\u5730\u5740",prop:"format_address",width:"150"}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[E((i(),_(v,{type:"primary",link:"",onClick:te=>A(o)},{default:l(()=>[b(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[K,["user.user/edit"]]]),E((i(),_(v,{type:"primary",link:"",onClick:te=>O(o)},{default:l(()=>[b(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[K,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])]),Y("div",Se,[e(X,{modelValue:t(c),"onUpdate:modelValue":a[6]||(a[6]=o=>R(c)?c.value=o:null),onChange:t(D)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,t(c).loading]]),e(Be,{ref_key:"detailsRef",ref:F,"dict-data":t(V)},null,8,["dict-data"]),t(y)?(i(),_(Ve,{key:0,ref_key:"editRef",ref:C,"dict-data":t(V),onSuccess:t(D),onClose:a[7]||(a[7]=o=>y.value=!1)},null,8,["dict-data","onSuccess"])):Ce("",!0)])}}});export{xt as default}; diff --git a/build/admin/assets/information.3f3bfd0d.js b/build/admin/assets/information.2a7aecbe.js similarity index 87% rename from build/admin/assets/information.3f3bfd0d.js rename to build/admin/assets/information.2a7aecbe.js index 6892fe8a8..ec11fb819 100644 --- a/build/admin/assets/information.3f3bfd0d.js +++ b/build/admin/assets/information.2a7aecbe.js @@ -1 +1 @@ -import{_ as v}from"./index.4ab42509.js";import{C as D,D as w,L as V,F as h,w as x}from"./element-plus.4a7d92a3.js";import{_ as j}from"./picker.771d2d71.js";import{a as q,b as U}from"./website.3f9eaea3.js";import{u as k}from"./index.28c6cdcf.js";import{d as g,r as y,Z as O,ap as M,o as _,c as P,U as u,L as r,a as i,u as l,M as L,K as G,R as I}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.d777fd30.js";import"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import"./index.1050911c.js";import"./usePaging.6a6670f9.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const N={class:"website-information"},R=i("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1),S={class:"w-80"},W=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),K=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),T=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Z=i("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),z={class:"w-80"},H=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),J=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Q=i("div",{class:"text-xl font-medium mb-[20px]"},"PC\u7AEF\u8BBE\u7F6E",-1),X=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Y={class:"w-80"},$=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),uu={class:"w-80"},eu={class:"w-80"},ou=g({name:"webInformation"}),zu=g({...ou,setup(lu){const d=y(),c=k(),e=O({name:"",web_favicon:"",web_logo:"",login_image:"",h5_favicon:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),f={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}],web_favicon:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}],web_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9logo",trigger:["change"]}],login_image:[{required:!0,message:"\u8BF7\u9009\u62E9\u767B\u5F55\u9875\u5E7F\u544A\u56FE",trigger:["change"]}],shop_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E97\u94FA/\u5546\u57CE\u540D\u79F0",trigger:["blur"]}],shop_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u57CELOGO",trigger:["change"]}],pc_logo:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEFLOGO",trigger:["change"]}],pc_title:[{required:!0,message:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",trigger:["blur"]}],pc_ico:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEF\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}]},n=async()=>{const m=await q();for(const o in e)e[o]=m[o]},C=async()=>{var m;await((m=d.value)==null?void 0:m.validate()),await U(e),c.getConfig(),n()};return n(),(m,o)=>{const p=D,s=w,a=j,F=V,A=h,E=x,b=v,B=M("perms");return _(),P("div",N,[u(A,{ref_key:"formRef",ref:d,rules:f,class:"ls-form",model:l(e),"label-width":"120px"},{default:r(()=>[u(F,{shadow:"never",class:"!border-none"},{default:r(()=>[R,u(s,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:r(()=>[i("div",S,[u(p,{modelValue:l(e).name,"onUpdate:modelValue":o[0]||(o[0]=t=>l(e).name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).web_favicon,"onUpdate:modelValue":o[1]||(o[1]=t=>l(e).web_favicon=t),limit:1},null,8,["modelValue"]),W])]),_:1}),u(s,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).web_logo,"onUpdate:modelValue":o[2]||(o[2]=t=>l(e).web_logo=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),K])]),_:1}),u(s,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).login_image,"onUpdate:modelValue":o[3]||(o[3]=t=>l(e).login_image=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),T])]),_:1})]),_:1}),u(F,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[Z,u(s,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:r(()=>[i("div",z,[u(p,{modelValue:l(e).shop_name,"onUpdate:modelValue":o[4]||(o[4]=t=>l(e).shop_name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u524D\u53F0\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).h5_favicon,"onUpdate:modelValue":o[5]||(o[5]=t=>l(e).h5_favicon=t),limit:1},null,8,["modelValue"]),H])]),_:1}),u(s,{label:"\u524D\u53F0LOGO",prop:"shop_logo"},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).shop_logo,"onUpdate:modelValue":o[6]||(o[6]=t=>l(e).shop_logo=t),limit:1},null,8,["modelValue"]),J])]),_:1})]),_:1}),u(F,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[Q,u(s,{label:"PC\u7AEFLOGO",prop:"pc_logo"},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).pc_logo,"onUpdate:modelValue":o[7]||(o[7]=t=>l(e).pc_logo=t),limit:1},null,8,["modelValue"]),X])]),_:1}),u(s,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:r(()=>[i("div",Y,[u(p,{modelValue:l(e).pc_title,"onUpdate:modelValue":o[8]||(o[8]=t=>l(e).pc_title=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"pc_ico"},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).pc_ico,"onUpdate:modelValue":o[9]||(o[9]=t=>l(e).pc_ico=t),limit:1},null,8,["modelValue"]),$])]),_:1}),u(s,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:r(()=>[i("div",uu,[u(p,{modelValue:l(e).pc_desc,"onUpdate:modelValue":o[10]||(o[10]=t=>l(e).pc_desc=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u63CF\u8FF0"},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u5173\u952E\u8BCD",prop:"pc_keywords"},{default:r(()=>[i("div",eu,[u(p,{modelValue:l(e).pc_keywords,"onUpdate:modelValue":o[11]||(o[11]=t=>l(e).pc_keywords=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u5173\u952E\u8BCD"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["model"]),L((_(),G(b,null,{default:r(()=>[u(E,{type:"primary",onClick:C},{default:r(()=>[I("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["setting.web.web_setting/setWebsite"]]])])}}});export{zu as default}; +import{_ as v}from"./index.eb013c93.js";import{C as D,D as w,L as V,F as h,w as x}from"./element-plus.a63a26dd.js";import{_ as j}from"./picker.bfcf15be.js";import{a as q,b as U}from"./website.6b9ec637.js";import{u as k}from"./index.79885fb7.js";import{d as g,r as y,Z as O,ap as M,o as _,c as P,U as u,L as r,a as i,u as l,M as L,K as G,R as I}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.c1432c63.js";import"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import"./index.a5c1d2e3.js";import"./usePaging.6a6670f9.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const N={class:"website-information"},R=i("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1),S={class:"w-80"},W=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),K=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),T=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Z=i("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),z={class:"w-80"},H=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),J=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Q=i("div",{class:"text-xl font-medium mb-[20px]"},"PC\u7AEF\u8BBE\u7F6E",-1),X=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Y={class:"w-80"},$=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),uu={class:"w-80"},eu={class:"w-80"},ou=g({name:"webInformation"}),zu=g({...ou,setup(lu){const d=y(),c=k(),e=O({name:"",web_favicon:"",web_logo:"",login_image:"",h5_favicon:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),f={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}],web_favicon:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}],web_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9logo",trigger:["change"]}],login_image:[{required:!0,message:"\u8BF7\u9009\u62E9\u767B\u5F55\u9875\u5E7F\u544A\u56FE",trigger:["change"]}],shop_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E97\u94FA/\u5546\u57CE\u540D\u79F0",trigger:["blur"]}],shop_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u57CELOGO",trigger:["change"]}],pc_logo:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEFLOGO",trigger:["change"]}],pc_title:[{required:!0,message:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",trigger:["blur"]}],pc_ico:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEF\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}]},n=async()=>{const m=await q();for(const o in e)e[o]=m[o]},C=async()=>{var m;await((m=d.value)==null?void 0:m.validate()),await U(e),c.getConfig(),n()};return n(),(m,o)=>{const p=D,s=w,a=j,F=V,A=h,E=x,b=v,B=M("perms");return _(),P("div",N,[u(A,{ref_key:"formRef",ref:d,rules:f,class:"ls-form",model:l(e),"label-width":"120px"},{default:r(()=>[u(F,{shadow:"never",class:"!border-none"},{default:r(()=>[R,u(s,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:r(()=>[i("div",S,[u(p,{modelValue:l(e).name,"onUpdate:modelValue":o[0]||(o[0]=t=>l(e).name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).web_favicon,"onUpdate:modelValue":o[1]||(o[1]=t=>l(e).web_favicon=t),limit:1},null,8,["modelValue"]),W])]),_:1}),u(s,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).web_logo,"onUpdate:modelValue":o[2]||(o[2]=t=>l(e).web_logo=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),K])]),_:1}),u(s,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).login_image,"onUpdate:modelValue":o[3]||(o[3]=t=>l(e).login_image=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),T])]),_:1})]),_:1}),u(F,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[Z,u(s,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:r(()=>[i("div",z,[u(p,{modelValue:l(e).shop_name,"onUpdate:modelValue":o[4]||(o[4]=t=>l(e).shop_name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u524D\u53F0\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).h5_favicon,"onUpdate:modelValue":o[5]||(o[5]=t=>l(e).h5_favicon=t),limit:1},null,8,["modelValue"]),H])]),_:1}),u(s,{label:"\u524D\u53F0LOGO",prop:"shop_logo"},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).shop_logo,"onUpdate:modelValue":o[6]||(o[6]=t=>l(e).shop_logo=t),limit:1},null,8,["modelValue"]),J])]),_:1})]),_:1}),u(F,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[Q,u(s,{label:"PC\u7AEFLOGO",prop:"pc_logo"},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).pc_logo,"onUpdate:modelValue":o[7]||(o[7]=t=>l(e).pc_logo=t),limit:1},null,8,["modelValue"]),X])]),_:1}),u(s,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:r(()=>[i("div",Y,[u(p,{modelValue:l(e).pc_title,"onUpdate:modelValue":o[8]||(o[8]=t=>l(e).pc_title=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"pc_ico"},{default:r(()=>[i("div",null,[u(a,{modelValue:l(e).pc_ico,"onUpdate:modelValue":o[9]||(o[9]=t=>l(e).pc_ico=t),limit:1},null,8,["modelValue"]),$])]),_:1}),u(s,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:r(()=>[i("div",uu,[u(p,{modelValue:l(e).pc_desc,"onUpdate:modelValue":o[10]||(o[10]=t=>l(e).pc_desc=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u63CF\u8FF0"},null,8,["modelValue"])])]),_:1}),u(s,{label:"\u7F51\u7AD9\u5173\u952E\u8BCD",prop:"pc_keywords"},{default:r(()=>[i("div",eu,[u(p,{modelValue:l(e).pc_keywords,"onUpdate:modelValue":o[11]||(o[11]=t=>l(e).pc_keywords=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u5173\u952E\u8BCD"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["model"]),L((_(),G(b,null,{default:r(()=>[u(E,{type:"primary",onClick:C},{default:r(()=>[I("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["setting.web.web_setting/setWebsite"]]])])}}});export{zu as default}; diff --git a/build/admin/assets/inventory_transfer.f5f0fcf8.js b/build/admin/assets/inventory_transfer.b6c01a1c.js similarity index 87% rename from build/admin/assets/inventory_transfer.f5f0fcf8.js rename to build/admin/assets/inventory_transfer.b6c01a1c.js index 0ca4eda36..7b55cfa18 100644 --- a/build/admin/assets/inventory_transfer.f5f0fcf8.js +++ b/build/admin/assets/inventory_transfer.b6c01a1c.js @@ -1 +1 @@ -import{r as n}from"./index.28c6cdcf.js";function e(r){return n.get({url:"/inventory_transfer/inventorytransfer/lists",params:r})}function a(r){return n.post({url:"/inventory_transfer/inventorytransfer/add",params:r})}function s(r){return n.post({url:"/inventory_transfer/inventorytransfer/edit",params:r})}function i(r){return n.post({url:"/inventory_transfer/inventorytransfer/delete",params:r})}function o(r){return n.get({url:"/inventory_transfer/inventorytransfer/detail",params:r})}export{o as a,s as b,a as c,i as d,e}; +import{r as n}from"./index.79885fb7.js";function e(r){return n.get({url:"/inventory_transfer/inventorytransfer/lists",params:r})}function a(r){return n.post({url:"/inventory_transfer/inventorytransfer/add",params:r})}function s(r){return n.post({url:"/inventory_transfer/inventorytransfer/edit",params:r})}function i(r){return n.post({url:"/inventory_transfer/inventorytransfer/delete",params:r})}function o(r){return n.get({url:"/inventory_transfer/inventorytransfer/detail",params:r})}export{o as a,s as b,a as c,i as d,e}; diff --git a/build/admin/assets/journal.c36f37a8.js b/build/admin/assets/journal.33193edb.js similarity index 80% rename from build/admin/assets/journal.c36f37a8.js rename to build/admin/assets/journal.33193edb.js index 460be083a..9f25e51eb 100644 --- a/build/admin/assets/journal.c36f37a8.js +++ b/build/admin/assets/journal.33193edb.js @@ -1 +1 @@ -import{C as I,D as A,J as P,K as j,w as z,F as N,L as M,M as $,N as O,O as R}from"./element-plus.4a7d92a3.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.616746cc.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.77dd59e0.js";import{d as V,r as b,i as G,o as p,c as E,U as e,L as n,u as l,aa as d,T as H,a9 as Q,K as F,R as B,M as W,a as v,j as X}from"./@vue.18505fe0.js";import{v as g}from"./index.28c6cdcf.js";import{u as Y}from"./usePaging.6a6670f9.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ac70fa70.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const Z={class:"journal"},ee={class:"flex mt-4 justify-end"},le=V({name:"journal"}),$e=V({...le,setup(te){const a=b({admin_name:"",url:"",ip:"",type:"",start_time:"",end_time:""}),w=b([{label:"\u5168\u90E8",value:""},{label:"get",value:"get"},{label:"post",value:"post"},{label:"put",value:"put"},{label:"delete",value:"delete"},{label:"option",value:"option"}]),{pager:m,getLists:_,resetParams:y,resetPage:i}=Y({fetchFun:g,params:a.value});return G(()=>{_()}),(ae,o)=>{const s=I,r=A,C=P,T=j,h=q,c=z,x=S,k=N,f=M,u=$,K=O,D=J,U=R;return p(),E("div",Z,[e(f,{class:"!border-none",shadow:"never"},{default:n(()=>[e(k,{class:"ls-form",model:l(a),inline:""},{default:n(()=>[e(r,{label:"\u7BA1\u7406\u5458"},{default:n(()=>[e(s,{class:"w-[280px]",placeholder:"\u8BF7\u8F93\u5165",modelValue:l(a).admin_name,"onUpdate:modelValue":o[0]||(o[0]=t=>l(a).admin_name=t),clearable:"",onKeyup:d(l(i),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u65B9\u5F0F"},{default:n(()=>[e(T,{class:"w-[280px]",modelValue:l(a).type,"onUpdate:modelValue":o[1]||(o[1]=t=>l(a).type=t),placeholder:"\u8BF7\u9009\u62E9"},{default:n(()=>[(p(!0),E(H,null,Q(l(w),(t,L)=>(p(),F(C,{key:L,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u6765\u6E90IP"},{default:n(()=>[e(s,{class:"w-[280px]",placeholder:"\u8BF7\u8F93\u5165",modelValue:l(a).ip,"onUpdate:modelValue":o[2]||(o[2]=t=>l(a).ip=t),clearable:"",onKeyup:d(l(i),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u65F6\u95F4"},{default:n(()=>[e(h,{startTime:l(a).start_time,"onUpdate:startTime":o[3]||(o[3]=t=>l(a).start_time=t),endTime:l(a).end_time,"onUpdate:endTime":o[4]||(o[4]=t=>l(a).end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:n(()=>[e(s,{class:"w-[280px]",placeholder:"\u8BF7\u8F93\u5165",modelValue:l(a).url,"onUpdate:modelValue":o[5]||(o[5]=t=>l(a).url=t),clearable:"",onKeyup:d(l(i),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(r,null,{default:n(()=>[e(c,{type:"primary",onClick:l(i)},{default:n(()=>[B("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:l(y)},{default:n(()=>[B("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(x,{class:"ml-2.5","fetch-fun":l(g),params:l(a),"page-size":l(m).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),W((p(),F(f,{class:"!border-none mt-4",shadow:"never"},{default:n(()=>[v("div",null,[e(K,{data:l(m).lists,size:"large"},{default:n(()=>[e(u,{label:"\u8BB0\u5F55ID",prop:"id"}),e(u,{label:"\u64CD\u4F5C",prop:"action","min-width":"120"}),e(u,{label:"\u7BA1\u7406\u5458",prop:"admin_name","min-width":"120"}),e(u,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","min-width":"120"}),e(u,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","min-width":"160"}),e(u,{label:"\u8BBF\u95EE\u65B9\u5F0F",prop:"type"}),e(u,{label:"\u8BBF\u95EE\u53C2\u6570",prop:"params","min-width":"160"}),e(u,{label:"\u6765\u6E90IP",prop:"ip","min-width":"160"}),e(u,{label:"\u65E5\u5FD7\u65F6\u95F4",prop:"create_time","min-width":"180"})]),_:1},8,["data"])]),v("div",ee,[e(D,{modelValue:l(m),"onUpdate:modelValue":o[6]||(o[6]=t=>X(m)?m.value=t:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:1})),[[U,l(m).loading]])])}}});export{$e as default}; +import{C as I,D as A,J as P,K as j,w as z,F as N,L as M,M as $,N as O,O as R}from"./element-plus.a63a26dd.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.efe648dd.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.22edb8e7.js";import{d as V,r as b,i as G,o as p,c as E,U as e,L as n,u as l,aa as d,T as H,a9 as Q,K as F,R as B,M as W,a as v,j as X}from"./@vue.18505fe0.js";import{v as g}from"./index.79885fb7.js";import{u as Y}from"./usePaging.6a6670f9.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./lodash.2473fc51.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const Z={class:"journal"},ee={class:"flex mt-4 justify-end"},le=V({name:"journal"}),$e=V({...le,setup(te){const a=b({admin_name:"",url:"",ip:"",type:"",start_time:"",end_time:""}),w=b([{label:"\u5168\u90E8",value:""},{label:"get",value:"get"},{label:"post",value:"post"},{label:"put",value:"put"},{label:"delete",value:"delete"},{label:"option",value:"option"}]),{pager:m,getLists:_,resetParams:y,resetPage:i}=Y({fetchFun:g,params:a.value});return G(()=>{_()}),(ae,o)=>{const s=I,r=A,C=P,T=j,h=q,c=z,x=S,k=N,f=M,u=$,K=O,D=J,U=R;return p(),E("div",Z,[e(f,{class:"!border-none",shadow:"never"},{default:n(()=>[e(k,{class:"ls-form",model:l(a),inline:""},{default:n(()=>[e(r,{label:"\u7BA1\u7406\u5458"},{default:n(()=>[e(s,{class:"w-[280px]",placeholder:"\u8BF7\u8F93\u5165",modelValue:l(a).admin_name,"onUpdate:modelValue":o[0]||(o[0]=t=>l(a).admin_name=t),clearable:"",onKeyup:d(l(i),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u65B9\u5F0F"},{default:n(()=>[e(T,{class:"w-[280px]",modelValue:l(a).type,"onUpdate:modelValue":o[1]||(o[1]=t=>l(a).type=t),placeholder:"\u8BF7\u9009\u62E9"},{default:n(()=>[(p(!0),E(H,null,Q(l(w),(t,L)=>(p(),F(C,{key:L,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u6765\u6E90IP"},{default:n(()=>[e(s,{class:"w-[280px]",placeholder:"\u8BF7\u8F93\u5165",modelValue:l(a).ip,"onUpdate:modelValue":o[2]||(o[2]=t=>l(a).ip=t),clearable:"",onKeyup:d(l(i),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u65F6\u95F4"},{default:n(()=>[e(h,{startTime:l(a).start_time,"onUpdate:startTime":o[3]||(o[3]=t=>l(a).start_time=t),endTime:l(a).end_time,"onUpdate:endTime":o[4]||(o[4]=t=>l(a).end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:n(()=>[e(s,{class:"w-[280px]",placeholder:"\u8BF7\u8F93\u5165",modelValue:l(a).url,"onUpdate:modelValue":o[5]||(o[5]=t=>l(a).url=t),clearable:"",onKeyup:d(l(i),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(r,null,{default:n(()=>[e(c,{type:"primary",onClick:l(i)},{default:n(()=>[B("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:l(y)},{default:n(()=>[B("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(x,{class:"ml-2.5","fetch-fun":l(g),params:l(a),"page-size":l(m).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),W((p(),F(f,{class:"!border-none mt-4",shadow:"never"},{default:n(()=>[v("div",null,[e(K,{data:l(m).lists,size:"large"},{default:n(()=>[e(u,{label:"\u8BB0\u5F55ID",prop:"id"}),e(u,{label:"\u64CD\u4F5C",prop:"action","min-width":"120"}),e(u,{label:"\u7BA1\u7406\u5458",prop:"admin_name","min-width":"120"}),e(u,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","min-width":"120"}),e(u,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","min-width":"160"}),e(u,{label:"\u8BBF\u95EE\u65B9\u5F0F",prop:"type"}),e(u,{label:"\u8BBF\u95EE\u53C2\u6570",prop:"params","min-width":"160"}),e(u,{label:"\u6765\u6E90IP",prop:"ip","min-width":"160"}),e(u,{label:"\u65E5\u5FD7\u65F6\u95F4",prop:"create_time","min-width":"180"})]),_:1},8,["data"])]),v("div",ee,[e(D,{modelValue:l(m),"onUpdate:modelValue":o[6]||(o[6]=t=>X(m)?m.value=t:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:1})),[[U,l(m).loading]])])}}});export{$e as default}; diff --git a/build/admin/assets/lodash.9dc701ad.js b/build/admin/assets/lodash.2473fc51.js similarity index 99% rename from build/admin/assets/lodash.9dc701ad.js rename to build/admin/assets/lodash.2473fc51.js index ed66bc5d3..d1b48a581 100644 --- a/build/admin/assets/lodash.9dc701ad.js +++ b/build/admin/assets/lodash.2473fc51.js @@ -1,4 +1,4 @@ -import{c as jt}from"./axios.4607972f.js";var el={exports:{}};/** +import{c as jt}from"./axios.932d3f8a.js";var el={exports:{}};/** * @license * Lodash