1 |
- import{d as ot,b as st,e as h,r as v,f as A,g as mt,h as nt,o as m,c as y,i as e,w as a,a as t,j as x,k as s,l as g,m as ct,t as B,F as it,n as H,E as ut,_ as dt,p as ft,q as pt,s as ht,v as yt,x as xt,y as gt,__tla as wt}from"./index-1e808f2e.js";import{_ as Tt,__tla as bt}from"./Echart.vue_vue_type_script_setup_true_lang-a25ff2b1.js";import{E as vt,__tla as kt}from"./el-card-03b3588b.js";import{E as St,__tla as Yt}from"./el-skeleton-item-ac550ee3.js";import{l as J,__tla as Dt}from"./echarts-data-21eeeb5f.js";import{T as Et,g as jt,__tla as Ct}from"./ToBeDone-f4b1d8a0.js";import Mt,{__tla as Ot}from"./index-cbaabc95.js";import{c as f,__tla as qt}from"./permission-ddb026c8.js";import{_ as Ft}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as It}from"./ToBeDoneDialog-8d8ed19d.js";import{__tla as Pt}from"./Dialog-f44f9d78.js";import{__tla as Vt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{__tla as zt}from"./SPuUploadImg-f0bd750f.js";import{__tla as Rt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as Ut}from"./index-b59955b6.js";import{__tla as At}from"./el-image-viewer-dddb6285.js";import{__tla as Bt}from"./useMessage-5f9e8917.js";import{__tla as Ht}from"./spu-d8bf9472.js";import{__tla as Jt}from"./InfoForm-4ce6fd21.js";import{__tla as Lt}from"./UploadImgs-d9af51cb.js";import{__tla as Gt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-531188a2.js";import"./tree-fd3a041e.js";import{__tla as Kt}from"./category-9d0fc28e.js";import{__tla as Nt}from"./brand-b7ab0146.js";import{__tla as Qt}from"./formRules-83fad61e.js";import{__tla as Wt}from"./DescriptionForm-d37cca4e.js";import{__tla as Xt}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";import{__tla as Zt}from"./OtherForm-2c13f480.js";import{__tla as $t}from"./SkuForm-a3b8855a.js";import{__tla as tr}from"./index-89aca07e.js";import{__tla as rr}from"./SkuList.vue_vue_type_script_setup_true_lang-7b9b16cc.js";import{__tla as ar}from"./el-image-263fb014.js";import{__tla as er}from"./UploadImg-3538b5a5.js";import{__tla as _r}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d79157f5.js";import{__tla as lr}from"./PcComponents.css_vue_type_style_index_0_src_bf8feb19_scoped_bf8feb19_lang-e58f9938.js";import{__tla as or}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-ecf39234.js";import{__tla as sr}from"./el-text-3aab5b45.js";import{__tla as mr}from"./property-35f111c0.js";import{__tla as nr}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-f25e6775.js";import{__tla as cr}from"./MobileSkuList-eb90d753.js";import{__tla as ir}from"./DeliveryForm-bc19a93e.js";import{__tla as ur}from"./index-ac5bda51.js";import{__tla as dr}from"./dict-a31cb4ba.js";import"./constants-e43f22dd.js";import{__tla as fr}from"./Service-7cbd04db.js";import{__tla as pr}from"./index-b776b94b.js";import{__tla as hr}from"./AfterSale-023b5def.js";import{__tla as yr}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{__tla as xr}from"./index-73afebcf.js";import{__tla as gr}from"./index-732888d2.js";import{__tla as wr}from"./Comment-e702aea4.js";import{__tla as Tr}from"./Apply-58b27b67.js";import{__tla as br}from"./formatTime-a348c3be.js";let L,vr=Promise.all([(()=>{try{return wt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return tr}catch{}})(),(()=>{try{return rr}catch{}})(),(()=>{try{return ar}catch{}})(),(()=>{try{return er}catch{}})(),(()=>{try{return _r}catch{}})(),(()=>{try{return lr}catch{}})(),(()=>{try{return or}catch{}})(),(()=>{try{return sr}catch{}})(),(()=>{try{return mr}catch{}})(),(()=>{try{return nr}catch{}})(),(()=>{try{return cr}catch{}})(),(()=>{try{return ir}catch{}})(),(()=>{try{return ur}catch{}})(),(()=>{try{return dr}catch{}})(),(()=>{try{return fr}catch{}})(),(()=>{try{return pr}catch{}})(),(()=>{try{return hr}catch{}})(),(()=>{try{return yr}catch{}})(),(()=>{try{return xr}catch{}})(),(()=>{try{return gr}catch{}})(),(()=>{try{return wr}catch{}})(),(()=>{try{return Tr}catch{}})(),(()=>{try{return br}catch{}})()]).then(async()=>{let i,k,S,Y,D,E,j,C,M;i=p=>(yt("data-v-5303987b"),p=p(),xt(),p),k=[i(()=>s("span",null,"\u5F85\u529E",-1))],S=i(()=>s("div",{class:"h-3 flex justify-between items-center"},[s("span",null,"\u5FEB\u6377\u65B9\u5F0F")],-1)),Y={class:"flex flex-row flex-wrap gap-8 p-4",style:{"min-height":"200px"}},D={class:"bg-orange-400 h-48px w-48px flex items-center justify-center rounded text-white"},E=i(()=>s("span",null,"\u65B0\u589E\u5546\u54C1",-1)),j={class:"h-3 flex justify-between items-center"},C=i(()=>s("span",null,"\u8BA2\u5355",-1)),M={key:0,class:"!w-240px flex"},L=Ft(ot({name:"Home",__name:"Index",setup(p){const G=st(),O=h(()=>G.getMobile),u=v(!0),K=h(()=>f(["trade:order:query"])),N=h(()=>f(["product:spu:create"])),Q=h(()=>f(["trade:order:backlog:query"])||f(["after:sale:backlog:query"])),r=A({orderTime:"",orderStatrTime:"",orderEndTime:"",mobileOrderTimeShow:!1}),q=v(),F=v(null),I=mt(()=>{F.value.getList()},1e3);let w;function W(_){w=_}const X=new Date(2024,5,12);let T=A(J);const b=async(_,l)=>{const o=await jt({startTime:_,endTime:l});gt(T,"xAxis.data",o.xaxis.data);const d=o==null?void 0:o.series.map(n=>({count:n.count,value:n.money/100}));T.series[0].data=d,w&&w.setOption(T,!0)};function Z(_){r.orderStatrTime=_[0],r.orderEndTime=_[1],b(r.orderStatrTime,r.orderEndTime)}function P(){r.mobileOrderTimeShow=!0}function $(_){r.mobileOrderTimeShow=!1,r.orderStatrTime=H(_[0]).format("YYYY-MM-DD"),r.orderEndTime=H(_[1]).format("YYYY-MM-DD"),b(r.orderStatrTime,r.orderEndTime)}return(async()=>(await Promise.all([b()]),u.value=!1))(),(_,l)=>{const o=St,d=vt,n=ut,tt=dt,rt=ft,at=pt,et=nt("van-calendar"),_t=Tt,V=ht;return m(),y(it,null,[e(V,{class:"mt-8px",gutter:8,justify:"space-between"},{default:a(()=>[t(Q)?(m(),x(n,{key:0,xl:12,lg:12,md:24,sm:24,xs:24,class:"mb-8px"},{default:a(()=>[e(d,{shadow:"never"},{header:a(()=>[s("div",{class:"h-3 flex justify-between cursor-pointer items-center",onClick:l[0]||(l[0]=(...c)=>t(I)&&t(I)(...c))},k)]),default:a(()=>[e(o,{loading:t(u),animated:""},{default:a(()=>[e(Et,{ref_key:"toBeDoneRef",ref:F},null,512)]),_:1},8,["loading"])]),_:1})]),_:1})):g("",!0),t(N)?(m(),x(n,{key:1,xl:12,lg:12,md:24,sm:24,xs:24,class:"mb-8px"},{default:a(()=>[e(d,{shadow:"never"},{header:a(()=>[S]),default:a(()=>[e(o,{loading:t(u),animated:""},{default:a(()=>[s("div",Y,[t(f)(["product:spu:create"])?(m(),y("div",{key:0,class:"h-20 w-20% flex flex-col cursor-pointer items-center justify-center gap-2",onClick:l[1]||(l[1]=c=>{return z="create",R="",U=0,void q.value.open(z,R,U,lt);var z,R,U,lt})},[s("div",D,[e(tt,{icon:"fluent-mdl2:product",class:"text-7.5!"})]),E])):g("",!0)])]),_:1},8,["loading"])]),_:1})]),_:1})):g("",!0),t(K)?(m(),x(n,{key:2,xl:24,lg:24,md:24,sm:24,xs:24,class:"mb-8px"},{default:a(()=>[e(d,{shadow:"never"},{header:a(()=>[s("div",j,[C,t(O)?!t(O)||t(r).orderStatrTime||t(r).orderEndTime?(m(),y("span",{key:2,style:{"font-size":"14px"},onClick:P},B(t(r).orderStatrTime)+" - "+B(t(r).orderEndTime),1)):(m(),x(at,{key:1,onClick:P},{default:a(()=>[ct("\u9009\u62E9\u65E5\u671F")]),_:1})):(m(),y("div",M,[e(rt,{modelValue:t(r).orderTime,"onUpdate:modelValue":l[2]||(l[2]=c=>t(r).orderTime=c),"value-format":"YYYY-MM-DD",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1"),new Date("1")],onChange:Z},null,8,["modelValue","default-time"])])),e(et,{show:t(r).mobileOrderTimeShow,"onUpdate:show":l[3]||(l[3]=c=>t(r).mobileOrderTimeShow=c),type:"range","min-date":t(X),onConfirm:$},null,8,["show","min-date"])])]),default:a(()=>[e(o,{loading:t(u),animated:""},{default:a(()=>[e(V,null,{default:a(()=>[e(n,null,{default:a(()=>[e(o,{loading:t(u),animated:""},{default:a(()=>[e(_t,{options:t(J),height:250,onChartInit:W},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})):g("",!0)]),_:1}),e(Mt,{ref_key:"spuFormRef",ref:q},null,512)],64)}}}),[["__scopeId","data-v-5303987b"]])});export{vr as __tla,L as default};
|