From 87daa2863c084d47a760b727599cce62522abe1f Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 12 Jul 2024 11:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{authCode-C8sYYjUN.js => authCode-BMBF_Y6x.js} | 2 +- .../{axiosAPI-XZKFUjoi.js => axiosAPI-B_pgHZLY.js} | 2 +- build/assets/{index-CmxzD3CZ.js => index-5M1YyCxt.js} | 10 +++++----- build/assets/{index-qH_tZlHY.js => index-9KTiHlqm.js} | 2 +- build/assets/{index-D1TivdSk.js => index-BR8Xg1iO.js} | 2 +- build/assets/{index-sc4OLLDO.js => index-B_NPvce7.js} | 2 +- build/assets/{index-Cndx3WEI.js => index-BdSiZSDt.js} | 2 +- .../assets/{index-gqz6nr-u.css => index-Bl7sBKmH.css} | 2 +- build/assets/{index-CKEx9ISi.js => index-CLnm6U02.js} | 2 +- build/assets/{index-CMCUKE4O.js => index-CPkn5Yxs.js} | 2 +- build/assets/{index-rbnjTq1H.js => index-DEAt-9g0.js} | 2 +- build/assets/{index-DCk_Y_Qh.js => index-DKYLUh5I.js} | 2 +- build/assets/{index-CCL_aieW.js => index-D_5muR1B.js} | 6 +++--- build/assets/{index-BT4iX4wE.js => index-NDrKCyYC.js} | 2 +- build/assets/{index-Bo-OgYgJ.js => index-Y-zzZTgR.js} | 2 +- .../{padding-CGiyqEPU.js => padding-DD0QsmkS.js} | 2 +- build/assets/{pay-H92PK2lK.js => pay-CHuMd-xH.js} | 2 +- build/assets/{shop-DO-HIKTR.js => shop-NV06cTZv.js} | 2 +- build/assets/{store-BNm3g_zr.js => store-SrwX7Uca.js} | 2 +- build/assets/{test-CVeEG6NU.js => test-B4kXEuqA.js} | 2 +- build/assets/{user-AxtDYzrO.js => user-WwUaLh3a.js} | 2 +- build/index.html | 2 +- 22 files changed, 28 insertions(+), 28 deletions(-) rename build/assets/{authCode-C8sYYjUN.js => authCode-BMBF_Y6x.js} (93%) rename build/assets/{axiosAPI-XZKFUjoi.js => axiosAPI-B_pgHZLY.js} (93%) rename build/assets/{index-CmxzD3CZ.js => index-5M1YyCxt.js} (63%) rename build/assets/{index-qH_tZlHY.js => index-9KTiHlqm.js} (94%) rename build/assets/{index-D1TivdSk.js => index-BR8Xg1iO.js} (98%) rename build/assets/{index-sc4OLLDO.js => index-B_NPvce7.js} (98%) rename build/assets/{index-Cndx3WEI.js => index-BdSiZSDt.js} (84%) rename build/assets/{index-gqz6nr-u.css => index-Bl7sBKmH.css} (84%) rename build/assets/{index-CKEx9ISi.js => index-CLnm6U02.js} (98%) rename build/assets/{index-CMCUKE4O.js => index-CPkn5Yxs.js} (96%) rename build/assets/{index-rbnjTq1H.js => index-DEAt-9g0.js} (96%) rename build/assets/{index-DCk_Y_Qh.js => index-DKYLUh5I.js} (98%) rename build/assets/{index-CCL_aieW.js => index-D_5muR1B.js} (99%) rename build/assets/{index-BT4iX4wE.js => index-NDrKCyYC.js} (98%) rename build/assets/{index-Bo-OgYgJ.js => index-Y-zzZTgR.js} (99%) rename build/assets/{padding-CGiyqEPU.js => padding-DD0QsmkS.js} (65%) rename build/assets/{pay-H92PK2lK.js => pay-CHuMd-xH.js} (98%) rename build/assets/{shop-DO-HIKTR.js => shop-NV06cTZv.js} (73%) rename build/assets/{store-BNm3g_zr.js => store-SrwX7Uca.js} (94%) rename build/assets/{test-CVeEG6NU.js => test-B4kXEuqA.js} (99%) rename build/assets/{user-AxtDYzrO.js => user-WwUaLh3a.js} (91%) diff --git a/build/assets/authCode-C8sYYjUN.js b/build/assets/authCode-BMBF_Y6x.js similarity index 93% rename from build/assets/authCode-C8sYYjUN.js rename to build/assets/authCode-BMBF_Y6x.js index 564ecc4..c46fee5 100644 --- a/build/assets/authCode-C8sYYjUN.js +++ b/build/assets/authCode-BMBF_Y6x.js @@ -1 +1 @@ -import{r as o,b as c,c as m,d as y,w as p,g as v,t as f,N as x}from"./index-CCL_aieW.js";const g={__name:"authCode",props:{type:{type:String,default:"primary"},start:{type:Boolean,default:!0},time:{type:Number,default:60},text:{type:String,default:"发送验证码"},timeText:{type:String,default:"秒重新获取"},width:{type:String,default:"100px"},disabled:{type:Boolean,default:!1}},emits:["sendCode"],setup(t,{expose:s,emit:r}){const l=t,u=r,i=()=>{u("sendCode"),l.start&&n()},e=o(0),a=o(null),n=()=>{e.value=l.time,a.value=setInterval(()=>{e.value--,e.value<=0&&(clearInterval(a.value),e.value=0)},1e3)};return s({startCountDown:n,resetDown:()=>{clearInterval(a.value),e.value=0}}),(b,C)=>{const d=c("el-button");return m(),y(d,{type:t.type,style:x({width:t.width}),onClick:i,disabled:e.value>0||t.disabled},{default:p(()=>[v(f(e.value>0?`${e.value}${t.timeText}`:t.text),1)]),_:1},8,["type","style","disabled"])}}};export{g as _}; +import{r as o,b as c,c as m,d as y,w as p,g as v,t as f,N as x}from"./index-D_5muR1B.js";const g={__name:"authCode",props:{type:{type:String,default:"primary"},start:{type:Boolean,default:!0},time:{type:Number,default:60},text:{type:String,default:"发送验证码"},timeText:{type:String,default:"秒重新获取"},width:{type:String,default:"100px"},disabled:{type:Boolean,default:!1}},emits:["sendCode"],setup(t,{expose:s,emit:r}){const l=t,u=r,i=()=>{u("sendCode"),l.start&&n()},e=o(0),a=o(null),n=()=>{e.value=l.time,a.value=setInterval(()=>{e.value--,e.value<=0&&(clearInterval(a.value),e.value=0)},1e3)};return s({startCountDown:n,resetDown:()=>{clearInterval(a.value),e.value=0}}),(b,C)=>{const d=c("el-button");return m(),y(d,{type:t.type,style:x({width:t.width}),onClick:i,disabled:e.value>0||t.disabled},{default:p(()=>[v(f(e.value>0?`${e.value}${t.timeText}`:t.text),1)]),_:1},8,["type","style","disabled"])}}};export{g as _}; diff --git a/build/assets/axiosAPI-XZKFUjoi.js b/build/assets/axiosAPI-B_pgHZLY.js similarity index 93% rename from build/assets/axiosAPI-XZKFUjoi.js rename to build/assets/axiosAPI-B_pgHZLY.js index 7798175..06d5e0e 100644 --- a/build/assets/axiosAPI-XZKFUjoi.js +++ b/build/assets/axiosAPI-B_pgHZLY.js @@ -1 +1 @@ -import{O as o,P as s,E as r,u as d,Q as g}from"./index-CCL_aieW.js";const m=o.create({baseURL:s.api,timeout:6e4});m.interceptors.request.use(t=>{const a=localStorage.getItem("Token");return a&&(t.headers.token=a),t},t=>(console.error(t),Promise.reject(t)));m.interceptors.response.use(t=>{var a;if(t.data.code===-1&&(t.data.msg=="登录过期"||t.data.msg=="登录超时,请重新登录"))throw r({message:t.data.msg,type:"error"}),setTimeout(()=>{const e=d();e.setUserInfo({}),e.setToken(""),g.push("/login")},500),new Error(t.data.msg);if(t.data.code===400)throw r({message:t.data.msg,type:"error"}),new Error(t.data.msg);if(t.data.show&&r({message:t.data.msg,type:"error"}),t.data.code===500)throw t.data.msg=JSON.parse(t.data.msg),r({message:((a=t.data.msg)==null?void 0:a.msg)||t.data.msg,type:"error"}),new Error(t.data.msg);return t.data.code===0?Promise.reject(t.data):t.data},t=>{var a,e;return console.error(t),r({message:((e=(a=t.response)==null?void 0:a.data)==null?void 0:e.msg)||t,type:"error"}),Promise.reject(t)});export{m as r}; +import{O as o,P as s,E as r,u as d,Q as g}from"./index-D_5muR1B.js";const m=o.create({baseURL:s.api,timeout:6e4});m.interceptors.request.use(t=>{const a=localStorage.getItem("Token");return a&&(t.headers.token=a),t},t=>(console.error(t),Promise.reject(t)));m.interceptors.response.use(t=>{var a;if(t.data.code===-1&&(t.data.msg=="登录过期"||t.data.msg=="登录超时,请重新登录"))throw r({message:t.data.msg,type:"error"}),setTimeout(()=>{const e=d();e.setUserInfo({}),e.setToken(""),g.push("/login")},500),new Error(t.data.msg);if(t.data.code===400)throw r({message:t.data.msg,type:"error"}),new Error(t.data.msg);if(t.data.show&&r({message:t.data.msg,type:"error"}),t.data.code===500)throw t.data.msg=JSON.parse(t.data.msg),r({message:((a=t.data.msg)==null?void 0:a.msg)||t.data.msg,type:"error"}),new Error(t.data.msg);return t.data.code===0?Promise.reject(t.data):t.data},t=>{var a,e;return console.error(t),r({message:((e=(a=t.response)==null?void 0:a.data)==null?void 0:e.msg)||t,type:"error"}),Promise.reject(t)});export{m as r}; diff --git a/build/assets/index-CmxzD3CZ.js b/build/assets/index-5M1YyCxt.js similarity index 63% rename from build/assets/index-CmxzD3CZ.js rename to build/assets/index-5M1YyCxt.js index 323c857..6d2b1f7 100644 --- a/build/assets/index-CmxzD3CZ.js +++ b/build/assets/index-5M1YyCxt.js @@ -1,13 +1,13 @@ -var Np=Object.defineProperty;var Gp=($,x,o)=>x in $?Np($,x,{enumerable:!0,configurable:!0,writable:!0,value:o}):$[x]=o;var au=($,x,o)=>(Gp($,typeof x!="symbol"?x+"":x,o),o);import{c as Kp,a as Hp,b as Xo,s as zp,o as kp}from"./store-BNm3g_zr.js";import{_ as ct,r as R,o as Dt,m as te,a as Nt,b as j,c as N,d as Se,w as hn,e as v,f as M,g as un,t as K,n as _u,E as ke,u as Mr,h as Ft,i as Jo,j as du,k as nn,F as Ut,l as Mt,p as fe,q as pu,s as gu,v as Wt,x as qp,y as $r,z as Wr,A as Vp,B as at,C as Br,D as Zp,G as Yp,H as Xp}from"./index-CCL_aieW.js";import{u as Jp}from"./user-AxtDYzrO.js";import"./moment-Cl4UOzQZ.js";import{p as Yo}from"./padding-CGiyqEPU.js";import"./axiosAPI-XZKFUjoi.js";import{m as cu,s as Qp}from"./shop-DO-HIKTR.js";import{p as jp}from"./pay-H92PK2lK.js";import"./authCode-C8sYYjUN.js";/* empty css */const ng={class:"price"},eg={class:"flex"},tg={style:{margin:"0.625rem","padding-bottom":"40px"}},rg={style:{color:"#f5222d","font-weight":"bold","margin-left":"1rem"}},ig={class:"dialog-footer"},ug={__name:"price",emits:["changeAllPrice"],setup($,{expose:x,emit:o}){const E=R(!1),q=R(null),J=R(0),A=(H=!0,w=0)=>{X.value.nowPrice="",X.value.percentage="",E.value=H,J.value=w,_u(()=>{setTimeout(()=>{var tn;(tn=q.value)==null||tn.focus()},150)})},X=R({nowPrice:"",percentage:""}),dn=H=>{X.value.percentage=(H/J.value*100).toFixed(2)},ln=H=>{X.value.nowPrice=(J.value*H/100).toFixed(2)},en=o,B=()=>{if(X.value.percentage>100)return X.value.nowPrice="",X.value.percentage="",ke.error("改价金额不能大于当前订单金额");if(X.value.nowPrice<=0)return X.value.nowPrice="",X.value.percentage="",ke.error("金额不能小于0");en("changeAllPrice",X.value.nowPrice)};x({show:A,dialogVisible:E});const Cn=()=>{E.value&&B()};return Dt(()=>{te.on("enter",Cn)}),Nt(()=>{te.off("enter",Cn)}),(H,w)=>{const tn=j("el-input"),F=j("el-button"),V=j("el-dialog");return N(),Se(V,{modelValue:E.value,"onUpdate:modelValue":w[2]||(w[2]=fn=>E.value=fn),title:"订单改价",width:"650"},{footer:hn(()=>[v("div",ig,[M(F,{class:"ok-btn",type:"primary",onClick:B},{default:hn(()=>[un(" 确定 (Enter) ")]),_:1})])]),default:hn(()=>[v("div",ng,[v("div",eg,[M(tn,{ref_key:"priceRef",ref:q,style:{flex:"3",margin:"0.625rem",height:"2.5rem"},modelValue:X.value.nowPrice,"onUpdate:modelValue":w[0]||(w[0]=fn=>X.value.nowPrice=fn),type:"number",placeholder:"请输入改价后的价格",onInput:dn},{suffix:hn(()=>[un("元")]),_:1},8,["modelValue"]),M(tn,{style:{flex:"2",margin:"0.625rem",height:"2.5rem"},modelValue:X.value.percentage,"onUpdate:modelValue":w[1]||(w[1]=fn=>X.value.percentage=fn),type:"number",placeholder:"请输入比例",onInput:ln},{suffix:hn(()=>[un("%")]),_:1},8,["modelValue"])]),v("div",tg,[un(" 改价后金额: "),v("span",rg,"¥"+K(X.value.nowPrice||J.value||" - - "),1)])])]),_:1},8,["modelValue"])}}},sg=ct(ug,[["__scopeId","data-v-924edcc0"]]),og={class:"check-user-list"},lg={class:"header-input"},fg={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},ag=["onClick"],cg={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},hg={class:"top"},_g={class:"bold"},dg={class:"flex-between"},pg={class:"mr-2"},gg={class:"bottom flex",style:{"justify-content":"space-between"}},vg={class:"red"},mg={class:"red"},wg={class:"red"},yg={key:0,class:"load-end"},xg={key:1,class:"load-end"},Ag={__name:"userList",emits:["setUser"],setup($,{expose:x,emit:o}){Mr();const E=R(!1),q=R({page_no:1,page_size:20,mobile:""}),J=o,A=R(!1),X=R(0),dn=R(!1),ln=R([]),en=(H=!1)=>{if(H)q.value.page_no=1;else if(dn.value||A.value)return;A.value=!0,Jp(q.value).then(w=>{H?ln.value=w.data.lists:ln.value=[...ln.value,...w.data.lists],w.data.lists.length{dn.value=!0,A.value=!1})},B=(H,w)=>{J("setUser",H),E.value=!1};return x({open:(H=null)=>{H||(q.value.mobile=""),E.value=!0,en(!0)}}),(H,w)=>{const tn=j("el-button"),F=j("el-input"),V=j("el-avatar"),fn=j("el-tag"),an=j("el-dialog"),sn=Ft("loading"),cn=Ft("infinite-scroll");return N(),Se(an,{modelValue:E.value,"onUpdate:modelValue":w[4]||(w[4]=Z=>E.value=Z),title:"选择用户",width:"800"},{default:hn(()=>[v("div",og,[v("div",lg,[M(F,{modelValue:q.value.mobile,"onUpdate:modelValue":w[1]||(w[1]=Z=>q.value.mobile=Z),placeholder:"搜索手机号/ID",onKeydown:w[2]||(w[2]=Jo(Z=>en(!0),["enter"])),onClear:w[3]||(w[3]=Z=>en(!0)),clearable:""},{append:hn(()=>[M(tn,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:w[0]||(w[0]=Z=>en(!0))},{default:hn(()=>[un("搜索")]),_:1})]),_:1},8,["modelValue"])]),du((N(),nn("div",fg,[(N(!0),nn(Ut,null,Mt(ln.value,(Z,T)=>(N(),nn("div",{class:"item",key:T,onClick:vn=>B(Z,T)},[M(V,{class:"avatar",src:Z.avatar},null,8,["src"]),v("div",cg,[v("div",hg,[v("div",null,[v("span",_g,K(Z.nickname),1),v("span",null,K(" (ID:"+Z.id+")"),1)]),v("div",dg,[v("div",pg,"手机号: "+K(Z.mobile||Z.account),1),Z.user_ship==0?(N(),Se(fn,{key:0,type:"primary"},{default:hn(()=>[un(K(Z.user_ship_name),1)]),_:2},1024)):(N(),Se(fn,{key:1,type:"success"},{default:hn(()=>[un(K(Z.user_ship_name),1)]),_:2},1024))])]),v("div",gg,[v("div",null,[un("采购款: "),v("span",vg,K(Z.purchase_funds),1)]),v("div",null,[un("礼品券: "),v("span",mg,K(Z.integral),1)]),v("div",null,[un("余额: "),v("span",wg,K(Z.now_money),1)])])])],8,ag))),128)),dn.value?(N(),nn("div",yg,"没有更多了")):fe("",!0),A.value?(N(),nn("div",xg,"加载中...")):fe("",!0)])),[[sn,A.value],[cn,en]])])]),_:1},8,["modelValue"])}}},Ig=ct(Ag,[["__scopeId","data-v-7ac34513"]]),Cg=$=>(pu("data-v-99f6f26d"),$=$(),gu(),$),Lg={class:"my-order"},Sg={class:"user-nav"},Rg={class:"user-info"},Eg={key:0,class:"info"},bg={class:"flex-bewteen"},Tg={class:"flex-bewteen",style:{"align-items":"flex-start"}},Og={class:"user-money"},Pg={style:{"margin-right":"0.5rem"}},$g={style:{color:"#f70"}},Bg={style:{"margin-right":"0.5rem"}},Wg={style:{color:"#f70"}},Fg={style:{color:"#f70"}},Ug={key:1,class:"info",style:{"align-items":"center",display:"flex","justify-content":"space-between"}},Mg={class:"flex-bewteen",style:{width:"100%"}},Dg=Cg(()=>v("div",{style:{"font-size":"1.2rem"}},"游客",-1)),Ng={class:"header-nav"},Gg={class:"nav-item"},Kg={class:"order-list"},Hg={class:"order-item-info"},zg={class:"order-item-title"},kg={class:"title"},qg=["onClick"],Vg={class:"order-item-sku"},Zg={class:"order-item-price"},Yg={class:"order-footer"},Xg={class:"order-total"},Jg={class:"price",style:{"flex-direction":"column","align-items":"flex-start"}},Qg={class:"total-item",style:{"flex-shrink":"0"}},jg={style:{"font-size":"1.4rem"}},nv={key:0,class:"total-item",style:{"padding-right":"0","line-height":"0.8rem"}},ev={style:{"font-size":"0.8rem"}},tv={class:"update-price"},rv={class:"order-btn"},iv={__name:"order",emits:["goPay","editAttr","getStoreList"],setup($,{expose:x,emit:o}){const E=R([]),q=R(0),J=R(0),A=R(0);Mr();const X=R(null),dn=()=>{let O=[];E.value.map(W=>{O.push(W.id)}),O.length!=0&&en(O)},ln=O=>{E.value=E.value.filter(W=>W.id!=O),en([O])},en=O=>{Kp({id:O}).then(W=>{w()})},B=R({uid:""}),Cn=O=>{B.value=O,B.value.uid=O.id,w(),tn("getStoreList",{uid:O.id},!0)},H=R({}),w=()=>{q.value=0,J.value=0,A.value=0,Hp({uid:B.value.uid}).then(O=>{H.value=O.data.extend,E.value=O.data.lists||[]})};w();const tn=o,F=()=>{tn("goPay")},V=(O,W)=>{Xo({product_id:O.product_id,cart_num:O.cart_num}).then(Tn=>{w()}).catch(Tn=>{var Bn;let On=(Bn=Tn==null?void 0:Tn.msg)==null?void 0:Bn.match(/\b\d+(\.\d+)?\b/);On?O.cart_num=+On[0]:O.cart_num=1})},fn=O=>{A.value=J.value-O,q.value=+O,_u(()=>{setTimeout(()=>{sn(!1)},150)})};R(0);const an=R(null),sn=(O=!0)=>{an.value.show(O,J.value)},cn=R(!1);x({getList:w,resetView:()=>{cn.value=!1,w()},list:E,discounts:A,allPrice:q,userInfo:B,is_storage:cn});const T=()=>{an.value.dialogVisible?an.value.dialogVisible=!1:sn()},vn=()=>{E.value.length>0&&dn()};return Dt(()=>{te.on("insert",T),te.on("delete",vn)}),Nt(()=>{te.off("insert",T),te.off("delete",vn)}),(O,W)=>{const Tn=j("el-avatar"),On=j("ArrowRight"),Bn=j("el-icon"),ae=j("el-button"),qe=j("RefreshLeft"),Nr=j("Delete"),pe=j("el-empty"),ce=j("el-image"),Gr=j("el-input-number"),Ve=j("el-switch");return N(),nn("div",Lg,[v("div",Sg,[v("div",Rg,[M(Tn,{class:"avatar",src:B.value.avatar},null,8,["src"]),B.value.uid?(N(),nn("div",Eg,[v("div",bg,[v("div",null,"手机号: "+K(B.value.mobile||B.value.account),1),M(ae,{type:"primary",link:"",class:"change-user",onClick:W[0]||(W[0]=pn=>X.value.open(B.value.uid))},{default:hn(()=>[un("切换用户"),M(Bn,null,{default:hn(()=>[M(On)]),_:1})]),_:1})]),v("div",Tg,[v("div",Og,[v("div",Pg,[un("采购款: "),v("span",$g,K(B.value.purchase_funds),1)]),v("div",Bg,[un("礼品券: "),v("span",Wg,K(B.value.integral),1)]),v("div",null,[un("余额: "),v("span",Fg,K(B.value.now_money),1)])]),M(ae,{style:{"margin-top":"0.2rem"},link:"",onClick:W[1]||(W[1]=pn=>Cn({id:""}))},{default:hn(()=>[un(" 重置"),M(Bn,null,{default:hn(()=>[M(qe)]),_:1})]),_:1})])])):(N(),nn("div",Ug,[v("div",Mg,[Dg,M(ae,{type:"primary",link:"",class:"change-user",onClick:W[2]||(W[2]=pn=>X.value.open())},{default:hn(()=>[un("切换用户"),M(Bn,null,{default:hn(()=>[M(On)]),_:1})]),_:1})])]))]),M(Ig,{ref_key:"userListRef",ref:X,onSetUser:Cn},null,512)]),v("div",Ng,[v("div",Gg,[un(" 已选购 "),v("span",null,K(E.value.length),1),un(" 款 ")]),v("div",{class:"nav-item-clear",onClick:dn},[M(Bn,null,{default:hn(()=>[M(Nr)]),_:1}),un("清空 (Delete) ")])]),v("div",Kg,[E.value.length==0?(N(),Se(pe,{key:0,description:"请点击右侧添加商品"})):(N(!0),nn(Ut,{key:1},Mt(E.value,(pn,Kr)=>(N(),nn("div",{class:"order-item",key:Kr},[M(ce,{loading:"lazy",class:"order-item-img",src:pn.image},null,8,["src"]),v("div",Hg,[v("div",zg,[v("div",kg,K(pn.store_name),1),v("div",{class:"delete",onClick:ht=>ln(pn.id)},"删除",8,qg)]),v("div",Vg,[v("span",null,K(pn.unit_name),1)]),v("div",Zg,[v("div",null,[un(" ¥"),v("span",null,K(pn.price),1)]),v("div",null,[M(Gr,{modelValue:pn.cart_num,"onUpdate:modelValue":ht=>pn.cart_num=ht,min:+pn.batch>0?+pn.batch:1,step:1,"step-strictly":"",onChange:ht=>V(pn)},null,8,["modelValue","onUpdate:modelValue","min","onChange"])])])])]))),128))]),v("div",Yg,[v("div",Xg,[v("div",Jg,[v("div",Qg,[un(" 合计: "),v("span",null,[un("¥"),v("span",jg,K(H.value.pay_price||"0.00"),1)])]),H.value.msg?(N(),nn("div",nv,[v("span",ev,K(H.value.msg),1)])):fe("",!0)]),v("div",tv,[M(Ve,{modelValue:cn.value,"onUpdate:modelValue":W[3]||(W[3]=pn=>cn.value=pn),size:"large","inline-prompt":"","active-text":"存货","inactive-text":"不存"},null,8,["modelValue"])])]),v("div",rv,[M(ae,{class:"btn",type:"primary",onClick:F,disabled:E.value.length==0},{default:hn(()=>[un(K("立即结账 (F9)"))]),_:1},8,["disabled"])])]),M(sg,{ref_key:"priceRef",ref:an,onChangeAllPrice:fn},null,512)])}}},uv=ct(iv,[["__scopeId","data-v-99f6f26d"]]);var Fr={exports:{}};/** +var Np=Object.defineProperty;var Gp=(B,x,o)=>x in B?Np(B,x,{enumerable:!0,configurable:!0,writable:!0,value:o}):B[x]=o;var au=(B,x,o)=>(Gp(B,typeof x!="symbol"?x+"":x,o),o);import{c as Kp,a as Hp,b as Xo,s as zp,o as kp}from"./store-SrwX7Uca.js";import{_ as ct,r as R,o as Dt,m as re,a as Nt,b as nn,c as D,d as Se,w as hn,e as v,f as M,g as un,t as G,n as _u,E as ke,u as Mr,h as Ft,i as Jo,j as du,k as J,F as Ut,l as Mt,p as te,q as pu,s as gu,v as Wt,x as qp,y as $r,z as Wr,A as Vp,B as at,C as Br,D as Zp,G as Yp,H as Xp}from"./index-D_5muR1B.js";import{u as Jp}from"./user-WwUaLh3a.js";import"./moment-Cl4UOzQZ.js";import{p as Yo}from"./padding-DD0QsmkS.js";import"./axiosAPI-B_pgHZLY.js";import{m as cu,s as Qp}from"./shop-NV06cTZv.js";import{p as jp}from"./pay-CHuMd-xH.js";import"./authCode-BMBF_Y6x.js";/* empty css */const ng={class:"price"},eg={class:"flex"},tg={style:{margin:"0.625rem","padding-bottom":"40px"}},rg={style:{color:"#f5222d","font-weight":"bold","margin-left":"1rem"}},ig={class:"dialog-footer"},ug={__name:"price",emits:["changeAllPrice"],setup(B,{expose:x,emit:o}){const E=R(!1),q=R(null),Q=R(0),A=(H=!0,w=0)=>{X.value.nowPrice="",X.value.percentage="",E.value=H,Q.value=w,_u(()=>{setTimeout(()=>{var tn;(tn=q.value)==null||tn.focus()},150)})},X=R({nowPrice:"",percentage:""}),dn=H=>{X.value.percentage=(H/Q.value*100).toFixed(2)},ln=H=>{X.value.nowPrice=(Q.value*H/100).toFixed(2)},en=o,W=()=>{if(X.value.percentage>100)return X.value.nowPrice="",X.value.percentage="",ke.error("改价金额不能大于当前订单金额");if(X.value.nowPrice<=0)return X.value.nowPrice="",X.value.percentage="",ke.error("金额不能小于0");en("changeAllPrice",X.value.nowPrice)};x({show:A,dialogVisible:E});const Cn=()=>{E.value&&W()};return Dt(()=>{re.on("enter",Cn)}),Nt(()=>{re.off("enter",Cn)}),(H,w)=>{const tn=nn("el-input"),F=nn("el-button"),V=nn("el-dialog");return D(),Se(V,{modelValue:E.value,"onUpdate:modelValue":w[2]||(w[2]=fn=>E.value=fn),title:"订单改价",width:"650"},{footer:hn(()=>[v("div",ig,[M(F,{class:"ok-btn",type:"primary",onClick:W},{default:hn(()=>[un(" 确定 (Enter) ")]),_:1})])]),default:hn(()=>[v("div",ng,[v("div",eg,[M(tn,{ref_key:"priceRef",ref:q,style:{flex:"3",margin:"0.625rem",height:"2.5rem"},modelValue:X.value.nowPrice,"onUpdate:modelValue":w[0]||(w[0]=fn=>X.value.nowPrice=fn),type:"number",placeholder:"请输入改价后的价格",onInput:dn},{suffix:hn(()=>[un("元")]),_:1},8,["modelValue"]),M(tn,{style:{flex:"2",margin:"0.625rem",height:"2.5rem"},modelValue:X.value.percentage,"onUpdate:modelValue":w[1]||(w[1]=fn=>X.value.percentage=fn),type:"number",placeholder:"请输入比例",onInput:ln},{suffix:hn(()=>[un("%")]),_:1},8,["modelValue"])]),v("div",tg,[un(" 改价后金额: "),v("span",rg,"¥"+G(X.value.nowPrice||Q.value||" - - "),1)])])]),_:1},8,["modelValue"])}}},sg=ct(ug,[["__scopeId","data-v-924edcc0"]]),og={class:"check-user-list"},lg={class:"header-input"},fg={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},ag=["onClick"],cg={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},hg={class:"top"},_g={class:"bold"},dg={class:"flex-between"},pg={class:"mr-2"},gg={class:"bottom flex",style:{"justify-content":"space-between"}},vg={class:"red"},mg={class:"red"},wg={class:"red"},yg={key:0,class:"load-end"},xg={key:1,class:"load-end"},Ag={__name:"userList",emits:["setUser"],setup(B,{expose:x,emit:o}){Mr();const E=R(!1),q=R({page_no:1,page_size:20,mobile:""}),Q=o,A=R(!1),X=R(0),dn=R(!1),ln=R([]),en=(H=!1)=>{if(H)q.value.page_no=1;else if(dn.value||A.value)return;A.value=!0,Jp(q.value).then(w=>{H?ln.value=w.data.lists:ln.value=[...ln.value,...w.data.lists],w.data.lists.length{dn.value=!0,A.value=!1})},W=(H,w)=>{Q("setUser",H),E.value=!1};return x({open:(H=null)=>{H||(q.value.mobile=""),E.value=!0,en(!0)}}),(H,w)=>{const tn=nn("el-button"),F=nn("el-input"),V=nn("el-avatar"),fn=nn("el-tag"),an=nn("el-dialog"),sn=Ft("loading"),cn=Ft("infinite-scroll");return D(),Se(an,{modelValue:E.value,"onUpdate:modelValue":w[4]||(w[4]=Z=>E.value=Z),title:"选择用户",width:"800"},{default:hn(()=>[v("div",og,[v("div",lg,[M(F,{modelValue:q.value.mobile,"onUpdate:modelValue":w[1]||(w[1]=Z=>q.value.mobile=Z),placeholder:"搜索手机号/ID",onKeydown:w[2]||(w[2]=Jo(Z=>en(!0),["enter"])),onClear:w[3]||(w[3]=Z=>en(!0)),clearable:""},{append:hn(()=>[M(tn,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:w[0]||(w[0]=Z=>en(!0))},{default:hn(()=>[un("搜索")]),_:1})]),_:1},8,["modelValue"])]),du((D(),J("div",fg,[(D(!0),J(Ut,null,Mt(ln.value,(Z,O)=>(D(),J("div",{class:"item",key:O,onClick:vn=>W(Z,O)},[M(V,{class:"avatar",src:Z.avatar},null,8,["src"]),v("div",cg,[v("div",hg,[v("div",null,[v("span",_g,G(Z.nickname),1),v("span",null,G(" (ID:"+Z.id+")"),1)]),v("div",dg,[v("div",pg,"手机号: "+G(Z.mobile||Z.account),1),Z.user_ship==0?(D(),Se(fn,{key:0,type:"primary"},{default:hn(()=>[un(G(Z.user_ship_name),1)]),_:2},1024)):(D(),Se(fn,{key:1,type:"success"},{default:hn(()=>[un(G(Z.user_ship_name),1)]),_:2},1024))])]),v("div",gg,[v("div",null,[un("采购款: "),v("span",vg,G(Z.purchase_funds),1)]),v("div",null,[un("礼品券: "),v("span",mg,G(Z.integral),1)]),v("div",null,[un("余额: "),v("span",wg,G(Z.now_money),1)])])])],8,ag))),128)),dn.value?(D(),J("div",yg,"没有更多了")):te("",!0),A.value?(D(),J("div",xg,"加载中...")):te("",!0)])),[[sn,A.value],[cn,en]])])]),_:1},8,["modelValue"])}}},Ig=ct(Ag,[["__scopeId","data-v-7ac34513"]]),Cg=B=>(pu("data-v-99f6f26d"),B=B(),gu(),B),Lg={class:"my-order"},Sg={class:"user-nav"},Rg={class:"user-info"},Eg={key:0,class:"info"},bg={class:"flex-bewteen"},Tg={class:"flex-bewteen",style:{"align-items":"flex-start"}},Og={class:"user-money"},Pg={style:{"margin-right":"0.5rem"}},$g={style:{color:"#f70"}},Bg={style:{"margin-right":"0.5rem"}},Wg={style:{color:"#f70"}},Fg={style:{color:"#f70"}},Ug={key:1,class:"info",style:{"align-items":"center",display:"flex","justify-content":"space-between"}},Mg={class:"flex-bewteen",style:{width:"100%"}},Dg=Cg(()=>v("div",{style:{"font-size":"1.2rem"}},"游客",-1)),Ng={class:"header-nav"},Gg={class:"nav-item"},Kg={class:"order-list"},Hg={class:"order-item-info"},zg={class:"order-item-title"},kg={class:"title"},qg=["onClick"],Vg={class:"order-item-sku"},Zg={class:"order-item-price"},Yg={class:"order-footer"},Xg={class:"order-total"},Jg={class:"price",style:{"flex-direction":"column","align-items":"flex-start"}},Qg={class:"total-item",style:{"flex-shrink":"0"}},jg={style:{"font-size":"1.4rem"}},nv={key:0,class:"total-item",style:{"padding-right":"0","line-height":"0.8rem"}},ev={style:{"font-size":"0.8rem"}},tv={class:"update-price"},rv={class:"order-btn"},iv={__name:"order",emits:["goPay","editAttr","getStoreList"],setup(B,{expose:x,emit:o}){const E=R([]),q=R(0),Q=R(0),A=R(0);Mr();const X=R(null),dn=()=>{let P=[];E.value.map(b=>{P.push(b.id)}),P.length!=0&&en(P)},ln=P=>{E.value=E.value.filter(b=>b.id!=P),en([P])},en=P=>{Kp({id:P}).then(b=>{w()})},W=R({uid:""}),Cn=P=>{W.value=P,W.value.uid=P.id,w(),tn("getStoreList",{uid:P.id},!0)},H=R({}),w=()=>{q.value=0,Q.value=0,A.value=0,Hp({uid:W.value.uid}).then(P=>{H.value=P.data.extend,E.value=P.data.lists||[]})};w();const tn=o,F=()=>{tn("goPay")},V=(P,b)=>{Xo({product_id:P.product_id,cart_num:P.cart_num}).then(Tn=>{w()}).catch(Tn=>{var Bn;let On=(Bn=Tn==null?void 0:Tn.msg)==null?void 0:Bn.match(/\b\d+(\.\d+)?\b/);On?P.cart_num=+On[0]:P.cart_num=1})},fn=P=>{A.value=Q.value-P,q.value=+P,_u(()=>{setTimeout(()=>{sn(!1)},150)})};R(0);const an=R(null),sn=(P=!0)=>{an.value.show(P,Q.value)},cn=R(!1);x({getList:w,resetView:()=>{cn.value=!1,w()},list:E,discounts:A,allPrice:q,userInfo:W,is_storage:cn});const O=()=>{an.value.dialogVisible?an.value.dialogVisible=!1:sn()},vn=()=>{E.value.length>0&&dn()};return Dt(()=>{re.on("insert",O),re.on("delete",vn)}),Nt(()=>{re.off("insert",O),re.off("delete",vn)}),(P,b)=>{const Tn=nn("el-avatar"),On=nn("ArrowRight"),Bn=nn("el-icon"),ae=nn("el-button"),qe=nn("RefreshLeft"),Nr=nn("Delete"),pe=nn("el-empty"),ce=nn("el-image"),Gr=nn("el-input-number"),Ve=nn("el-switch");return D(),J("div",Lg,[v("div",Sg,[v("div",Rg,[M(Tn,{class:"avatar",src:W.value.avatar},null,8,["src"]),W.value.uid?(D(),J("div",Eg,[v("div",bg,[v("div",null,"手机号: "+G(W.value.mobile||W.value.account),1),M(ae,{type:"primary",link:"",class:"change-user",onClick:b[0]||(b[0]=pn=>X.value.open(W.value.uid))},{default:hn(()=>[un("切换用户"),M(Bn,null,{default:hn(()=>[M(On)]),_:1})]),_:1})]),v("div",Tg,[v("div",Og,[v("div",Pg,[un("采购款: "),v("span",$g,G(W.value.purchase_funds),1)]),v("div",Bg,[un("礼品券: "),v("span",Wg,G(W.value.integral),1)]),v("div",null,[un("余额: "),v("span",Fg,G(W.value.now_money),1)])]),M(ae,{style:{"margin-top":"0.2rem"},link:"",onClick:b[1]||(b[1]=pn=>Cn({id:""}))},{default:hn(()=>[un(" 重置"),M(Bn,null,{default:hn(()=>[M(qe)]),_:1})]),_:1})])])):(D(),J("div",Ug,[v("div",Mg,[Dg,M(ae,{type:"primary",link:"",class:"change-user",onClick:b[2]||(b[2]=pn=>X.value.open())},{default:hn(()=>[un("切换用户"),M(Bn,null,{default:hn(()=>[M(On)]),_:1})]),_:1})])]))]),M(Ig,{ref_key:"userListRef",ref:X,onSetUser:Cn},null,512)]),v("div",Ng,[v("div",Gg,[un(" 已选购 "),v("span",null,G(E.value.length),1),un(" 款 ")]),v("div",{class:"nav-item-clear",onClick:dn},[M(Bn,null,{default:hn(()=>[M(Nr)]),_:1}),un("清空 (Delete) ")])]),v("div",Kg,[E.value.length==0?(D(),Se(pe,{key:0,description:"请点击右侧添加商品"})):(D(!0),J(Ut,{key:1},Mt(E.value,(pn,Kr)=>(D(),J("div",{class:"order-item",key:Kr},[M(ce,{loading:"lazy",class:"order-item-img",src:pn.image},null,8,["src"]),v("div",Hg,[v("div",zg,[v("div",kg,G(pn.store_name),1),v("div",{class:"delete",onClick:ht=>ln(pn.id)},"删除",8,qg)]),v("div",Vg,[v("span",null,G(pn.unit_name),1)]),v("div",Zg,[v("div",null,[un(" ¥"),v("span",null,G(pn.price),1)]),v("div",null,[M(Gr,{modelValue:pn.cart_num,"onUpdate:modelValue":ht=>pn.cart_num=ht,min:+pn.batch>0?+pn.batch:1,step:1,"step-strictly":"",onChange:ht=>V(pn)},null,8,["modelValue","onUpdate:modelValue","min","onChange"])])])])]))),128))]),v("div",Yg,[v("div",Xg,[v("div",Jg,[v("div",Qg,[un(" 合计: "),v("span",null,[un("¥"),v("span",jg,G(H.value.pay_price||"0.00"),1)])]),H.value.msg?(D(),J("div",nv,[v("span",ev,G(H.value.msg),1)])):te("",!0)]),v("div",tv,[M(Ve,{modelValue:cn.value,"onUpdate:modelValue":b[3]||(b[3]=pn=>cn.value=pn),size:"large","inline-prompt":"","active-text":"存货","inactive-text":"不存"},null,8,["modelValue"])])]),v("div",rv,[M(ae,{class:"btn",type:"primary",onClick:F,disabled:E.value.length==0},{default:hn(()=>[un(G("立即结账 (F9)"))]),_:1},8,["disabled"])])]),M(sg,{ref_key:"priceRef",ref:an,onChangeAllPrice:fn},null,512)])}}},uv=ct(iv,[["__scopeId","data-v-99f6f26d"]]);var Fr={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Fr.exports;(function($,x){(function(){var o,E="4.17.21",q=200,J="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",A="Expected a function",X="Invalid `variable` option passed into `_.template`",dn="__lodash_hash_undefined__",ln=500,en="__lodash_placeholder__",B=1,Cn=2,H=4,w=1,tn=2,F=1,V=2,fn=4,an=8,sn=16,cn=32,Z=64,T=128,vn=256,O=512,W=30,Tn="...",On=800,Bn=16,ae=1,qe=2,Nr=3,pe=1/0,ce=9007199254740991,Gr=17976931348623157e292,Ve=NaN,pn=4294967295,Kr=pn-1,ht=pn>>>1,jo=[["ary",T],["bind",F],["bindKey",V],["curry",an],["curryRight",sn],["flip",O],["partial",cn],["partialRight",Z],["rearg",vn]],Ze="[object Arguments]",Gt="[object Array]",nl="[object AsyncFunction]",_t="[object Boolean]",dt="[object Date]",el="[object DOMException]",Kt="[object Error]",Ht="[object Function]",vu="[object GeneratorFunction]",re="[object Map]",pt="[object Number]",tl="[object Null]",ge="[object Object]",mu="[object Promise]",rl="[object Proxy]",gt="[object RegExp]",ie="[object Set]",vt="[object String]",zt="[object Symbol]",il="[object Undefined]",mt="[object WeakMap]",ul="[object WeakSet]",wt="[object ArrayBuffer]",Ye="[object DataView]",Hr="[object Float32Array]",zr="[object Float64Array]",kr="[object Int8Array]",qr="[object Int16Array]",Vr="[object Int32Array]",Zr="[object Uint8Array]",Yr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Jr="[object Uint32Array]",sl=/\b__p \+= '';/g,ol=/\b(__p \+=) '' \+/g,ll=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wu=/&(?:amp|lt|gt|quot|#39);/g,yu=/[&<>"']/g,fl=RegExp(wu.source),al=RegExp(yu.source),cl=/<%-([\s\S]+?)%>/g,hl=/<%([\s\S]+?)%>/g,xu=/<%=([\s\S]+?)%>/g,_l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dl=/^\w*$/,pl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qr=/[\\^$.*+?()[\]{}|]/g,gl=RegExp(Qr.source),jr=/^\s+/,vl=/\s/,ml=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wl=/\{\n\/\* \[wrapped with (.+)\] \*/,yl=/,? & /,xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Al=/[()=,{}\[\]\/\s]/,Il=/\\(\\)?/g,Cl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Au=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Sl=/^0b[01]+$/i,Rl=/^\[object .+?Constructor\]$/,El=/^0o[0-7]+$/i,bl=/^(?:0|[1-9]\d*)$/,Tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=/($^)/,Ol=/['\n\r\u2028\u2029\\]/g,qt="\\ud800-\\udfff",Pl="\\u0300-\\u036f",$l="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",Iu=Pl+$l+Bl,Cu="\\u2700-\\u27bf",Lu="a-z\\xdf-\\xf6\\xf8-\\xff",Wl="\\xac\\xb1\\xd7\\xf7",Fl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ul="\\u2000-\\u206f",Ml=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Su="A-Z\\xc0-\\xd6\\xd8-\\xde",Ru="\\ufe0e\\ufe0f",Eu=Wl+Fl+Ul+Ml,ni="['’]",Dl="["+qt+"]",bu="["+Eu+"]",Vt="["+Iu+"]",Tu="\\d+",Nl="["+Cu+"]",Ou="["+Lu+"]",Pu="[^"+qt+Eu+Tu+Cu+Lu+Su+"]",ei="\\ud83c[\\udffb-\\udfff]",Gl="(?:"+Vt+"|"+ei+")",$u="[^"+qt+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Xe="["+Su+"]",Bu="\\u200d",Wu="(?:"+Ou+"|"+Pu+")",Kl="(?:"+Xe+"|"+Pu+")",Fu="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",Uu="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",Mu=Gl+"?",Du="["+Ru+"]?",Hl="(?:"+Bu+"(?:"+[$u,ti,ri].join("|")+")"+Du+Mu+")*",zl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nu=Du+Mu+Hl,ql="(?:"+[Nl,ti,ri].join("|")+")"+Nu,Vl="(?:"+[$u+Vt+"?",Vt,ti,ri,Dl].join("|")+")",Zl=RegExp(ni,"g"),Yl=RegExp(Vt,"g"),ii=RegExp(ei+"(?="+ei+")|"+Vl+Nu,"g"),Xl=RegExp([Xe+"?"+Ou+"+"+Fu+"(?="+[bu,Xe,"$"].join("|")+")",Kl+"+"+Uu+"(?="+[bu,Xe+Wu,"$"].join("|")+")",Xe+"?"+Wu+"+"+Fu,Xe+"+"+Uu,kl,zl,Tu,ql].join("|"),"g"),Jl=RegExp("["+Bu+qt+Iu+Ru+"]"),Ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nf=-1,mn={};mn[Hr]=mn[zr]=mn[kr]=mn[qr]=mn[Vr]=mn[Zr]=mn[Yr]=mn[Xr]=mn[Jr]=!0,mn[Ze]=mn[Gt]=mn[wt]=mn[_t]=mn[Ye]=mn[dt]=mn[Kt]=mn[Ht]=mn[re]=mn[pt]=mn[ge]=mn[gt]=mn[ie]=mn[vt]=mn[mt]=!1;var gn={};gn[Ze]=gn[Gt]=gn[wt]=gn[Ye]=gn[_t]=gn[dt]=gn[Hr]=gn[zr]=gn[kr]=gn[qr]=gn[Vr]=gn[re]=gn[pt]=gn[ge]=gn[gt]=gn[ie]=gn[vt]=gn[zt]=gn[Zr]=gn[Yr]=gn[Xr]=gn[Jr]=!0,gn[Kt]=gn[Ht]=gn[mt]=!1;var ef={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tf={"&":"&","<":"<",">":">",'"':""","'":"'"},rf={"&":"&","<":"<",">":">",""":'"',"'":"'"},uf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sf=parseFloat,of=parseInt,Gu=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,lf=typeof self=="object"&&self&&self.Object===Object&&self,En=Gu||lf||Function("return this")(),ui=x&&!x.nodeType&&x,Fe=ui&&!0&&$&&!$.nodeType&&$,Ku=Fe&&Fe.exports===ui,si=Ku&&Gu.process,Zn=function(){try{var a=Fe&&Fe.require&&Fe.require("util").types;return a||si&&si.binding&&si.binding("util")}catch{}}(),Hu=Zn&&Zn.isArrayBuffer,zu=Zn&&Zn.isDate,ku=Zn&&Zn.isMap,qu=Zn&&Zn.isRegExp,Vu=Zn&&Zn.isSet,Zu=Zn&&Zn.isTypedArray;function Kn(a,_,h){switch(h.length){case 0:return a.call(_);case 1:return a.call(_,h[0]);case 2:return a.call(_,h[0],h[1]);case 3:return a.call(_,h[0],h[1],h[2])}return a.apply(_,h)}function ff(a,_,h,y){for(var b=-1,Q=a==null?0:a.length;++b-1}function oi(a,_,h){for(var y=-1,b=a==null?0:a.length;++y-1;);return h}function ts(a,_){for(var h=a.length;h--&&Je(_,a[h],0)>-1;);return h}function mf(a,_){for(var h=a.length,y=0;h--;)a[h]===_&&++y;return y}var wf=ci(ef),yf=ci(tf);function xf(a){return"\\"+uf[a]}function Af(a,_){return a==null?o:a[_]}function Qe(a){return Jl.test(a)}function If(a){return Ql.test(a)}function Cf(a){for(var _,h=[];!(_=a.next()).done;)h.push(_.value);return h}function pi(a){var _=-1,h=Array(a.size);return a.forEach(function(y,b){h[++_]=[b,y]}),h}function rs(a,_){return function(h){return a(_(h))}}function be(a,_){for(var h=-1,y=a.length,b=0,Q=[];++h-1}function ca(n,e){var t=this.__data__,r=cr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ve.prototype.clear=oa,ve.prototype.delete=la,ve.prototype.get=fa,ve.prototype.has=aa,ve.prototype.set=ca;function me(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,i,s){var l,f=e&B,c=e&Cn,d=e&H;if(t&&(l=i?t(n,r,i,s):t(n)),l!==o)return l;if(!yn(n))return n;var p=P(n);if(p){if(l=pc(n),!f)return Mn(n,l)}else{var g=$n(n),m=g==Ht||g==vu;if(We(n))return Ds(n,f);if(g==ge||g==Ze||m&&!i){if(l=c||m?{}:io(n),!f)return c?ic(n,Ra(l,n)):rc(n,ps(l,n))}else{if(!gn[g])return i?n:{};l=gc(n,g,f)}}s||(s=new se);var I=s.get(n);if(I)return I;s.set(n,l),Bo(n)?n.forEach(function(S){l.add(Qn(S,e,t,S,n,s))}):Po(n)&&n.forEach(function(S,z){l.set(z,Qn(S,e,t,z,n,s))});var L=d?c?Gi:Ni:c?Nn:Rn,D=p?o:L(n);return Yn(D||n,function(S,z){D&&(z=S,S=n[z]),St(l,z,Qn(S,e,t,z,n,s))}),l}function Ea(n){var e=Rn(n);return function(t){return gs(t,n,e)}}function gs(n,e,t){var r=t.length;if(n==null)return!r;for(n=_n(n);r--;){var i=t[r],s=e[i],l=n[i];if(l===o&&!(i in n)||!s(l))return!1}return!0}function vs(n,e,t){if(typeof n!="function")throw new Xn(A);return $t(function(){n.apply(o,t)},e)}function Rt(n,e,t,r){var i=-1,s=Zt,l=!0,f=n.length,c=[],d=e.length;if(!f)return c;t&&(e=wn(e,Hn(t))),r?(s=oi,l=!1):e.length>=q&&(s=yt,l=!1,e=new De(e));n:for(;++ii?0:i+t),r=r===o||r>i?i:U(r),r<0&&(r+=i),r=t>r?0:Fo(r);t0&&t(f)?e>1?bn(f,e-1,t,r,i):Ee(i,f):r||(i[i.length]=f)}return i}var Ai=ks(),ys=ks(!0);function he(n,e){return n&&Ai(n,e,Rn)}function Ii(n,e){return n&&ys(n,e,Rn)}function _r(n,e){return Re(e,function(t){return Ie(n[t])})}function Ge(n,e){e=$e(e,n);for(var t=0,r=e.length;n!=null&&te}function Oa(n,e){return n!=null&&on.call(n,e)}function Pa(n,e){return n!=null&&e in _n(n)}function $a(n,e,t){return n>=Pn(e,t)&&n=120&&p.length>=120)?new De(l&&p):o}p=n[0];var g=-1,m=f[0];n:for(;++g-1;)f!==n&&ir.call(f,c,1),ir.call(n,c,1);return n}function Os(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==s){var s=i;Ae(i)?ir.call(n,i,1):$i(n,i)}}return n}function Ti(n,e){return n+or(cs()*(e-n+1))}function qa(n,e,t,r){for(var i=-1,s=Sn(sr((e-n)/(t||1)),0),l=h(s);s--;)l[r?s:++i]=n,n+=t;return l}function Oi(n,e){var t="";if(!n||e<1||e>ce)return t;do e%2&&(t+=n),e=or(e/2),e&&(n+=n);while(e);return t}function G(n,e){return Zi(oo(n,e,Gn),n+"")}function Va(n){return ds(ft(n))}function Za(n,e){var t=ft(n);return Cr(t,Ne(e,0,t.length))}function Tt(n,e,t,r){if(!yn(n))return n;e=$e(e,n);for(var i=-1,s=e.length,l=s-1,f=n;f!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=h(i);++r>>1,l=n[s];l!==null&&!kn(l)&&(t?l<=e:l=q){var d=e?null:lc(n);if(d)return Xt(d);l=!1,i=yt,c=new De}else c=e?[]:f;n:for(;++r=r?n:jn(n,e,t)}var Ms=Df||function(n){return En.clearTimeout(n)};function Ds(n,e){if(e)return n.slice();var t=n.length,r=ss?ss(t):new n.constructor(t);return n.copy(r),r}function Ui(n){var e=new n.constructor(n.byteLength);return new tr(e).set(new tr(n)),e}function ja(n,e){var t=e?Ui(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function nc(n){var e=new n.constructor(n.source,Au.exec(n));return e.lastIndex=n.lastIndex,e}function ec(n){return Lt?_n(Lt.call(n)):{}}function Ns(n,e){var t=e?Ui(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function Gs(n,e){if(n!==e){var t=n!==o,r=n===null,i=n===n,s=kn(n),l=e!==o,f=e===null,c=e===e,d=kn(e);if(!f&&!d&&!s&&n>e||s&&l&&c&&!f&&!d||r&&l&&c||!t&&c||!i)return 1;if(!r&&!s&&!d&&n=f)return c;var d=t[r];return c*(d=="desc"?-1:1)}}return n.index-e.index}function Ks(n,e,t,r){for(var i=-1,s=n.length,l=t.length,f=-1,c=e.length,d=Sn(s-l,0),p=h(c+d),g=!r;++f1?t[i-1]:o,l=i>2?t[2]:o;for(s=n.length>3&&typeof s=="function"?(i--,s):o,l&&Fn(t[0],t[1],l)&&(s=i<3?o:s,i=1),e=_n(e);++r-1?i[s?e[l]:l]:o}}function Zs(n){return xe(function(e){var t=e.length,r=t,i=Jn.prototype.thru;for(n&&e.reverse();r--;){var s=e[r];if(typeof s!="function")throw new Xn(A);if(i&&!l&&Ar(s)=="wrapper")var l=new Jn([],!0)}for(r=l?r:t;++r1&&Y.reverse(),p&&cf))return!1;var d=s.get(n),p=s.get(e);if(d&&p)return d==e&&p==n;var g=-1,m=!0,I=t&tn?new De:o;for(s.set(n,e),s.set(e,n);++g1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ml,`{ + */Fr.exports;(function(B,x){(function(){var o,E="4.17.21",q=200,Q="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",A="Expected a function",X="Invalid `variable` option passed into `_.template`",dn="__lodash_hash_undefined__",ln=500,en="__lodash_placeholder__",W=1,Cn=2,H=4,w=1,tn=2,F=1,V=2,fn=4,an=8,sn=16,cn=32,Z=64,O=128,vn=256,P=512,b=30,Tn="...",On=800,Bn=16,ae=1,qe=2,Nr=3,pe=1/0,ce=9007199254740991,Gr=17976931348623157e292,Ve=NaN,pn=4294967295,Kr=pn-1,ht=pn>>>1,jo=[["ary",O],["bind",F],["bindKey",V],["curry",an],["curryRight",sn],["flip",P],["partial",cn],["partialRight",Z],["rearg",vn]],Ze="[object Arguments]",Gt="[object Array]",nl="[object AsyncFunction]",_t="[object Boolean]",dt="[object Date]",el="[object DOMException]",Kt="[object Error]",Ht="[object Function]",vu="[object GeneratorFunction]",ie="[object Map]",pt="[object Number]",tl="[object Null]",ge="[object Object]",mu="[object Promise]",rl="[object Proxy]",gt="[object RegExp]",ue="[object Set]",vt="[object String]",zt="[object Symbol]",il="[object Undefined]",mt="[object WeakMap]",ul="[object WeakSet]",wt="[object ArrayBuffer]",Ye="[object DataView]",Hr="[object Float32Array]",zr="[object Float64Array]",kr="[object Int8Array]",qr="[object Int16Array]",Vr="[object Int32Array]",Zr="[object Uint8Array]",Yr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Jr="[object Uint32Array]",sl=/\b__p \+= '';/g,ol=/\b(__p \+=) '' \+/g,ll=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wu=/&(?:amp|lt|gt|quot|#39);/g,yu=/[&<>"']/g,fl=RegExp(wu.source),al=RegExp(yu.source),cl=/<%-([\s\S]+?)%>/g,hl=/<%([\s\S]+?)%>/g,xu=/<%=([\s\S]+?)%>/g,_l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dl=/^\w*$/,pl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qr=/[\\^$.*+?()[\]{}|]/g,gl=RegExp(Qr.source),jr=/^\s+/,vl=/\s/,ml=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wl=/\{\n\/\* \[wrapped with (.+)\] \*/,yl=/,? & /,xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Al=/[()=,{}\[\]\/\s]/,Il=/\\(\\)?/g,Cl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Au=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Sl=/^0b[01]+$/i,Rl=/^\[object .+?Constructor\]$/,El=/^0o[0-7]+$/i,bl=/^(?:0|[1-9]\d*)$/,Tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=/($^)/,Ol=/['\n\r\u2028\u2029\\]/g,qt="\\ud800-\\udfff",Pl="\\u0300-\\u036f",$l="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",Iu=Pl+$l+Bl,Cu="\\u2700-\\u27bf",Lu="a-z\\xdf-\\xf6\\xf8-\\xff",Wl="\\xac\\xb1\\xd7\\xf7",Fl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ul="\\u2000-\\u206f",Ml=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Su="A-Z\\xc0-\\xd6\\xd8-\\xde",Ru="\\ufe0e\\ufe0f",Eu=Wl+Fl+Ul+Ml,ni="['’]",Dl="["+qt+"]",bu="["+Eu+"]",Vt="["+Iu+"]",Tu="\\d+",Nl="["+Cu+"]",Ou="["+Lu+"]",Pu="[^"+qt+Eu+Tu+Cu+Lu+Su+"]",ei="\\ud83c[\\udffb-\\udfff]",Gl="(?:"+Vt+"|"+ei+")",$u="[^"+qt+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Xe="["+Su+"]",Bu="\\u200d",Wu="(?:"+Ou+"|"+Pu+")",Kl="(?:"+Xe+"|"+Pu+")",Fu="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",Uu="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",Mu=Gl+"?",Du="["+Ru+"]?",Hl="(?:"+Bu+"(?:"+[$u,ti,ri].join("|")+")"+Du+Mu+")*",zl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nu=Du+Mu+Hl,ql="(?:"+[Nl,ti,ri].join("|")+")"+Nu,Vl="(?:"+[$u+Vt+"?",Vt,ti,ri,Dl].join("|")+")",Zl=RegExp(ni,"g"),Yl=RegExp(Vt,"g"),ii=RegExp(ei+"(?="+ei+")|"+Vl+Nu,"g"),Xl=RegExp([Xe+"?"+Ou+"+"+Fu+"(?="+[bu,Xe,"$"].join("|")+")",Kl+"+"+Uu+"(?="+[bu,Xe+Wu,"$"].join("|")+")",Xe+"?"+Wu+"+"+Fu,Xe+"+"+Uu,kl,zl,Tu,ql].join("|"),"g"),Jl=RegExp("["+Bu+qt+Iu+Ru+"]"),Ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nf=-1,mn={};mn[Hr]=mn[zr]=mn[kr]=mn[qr]=mn[Vr]=mn[Zr]=mn[Yr]=mn[Xr]=mn[Jr]=!0,mn[Ze]=mn[Gt]=mn[wt]=mn[_t]=mn[Ye]=mn[dt]=mn[Kt]=mn[Ht]=mn[ie]=mn[pt]=mn[ge]=mn[gt]=mn[ue]=mn[vt]=mn[mt]=!1;var gn={};gn[Ze]=gn[Gt]=gn[wt]=gn[Ye]=gn[_t]=gn[dt]=gn[Hr]=gn[zr]=gn[kr]=gn[qr]=gn[Vr]=gn[ie]=gn[pt]=gn[ge]=gn[gt]=gn[ue]=gn[vt]=gn[zt]=gn[Zr]=gn[Yr]=gn[Xr]=gn[Jr]=!0,gn[Kt]=gn[Ht]=gn[mt]=!1;var ef={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tf={"&":"&","<":"<",">":">",'"':""","'":"'"},rf={"&":"&","<":"<",">":">",""":'"',"'":"'"},uf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sf=parseFloat,of=parseInt,Gu=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,lf=typeof self=="object"&&self&&self.Object===Object&&self,En=Gu||lf||Function("return this")(),ui=x&&!x.nodeType&&x,Fe=ui&&!0&&B&&!B.nodeType&&B,Ku=Fe&&Fe.exports===ui,si=Ku&&Gu.process,Zn=function(){try{var a=Fe&&Fe.require&&Fe.require("util").types;return a||si&&si.binding&&si.binding("util")}catch{}}(),Hu=Zn&&Zn.isArrayBuffer,zu=Zn&&Zn.isDate,ku=Zn&&Zn.isMap,qu=Zn&&Zn.isRegExp,Vu=Zn&&Zn.isSet,Zu=Zn&&Zn.isTypedArray;function Kn(a,_,h){switch(h.length){case 0:return a.call(_);case 1:return a.call(_,h[0]);case 2:return a.call(_,h[0],h[1]);case 3:return a.call(_,h[0],h[1],h[2])}return a.apply(_,h)}function ff(a,_,h,y){for(var T=-1,j=a==null?0:a.length;++T-1}function oi(a,_,h){for(var y=-1,T=a==null?0:a.length;++y-1;);return h}function ts(a,_){for(var h=a.length;h--&&Je(_,a[h],0)>-1;);return h}function mf(a,_){for(var h=a.length,y=0;h--;)a[h]===_&&++y;return y}var wf=ci(ef),yf=ci(tf);function xf(a){return"\\"+uf[a]}function Af(a,_){return a==null?o:a[_]}function Qe(a){return Jl.test(a)}function If(a){return Ql.test(a)}function Cf(a){for(var _,h=[];!(_=a.next()).done;)h.push(_.value);return h}function pi(a){var _=-1,h=Array(a.size);return a.forEach(function(y,T){h[++_]=[T,y]}),h}function rs(a,_){return function(h){return a(_(h))}}function be(a,_){for(var h=-1,y=a.length,T=0,j=[];++h-1}function ca(n,e){var t=this.__data__,r=cr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ve.prototype.clear=oa,ve.prototype.delete=la,ve.prototype.get=fa,ve.prototype.has=aa,ve.prototype.set=ca;function me(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,i,s){var l,f=e&W,c=e&Cn,d=e&H;if(t&&(l=i?t(n,r,i,s):t(n)),l!==o)return l;if(!yn(n))return n;var p=$(n);if(p){if(l=pc(n),!f)return Mn(n,l)}else{var g=$n(n),m=g==Ht||g==vu;if(We(n))return Ds(n,f);if(g==ge||g==Ze||m&&!i){if(l=c||m?{}:io(n),!f)return c?ic(n,Ra(l,n)):rc(n,ps(l,n))}else{if(!gn[g])return i?n:{};l=gc(n,g,f)}}s||(s=new oe);var I=s.get(n);if(I)return I;s.set(n,l),Bo(n)?n.forEach(function(S){l.add(Qn(S,e,t,S,n,s))}):Po(n)&&n.forEach(function(S,z){l.set(z,Qn(S,e,t,z,n,s))});var L=d?c?Gi:Ni:c?Nn:Rn,N=p?o:L(n);return Yn(N||n,function(S,z){N&&(z=S,S=n[z]),St(l,z,Qn(S,e,t,z,n,s))}),l}function Ea(n){var e=Rn(n);return function(t){return gs(t,n,e)}}function gs(n,e,t){var r=t.length;if(n==null)return!r;for(n=_n(n);r--;){var i=t[r],s=e[i],l=n[i];if(l===o&&!(i in n)||!s(l))return!1}return!0}function vs(n,e,t){if(typeof n!="function")throw new Xn(A);return $t(function(){n.apply(o,t)},e)}function Rt(n,e,t,r){var i=-1,s=Zt,l=!0,f=n.length,c=[],d=e.length;if(!f)return c;t&&(e=wn(e,Hn(t))),r?(s=oi,l=!1):e.length>=q&&(s=yt,l=!1,e=new De(e));n:for(;++ii?0:i+t),r=r===o||r>i?i:U(r),r<0&&(r+=i),r=t>r?0:Fo(r);t0&&t(f)?e>1?bn(f,e-1,t,r,i):Ee(i,f):r||(i[i.length]=f)}return i}var Ai=ks(),ys=ks(!0);function he(n,e){return n&&Ai(n,e,Rn)}function Ii(n,e){return n&&ys(n,e,Rn)}function _r(n,e){return Re(e,function(t){return Ie(n[t])})}function Ge(n,e){e=$e(e,n);for(var t=0,r=e.length;n!=null&&te}function Oa(n,e){return n!=null&&on.call(n,e)}function Pa(n,e){return n!=null&&e in _n(n)}function $a(n,e,t){return n>=Pn(e,t)&&n=120&&p.length>=120)?new De(l&&p):o}p=n[0];var g=-1,m=f[0];n:for(;++g-1;)f!==n&&ir.call(f,c,1),ir.call(n,c,1);return n}function Os(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==s){var s=i;Ae(i)?ir.call(n,i,1):$i(n,i)}}return n}function Ti(n,e){return n+or(cs()*(e-n+1))}function qa(n,e,t,r){for(var i=-1,s=Sn(sr((e-n)/(t||1)),0),l=h(s);s--;)l[r?s:++i]=n,n+=t;return l}function Oi(n,e){var t="";if(!n||e<1||e>ce)return t;do e%2&&(t+=n),e=or(e/2),e&&(n+=n);while(e);return t}function K(n,e){return Zi(oo(n,e,Gn),n+"")}function Va(n){return ds(ft(n))}function Za(n,e){var t=ft(n);return Cr(t,Ne(e,0,t.length))}function Tt(n,e,t,r){if(!yn(n))return n;e=$e(e,n);for(var i=-1,s=e.length,l=s-1,f=n;f!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=h(i);++r>>1,l=n[s];l!==null&&!kn(l)&&(t?l<=e:l=q){var d=e?null:lc(n);if(d)return Xt(d);l=!1,i=yt,c=new De}else c=e?[]:f;n:for(;++r=r?n:jn(n,e,t)}var Ms=Df||function(n){return En.clearTimeout(n)};function Ds(n,e){if(e)return n.slice();var t=n.length,r=ss?ss(t):new n.constructor(t);return n.copy(r),r}function Ui(n){var e=new n.constructor(n.byteLength);return new tr(e).set(new tr(n)),e}function ja(n,e){var t=e?Ui(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function nc(n){var e=new n.constructor(n.source,Au.exec(n));return e.lastIndex=n.lastIndex,e}function ec(n){return Lt?_n(Lt.call(n)):{}}function Ns(n,e){var t=e?Ui(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function Gs(n,e){if(n!==e){var t=n!==o,r=n===null,i=n===n,s=kn(n),l=e!==o,f=e===null,c=e===e,d=kn(e);if(!f&&!d&&!s&&n>e||s&&l&&c&&!f&&!d||r&&l&&c||!t&&c||!i)return 1;if(!r&&!s&&!d&&n=f)return c;var d=t[r];return c*(d=="desc"?-1:1)}}return n.index-e.index}function Ks(n,e,t,r){for(var i=-1,s=n.length,l=t.length,f=-1,c=e.length,d=Sn(s-l,0),p=h(c+d),g=!r;++f1?t[i-1]:o,l=i>2?t[2]:o;for(s=n.length>3&&typeof s=="function"?(i--,s):o,l&&Fn(t[0],t[1],l)&&(s=i<3?o:s,i=1),e=_n(e);++r-1?i[s?e[l]:l]:o}}function Zs(n){return xe(function(e){var t=e.length,r=t,i=Jn.prototype.thru;for(n&&e.reverse();r--;){var s=e[r];if(typeof s!="function")throw new Xn(A);if(i&&!l&&Ar(s)=="wrapper")var l=new Jn([],!0)}for(r=l?r:t;++r1&&Y.reverse(),p&&cf))return!1;var d=s.get(n),p=s.get(e);if(d&&p)return d==e&&p==n;var g=-1,m=!0,I=t&tn?new De:o;for(s.set(n,e),s.set(e,n);++g1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ml,`{ /* [wrapped with `+e+`] */ -`)}function mc(n){return P(n)||ze(n)||!!(fs&&n&&n[fs])}function Ae(n,e){var t=typeof n;return e=e??ce,!!e&&(t=="number"||t!="symbol"&&bl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=On)return arguments[0]}else e=0;return n.apply(o,arguments)}}function Cr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t1?n[e-1]:o;return t=typeof t=="function"?(n.pop(),t):o,yo(n,t)});function xo(n){var e=u(n);return e.__chain__=!0,e}function bh(n,e){return e(n),n}function Lr(n,e){return e(n)}var Th=xe(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(s){return xi(s,n)};return e>1||this.__actions__.length||!(r instanceof k)||!Ae(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Lr,args:[i],thisArg:o}),new Jn(r,this.__chain__).thru(function(s){return e&&!s.length&&s.push(o),s}))});function Oh(){return xo(this)}function Ph(){return new Jn(this.value(),this.__chain__)}function $h(){this.__values__===o&&(this.__values__=Wo(this.value()));var n=this.__index__>=this.__values__.length,e=n?o:this.__values__[this.__index__++];return{done:n,value:e}}function Bh(){return this}function Wh(n){for(var e,t=this;t instanceof ar;){var r=_o(t);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Fh(){var n=this.__wrapped__;if(n instanceof k){var e=n;return this.__actions__.length&&(e=new k(this)),e=e.reverse(),e.__actions__.push({func:Lr,args:[Yi],thisArg:o}),new Jn(e,this.__chain__)}return this.thru(Yi)}function Uh(){return Fs(this.__wrapped__,this.__actions__)}var Mh=vr(function(n,e,t){on.call(n,t)?++n[t]:we(n,t,1)});function Dh(n,e,t){var r=P(n)?Yu:ba;return t&&Fn(n,e,t)&&(e=o),r(n,C(e,3))}function Nh(n,e){var t=P(n)?Re:ws;return t(n,C(e,3))}var Gh=Vs(po),Kh=Vs(go);function Hh(n,e){return bn(Sr(n,e),1)}function zh(n,e){return bn(Sr(n,e),pe)}function kh(n,e,t){return t=t===o?1:U(t),bn(Sr(n,e),t)}function Ao(n,e){var t=P(n)?Yn:Oe;return t(n,C(e,3))}function Io(n,e){var t=P(n)?af:ms;return t(n,C(e,3))}var qh=vr(function(n,e,t){on.call(n,t)?n[t].push(e):we(n,t,[e])});function Vh(n,e,t,r){n=Dn(n)?n:ft(n),t=t&&!r?U(t):0;var i=n.length;return t<0&&(t=Sn(i+t,0)),Or(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Je(n,e,t)>-1}var Zh=G(function(n,e,t){var r=-1,i=typeof e=="function",s=Dn(n)?h(n.length):[];return Oe(n,function(l){s[++r]=i?Kn(e,l,t):Et(l,e,t)}),s}),Yh=vr(function(n,e,t){we(n,t,e)});function Sr(n,e){var t=P(n)?wn:Ls;return t(n,C(e,3))}function Xh(n,e,t,r){return n==null?[]:(P(e)||(e=e==null?[]:[e]),t=r?o:t,P(t)||(t=t==null?[]:[t]),bs(n,e,t))}var Jh=vr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Qh(n,e,t){var r=P(n)?li:ju,i=arguments.length<3;return r(n,C(e,4),t,i,Oe)}function jh(n,e,t){var r=P(n)?cf:ju,i=arguments.length<3;return r(n,C(e,4),t,i,ms)}function n_(n,e){var t=P(n)?Re:ws;return t(n,br(C(e,3)))}function e_(n){var e=P(n)?ds:Va;return e(n)}function t_(n,e,t){(t?Fn(n,e,t):e===o)?e=1:e=U(e);var r=P(n)?Ca:Za;return r(n,e)}function r_(n){var e=P(n)?La:Xa;return e(n)}function i_(n){if(n==null)return 0;if(Dn(n))return Or(n)?je(n):n.length;var e=$n(n);return e==re||e==ie?n.size:Ri(n).length}function u_(n,e,t){var r=P(n)?fi:Ja;return t&&Fn(n,e,t)&&(e=o),r(n,C(e,3))}var s_=G(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Fn(n,e[0],e[1])?e=[]:t>2&&Fn(e[0],e[1],e[2])&&(e=[e[0]]),bs(n,bn(e,1),[])}),Rr=Nf||function(){return En.Date.now()};function o_(n,e){if(typeof e!="function")throw new Xn(A);return n=U(n),function(){if(--n<1)return e.apply(this,arguments)}}function Co(n,e,t){return e=t?o:e,e=n&&e==null?n.length:e,ye(n,T,o,o,o,o,e)}function Lo(n,e){var t;if(typeof e!="function")throw new Xn(A);return n=U(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=o),t}}var Ji=G(function(n,e,t){var r=F;if(t.length){var i=be(t,ot(Ji));r|=cn}return ye(n,r,e,t,i)}),So=G(function(n,e,t){var r=F|V;if(t.length){var i=be(t,ot(So));r|=cn}return ye(e,r,n,t,i)});function Ro(n,e,t){e=t?o:e;var r=ye(n,an,o,o,o,o,o,e);return r.placeholder=Ro.placeholder,r}function Eo(n,e,t){e=t?o:e;var r=ye(n,sn,o,o,o,o,o,e);return r.placeholder=Eo.placeholder,r}function bo(n,e,t){var r,i,s,l,f,c,d=0,p=!1,g=!1,m=!0;if(typeof n!="function")throw new Xn(A);e=ee(e)||0,yn(t)&&(p=!!t.leading,g="maxWait"in t,s=g?Sn(ee(t.maxWait)||0,e):s,m="trailing"in t?!!t.trailing:m);function I(In){var le=r,Le=i;return r=i=o,d=In,l=n.apply(Le,le),l}function L(In){return d=In,f=$t(z,e),p?I(In):l}function D(In){var le=In-c,Le=In-d,Zo=e-le;return g?Pn(Zo,s-Le):Zo}function S(In){var le=In-c,Le=In-d;return c===o||le>=e||le<0||g&&Le>=s}function z(){var In=Rr();if(S(In))return Y(In);f=$t(z,D(In))}function Y(In){return f=o,m&&r?I(In):(r=i=o,l)}function qn(){f!==o&&Ms(f),d=0,r=c=i=f=o}function Un(){return f===o?l:Y(Rr())}function Vn(){var In=Rr(),le=S(In);if(r=arguments,i=this,c=In,le){if(f===o)return L(c);if(g)return Ms(f),f=$t(z,e),I(c)}return f===o&&(f=$t(z,e)),l}return Vn.cancel=qn,Vn.flush=Un,Vn}var l_=G(function(n,e){return vs(n,1,e)}),f_=G(function(n,e,t){return vs(n,ee(e)||0,t)});function a_(n){return ye(n,O)}function Er(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Xn(A);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var l=n.apply(this,r);return t.cache=s.set(i,l)||s,l};return t.cache=new(Er.Cache||me),t}Er.Cache=me;function br(n){if(typeof n!="function")throw new Xn(A);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function c_(n){return Lo(2,n)}var h_=Qa(function(n,e){e=e.length==1&&P(e[0])?wn(e[0],Hn(C())):wn(bn(e,1),Hn(C()));var t=e.length;return G(function(r){for(var i=-1,s=Pn(r.length,t);++i=e}),ze=As(function(){return arguments}())?As:function(n){return xn(n)&&on.call(n,"callee")&&!ls.call(n,"callee")},P=h.isArray,R_=Hu?Hn(Hu):Wa;function Dn(n){return n!=null&&Tr(n.length)&&!Ie(n)}function An(n){return xn(n)&&Dn(n)}function E_(n){return n===!0||n===!1||xn(n)&&Wn(n)==_t}var We=Kf||fu,b_=zu?Hn(zu):Fa;function T_(n){return xn(n)&&n.nodeType===1&&!Bt(n)}function O_(n){if(n==null)return!0;if(Dn(n)&&(P(n)||typeof n=="string"||typeof n.splice=="function"||We(n)||lt(n)||ze(n)))return!n.length;var e=$n(n);if(e==re||e==ie)return!n.size;if(Pt(n))return!Ri(n).length;for(var t in n)if(on.call(n,t))return!1;return!0}function P_(n,e){return bt(n,e)}function $_(n,e,t){t=typeof t=="function"?t:o;var r=t?t(n,e):o;return r===o?bt(n,e,o,t):!!r}function ji(n){if(!xn(n))return!1;var e=Wn(n);return e==Kt||e==el||typeof n.message=="string"&&typeof n.name=="string"&&!Bt(n)}function B_(n){return typeof n=="number"&&as(n)}function Ie(n){if(!yn(n))return!1;var e=Wn(n);return e==Ht||e==vu||e==nl||e==rl}function Oo(n){return typeof n=="number"&&n==U(n)}function Tr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function yn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function xn(n){return n!=null&&typeof n=="object"}var Po=ku?Hn(ku):Ma;function W_(n,e){return n===e||Si(n,e,Hi(e))}function F_(n,e,t){return t=typeof t=="function"?t:o,Si(n,e,Hi(e),t)}function U_(n){return $o(n)&&n!=+n}function M_(n){if(xc(n))throw new b(J);return Is(n)}function D_(n){return n===null}function N_(n){return n==null}function $o(n){return typeof n=="number"||xn(n)&&Wn(n)==pt}function Bt(n){if(!xn(n)||Wn(n)!=ge)return!1;var e=rr(n);if(e===null)return!0;var t=on.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&jt.call(t)==Ff}var nu=qu?Hn(qu):Da;function G_(n){return Oo(n)&&n>=-ce&&n<=ce}var Bo=Vu?Hn(Vu):Na;function Or(n){return typeof n=="string"||!P(n)&&xn(n)&&Wn(n)==vt}function kn(n){return typeof n=="symbol"||xn(n)&&Wn(n)==zt}var lt=Zu?Hn(Zu):Ga;function K_(n){return n===o}function H_(n){return xn(n)&&$n(n)==mt}function z_(n){return xn(n)&&Wn(n)==ul}var k_=xr(Ei),q_=xr(function(n,e){return n<=e});function Wo(n){if(!n)return[];if(Dn(n))return Or(n)?ue(n):Mn(n);if(xt&&n[xt])return Cf(n[xt]());var e=$n(n),t=e==re?pi:e==ie?Xt:ft;return t(n)}function Ce(n){if(!n)return n===0?n:0;if(n=ee(n),n===pe||n===-pe){var e=n<0?-1:1;return e*Gr}return n===n?n:0}function U(n){var e=Ce(n),t=e%1;return e===e?t?e-t:e:0}function Fo(n){return n?Ne(U(n),0,pn):0}function ee(n){if(typeof n=="number")return n;if(kn(n))return Ve;if(yn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=yn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ns(n);var t=Sl.test(n);return t||El.test(n)?of(n.slice(2),t?2:8):Ll.test(n)?Ve:+n}function Uo(n){return _e(n,Nn(n))}function V_(n){return n?Ne(U(n),-ce,ce):n===0?n:0}function rn(n){return n==null?"":zn(n)}var Z_=ut(function(n,e){if(Pt(e)||Dn(e)){_e(e,Rn(e),n);return}for(var t in e)on.call(e,t)&&St(n,t,e[t])}),Mo=ut(function(n,e){_e(e,Nn(e),n)}),Pr=ut(function(n,e,t,r){_e(e,Nn(e),n,r)}),Y_=ut(function(n,e,t,r){_e(e,Rn(e),n,r)}),X_=xe(xi);function J_(n,e){var t=it(n);return e==null?t:ps(t,e)}var Q_=G(function(n,e){n=_n(n);var t=-1,r=e.length,i=r>2?e[2]:o;for(i&&Fn(e[0],e[1],i)&&(r=1);++t1),s}),_e(n,Gi(n),t),r&&(t=Qn(t,B|Cn|H,fc));for(var i=e.length;i--;)$i(t,e[i]);return t});function gd(n,e){return No(n,br(C(e)))}var vd=xe(function(n,e){return n==null?{}:za(n,e)});function No(n,e){if(n==null)return{};var t=wn(Gi(n),function(r){return[r]});return e=C(e),Ts(n,t,function(r,i){return e(r,i[0])})}function md(n,e,t){e=$e(e,n);var r=-1,i=e.length;for(i||(i=1,n=o);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=cs();return Pn(n+i*(e-n+sf("1e-"+((i+"").length-1))),e)}return Ti(n,e)}var bd=st(function(n,e,t){return e=e.toLowerCase(),n+(t?Ho(e):e)});function Ho(n){return ru(rn(n).toLowerCase())}function zo(n){return n=rn(n),n&&n.replace(Tl,wf).replace(Yl,"")}function Td(n,e,t){n=rn(n),e=zn(e);var r=n.length;t=t===o?r:Ne(U(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function Od(n){return n=rn(n),n&&al.test(n)?n.replace(yu,yf):n}function Pd(n){return n=rn(n),n&&gl.test(n)?n.replace(Qr,"\\$&"):n}var $d=st(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Bd=st(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Wd=qs("toLowerCase");function Fd(n,e,t){n=rn(n),e=U(e);var r=e?je(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return yr(or(i),t)+n+yr(sr(i),t)}function Ud(n,e,t){n=rn(n),e=U(e);var r=e?je(n):0;return e&&r>>0,t?(n=rn(n),n&&(typeof e=="string"||e!=null&&!nu(e))&&(e=zn(e),!e&&Qe(n))?Be(ue(n),0,t):n.split(e,t)):[]}var zd=st(function(n,e,t){return n+(t?" ":"")+ru(e)});function kd(n,e,t){return n=rn(n),t=t==null?0:Ne(U(t),0,n.length),e=zn(e),n.slice(t,t+e.length)==e}function qd(n,e,t){var r=u.templateSettings;t&&Fn(n,e,t)&&(e=o),n=rn(n),e=Pr({},e,r,js);var i=Pr({},e.imports,r.imports,js),s=Rn(i),l=di(i,s),f,c,d=0,p=e.interpolate||kt,g="__p += '",m=gi((e.escape||kt).source+"|"+p.source+"|"+(p===xu?Cl:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),I="//# sourceURL="+(on.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nf+"]")+` +`)}function mc(n){return $(n)||ze(n)||!!(fs&&n&&n[fs])}function Ae(n,e){var t=typeof n;return e=e??ce,!!e&&(t=="number"||t!="symbol"&&bl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=On)return arguments[0]}else e=0;return n.apply(o,arguments)}}function Cr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t1?n[e-1]:o;return t=typeof t=="function"?(n.pop(),t):o,yo(n,t)});function xo(n){var e=u(n);return e.__chain__=!0,e}function bh(n,e){return e(n),n}function Lr(n,e){return e(n)}var Th=xe(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(s){return xi(s,n)};return e>1||this.__actions__.length||!(r instanceof k)||!Ae(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Lr,args:[i],thisArg:o}),new Jn(r,this.__chain__).thru(function(s){return e&&!s.length&&s.push(o),s}))});function Oh(){return xo(this)}function Ph(){return new Jn(this.value(),this.__chain__)}function $h(){this.__values__===o&&(this.__values__=Wo(this.value()));var n=this.__index__>=this.__values__.length,e=n?o:this.__values__[this.__index__++];return{done:n,value:e}}function Bh(){return this}function Wh(n){for(var e,t=this;t instanceof ar;){var r=_o(t);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Fh(){var n=this.__wrapped__;if(n instanceof k){var e=n;return this.__actions__.length&&(e=new k(this)),e=e.reverse(),e.__actions__.push({func:Lr,args:[Yi],thisArg:o}),new Jn(e,this.__chain__)}return this.thru(Yi)}function Uh(){return Fs(this.__wrapped__,this.__actions__)}var Mh=vr(function(n,e,t){on.call(n,t)?++n[t]:we(n,t,1)});function Dh(n,e,t){var r=$(n)?Yu:ba;return t&&Fn(n,e,t)&&(e=o),r(n,C(e,3))}function Nh(n,e){var t=$(n)?Re:ws;return t(n,C(e,3))}var Gh=Vs(po),Kh=Vs(go);function Hh(n,e){return bn(Sr(n,e),1)}function zh(n,e){return bn(Sr(n,e),pe)}function kh(n,e,t){return t=t===o?1:U(t),bn(Sr(n,e),t)}function Ao(n,e){var t=$(n)?Yn:Oe;return t(n,C(e,3))}function Io(n,e){var t=$(n)?af:ms;return t(n,C(e,3))}var qh=vr(function(n,e,t){on.call(n,t)?n[t].push(e):we(n,t,[e])});function Vh(n,e,t,r){n=Dn(n)?n:ft(n),t=t&&!r?U(t):0;var i=n.length;return t<0&&(t=Sn(i+t,0)),Or(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Je(n,e,t)>-1}var Zh=K(function(n,e,t){var r=-1,i=typeof e=="function",s=Dn(n)?h(n.length):[];return Oe(n,function(l){s[++r]=i?Kn(e,l,t):Et(l,e,t)}),s}),Yh=vr(function(n,e,t){we(n,t,e)});function Sr(n,e){var t=$(n)?wn:Ls;return t(n,C(e,3))}function Xh(n,e,t,r){return n==null?[]:($(e)||(e=e==null?[]:[e]),t=r?o:t,$(t)||(t=t==null?[]:[t]),bs(n,e,t))}var Jh=vr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Qh(n,e,t){var r=$(n)?li:ju,i=arguments.length<3;return r(n,C(e,4),t,i,Oe)}function jh(n,e,t){var r=$(n)?cf:ju,i=arguments.length<3;return r(n,C(e,4),t,i,ms)}function n_(n,e){var t=$(n)?Re:ws;return t(n,br(C(e,3)))}function e_(n){var e=$(n)?ds:Va;return e(n)}function t_(n,e,t){(t?Fn(n,e,t):e===o)?e=1:e=U(e);var r=$(n)?Ca:Za;return r(n,e)}function r_(n){var e=$(n)?La:Xa;return e(n)}function i_(n){if(n==null)return 0;if(Dn(n))return Or(n)?je(n):n.length;var e=$n(n);return e==ie||e==ue?n.size:Ri(n).length}function u_(n,e,t){var r=$(n)?fi:Ja;return t&&Fn(n,e,t)&&(e=o),r(n,C(e,3))}var s_=K(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Fn(n,e[0],e[1])?e=[]:t>2&&Fn(e[0],e[1],e[2])&&(e=[e[0]]),bs(n,bn(e,1),[])}),Rr=Nf||function(){return En.Date.now()};function o_(n,e){if(typeof e!="function")throw new Xn(A);return n=U(n),function(){if(--n<1)return e.apply(this,arguments)}}function Co(n,e,t){return e=t?o:e,e=n&&e==null?n.length:e,ye(n,O,o,o,o,o,e)}function Lo(n,e){var t;if(typeof e!="function")throw new Xn(A);return n=U(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=o),t}}var Ji=K(function(n,e,t){var r=F;if(t.length){var i=be(t,ot(Ji));r|=cn}return ye(n,r,e,t,i)}),So=K(function(n,e,t){var r=F|V;if(t.length){var i=be(t,ot(So));r|=cn}return ye(e,r,n,t,i)});function Ro(n,e,t){e=t?o:e;var r=ye(n,an,o,o,o,o,o,e);return r.placeholder=Ro.placeholder,r}function Eo(n,e,t){e=t?o:e;var r=ye(n,sn,o,o,o,o,o,e);return r.placeholder=Eo.placeholder,r}function bo(n,e,t){var r,i,s,l,f,c,d=0,p=!1,g=!1,m=!0;if(typeof n!="function")throw new Xn(A);e=ee(e)||0,yn(t)&&(p=!!t.leading,g="maxWait"in t,s=g?Sn(ee(t.maxWait)||0,e):s,m="trailing"in t?!!t.trailing:m);function I(In){var fe=r,Le=i;return r=i=o,d=In,l=n.apply(Le,fe),l}function L(In){return d=In,f=$t(z,e),p?I(In):l}function N(In){var fe=In-c,Le=In-d,Zo=e-fe;return g?Pn(Zo,s-Le):Zo}function S(In){var fe=In-c,Le=In-d;return c===o||fe>=e||fe<0||g&&Le>=s}function z(){var In=Rr();if(S(In))return Y(In);f=$t(z,N(In))}function Y(In){return f=o,m&&r?I(In):(r=i=o,l)}function qn(){f!==o&&Ms(f),d=0,r=c=i=f=o}function Un(){return f===o?l:Y(Rr())}function Vn(){var In=Rr(),fe=S(In);if(r=arguments,i=this,c=In,fe){if(f===o)return L(c);if(g)return Ms(f),f=$t(z,e),I(c)}return f===o&&(f=$t(z,e)),l}return Vn.cancel=qn,Vn.flush=Un,Vn}var l_=K(function(n,e){return vs(n,1,e)}),f_=K(function(n,e,t){return vs(n,ee(e)||0,t)});function a_(n){return ye(n,P)}function Er(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Xn(A);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var l=n.apply(this,r);return t.cache=s.set(i,l)||s,l};return t.cache=new(Er.Cache||me),t}Er.Cache=me;function br(n){if(typeof n!="function")throw new Xn(A);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function c_(n){return Lo(2,n)}var h_=Qa(function(n,e){e=e.length==1&&$(e[0])?wn(e[0],Hn(C())):wn(bn(e,1),Hn(C()));var t=e.length;return K(function(r){for(var i=-1,s=Pn(r.length,t);++i=e}),ze=As(function(){return arguments}())?As:function(n){return xn(n)&&on.call(n,"callee")&&!ls.call(n,"callee")},$=h.isArray,R_=Hu?Hn(Hu):Wa;function Dn(n){return n!=null&&Tr(n.length)&&!Ie(n)}function An(n){return xn(n)&&Dn(n)}function E_(n){return n===!0||n===!1||xn(n)&&Wn(n)==_t}var We=Kf||fu,b_=zu?Hn(zu):Fa;function T_(n){return xn(n)&&n.nodeType===1&&!Bt(n)}function O_(n){if(n==null)return!0;if(Dn(n)&&($(n)||typeof n=="string"||typeof n.splice=="function"||We(n)||lt(n)||ze(n)))return!n.length;var e=$n(n);if(e==ie||e==ue)return!n.size;if(Pt(n))return!Ri(n).length;for(var t in n)if(on.call(n,t))return!1;return!0}function P_(n,e){return bt(n,e)}function $_(n,e,t){t=typeof t=="function"?t:o;var r=t?t(n,e):o;return r===o?bt(n,e,o,t):!!r}function ji(n){if(!xn(n))return!1;var e=Wn(n);return e==Kt||e==el||typeof n.message=="string"&&typeof n.name=="string"&&!Bt(n)}function B_(n){return typeof n=="number"&&as(n)}function Ie(n){if(!yn(n))return!1;var e=Wn(n);return e==Ht||e==vu||e==nl||e==rl}function Oo(n){return typeof n=="number"&&n==U(n)}function Tr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function yn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function xn(n){return n!=null&&typeof n=="object"}var Po=ku?Hn(ku):Ma;function W_(n,e){return n===e||Si(n,e,Hi(e))}function F_(n,e,t){return t=typeof t=="function"?t:o,Si(n,e,Hi(e),t)}function U_(n){return $o(n)&&n!=+n}function M_(n){if(xc(n))throw new T(Q);return Is(n)}function D_(n){return n===null}function N_(n){return n==null}function $o(n){return typeof n=="number"||xn(n)&&Wn(n)==pt}function Bt(n){if(!xn(n)||Wn(n)!=ge)return!1;var e=rr(n);if(e===null)return!0;var t=on.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&jt.call(t)==Ff}var nu=qu?Hn(qu):Da;function G_(n){return Oo(n)&&n>=-ce&&n<=ce}var Bo=Vu?Hn(Vu):Na;function Or(n){return typeof n=="string"||!$(n)&&xn(n)&&Wn(n)==vt}function kn(n){return typeof n=="symbol"||xn(n)&&Wn(n)==zt}var lt=Zu?Hn(Zu):Ga;function K_(n){return n===o}function H_(n){return xn(n)&&$n(n)==mt}function z_(n){return xn(n)&&Wn(n)==ul}var k_=xr(Ei),q_=xr(function(n,e){return n<=e});function Wo(n){if(!n)return[];if(Dn(n))return Or(n)?se(n):Mn(n);if(xt&&n[xt])return Cf(n[xt]());var e=$n(n),t=e==ie?pi:e==ue?Xt:ft;return t(n)}function Ce(n){if(!n)return n===0?n:0;if(n=ee(n),n===pe||n===-pe){var e=n<0?-1:1;return e*Gr}return n===n?n:0}function U(n){var e=Ce(n),t=e%1;return e===e?t?e-t:e:0}function Fo(n){return n?Ne(U(n),0,pn):0}function ee(n){if(typeof n=="number")return n;if(kn(n))return Ve;if(yn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=yn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ns(n);var t=Sl.test(n);return t||El.test(n)?of(n.slice(2),t?2:8):Ll.test(n)?Ve:+n}function Uo(n){return _e(n,Nn(n))}function V_(n){return n?Ne(U(n),-ce,ce):n===0?n:0}function rn(n){return n==null?"":zn(n)}var Z_=ut(function(n,e){if(Pt(e)||Dn(e)){_e(e,Rn(e),n);return}for(var t in e)on.call(e,t)&&St(n,t,e[t])}),Mo=ut(function(n,e){_e(e,Nn(e),n)}),Pr=ut(function(n,e,t,r){_e(e,Nn(e),n,r)}),Y_=ut(function(n,e,t,r){_e(e,Rn(e),n,r)}),X_=xe(xi);function J_(n,e){var t=it(n);return e==null?t:ps(t,e)}var Q_=K(function(n,e){n=_n(n);var t=-1,r=e.length,i=r>2?e[2]:o;for(i&&Fn(e[0],e[1],i)&&(r=1);++t1),s}),_e(n,Gi(n),t),r&&(t=Qn(t,W|Cn|H,fc));for(var i=e.length;i--;)$i(t,e[i]);return t});function gd(n,e){return No(n,br(C(e)))}var vd=xe(function(n,e){return n==null?{}:za(n,e)});function No(n,e){if(n==null)return{};var t=wn(Gi(n),function(r){return[r]});return e=C(e),Ts(n,t,function(r,i){return e(r,i[0])})}function md(n,e,t){e=$e(e,n);var r=-1,i=e.length;for(i||(i=1,n=o);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=cs();return Pn(n+i*(e-n+sf("1e-"+((i+"").length-1))),e)}return Ti(n,e)}var bd=st(function(n,e,t){return e=e.toLowerCase(),n+(t?Ho(e):e)});function Ho(n){return ru(rn(n).toLowerCase())}function zo(n){return n=rn(n),n&&n.replace(Tl,wf).replace(Yl,"")}function Td(n,e,t){n=rn(n),e=zn(e);var r=n.length;t=t===o?r:Ne(U(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function Od(n){return n=rn(n),n&&al.test(n)?n.replace(yu,yf):n}function Pd(n){return n=rn(n),n&&gl.test(n)?n.replace(Qr,"\\$&"):n}var $d=st(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Bd=st(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Wd=qs("toLowerCase");function Fd(n,e,t){n=rn(n),e=U(e);var r=e?je(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return yr(or(i),t)+n+yr(sr(i),t)}function Ud(n,e,t){n=rn(n),e=U(e);var r=e?je(n):0;return e&&r>>0,t?(n=rn(n),n&&(typeof e=="string"||e!=null&&!nu(e))&&(e=zn(e),!e&&Qe(n))?Be(se(n),0,t):n.split(e,t)):[]}var zd=st(function(n,e,t){return n+(t?" ":"")+ru(e)});function kd(n,e,t){return n=rn(n),t=t==null?0:Ne(U(t),0,n.length),e=zn(e),n.slice(t,t+e.length)==e}function qd(n,e,t){var r=u.templateSettings;t&&Fn(n,e,t)&&(e=o),n=rn(n),e=Pr({},e,r,js);var i=Pr({},e.imports,r.imports,js),s=Rn(i),l=di(i,s),f,c,d=0,p=e.interpolate||kt,g="__p += '",m=gi((e.escape||kt).source+"|"+p.source+"|"+(p===xu?Cl:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),I="//# sourceURL="+(on.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nf+"]")+` `;n.replace(m,function(S,z,Y,qn,Un,Vn){return Y||(Y=qn),g+=n.slice(d,Vn).replace(Ol,xf),z&&(f=!0,g+=`' + __e(`+z+`) + '`),Un&&(c=!0,g+=`'; @@ -18,10 +18,10 @@ __p += '`),Y&&(g+=`' + `;var L=on.call(e,"variable")&&e.variable;if(!L)g=`with (obj) { `+g+` } -`;else if(Al.test(L))throw new b(X);g=(c?g.replace(sl,""):g).replace(ol,"$1").replace(ll,"$1;"),g="function("+(L||"obj")+`) { +`;else if(Al.test(L))throw new T(X);g=(c?g.replace(sl,""):g).replace(ol,"$1").replace(ll,"$1;"),g="function("+(L||"obj")+`) { `+(L?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+g+`return __p -}`;var D=qo(function(){return Q(s,I+"return "+g).apply(o,l)});if(D.source=g,ji(D))throw D;return D}function Vd(n){return rn(n).toLowerCase()}function Zd(n){return rn(n).toUpperCase()}function Yd(n,e,t){if(n=rn(n),n&&(t||e===o))return ns(n);if(!n||!(e=zn(e)))return n;var r=ue(n),i=ue(e),s=es(r,i),l=ts(r,i)+1;return Be(r,s,l).join("")}function Xd(n,e,t){if(n=rn(n),n&&(t||e===o))return n.slice(0,is(n)+1);if(!n||!(e=zn(e)))return n;var r=ue(n),i=ts(r,ue(e))+1;return Be(r,0,i).join("")}function Jd(n,e,t){if(n=rn(n),n&&(t||e===o))return n.replace(jr,"");if(!n||!(e=zn(e)))return n;var r=ue(n),i=es(r,ue(e));return Be(r,i).join("")}function Qd(n,e){var t=W,r=Tn;if(yn(e)){var i="separator"in e?e.separator:i;t="length"in e?U(e.length):t,r="omission"in e?zn(e.omission):r}n=rn(n);var s=n.length;if(Qe(n)){var l=ue(n);s=l.length}if(t>=s)return n;var f=t-je(r);if(f<1)return r;var c=l?Be(l,0,f).join(""):n.slice(0,f);if(i===o)return c+r;if(l&&(f+=c.length-f),nu(i)){if(n.slice(f).search(i)){var d,p=c;for(i.global||(i=gi(i.source,rn(Au.exec(i))+"g")),i.lastIndex=0;d=i.exec(p);)var g=d.index;c=c.slice(0,g===o?f:g)}}else if(n.indexOf(zn(i),f)!=f){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function jd(n){return n=rn(n),n&&fl.test(n)?n.replace(wu,Ef):n}var np=st(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),ru=qs("toUpperCase");function ko(n,e,t){return n=rn(n),e=t?o:e,e===o?If(n)?Of(n):df(n):n.match(e)||[]}var qo=G(function(n,e){try{return Kn(n,o,e)}catch(t){return ji(t)?t:new b(t)}}),ep=xe(function(n,e){return Yn(e,function(t){t=de(t),we(n,t,Ji(n[t],n))}),n});function tp(n){var e=n==null?0:n.length,t=C();return n=e?wn(n,function(r){if(typeof r[1]!="function")throw new Xn(A);return[t(r[0]),r[1]]}):[],G(function(r){for(var i=-1;++ice)return[];var t=pn,r=Pn(n,pn);e=C(e),n-=pn;for(var i=_i(r,e);++t0||e<0)?new k(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=U(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},k.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},k.prototype.toArray=function(){return this.take(pn)},he(k.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var l=this.__wrapped__,f=r?[1]:arguments,c=l instanceof k,d=f[0],p=c||P(l),g=function(z){var Y=i.apply(u,Ee([z],f));return r&&m?Y[0]:Y};p&&t&&typeof d=="function"&&d.length!=1&&(c=p=!1);var m=this.__chain__,I=!!this.__actions__.length,L=s&&!m,D=c&&!I;if(!s&&p){l=D?l:new k(this);var S=n.apply(l,f);return S.__actions__.push({func:Lr,args:[g],thisArg:o}),new Jn(S,m)}return L&&D?n.apply(this,f):(S=this.thru(g),L?r?S.value()[0]:S.value():S)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Jt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(P(s)?s:[],i)}return this[t](function(l){return e.apply(P(l)?l:[],i)})}}),he(k.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";on.call(rt,r)||(rt[r]=[]),rt[r].push({name:e,func:t})}}),rt[mr(o,V).name]=[{name:"wrapper",func:o}],k.prototype.clone=jf,k.prototype.reverse=na,k.prototype.value=ea,u.prototype.at=Th,u.prototype.chain=Oh,u.prototype.commit=Ph,u.prototype.next=$h,u.prototype.plant=Wh,u.prototype.reverse=Fh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Uh,u.prototype.first=u.prototype.head,xt&&(u.prototype[xt]=Bh),u},nt=Pf();Fe?((Fe.exports=nt)._=nt,ui._=nt):En._=nt}).call(Wt)})(Fr,Fr.exports);var sv=Fr.exports;const ov=qp(sv),Dr=$=>(pu("data-v-0842d958"),$=$(),gu(),$),lv={class:"my-order"},fv=Dr(()=>v("div",{class:"nav-item-label"},"搜索 (Shift)",-1)),av={class:"nav-item-input"},cv={class:"shop-list","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},hv=["onClick"],_v={class:"shop-name"},dv={key:0,class:"shop-price"},pv=Dr(()=>v("span",{class:"unit-name"},"商户价:",-1)),gv={key:0,class:"unit-name"},vv={key:1,class:"shop-price"},mv=Dr(()=>v("span",{class:"unit-name"},"原价: ",-1)),wv={class:"unit-name del"},yv={key:2,class:"shop-price"},xv={class:"unit-name"},Av={key:3,class:"no-stock-re"},Iv=Dr(()=>v("div",null,[v("span",null,"次日提")],-1)),Cv=[Iv],Lv={key:1,class:"no-data"},Sv={__name:"shop",props:{storeList:{type:Array,default:()=>[]},priceKey:{type:Object,default:()=>({})},loading:{type:Boolean,default:()=>!1}},emits:["getStoreList","changeItem","loadMore"],setup($,{expose:x,emit:o}){const E=R(null),q=o,J=R(""),A=()=>{q("loadMore",{store_name:J.value})},X=w=>{q("changeItem",w)},dn=ov.throttle(()=>{let w={store_name:J.value};q("getStoreList",w,!0)},300);x({name:J,inputBlur:()=>{var w;(w=E.value)==null||w.blur()}});const en=R(!1),B=()=>{en.value=!0},Cn=()=>{en.value=!1},H=()=>{var w;(w=E.value)==null||w.focus()};return Dt(()=>{_u(()=>{var w;(w=E.value)==null||w.focus(),B()}),te.on("shift",H)}),Nt(()=>{te.off("shift",H)}),(w,tn)=>{const F=j("CircleClose"),V=j("el-icon"),fn=j("el-input"),an=j("Search"),sn=j("el-button"),cn=j("el-image"),Z=j("el-space"),T=j("el-empty"),vn=Ft("loading"),O=Ft("infinite-scroll");return N(),nn("div",lv,[v("div",{class:Wr(["header-nav",{"input-focus":en.value}])},[fv,v("div",av,[M(fn,{modelValue:J.value,"onUpdate:modelValue":tn[1]||(tn[1]=W=>J.value=W),placeholder:"搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索",ref_key:"codeRef",ref:E,onFocus:B,onBlur:Cn,onKeyup:Jo($r(dn),["enter"]),onClear:$r(dn),style:{"font-size":"1rem"}},{suffix:hn(()=>[J.value!=""?(N(),Se(V,{key:0,size:"28",onClick:tn[0]||(tn[0]=W=>J.value=""),style:{cursor:"pointer","margin-right":"1rem"}},{default:hn(()=>[M(F)]),_:1})):fe("",!0)]),_:1},8,["modelValue","onKeyup","onClear"])]),v("div",{class:"nav-item-btn",onClick:tn[2]||(tn[2]=(...W)=>$r(dn)&&$r(dn)(...W))},[M(sn,{class:"btn",type:"primary"},{default:hn(()=>[M(V,null,{default:hn(()=>[M(an)]),_:1})]),_:1})])],2),du((N(),nn("div",cv,[$.storeList.length?(N(),Se(Z,{key:0,wrap:"",size:14},{default:hn(()=>[(N(!0),nn(Ut,null,Mt($.storeList,(W,Tn)=>(N(),nn("div",{class:"shop-item",key:Tn,onClick:On=>X(W)},[M(cn,{loading:"lazy",src:W.image},null,8,["src"]),v("div",_v,K(W.store_name),1),$.priceKey.off_activity==1?(N(),nn("div",dv,[pv,un(" ¥"),v("span",null,K(W[$.priceKey.price]),1),W.unit_name?(N(),nn("span",gv,"/"+K(W.unit_name),1)):fe("",!0)])):fe("",!0),$.priceKey.off_activity==1?(N(),nn("div",vv,[mv,un(),v("span",wv,"¥"+K(W[$.priceKey.op_price])+" /"+K(W.unit_name),1)])):(N(),nn("div",yv,[un(" ¥"),v("span",null,K(W[$.priceKey.price]),1),v("span",xv,"/"+K(W.unit_name),1)])),W.stock<=0?(N(),nn("div",Av,Cv)):fe("",!0)],8,hv))),128))]),_:1})):fe("",!0),$.storeList.length?fe("",!0):(N(),nn("div",Lv,[M(T,{"image-size":200,description:"没有找到对应商品"})]))])),[[vn,$.loading],[O,A]])])}}},Rv=ct(Sv,[["__scopeId","data-v-0842d958"]]),Qo=$=>(pu("data-v-09c1bca4"),$=$(),gu(),$),Ev={class:"shop"},bv={class:"shop-info"},Tv={class:"shop-info-left"},Ov={class:"shop-info-right"},Pv={class:"shop-info-right-top"},$v={key:0,class:"shop-info-right-price"},Bv=Qo(()=>v("span",{class:"unit-name"},"商户价:",-1)),Wv={key:0,class:"unit-name"},Fv={key:1,class:"shop-info-right-price"},Uv=Qo(()=>v("span",{class:"unit-name"},"原价: ",-1)),Mv={class:"unit-name del"},Dv={key:2,class:"shop-info-right-price"},Nv={class:"unit-name"},Gv={class:"shop-sku"},Kv={class:"title"},Hv={class:"sku"},zv={class:"dialog-footer"},kv={__name:"pupop",props:{priceKey:{type:Object,default:()=>({})}},emits:["changeItem"],setup($,{expose:x,emit:o}){const E=R(!1),q=R(null),J=H=>{E.value=H},A=R({}),X=R(!1),dn=R("add"),ln=(H,w="add")=>{dn.value=w,A.value=JSON.parse(JSON.stringify(H))},en=o,B=()=>{A.value.cart_num||(A.value.cart_num=A.value.batch>0?A.value.batch:1),en("changeItem",A.value),E.value=!1};x({show:J,setForm:ln});const Cn=()=>{E.value&&B()};return Dt(()=>{te.on("enter",Cn)}),Nt(()=>{te.off("enter",Cn)}),(H,w)=>{const tn=j("el-image"),F=j("el-input-number"),V=j("el-button"),fn=j("el-dialog"),an=Ft("loading");return N(),Se(fn,{modelValue:E.value,"onUpdate:modelValue":w[1]||(w[1]=sn=>E.value=sn),title:"购买数量",width:"650",onOpened:w[2]||(w[2]=sn=>q.value.focus())},Vp({default:hn(()=>[du((N(),nn("div",Ev,[v("div",bv,[v("div",Tv,[M(tn,{loading:"lazy",src:A.value.image},null,8,["src"])]),v("div",Ov,[v("div",Pv,K(A.value.store_name),1),v("div",null,[$.priceKey.off_activity==1?(N(),nn("div",$v,[Bv,un(" ¥"),v("span",null,K(A.value[$.priceKey.price]),1),A.value.unit_name?(N(),nn("span",Wv,"/"+K(A.value.unit_name),1)):fe("",!0)])):fe("",!0),$.priceKey.off_activity==1?(N(),nn("div",Fv,[Uv,un(),v("span",Mv,"¥"+K(A.value[$.priceKey.op_price])+" /"+K(A.value.unit_name),1)])):(N(),nn("div",Dv,[un(" ¥"),v("span",null,K(A.value[$.priceKey.price]),1),v("span",Nv,"/"+K(A.value.unit_name),1)]))])])]),v("div",Gv,[v("div",Kv,"购买数量 ( "+K(A.value.unit_name)+" )",1),v("div",Hv,[M(F,{ref_key:"inputRef",ref:q,modelValue:A.value.cart_num,"onUpdate:modelValue":w[0]||(w[0]=sn=>A.value.cart_num=sn),placeholder:`请输入数量(默认为${+A.value.batch>0?A.value.batch:"1"})`,min:+A.value.batch>0?+A.value.batch:1,"step-strictly":"",step:1,style:{width:"20rem"},size:"large"},null,8,["modelValue","placeholder","min"])])])])),[[an,X.value]])]),_:2},[dn.value!="add"&&A.value.attr&&A.value.attr.length==1?void 0:{name:"footer",fn:hn(()=>[v("div",zv,[M(V,{class:"ok-btn",type:"primary",onClick:B},{default:hn(()=>[un(" 确定 (Enter) ")]),_:1})])]),key:"0"}]),1032,["modelValue"])}}},qv=ct(kv,[["__scopeId","data-v-09c1bca4"]]),Vv=["onClick","onMousemove"],Zv=["onMousemove"],Yv={class:"title"},Xv={class:"list"},Jv=["onClick"],Qv={__name:"classify",emits:["getStoreList"],setup($,{emit:x}){const o=x,E=R([]),q=R([]),J=R([]),A=R(-1),X=R(-1),dn=R(-1),ln=R(-1),en=R(!1),B=Mr();(()=>{cu({pid:0,page_no:1,page_size:30,level:1,store_id:B.userInfo.store_id}).then(F=>{E.value=F.data.lists,A.value=-1})})();const H=F=>{cu({pid:F,page_no:1,page_size:30,level:2,store_id:B.userInfo.store_id}).then(V=>{q.value=V.data.lists})},w=F=>{cu({pid:F,page_no:1,page_size:30,level:3,store_id:B.userInfo.store_id}).then(V=>{J.value=V.data.lists})},tn=(F=-1,V=1)=>{ln.value=F,en.value=!0;let fn="";console.log(F,V),V==1?(A.value=F,X.value=-1,dn.value=-1,F!=-1&&(fn=E.value[F].id),H(fn),o("getStoreList",{top_cate_id:fn,two_cate_id:null},!0)):V==2&&(X.value=F,dn.value=-1,F!=-1&&(fn=q.value[F].id),w(fn),o("getStoreList",{two_cate_id:fn},!0))};return(F,V)=>{const fn=j("el-popover");return N(),nn("div",{class:"classify",onMouseout:V[2]||(V[2]=an=>en.value?en.value=!1:en.value=!0)},[v("div",{class:Wr(["itemP",{"itemP-active":A.value==-1}]),onClick:V[0]||(V[0]=an=>tn(-1))},K("全部"),2),(N(!0),nn(Ut,null,Mt(E.value,(an,sn)=>(N(),Se(fn,{placement:"left",width:"20rem",trigger:"click",key:sn,visible:sn==A.value&&ln.value==sn},{reference:hn(()=>[v("div",{class:Wr(["itemP",{"itemP-active":sn==A.value}]),onClick:cn=>tn(sn),onMousemove:cn=>ln.value=sn},K(an.name),43,Vv)]),default:hn(()=>[v("div",{class:"active-card",onMouseout:V[1]||(V[1]=cn=>ln.value=-1),onMousemove:cn=>ln.value=sn},[v("div",Yv,K(an.name),1),v("div",Xv,[(N(!0),nn(Ut,null,Mt(q.value,(cn,Z)=>(N(),nn("div",{class:Wr({"list-active":Z==X.value}),link:"",type:"primary",key:cn.id,onClick:T=>tn(Z,2)},K(cn.name),11,Jv))),128))])],40,Zv)]),_:2},1032,["visible"]))),128))],32)}}},jv=ct(Qv,[["__scopeId","data-v-4d5623b0"]]),Ur=class Ur{constructor(){au(this,"loadingInstance",null)}static getInstance(){return this.instance??(this.instance=new Ur)}msg(x){ke.info(x)}msgError(x){x!=="Network Error"&&ke.error(x)}msgSuccess(x){ke.success(x)}msgWarning(x){ke.warning(x)}alert(x){at.alert(x,"系统提示")}alertError(x){at.alert(x,"系统提示",{type:"error"})}alertSuccess(x){at.alert(x,"系统提示",{type:"success"})}alertWarning(x){at.alert(x,"系统提示",{type:"warning"})}notify(x){Br.info(x)}notifyError(x){Br.error(x)}notifySuccess(x){Br.success(x)}notifyWarning(x){Br.warning(x)}confirm(x){return at.confirm(x,"温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})}prompt(x,o,E){return at.prompt(x,o,{confirmButtonText:"确定",cancelButtonText:"取消",...E})}loading(x){this.loadingInstance=Zp.service({lock:!0,text:x})}closeLoading(){var x;(x=this.loadingInstance)==null||x.close()}};au(Ur,"instance",null);let hu=Ur;const n1=hu.getInstance(),e1={class:"my-card"},_1={__name:"index",setup($){const x=R(null),o=R(null),E=R(null),q=R(null),J=R([]),A=Yp({off_activity:"",op_price:"",price:""}),X=Mr(),dn=Xp(),ln=R({page_no:1,page_size:30}),en=R(!1),B=(T={},vn=!1)=>{var O;ln.value={...ln.value,...T},console.log("===",T,vn),vn&&(J.value=[],ln.value.page_no=1,Cn.value=!1),T.top_cate_id===""&&(ln.value.store_name=null),en.value=!0,Qp({...ln.value,store_id:(O=X.userInfo)==null?void 0:O.store_id}).then(W=>{var Tn,On;en.value=!1;for(let Bn in W.data.extend)A[Bn]=W.data.extend[Bn];((On=(Tn=W.data)==null?void 0:Tn.lists)==null?void 0:On.length){Cn.value||B(T)};function w(T){return/^\d+$/.test(T)}const tn=(T,vn="")=>{let O={product_id:T.product_id,cart_num:T.cart_num,uid:ln.value.uid||null};Xo(O).then(W=>{o.value.getList()})},F=(T,vn)=>{x.value.setForm(T,"add"),x.value.show(!0)},V=T=>{x.value.setForm(T,"edit"),x.value.show(!0)},fn=R({}),an=async()=>{var W,Tn;let T=o.value.list.map(On=>On.id),vn={cart_id:T,uid:((Tn=(W=o.value)==null?void 0:W.userInfo)==null?void 0:Tn.uid)||""},{data:O}=await zp(vn);O.reservation>0&&await n1.confirm("部分商品暂无现货, 需要次日提货, 是否确认购买?"),o.value.discounts>0&&(vn.deduction_price=o.value.discounts.toFixed(2),vn.pay_type="micropay"),kp(vn).then(On=>{var Bn,ae,qe;fn.value=On.data.order,q.value.setForm({data:On.data.order,reservation:O.reservation,cart_id:T,uid:((ae=(Bn=o.value)==null?void 0:Bn.userInfo)==null?void 0:ae.uid)||"",is_storage:(qe=o.value)!=null&&qe.is_storage?1:0})}),q.value.drawer=!0},sn=()=>{var T,vn,O;if((T=o.value)!=null&&T.is_storage&&!((O=(vn=o.value)==null?void 0:vn.userInfo)!=null&&O.uid))return ke.error("选择用户才可以存货");an()},cn=(T=null)=>{setTimeout(()=>{o.value.resetView()})},Z=()=>{dn.name=="saleHome"&&(!q.value.drawer&&o.value.list.length>0?sn():q.value.beforeClose())};return Dt(()=>{B(),te.on("F9",Z)}),Nt(()=>{te.off("F9",Z)}),(T,vn)=>(N(),nn("div",e1,[M(uv,{ref_key:"orderRef",ref:o,onGoPay:sn,onEditPupop:V,onGetStoreList:B},null,512),M(Yo),M(Rv,{ref_key:"shopRef",ref:E,style:{flex:"1"},storeList:J.value,priceKey:A,loading:en.value,onGetStoreList:B,onChangeItem:F,onLoadMore:H},null,8,["storeList","priceKey","loading"]),M(qv,{ref_key:"pupopRef",ref:x,priceKey:A,onChangeItem:tn},null,8,["priceKey"]),M(Yo),M(jv,{ref:"classifyRef",onGetStoreList:B},null,512),M(jp,{ref_key:"payRef",ref:q,onPaySuccess:cn},null,512)]))}};export{_1 as default}; +}`;var N=qo(function(){return j(s,I+"return "+g).apply(o,l)});if(N.source=g,ji(N))throw N;return N}function Vd(n){return rn(n).toLowerCase()}function Zd(n){return rn(n).toUpperCase()}function Yd(n,e,t){if(n=rn(n),n&&(t||e===o))return ns(n);if(!n||!(e=zn(e)))return n;var r=se(n),i=se(e),s=es(r,i),l=ts(r,i)+1;return Be(r,s,l).join("")}function Xd(n,e,t){if(n=rn(n),n&&(t||e===o))return n.slice(0,is(n)+1);if(!n||!(e=zn(e)))return n;var r=se(n),i=ts(r,se(e))+1;return Be(r,0,i).join("")}function Jd(n,e,t){if(n=rn(n),n&&(t||e===o))return n.replace(jr,"");if(!n||!(e=zn(e)))return n;var r=se(n),i=es(r,se(e));return Be(r,i).join("")}function Qd(n,e){var t=b,r=Tn;if(yn(e)){var i="separator"in e?e.separator:i;t="length"in e?U(e.length):t,r="omission"in e?zn(e.omission):r}n=rn(n);var s=n.length;if(Qe(n)){var l=se(n);s=l.length}if(t>=s)return n;var f=t-je(r);if(f<1)return r;var c=l?Be(l,0,f).join(""):n.slice(0,f);if(i===o)return c+r;if(l&&(f+=c.length-f),nu(i)){if(n.slice(f).search(i)){var d,p=c;for(i.global||(i=gi(i.source,rn(Au.exec(i))+"g")),i.lastIndex=0;d=i.exec(p);)var g=d.index;c=c.slice(0,g===o?f:g)}}else if(n.indexOf(zn(i),f)!=f){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function jd(n){return n=rn(n),n&&fl.test(n)?n.replace(wu,Ef):n}var np=st(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),ru=qs("toUpperCase");function ko(n,e,t){return n=rn(n),e=t?o:e,e===o?If(n)?Of(n):df(n):n.match(e)||[]}var qo=K(function(n,e){try{return Kn(n,o,e)}catch(t){return ji(t)?t:new T(t)}}),ep=xe(function(n,e){return Yn(e,function(t){t=de(t),we(n,t,Ji(n[t],n))}),n});function tp(n){var e=n==null?0:n.length,t=C();return n=e?wn(n,function(r){if(typeof r[1]!="function")throw new Xn(A);return[t(r[0]),r[1]]}):[],K(function(r){for(var i=-1;++ice)return[];var t=pn,r=Pn(n,pn);e=C(e),n-=pn;for(var i=_i(r,e);++t0||e<0)?new k(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=U(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},k.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},k.prototype.toArray=function(){return this.take(pn)},he(k.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var l=this.__wrapped__,f=r?[1]:arguments,c=l instanceof k,d=f[0],p=c||$(l),g=function(z){var Y=i.apply(u,Ee([z],f));return r&&m?Y[0]:Y};p&&t&&typeof d=="function"&&d.length!=1&&(c=p=!1);var m=this.__chain__,I=!!this.__actions__.length,L=s&&!m,N=c&&!I;if(!s&&p){l=N?l:new k(this);var S=n.apply(l,f);return S.__actions__.push({func:Lr,args:[g],thisArg:o}),new Jn(S,m)}return L&&N?n.apply(this,f):(S=this.thru(g),L?r?S.value()[0]:S.value():S)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Jt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply($(s)?s:[],i)}return this[t](function(l){return e.apply($(l)?l:[],i)})}}),he(k.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";on.call(rt,r)||(rt[r]=[]),rt[r].push({name:e,func:t})}}),rt[mr(o,V).name]=[{name:"wrapper",func:o}],k.prototype.clone=jf,k.prototype.reverse=na,k.prototype.value=ea,u.prototype.at=Th,u.prototype.chain=Oh,u.prototype.commit=Ph,u.prototype.next=$h,u.prototype.plant=Wh,u.prototype.reverse=Fh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Uh,u.prototype.first=u.prototype.head,xt&&(u.prototype[xt]=Bh),u},nt=Pf();Fe?((Fe.exports=nt)._=nt,ui._=nt):En._=nt}).call(Wt)})(Fr,Fr.exports);var sv=Fr.exports;const ov=qp(sv),Dr=B=>(pu("data-v-064b4c9f"),B=B(),gu(),B),lv={class:"my-order"},fv=Dr(()=>v("div",{class:"nav-item-label"},"搜索 (Shift)",-1)),av={class:"nav-item-input"},cv={class:"shop-list","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},hv=["onClick"],_v={class:"shop-name"},dv={key:0,class:""},pv={key:1,class:"shop-price"},gv=Dr(()=>v("span",{class:"unit-name"},"商户价:",-1)),vv={key:0,class:"unit-name"},mv={key:2,class:"shop-price"},wv=Dr(()=>v("span",{class:"unit-name"},"原价: ",-1)),yv={class:"unit-name del"},xv={key:3,class:"shop-price"},Av={class:"unit-name"},Iv={key:4,class:"no-stock-re"},Cv=Dr(()=>v("div",null,[v("span",null,"次日提")],-1)),Lv=[Cv],Sv={key:1,class:"no-data"},Rv={__name:"shop",props:{storeList:{type:Array,default:()=>[]},priceKey:{type:Object,default:()=>({})},loading:{type:Boolean,default:()=>!1}},emits:["getStoreList","changeItem","loadMore"],setup(B,{expose:x,emit:o}){const E=R(null),q=o,Q=R(""),A=()=>{q("loadMore",{store_name:Q.value})},X=w=>{q("changeItem",w)},dn=ov.throttle(()=>{let w={store_name:Q.value};q("getStoreList",w,!0)},300);x({name:Q,inputBlur:()=>{var w;(w=E.value)==null||w.blur()}});const en=R(!1),W=()=>{en.value=!0},Cn=()=>{en.value=!1},H=()=>{var w;(w=E.value)==null||w.focus()};return Dt(()=>{_u(()=>{var w;(w=E.value)==null||w.focus(),W()}),re.on("shift",H)}),Nt(()=>{re.off("shift",H)}),(w,tn)=>{const F=nn("CircleClose"),V=nn("el-icon"),fn=nn("el-input"),an=nn("Search"),sn=nn("el-button"),cn=nn("el-image"),Z=nn("el-space"),O=nn("el-empty"),vn=Ft("loading"),P=Ft("infinite-scroll");return D(),J("div",lv,[v("div",{class:Wr(["header-nav",{"input-focus":en.value}])},[fv,v("div",av,[M(fn,{modelValue:Q.value,"onUpdate:modelValue":tn[1]||(tn[1]=b=>Q.value=b),placeholder:"搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索",ref_key:"codeRef",ref:E,onFocus:W,onBlur:Cn,onKeyup:Jo($r(dn),["enter"]),onClear:$r(dn),style:{"font-size":"1rem"}},{suffix:hn(()=>[Q.value!=""?(D(),Se(V,{key:0,size:"28",onClick:tn[0]||(tn[0]=b=>Q.value=""),style:{cursor:"pointer","margin-right":"1rem"}},{default:hn(()=>[M(F)]),_:1})):te("",!0)]),_:1},8,["modelValue","onKeyup","onClear"])]),v("div",{class:"nav-item-btn",onClick:tn[2]||(tn[2]=(...b)=>$r(dn)&&$r(dn)(...b))},[M(sn,{class:"btn",type:"primary"},{default:hn(()=>[M(V,null,{default:hn(()=>[M(an)]),_:1})]),_:1})])],2),du((D(),J("div",cv,[B.storeList.length?(D(),Se(Z,{key:0,wrap:"",size:14},{default:hn(()=>[(D(!0),J(Ut,null,Mt(B.storeList,(b,Tn)=>(D(),J("div",{class:"shop-item",key:Tn,onClick:On=>X(b)},[M(cn,{loading:"lazy",src:b.image},null,8,["src"]),v("div",_v,G(b.store_name),1),b.store_info!=""?(D(),J("div",dv,"规格:"+G(b.store_info),1)):te("",!0),B.priceKey.off_activity==1?(D(),J("div",pv,[gv,un(" ¥"),v("span",null,G(b[B.priceKey.price]),1),b.unit_name?(D(),J("span",vv,"/"+G(b.unit_name),1)):te("",!0)])):te("",!0),B.priceKey.off_activity==1?(D(),J("div",mv,[wv,un(),v("span",yv,"¥"+G(b[B.priceKey.op_price])+" /"+G(b.unit_name),1)])):(D(),J("div",xv,[un(" ¥"),v("span",null,G(b[B.priceKey.price]),1),v("span",Av,"/"+G(b.unit_name),1)])),b.stock<=0?(D(),J("div",Iv,Lv)):te("",!0)],8,hv))),128))]),_:1})):te("",!0),B.storeList.length?te("",!0):(D(),J("div",Sv,[M(O,{"image-size":200,description:"没有找到对应商品"})]))])),[[vn,B.loading],[P,A]])])}}},Ev=ct(Rv,[["__scopeId","data-v-064b4c9f"]]),Qo=B=>(pu("data-v-09c1bca4"),B=B(),gu(),B),bv={class:"shop"},Tv={class:"shop-info"},Ov={class:"shop-info-left"},Pv={class:"shop-info-right"},$v={class:"shop-info-right-top"},Bv={key:0,class:"shop-info-right-price"},Wv=Qo(()=>v("span",{class:"unit-name"},"商户价:",-1)),Fv={key:0,class:"unit-name"},Uv={key:1,class:"shop-info-right-price"},Mv=Qo(()=>v("span",{class:"unit-name"},"原价: ",-1)),Dv={class:"unit-name del"},Nv={key:2,class:"shop-info-right-price"},Gv={class:"unit-name"},Kv={class:"shop-sku"},Hv={class:"title"},zv={class:"sku"},kv={class:"dialog-footer"},qv={__name:"pupop",props:{priceKey:{type:Object,default:()=>({})}},emits:["changeItem"],setup(B,{expose:x,emit:o}){const E=R(!1),q=R(null),Q=H=>{E.value=H},A=R({}),X=R(!1),dn=R("add"),ln=(H,w="add")=>{dn.value=w,A.value=JSON.parse(JSON.stringify(H))},en=o,W=()=>{A.value.cart_num||(A.value.cart_num=A.value.batch>0?A.value.batch:1),en("changeItem",A.value),E.value=!1};x({show:Q,setForm:ln});const Cn=()=>{E.value&&W()};return Dt(()=>{re.on("enter",Cn)}),Nt(()=>{re.off("enter",Cn)}),(H,w)=>{const tn=nn("el-image"),F=nn("el-input-number"),V=nn("el-button"),fn=nn("el-dialog"),an=Ft("loading");return D(),Se(fn,{modelValue:E.value,"onUpdate:modelValue":w[1]||(w[1]=sn=>E.value=sn),title:"购买数量",width:"650",onOpened:w[2]||(w[2]=sn=>q.value.focus())},Vp({default:hn(()=>[du((D(),J("div",bv,[v("div",Tv,[v("div",Ov,[M(tn,{loading:"lazy",src:A.value.image},null,8,["src"])]),v("div",Pv,[v("div",$v,G(A.value.store_name),1),v("div",null,[B.priceKey.off_activity==1?(D(),J("div",Bv,[Wv,un(" ¥"),v("span",null,G(A.value[B.priceKey.price]),1),A.value.unit_name?(D(),J("span",Fv,"/"+G(A.value.unit_name),1)):te("",!0)])):te("",!0),B.priceKey.off_activity==1?(D(),J("div",Uv,[Mv,un(),v("span",Dv,"¥"+G(A.value[B.priceKey.op_price])+" /"+G(A.value.unit_name),1)])):(D(),J("div",Nv,[un(" ¥"),v("span",null,G(A.value[B.priceKey.price]),1),v("span",Gv,"/"+G(A.value.unit_name),1)]))])])]),v("div",Kv,[v("div",Hv,"购买数量 ( "+G(A.value.unit_name)+" )",1),v("div",zv,[M(F,{ref_key:"inputRef",ref:q,modelValue:A.value.cart_num,"onUpdate:modelValue":w[0]||(w[0]=sn=>A.value.cart_num=sn),placeholder:`请输入数量(默认为${+A.value.batch>0?A.value.batch:"1"})`,min:+A.value.batch>0?+A.value.batch:1,"step-strictly":"",step:1,style:{width:"20rem"},size:"large"},null,8,["modelValue","placeholder","min"])])])])),[[an,X.value]])]),_:2},[dn.value!="add"&&A.value.attr&&A.value.attr.length==1?void 0:{name:"footer",fn:hn(()=>[v("div",kv,[M(V,{class:"ok-btn",type:"primary",onClick:W},{default:hn(()=>[un(" 确定 (Enter) ")]),_:1})])]),key:"0"}]),1032,["modelValue"])}}},Vv=ct(qv,[["__scopeId","data-v-09c1bca4"]]),Zv=["onClick","onMousemove"],Yv=["onMousemove"],Xv={class:"title"},Jv={class:"list"},Qv=["onClick"],jv={__name:"classify",emits:["getStoreList"],setup(B,{emit:x}){const o=x,E=R([]),q=R([]),Q=R([]),A=R(-1),X=R(-1),dn=R(-1),ln=R(-1),en=R(!1),W=Mr();(()=>{cu({pid:0,page_no:1,page_size:30,level:1,store_id:W.userInfo.store_id}).then(F=>{E.value=F.data.lists,A.value=-1})})();const H=F=>{cu({pid:F,page_no:1,page_size:30,level:2,store_id:W.userInfo.store_id}).then(V=>{q.value=V.data.lists})},w=F=>{cu({pid:F,page_no:1,page_size:30,level:3,store_id:W.userInfo.store_id}).then(V=>{Q.value=V.data.lists})},tn=(F=-1,V=1)=>{ln.value=F,en.value=!0;let fn="";console.log(F,V),V==1?(A.value=F,X.value=-1,dn.value=-1,F!=-1&&(fn=E.value[F].id),H(fn),o("getStoreList",{top_cate_id:fn,two_cate_id:null},!0)):V==2&&(X.value=F,dn.value=-1,F!=-1&&(fn=q.value[F].id),w(fn),o("getStoreList",{two_cate_id:fn},!0))};return(F,V)=>{const fn=nn("el-popover");return D(),J("div",{class:"classify",onMouseout:V[2]||(V[2]=an=>en.value?en.value=!1:en.value=!0)},[v("div",{class:Wr(["itemP",{"itemP-active":A.value==-1}]),onClick:V[0]||(V[0]=an=>tn(-1))},G("全部"),2),(D(!0),J(Ut,null,Mt(E.value,(an,sn)=>(D(),Se(fn,{placement:"left",width:"20rem",trigger:"click",key:sn,visible:sn==A.value&&ln.value==sn},{reference:hn(()=>[v("div",{class:Wr(["itemP",{"itemP-active":sn==A.value}]),onClick:cn=>tn(sn),onMousemove:cn=>ln.value=sn},G(an.name),43,Zv)]),default:hn(()=>[v("div",{class:"active-card",onMouseout:V[1]||(V[1]=cn=>ln.value=-1),onMousemove:cn=>ln.value=sn},[v("div",Xv,G(an.name),1),v("div",Jv,[(D(!0),J(Ut,null,Mt(q.value,(cn,Z)=>(D(),J("div",{class:Wr({"list-active":Z==X.value}),link:"",type:"primary",key:cn.id,onClick:O=>tn(Z,2)},G(cn.name),11,Qv))),128))])],40,Yv)]),_:2},1032,["visible"]))),128))],32)}}},n1=ct(jv,[["__scopeId","data-v-4d5623b0"]]),Ur=class Ur{constructor(){au(this,"loadingInstance",null)}static getInstance(){return this.instance??(this.instance=new Ur)}msg(x){ke.info(x)}msgError(x){x!=="Network Error"&&ke.error(x)}msgSuccess(x){ke.success(x)}msgWarning(x){ke.warning(x)}alert(x){at.alert(x,"系统提示")}alertError(x){at.alert(x,"系统提示",{type:"error"})}alertSuccess(x){at.alert(x,"系统提示",{type:"success"})}alertWarning(x){at.alert(x,"系统提示",{type:"warning"})}notify(x){Br.info(x)}notifyError(x){Br.error(x)}notifySuccess(x){Br.success(x)}notifyWarning(x){Br.warning(x)}confirm(x){return at.confirm(x,"温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})}prompt(x,o,E){return at.prompt(x,o,{confirmButtonText:"确定",cancelButtonText:"取消",...E})}loading(x){this.loadingInstance=Zp.service({lock:!0,text:x})}closeLoading(){var x;(x=this.loadingInstance)==null||x.close()}};au(Ur,"instance",null);let hu=Ur;const e1=hu.getInstance(),t1={class:"my-card"},d1={__name:"index",setup(B){const x=R(null),o=R(null),E=R(null),q=R(null),Q=R([]),A=Yp({off_activity:"",op_price:"",price:""}),X=Mr(),dn=Xp(),ln=R({page_no:1,page_size:30}),en=R(!1),W=(O={},vn=!1)=>{var P;ln.value={...ln.value,...O},console.log("===",O,vn),vn&&(Q.value=[],ln.value.page_no=1,Cn.value=!1),O.top_cate_id===""&&(ln.value.store_name=null),en.value=!0,Qp({...ln.value,store_id:(P=X.userInfo)==null?void 0:P.store_id}).then(b=>{var Tn,On;en.value=!1;for(let Bn in b.data.extend)A[Bn]=b.data.extend[Bn];((On=(Tn=b.data)==null?void 0:Tn.lists)==null?void 0:On.length){Cn.value||W(O)};function w(O){return/^\d+$/.test(O)}const tn=(O,vn="")=>{let P={product_id:O.product_id,cart_num:O.cart_num,uid:ln.value.uid||null};Xo(P).then(b=>{o.value.getList()})},F=(O,vn)=>{x.value.setForm(O,"add"),x.value.show(!0)},V=O=>{x.value.setForm(O,"edit"),x.value.show(!0)},fn=R({}),an=async()=>{var b,Tn;let O=o.value.list.map(On=>On.id),vn={cart_id:O,uid:((Tn=(b=o.value)==null?void 0:b.userInfo)==null?void 0:Tn.uid)||""},{data:P}=await zp(vn);P.reservation>0&&await e1.confirm("部分商品暂无现货, 需要次日提货, 是否确认购买?"),o.value.discounts>0&&(vn.deduction_price=o.value.discounts.toFixed(2),vn.pay_type="micropay"),kp(vn).then(On=>{var Bn,ae,qe;fn.value=On.data.order,q.value.setForm({data:On.data.order,reservation:P.reservation,cart_id:O,uid:((ae=(Bn=o.value)==null?void 0:Bn.userInfo)==null?void 0:ae.uid)||"",is_storage:(qe=o.value)!=null&&qe.is_storage?1:0})}),q.value.drawer=!0},sn=()=>{var O,vn,P;if((O=o.value)!=null&&O.is_storage&&!((P=(vn=o.value)==null?void 0:vn.userInfo)!=null&&P.uid))return ke.error("选择用户才可以存货");an()},cn=(O=null)=>{setTimeout(()=>{o.value.resetView()})},Z=()=>{dn.name=="saleHome"&&(!q.value.drawer&&o.value.list.length>0?sn():q.value.beforeClose())};return Dt(()=>{W(),re.on("F9",Z)}),Nt(()=>{re.off("F9",Z)}),(O,vn)=>(D(),J("div",t1,[M(uv,{ref_key:"orderRef",ref:o,onGoPay:sn,onEditPupop:V,onGetStoreList:W},null,512),M(Yo),M(Ev,{ref_key:"shopRef",ref:E,style:{flex:"1"},storeList:Q.value,priceKey:A,loading:en.value,onGetStoreList:W,onChangeItem:F,onLoadMore:H},null,8,["storeList","priceKey","loading"]),M(Vv,{ref_key:"pupopRef",ref:x,priceKey:A,onChangeItem:tn},null,8,["priceKey"]),M(Yo),M(n1,{ref:"classifyRef",onGetStoreList:W},null,512),M(jp,{ref_key:"payRef",ref:q,onPaySuccess:cn},null,512)]))}};export{d1 as default}; diff --git a/build/assets/index-qH_tZlHY.js b/build/assets/index-9KTiHlqm.js similarity index 94% rename from build/assets/index-qH_tZlHY.js rename to build/assets/index-9KTiHlqm.js index 00ba57e..5dfc986 100644 --- a/build/assets/index-qH_tZlHY.js +++ b/build/assets/index-9KTiHlqm.js @@ -1 +1 @@ -import{a as B,b as L}from"./shop-DO-HIKTR.js";import{r as f,b as s,h as v,c as i,k as b,f as e,w as a,j as N,g as r,d,p as y,E as A}from"./index-CCL_aieW.js";import"./axiosAPI-XZKFUjoi.js";const D={class:"my-card put-storage"},I={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},U={__name:"index",setup(S){const u=f([]),t=f({page_no:1,page_size:20,loadend:!1,type:1}),_=f(!1),c=()=>{t.value.loadend||(_.value=!0,B({page_no:t.value.page_no,page_size:t.value.page_size,type:t.value.type}).then(n=>{u.value=[...u.value,...n.data.lists],n.data.lists.length{t.value.page_no=1,t.value.loadend=!1,u.value=[],c()},k=async n=>{L({id:n.id}).then(p=>{n.status=1,A.success("入库成功")})};return(n,p)=>{const g=s("el-radio-button"),x=s("el-radio-group"),o=s("el-table-column"),C=s("el-image"),m=s("el-tag"),V=s("el-button"),E=s("el-table"),w=v("loading"),z=v("infinite-scroll");return i(),b("div",D,[e(x,{style:{"margin-bottom":"20px"},modelValue:t.value.type,"onUpdate:modelValue":p[0]||(p[0]=l=>t.value.type=l),onChange:h},{default:a(()=>[e(g,{label:1,value:1},{default:a(()=>[r("售卖库存")]),_:1}),e(g,{label:2,value:2},{default:a(()=>[r("兑换库存")]),_:1})]),_:1},8,["modelValue"]),N((i(),b("div",I,[e(E,{data:u.value},{default:a(()=>[e(o,{label:"导入人员",prop:"admin_name"}),e(o,{label:"门店确认人员",prop:"staff_name"}),e(o,{label:"商品图",prop:"image"},{default:a(({row:l})=>[e(C,{class:"image",src:l.image},null,8,["src"])]),_:1}),e(o,{label:"商品",prop:"store_name"}),e(o,{label:"数量",prop:"nums"}),e(o,{label:"状态",prop:"status"},{default:a(({row:l})=>[l.status===1?(i(),d(m,{key:0,type:"success"},{default:a(()=>[r("已入库")]),_:1})):l.status===0?(i(),d(m,{key:1,type:"warning"},{default:a(()=>[r("待确认")]),_:1})):l.status===-1?(i(),d(m,{key:2,type:"danger"},{default:a(()=>[r("库存不足")]),_:1})):y("",!0)]),_:1}),e(o,{label:"备注",prop:"mark"}),e(o,{label:"操作",width:"120",fixed:"right"},{default:a(({row:l})=>[l.status==0?(i(),d(V,{key:0,type:"success",onClick:j=>k(l)},{default:a(()=>[r(" 确认入库 ")]),_:2},1032,["onClick"])):y("",!0)]),_:1})]),_:1},8,["data"])])),[[w,_.value],[z,c]])])}}};export{U as default}; +import{a as B,b as L}from"./shop-NV06cTZv.js";import{r as f,b as s,h as v,c as i,k as b,f as e,w as a,j as N,g as r,d,p as y,E as A}from"./index-D_5muR1B.js";import"./axiosAPI-B_pgHZLY.js";const D={class:"my-card put-storage"},I={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},U={__name:"index",setup(S){const u=f([]),t=f({page_no:1,page_size:20,loadend:!1,type:1}),_=f(!1),c=()=>{t.value.loadend||(_.value=!0,B({page_no:t.value.page_no,page_size:t.value.page_size,type:t.value.type}).then(n=>{u.value=[...u.value,...n.data.lists],n.data.lists.length{t.value.page_no=1,t.value.loadend=!1,u.value=[],c()},k=async n=>{L({id:n.id}).then(p=>{n.status=1,A.success("入库成功")})};return(n,p)=>{const g=s("el-radio-button"),x=s("el-radio-group"),o=s("el-table-column"),C=s("el-image"),m=s("el-tag"),V=s("el-button"),E=s("el-table"),w=v("loading"),z=v("infinite-scroll");return i(),b("div",D,[e(x,{style:{"margin-bottom":"20px"},modelValue:t.value.type,"onUpdate:modelValue":p[0]||(p[0]=l=>t.value.type=l),onChange:h},{default:a(()=>[e(g,{label:1,value:1},{default:a(()=>[r("售卖库存")]),_:1}),e(g,{label:2,value:2},{default:a(()=>[r("兑换库存")]),_:1})]),_:1},8,["modelValue"]),N((i(),b("div",I,[e(E,{data:u.value},{default:a(()=>[e(o,{label:"导入人员",prop:"admin_name"}),e(o,{label:"门店确认人员",prop:"staff_name"}),e(o,{label:"商品图",prop:"image"},{default:a(({row:l})=>[e(C,{class:"image",src:l.image},null,8,["src"])]),_:1}),e(o,{label:"商品",prop:"store_name"}),e(o,{label:"数量",prop:"nums"}),e(o,{label:"状态",prop:"status"},{default:a(({row:l})=>[l.status===1?(i(),d(m,{key:0,type:"success"},{default:a(()=>[r("已入库")]),_:1})):l.status===0?(i(),d(m,{key:1,type:"warning"},{default:a(()=>[r("待确认")]),_:1})):l.status===-1?(i(),d(m,{key:2,type:"danger"},{default:a(()=>[r("库存不足")]),_:1})):y("",!0)]),_:1}),e(o,{label:"备注",prop:"mark"}),e(o,{label:"操作",width:"120",fixed:"right"},{default:a(({row:l})=>[l.status==0?(i(),d(V,{key:0,type:"success",onClick:j=>k(l)},{default:a(()=>[r(" 确认入库 ")]),_:2},1032,["onClick"])):y("",!0)]),_:1})]),_:1},8,["data"])])),[[w,_.value],[z,c]])])}}};export{U as default}; diff --git a/build/assets/index-D1TivdSk.js b/build/assets/index-BR8Xg1iO.js similarity index 98% rename from build/assets/index-D1TivdSk.js rename to build/assets/index-BR8Xg1iO.js index 67313dc..6f4fd91 100644 --- a/build/assets/index-D1TivdSk.js +++ b/build/assets/index-BR8Xg1iO.js @@ -1 +1 @@ -import{_ as K,u as j,r as n,o as q,m as D,a as G,b as u,h as I,c as s,k as a,e,f as d,w as p,g as k,d as O,p as $,i as ee,j as F,F as te,l as se,z as A,t as l,q as H,s as J,I as oe}from"./index-CCL_aieW.js";import{u as ae,e as ie}from"./store-BNm3g_zr.js";import{h as E}from"./moment-Cl4UOzQZ.js";import{p as le}from"./pay-H92PK2lK.js";import{p as ne}from"./padding-CGiyqEPU.js";import"./authCode-C8sYYjUN.js";/* empty css */const Q=f=>(H("data-v-44031ac3"),f=f(),J(),f),de={class:"my-order"},_e={class:"header-nav"},ce=Q(()=>e("div",{class:"nav-item"},l("收银订单"),-1)),re={class:"nav-item-btn"},ue={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},pe=["onClick"],fe={class:"top"},me={class:"create-time"},he={class:"shop"},ye={class:"left"},ge={class:"shop-name"},ke=Q(()=>e("br",null,null,-1)),$e={style:{display:"block","font-size":"0.8rem",color:"#777"}},be={class:"right"},we={class:"money"},Ce={class:"count"},De={class:"bottom"},Se={class:"pay"},Ve={key:0},Ye={key:1},xe={key:2},ze={key:3},Pe={key:4},Ie={key:5},Re={key:1,style:{color:"#ff4a00"}},Me={key:0,class:"load-end"},Le={key:1,class:"load-end"},Be={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f,{expose:w}){j(),n([]);const t=n(1),m=r=>{_.value.page_no=1,b.value=!1,y.value=!1,c.value=[],g(!0)};n(null);const h=n(""),R=()=>{_.value.start_time=E(h.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=E(h.value[1]).format("YYYY-MM-DD 23:59:59"),g(!0)},S=r=>r.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:""}),y=n(!1),M=n(0),C=n(0),b=n(!1),c=n([]),g=(r=!1)=>{if(r)_.value.page_no=1;else if(b.value||y.value)return;y.value=!0,t.value==1&&(_.value.paid=null),t.value==2&&(_.value.paid=0),ae(_.value).then(i=>{r?c.value=i.data.lists:c.value=[...c.value,...i.data.lists],_.value.page_no==1&&c.value.length>0&&D.emit("set-sale-order-detail",c.value[0]),i.data.lists.length<_.value.page_size?b.value=!0:_.value.page_no++,C.value=0,console.log(_.value.page_no),M.value=i.data.count,y.value=!1}).catch(i=>{b.value=!0,y.value=!1})},L=(r,i)=>{C.value=i,D.emit("set-sale-order-detail",r)};return w({getOrderList:g}),q(()=>{D.on("update-sale-order-detail",r=>{console.log("==="),c.value[C.value].paid=1})}),G(()=>{D.off("update-sale-order-detail")}),(r,i)=>{const V=u("el-radio-button"),B=u("el-radio-group"),N=u("el-date-picker"),T=u("CircleClose"),Y=u("el-icon"),x=u("el-button"),z=u("el-input"),P=u("el-image"),W=u("spna"),X=I("loading"),Z=I("infinite-scroll");return s(),a("div",de,[e("div",_e,[ce,e("div",re,[d(B,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o),onChange:m,size:"small"},{default:p(()=>[d(V,{value:1},{default:p(()=>[k("全部")]),_:1}),d(V,{value:2},{default:p(()=>[k("未支付")]),_:1})]),_:1},8,["modelValue"]),d(N,{modelValue:h.value,"onUpdate:modelValue":i[1]||(i[1]=o=>h.value=o),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":S,onChange:R,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",ue,[d(z,{modelValue:_.value.order_id,"onUpdate:modelValue":i[4]||(i[4]=o=>_.value.order_id=o),placeholder:"请输入订单编号",onKeydown:i[5]||(i[5]=ee(o=>g(!0),["enter"])),onClear:i[6]||(i[6]=o=>g(!0))},{suffix:p(()=>[_.value.order_id!=""?(s(),O(Y,{key:0,size:"18",onClick:i[2]||(i[2]=o=>{_.value.order_id="",g(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:p(()=>[d(T)]),_:1})):$("",!0)]),append:p(()=>[d(x,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:i[3]||(i[3]=o=>g(!0))},{default:p(()=>[k("搜索")]),_:1})]),_:1},8,["modelValue"])]),F((s(),a("div",ve,[(s(!0),a(te,null,se(c.value,(o,U)=>(s(),a("div",{class:A(["item",{"item-active":C.value==U}]),key:U,onClick:Ft=>L(o,U)},[e("div",fe,[e("div",{class:A(["sn","cahier"])},"单号: "+l(o.order_id),1),e("div",me,l(o.update_time),1)]),e("div",he,[e("div",ye,[d(P,{src:o.store_name_img,class:"shop-img"},null,8,["src"]),e("div",ge,[k(l(o.store_name)+" ",1),ke,e("span",$e,l(o.store_info),1)])]),e("div",be,[e("div",we,"¥"+l(o.price),1),e("div",Ce,"共"+l(o.nums)+"款商品",1)])]),e("div",De,[e("div",Se,[o.paid?(s(),a("div",Ve,[k(l(o.paid_name)+" ",1),o.pay_type_name?(s(),O(W,{key:0},{default:p(()=>[k("("+l(o.pay_type_name)+")",1)]),_:2},1024)):o.pay_type==9?(s(),a("span",Ye,"(微信收款)")):o.pay_type==17?(s(),a("span",xe,"(现金支付)")):o.pay_type==13?(s(),a("span",ze,"(支付宝收款)")):o.pay_type==3?(s(),a("span",Pe,"(余额支付)")):o.pay_type==1?(s(),a("span",Ie,"(微信支付)")):$("",!0)])):(s(),a("div",Re,l(o.paid_name),1))])])],10,pe))),128)),b.value?(s(),a("div",Me,"没有更多了")):$("",!0),y.value?(s(),a("div",Le,"加载中...")):$("",!0)])),[[X,y.value],[Z,g]])])}}},Ne=K(Be,[["__scopeId","data-v-44031ac3"]]),v=f=>(H("data-v-065ffd6b"),f=f(),J(),f),Te={class:"my-order"},Ue={key:0,class:"detail"},Fe={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Oe=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Ae={class:"table-info"},Ee={class:"info-item"},Ke=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Ge=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),He={class:"info-item-info"},Je={class:"info-item"},Qe=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),We={class:"info-item-info"},Xe={class:"info-item"},Ze=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},dt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),_t={class:"info-item-info"},ct={class:"info-item"},rt=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ut={class:"info-item-info"},vt={key:0},pt={key:1},ft={key:2},mt={key:3},ht={key:4},yt={key:5},gt={key:0,class:"table-title"},kt={key:1,class:"table-info"},$t={class:"info-item"},bt=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),wt={class:"info-item-info"},Ct={class:"info-item"},Dt=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),St={class:"info-item-info"},Vt={class:"info-item"},Yt=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),xt={class:"info-item-info"},zt={style:{"font-size":"0.9rem"}},Pt={style:{color:"#ff4a00"}},It={style:{display:"flex","align-items":"center"}},Rt={style:{"margin-left":"0.5rem"}},Mt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),Lt={key:0,class:"footer"},Bt={key:1},Nt={__name:"detail",emits:["rePaySuccess"],setup(f,{emit:w}){j(),oe();const t=n({id:""});n([]);const m=n(null),h=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const R=()=>{m.value.setForm({isRePay:!0,data:t.value}),m.value.drawer=!0},S=n({page_no:1,page_size:15,loadend:!1,loading:!1}),_=n([]),y=()=>console.log("触底"),M=()=>{h.value=!0,ie({id:t.value.oid}).then(c=>{t.value=c.data,setTimeout(()=>{h.value=!1},200)})},C=w,b=(c=null)=>{setTimeout(()=>{C("rePaySuccess")})};return q(()=>{D.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,S.value.page_no=1,S.value.loadend=!1,S.value.loading=!1,_.value=[],M()})}),G(()=>{D.off("set-sale-order-detail")}),(c,g)=>{var Y;const L=u("el-image"),r=u("el-table-column"),i=u("el-table"),V=u("el-button"),B=u("el-empty"),N=I("infinite-scroll"),T=I("loading");return s(),a("div",Te,[t.value.id?F((s(),a("div",Ue,[F((s(),a("div",Fe,[Oe,e("div",Ae,[e("div",Ee,[Ke,e("div",je,l(t.value.order_id),1)]),e("div",qe,[Ge,e("div",He,l(t.value.total_num||0),1)]),e("div",Je,[Qe,e("div",We,"¥"+l(t.value.pay_price),1)]),e("div",Xe,[Ze,e("div",et,l(t.value.pay_time),1)]),e("div",tt,[st,e("div",ot,"¥"+l(t.value.deduction_price),1)]),e("div",at,[it,e("div",lt,"¥"+l(t.value.pay_price),1)]),e("div",nt,[dt,e("div",_t,l(t.value.pay_time),1)]),e("div",ct,[rt,e("div",ut,[t.value.pay_type_name?(s(),a("span",vt,l(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),a("span",pt,"微信收款")):t.value.pay_type==17?(s(),a("span",ft,"现金支付")):t.value.pay_type==13?(s(),a("span",mt,"支付宝收款")):t.value.pay_type==3?(s(),a("span",ht,"余额支付")):t.value.pay_type==1?(s(),a("span",yt,"微信支付")):$("",!0)])])]),t.value.uid?(s(),a("div",gt,"用户信息")):$("",!0),t.value.uid?(s(),a("div",kt,[e("div",$t,[bt,e("div",wt,l(t.value.uid),1)]),e("div",Ct,[Dt,e("div",St,l(t.value.nickname),1)]),e("div",Vt,[Yt,e("div",xt,l(t.value.mobile),1)])])):$("",!0),e("div",zt,[k(" 共计 "),e("span",Pt,l(((Y=t.value.product)==null?void 0:Y.length)||" "),1),k(" 款商品 ")]),d(i,{data:t.value.product},{default:p(()=>[d(r,{label:"商品信息"},{default:p(({row:x})=>{var z,P;return[e("div",It,[d(L,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(z=x.cart_info)==null?void 0:z.image},null,8,["src"]),e("span",Rt,l((P=x.cart_info)==null?void 0:P.name),1)])]}),_:1}),d(r,{prop:"cart_info.price",label:"单价",width:"150"}),d(r,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(r,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Mt])),[[N,y]]),t.value.paid?$("",!0):(s(),a("div",Lt,[d(V,{type:"primary",size:"large",onClick:R},{default:p(()=>[k("重新支付")]),_:1})]))])),[[T,h.value]]):(s(),a("div",Bt,[d(B)])),d(le,{ref_key:"payRef",ref:m,onPaySuccess:b},null,512)])}}},Tt=K(Nt,[["__scopeId","data-v-065ffd6b"]]),Ut={class:"my-card"},Ht={__name:"index",setup(f){const w=n(null),t=()=>{var m;(m=w.value)==null||m.getOrderList(!0)};return(m,h)=>(s(),a("div",Ut,[d(Ne,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:w},null,512),d(ne),d(Tt,{ref:"detailRef",onRePaySuccess:t},null,512)]))}};export{Ht as default}; +import{_ as K,u as j,r as n,o as q,m as D,a as G,b as u,h as I,c as s,k as a,e,f as d,w as p,g as k,d as O,p as $,i as ee,j as F,F as te,l as se,z as A,t as l,q as H,s as J,I as oe}from"./index-D_5muR1B.js";import{u as ae,e as ie}from"./store-SrwX7Uca.js";import{h as E}from"./moment-Cl4UOzQZ.js";import{p as le}from"./pay-CHuMd-xH.js";import{p as ne}from"./padding-DD0QsmkS.js";import"./authCode-BMBF_Y6x.js";/* empty css */const Q=f=>(H("data-v-44031ac3"),f=f(),J(),f),de={class:"my-order"},_e={class:"header-nav"},ce=Q(()=>e("div",{class:"nav-item"},l("收银订单"),-1)),re={class:"nav-item-btn"},ue={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},pe=["onClick"],fe={class:"top"},me={class:"create-time"},he={class:"shop"},ye={class:"left"},ge={class:"shop-name"},ke=Q(()=>e("br",null,null,-1)),$e={style:{display:"block","font-size":"0.8rem",color:"#777"}},be={class:"right"},we={class:"money"},Ce={class:"count"},De={class:"bottom"},Se={class:"pay"},Ve={key:0},Ye={key:1},xe={key:2},ze={key:3},Pe={key:4},Ie={key:5},Re={key:1,style:{color:"#ff4a00"}},Me={key:0,class:"load-end"},Le={key:1,class:"load-end"},Be={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f,{expose:w}){j(),n([]);const t=n(1),m=r=>{_.value.page_no=1,b.value=!1,y.value=!1,c.value=[],g(!0)};n(null);const h=n(""),R=()=>{_.value.start_time=E(h.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=E(h.value[1]).format("YYYY-MM-DD 23:59:59"),g(!0)},S=r=>r.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:""}),y=n(!1),M=n(0),C=n(0),b=n(!1),c=n([]),g=(r=!1)=>{if(r)_.value.page_no=1;else if(b.value||y.value)return;y.value=!0,t.value==1&&(_.value.paid=null),t.value==2&&(_.value.paid=0),ae(_.value).then(i=>{r?c.value=i.data.lists:c.value=[...c.value,...i.data.lists],_.value.page_no==1&&c.value.length>0&&D.emit("set-sale-order-detail",c.value[0]),i.data.lists.length<_.value.page_size?b.value=!0:_.value.page_no++,C.value=0,console.log(_.value.page_no),M.value=i.data.count,y.value=!1}).catch(i=>{b.value=!0,y.value=!1})},L=(r,i)=>{C.value=i,D.emit("set-sale-order-detail",r)};return w({getOrderList:g}),q(()=>{D.on("update-sale-order-detail",r=>{console.log("==="),c.value[C.value].paid=1})}),G(()=>{D.off("update-sale-order-detail")}),(r,i)=>{const V=u("el-radio-button"),B=u("el-radio-group"),N=u("el-date-picker"),T=u("CircleClose"),Y=u("el-icon"),x=u("el-button"),z=u("el-input"),P=u("el-image"),W=u("spna"),X=I("loading"),Z=I("infinite-scroll");return s(),a("div",de,[e("div",_e,[ce,e("div",re,[d(B,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=o=>t.value=o),onChange:m,size:"small"},{default:p(()=>[d(V,{value:1},{default:p(()=>[k("全部")]),_:1}),d(V,{value:2},{default:p(()=>[k("未支付")]),_:1})]),_:1},8,["modelValue"]),d(N,{modelValue:h.value,"onUpdate:modelValue":i[1]||(i[1]=o=>h.value=o),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":S,onChange:R,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",ue,[d(z,{modelValue:_.value.order_id,"onUpdate:modelValue":i[4]||(i[4]=o=>_.value.order_id=o),placeholder:"请输入订单编号",onKeydown:i[5]||(i[5]=ee(o=>g(!0),["enter"])),onClear:i[6]||(i[6]=o=>g(!0))},{suffix:p(()=>[_.value.order_id!=""?(s(),O(Y,{key:0,size:"18",onClick:i[2]||(i[2]=o=>{_.value.order_id="",g(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:p(()=>[d(T)]),_:1})):$("",!0)]),append:p(()=>[d(x,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:i[3]||(i[3]=o=>g(!0))},{default:p(()=>[k("搜索")]),_:1})]),_:1},8,["modelValue"])]),F((s(),a("div",ve,[(s(!0),a(te,null,se(c.value,(o,U)=>(s(),a("div",{class:A(["item",{"item-active":C.value==U}]),key:U,onClick:Ft=>L(o,U)},[e("div",fe,[e("div",{class:A(["sn","cahier"])},"单号: "+l(o.order_id),1),e("div",me,l(o.update_time),1)]),e("div",he,[e("div",ye,[d(P,{src:o.store_name_img,class:"shop-img"},null,8,["src"]),e("div",ge,[k(l(o.store_name)+" ",1),ke,e("span",$e,l(o.store_info),1)])]),e("div",be,[e("div",we,"¥"+l(o.price),1),e("div",Ce,"共"+l(o.nums)+"款商品",1)])]),e("div",De,[e("div",Se,[o.paid?(s(),a("div",Ve,[k(l(o.paid_name)+" ",1),o.pay_type_name?(s(),O(W,{key:0},{default:p(()=>[k("("+l(o.pay_type_name)+")",1)]),_:2},1024)):o.pay_type==9?(s(),a("span",Ye,"(微信收款)")):o.pay_type==17?(s(),a("span",xe,"(现金支付)")):o.pay_type==13?(s(),a("span",ze,"(支付宝收款)")):o.pay_type==3?(s(),a("span",Pe,"(余额支付)")):o.pay_type==1?(s(),a("span",Ie,"(微信支付)")):$("",!0)])):(s(),a("div",Re,l(o.paid_name),1))])])],10,pe))),128)),b.value?(s(),a("div",Me,"没有更多了")):$("",!0),y.value?(s(),a("div",Le,"加载中...")):$("",!0)])),[[X,y.value],[Z,g]])])}}},Ne=K(Be,[["__scopeId","data-v-44031ac3"]]),v=f=>(H("data-v-065ffd6b"),f=f(),J(),f),Te={class:"my-order"},Ue={key:0,class:"detail"},Fe={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Oe=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Ae={class:"table-info"},Ee={class:"info-item"},Ke=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Ge=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),He={class:"info-item-info"},Je={class:"info-item"},Qe=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),We={class:"info-item-info"},Xe={class:"info-item"},Ze=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},dt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),_t={class:"info-item-info"},ct={class:"info-item"},rt=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ut={class:"info-item-info"},vt={key:0},pt={key:1},ft={key:2},mt={key:3},ht={key:4},yt={key:5},gt={key:0,class:"table-title"},kt={key:1,class:"table-info"},$t={class:"info-item"},bt=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),wt={class:"info-item-info"},Ct={class:"info-item"},Dt=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),St={class:"info-item-info"},Vt={class:"info-item"},Yt=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),xt={class:"info-item-info"},zt={style:{"font-size":"0.9rem"}},Pt={style:{color:"#ff4a00"}},It={style:{display:"flex","align-items":"center"}},Rt={style:{"margin-left":"0.5rem"}},Mt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),Lt={key:0,class:"footer"},Bt={key:1},Nt={__name:"detail",emits:["rePaySuccess"],setup(f,{emit:w}){j(),oe();const t=n({id:""});n([]);const m=n(null),h=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const R=()=>{m.value.setForm({isRePay:!0,data:t.value}),m.value.drawer=!0},S=n({page_no:1,page_size:15,loadend:!1,loading:!1}),_=n([]),y=()=>console.log("触底"),M=()=>{h.value=!0,ie({id:t.value.oid}).then(c=>{t.value=c.data,setTimeout(()=>{h.value=!1},200)})},C=w,b=(c=null)=>{setTimeout(()=>{C("rePaySuccess")})};return q(()=>{D.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,S.value.page_no=1,S.value.loadend=!1,S.value.loading=!1,_.value=[],M()})}),G(()=>{D.off("set-sale-order-detail")}),(c,g)=>{var Y;const L=u("el-image"),r=u("el-table-column"),i=u("el-table"),V=u("el-button"),B=u("el-empty"),N=I("infinite-scroll"),T=I("loading");return s(),a("div",Te,[t.value.id?F((s(),a("div",Ue,[F((s(),a("div",Fe,[Oe,e("div",Ae,[e("div",Ee,[Ke,e("div",je,l(t.value.order_id),1)]),e("div",qe,[Ge,e("div",He,l(t.value.total_num||0),1)]),e("div",Je,[Qe,e("div",We,"¥"+l(t.value.pay_price),1)]),e("div",Xe,[Ze,e("div",et,l(t.value.pay_time),1)]),e("div",tt,[st,e("div",ot,"¥"+l(t.value.deduction_price),1)]),e("div",at,[it,e("div",lt,"¥"+l(t.value.pay_price),1)]),e("div",nt,[dt,e("div",_t,l(t.value.pay_time),1)]),e("div",ct,[rt,e("div",ut,[t.value.pay_type_name?(s(),a("span",vt,l(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),a("span",pt,"微信收款")):t.value.pay_type==17?(s(),a("span",ft,"现金支付")):t.value.pay_type==13?(s(),a("span",mt,"支付宝收款")):t.value.pay_type==3?(s(),a("span",ht,"余额支付")):t.value.pay_type==1?(s(),a("span",yt,"微信支付")):$("",!0)])])]),t.value.uid?(s(),a("div",gt,"用户信息")):$("",!0),t.value.uid?(s(),a("div",kt,[e("div",$t,[bt,e("div",wt,l(t.value.uid),1)]),e("div",Ct,[Dt,e("div",St,l(t.value.nickname),1)]),e("div",Vt,[Yt,e("div",xt,l(t.value.mobile),1)])])):$("",!0),e("div",zt,[k(" 共计 "),e("span",Pt,l(((Y=t.value.product)==null?void 0:Y.length)||" "),1),k(" 款商品 ")]),d(i,{data:t.value.product},{default:p(()=>[d(r,{label:"商品信息"},{default:p(({row:x})=>{var z,P;return[e("div",It,[d(L,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(z=x.cart_info)==null?void 0:z.image},null,8,["src"]),e("span",Rt,l((P=x.cart_info)==null?void 0:P.name),1)])]}),_:1}),d(r,{prop:"cart_info.price",label:"单价",width:"150"}),d(r,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(r,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Mt])),[[N,y]]),t.value.paid?$("",!0):(s(),a("div",Lt,[d(V,{type:"primary",size:"large",onClick:R},{default:p(()=>[k("重新支付")]),_:1})]))])),[[T,h.value]]):(s(),a("div",Bt,[d(B)])),d(le,{ref_key:"payRef",ref:m,onPaySuccess:b},null,512)])}}},Tt=K(Nt,[["__scopeId","data-v-065ffd6b"]]),Ut={class:"my-card"},Ht={__name:"index",setup(f){const w=n(null),t=()=>{var m;(m=w.value)==null||m.getOrderList(!0)};return(m,h)=>(s(),a("div",Ut,[d(Ne,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:w},null,512),d(ne),d(Tt,{ref:"detailRef",onRePaySuccess:t},null,512)]))}};export{Ht as default}; diff --git a/build/assets/index-sc4OLLDO.js b/build/assets/index-B_NPvce7.js similarity index 98% rename from build/assets/index-sc4OLLDO.js rename to build/assets/index-B_NPvce7.js index 0871697..abd3880 100644 --- a/build/assets/index-sc4OLLDO.js +++ b/build/assets/index-B_NPvce7.js @@ -1 +1 @@ -import{_ as E,u as K,r as n,o as P,m as w,a as j,b as r,h as x,c as s,k as i,e,f as d,w as c,g,d as B,p as k,i as ie,j as L,F,l as O,z as R,t as l,q,s as G,I as le}from"./index-CCL_aieW.js";import{d as ne,e as de}from"./store-BNm3g_zr.js";import{h as A}from"./moment-Cl4UOzQZ.js";/* empty css */import{p as _e}from"./padding-CGiyqEPU.js";const H=f=>(q("data-v-d16a314c"),f=f(),G(),f),ce={class:"my-order"},re={class:"header-nav"},ue=H(()=>e("div",{class:"nav-item"},l("线上订单"),-1)),ve={class:"nav-item-btn"},pe={class:"header-input"},fe={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},me=["onClick"],he={class:"top"},ye={class:"create-time"},ge={class:"shop"},ke={key:0,class:"left"},$e={key:0,class:"shop-name"},be={class:"right"},we={class:"money"},Ce={class:"count"},Ve={class:"bottom"},De={class:"pay"},Ye={key:0},xe={key:1},ze={key:2},Ie={key:3},Se={key:4},Me={key:5},Ue={key:1,style:{color:"#ff4a00"}},Be={key:0,class:"load-end"},Le={key:1,class:"load-end"},Ne=H(()=>e("span",null,"您有新订单了, 是否立即刷新",-1)),Te={class:"dialog-footer"},Fe={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f){K(),n([]);const o=n(1),C=p=>{_.value.page_no=1,m.value=!1,u.value=!1,h.value=[],y(!0)};n(null);const $=n(""),z=()=>{_.value.start_time=A($.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=A($.value[1]).format("YYYY-MM-DD 23:59:59"),y(!0)},I=p=>p.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:2}),u=n(!1),N=n(0),V=n(0),m=n(!1),h=n([]),y=(p=!1)=>{if(p)_.value.page_no=1;else if(m.value||u.value)return;u.value=!0,o.value==1&&(_.value.paid=null),o.value==2&&(_.value.paid=0),ne(_.value).then(a=>{p?h.value=a.data.lists:h.value=[...h.value,...a.data.lists],_.value.page_no==1&&h.value.length>0&&w.emit("set-sale-order-detail",h.value[0]),a.data.lists.length<_.value.page_size?m.value=!0:_.value.page_no++,V.value=0,N.value=a.data.count,u.value=!1}).catch(a=>{m.value=!0,u.value=!1})},S=(p,a)=>{V.value=a,w.emit("set-sale-order-detail",p)},b=n(!1);return P(()=>{w.on("update-sale-order-detail",p=>{console.log("==="),h.value[V.value].paid=1}),w.on("new_order",()=>{b.value||(b.value=!0)})}),j(()=>{w.off("update-sale-order-detail"),w.off("new_order")}),(p,a)=>{const D=r("el-radio-button"),Y=r("el-radio-group"),J=r("el-date-picker"),Q=r("CircleClose"),W=r("el-icon"),M=r("el-button"),X=r("el-input"),Z=r("el-image"),ee=r("spna"),te=r("el-dialog"),se=x("loading"),oe=x("infinite-scroll");return s(),i("div",ce,[e("div",re,[ue,e("div",ve,[d(Y,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=t=>o.value=t),onChange:C,size:"small"},{default:c(()=>[d(D,{value:1},{default:c(()=>[g("全部")]),_:1}),d(D,{value:2},{default:c(()=>[g("未支付")]),_:1})]),_:1},8,["modelValue"]),d(J,{modelValue:$.value,"onUpdate:modelValue":a[1]||(a[1]=t=>$.value=t),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":I,onChange:z,clearable:!1,style:{width:"10rem",margin:"0 0 0 1rem"}},null,8,["modelValue"])])]),e("div",pe,[d(X,{modelValue:_.value.order_id,"onUpdate:modelValue":a[4]||(a[4]=t=>_.value.order_id=t),placeholder:"请输入订单编号",onKeydown:a[5]||(a[5]=ie(t=>y(!0),["enter"])),onClear:a[6]||(a[6]=t=>y(!0))},{suffix:c(()=>[_.value.order_id!=""?(s(),B(W,{key:0,size:"18",onClick:a[2]||(a[2]=t=>{_.value.order_id="",y(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:c(()=>[d(Q)]),_:1})):k("",!0)]),append:c(()=>[d(M,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:a[3]||(a[3]=t=>y(!0))},{default:c(()=>[g("搜索")]),_:1})]),_:1},8,["modelValue"])]),L((s(),i("div",fe,[(s(!0),i(F,null,O(h.value,(t,U)=>(s(),i("div",{class:R(["item",{"item-active":V.value==U}]),key:U,onClick:T=>S(t,U)},[e("div",he,[e("div",{class:R(["sn","cahier"])},"单号: "+l(t.order_id),1),e("div",ye,l(t.pay_time),1)]),e("div",ge,[t.product_info?(s(),i("div",ke,[(s(!0),i(F,null,O(t.product_info.slice(0,5),(T,ae)=>(s(),B(Z,{key:ae,src:T.image,class:"shop-img"},null,8,["src"]))),128)),t.product_info.length==1?(s(),i("div",$e,l(t.product_info[0].store_name),1)):k("",!0)])):k("",!0),e("div",be,[e("div",we,"¥"+l(t.pay_price),1),e("div",Ce,"共"+l(t.total_num)+"款商品",1)])]),e("div",Ve,[e("div",De,[t.paid?(s(),i("div",Ye,[g(l(t.paid_name)+" ",1),t.pay_type_name?(s(),B(ee,{key:0},{default:c(()=>[g("("+l(t.pay_type_name)+")",1)]),_:2},1024)):t.pay_type==9?(s(),i("span",xe,"(微信收款)")):t.pay_type==17?(s(),i("span",ze,"(现金支付)")):t.pay_type==13?(s(),i("span",Ie,"(支付宝收款)")):t.pay_type==3?(s(),i("span",Se,"(余额支付)")):t.pay_type==1?(s(),i("span",Me,"(微信支付)")):k("",!0)])):(s(),i("div",Ue,l(t.paid_name),1))])])],10,me))),128)),m.value?(s(),i("div",Be,"没有更多了")):k("",!0),u.value?(s(),i("div",Le,"加载中...")):k("",!0)])),[[se,u.value],[oe,y]]),d(te,{modelValue:b.value,"onUpdate:modelValue":a[9]||(a[9]=t=>b.value=t),title:"新订单提醒",width:"500"},{footer:c(()=>[e("div",Te,[d(M,{onClick:a[7]||(a[7]=t=>b.value=!1)},{default:c(()=>[g("稍后刷新")]),_:1}),d(M,{type:"primary",onClick:a[8]||(a[8]=t=>{y(!0),b.value=!1})},{default:c(()=>[g(" 立即刷新 ")]),_:1})])]),default:c(()=>[Ne]),_:1},8,["modelValue"])])}}},Oe=E(Fe,[["__scopeId","data-v-d16a314c"]]),v=f=>(q("data-v-0f1c9a1a"),f=f(),G(),f),Re={class:"my-order"},Ae={key:0,class:"detail"},Ee={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ke=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Pe={class:"table-info"},je={class:"info-item"},qe=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),Ge={class:"info-item-info"},He={class:"info-item"},Je=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),Qe={class:"info-item-info"},We={class:"info-item"},Xe=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Ze={class:"info-item-info"},et={class:"info-item"},tt=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),st={class:"info-item-info"},ot={class:"info-item"},at=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),it={class:"info-item-info"},lt={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),dt={class:"info-item-info"},_t={class:"info-item"},ct=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),rt={class:"info-item-info"},ut={class:"info-item"},vt=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),pt={class:"info-item-info"},ft={key:0},mt={key:1},ht={key:2},yt={key:3},gt={key:4},kt={key:5},$t={key:0,class:"table-title"},bt={key:1,class:"table-info"},wt={class:"info-item"},Ct=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),Vt={class:"info-item-info"},Dt={class:"info-item"},Yt=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),xt={class:"info-item-info"},zt={class:"info-item"},It=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),St={class:"info-item-info"},Mt={style:{"font-size":"0.9rem"}},Ut={style:{color:"#ff4a00"}},Bt={style:{display:"flex","align-items":"center"}},Lt={style:{"margin-left":"0.5rem"}},Nt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),Tt={key:1},Ft={__name:"detail",setup(f){K(),le();const o=n({id:""});n([]),n(null);const C=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const $=n({page_no:1,page_size:15,loadend:!1,loading:!1}),z=n([]),I=()=>console.log("触底"),_=()=>{C.value=!0,de({id:o.value.id}).then(u=>{o.value=u.data,setTimeout(()=>{C.value=!1},200)})};return P(()=>{w.on("set-sale-order-detail",u=>{console.log("===",u),o.value=u,$.value.page_no=1,$.value.loadend=!1,$.value.loading=!1,z.value=[],_()})}),j(()=>{w.off("set-sale-order-detail")}),(u,N)=>{var p;const V=r("el-image"),m=r("el-table-column"),h=r("el-table"),y=r("el-empty"),S=x("infinite-scroll"),b=x("loading");return s(),i("div",Re,[o.value.id?L((s(),i("div",Ae,[L((s(),i("div",Ee,[Ke,e("div",Pe,[e("div",je,[qe,e("div",Ge,l(o.value.order_id),1)]),e("div",He,[Je,e("div",Qe,l(o.value.total_num||0),1)]),e("div",We,[Xe,e("div",Ze,"¥"+l(o.value.pay_price),1)]),e("div",et,[tt,e("div",st,l(o.value.pay_time),1)]),e("div",ot,[at,e("div",it,"¥"+l(o.value.deduction_price),1)]),e("div",lt,[nt,e("div",dt,"¥"+l(o.value.pay_price),1)]),e("div",_t,[ct,e("div",rt,l(o.value.pay_time),1)]),e("div",ut,[vt,e("div",pt,[o.value.pay_type_name?(s(),i("span",ft,l(o.value.pay_type_name),1)):o.value.pay_type==9?(s(),i("span",mt,"微信收款")):o.value.pay_type==17?(s(),i("span",ht,"现金支付")):o.value.pay_type==13?(s(),i("span",yt,"支付宝收款")):o.value.pay_type==3?(s(),i("span",gt,"余额支付")):o.value.pay_type==1?(s(),i("span",kt,"微信支付")):k("",!0)])])]),o.value.uid?(s(),i("div",$t,"用户信息")):k("",!0),o.value.uid?(s(),i("div",bt,[e("div",wt,[Ct,e("div",Vt,l(o.value.uid),1)]),e("div",Dt,[Yt,e("div",xt,l(o.value.nickname),1)]),e("div",zt,[It,e("div",St,l(o.value.mobile),1)])])):k("",!0),e("div",Mt,[g(" 共计 "),e("span",Ut,l(((p=o.value.product)==null?void 0:p.length)||" "),1),g(" 款商品 ")]),d(h,{data:o.value.product},{default:c(()=>[d(m,{label:"商品信息"},{default:c(({row:a})=>{var D,Y;return[e("div",Bt,[d(V,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(D=a.cart_info)==null?void 0:D.image},null,8,["src"]),e("span",Lt,l((Y=a.cart_info)==null?void 0:Y.name),1)])]}),_:1}),d(m,{prop:"cart_info.price",label:"单价",width:"150"}),d(m,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(m,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Nt])),[[S,I]])])),[[b,C.value]]):(s(),i("div",Tt,[d(y)]))])}}},Ot=E(Ft,[["__scopeId","data-v-0f1c9a1a"]]),Rt={class:"my-card"},qt={__name:"index",setup(f){return(o,C)=>(s(),i("div",Rt,[d(Oe,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),d(_e),d(Ot,{ref:"detailRef"},null,512)]))}};export{qt as default}; +import{_ as E,u as K,r as n,o as P,m as w,a as j,b as r,h as x,c as s,k as i,e,f as d,w as c,g,d as B,p as k,i as ie,j as L,F,l as O,z as R,t as l,q,s as G,I as le}from"./index-D_5muR1B.js";import{d as ne,e as de}from"./store-SrwX7Uca.js";import{h as A}from"./moment-Cl4UOzQZ.js";/* empty css */import{p as _e}from"./padding-DD0QsmkS.js";const H=f=>(q("data-v-d16a314c"),f=f(),G(),f),ce={class:"my-order"},re={class:"header-nav"},ue=H(()=>e("div",{class:"nav-item"},l("线上订单"),-1)),ve={class:"nav-item-btn"},pe={class:"header-input"},fe={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},me=["onClick"],he={class:"top"},ye={class:"create-time"},ge={class:"shop"},ke={key:0,class:"left"},$e={key:0,class:"shop-name"},be={class:"right"},we={class:"money"},Ce={class:"count"},Ve={class:"bottom"},De={class:"pay"},Ye={key:0},xe={key:1},ze={key:2},Ie={key:3},Se={key:4},Me={key:5},Ue={key:1,style:{color:"#ff4a00"}},Be={key:0,class:"load-end"},Le={key:1,class:"load-end"},Ne=H(()=>e("span",null,"您有新订单了, 是否立即刷新",-1)),Te={class:"dialog-footer"},Fe={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f){K(),n([]);const o=n(1),C=p=>{_.value.page_no=1,m.value=!1,u.value=!1,h.value=[],y(!0)};n(null);const $=n(""),z=()=>{_.value.start_time=A($.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=A($.value[1]).format("YYYY-MM-DD 23:59:59"),y(!0)},I=p=>p.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:2}),u=n(!1),N=n(0),V=n(0),m=n(!1),h=n([]),y=(p=!1)=>{if(p)_.value.page_no=1;else if(m.value||u.value)return;u.value=!0,o.value==1&&(_.value.paid=null),o.value==2&&(_.value.paid=0),ne(_.value).then(a=>{p?h.value=a.data.lists:h.value=[...h.value,...a.data.lists],_.value.page_no==1&&h.value.length>0&&w.emit("set-sale-order-detail",h.value[0]),a.data.lists.length<_.value.page_size?m.value=!0:_.value.page_no++,V.value=0,N.value=a.data.count,u.value=!1}).catch(a=>{m.value=!0,u.value=!1})},S=(p,a)=>{V.value=a,w.emit("set-sale-order-detail",p)},b=n(!1);return P(()=>{w.on("update-sale-order-detail",p=>{console.log("==="),h.value[V.value].paid=1}),w.on("new_order",()=>{b.value||(b.value=!0)})}),j(()=>{w.off("update-sale-order-detail"),w.off("new_order")}),(p,a)=>{const D=r("el-radio-button"),Y=r("el-radio-group"),J=r("el-date-picker"),Q=r("CircleClose"),W=r("el-icon"),M=r("el-button"),X=r("el-input"),Z=r("el-image"),ee=r("spna"),te=r("el-dialog"),se=x("loading"),oe=x("infinite-scroll");return s(),i("div",ce,[e("div",re,[ue,e("div",ve,[d(Y,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=t=>o.value=t),onChange:C,size:"small"},{default:c(()=>[d(D,{value:1},{default:c(()=>[g("全部")]),_:1}),d(D,{value:2},{default:c(()=>[g("未支付")]),_:1})]),_:1},8,["modelValue"]),d(J,{modelValue:$.value,"onUpdate:modelValue":a[1]||(a[1]=t=>$.value=t),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":I,onChange:z,clearable:!1,style:{width:"10rem",margin:"0 0 0 1rem"}},null,8,["modelValue"])])]),e("div",pe,[d(X,{modelValue:_.value.order_id,"onUpdate:modelValue":a[4]||(a[4]=t=>_.value.order_id=t),placeholder:"请输入订单编号",onKeydown:a[5]||(a[5]=ie(t=>y(!0),["enter"])),onClear:a[6]||(a[6]=t=>y(!0))},{suffix:c(()=>[_.value.order_id!=""?(s(),B(W,{key:0,size:"18",onClick:a[2]||(a[2]=t=>{_.value.order_id="",y(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:c(()=>[d(Q)]),_:1})):k("",!0)]),append:c(()=>[d(M,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:a[3]||(a[3]=t=>y(!0))},{default:c(()=>[g("搜索")]),_:1})]),_:1},8,["modelValue"])]),L((s(),i("div",fe,[(s(!0),i(F,null,O(h.value,(t,U)=>(s(),i("div",{class:R(["item",{"item-active":V.value==U}]),key:U,onClick:T=>S(t,U)},[e("div",he,[e("div",{class:R(["sn","cahier"])},"单号: "+l(t.order_id),1),e("div",ye,l(t.pay_time),1)]),e("div",ge,[t.product_info?(s(),i("div",ke,[(s(!0),i(F,null,O(t.product_info.slice(0,5),(T,ae)=>(s(),B(Z,{key:ae,src:T.image,class:"shop-img"},null,8,["src"]))),128)),t.product_info.length==1?(s(),i("div",$e,l(t.product_info[0].store_name),1)):k("",!0)])):k("",!0),e("div",be,[e("div",we,"¥"+l(t.pay_price),1),e("div",Ce,"共"+l(t.total_num)+"款商品",1)])]),e("div",Ve,[e("div",De,[t.paid?(s(),i("div",Ye,[g(l(t.paid_name)+" ",1),t.pay_type_name?(s(),B(ee,{key:0},{default:c(()=>[g("("+l(t.pay_type_name)+")",1)]),_:2},1024)):t.pay_type==9?(s(),i("span",xe,"(微信收款)")):t.pay_type==17?(s(),i("span",ze,"(现金支付)")):t.pay_type==13?(s(),i("span",Ie,"(支付宝收款)")):t.pay_type==3?(s(),i("span",Se,"(余额支付)")):t.pay_type==1?(s(),i("span",Me,"(微信支付)")):k("",!0)])):(s(),i("div",Ue,l(t.paid_name),1))])])],10,me))),128)),m.value?(s(),i("div",Be,"没有更多了")):k("",!0),u.value?(s(),i("div",Le,"加载中...")):k("",!0)])),[[se,u.value],[oe,y]]),d(te,{modelValue:b.value,"onUpdate:modelValue":a[9]||(a[9]=t=>b.value=t),title:"新订单提醒",width:"500"},{footer:c(()=>[e("div",Te,[d(M,{onClick:a[7]||(a[7]=t=>b.value=!1)},{default:c(()=>[g("稍后刷新")]),_:1}),d(M,{type:"primary",onClick:a[8]||(a[8]=t=>{y(!0),b.value=!1})},{default:c(()=>[g(" 立即刷新 ")]),_:1})])]),default:c(()=>[Ne]),_:1},8,["modelValue"])])}}},Oe=E(Fe,[["__scopeId","data-v-d16a314c"]]),v=f=>(q("data-v-0f1c9a1a"),f=f(),G(),f),Re={class:"my-order"},Ae={key:0,class:"detail"},Ee={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ke=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Pe={class:"table-info"},je={class:"info-item"},qe=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),Ge={class:"info-item-info"},He={class:"info-item"},Je=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),Qe={class:"info-item-info"},We={class:"info-item"},Xe=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Ze={class:"info-item-info"},et={class:"info-item"},tt=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),st={class:"info-item-info"},ot={class:"info-item"},at=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),it={class:"info-item-info"},lt={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),dt={class:"info-item-info"},_t={class:"info-item"},ct=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),rt={class:"info-item-info"},ut={class:"info-item"},vt=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),pt={class:"info-item-info"},ft={key:0},mt={key:1},ht={key:2},yt={key:3},gt={key:4},kt={key:5},$t={key:0,class:"table-title"},bt={key:1,class:"table-info"},wt={class:"info-item"},Ct=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),Vt={class:"info-item-info"},Dt={class:"info-item"},Yt=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),xt={class:"info-item-info"},zt={class:"info-item"},It=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),St={class:"info-item-info"},Mt={style:{"font-size":"0.9rem"}},Ut={style:{color:"#ff4a00"}},Bt={style:{display:"flex","align-items":"center"}},Lt={style:{"margin-left":"0.5rem"}},Nt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),Tt={key:1},Ft={__name:"detail",setup(f){K(),le();const o=n({id:""});n([]),n(null);const C=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const $=n({page_no:1,page_size:15,loadend:!1,loading:!1}),z=n([]),I=()=>console.log("触底"),_=()=>{C.value=!0,de({id:o.value.id}).then(u=>{o.value=u.data,setTimeout(()=>{C.value=!1},200)})};return P(()=>{w.on("set-sale-order-detail",u=>{console.log("===",u),o.value=u,$.value.page_no=1,$.value.loadend=!1,$.value.loading=!1,z.value=[],_()})}),j(()=>{w.off("set-sale-order-detail")}),(u,N)=>{var p;const V=r("el-image"),m=r("el-table-column"),h=r("el-table"),y=r("el-empty"),S=x("infinite-scroll"),b=x("loading");return s(),i("div",Re,[o.value.id?L((s(),i("div",Ae,[L((s(),i("div",Ee,[Ke,e("div",Pe,[e("div",je,[qe,e("div",Ge,l(o.value.order_id),1)]),e("div",He,[Je,e("div",Qe,l(o.value.total_num||0),1)]),e("div",We,[Xe,e("div",Ze,"¥"+l(o.value.pay_price),1)]),e("div",et,[tt,e("div",st,l(o.value.pay_time),1)]),e("div",ot,[at,e("div",it,"¥"+l(o.value.deduction_price),1)]),e("div",lt,[nt,e("div",dt,"¥"+l(o.value.pay_price),1)]),e("div",_t,[ct,e("div",rt,l(o.value.pay_time),1)]),e("div",ut,[vt,e("div",pt,[o.value.pay_type_name?(s(),i("span",ft,l(o.value.pay_type_name),1)):o.value.pay_type==9?(s(),i("span",mt,"微信收款")):o.value.pay_type==17?(s(),i("span",ht,"现金支付")):o.value.pay_type==13?(s(),i("span",yt,"支付宝收款")):o.value.pay_type==3?(s(),i("span",gt,"余额支付")):o.value.pay_type==1?(s(),i("span",kt,"微信支付")):k("",!0)])])]),o.value.uid?(s(),i("div",$t,"用户信息")):k("",!0),o.value.uid?(s(),i("div",bt,[e("div",wt,[Ct,e("div",Vt,l(o.value.uid),1)]),e("div",Dt,[Yt,e("div",xt,l(o.value.nickname),1)]),e("div",zt,[It,e("div",St,l(o.value.mobile),1)])])):k("",!0),e("div",Mt,[g(" 共计 "),e("span",Ut,l(((p=o.value.product)==null?void 0:p.length)||" "),1),g(" 款商品 ")]),d(h,{data:o.value.product},{default:c(()=>[d(m,{label:"商品信息"},{default:c(({row:a})=>{var D,Y;return[e("div",Bt,[d(V,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(D=a.cart_info)==null?void 0:D.image},null,8,["src"]),e("span",Lt,l((Y=a.cart_info)==null?void 0:Y.name),1)])]}),_:1}),d(m,{prop:"cart_info.price",label:"单价",width:"150"}),d(m,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(m,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Nt])),[[S,I]])])),[[b,C.value]]):(s(),i("div",Tt,[d(y)]))])}}},Ot=E(Ft,[["__scopeId","data-v-0f1c9a1a"]]),Rt={class:"my-card"},qt={__name:"index",setup(f){return(o,C)=>(s(),i("div",Rt,[d(Oe,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),d(_e),d(Ot,{ref:"detailRef"},null,512)]))}};export{qt as default}; diff --git a/build/assets/index-Cndx3WEI.js b/build/assets/index-BdSiZSDt.js similarity index 84% rename from build/assets/index-Cndx3WEI.js rename to build/assets/index-BdSiZSDt.js index d923cb7..0ab9741 100644 --- a/build/assets/index-Cndx3WEI.js +++ b/build/assets/index-BdSiZSDt.js @@ -1 +1 @@ -import{b as t,c,k as a,e,f as o,w as d,g as l}from"./index-CCL_aieW.js";const r={style:{width:"100vw",height:"100vh"}},_={style:{display:"flex","justify-content":"center","padding-top":"20vh"}},m={style:{display:"flex","flex-direction":"column","justify-content":"center","padding-left":"3rem"}},p=e("div",{style:{"font-size":"5rem","font-weight":"bold"}},"404",-1),h=e("div",{style:{"padding-bottom":"1rem"}},"您的页面没有找到",-1),v={__name:"index",setup(f){const s=()=>{window.location="/"};return(y,g)=>{const n=t("el-image"),i=t("el-button");return c(),a("div",r,[e("div",_,[o(n,{loading:"lazy",style:{width:"30rem",height:"20rem"},src:"/src/assets/icon-404-color.svg"}),e("div",m,[p,h,o(i,{type:"primary",onClick:s},{default:d(()=>[l("返回首页")]),_:1})])])])}}};export{v as default}; +import{b as t,c,k as a,e,f as o,w as d,g as l}from"./index-D_5muR1B.js";const r={style:{width:"100vw",height:"100vh"}},_={style:{display:"flex","justify-content":"center","padding-top":"20vh"}},m={style:{display:"flex","flex-direction":"column","justify-content":"center","padding-left":"3rem"}},p=e("div",{style:{"font-size":"5rem","font-weight":"bold"}},"404",-1),h=e("div",{style:{"padding-bottom":"1rem"}},"您的页面没有找到",-1),v={__name:"index",setup(f){const s=()=>{window.location="/"};return(y,g)=>{const n=t("el-image"),i=t("el-button");return c(),a("div",r,[e("div",_,[o(n,{loading:"lazy",style:{width:"30rem",height:"20rem"},src:"/src/assets/icon-404-color.svg"}),e("div",m,[p,h,o(i,{type:"primary",onClick:s},{default:d(()=>[l("返回首页")]),_:1})])])])}}};export{v as default}; diff --git a/build/assets/index-gqz6nr-u.css b/build/assets/index-Bl7sBKmH.css similarity index 84% rename from build/assets/index-gqz6nr-u.css rename to build/assets/index-Bl7sBKmH.css index b2febc6..497c839 100644 --- a/build/assets/index-gqz6nr-u.css +++ b/build/assets/index-Bl7sBKmH.css @@ -1 +1 @@ -@charset "UTF-8";.dialog-footer .ok-btn[data-v-924edcc0]{width:100%;height:2.5rem;border-radius:2.5rem}.price[data-v-924edcc0]{border-top:.0625rem solid #eee;padding-top:1rem}.price .flex[data-v-924edcc0]{display:flex}.check-user-list[data-v-7ac34513]{border-radius:1.2rem;height:70vh;background-color:#fff;width:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.check-user-list .header-nav[data-v-7ac34513]{display:flex;justify-content:space-between;padding:1rem}.check-user-list .header-nav span[data-v-7ac34513]{color:#ff4a00}.check-user-list .header-nav .nav-item[data-v-7ac34513]{font-weight:700}.check-user-list .header-input[data-v-7ac34513]{padding:1rem;padding-top:0;border-bottom:.0625rem solid #eee}.check-user-list .order-lists[data-v-7ac34513]{flex:1;overflow-y:auto;display:flex;flex-wrap:wrap;justify-content:flex-start}.check-user-list .order-lists .item[data-v-7ac34513]{width:45%;height:7rem;border-radius:.5rem;cursor:pointer;box-sizing:border-box;padding:1rem;margin:.5rem;background-color:#f5f5f5;display:flex}.check-user-list .order-lists .item .avatar[data-v-7ac34513]{height:4rem;width:4rem;border-radius:50%;margin-right:1rem;flex-shrink:0}.check-user-list .order-lists .item .flex-between[data-v-7ac34513]{display:flex;justify-content:space-between;align-items:center}.check-user-list .order-lists .item .flex[data-v-7ac34513]{display:flex;flex-wrap:wrap}.check-user-list .order-lists .item .bold[data-v-7ac34513]{font-weight:700}.check-user-list .order-lists .item .r-1[data-v-7ac34513]{margin-right:1rem}.check-user-list .order-lists .item .bottom>div[data-v-7ac34513]{width:50%}.check-user-list .order-lists .item .red[data-v-7ac34513]{color:#ff4a00}.check-user-list .order-lists .item-active[data-v-7ac34513]{background-color:#efefef}.check-user-list .load-end[data-v-7ac34513]{text-align:center;padding:1rem;color:#333;font-size:.8rem;width:100%;height:100%}.my-order[data-v-99f6f26d]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .user-nav .user-info[data-v-99f6f26d]{padding:1rem;margin:1rem;margin-bottom:0;border:.125rem solid #f70;background-color:#ff77001a;border-radius:.5rem;display:flex}.my-order .user-nav .user-info .avatar[data-v-99f6f26d]{width:3rem;height:3rem;flex-shrink:0}.my-order .user-nav .user-info .info[data-v-99f6f26d]{flex:1;margin-left:1rem;color:#666}.my-order .user-nav .user-info .info .flex-bewteen[data-v-99f6f26d]{display:flex;justify-content:space-between}.my-order .user-nav .user-info .info .change-user[data-v-99f6f26d]{font-size:1rem}.my-order .user-nav .user-info .info .user-money[data-v-99f6f26d]{display:flex;flex:1;flex-wrap:wrap}.my-order .user-nav .user-info .info .user-money>div[data-v-99f6f26d]{flex-shrink:0}.my-order .header-nav[data-v-99f6f26d]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem;border-bottom:.0625rem solid #eee}.my-order .header-nav span[data-v-99f6f26d]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-99f6f26d]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .order-list[data-v-99f6f26d]{flex:1;overflow-y:auto;padding-bottom:10rem}.my-order .order-list .order-item[data-v-99f6f26d]{display:flex;padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-list .order-item .order-item-img[data-v-99f6f26d]{width:5rem;height:5rem;border-radius:.5rem}.my-order .order-list .order-item .order-item-info[data-v-99f6f26d]{flex:1;box-sizing:border-box;padding-left:.75rem;display:flex;flex-direction:column;justify-content:space-between}.my-order .order-list .order-item .order-item-info>div[data-v-99f6f26d]{display:flex;align-items:center;justify-content:space-between}.my-order .order-list .order-item .order-item-info .order-item-title .title[data-v-99f6f26d]{width:18rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.my-order .order-list .order-item .order-item-info .order-item-title .delete[data-v-99f6f26d]{color:#1890ff;cursor:pointer}.my-order .order-list .order-item .order-item-info .order-item-sku[data-v-99f6f26d]{cursor:pointer;font-size:.8rem;color:#999}.my-order .order-footer[data-v-99f6f26d]{position:absolute;bottom:0;left:0;z-index:20;width:100%;box-shadow:0 -.0625rem .625rem #eee;background-color:#fff}.my-order .order-footer .order-total[data-v-99f6f26d]{height:3.5rem;padding:1rem 2rem;display:flex;justify-content:space-between;border-bottom:.0625rem solid #eee;align-items:center}.my-order .order-footer .order-total .price[data-v-99f6f26d]{display:flex;align-items:center}.my-order .order-footer .order-total .price .total-item[data-v-99f6f26d]{padding-right:1.5rem}.my-order .order-footer .order-total .price .total-item span[data-v-99f6f26d]{color:#f5222d}.my-order .order-footer .order-total .update-price .btn[data-v-99f6f26d]{border-radius:3rem}.my-order .order-footer .order-btn[data-v-99f6f26d]{height:3.2rem;padding:1rem 1.5rem}.my-order .order-footer .order-btn .btn[data-v-99f6f26d]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}.my-order[data-v-0842d958]{height:100%;box-sizing:border-box;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .header-nav[data-v-0842d958]{border-radius:.8rem;background-color:#fff;display:flex;justify-content:space-between;overflow:hidden;width:auto;border:.0625rem solid rgba(0,0,0,0)}.my-order .header-nav .nav-item-label[data-v-0842d958]{width:7rem;height:3rem;box-sizing:border-box;text-align:center;line-height:3rem}.my-order .header-nav .nav-item-input[data-v-0842d958]{flex:1}.my-order .header-nav .nav-item-input .el-input[data-v-0842d958]{width:100%;height:100%}.my-order .header-nav .nav-item-input[data-v-0842d958] .el-input__wrapper{border:none!important;box-shadow:none!important;text-align:center}.my-order .header-nav .nav-item-btn[data-v-0842d958]{width:5rem}.my-order .header-nav .nav-item-btn .btn[data-v-0842d958]{width:100%;height:100%;border-radius:0;font-size:1.6rem}.my-order .input-focus[data-v-0842d958]{border:.0625rem solid #1890ff}.my-order .shop-list[data-v-0842d958]{flex:1;width:auto;overflow-y:auto;box-sizing:border-box;padding-top:1.25rem}.my-order .shop-list .shop-item[data-v-0842d958]{width:11.5rem;height:16rem;cursor:pointer;background-color:#fff;border-radius:1rem;padding:.7rem;display:flex;justify-content:space-between;flex-direction:column;position:relative;overflow:hidden}.my-order .shop-list .shop-item .el-image[data-v-0842d958]{border-radius:.5rem;width:11.5rem;height:11.5rem}.my-order .shop-list .shop-item .shop-name[data-v-0842d958]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;margin-top:.5rem}.my-order .shop-list .shop-item .shop-price[data-v-0842d958]{font-size:.8rem;color:#f5222d}.my-order .shop-list .shop-item .shop-price span[data-v-0842d958]{font-size:1.2rem;margin-left:.187rem}.my-order .shop-list .shop-item .shop-price .unit-name[data-v-0842d958]{color:#777;font-size:.9rem}.my-order .shop-list .shop-item .shop-price .del[data-v-0842d958]{text-decoration:line-through}.my-order .shop-list .shop-item[data-v-0842d958]:hover{background-color:#1890ff;color:#fff}.my-order .shop-list .shop-item:hover .shop-price[data-v-0842d958],.my-order .shop-list .shop-item:hover .unit-name[data-v-0842d958]{color:#fff}.my-order .shop-list .shop-item .no-stock[data-v-0842d958]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0003;display:flex;justify-content:center;align-items:center}.my-order .shop-list .shop-item .no-stock div[data-v-0842d958]{background-color:#4e4e4e;color:#fff;border-radius:50%;width:5rem;height:5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}.my-order .shop-list .shop-item .no-stock-re[data-v-0842d958]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000001a;display:flex;justify-content:center;align-items:center}.my-order .shop-list .shop-item .no-stock-re div[data-v-0842d958]{background-color:#1890ffcc;color:#fff;border-radius:50%;width:5rem;height:5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-footer .ok-btn[data-v-09c1bca4]{width:100%;height:2.5rem;border-radius:2.5rem}.shop[data-v-09c1bca4]{border-top:.0625rem solid #eee;padding-top:1rem}.shop .shop-info[data-v-09c1bca4]{display:flex}.shop .shop-info .shop-info-left[data-v-09c1bca4]{flex-shrink:0;margin-right:.8rem;height:8rem;width:8rem;overflow:hidden;border-radius:.5rem}.shop .shop-info .shop-info-right[data-v-09c1bca4]{display:flex;flex-direction:column;justify-content:space-between}.shop .shop-info .shop-info-right .shop-info-right-top[data-v-09c1bca4]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2;font-size:1.1rem}.shop .shop-info .shop-info-right .shop-info-right-center[data-v-09c1bca4]{font-size:.8rem}.shop .shop-info .shop-info-right .shop-info-right-price[data-v-09c1bca4]{color:#ff4a00;font-size:1.2rem;font-weight:700}.shop .shop-info .shop-info-right .shop-info-right-price span[data-v-09c1bca4]{font-size:1.4rem;margin-left:.2rem}.shop .shop-info .shop-info-right .shop-info-right-price .unit-name[data-v-09c1bca4]{font-size:.9rem;color:#999;font-weight:400}.shop .shop-info .shop-info-right .shop-info-right-price .del[data-v-09c1bca4]{text-decoration:line-through}.shop .shop-sku[data-v-09c1bca4]{display:flex;align-items:center;justify-content:space-between;margin:1rem 0}.classify[data-v-4d5623b0]{height:100%;width:8rem;background-color:#fff;border-radius:1.2rem;font-size:1rem;color:#333;overflow-y:scroll}.classify .itemP[data-v-4d5623b0]{width:4rem;margin:1rem;padding:.5rem 1rem;text-align:center;border-radius:3rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.classify .itemP-active[data-v-4d5623b0]{background-color:#1890ff;color:#fff}.active-card .title[data-v-4d5623b0]{font-size:1.1rem;font-weight:700;color:#333}.active-card .list[data-v-4d5623b0]{display:flex;flex-wrap:wrap}.active-card .list div[data-v-4d5623b0]{margin-right:1rem;margin-top:.5rem;cursor:pointer;color:#333}.active-card .list .list-active[data-v-4d5623b0]{color:#1890ff}[data-v-4d5623b0]::-webkit-scrollbar{display:none}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1;margin:1.25rem 0}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999} +@charset "UTF-8";.dialog-footer .ok-btn[data-v-924edcc0]{width:100%;height:2.5rem;border-radius:2.5rem}.price[data-v-924edcc0]{border-top:.0625rem solid #eee;padding-top:1rem}.price .flex[data-v-924edcc0]{display:flex}.check-user-list[data-v-7ac34513]{border-radius:1.2rem;height:70vh;background-color:#fff;width:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.check-user-list .header-nav[data-v-7ac34513]{display:flex;justify-content:space-between;padding:1rem}.check-user-list .header-nav span[data-v-7ac34513]{color:#ff4a00}.check-user-list .header-nav .nav-item[data-v-7ac34513]{font-weight:700}.check-user-list .header-input[data-v-7ac34513]{padding:1rem;padding-top:0;border-bottom:.0625rem solid #eee}.check-user-list .order-lists[data-v-7ac34513]{flex:1;overflow-y:auto;display:flex;flex-wrap:wrap;justify-content:flex-start}.check-user-list .order-lists .item[data-v-7ac34513]{width:45%;height:7rem;border-radius:.5rem;cursor:pointer;box-sizing:border-box;padding:1rem;margin:.5rem;background-color:#f5f5f5;display:flex}.check-user-list .order-lists .item .avatar[data-v-7ac34513]{height:4rem;width:4rem;border-radius:50%;margin-right:1rem;flex-shrink:0}.check-user-list .order-lists .item .flex-between[data-v-7ac34513]{display:flex;justify-content:space-between;align-items:center}.check-user-list .order-lists .item .flex[data-v-7ac34513]{display:flex;flex-wrap:wrap}.check-user-list .order-lists .item .bold[data-v-7ac34513]{font-weight:700}.check-user-list .order-lists .item .r-1[data-v-7ac34513]{margin-right:1rem}.check-user-list .order-lists .item .bottom>div[data-v-7ac34513]{width:50%}.check-user-list .order-lists .item .red[data-v-7ac34513]{color:#ff4a00}.check-user-list .order-lists .item-active[data-v-7ac34513]{background-color:#efefef}.check-user-list .load-end[data-v-7ac34513]{text-align:center;padding:1rem;color:#333;font-size:.8rem;width:100%;height:100%}.my-order[data-v-99f6f26d]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .user-nav .user-info[data-v-99f6f26d]{padding:1rem;margin:1rem;margin-bottom:0;border:.125rem solid #f70;background-color:#ff77001a;border-radius:.5rem;display:flex}.my-order .user-nav .user-info .avatar[data-v-99f6f26d]{width:3rem;height:3rem;flex-shrink:0}.my-order .user-nav .user-info .info[data-v-99f6f26d]{flex:1;margin-left:1rem;color:#666}.my-order .user-nav .user-info .info .flex-bewteen[data-v-99f6f26d]{display:flex;justify-content:space-between}.my-order .user-nav .user-info .info .change-user[data-v-99f6f26d]{font-size:1rem}.my-order .user-nav .user-info .info .user-money[data-v-99f6f26d]{display:flex;flex:1;flex-wrap:wrap}.my-order .user-nav .user-info .info .user-money>div[data-v-99f6f26d]{flex-shrink:0}.my-order .header-nav[data-v-99f6f26d]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem;border-bottom:.0625rem solid #eee}.my-order .header-nav span[data-v-99f6f26d]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-99f6f26d]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .order-list[data-v-99f6f26d]{flex:1;overflow-y:auto;padding-bottom:10rem}.my-order .order-list .order-item[data-v-99f6f26d]{display:flex;padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-list .order-item .order-item-img[data-v-99f6f26d]{width:5rem;height:5rem;border-radius:.5rem}.my-order .order-list .order-item .order-item-info[data-v-99f6f26d]{flex:1;box-sizing:border-box;padding-left:.75rem;display:flex;flex-direction:column;justify-content:space-between}.my-order .order-list .order-item .order-item-info>div[data-v-99f6f26d]{display:flex;align-items:center;justify-content:space-between}.my-order .order-list .order-item .order-item-info .order-item-title .title[data-v-99f6f26d]{width:18rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.my-order .order-list .order-item .order-item-info .order-item-title .delete[data-v-99f6f26d]{color:#1890ff;cursor:pointer}.my-order .order-list .order-item .order-item-info .order-item-sku[data-v-99f6f26d]{cursor:pointer;font-size:.8rem;color:#999}.my-order .order-footer[data-v-99f6f26d]{position:absolute;bottom:0;left:0;z-index:20;width:100%;box-shadow:0 -.0625rem .625rem #eee;background-color:#fff}.my-order .order-footer .order-total[data-v-99f6f26d]{height:3.5rem;padding:1rem 2rem;display:flex;justify-content:space-between;border-bottom:.0625rem solid #eee;align-items:center}.my-order .order-footer .order-total .price[data-v-99f6f26d]{display:flex;align-items:center}.my-order .order-footer .order-total .price .total-item[data-v-99f6f26d]{padding-right:1.5rem}.my-order .order-footer .order-total .price .total-item span[data-v-99f6f26d]{color:#f5222d}.my-order .order-footer .order-total .update-price .btn[data-v-99f6f26d]{border-radius:3rem}.my-order .order-footer .order-btn[data-v-99f6f26d]{height:3.2rem;padding:1rem 1.5rem}.my-order .order-footer .order-btn .btn[data-v-99f6f26d]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}.my-order[data-v-064b4c9f]{height:100%;box-sizing:border-box;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .header-nav[data-v-064b4c9f]{border-radius:.8rem;background-color:#fff;display:flex;justify-content:space-between;overflow:hidden;width:auto;border:.0625rem solid rgba(0,0,0,0)}.my-order .header-nav .nav-item-label[data-v-064b4c9f]{width:7rem;height:3rem;box-sizing:border-box;text-align:center;line-height:3rem}.my-order .header-nav .nav-item-input[data-v-064b4c9f]{flex:1}.my-order .header-nav .nav-item-input .el-input[data-v-064b4c9f]{width:100%;height:100%}.my-order .header-nav .nav-item-input[data-v-064b4c9f] .el-input__wrapper{border:none!important;box-shadow:none!important;text-align:center}.my-order .header-nav .nav-item-btn[data-v-064b4c9f]{width:5rem}.my-order .header-nav .nav-item-btn .btn[data-v-064b4c9f]{width:100%;height:100%;border-radius:0;font-size:1.6rem}.my-order .input-focus[data-v-064b4c9f]{border:.0625rem solid #1890ff}.my-order .shop-list[data-v-064b4c9f]{flex:1;width:auto;overflow-y:auto;box-sizing:border-box;padding-top:1.25rem}.my-order .shop-list .shop-item[data-v-064b4c9f]{width:11.5rem;height:16rem;cursor:pointer;background-color:#fff;border-radius:1rem;padding:.7rem;display:flex;justify-content:space-between;flex-direction:column;position:relative;overflow:hidden}.my-order .shop-list .shop-item .el-image[data-v-064b4c9f]{border-radius:.5rem;width:11.5rem;height:11.5rem}.my-order .shop-list .shop-item .shop-name[data-v-064b4c9f]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;margin-top:.5rem}.my-order .shop-list .shop-item .shop-price[data-v-064b4c9f]{font-size:.8rem;color:#f5222d}.my-order .shop-list .shop-item .shop-price span[data-v-064b4c9f]{font-size:1.2rem;margin-left:.187rem}.my-order .shop-list .shop-item .shop-price .unit-name[data-v-064b4c9f]{color:#777;font-size:.9rem}.my-order .shop-list .shop-item .shop-price .del[data-v-064b4c9f]{text-decoration:line-through}.my-order .shop-list .shop-item[data-v-064b4c9f]:hover{background-color:#1890ff;color:#fff}.my-order .shop-list .shop-item:hover .shop-price[data-v-064b4c9f],.my-order .shop-list .shop-item:hover .unit-name[data-v-064b4c9f]{color:#fff}.my-order .shop-list .shop-item .no-stock[data-v-064b4c9f]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0003;display:flex;justify-content:center;align-items:center}.my-order .shop-list .shop-item .no-stock div[data-v-064b4c9f]{background-color:#4e4e4e;color:#fff;border-radius:50%;width:5rem;height:5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}.my-order .shop-list .shop-item .no-stock-re[data-v-064b4c9f]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000001a;display:flex;justify-content:center;align-items:center}.my-order .shop-list .shop-item .no-stock-re div[data-v-064b4c9f]{background-color:#1890ffcc;color:#fff;border-radius:50%;width:5rem;height:5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-footer .ok-btn[data-v-09c1bca4]{width:100%;height:2.5rem;border-radius:2.5rem}.shop[data-v-09c1bca4]{border-top:.0625rem solid #eee;padding-top:1rem}.shop .shop-info[data-v-09c1bca4]{display:flex}.shop .shop-info .shop-info-left[data-v-09c1bca4]{flex-shrink:0;margin-right:.8rem;height:8rem;width:8rem;overflow:hidden;border-radius:.5rem}.shop .shop-info .shop-info-right[data-v-09c1bca4]{display:flex;flex-direction:column;justify-content:space-between}.shop .shop-info .shop-info-right .shop-info-right-top[data-v-09c1bca4]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2;font-size:1.1rem}.shop .shop-info .shop-info-right .shop-info-right-center[data-v-09c1bca4]{font-size:.8rem}.shop .shop-info .shop-info-right .shop-info-right-price[data-v-09c1bca4]{color:#ff4a00;font-size:1.2rem;font-weight:700}.shop .shop-info .shop-info-right .shop-info-right-price span[data-v-09c1bca4]{font-size:1.4rem;margin-left:.2rem}.shop .shop-info .shop-info-right .shop-info-right-price .unit-name[data-v-09c1bca4]{font-size:.9rem;color:#999;font-weight:400}.shop .shop-info .shop-info-right .shop-info-right-price .del[data-v-09c1bca4]{text-decoration:line-through}.shop .shop-sku[data-v-09c1bca4]{display:flex;align-items:center;justify-content:space-between;margin:1rem 0}.classify[data-v-4d5623b0]{height:100%;width:8rem;background-color:#fff;border-radius:1.2rem;font-size:1rem;color:#333;overflow-y:scroll}.classify .itemP[data-v-4d5623b0]{width:4rem;margin:1rem;padding:.5rem 1rem;text-align:center;border-radius:3rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.classify .itemP-active[data-v-4d5623b0]{background-color:#1890ff;color:#fff}.active-card .title[data-v-4d5623b0]{font-size:1.1rem;font-weight:700;color:#333}.active-card .list[data-v-4d5623b0]{display:flex;flex-wrap:wrap}.active-card .list div[data-v-4d5623b0]{margin-right:1rem;margin-top:.5rem;cursor:pointer;color:#333}.active-card .list .list-active[data-v-4d5623b0]{color:#1890ff}[data-v-4d5623b0]::-webkit-scrollbar{display:none}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1;margin:1.25rem 0}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999} diff --git a/build/assets/index-CKEx9ISi.js b/build/assets/index-CLnm6U02.js similarity index 98% rename from build/assets/index-CKEx9ISi.js rename to build/assets/index-CLnm6U02.js index d62f33a..8fbe20c 100644 --- a/build/assets/index-CKEx9ISi.js +++ b/build/assets/index-CLnm6U02.js @@ -1 +1 @@ -import{K as V,_ as B,u as j,r as y,b as p,c as s,k as f,e as t,t as m,g as d,F as E,l as F,z as q,f as l,w as r,E as $,m as D,q as J,s as K,o as W,a as G,h as N,d as k,p as w,j as U}from"./index-CCL_aieW.js";import{h as T}from"./moment-Cl4UOzQZ.js";import{p as H}from"./padding-CGiyqEPU.js";function P(){return V.get("/merchant/Merchant/amount_account")}function Q(u){return V.get("/merchant/Merchant/taking_lists",{params:u})}function X(){return V.get("/merchant/Merchant/taking_info")}function Z(u){return V.post("/merchant/Merchant/withdraw",u)}function ee(u){return V.get("/financial/FinancialRecord/api_lists",{params:u})}const z=u=>(J("data-v-e01d9d71"),u=u(),K(),u),ae={class:"my-order"},te={class:"header-nav"},le=z(()=>t("div",{class:"nav-item"},m("提现"),-1)),ne={class:"nav-body"},oe={class:"my-money"},se=z(()=>t("div",null,"我的余额:",-1)),ie={style:{"text-align":"center",color:"#2ec479"}},re={class:"my-count"},de={class:"count"},ue={class:"money"},ce={style:{color:"#ff4a00"}},_e={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},ve=["onClick"],me={style:{color:"#1890ff"}},pe={class:"own"},fe=z(()=>t("div",{style:{height:"8.2rem"}},null,-1)),he={class:"order-footer"},ge={class:"input-btn"},be={class:"order-btn"},ke={__name:"order",setup(u){j();const e=y({balance:0,count:0,total:0}),g=y([]),c=()=>{P().then(o=>{o.data.bank_list.forEach(i=>{i.is_check&&(a.value.merchant_bank_id=i.id)}),a.value.merchant_bank_id||(a.value.merchant_bank_id=o.data.bank_list[0].id),g.value=o.data.bank_list,e.value.balance=o.data.balance}),X().then(o=>{e.value=Object.assign(e.value,o.data)})};c();const a=y({merchant_bank_id:"",amount:""}),h=o=>{a.value.merchant_bank_id=o.id},x=()=>{if(a.value.amount=Math.floor(a.value.amount*100)/100,+a.value.amount<=0)return a.value.amount="",$.error("提现金额必须大于0");if(+a.value.amount>+e.value.balance)return a.value.amount=e.value.balance,$.error("提现金额不能大于余额");Z(a.value).then(o=>{a.value.amount="",$.success("提现成功,等待管理员审核"),D.emit("get-taking-lists"),c()})};return(o,i)=>{const b=p("el-input"),M=p("el-button");return s(),f("div",ae,[t("div",te,[le,t("div",ne,[t("div",oe,[se,t("div",ie,[t("span",null,m(e.value.balance),1),d("元 ")])]),t("div",re,[t("div",de,[d("提现次数: "),t("span",null,m(e.value.count),1),d("次")]),t("div",ue,[d("累计提现到账: "),t("span",ce,m(e.value.total),1),d("元")])])])]),t("div",_e,[(s(!0),f(E,null,F(g.value,(_,C)=>(s(),f("div",{class:q(["item",{"item-active":a.value.merchant_bank_id==_.id}]),key:C,onClick:v=>h(_)},[t("div",null,[d(" 提现至 "),t("span",me,m(_.bank_name)+"("+m(_.bank_code.slice(-4))+")",1),t("span",pe,m(_.is_own==1?"对公":"个人"),1)])],10,ve))),128))]),fe,t("div",he,[t("div",ge,[l(b,{modelValue:a.value.amount,"onUpdate:modelValue":i[0]||(i[0]=_=>a.value.amount=_),placeholder:"请输入提现金额",type:"number"},null,8,["modelValue"]),l(M,{class:"btn",type:"primary",onClick:i[1]||(i[1]=_=>a.value.amount=e.value.balance)},{default:r(()=>[d("全部")]),_:1})]),t("div",be,[l(M,{class:"btn",type:"primary",onClick:x,disabled:e.value.balance<=0||g.value.length==0},{default:r(()=>[d("立即提现")]),_:1},8,["disabled"])])])])}}},ye=B(ke,[["__scopeId","data-v-e01d9d71"]]),we={class:"my-order"},Ve={class:"date"},Me={class:"detail"},Ye={key:0,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},$e={key:0},xe={key:1},Ce={key:1,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},De={__name:"detail",setup(u){const e=y({page_no:1,page_size:15,loadend:!1,loading:!1,create_time:"",start_time:""}),g=()=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],h()},c=y(1),a=y([]),h=()=>{if(console.log("触底",!e.value.loadend,!e.value.loading),!e.value.loadend&&!e.value.loading&&(console.log("加载"),e.value.loading=!0,c.value==1&&Q({page_no:e.value.page_no,page_size:e.value.page_size,create_time:e.value.create_time}).then(o=>{a.value=[...a.value,...o.data.lists],o.data.lists.length=e.value.start_time[1])return e.value.loading=!1,$.error("开始时间不能大于等于结束时间");let o=e.value.start_time[0]?T(e.value.start_time[0]).format("YYYY-MM-DD"):"",i=e.value.start_time[1]?T(e.value.start_time[1]).format("YYYY-MM-DD"):"";ee({page_no:e.value.page_no,page_size:e.value.page_size,start_time:o,end_time:i}).then(b=>{a.value=[...a.value,...b.data.lists],b.data.lists.length{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],h()};return W(()=>{D.on("get-taking-lists",o=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],h()})}),G(()=>{D.off("get-taking-lists")}),(o,i)=>{const b=p("el-date-picker"),M=p("el-button"),_=p("el-radio-button"),C=p("el-radio-group"),v=p("el-table-column"),O=p("el-image"),Y=p("el-tag"),I=p("el-table"),S=N("loading"),A=N("infinite-scroll");return s(),f("div",we,[t("div",Ve,[t("div",null,[c.value==1?(s(),k(b,{key:0,modelValue:e.value.create_time,"onUpdate:modelValue":i[0]||(i[0]=n=>e.value.create_time=n),type:"month",placeholder:"请选择月份",onChange:g,clearable:!1},null,8,["modelValue"])):w("",!0),c.value==2?(s(),k(b,{key:1,modelValue:e.value.start_time,"onUpdate:modelValue":i[1]||(i[1]=n=>e.value.start_time=n),type:"daterange",placeholder:"请选择日期",onChange:g,format:"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])):w("",!0),l(M,{type:"primary",style:{"margin-left":"1rem"}},{default:r(()=>[d("重置")]),_:1})]),l(C,{modelValue:c.value,"onUpdate:modelValue":i[2]||(i[2]=n=>c.value=n),onChange:x},{default:r(()=>[l(_,{label:"提现记录",value:1}),l(_,{label:"余额明细",value:2})]),_:1},8,["modelValue"])]),t("div",Me,[c.value==1?U((s(),f("div",Ye,[l(I,{data:a.value},{default:r(()=>[l(v,{prop:"merchant_bank_info.is_own",label:"账户类型",width:"100"},{default:r(({row:n})=>[t("div",null,m(n.merchant_bank_info.is_own?"对公账户":"个人账户"),1)]),_:1}),l(v,{prop:"price",label:"银行卡"},{default:r(({row:n})=>[t("div",null,m(n.merchant_bank_info.bank_info.name)+" ("+m(n.merchant_bank_info.bank_code.slice(-4))+") ",1)]),_:1}),l(v,{prop:"amount",label:"提现金额",width:"150"}),l(v,{label:"备注/凭证",width:"200"},{default:r(({row:n})=>[n.arrival_proof?(s(),f("div",$e,[(s(!0),f(E,null,F(JSON.parse(n.arrival_proof),(R,L)=>(s(),k(O,{style:{width:"3rem",height:"3rem","margin-right":"0.2rem"},key:L,src:R,"preview-src-list":JSON.parse(n.arrival_proof),"initial-index":L},null,8,["src","preview-src-list","initial-index"]))),128))])):(s(),f("div",xe,m(n.fail_msg),1))]),_:1}),l(v,{label:"提现状态",width:"100"},{default:r(({row:n})=>[n.arrival_proof?(s(),k(Y,{key:0,type:"success"},{default:r(()=>[d("已到账")]),_:1})):n.is_check==1?(s(),k(Y,{key:1,type:"primary"},{default:r(()=>[d("待转账")]),_:1})):n.is_check==0?(s(),k(Y,{key:2,type:"info"},{default:r(()=>[d("待审核")]),_:1})):n.is_check==2?(s(),k(Y,{key:3,type:"danger"},{default:r(()=>[d("提现失败")]),_:1})):w("",!0)]),_:1}),l(v,{prop:"create_time",label:"提现时间",width:"200"})]),_:1},8,["data"])])),[[S,e.value.loading],[A,h]]):w("",!0),c.value==2?U((s(),f("div",Ce,[l(I,{data:a.value},{default:r(()=>[l(v,{prop:"number_sn",label:"订单号",width:"250"}),l(v,{prop:"number",label:"变动金额",width:"180"}),l(v,{prop:"financial_type",label:"变动类型",width:"180"}),l(v,{prop:"create_time",label:"时间"})]),_:1},8,["data"])])),[[S,e.value.loading],[A,h]]):w("",!0)])])}}},ze=B(De,[["__scopeId","data-v-b27fe34a"]]),Ie={class:"my-card"},Ne={__name:"index",setup(u){return(e,g)=>(s(),f("div",Ie,[l(ye,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),l(H),l(ze,{ref:"detailRef"},null,512)]))}};export{Ne as default}; +import{K as V,_ as B,u as j,r as y,b as p,c as s,k as f,e as t,t as m,g as d,F as E,l as F,z as q,f as l,w as r,E as $,m as D,q as J,s as K,o as W,a as G,h as N,d as k,p as w,j as U}from"./index-D_5muR1B.js";import{h as T}from"./moment-Cl4UOzQZ.js";import{p as H}from"./padding-DD0QsmkS.js";function P(){return V.get("/merchant/Merchant/amount_account")}function Q(u){return V.get("/merchant/Merchant/taking_lists",{params:u})}function X(){return V.get("/merchant/Merchant/taking_info")}function Z(u){return V.post("/merchant/Merchant/withdraw",u)}function ee(u){return V.get("/financial/FinancialRecord/api_lists",{params:u})}const z=u=>(J("data-v-e01d9d71"),u=u(),K(),u),ae={class:"my-order"},te={class:"header-nav"},le=z(()=>t("div",{class:"nav-item"},m("提现"),-1)),ne={class:"nav-body"},oe={class:"my-money"},se=z(()=>t("div",null,"我的余额:",-1)),ie={style:{"text-align":"center",color:"#2ec479"}},re={class:"my-count"},de={class:"count"},ue={class:"money"},ce={style:{color:"#ff4a00"}},_e={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},ve=["onClick"],me={style:{color:"#1890ff"}},pe={class:"own"},fe=z(()=>t("div",{style:{height:"8.2rem"}},null,-1)),he={class:"order-footer"},ge={class:"input-btn"},be={class:"order-btn"},ke={__name:"order",setup(u){j();const e=y({balance:0,count:0,total:0}),g=y([]),c=()=>{P().then(o=>{o.data.bank_list.forEach(i=>{i.is_check&&(a.value.merchant_bank_id=i.id)}),a.value.merchant_bank_id||(a.value.merchant_bank_id=o.data.bank_list[0].id),g.value=o.data.bank_list,e.value.balance=o.data.balance}),X().then(o=>{e.value=Object.assign(e.value,o.data)})};c();const a=y({merchant_bank_id:"",amount:""}),h=o=>{a.value.merchant_bank_id=o.id},x=()=>{if(a.value.amount=Math.floor(a.value.amount*100)/100,+a.value.amount<=0)return a.value.amount="",$.error("提现金额必须大于0");if(+a.value.amount>+e.value.balance)return a.value.amount=e.value.balance,$.error("提现金额不能大于余额");Z(a.value).then(o=>{a.value.amount="",$.success("提现成功,等待管理员审核"),D.emit("get-taking-lists"),c()})};return(o,i)=>{const b=p("el-input"),M=p("el-button");return s(),f("div",ae,[t("div",te,[le,t("div",ne,[t("div",oe,[se,t("div",ie,[t("span",null,m(e.value.balance),1),d("元 ")])]),t("div",re,[t("div",de,[d("提现次数: "),t("span",null,m(e.value.count),1),d("次")]),t("div",ue,[d("累计提现到账: "),t("span",ce,m(e.value.total),1),d("元")])])])]),t("div",_e,[(s(!0),f(E,null,F(g.value,(_,C)=>(s(),f("div",{class:q(["item",{"item-active":a.value.merchant_bank_id==_.id}]),key:C,onClick:v=>h(_)},[t("div",null,[d(" 提现至 "),t("span",me,m(_.bank_name)+"("+m(_.bank_code.slice(-4))+")",1),t("span",pe,m(_.is_own==1?"对公":"个人"),1)])],10,ve))),128))]),fe,t("div",he,[t("div",ge,[l(b,{modelValue:a.value.amount,"onUpdate:modelValue":i[0]||(i[0]=_=>a.value.amount=_),placeholder:"请输入提现金额",type:"number"},null,8,["modelValue"]),l(M,{class:"btn",type:"primary",onClick:i[1]||(i[1]=_=>a.value.amount=e.value.balance)},{default:r(()=>[d("全部")]),_:1})]),t("div",be,[l(M,{class:"btn",type:"primary",onClick:x,disabled:e.value.balance<=0||g.value.length==0},{default:r(()=>[d("立即提现")]),_:1},8,["disabled"])])])])}}},ye=B(ke,[["__scopeId","data-v-e01d9d71"]]),we={class:"my-order"},Ve={class:"date"},Me={class:"detail"},Ye={key:0,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},$e={key:0},xe={key:1},Ce={key:1,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},De={__name:"detail",setup(u){const e=y({page_no:1,page_size:15,loadend:!1,loading:!1,create_time:"",start_time:""}),g=()=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],h()},c=y(1),a=y([]),h=()=>{if(console.log("触底",!e.value.loadend,!e.value.loading),!e.value.loadend&&!e.value.loading&&(console.log("加载"),e.value.loading=!0,c.value==1&&Q({page_no:e.value.page_no,page_size:e.value.page_size,create_time:e.value.create_time}).then(o=>{a.value=[...a.value,...o.data.lists],o.data.lists.length=e.value.start_time[1])return e.value.loading=!1,$.error("开始时间不能大于等于结束时间");let o=e.value.start_time[0]?T(e.value.start_time[0]).format("YYYY-MM-DD"):"",i=e.value.start_time[1]?T(e.value.start_time[1]).format("YYYY-MM-DD"):"";ee({page_no:e.value.page_no,page_size:e.value.page_size,start_time:o,end_time:i}).then(b=>{a.value=[...a.value,...b.data.lists],b.data.lists.length{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],h()};return W(()=>{D.on("get-taking-lists",o=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],h()})}),G(()=>{D.off("get-taking-lists")}),(o,i)=>{const b=p("el-date-picker"),M=p("el-button"),_=p("el-radio-button"),C=p("el-radio-group"),v=p("el-table-column"),O=p("el-image"),Y=p("el-tag"),I=p("el-table"),S=N("loading"),A=N("infinite-scroll");return s(),f("div",we,[t("div",Ve,[t("div",null,[c.value==1?(s(),k(b,{key:0,modelValue:e.value.create_time,"onUpdate:modelValue":i[0]||(i[0]=n=>e.value.create_time=n),type:"month",placeholder:"请选择月份",onChange:g,clearable:!1},null,8,["modelValue"])):w("",!0),c.value==2?(s(),k(b,{key:1,modelValue:e.value.start_time,"onUpdate:modelValue":i[1]||(i[1]=n=>e.value.start_time=n),type:"daterange",placeholder:"请选择日期",onChange:g,format:"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])):w("",!0),l(M,{type:"primary",style:{"margin-left":"1rem"}},{default:r(()=>[d("重置")]),_:1})]),l(C,{modelValue:c.value,"onUpdate:modelValue":i[2]||(i[2]=n=>c.value=n),onChange:x},{default:r(()=>[l(_,{label:"提现记录",value:1}),l(_,{label:"余额明细",value:2})]),_:1},8,["modelValue"])]),t("div",Me,[c.value==1?U((s(),f("div",Ye,[l(I,{data:a.value},{default:r(()=>[l(v,{prop:"merchant_bank_info.is_own",label:"账户类型",width:"100"},{default:r(({row:n})=>[t("div",null,m(n.merchant_bank_info.is_own?"对公账户":"个人账户"),1)]),_:1}),l(v,{prop:"price",label:"银行卡"},{default:r(({row:n})=>[t("div",null,m(n.merchant_bank_info.bank_info.name)+" ("+m(n.merchant_bank_info.bank_code.slice(-4))+") ",1)]),_:1}),l(v,{prop:"amount",label:"提现金额",width:"150"}),l(v,{label:"备注/凭证",width:"200"},{default:r(({row:n})=>[n.arrival_proof?(s(),f("div",$e,[(s(!0),f(E,null,F(JSON.parse(n.arrival_proof),(R,L)=>(s(),k(O,{style:{width:"3rem",height:"3rem","margin-right":"0.2rem"},key:L,src:R,"preview-src-list":JSON.parse(n.arrival_proof),"initial-index":L},null,8,["src","preview-src-list","initial-index"]))),128))])):(s(),f("div",xe,m(n.fail_msg),1))]),_:1}),l(v,{label:"提现状态",width:"100"},{default:r(({row:n})=>[n.arrival_proof?(s(),k(Y,{key:0,type:"success"},{default:r(()=>[d("已到账")]),_:1})):n.is_check==1?(s(),k(Y,{key:1,type:"primary"},{default:r(()=>[d("待转账")]),_:1})):n.is_check==0?(s(),k(Y,{key:2,type:"info"},{default:r(()=>[d("待审核")]),_:1})):n.is_check==2?(s(),k(Y,{key:3,type:"danger"},{default:r(()=>[d("提现失败")]),_:1})):w("",!0)]),_:1}),l(v,{prop:"create_time",label:"提现时间",width:"200"})]),_:1},8,["data"])])),[[S,e.value.loading],[A,h]]):w("",!0),c.value==2?U((s(),f("div",Ce,[l(I,{data:a.value},{default:r(()=>[l(v,{prop:"number_sn",label:"订单号",width:"250"}),l(v,{prop:"number",label:"变动金额",width:"180"}),l(v,{prop:"financial_type",label:"变动类型",width:"180"}),l(v,{prop:"create_time",label:"时间"})]),_:1},8,["data"])])),[[S,e.value.loading],[A,h]]):w("",!0)])])}}},ze=B(De,[["__scopeId","data-v-b27fe34a"]]),Ie={class:"my-card"},Ne={__name:"index",setup(u){return(e,g)=>(s(),f("div",Ie,[l(ye,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),l(H),l(ze,{ref:"detailRef"},null,512)]))}};export{Ne as default}; diff --git a/build/assets/index-CMCUKE4O.js b/build/assets/index-CPkn5Yxs.js similarity index 96% rename from build/assets/index-CMCUKE4O.js rename to build/assets/index-CPkn5Yxs.js index 228ba3a..6ca0498 100644 --- a/build/assets/index-CMCUKE4O.js +++ b/build/assets/index-CPkn5Yxs.js @@ -1 +1 @@ -import{r as m,b as n,h,c as r,k as V,e as w,f as l,i as K,w as t,j as P,g as s,d as v,p as b}from"./index-CCL_aieW.js";import{c as U}from"./shop-DO-HIKTR.js";import"./axiosAPI-XZKFUjoi.js";const j={class:"my-card put-storage"},A={class:"storage-header"},E={class:"flex"},I={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},q={__name:"index",setup(O){const d=m([]),e=m({page_no:1,page_size:20,loadend:!1,store_name:"",status:null,stock:null}),f=m(!1),g=()=>{e.value.loadend||(f.value=!0,U({page_no:e.value.page_no,page_size:e.value.page_size,store_name:e.value.store_name,stock:e.value.stock,status:e.value.status}).then(o=>{d.value=[...d.value,...o.data.lists],o.data.lists.length{e.value.page_no=1,e.value.loadend=!1,d.value=[],g()},k=m(0),x=o=>{o==0?(e.value.status=null,e.value.stock=null):o==1?(e.value.status=1,e.value.stock=null):o==2?(e.value.status=0,e.value.stock=null):o==3?(e.value.status=null,e.value.stock=10):o==4&&(e.value.status=null,e.value.stock=0),_()};return(o,i)=>{const C=n("el-input"),y=n("el-button"),c=n("el-radio-button"),z=n("el-radio-group"),u=n("el-table-column"),B=n("el-image"),p=n("el-tag"),L=n("el-table"),N=h("loading"),D=h("infinite-scroll");return r(),V("div",j,[w("div",A,[w("div",E,[l(C,{placeholder:"请输入商品名称",style:{width:"20rem"},modelValue:e.value.store_name,"onUpdate:modelValue":i[0]||(i[0]=a=>e.value.store_name=a),onKeydown:K(_,["enter"])},null,8,["modelValue"]),l(y,{style:{"margin-left":"1rem"},type:"primary",onClick:_},{default:t(()=>[s("搜索")]),_:1}),l(y,{style:{"margin-left":"1rem"},onClick:i[1]||(i[1]=a=>{e.value.store_name="",_()})},{default:t(()=>[s("重置")]),_:1})]),l(z,{style:{"margin-bottom":"20px"},modelValue:k.value,"onUpdate:modelValue":i[2]||(i[2]=a=>k.value=a),onChange:x},{default:t(()=>[l(c,{label:0,value:0},{default:t(()=>[s("全部")]),_:1}),l(c,{label:1,value:1},{default:t(()=>[s("上架")]),_:1}),l(c,{label:2,value:2},{default:t(()=>[s("下架")]),_:1}),l(c,{label:3,value:3},{default:t(()=>[s("库存预警")]),_:1}),l(c,{label:4,value:4},{default:t(()=>[s("已售罄")]),_:1})]),_:1},8,["modelValue"])]),P((r(),V("div",I,[l(L,{data:d.value},{default:t(()=>[l(u,{label:"ID",prop:"id","min-width":"55"}),l(u,{label:"商品图",prop:"image",width:"100"},{default:t(({row:a})=>[l(B,{class:"image",src:a.image},null,8,["src"])]),_:1}),l(u,{label:"商品名",prop:"store_name","min-width":"200"}),l(u,{label:"分类",prop:"cate_name"}),l(u,{label:"销量",prop:"sales"}),l(u,{label:"库存",prop:"stock"}),l(u,{label:"状态",prop:"status"},{default:t(({row:a})=>[a.status==1?(r(),v(p,{key:0,class:"el-tag",type:"success"},{default:t(()=>[s("上架")]),_:1})):a.status==0?(r(),v(p,{key:1,class:"el-tag",type:"info"},{default:t(()=>[s("下架")]),_:1})):b("",!0),a.stock<=10&&a.stock>0?(r(),v(p,{key:2,class:"el-tag",type:"warning"},{default:t(()=>[s("库存预警")]),_:1})):b("",!0),a.stock==0?(r(),v(p,{key:3,class:"el-tag",type:"danger"},{default:t(()=>[s("已售罄")]),_:1})):b("",!0)]),_:1})]),_:1},8,["data"])])),[[N,f.value],[D,g]])])}}};export{q as default}; +import{r as m,b as n,h,c as r,k as V,e as w,f as l,i as K,w as t,j as P,g as s,d as v,p as b}from"./index-D_5muR1B.js";import{c as U}from"./shop-NV06cTZv.js";import"./axiosAPI-B_pgHZLY.js";const j={class:"my-card put-storage"},A={class:"storage-header"},E={class:"flex"},I={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},q={__name:"index",setup(O){const d=m([]),e=m({page_no:1,page_size:20,loadend:!1,store_name:"",status:null,stock:null}),f=m(!1),g=()=>{e.value.loadend||(f.value=!0,U({page_no:e.value.page_no,page_size:e.value.page_size,store_name:e.value.store_name,stock:e.value.stock,status:e.value.status}).then(o=>{d.value=[...d.value,...o.data.lists],o.data.lists.length{e.value.page_no=1,e.value.loadend=!1,d.value=[],g()},k=m(0),x=o=>{o==0?(e.value.status=null,e.value.stock=null):o==1?(e.value.status=1,e.value.stock=null):o==2?(e.value.status=0,e.value.stock=null):o==3?(e.value.status=null,e.value.stock=10):o==4&&(e.value.status=null,e.value.stock=0),_()};return(o,i)=>{const C=n("el-input"),y=n("el-button"),c=n("el-radio-button"),z=n("el-radio-group"),u=n("el-table-column"),B=n("el-image"),p=n("el-tag"),L=n("el-table"),N=h("loading"),D=h("infinite-scroll");return r(),V("div",j,[w("div",A,[w("div",E,[l(C,{placeholder:"请输入商品名称",style:{width:"20rem"},modelValue:e.value.store_name,"onUpdate:modelValue":i[0]||(i[0]=a=>e.value.store_name=a),onKeydown:K(_,["enter"])},null,8,["modelValue"]),l(y,{style:{"margin-left":"1rem"},type:"primary",onClick:_},{default:t(()=>[s("搜索")]),_:1}),l(y,{style:{"margin-left":"1rem"},onClick:i[1]||(i[1]=a=>{e.value.store_name="",_()})},{default:t(()=>[s("重置")]),_:1})]),l(z,{style:{"margin-bottom":"20px"},modelValue:k.value,"onUpdate:modelValue":i[2]||(i[2]=a=>k.value=a),onChange:x},{default:t(()=>[l(c,{label:0,value:0},{default:t(()=>[s("全部")]),_:1}),l(c,{label:1,value:1},{default:t(()=>[s("上架")]),_:1}),l(c,{label:2,value:2},{default:t(()=>[s("下架")]),_:1}),l(c,{label:3,value:3},{default:t(()=>[s("库存预警")]),_:1}),l(c,{label:4,value:4},{default:t(()=>[s("已售罄")]),_:1})]),_:1},8,["modelValue"])]),P((r(),V("div",I,[l(L,{data:d.value},{default:t(()=>[l(u,{label:"ID",prop:"id","min-width":"55"}),l(u,{label:"商品图",prop:"image",width:"100"},{default:t(({row:a})=>[l(B,{class:"image",src:a.image},null,8,["src"])]),_:1}),l(u,{label:"商品名",prop:"store_name","min-width":"200"}),l(u,{label:"分类",prop:"cate_name"}),l(u,{label:"销量",prop:"sales"}),l(u,{label:"库存",prop:"stock"}),l(u,{label:"状态",prop:"status"},{default:t(({row:a})=>[a.status==1?(r(),v(p,{key:0,class:"el-tag",type:"success"},{default:t(()=>[s("上架")]),_:1})):a.status==0?(r(),v(p,{key:1,class:"el-tag",type:"info"},{default:t(()=>[s("下架")]),_:1})):b("",!0),a.stock<=10&&a.stock>0?(r(),v(p,{key:2,class:"el-tag",type:"warning"},{default:t(()=>[s("库存预警")]),_:1})):b("",!0),a.stock==0?(r(),v(p,{key:3,class:"el-tag",type:"danger"},{default:t(()=>[s("已售罄")]),_:1})):b("",!0)]),_:1})]),_:1},8,["data"])])),[[N,f.value],[D,g]])])}}};export{q as default}; diff --git a/build/assets/index-rbnjTq1H.js b/build/assets/index-DEAt-9g0.js similarity index 96% rename from build/assets/index-rbnjTq1H.js rename to build/assets/index-DEAt-9g0.js index 022aaf7..0d23857 100644 --- a/build/assets/index-rbnjTq1H.js +++ b/build/assets/index-DEAt-9g0.js @@ -1 +1 @@ -import{_ as I,u as U,r as u,o as R,b as n,c as S,k as b,e as v,f as e,w as t,i as m,g as L,q as B,s as C,I as E,E as w}from"./index-CCL_aieW.js";import{l as K}from"./user-AxtDYzrO.js";const N=l=>(B("data-v-f9ff2ce9"),l=l(),C(),l),M={class:"body"},T={class:"login"},q=N(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),$={__name:"index",setup(l){const d=U(),y=E(),k=u(null),p=u(null),s=u({account:"",password:"",terminal:1}),_=()=>{if(!s.value.account)return w({message:"请填写账号",type:"error"});if(!s.value.password)return w({message:"请填写密码",type:"error"});K(s.value).then(a=>{var o;(o=a.data)!=null&&o.token&&(d.setToken(a.data.token),d.setUserInfo(a.data),y.push("/"))}).catch(a=>{})};return R(()=>{}),(a,o)=>{const h=n("User"),f=n("el-icon"),i=n("el-input"),c=n("el-form-item"),x=n("Lock"),V=n("el-button"),g=n("el-form");return S(),b("div",M,[v("div",T,[q,e(g,null,{default:t(()=>[e(c,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:k,modelValue:s.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.account=r),placeholder:"请输入账号",onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(h)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:s.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(x)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:_},{default:t(()=>[L("登录")]),_:1})]),_:1})]),_:1})])])}}},A=I($,[["__scopeId","data-v-f9ff2ce9"]]);export{A as default}; +import{_ as I,u as U,r as u,o as R,b as n,c as S,k as b,e as v,f as e,w as t,i as m,g as L,q as B,s as C,I as E,E as w}from"./index-D_5muR1B.js";import{l as K}from"./user-WwUaLh3a.js";const N=l=>(B("data-v-f9ff2ce9"),l=l(),C(),l),M={class:"body"},T={class:"login"},q=N(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),$={__name:"index",setup(l){const d=U(),y=E(),k=u(null),p=u(null),s=u({account:"",password:"",terminal:1}),_=()=>{if(!s.value.account)return w({message:"请填写账号",type:"error"});if(!s.value.password)return w({message:"请填写密码",type:"error"});K(s.value).then(a=>{var o;(o=a.data)!=null&&o.token&&(d.setToken(a.data.token),d.setUserInfo(a.data),y.push("/"))}).catch(a=>{})};return R(()=>{}),(a,o)=>{const h=n("User"),f=n("el-icon"),i=n("el-input"),c=n("el-form-item"),x=n("Lock"),V=n("el-button"),g=n("el-form");return S(),b("div",M,[v("div",T,[q,e(g,null,{default:t(()=>[e(c,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:k,modelValue:s.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.account=r),placeholder:"请输入账号",onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(h)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:s.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(x)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:_},{default:t(()=>[L("登录")]),_:1})]),_:1})]),_:1})])])}}},A=I($,[["__scopeId","data-v-f9ff2ce9"]]);export{A as default}; diff --git a/build/assets/index-DCk_Y_Qh.js b/build/assets/index-DKYLUh5I.js similarity index 98% rename from build/assets/index-DCk_Y_Qh.js rename to build/assets/index-DKYLUh5I.js index b4fa55f..baf1946 100644 --- a/build/assets/index-DCk_Y_Qh.js +++ b/build/assets/index-DKYLUh5I.js @@ -1 +1 @@ -import{_ as G,u as H,r as n,o as J,m as D,a as Q,b as u,h as I,c as s,k as o,e,f as d,w as p,g as b,d as F,p as m,i as oe,j as O,F as E,l as K,z as j,t as l,q as W,s as X,I as ae}from"./index-CCL_aieW.js";import{d as ie,e as le}from"./store-BNm3g_zr.js";import{h as q}from"./moment-Cl4UOzQZ.js";import{p as ne}from"./pay-H92PK2lK.js";import{p as de}from"./padding-CGiyqEPU.js";import"./authCode-C8sYYjUN.js";/* empty css */const _e=f=>(W("data-v-bf6504fc"),f=f(),X(),f),ce={class:"my-order"},re={class:"header-nav"},ue=_e(()=>e("div",{class:"nav-item"},l("收银订单"),-1)),ve={class:"nav-item-btn"},pe={class:"header-input"},fe={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},me=["onClick"],he={class:"top"},ye={class:"create-time"},ge={class:"shop"},ke={key:0,class:"left"},be={key:0,class:"shop-name"},$e={class:"right"},we={class:"money"},Ce={class:"count"},De={class:"bottom"},Se={class:"pay"},Ve={key:0},Ye={key:1},xe={key:2},ze={key:3},Pe={key:4},Ie={key:5},Re={key:1,style:{color:"#ff4a00"}},Me={key:0,class:"load-end"},Le={key:1,class:"load-end"},Be={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f,{expose:w}){H(),n([]);const t=n(1),h=r=>{_.value.page_no=1,$.value=!1,g.value=!1,c.value=[],k(!0)};n(null);const y=n(""),R=()=>{_.value.start_time=q(y.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=q(y.value[1]).format("YYYY-MM-DD 23:59:59"),k(!0)},S=r=>r.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:1}),g=n(!1),M=n(0),C=n(0),$=n(!1),c=n([]),k=(r=!1)=>{if(r)_.value.page_no=1;else if($.value||g.value)return;g.value=!0,t.value==1&&(_.value.paid=null),t.value==2&&(_.value.paid=0),ie(_.value).then(i=>{r?c.value=i.data.lists:c.value=[...c.value,...i.data.lists],_.value.page_no==1&&c.value.length>0&&D.emit("set-sale-order-detail",c.value[0]),i.data.lists.length<_.value.page_size?$.value=!0:_.value.page_no++,C.value=0,console.log(_.value.page_no),M.value=i.data.count,g.value=!1}).catch(i=>{$.value=!0,g.value=!1})},L=(r,i)=>{C.value=i,D.emit("set-sale-order-detail",r)};return w({getOrderList:k}),J(()=>{D.on("update-sale-order-detail",r=>{console.log("==="),c.value[C.value].paid=1})}),Q(()=>{D.off("update-sale-order-detail")}),(r,i)=>{const V=u("el-radio-button"),B=u("el-radio-group"),N=u("el-date-picker"),T=u("CircleClose"),Y=u("el-icon"),x=u("el-button"),z=u("el-input"),P=u("el-image"),Z=u("spna"),ee=I("loading"),te=I("infinite-scroll");return s(),o("div",ce,[e("div",re,[ue,e("div",ve,[d(B,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=a=>t.value=a),onChange:h,size:"small"},{default:p(()=>[d(V,{value:1},{default:p(()=>[b("全部")]),_:1}),d(V,{value:2},{default:p(()=>[b("未支付")]),_:1})]),_:1},8,["modelValue"]),d(N,{modelValue:y.value,"onUpdate:modelValue":i[1]||(i[1]=a=>y.value=a),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":S,onChange:R,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",pe,[d(z,{modelValue:_.value.order_id,"onUpdate:modelValue":i[4]||(i[4]=a=>_.value.order_id=a),placeholder:"请输入订单编号",onKeydown:i[5]||(i[5]=oe(a=>k(!0),["enter"])),onClear:i[6]||(i[6]=a=>k(!0))},{suffix:p(()=>[_.value.order_id!=""?(s(),F(Y,{key:0,size:"18",onClick:i[2]||(i[2]=a=>{_.value.order_id="",k(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:p(()=>[d(T)]),_:1})):m("",!0)]),append:p(()=>[d(x,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:i[3]||(i[3]=a=>k(!0))},{default:p(()=>[b("搜索")]),_:1})]),_:1},8,["modelValue"])]),O((s(),o("div",fe,[(s(!0),o(E,null,K(c.value,(a,U)=>(s(),o("div",{class:j(["item",{"item-active":C.value==U}]),key:U,onClick:A=>L(a,U)},[e("div",he,[e("div",{class:j(["sn","cahier"])},"单号: "+l(a.order_id),1),e("div",ye,l(a.pay_time),1)]),e("div",ge,[a.product_info?(s(),o("div",ke,[(s(!0),o(E,null,K(a.product_info.slice(0,5),(A,se)=>(s(),F(P,{key:se,src:A.image,class:"shop-img"},null,8,["src"]))),128)),a.product_info.length==1?(s(),o("div",be,l(a.product_info[0].store_name),1)):m("",!0)])):m("",!0),e("div",$e,[e("div",we,"¥"+l(a.pay_price),1),e("div",Ce,"共"+l(a.total_num)+"款商品",1)])]),e("div",De,[e("div",Se,[a.paid?(s(),o("div",Ve,[b(l(a.paid_name)+" ",1),a.pay_type_name?(s(),F(Z,{key:0},{default:p(()=>[b("("+l(a.pay_type_name)+")",1)]),_:2},1024)):a.pay_type==9?(s(),o("span",Ye,"(微信收款)")):a.pay_type==17?(s(),o("span",xe,"(现金支付)")):a.pay_type==13?(s(),o("span",ze,"(支付宝收款)")):a.pay_type==3?(s(),o("span",Pe,"(余额支付)")):a.pay_type==1?(s(),o("span",Ie,"(微信支付)")):m("",!0)])):(s(),o("div",Re,l(a.paid_name),1))])])],10,me))),128)),$.value?(s(),o("div",Me,"没有更多了")):m("",!0),g.value?(s(),o("div",Le,"加载中...")):m("",!0)])),[[ee,g.value],[te,k]])])}}},Ne=G(Be,[["__scopeId","data-v-bf6504fc"]]),v=f=>(W("data-v-b5c92dd9"),f=f(),X(),f),Te={class:"my-order"},Ue={key:0,class:"detail"},Fe={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Oe=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Ae={class:"table-info"},Ee={class:"info-item"},Ke=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Ge=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),He={class:"info-item-info"},Je={class:"info-item"},Qe=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),We={class:"info-item-info"},Xe={class:"info-item"},Ze=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},dt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),_t={class:"info-item-info"},ct={class:"info-item"},rt=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ut={class:"info-item-info"},vt={key:0},pt={key:1},ft={key:2},mt={key:3},ht={key:4},yt={key:5},gt={key:0,class:"table-title"},kt={key:1,class:"table-info"},bt={class:"info-item"},$t=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),wt={class:"info-item-info"},Ct={class:"info-item"},Dt=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),St={class:"info-item-info"},Vt={class:"info-item"},Yt=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),xt={class:"info-item-info"},zt={style:{"font-size":"0.9rem"}},Pt={style:{color:"#ff4a00"}},It={style:{display:"flex","align-items":"center"}},Rt={style:{"margin-left":"0.5rem"}},Mt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),Lt={key:0,class:"footer"},Bt={key:1},Nt={__name:"detail",emits:["rePaySuccess"],setup(f,{emit:w}){H(),ae();const t=n({id:""});n([]);const h=n(null),y=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const R=()=>{h.value.setForm({isRePay:!0,data:t.value}),h.value.drawer=!0},S=n({page_no:1,page_size:15,loadend:!1,loading:!1}),_=n([]),g=()=>console.log("触底"),M=()=>{y.value=!0,le({id:t.value.id}).then(c=>{t.value=c.data,setTimeout(()=>{y.value=!1},200)})},C=w,$=(c=null)=>{setTimeout(()=>{C("rePaySuccess")})};return J(()=>{D.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,S.value.page_no=1,S.value.loadend=!1,S.value.loading=!1,_.value=[],M()})}),Q(()=>{D.off("set-sale-order-detail")}),(c,k)=>{var Y;const L=u("el-image"),r=u("el-table-column"),i=u("el-table"),V=u("el-button"),B=u("el-empty"),N=I("infinite-scroll"),T=I("loading");return s(),o("div",Te,[t.value.id?O((s(),o("div",Ue,[O((s(),o("div",Fe,[Oe,e("div",Ae,[e("div",Ee,[Ke,e("div",je,l(t.value.order_id),1)]),e("div",qe,[Ge,e("div",He,l(t.value.total_num||0),1)]),e("div",Je,[Qe,e("div",We,"¥"+l(t.value.pay_price),1)]),e("div",Xe,[Ze,e("div",et,l(t.value.pay_time),1)]),e("div",tt,[st,e("div",ot,"¥"+l(t.value.deduction_price),1)]),e("div",at,[it,e("div",lt,"¥"+l(t.value.pay_price),1)]),e("div",nt,[dt,e("div",_t,l(t.value.pay_time),1)]),e("div",ct,[rt,e("div",ut,[t.value.pay_type_name?(s(),o("span",vt,l(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",pt,"微信收款")):t.value.pay_type==17?(s(),o("span",ft,"现金支付")):t.value.pay_type==13?(s(),o("span",mt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ht,"余额支付")):t.value.pay_type==1?(s(),o("span",yt,"微信支付")):m("",!0)])])]),t.value.uid?(s(),o("div",gt,"用户信息")):m("",!0),t.value.uid?(s(),o("div",kt,[e("div",bt,[$t,e("div",wt,l(t.value.uid),1)]),e("div",Ct,[Dt,e("div",St,l(t.value.nickname),1)]),e("div",Vt,[Yt,e("div",xt,l(t.value.mobile),1)])])):m("",!0),e("div",zt,[b(" 共计 "),e("span",Pt,l(((Y=t.value.product)==null?void 0:Y.length)||" "),1),b(" 款商品 ")]),d(i,{data:t.value.product},{default:p(()=>[d(r,{label:"商品信息"},{default:p(({row:x})=>{var z,P;return[e("div",It,[d(L,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(z=x.cart_info)==null?void 0:z.image},null,8,["src"]),e("span",Rt,l((P=x.cart_info)==null?void 0:P.name),1)])]}),_:1}),d(r,{prop:"cart_info.price",label:"单价",width:"150"}),d(r,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(r,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Mt])),[[N,g]]),t.value.paid?m("",!0):(s(),o("div",Lt,[d(V,{type:"primary",size:"large",onClick:R},{default:p(()=>[b("重新支付")]),_:1})]))])),[[T,y.value]]):(s(),o("div",Bt,[d(B)])),d(ne,{ref_key:"payRef",ref:h,onPaySuccess:$},null,512)])}}},Tt=G(Nt,[["__scopeId","data-v-b5c92dd9"]]),Ut={class:"my-card"},Gt={__name:"index",setup(f){const w=n(null),t=()=>{var h;(h=w.value)==null||h.getOrderList(!0)};return(h,y)=>(s(),o("div",Ut,[d(Ne,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:w},null,512),d(de),d(Tt,{ref:"detailRef",onRePaySuccess:t},null,512)]))}};export{Gt as default}; +import{_ as G,u as H,r as n,o as J,m as D,a as Q,b as u,h as I,c as s,k as o,e,f as d,w as p,g as b,d as F,p as m,i as oe,j as O,F as E,l as K,z as j,t as l,q as W,s as X,I as ae}from"./index-D_5muR1B.js";import{d as ie,e as le}from"./store-SrwX7Uca.js";import{h as q}from"./moment-Cl4UOzQZ.js";import{p as ne}from"./pay-CHuMd-xH.js";import{p as de}from"./padding-DD0QsmkS.js";import"./authCode-BMBF_Y6x.js";/* empty css */const _e=f=>(W("data-v-bf6504fc"),f=f(),X(),f),ce={class:"my-order"},re={class:"header-nav"},ue=_e(()=>e("div",{class:"nav-item"},l("收银订单"),-1)),ve={class:"nav-item-btn"},pe={class:"header-input"},fe={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},me=["onClick"],he={class:"top"},ye={class:"create-time"},ge={class:"shop"},ke={key:0,class:"left"},be={key:0,class:"shop-name"},$e={class:"right"},we={class:"money"},Ce={class:"count"},De={class:"bottom"},Se={class:"pay"},Ve={key:0},Ye={key:1},xe={key:2},ze={key:3},Pe={key:4},Ie={key:5},Re={key:1,style:{color:"#ff4a00"}},Me={key:0,class:"load-end"},Le={key:1,class:"load-end"},Be={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f,{expose:w}){H(),n([]);const t=n(1),h=r=>{_.value.page_no=1,$.value=!1,g.value=!1,c.value=[],k(!0)};n(null);const y=n(""),R=()=>{_.value.start_time=q(y.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=q(y.value[1]).format("YYYY-MM-DD 23:59:59"),k(!0)},S=r=>r.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:1}),g=n(!1),M=n(0),C=n(0),$=n(!1),c=n([]),k=(r=!1)=>{if(r)_.value.page_no=1;else if($.value||g.value)return;g.value=!0,t.value==1&&(_.value.paid=null),t.value==2&&(_.value.paid=0),ie(_.value).then(i=>{r?c.value=i.data.lists:c.value=[...c.value,...i.data.lists],_.value.page_no==1&&c.value.length>0&&D.emit("set-sale-order-detail",c.value[0]),i.data.lists.length<_.value.page_size?$.value=!0:_.value.page_no++,C.value=0,console.log(_.value.page_no),M.value=i.data.count,g.value=!1}).catch(i=>{$.value=!0,g.value=!1})},L=(r,i)=>{C.value=i,D.emit("set-sale-order-detail",r)};return w({getOrderList:k}),J(()=>{D.on("update-sale-order-detail",r=>{console.log("==="),c.value[C.value].paid=1})}),Q(()=>{D.off("update-sale-order-detail")}),(r,i)=>{const V=u("el-radio-button"),B=u("el-radio-group"),N=u("el-date-picker"),T=u("CircleClose"),Y=u("el-icon"),x=u("el-button"),z=u("el-input"),P=u("el-image"),Z=u("spna"),ee=I("loading"),te=I("infinite-scroll");return s(),o("div",ce,[e("div",re,[ue,e("div",ve,[d(B,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=a=>t.value=a),onChange:h,size:"small"},{default:p(()=>[d(V,{value:1},{default:p(()=>[b("全部")]),_:1}),d(V,{value:2},{default:p(()=>[b("未支付")]),_:1})]),_:1},8,["modelValue"]),d(N,{modelValue:y.value,"onUpdate:modelValue":i[1]||(i[1]=a=>y.value=a),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":S,onChange:R,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",pe,[d(z,{modelValue:_.value.order_id,"onUpdate:modelValue":i[4]||(i[4]=a=>_.value.order_id=a),placeholder:"请输入订单编号",onKeydown:i[5]||(i[5]=oe(a=>k(!0),["enter"])),onClear:i[6]||(i[6]=a=>k(!0))},{suffix:p(()=>[_.value.order_id!=""?(s(),F(Y,{key:0,size:"18",onClick:i[2]||(i[2]=a=>{_.value.order_id="",k(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:p(()=>[d(T)]),_:1})):m("",!0)]),append:p(()=>[d(x,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:i[3]||(i[3]=a=>k(!0))},{default:p(()=>[b("搜索")]),_:1})]),_:1},8,["modelValue"])]),O((s(),o("div",fe,[(s(!0),o(E,null,K(c.value,(a,U)=>(s(),o("div",{class:j(["item",{"item-active":C.value==U}]),key:U,onClick:A=>L(a,U)},[e("div",he,[e("div",{class:j(["sn","cahier"])},"单号: "+l(a.order_id),1),e("div",ye,l(a.pay_time),1)]),e("div",ge,[a.product_info?(s(),o("div",ke,[(s(!0),o(E,null,K(a.product_info.slice(0,5),(A,se)=>(s(),F(P,{key:se,src:A.image,class:"shop-img"},null,8,["src"]))),128)),a.product_info.length==1?(s(),o("div",be,l(a.product_info[0].store_name),1)):m("",!0)])):m("",!0),e("div",$e,[e("div",we,"¥"+l(a.pay_price),1),e("div",Ce,"共"+l(a.total_num)+"款商品",1)])]),e("div",De,[e("div",Se,[a.paid?(s(),o("div",Ve,[b(l(a.paid_name)+" ",1),a.pay_type_name?(s(),F(Z,{key:0},{default:p(()=>[b("("+l(a.pay_type_name)+")",1)]),_:2},1024)):a.pay_type==9?(s(),o("span",Ye,"(微信收款)")):a.pay_type==17?(s(),o("span",xe,"(现金支付)")):a.pay_type==13?(s(),o("span",ze,"(支付宝收款)")):a.pay_type==3?(s(),o("span",Pe,"(余额支付)")):a.pay_type==1?(s(),o("span",Ie,"(微信支付)")):m("",!0)])):(s(),o("div",Re,l(a.paid_name),1))])])],10,me))),128)),$.value?(s(),o("div",Me,"没有更多了")):m("",!0),g.value?(s(),o("div",Le,"加载中...")):m("",!0)])),[[ee,g.value],[te,k]])])}}},Ne=G(Be,[["__scopeId","data-v-bf6504fc"]]),v=f=>(W("data-v-b5c92dd9"),f=f(),X(),f),Te={class:"my-order"},Ue={key:0,class:"detail"},Fe={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Oe=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Ae={class:"table-info"},Ee={class:"info-item"},Ke=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Ge=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),He={class:"info-item-info"},Je={class:"info-item"},Qe=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),We={class:"info-item-info"},Xe={class:"info-item"},Ze=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},dt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),_t={class:"info-item-info"},ct={class:"info-item"},rt=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ut={class:"info-item-info"},vt={key:0},pt={key:1},ft={key:2},mt={key:3},ht={key:4},yt={key:5},gt={key:0,class:"table-title"},kt={key:1,class:"table-info"},bt={class:"info-item"},$t=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),wt={class:"info-item-info"},Ct={class:"info-item"},Dt=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),St={class:"info-item-info"},Vt={class:"info-item"},Yt=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),xt={class:"info-item-info"},zt={style:{"font-size":"0.9rem"}},Pt={style:{color:"#ff4a00"}},It={style:{display:"flex","align-items":"center"}},Rt={style:{"margin-left":"0.5rem"}},Mt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),Lt={key:0,class:"footer"},Bt={key:1},Nt={__name:"detail",emits:["rePaySuccess"],setup(f,{emit:w}){H(),ae();const t=n({id:""});n([]);const h=n(null),y=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const R=()=>{h.value.setForm({isRePay:!0,data:t.value}),h.value.drawer=!0},S=n({page_no:1,page_size:15,loadend:!1,loading:!1}),_=n([]),g=()=>console.log("触底"),M=()=>{y.value=!0,le({id:t.value.id}).then(c=>{t.value=c.data,setTimeout(()=>{y.value=!1},200)})},C=w,$=(c=null)=>{setTimeout(()=>{C("rePaySuccess")})};return J(()=>{D.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,S.value.page_no=1,S.value.loadend=!1,S.value.loading=!1,_.value=[],M()})}),Q(()=>{D.off("set-sale-order-detail")}),(c,k)=>{var Y;const L=u("el-image"),r=u("el-table-column"),i=u("el-table"),V=u("el-button"),B=u("el-empty"),N=I("infinite-scroll"),T=I("loading");return s(),o("div",Te,[t.value.id?O((s(),o("div",Ue,[O((s(),o("div",Fe,[Oe,e("div",Ae,[e("div",Ee,[Ke,e("div",je,l(t.value.order_id),1)]),e("div",qe,[Ge,e("div",He,l(t.value.total_num||0),1)]),e("div",Je,[Qe,e("div",We,"¥"+l(t.value.pay_price),1)]),e("div",Xe,[Ze,e("div",et,l(t.value.pay_time),1)]),e("div",tt,[st,e("div",ot,"¥"+l(t.value.deduction_price),1)]),e("div",at,[it,e("div",lt,"¥"+l(t.value.pay_price),1)]),e("div",nt,[dt,e("div",_t,l(t.value.pay_time),1)]),e("div",ct,[rt,e("div",ut,[t.value.pay_type_name?(s(),o("span",vt,l(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",pt,"微信收款")):t.value.pay_type==17?(s(),o("span",ft,"现金支付")):t.value.pay_type==13?(s(),o("span",mt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ht,"余额支付")):t.value.pay_type==1?(s(),o("span",yt,"微信支付")):m("",!0)])])]),t.value.uid?(s(),o("div",gt,"用户信息")):m("",!0),t.value.uid?(s(),o("div",kt,[e("div",bt,[$t,e("div",wt,l(t.value.uid),1)]),e("div",Ct,[Dt,e("div",St,l(t.value.nickname),1)]),e("div",Vt,[Yt,e("div",xt,l(t.value.mobile),1)])])):m("",!0),e("div",zt,[b(" 共计 "),e("span",Pt,l(((Y=t.value.product)==null?void 0:Y.length)||" "),1),b(" 款商品 ")]),d(i,{data:t.value.product},{default:p(()=>[d(r,{label:"商品信息"},{default:p(({row:x})=>{var z,P;return[e("div",It,[d(L,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(z=x.cart_info)==null?void 0:z.image},null,8,["src"]),e("span",Rt,l((P=x.cart_info)==null?void 0:P.name),1)])]}),_:1}),d(r,{prop:"cart_info.price",label:"单价",width:"150"}),d(r,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(r,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Mt])),[[N,g]]),t.value.paid?m("",!0):(s(),o("div",Lt,[d(V,{type:"primary",size:"large",onClick:R},{default:p(()=>[b("重新支付")]),_:1})]))])),[[T,y.value]]):(s(),o("div",Bt,[d(B)])),d(ne,{ref_key:"payRef",ref:h,onPaySuccess:$},null,512)])}}},Tt=G(Nt,[["__scopeId","data-v-b5c92dd9"]]),Ut={class:"my-card"},Gt={__name:"index",setup(f){const w=n(null),t=()=>{var h;(h=w.value)==null||h.getOrderList(!0)};return(h,y)=>(s(),o("div",Ut,[d(Ne,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:w},null,512),d(de),d(Tt,{ref:"detailRef",onRePaySuccess:t},null,512)]))}};export{Gt as default}; diff --git a/build/assets/index-CCL_aieW.js b/build/assets/index-D_5muR1B.js similarity index 99% rename from build/assets/index-CCL_aieW.js rename to build/assets/index-D_5muR1B.js index de7a22b..926d2fe 100644 --- a/build/assets/index-CCL_aieW.js +++ b/build/assets/index-D_5muR1B.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index-CmxzD3CZ.js","./store-BNm3g_zr.js","./user-AxtDYzrO.js","./moment-Cl4UOzQZ.js","./padding-CGiyqEPU.js","./axiosAPI-XZKFUjoi.js","./shop-DO-HIKTR.js","./pay-H92PK2lK.js","./authCode-C8sYYjUN.js","./pay-iBTP5sC1.css","./index-gqz6nr-u.css","./index-DCk_Y_Qh.js","./index-SMf-FFTg.css","./index-sc4OLLDO.js","./index-CgdtOnOL.css","./index-D1TivdSk.js","./index-N9EvKsCT.css","./index-CKEx9ISi.js","./index-ZYBKJJNc.css","./index-BT4iX4wE.js","./index-D4JTEzRG.css","./index-qH_tZlHY.js","./index-Bfak7bLR.css","./index-CMCUKE4O.js","./index-DjJP7Zaf.css","./index-Bo-OgYgJ.js","./index-CCSaqPZy.css","./test-CVeEG6NU.js","./test-CmC8-tN2.css","./index-rbnjTq1H.js","./index-BA6nwZsc.css"] + __vite__mapDeps.viteFileDeps = ["./index-5M1YyCxt.js","./store-SrwX7Uca.js","./user-WwUaLh3a.js","./moment-Cl4UOzQZ.js","./padding-DD0QsmkS.js","./axiosAPI-B_pgHZLY.js","./shop-NV06cTZv.js","./pay-CHuMd-xH.js","./authCode-BMBF_Y6x.js","./pay-iBTP5sC1.css","./index-Bl7sBKmH.css","./index-DKYLUh5I.js","./index-SMf-FFTg.css","./index-B_NPvce7.js","./index-CgdtOnOL.css","./index-BR8Xg1iO.js","./index-N9EvKsCT.css","./index-CLnm6U02.js","./index-ZYBKJJNc.css","./index-NDrKCyYC.js","./index-D4JTEzRG.css","./index-9KTiHlqm.js","./index-Bfak7bLR.css","./index-CPkn5Yxs.js","./index-DjJP7Zaf.css","./index-Y-zzZTgR.js","./index-CCSaqPZy.css","./test-B4kXEuqA.js","./test-CmC8-tN2.css","./index-DEAt-9g0.js","./index-BA6nwZsc.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -76,7 +76,7 @@ function __vite__mapDeps(indexes) { `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[C4]=this[C4]={accessors:{}}).accessors,r=this.prototype;function a(l){const s=hs(l);o[s]||(Tce(r,l),o[s]=!0)}return Ve.isArray(t)?t.forEach(a):a(t),this}}Ed.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ve.reduceDescriptors(Ed.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Ve.freezeMethods(Ed);const ur=Ed;function Cf(e,t){const n=this||bv,o=t||n,r=ur.from(o.headers);let a=o.data;return Ve.forEach(e,function(s){a=s.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function Lb(e){return!!(e&&e.__CANCEL__)}function Pi(e,t,n){Rt.call(this,e??"canceled",Rt.ERR_CANCELED,t,n),this.name="CanceledError"}Ve.inherits(Pi,Rt,{__CANCEL__:!0});function $ce(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Rt("Request failed with status code "+n.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Oce=Bo.hasStandardBrowserEnv?{write(e,t,n,o,r,a){const l=[e+"="+encodeURIComponent(t)];Ve.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),Ve.isString(o)&&l.push("path="+o),Ve.isString(r)&&l.push("domain="+r),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ace(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nce(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vb(e,t){return e&&!Ace(t)?Nce(e,t):t}const Rce=Bo.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(a){let l=a;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(l){const s=Ve.isString(l)?r(l):l;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}();function Pce(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ice(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,a=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),f=o[a];l||(l=c),n[r]=u,o[r]=c;let d=a,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),c-l{const a=r.loaded,l=r.lengthComputable?r.total:void 0,s=a-n,u=o(s),c=a<=l;n=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-a)/u:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const Lce=typeof XMLHttpRequest<"u",Vce=Lce&&function(e){return new Promise(function(n,o){let r=e.data;const a=ur.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let f;if(Ve.isFormData(r)){if(Bo.hasStandardBrowserEnv||Bo.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((f=a.getContentType())!==!1){const[v,..._]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",..._].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+_))}const p=Vb(e.baseURL,e.url);d.open(e.method.toUpperCase(),Nb(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const v=ur.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:e,request:d};$ce(function(y){n(y),c()},function(y){o(y),c()},g),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(o(new Rt("Request aborted",Rt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){o(new Rt("Network Error",Rt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Rb;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),o(new Rt(_,g.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,e,d)),d=null},Bo.hasStandardBrowserEnv&&(s&&Ve.isFunction(s)&&(s=s(e)),s||s!==!1&&Rce(p))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Oce.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}r===void 0&&a.setContentType(null),"setRequestHeader"in d&&Ve.forEach(a.toJSON(),function(_,g){d.setRequestHeader(g,_)}),Ve.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),l&&l!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",S4(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",S4(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=v=>{d&&(o(!v||v.type?new Pi(null,e,d):v),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const m=Pce(p);if(m&&Bo.protocols.indexOf(m)===-1){o(new Rt("Unsupported protocol "+m+":",Rt.ERR_BAD_REQUEST,e));return}d.send(r||null)})},np={http:ice,xhr:Vce};Ve.forEach(np,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const k4=e=>`- ${e}`,Bce=e=>Ve.isFunction(e)||e===null||e===!1,Bb={getAdapter:e=>{e=Ve.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let a=0;a`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?a.length>1?`since : `+a.map(k4).join(` `):" "+k4(a[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:np};function Sf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pi(null,e)}function E4(e){return Sf(e),e.headers=ur.from(e.headers),e.data=Cf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bb.getAdapter(e.adapter||bv.adapter)(e).then(function(o){return Sf(e),o.data=Cf.call(e,e.transformResponse,o),o.headers=ur.from(o.headers),o},function(o){return Lb(o)||(Sf(e),o&&o.response&&(o.response.data=Cf.call(e,e.transformResponse,o.response),o.response.headers=ur.from(o.response.headers))),Promise.reject(o)})}const x4=e=>e instanceof ur?{...e}:e;function Ul(e,t){t=t||{};const n={};function o(c,f,d){return Ve.isPlainObject(c)&&Ve.isPlainObject(f)?Ve.merge.call({caseless:d},c,f):Ve.isPlainObject(f)?Ve.merge({},f):Ve.isArray(f)?f.slice():f}function r(c,f,d){if(Ve.isUndefined(f)){if(!Ve.isUndefined(c))return o(void 0,c,d)}else return o(c,f,d)}function a(c,f){if(!Ve.isUndefined(f))return o(void 0,f)}function l(c,f){if(Ve.isUndefined(f)){if(!Ve.isUndefined(c))return o(void 0,c)}else return o(void 0,f)}function s(c,f,d){if(d in t)return o(c,f);if(d in e)return o(void 0,c)}const u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(c,f)=>r(x4(c),x4(f),!0)};return Ve.forEach(Object.keys(Object.assign({},e,t)),function(f){const d=u[f]||r,p=d(e[f],t[f],f);Ve.isUndefined(p)&&d!==s||(n[f]=p)}),n}const zb="1.6.8",wv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wv[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const M4={};wv.transitional=function(t,n,o){function r(a,l){return"[Axios v"+zb+"] Transitional option '"+a+"'"+l+(o?". "+o:"")}return(a,l,s)=>{if(t===!1)throw new Rt(r(l," has been removed"+(n?" in "+n:"")),Rt.ERR_DEPRECATED);return n&&!M4[l]&&(M4[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,s):!0}};function zce(e,t,n){if(typeof e!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],l=t[a];if(l){const s=e[a],u=s===void 0||l(s,a,e);if(u!==!0)throw new Rt("option "+a+" must be "+u,Rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rt("Unknown option "+a,Rt.ERR_BAD_OPTION)}}const op={assertOptions:zce,validators:wv},Or=op.validators;class xc{constructor(t){this.defaults=t,this.interceptors={request:new w4,response:new w4}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";o.stack?a&&!String(o.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+a):o.stack=a}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ul(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:a}=n;o!==void 0&&op.assertOptions(o,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),r!=null&&(Ve.isFunction(r)?n.paramsSerializer={serialize:r}:op.assertOptions(r,{encode:Or.function,serialize:Or.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&Ve.merge(a.common,a[n.method]);a&&Ve.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=ur.concat(l,a);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let f,d=0,p;if(!u){const m=[E4.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,f=Promise.resolve(n);d{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](r);o._listeners=null}),this.promise.then=r=>{let a;const l=new Promise(s=>{o.subscribe(s),a=s}).then(r);return l.cancel=function(){o.unsubscribe(a)},l},t(function(a,l,s){o.reason||(o.reason=new Pi(a,l,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Cv(function(r){t=r}),cancel:t}}}const Hce=Cv;function Dce(e){return function(n){return e.apply(null,n)}}function Fce(e){return Ve.isObject(e)&&e.isAxiosError===!0}const rp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rp).forEach(([e,t])=>{rp[t]=e});const Kce=rp;function Hb(e){const t=new Gu(e),n=bb(Gu.prototype.request,t);return Ve.extend(n,Gu.prototype,t,{allOwnKeys:!0}),Ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Hb(Ul(e,r))},n}const un=Hb(bv);un.Axios=Gu;un.CanceledError=Pi;un.CancelToken=Hce;un.isCancel=Lb;un.VERSION=zb;un.toFormData=kd;un.AxiosError=Rt;un.Cancel=un.CanceledError;un.all=function(t){return Promise.all(t)};un.spread=Dce;un.isAxiosError=Fce;un.mergeConfig=Ul;un.AxiosHeaders=ur;un.formToJSON=e=>Ib(Ve.isHTMLForm(e)?new FormData(e):e);un.getAdapter=Bb.getAdapter;un.HttpStatusCode=Kce;un.default=un;const Wce={url:"https://multi-store.lihaink.cn/store",upload:"https://multi-store.lihaink.cn/store/upload/image/field",api:"https://multi-store.lihaink.cn/api"},Db=un.create({baseURL:Wce.url,timeout:6e4});Db.interceptors.request.use(e=>{const t=localStorage.getItem("Token");return t&&(e.headers.token=t),e},e=>(console.error(e),Promise.reject(e)));Db.interceptors.response.use(e=>{var t;if(e.data.code===-1&&(e.data.msg=="登录过期"||e.data.msg=="登录超时,请重新登录"))throw no({message:e.data.msg,type:"error"}),setTimeout(()=>{const n=bd();n.setUserInfo({}),n.setToken(""),Ub.push("/login")},500),new Error(e.data.msg);if(e.data.code===400)throw no({message:e.data.msg,type:"error"}),new Error(e.data.msg);if(e.data.code===500)throw e.data.msg=JSON.parse(e.data.msg),no({message:((t=e.data.msg)==null?void 0:t.msg)||e.data.msg,type:"error"}),new Error(e.data.msg);return e.data.show&&no({message:e.data.msg,type:e.data.code===0?"error":"success"}),e.data.code===0?Promise.reject(e.data):e.data},e=>{var t,n;return console.error(e),no({message:((n=(t=e.response)==null?void 0:t.data)==null?void 0:n.msg)||e,type:"error"}),Promise.reject(e)});function jce(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(r){r(n)}),(o=e.get("*"))&&o.slice().map(function(r){r(t,n)})}}}const Yt=jce(),qce=mv("print",()=>{const e=L(localStorage.getItem("is_connect")),t=L(localStorage.getItem("print_address"));return{is_connect:e,setConnect:r=>{e.value=r,localStorage.setItem("is_connect",r)},printAddress:t,setPrintAddress:r=>{t.value=r,localStorage.setItem("print_address",r)}}}),Fb=32;function la(e){if(typeof e=="string")return e;for(var t="",n=e,o=0;o2&&(u-=2,s+=2);let c=new Array(u).fill(o.charAt(0)).join(""),f=new Array(s).fill(o.charAt(0)).join("");return e+c+t+f+n}function sl(e="-",t=1){const n=Fb/t;return new Array(n).fill(e.charAt(0)).join("")}const Zce={id:119,store_id:5,staff_id:0,order_id:"PF1717833856******",pid:null,uid:0,real_name:"",user_phone:"",user_address:"",cart_id:"79",freight_price:"0.00",total_num:1,total_price:"0.00",total_postage:"0.00",pay_price:"0.00",cost:"0.00",profit:"0.00",earnings:"0.00",vip_price:"0.00",pay_postage:"0.00",deduction_price:"0.00",coupon_id:0,coupon_price:"0.00",paid:1,pay_time:1717833856,pay_type:"7",pay_type_name:"微信小程序",status:2,refund_status:0,refund_type:0,refund_express:"",refund_reason_wap_img:null,refund_reason_wap_explain:"",refund_reason_time:0,refund_cancle_time:null,refund_reason_wap:"",refund_reason:"",refund_num:0,refund_price:"0.00",delivery_name:"",delivery_code:"",delivery_type:"",delivery_id:"",fictitious_content:"",delivery_uid:0,mark:"",remark:"",mer_id:0,verify_code:"6-******",shipping_type:2,reservation:0,reservation_time:null,is_writeoff:1,is_remind:0,create_time:"2024-00-08 16:04:16",update_time:"2024-00-08 16:56:23",delete_time:null,system_store_name:"店铺名称",system_store_phone:"156****6666",staff_name:"新店阿萨",staff_phone:"156****6666",nickname:"",user_mobile:"",info:[{store_id:5,product_id:30,cart_num:1,price:null,total_price:null,unit_name:"只",store_name:"商品名称"}]},Ef=(e={},t=!1)=>{let n="";return(!e||!e.order_id)&&(e=Zce),n+=Gce(2)+T4()+fu()+e.system_store_name+Uce()+` +`+a):o.stack=a}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ul(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:a}=n;o!==void 0&&op.assertOptions(o,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),r!=null&&(Ve.isFunction(r)?n.paramsSerializer={serialize:r}:op.assertOptions(r,{encode:Or.function,serialize:Or.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&Ve.merge(a.common,a[n.method]);a&&Ve.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=ur.concat(l,a);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let f,d=0,p;if(!u){const m=[E4.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,f=Promise.resolve(n);d{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](r);o._listeners=null}),this.promise.then=r=>{let a;const l=new Promise(s=>{o.subscribe(s),a=s}).then(r);return l.cancel=function(){o.unsubscribe(a)},l},t(function(a,l,s){o.reason||(o.reason=new Pi(a,l,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Cv(function(r){t=r}),cancel:t}}}const Hce=Cv;function Dce(e){return function(n){return e.apply(null,n)}}function Fce(e){return Ve.isObject(e)&&e.isAxiosError===!0}const rp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rp).forEach(([e,t])=>{rp[t]=e});const Kce=rp;function Hb(e){const t=new Gu(e),n=bb(Gu.prototype.request,t);return Ve.extend(n,Gu.prototype,t,{allOwnKeys:!0}),Ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Hb(Ul(e,r))},n}const un=Hb(bv);un.Axios=Gu;un.CanceledError=Pi;un.CancelToken=Hce;un.isCancel=Lb;un.VERSION=zb;un.toFormData=kd;un.AxiosError=Rt;un.Cancel=un.CanceledError;un.all=function(t){return Promise.all(t)};un.spread=Dce;un.isAxiosError=Fce;un.mergeConfig=Ul;un.AxiosHeaders=ur;un.formToJSON=e=>Ib(Ve.isHTMLForm(e)?new FormData(e):e);un.getAdapter=Bb.getAdapter;un.HttpStatusCode=Kce;un.default=un;const Wce={url:"https://test-multi-store.lihaink.cn/store",upload:"https://test-multi-store.lihaink.cn/store/upload/image/field",api:"https://test-multi-store.lihaink.cn/api"},Db=un.create({baseURL:Wce.url,timeout:6e4});Db.interceptors.request.use(e=>{const t=localStorage.getItem("Token");return t&&(e.headers.token=t),e},e=>(console.error(e),Promise.reject(e)));Db.interceptors.response.use(e=>{var t;if(e.data.code===-1&&(e.data.msg=="登录过期"||e.data.msg=="登录超时,请重新登录"))throw no({message:e.data.msg,type:"error"}),setTimeout(()=>{const n=bd();n.setUserInfo({}),n.setToken(""),Ub.push("/login")},500),new Error(e.data.msg);if(e.data.code===400)throw no({message:e.data.msg,type:"error"}),new Error(e.data.msg);if(e.data.code===500)throw e.data.msg=JSON.parse(e.data.msg),no({message:((t=e.data.msg)==null?void 0:t.msg)||e.data.msg,type:"error"}),new Error(e.data.msg);return e.data.show&&no({message:e.data.msg,type:e.data.code===0?"error":"success"}),e.data.code===0?Promise.reject(e.data):e.data},e=>{var t,n;return console.error(e),no({message:((n=(t=e.response)==null?void 0:t.data)==null?void 0:n.msg)||e,type:"error"}),Promise.reject(e)});function jce(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(r){r(n)}),(o=e.get("*"))&&o.slice().map(function(r){r(t,n)})}}}const Yt=jce(),qce=mv("print",()=>{const e=L(localStorage.getItem("is_connect")),t=L(localStorage.getItem("print_address"));return{is_connect:e,setConnect:r=>{e.value=r,localStorage.setItem("is_connect",r)},printAddress:t,setPrintAddress:r=>{t.value=r,localStorage.setItem("print_address",r)}}}),Fb=32;function la(e){if(typeof e=="string")return e;for(var t="",n=e,o=0;o2&&(u-=2,s+=2);let c=new Array(u).fill(o.charAt(0)).join(""),f=new Array(s).fill(o.charAt(0)).join("");return e+c+t+f+n}function sl(e="-",t=1){const n=Fb/t;return new Array(n).fill(e.charAt(0)).join("")}const Zce={id:119,store_id:5,staff_id:0,order_id:"PF1717833856******",pid:null,uid:0,real_name:"",user_phone:"",user_address:"",cart_id:"79",freight_price:"0.00",total_num:1,total_price:"0.00",total_postage:"0.00",pay_price:"0.00",cost:"0.00",profit:"0.00",earnings:"0.00",vip_price:"0.00",pay_postage:"0.00",deduction_price:"0.00",coupon_id:0,coupon_price:"0.00",paid:1,pay_time:1717833856,pay_type:"7",pay_type_name:"微信小程序",status:2,refund_status:0,refund_type:0,refund_express:"",refund_reason_wap_img:null,refund_reason_wap_explain:"",refund_reason_time:0,refund_cancle_time:null,refund_reason_wap:"",refund_reason:"",refund_num:0,refund_price:"0.00",delivery_name:"",delivery_code:"",delivery_type:"",delivery_id:"",fictitious_content:"",delivery_uid:0,mark:"",remark:"",mer_id:0,verify_code:"6-******",shipping_type:2,reservation:0,reservation_time:null,is_writeoff:1,is_remind:0,create_time:"2024-00-08 16:04:16",update_time:"2024-00-08 16:56:23",delete_time:null,system_store_name:"店铺名称",system_store_phone:"156****6666",staff_name:"新店阿萨",staff_phone:"156****6666",nickname:"",user_mobile:"",info:[{store_id:5,product_id:30,cart_num:1,price:null,total_price:null,unit_name:"只",store_name:"商品名称"}]},Ef=(e={},t=!1)=>{let n="";return(!e||!e.order_id)&&(e=Zce),n+=Gce(2)+T4()+fu()+e.system_store_name+Uce()+` `,n+=sl(" ")+pu()+` `,e.shipping_type&&(e.is_writeoff==1?n+=$n()+"核销码: "+fu()+e.verify_code+pu()+` (已核销) `:e.reservation==1?n+=$n()+"核销码: "+fu()+e.verify_code+pu()+` (次日提) @@ -102,4 +102,4 @@ function __vite__mapDeps(indexes) { `,n+=sl(" ")+` `,n+=T4()+`欢迎下次光临! `,n+=Yce(" ")+` -`,n+=Xce(),n},Sv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ii=e=>(Vw("data-v-fa9ee521"),e=e(),Bw(),e),Qce={class:"my-card"},ede={class:"card-header"},tde={style:{width:"4.5rem"}},nde=Ii(()=>k("div",{class:"card-title"},"泸优采收银系统",-1)),ode={style:{"margin-left":"1rem",display:"flex","flex-direction":"column","justify-content":"center",cursor:"pointer"}},rde={class:"card-body"},ade={style:{"margin-right":"1rem"}},lde=Ii(()=>k("span",null,"打印自检",-1)),sde={key:0,style:{"margin-right":"1rem"}},ide=Ii(()=>k("span",null,"点击自动连接打印机",-1)),ude=Ii(()=>k("div",null,"已连接打印机T58",-1)),cde={style:{"font-size":"0.7rem",color:"#ccc"}},dde=Ii(()=>k("span",null,"打印机已连接,是否重新连接",-1)),fde={class:"dialog-footer"},pde={class:"el-dropdown-link"},vde={class:"info"},hde={__name:"myHeader",setup(e){const t=bd(),n=qce(),o=L({});o.value=t.userInfo;const r=hb(),a=()=>{t.setUserInfo({}),t.setToken(""),r.push("/login")},l=()=>{window.location.reload()},s=L(!1),u=()=>{console.log("连接打印机"),uni.getEnv(h=>{h.h5?no.error("请使用APP连接打印机"):(n.setConnect(!1),n.setPrintAddress(""),s.value=!1,uni.postMessage({data:{type:"connect"}}))})};let c=!1;const f=(h="")=>{console.log("预打印"),console.log(Ef(h,!0)),!c&&(c=!0,uni.getEnv(m=>{m.h5?(no.error("请使用APP打印小票"),c=!1):(p(h),setTimeout(()=>{c=!1},4e3))}))},d=(h="")=>{console.log("预打印");let m=Ef(h,!0);console.log(m),!c&&(c=!0,uni.getEnv(v=>{v.h5?(no.error("请使用APP打印小票"),c=!1):(p(m),setTimeout(()=>{c=!1},4e3))}))},p=(h="")=>{let m="";h===""?(m=Ef({},!0),console.log(m)):m=h,uni.postMessage({data:{type:"print",content:m}})};return et(()=>{Yt.on("printReceipt",f),Yt.on("letPrintReceipt",d),window.addEventListener("message",function(h){if(h.data.type==="connect"){let m=h.data.data.address;n.setConnect(!0),n.setPrintAddress(m),no.success("已连接打印机T58("+m+")")}},!1)}),xo(()=>{Yt.off("printReceipt",f),Yt.off("letPrintReceipt",d)}),(h,m)=>{const v=Ze("el-image"),_=Ze("Refresh"),g=Ze("el-icon"),w=Ze("el-button"),y=Ze("el-dialog"),C=Ze("el-avatar"),E=Ze("arrow-down"),x=Ze("el-dropdown-item"),A=Ze("el-dropdown-menu"),T=Ze("el-dropdown");return b(),M("div",Qce,[k("div",ede,[k("div",tde,[W(v,{style:{height:"2.5rem",width:"2.5rem",margin:"0 auto"},src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/12c93202404101530591311.png"})]),nde,k("div",ode,[W(g,{color:"#fff",size:"25",onClick:l},{default:X(()=>[W(_)]),_:1})])]),k("div",rde,[k("div",ade,[W(w,{onClick:m[0]||(m[0]=R=>i(Yt).emit("letPrintReceipt")),type:"primary"},{default:X(()=>[lde]),_:1})]),!i(n).is_connect||!i(n).printAddress?(b(),M("div",sde,[W(w,{onClick:u,type:"warning"},{default:X(()=>[ide]),_:1})])):(b(),M("div",{key:1,style:{"margin-right":"1rem","font-size":"0.9rem"},onClick:m[1]||(m[1]=R=>s.value=!0)},[ude,k("div",cde,"("+Te(i(n).printAddress)+")",1)])),W(y,{modelValue:s.value,"onUpdate:modelValue":m[3]||(m[3]=R=>s.value=R),title:"提示",width:"500"},{footer:X(()=>[k("div",fde,[W(w,{onClick:m[2]||(m[2]=R=>s.value=!1)},{default:X(()=>[mt("取消")]),_:1}),W(w,{type:"primary",onClick:u},{default:X(()=>[mt(" 重新连接 ")]),_:1})])]),default:X(()=>[dde]),_:1},8,["modelValue"]),W(T,{trigger:"hover"},{dropdown:X(()=>[W(A,null,{default:X(()=>[W(x,{onClick:a},{default:X(()=>[mt("退出登录")]),_:1})]),_:1})]),default:X(()=>[k("div",pde,[W(C,{src:o.value.avatar,icon:"user-filled"},null,8,["src"]),k("div",vde,[k("div",null,Te(o.value.name),1),k("div",null,"("+Te(o.value.role_name)+")",1)]),W(g,{class:"el-icon--right"},{default:X(()=>[W(E)]),_:1})])]),_:1})])])}}},mde=Sv(hde,[["__scopeId","data-v-fa9ee521"]]),gde=mv("order",()=>{const e=L(localStorage.getItem("orderCount")||0);return{orderCount:e,setOrderCount:n=>{e.value=n,localStorage.setItem("orderCount",n)}}}),yde={class:"my-card"},_de=["onClick"],bde={key:0,class:"badge"},wde={__name:"myAside",setup(e){const t=hb(),n=bue(),o=gde(),r=(d=1)=>{o.setOrderCount(d),u.value.forEach(p=>{p.name=="order"&&(p.count=d)})};let a=!1;const l=d=>{try{if(r(0),no.success("您有新的订单"),a)return;var p=new Audio("/public/order.mp3");p.play(),a=!0,console.log("播放中"),p.addEventListener("ended",function(){a=!1})}catch(h){console.error(h),a=!1,no.error("播放失败")}},s=d=>{t.push({name:d})},u=L([{name:"saleHome",title:"收银",ico:"Sell",count:0},{name:"saleOrder",title:"收银订单",ico:"DataLine",count:0},{name:"order",title:"线上订单",ico:"DataAnalysis",count:0},{name:"convert",title:"订单核销",ico:"FullScreen",count:0},{name:"putStorage",title:"入库登记",ico:"Van",count:0},{name:"stock",title:"商品库存",ico:"Box",count:0},{name:"user",title:"用户",ico:"User",count:0}]),c=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==0&&(d=u.value.length),d>0&&s(u.value[d-1].name)},f=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==u.value.length-1&&(d=-1),d{Yt.on("up",c),Yt.on("down",f),Yt.on("new_order",l),Yt.on("set-order-count-zero",()=>{r(0)}),r(0)}),xo(()=>{Yt.off("aup",c),Yt.off("adown",f),Yt.off("new_order",l),Yt.on("set-order-count-zero")}),(d,p)=>{const h=Ze("el-icon");return b(),M("div",yde,[(b(!0),M(Fe,null,ht(u.value,m=>(b(),M("div",{key:m.name,class:$(["list-item",{active:i(n).name==m.name}]),onClick:v=>s(m.name)},[W(h,{size:"2rem"},{default:X(()=>[(b(),le(st(m.ico)))]),_:2},1024),k("div",null,Te(m.title),1),m.count?(b(),M("div",bde,Te(m.count),1)):ne("",!0)],10,_de))),128))])}}},Cde=Sv(wde,[["__scopeId","data-v-24f75199"]]),Oo=function e(t){this.doNotConnect=0,t=t||{},t.heartbeat=t.heartbeat||25e3,t.pingTimeout=t.pingTimeout||1e4,this.config=t,this.uid=0,this.channels={},this.connection=null,this.pingTimeoutTimer=0,e.instances.push(this),this.createConnection()};Oo.prototype.checkoutPing=function(){var e=this;e.checkoutPingTimer&&clearTimeout(e.checkoutPingTimer),e.checkoutPingTimer=setTimeout(function(){e.checkoutPingTimer=0,e.connection.state==="connected"&&(e.connection.send('{"event":"pusher:ping","data":{}}'),e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),e.pingTimeoutTimer=setTimeout(function(){e.connection.closeAndClean(),e.connection.doNotConnect||e.connection.waitReconnect()},e.config.pingTimeout))},this.config.heartbeat)};Oo.prototype.channel=function(e){return this.channels.find(e)};Oo.prototype.allChannels=function(){return this.channels.all()};Oo.prototype.createConnection=function(){if(this.connection)throw Error("Connection already exist");var e=this,t=this.config.url;function n(){for(var o in e.channels)e.channels[o].subscribed=!1}this.connection=new Qa({url:t,app_key:this.config.app_key,onOpen:function(){e.connection.state="connecting",e.checkoutPing()},onMessage:function(o){e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),o=JSON.parse(o.data);var r=o.event,a=o.channel;if(r==="pusher:pong"){e.checkoutPing();return}if(r==="pusher:error")throw Error(o.data.message);var l=JSON.parse(o.data),s;if(r==="pusher_internal:subscription_succeeded"){s=e.channels[a],s.subscribed=!0,s.processQueue(),s.emit("pusher:subscription_succeeded");return}if(r==="pusher:connection_established"&&(e.connection.socket_id=l.socket_id,e.connection.updateNetworkState("connected"),e.subscribeAll()),r.indexOf("pusher_internal")!==-1){console.log("Event '"+r+"' not implement");return}s=e.channels[a],s&&s.emit(r,l)},onClose:function(){n()},onError:function(){n()}})};Oo.prototype.disconnect=function(){this.connection.doNotConnect=1,this.connection.close()};Oo.prototype.subscribeAll=function(){if(this.connection.state==="connected")for(var e in this.channels)this.channels[e].processSubscribe()};Oo.prototype.unsubscribe=function(e){this.channels[e]&&(delete this.channels[e],this.connection.state==="connected"&&this.connection.send(JSON.stringify({event:"pusher:unsubscribe",data:{channel:e}})))};Oo.prototype.unsubscribeAll=function(){var e=Object.keys(this.channels);if(e.length&&this.connection.state==="connected")for(var t in this.channels)this.unsubscribe(t);this.channels={}};Oo.prototype.subscribe=function(e){return this.channels[e]?this.channels[e]:e.indexOf("private-")===0?Kb(e,this):e.indexOf("presence-")===0?kde(e,this):Sde(e,this)};Oo.instances=[];function Sde(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){t.connection.send(JSON.stringify({event:"pusher:subscribe",data:{channel:e}}))},n.processSubscribe(),n}function Kb(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){xde({url:t.config.auth,type:"POST",data:{channel_name:e,socket_id:t.connection.socket_id},success:function(o){o=JSON.parse(o),o.channel=e,t.connection.send(JSON.stringify({event:"pusher:subscribe",data:o}))},error:function(o){throw Error(o)}})},n.processSubscribe(),n}function kde(e,t){return Kb(e,t)}function Qa(e){this.dispatcher=new jb,Wb(this,this.dispatcher);var t=["on","off","emit"];for(var n in t)this[t[n]]=this.dispatcher[t[n]];this.options=e,this.state="initialized",this.doNotConnect=0,this.reconnectInterval=1,this.connection=null,this.reconnectTimer=0,this.connect()}Qa.prototype.updateNetworkState=function(e){var t=this.state;this.state=e,t!==e&&this.emit("state_change",{previous:t,current:e})};Qa.prototype.connect=function(){if(this.doNotConnect=0,this.state==="connected"){console.log('networkState is "'+this.state+'" and do not need connect');return}this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=0),this.closeAndClean();var e=this.options,t=new WebSocket(e.url+"/app/"+e.app_key);this.updateNetworkState("connecting");var n=this;t.onopen=function(o){if(n.reconnectInterval=1,n.doNotConnect){n.updateNetworkState("disconnected"),t.close();return}e.onOpen&&e.onOpen(o)},e.onMessage&&(t.onmessage=e.onMessage),t.onclose=function(o){t.onmessage=t.onopen=t.onclose=t.onerror=null,n.updateNetworkState("disconnected"),n.doNotConnect||n.waitReconnect(),e.onClose&&e.onClose(o)},t.onerror=function(o){n.close(),n.doNotConnect||n.waitReconnect(),e.onError&&e.onError(o)},this.connection=t};Qa.prototype.closeAndClean=function(){if(this.connection){var e=this.connection;e.onmessage=e.onopen=e.onclose=e.onerror=null;try{e.close()}catch{}this.updateNetworkState("disconnected")}};Qa.prototype.waitReconnect=function(){if(!(this.state==="connected"||this.state==="connecting")&&!this.doNotConnect){this.updateNetworkState("connecting");var e=this;this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(function(){e.connect()},this.reconnectInterval),this.reconnectInterval<1e3?this.reconnectInterval=1e3:this.reconnectInterval=this.reconnectInterval*2,this.reconnectInterval>2e3&&navigator.onLine&&(e.reconnectInterval=2e3)}};Qa.prototype.send=function(e){if(this.state!=="connected"){console.trace('networkState is "'+this.state+'", can not send '+e);return}this.connection.send(e)};Qa.prototype.close=function(){this.updateNetworkState("disconnected"),this.connection.close()};var Wb=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)};function Li(e,t){this.subscribed=!1,this.dispatcher=new jb,this.connection=e,this.channelName=t,this.subscribeCb=null,this.queue=[],Wb(this,this.dispatcher);var n=["on","off","emit"];for(var o in n)this[n[o]]=this.dispatcher[n[o]]}Li.prototype.processSubscribe=function(){this.connection.state==="connected"&&this.subscribeCb()};Li.prototype.processQueue=function(){if(!(this.connection.state!=="connected"||!this.subscribed)){for(var e in this.queue)this.queue[e]();this.queue=[]}};Li.prototype.trigger=function(e,t){if(e.indexOf("client-")!==0)throw new Error("Event '"+e+"' should start with 'client-'");var n=this;this.queue.push(function(){n.connection.send(JSON.stringify({event:e,data:t,channel:n.channelName}))}),this.processQueue()};var vu=function(){var e={};function t(y){for(var C=[],E=1;E0)for(o=0;o=200&&n<300?e.success&&e.success(t.responseText,t.responseXML):e.error&&e.error(n)}},e.type==="GET"?(t.open("GET",e.url+"?"+params,!0),t.send(null)):e.type==="POST"&&(t.open("POST",e.url,!0),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.send(params))}function Mde(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}const Tde={class:"common-layout"},$de={__name:"index",setup(e){const t=bd(),o=new Oo({url:"wss://multi-store.lihaink.cn/pull",app_key:"2ce3ce22329517213caa7dad261f5695"}).subscribe(`store_merchant_${t.userInfo.store_id}`);o.on("message",function(a){var l,s,u,c,f,d,p,h,m;console.log("收到消息--",a);try{((l=a==null?void 0:a.content)==null?void 0:l.type)=="cash_register"&&((s=a==null?void 0:a.content)==null?void 0:s.msg)=="您有一笔订单已支付"&&Yt.emit("pay_success",(u=a==null?void 0:a.content)==null?void 0:u.data),((c=a==null?void 0:a.content)==null?void 0:c.type)=="store_merchant"&&((f=a==null?void 0:a.content)==null?void 0:f.msg)=="您有一笔新的订单"&&Yt.emit("new_order",a==null?void 0:a.content),((d=a==null?void 0:a.content)==null?void 0:d.type)=="platform_print"&&Yt.emit("letPrintReceipt",(p=a==null?void 0:a.content)==null?void 0:p.data),((h=a==null?void 0:a.content)==null?void 0:h.msg)=="订单支付成功"&&Yt.emit("pay_user_success",(m=a==null?void 0:a.content)==null?void 0:m.data)}catch{}}),o.on("close",function(){});const r=a=>{console.log("按下",a.keyCode),a.keyCode==16&&Yt.emit("shift"),a.keyCode==120&&Yt.emit("F9"),a.keyCode==13&&Yt.emit("enter"),a.keyCode==37&&Yt.emit("left"),a.keyCode==39&&Yt.emit("right"),a.keyCode==38&&Yt.emit("up"),a.keyCode==40&&Yt.emit("down"),a.keyCode==46&&Yt.emit("delete")};return et(()=>{window.addEventListener("keydown",r),console.log("开启键盘监听")}),xo(()=>{window.removeEventListener("keydown",r),console.log("关闭键盘监听")}),(a,l)=>{const s=Ze("el-header"),u=Ze("el-aside"),c=Ze("router-view"),f=Ze("el-main"),d=Ze("el-container");return b(),M("div",Tde,[W(d,null,{default:X(()=>[W(s,null,{default:X(()=>[W(mde)]),_:1}),W(d,null,{default:X(()=>[W(u,{width:"6.25rem"},{default:X(()=>[W(Cde)]),_:1}),W(f,{style:{color:"#333"}},{default:X(()=>[W(c,{class:"my-main"},{default:X(({Component:p})=>[W(nn,{name:"el-zoom-in-top"},{default:X(()=>[(b(),le(st(p)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})])}}},Ode=Sv($de,[["__scopeId","data-v-6c618134"]]),Ade=[{path:"/",name:"layout",component:Ode,redirect:"/saleHome",meta:{title:"里海收银系统"},children:[{path:"/saleHome",name:"saleHome",meta:{title:"收银"},component:()=>qn(()=>import("./index-CmxzD3CZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)},{path:"/saleOrder",name:"saleOrder",meta:{title:"收银订单"},component:()=>qn(()=>import("./index-DCk_Y_Qh.js"),__vite__mapDeps([11,1,3,7,8,9,4,12]),import.meta.url)},{path:"/order",name:"order",meta:{title:"线上采购"},component:()=>qn(()=>import("./index-sc4OLLDO.js"),__vite__mapDeps([13,1,3,4,14,9]),import.meta.url)},{path:"/subOrder",name:"subOrder",meta:{title:"订单统计"},component:()=>qn(()=>import("./index-D1TivdSk.js"),__vite__mapDeps([15,1,3,7,8,9,4,16]),import.meta.url)},{path:"/order",name:"order",meta:{title:"预约取货"},component:()=>qn(()=>import("./index-sc4OLLDO.js"),__vite__mapDeps([13,1,3,4,14,9]),import.meta.url)},{path:"/wallet",name:"wallet",meta:{title:"提现"},component:()=>qn(()=>import("./index-CKEx9ISi.js"),__vite__mapDeps([17,3,4,18]),import.meta.url)},{path:"/convert",name:"convert",meta:{title:"订单核销"},component:()=>qn(()=>import("./index-BT4iX4wE.js"),__vite__mapDeps([19,1,4,20,9]),import.meta.url)},{path:"/putStorage",name:"putStorage",meta:{title:"入库登记"},component:()=>qn(()=>import("./index-qH_tZlHY.js"),__vite__mapDeps([21,6,5,22]),import.meta.url)},{path:"/stock",name:"stock",meta:{title:"入库登记"},component:()=>qn(()=>import("./index-CMCUKE4O.js"),__vite__mapDeps([23,6,5,24]),import.meta.url)},{path:"/user",name:"user",meta:{title:"用户"},component:()=>qn(()=>import("./index-Bo-OgYgJ.js"),__vite__mapDeps([25,2,3,5,8,1,4,26]),import.meta.url)},{path:"/test",name:"test",component:()=>qn(()=>import("./test-CVeEG6NU.js"),__vite__mapDeps([27,28]),import.meta.url)}]},{path:"/login",name:"login",component:()=>qn(()=>import("./index-rbnjTq1H.js"),__vite__mapDeps([29,2,30]),import.meta.url)},{path:"/:catchAll(.*)",name:"notFound",component:()=>qn(()=>import("./index-Cndx3WEI.js"),__vite__mapDeps([]),import.meta.url)}],qb=yue({history:Uie(),routes:Ade});qb.beforeEach((e,t,n)=>{const o=bd();e.name!=="login"&&!o.Token?n({name:"login"}):n()});const Ub=qb,Vi=Fg(g9);for(const[e,t]of Object.entries(qL))Vi.component(e,t);const Nde=Cue();Vi.use(Ub);Vi.use(Nde);Vi.use(fie,{locale:pie});Vi.mount("#app");export{cr as A,Jse as B,cie as C,Sse as D,no as E,Fe as F,wt as G,bue as H,hb as I,S as J,Db as K,bt as L,Op as M,De as N,un as O,Wce as P,Ub as Q,Sv as _,xo as a,Ze as b,b as c,le as d,k as e,W as f,mt as g,Pc as h,Mt as i,tt as j,M as k,ht as l,Yt as m,We as n,et as o,ne as p,Vw as q,L as r,Bw as s,Te as t,bd as u,kr as v,X as w,Er as x,i as y,$ as z}; +`,n+=Xce(),n},Sv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ii=e=>(Vw("data-v-fa9ee521"),e=e(),Bw(),e),Qce={class:"my-card"},ede={class:"card-header"},tde={style:{width:"4.5rem"}},nde=Ii(()=>k("div",{class:"card-title"},"泸优采收银系统",-1)),ode={style:{"margin-left":"1rem",display:"flex","flex-direction":"column","justify-content":"center",cursor:"pointer"}},rde={class:"card-body"},ade={style:{"margin-right":"1rem"}},lde=Ii(()=>k("span",null,"打印自检",-1)),sde={key:0,style:{"margin-right":"1rem"}},ide=Ii(()=>k("span",null,"点击自动连接打印机",-1)),ude=Ii(()=>k("div",null,"已连接打印机T58",-1)),cde={style:{"font-size":"0.7rem",color:"#ccc"}},dde=Ii(()=>k("span",null,"打印机已连接,是否重新连接",-1)),fde={class:"dialog-footer"},pde={class:"el-dropdown-link"},vde={class:"info"},hde={__name:"myHeader",setup(e){const t=bd(),n=qce(),o=L({});o.value=t.userInfo;const r=hb(),a=()=>{t.setUserInfo({}),t.setToken(""),r.push("/login")},l=()=>{window.location.reload()},s=L(!1),u=()=>{console.log("连接打印机"),uni.getEnv(h=>{h.h5?no.error("请使用APP连接打印机"):(n.setConnect(!1),n.setPrintAddress(""),s.value=!1,uni.postMessage({data:{type:"connect"}}))})};let c=!1;const f=(h="")=>{console.log("预打印"),console.log(Ef(h,!0)),!c&&(c=!0,uni.getEnv(m=>{m.h5?(no.error("请使用APP打印小票"),c=!1):(p(h),setTimeout(()=>{c=!1},4e3))}))},d=(h="")=>{console.log("预打印");let m=Ef(h,!0);console.log(m),!c&&(c=!0,uni.getEnv(v=>{v.h5?(no.error("请使用APP打印小票"),c=!1):(p(m),setTimeout(()=>{c=!1},4e3))}))},p=(h="")=>{let m="";h===""?(m=Ef({},!0),console.log(m)):m=h,uni.postMessage({data:{type:"print",content:m}})};return et(()=>{Yt.on("printReceipt",f),Yt.on("letPrintReceipt",d),window.addEventListener("message",function(h){if(h.data.type==="connect"){let m=h.data.data.address;n.setConnect(!0),n.setPrintAddress(m),no.success("已连接打印机T58("+m+")")}},!1)}),xo(()=>{Yt.off("printReceipt",f),Yt.off("letPrintReceipt",d)}),(h,m)=>{const v=Ze("el-image"),_=Ze("Refresh"),g=Ze("el-icon"),w=Ze("el-button"),y=Ze("el-dialog"),C=Ze("el-avatar"),E=Ze("arrow-down"),x=Ze("el-dropdown-item"),A=Ze("el-dropdown-menu"),T=Ze("el-dropdown");return b(),M("div",Qce,[k("div",ede,[k("div",tde,[W(v,{style:{height:"2.5rem",width:"2.5rem",margin:"0 auto"},src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/12c93202404101530591311.png"})]),nde,k("div",ode,[W(g,{color:"#fff",size:"25",onClick:l},{default:X(()=>[W(_)]),_:1})])]),k("div",rde,[k("div",ade,[W(w,{onClick:m[0]||(m[0]=R=>i(Yt).emit("letPrintReceipt")),type:"primary"},{default:X(()=>[lde]),_:1})]),!i(n).is_connect||!i(n).printAddress?(b(),M("div",sde,[W(w,{onClick:u,type:"warning"},{default:X(()=>[ide]),_:1})])):(b(),M("div",{key:1,style:{"margin-right":"1rem","font-size":"0.9rem"},onClick:m[1]||(m[1]=R=>s.value=!0)},[ude,k("div",cde,"("+Te(i(n).printAddress)+")",1)])),W(y,{modelValue:s.value,"onUpdate:modelValue":m[3]||(m[3]=R=>s.value=R),title:"提示",width:"500"},{footer:X(()=>[k("div",fde,[W(w,{onClick:m[2]||(m[2]=R=>s.value=!1)},{default:X(()=>[mt("取消")]),_:1}),W(w,{type:"primary",onClick:u},{default:X(()=>[mt(" 重新连接 ")]),_:1})])]),default:X(()=>[dde]),_:1},8,["modelValue"]),W(T,{trigger:"hover"},{dropdown:X(()=>[W(A,null,{default:X(()=>[W(x,{onClick:a},{default:X(()=>[mt("退出登录")]),_:1})]),_:1})]),default:X(()=>[k("div",pde,[W(C,{src:o.value.avatar,icon:"user-filled"},null,8,["src"]),k("div",vde,[k("div",null,Te(o.value.name),1),k("div",null,"("+Te(o.value.role_name)+")",1)]),W(g,{class:"el-icon--right"},{default:X(()=>[W(E)]),_:1})])]),_:1})])])}}},mde=Sv(hde,[["__scopeId","data-v-fa9ee521"]]),gde=mv("order",()=>{const e=L(localStorage.getItem("orderCount")||0);return{orderCount:e,setOrderCount:n=>{e.value=n,localStorage.setItem("orderCount",n)}}}),yde={class:"my-card"},_de=["onClick"],bde={key:0,class:"badge"},wde={__name:"myAside",setup(e){const t=hb(),n=bue(),o=gde(),r=(d=1)=>{o.setOrderCount(d),u.value.forEach(p=>{p.name=="order"&&(p.count=d)})};let a=!1;const l=d=>{try{if(r(0),no.success("您有新的订单"),a)return;var p=new Audio("/public/order.mp3");p.play(),a=!0,console.log("播放中"),p.addEventListener("ended",function(){a=!1})}catch(h){console.error(h),a=!1,no.error("播放失败")}},s=d=>{t.push({name:d})},u=L([{name:"saleHome",title:"收银",ico:"Sell",count:0},{name:"saleOrder",title:"收银订单",ico:"DataLine",count:0},{name:"order",title:"线上订单",ico:"DataAnalysis",count:0},{name:"convert",title:"订单核销",ico:"FullScreen",count:0},{name:"putStorage",title:"入库登记",ico:"Van",count:0},{name:"stock",title:"商品库存",ico:"Box",count:0},{name:"user",title:"用户",ico:"User",count:0}]),c=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==0&&(d=u.value.length),d>0&&s(u.value[d-1].name)},f=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==u.value.length-1&&(d=-1),d{Yt.on("up",c),Yt.on("down",f),Yt.on("new_order",l),Yt.on("set-order-count-zero",()=>{r(0)}),r(0)}),xo(()=>{Yt.off("aup",c),Yt.off("adown",f),Yt.off("new_order",l),Yt.on("set-order-count-zero")}),(d,p)=>{const h=Ze("el-icon");return b(),M("div",yde,[(b(!0),M(Fe,null,ht(u.value,m=>(b(),M("div",{key:m.name,class:$(["list-item",{active:i(n).name==m.name}]),onClick:v=>s(m.name)},[W(h,{size:"2rem"},{default:X(()=>[(b(),le(st(m.ico)))]),_:2},1024),k("div",null,Te(m.title),1),m.count?(b(),M("div",bde,Te(m.count),1)):ne("",!0)],10,_de))),128))])}}},Cde=Sv(wde,[["__scopeId","data-v-24f75199"]]),Oo=function e(t){this.doNotConnect=0,t=t||{},t.heartbeat=t.heartbeat||25e3,t.pingTimeout=t.pingTimeout||1e4,this.config=t,this.uid=0,this.channels={},this.connection=null,this.pingTimeoutTimer=0,e.instances.push(this),this.createConnection()};Oo.prototype.checkoutPing=function(){var e=this;e.checkoutPingTimer&&clearTimeout(e.checkoutPingTimer),e.checkoutPingTimer=setTimeout(function(){e.checkoutPingTimer=0,e.connection.state==="connected"&&(e.connection.send('{"event":"pusher:ping","data":{}}'),e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),e.pingTimeoutTimer=setTimeout(function(){e.connection.closeAndClean(),e.connection.doNotConnect||e.connection.waitReconnect()},e.config.pingTimeout))},this.config.heartbeat)};Oo.prototype.channel=function(e){return this.channels.find(e)};Oo.prototype.allChannels=function(){return this.channels.all()};Oo.prototype.createConnection=function(){if(this.connection)throw Error("Connection already exist");var e=this,t=this.config.url;function n(){for(var o in e.channels)e.channels[o].subscribed=!1}this.connection=new Qa({url:t,app_key:this.config.app_key,onOpen:function(){e.connection.state="connecting",e.checkoutPing()},onMessage:function(o){e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),o=JSON.parse(o.data);var r=o.event,a=o.channel;if(r==="pusher:pong"){e.checkoutPing();return}if(r==="pusher:error")throw Error(o.data.message);var l=JSON.parse(o.data),s;if(r==="pusher_internal:subscription_succeeded"){s=e.channels[a],s.subscribed=!0,s.processQueue(),s.emit("pusher:subscription_succeeded");return}if(r==="pusher:connection_established"&&(e.connection.socket_id=l.socket_id,e.connection.updateNetworkState("connected"),e.subscribeAll()),r.indexOf("pusher_internal")!==-1){console.log("Event '"+r+"' not implement");return}s=e.channels[a],s&&s.emit(r,l)},onClose:function(){n()},onError:function(){n()}})};Oo.prototype.disconnect=function(){this.connection.doNotConnect=1,this.connection.close()};Oo.prototype.subscribeAll=function(){if(this.connection.state==="connected")for(var e in this.channels)this.channels[e].processSubscribe()};Oo.prototype.unsubscribe=function(e){this.channels[e]&&(delete this.channels[e],this.connection.state==="connected"&&this.connection.send(JSON.stringify({event:"pusher:unsubscribe",data:{channel:e}})))};Oo.prototype.unsubscribeAll=function(){var e=Object.keys(this.channels);if(e.length&&this.connection.state==="connected")for(var t in this.channels)this.unsubscribe(t);this.channels={}};Oo.prototype.subscribe=function(e){return this.channels[e]?this.channels[e]:e.indexOf("private-")===0?Kb(e,this):e.indexOf("presence-")===0?kde(e,this):Sde(e,this)};Oo.instances=[];function Sde(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){t.connection.send(JSON.stringify({event:"pusher:subscribe",data:{channel:e}}))},n.processSubscribe(),n}function Kb(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){xde({url:t.config.auth,type:"POST",data:{channel_name:e,socket_id:t.connection.socket_id},success:function(o){o=JSON.parse(o),o.channel=e,t.connection.send(JSON.stringify({event:"pusher:subscribe",data:o}))},error:function(o){throw Error(o)}})},n.processSubscribe(),n}function kde(e,t){return Kb(e,t)}function Qa(e){this.dispatcher=new jb,Wb(this,this.dispatcher);var t=["on","off","emit"];for(var n in t)this[t[n]]=this.dispatcher[t[n]];this.options=e,this.state="initialized",this.doNotConnect=0,this.reconnectInterval=1,this.connection=null,this.reconnectTimer=0,this.connect()}Qa.prototype.updateNetworkState=function(e){var t=this.state;this.state=e,t!==e&&this.emit("state_change",{previous:t,current:e})};Qa.prototype.connect=function(){if(this.doNotConnect=0,this.state==="connected"){console.log('networkState is "'+this.state+'" and do not need connect');return}this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=0),this.closeAndClean();var e=this.options,t=new WebSocket(e.url+"/app/"+e.app_key);this.updateNetworkState("connecting");var n=this;t.onopen=function(o){if(n.reconnectInterval=1,n.doNotConnect){n.updateNetworkState("disconnected"),t.close();return}e.onOpen&&e.onOpen(o)},e.onMessage&&(t.onmessage=e.onMessage),t.onclose=function(o){t.onmessage=t.onopen=t.onclose=t.onerror=null,n.updateNetworkState("disconnected"),n.doNotConnect||n.waitReconnect(),e.onClose&&e.onClose(o)},t.onerror=function(o){n.close(),n.doNotConnect||n.waitReconnect(),e.onError&&e.onError(o)},this.connection=t};Qa.prototype.closeAndClean=function(){if(this.connection){var e=this.connection;e.onmessage=e.onopen=e.onclose=e.onerror=null;try{e.close()}catch{}this.updateNetworkState("disconnected")}};Qa.prototype.waitReconnect=function(){if(!(this.state==="connected"||this.state==="connecting")&&!this.doNotConnect){this.updateNetworkState("connecting");var e=this;this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(function(){e.connect()},this.reconnectInterval),this.reconnectInterval<1e3?this.reconnectInterval=1e3:this.reconnectInterval=this.reconnectInterval*2,this.reconnectInterval>2e3&&navigator.onLine&&(e.reconnectInterval=2e3)}};Qa.prototype.send=function(e){if(this.state!=="connected"){console.trace('networkState is "'+this.state+'", can not send '+e);return}this.connection.send(e)};Qa.prototype.close=function(){this.updateNetworkState("disconnected"),this.connection.close()};var Wb=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)};function Li(e,t){this.subscribed=!1,this.dispatcher=new jb,this.connection=e,this.channelName=t,this.subscribeCb=null,this.queue=[],Wb(this,this.dispatcher);var n=["on","off","emit"];for(var o in n)this[n[o]]=this.dispatcher[n[o]]}Li.prototype.processSubscribe=function(){this.connection.state==="connected"&&this.subscribeCb()};Li.prototype.processQueue=function(){if(!(this.connection.state!=="connected"||!this.subscribed)){for(var e in this.queue)this.queue[e]();this.queue=[]}};Li.prototype.trigger=function(e,t){if(e.indexOf("client-")!==0)throw new Error("Event '"+e+"' should start with 'client-'");var n=this;this.queue.push(function(){n.connection.send(JSON.stringify({event:e,data:t,channel:n.channelName}))}),this.processQueue()};var vu=function(){var e={};function t(y){for(var C=[],E=1;E0)for(o=0;o=200&&n<300?e.success&&e.success(t.responseText,t.responseXML):e.error&&e.error(n)}},e.type==="GET"?(t.open("GET",e.url+"?"+params,!0),t.send(null)):e.type==="POST"&&(t.open("POST",e.url,!0),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.send(params))}function Mde(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}const Tde={class:"common-layout"},$de={__name:"index",setup(e){const t=bd(),o=new Oo({url:"wss://test-multi-store.lihaink.cn/pull",app_key:"2ce3ce22329517213caa7dad261f5695"}).subscribe(`store_merchant_${t.userInfo.store_id}`);o.on("message",function(a){var l,s,u,c,f,d,p,h,m;console.log("收到消息--",a);try{((l=a==null?void 0:a.content)==null?void 0:l.type)=="cash_register"&&((s=a==null?void 0:a.content)==null?void 0:s.msg)=="您有一笔订单已支付"&&Yt.emit("pay_success",(u=a==null?void 0:a.content)==null?void 0:u.data),((c=a==null?void 0:a.content)==null?void 0:c.type)=="store_merchant"&&((f=a==null?void 0:a.content)==null?void 0:f.msg)=="您有一笔新的订单"&&Yt.emit("new_order",a==null?void 0:a.content),((d=a==null?void 0:a.content)==null?void 0:d.type)=="platform_print"&&Yt.emit("letPrintReceipt",(p=a==null?void 0:a.content)==null?void 0:p.data),((h=a==null?void 0:a.content)==null?void 0:h.msg)=="订单支付成功"&&Yt.emit("pay_user_success",(m=a==null?void 0:a.content)==null?void 0:m.data)}catch{}}),o.on("close",function(){});const r=a=>{console.log("按下",a.keyCode),a.keyCode==16&&Yt.emit("shift"),a.keyCode==120&&Yt.emit("F9"),a.keyCode==13&&Yt.emit("enter"),a.keyCode==37&&Yt.emit("left"),a.keyCode==39&&Yt.emit("right"),a.keyCode==38&&Yt.emit("up"),a.keyCode==40&&Yt.emit("down"),a.keyCode==46&&Yt.emit("delete")};return et(()=>{window.addEventListener("keydown",r),console.log("开启键盘监听")}),xo(()=>{window.removeEventListener("keydown",r),console.log("关闭键盘监听")}),(a,l)=>{const s=Ze("el-header"),u=Ze("el-aside"),c=Ze("router-view"),f=Ze("el-main"),d=Ze("el-container");return b(),M("div",Tde,[W(d,null,{default:X(()=>[W(s,null,{default:X(()=>[W(mde)]),_:1}),W(d,null,{default:X(()=>[W(u,{width:"6.25rem"},{default:X(()=>[W(Cde)]),_:1}),W(f,{style:{color:"#333"}},{default:X(()=>[W(c,{class:"my-main"},{default:X(({Component:p})=>[W(nn,{name:"el-zoom-in-top"},{default:X(()=>[(b(),le(st(p)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})])}}},Ode=Sv($de,[["__scopeId","data-v-6c618134"]]),Ade=[{path:"/",name:"layout",component:Ode,redirect:"/saleHome",meta:{title:"里海收银系统"},children:[{path:"/saleHome",name:"saleHome",meta:{title:"收银"},component:()=>qn(()=>import("./index-5M1YyCxt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)},{path:"/saleOrder",name:"saleOrder",meta:{title:"收银订单"},component:()=>qn(()=>import("./index-DKYLUh5I.js"),__vite__mapDeps([11,1,3,7,8,9,4,12]),import.meta.url)},{path:"/order",name:"order",meta:{title:"线上采购"},component:()=>qn(()=>import("./index-B_NPvce7.js"),__vite__mapDeps([13,1,3,4,14,9]),import.meta.url)},{path:"/subOrder",name:"subOrder",meta:{title:"订单统计"},component:()=>qn(()=>import("./index-BR8Xg1iO.js"),__vite__mapDeps([15,1,3,7,8,9,4,16]),import.meta.url)},{path:"/order",name:"order",meta:{title:"预约取货"},component:()=>qn(()=>import("./index-B_NPvce7.js"),__vite__mapDeps([13,1,3,4,14,9]),import.meta.url)},{path:"/wallet",name:"wallet",meta:{title:"提现"},component:()=>qn(()=>import("./index-CLnm6U02.js"),__vite__mapDeps([17,3,4,18]),import.meta.url)},{path:"/convert",name:"convert",meta:{title:"订单核销"},component:()=>qn(()=>import("./index-NDrKCyYC.js"),__vite__mapDeps([19,1,4,20,9]),import.meta.url)},{path:"/putStorage",name:"putStorage",meta:{title:"入库登记"},component:()=>qn(()=>import("./index-9KTiHlqm.js"),__vite__mapDeps([21,6,5,22]),import.meta.url)},{path:"/stock",name:"stock",meta:{title:"入库登记"},component:()=>qn(()=>import("./index-CPkn5Yxs.js"),__vite__mapDeps([23,6,5,24]),import.meta.url)},{path:"/user",name:"user",meta:{title:"用户"},component:()=>qn(()=>import("./index-Y-zzZTgR.js"),__vite__mapDeps([25,2,3,5,8,1,4,26]),import.meta.url)},{path:"/test",name:"test",component:()=>qn(()=>import("./test-B4kXEuqA.js"),__vite__mapDeps([27,28]),import.meta.url)}]},{path:"/login",name:"login",component:()=>qn(()=>import("./index-DEAt-9g0.js"),__vite__mapDeps([29,2,30]),import.meta.url)},{path:"/:catchAll(.*)",name:"notFound",component:()=>qn(()=>import("./index-BdSiZSDt.js"),__vite__mapDeps([]),import.meta.url)}],qb=yue({history:Uie(),routes:Ade});qb.beforeEach((e,t,n)=>{const o=bd();e.name!=="login"&&!o.Token?n({name:"login"}):n()});const Ub=qb,Vi=Fg(g9);for(const[e,t]of Object.entries(qL))Vi.component(e,t);const Nde=Cue();Vi.use(Ub);Vi.use(Nde);Vi.use(fie,{locale:pie});Vi.mount("#app");export{cr as A,Jse as B,cie as C,Sse as D,no as E,Fe as F,wt as G,bue as H,hb as I,S as J,Db as K,bt as L,Op as M,De as N,un as O,Wce as P,Ub as Q,Sv as _,xo as a,Ze as b,b as c,le as d,k as e,W as f,mt as g,Pc as h,Mt as i,tt as j,M as k,ht as l,Yt as m,We as n,et as o,ne as p,Vw as q,L as r,Bw as s,Te as t,bd as u,kr as v,X as w,Er as x,i as y,$ as z}; diff --git a/build/assets/index-BT4iX4wE.js b/build/assets/index-NDrKCyYC.js similarity index 98% rename from build/assets/index-BT4iX4wE.js rename to build/assets/index-NDrKCyYC.js index a3ccebb..f77406e 100644 --- a/build/assets/index-BT4iX4wE.js +++ b/build/assets/index-NDrKCyYC.js @@ -1 +1 @@ -import{_ as q,u as W,r as l,b as f,h as E,c as s,k as o,e,t as a,f as _,w as y,g as w,i as G,j as $,F as P,l as T,p as u,m as b,E as F,z as j,d as N,I as X,o as H,a as Y,q as Z,s as ee,n as M,L as A,M as te}from"./index-CCL_aieW.js";import{e as se,j as oe,w as ie,i as ae}from"./store-BNm3g_zr.js";/* empty css */import{p as le}from"./padding-CGiyqEPU.js";const ne={class:"my-order"},ce={class:"header-nav"},de={class:"nav-item"},_e={class:"nav-item-clear"},re={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},ue=["onClick"],fe={class:"top"},pe={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},me={key:0,class:"shop-name"},ke={class:"right"},ge={class:"money"},$e={class:"count"},be={class:"bottom"},we={class:"pay"},Ce={key:0},xe={key:1},Re={key:2},Ie={key:3},ze={key:4},Oe={key:5},Ve={key:1,style:{color:"#ff4a00"}},Be={key:0,class:"cashier"},De={key:1,class:"cashier",style:{color:"#ff4a00"}},Le={key:0,class:"load-end"},Se={key:1,class:"load-end"},Ae={__name:"order",props:{type:{type:Number,default:2}},emits:["backOne"],setup(C,{expose:t,emit:h}){W(),l([]),l(null);const n=l({verify_code:"",page_no:1,page_size:15}),r=l(!1),m=l(0),k=l(0),I=l(!1),c=l([]),p=(x=!1)=>{r.value||(r.value=!0,n.value.verify_code?(n.value.verify_code=n.value.verify_code.replace("—","-"),n.value.verify_code=n.value.verify_code.replace(/\uFF0D/,"-"),n.value.verify_code=n.value.verify_code.replace(" ",""),se({verify_code:n.value.verify_code}).then(d=>{c.value=[d.data],k.value=0,b.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,r.value=!1,c.value[0].is_writeoff&&F.warning("订单已核销过")}).catch(d=>{r.value=!1,F.error(d.msg||"没有找到该订单"),c.value=[],b.emit("set-sale-order-detail",{})})):oe(n.value).then(d=>{c.value=[...c.value,...d.data.lists],n.value.page_no==1&&b.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,n.value.page_no++,r.value=!1}).catch(d=>{r.value=!1}))},z=(x,d)=>{k.value=d,b.emit("set-sale-order-detail",x)},g=x=>{n.value.verify_code=x,k.value=0,n.value.page_no=1,p(!0)},R=h,O=()=>{b.emit("set-sale-order-detail",{}),c.value=[],R("backOne")};return t({setCode:g}),(x,d)=>{const V=f("el-button"),B=f("el-input"),D=f("el-image"),L=f("spna"),S=E("loading"),J=E("infinite-scroll");return s(),o("div",ne,[e("div",ce,[e("div",de,a(C.type==2?"核销订单":"核销记录"),1),e("div",_e,[_(V,{type:"primary",size:"small",onClick:O},{default:y(()=>[w("返回上一页")]),_:1})])]),e("div",re,[_(B,{modelValue:n.value.verify_code,"onUpdate:modelValue":d[1]||(d[1]=i=>n.value.verify_code=i),placeholder:"请输入核销码",onKeydown:d[2]||(d[2]=G(i=>p(!0),["enter"])),clearable:""},{append:y(()=>[_(V,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:d[0]||(d[0]=i=>p(!0))},{default:y(()=>[w("搜索")]),_:1})]),_:1},8,["modelValue"])]),$((s(),o("div",ve,[(s(!0),o(P,null,T(c.value,(i,K)=>(s(),o("div",{class:j(["item",{"item-active":k.value==K}]),key:K,onClick:U=>z(i,K)},[e("div",fe,[e("div",{class:j(["sn","cahier"])},"单号: "+a(i.order_id),1),e("div",pe,a(i.pay_time),1)]),e("div",he,[i.product?(s(),o("div",ye,[(s(!0),o(P,null,T(i.product.slice(0,5),(U,Q)=>(s(),N(D,{key:Q,src:U.cart_info.image,class:"shop-img"},null,8,["src"]))),128)),i.product.length==1?(s(),o("div",me,a(i.product[0].store_name),1)):u("",!0)])):u("",!0),e("div",ke,[e("div",ge,"¥"+a(i.pay_price),1),e("div",$e,"共"+a(i.total_num)+"款商品",1)])]),e("div",be,[e("div",we,[i.paid?(s(),o("div",Ce,[w(a(i.paid_name)+" ",1),i.pay_type_name?(s(),N(L,{key:0},{default:y(()=>[w("("+a(i.pay_type_name)+")",1)]),_:2},1024)):i.pay_type==9?(s(),o("span",xe,"(微信收款)")):i.pay_type==17?(s(),o("span",Re,"(现金支付)")):i.pay_type==13?(s(),o("span",Ie,"(支付宝收款)")):i.pay_type==3?(s(),o("span",ze,"(余额支付)")):i.pay_type==1?(s(),o("span",Oe,"(微信支付)")):u("",!0)])):(s(),o("div",Ve,a(i.paid_name),1))]),i.is_writeoff==0?(s(),o("div",Be,"核销码:"+a(i.verify_code),1)):(s(),o("div",De,"已核销:"+a(i.verify_code),1))])],10,ue))),128)),I.value?(s(),o("div",Le,"没有更多了")):u("",!0),r.value?(s(),o("div",Se,"加载中...")):u("",!0)])),[[S,r.value],[J,p]])])}}},Ee=q(Ae,[["__scopeId","data-v-f1ecc2f9"]]),v=C=>(Z("data-v-1950b4ed"),C=C(),ee(),C),Fe={class:"my-order"},Ne={key:0,class:"detail"},Ke={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Me=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Ue={class:"table-info"},Pe={class:"info-item"},Te=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},We=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),Ge={class:"info-item-info"},He={class:"info-item"},Je=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Qe={class:"info-item-info"},Xe={class:"info-item"},Ye=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Ze={class:"info-item-info"},et={class:"info-item"},tt=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),st={class:"info-item-info"},ot={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),at={class:"info-item-info"},lt={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),ct={class:"info-item-info"},dt={class:"info-item"},_t=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),rt={class:"info-item-info"},vt={key:0},ut={key:1},ft={key:2},pt={key:3},ht={key:4},yt={key:5},mt={key:0,class:"table-title"},kt={key:1,class:"table-info"},gt={class:"info-item"},$t=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),bt={class:"info-item-info"},wt={class:"info-item"},Ct=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),xt={class:"info-item-info"},Rt={class:"info-item"},It=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),zt={class:"info-item-info"},Ot={style:{"font-size":"0.9rem"}},Vt={style:{color:"#ff4a00"}},Bt={style:{display:"flex","align-items":"center"}},Dt={style:{"margin-left":"0.5rem"}},Lt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),St={class:"footer"},At={key:1},Et={key:1},Ft={__name:"detail",setup(C){W(),X();const t=l({id:""});l([]),l(null);const h=l(!1);l(0),l(0),l(["商品信息","订单详情"]),l(""),l(!1);const n=l({page_no:1,page_size:15,loadend:!1,loading:!1}),r=l([]),m=()=>console.log("触底"),k=()=>{ie({verify_code:t.value.verify_code}).then(c=>{c.show==0&&c.msg=="核销成功"&&F.success(c.msg),t.value.is_writeoff=1})},I=()=>{ae({id:t.value.id}).then(c=>{b.emit("letPrintReceipt",c.data)})};return H(()=>{b.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,n.value.page_no=1,n.value.loadend=!1,n.value.loading=!1,r.value=[]})}),Y(()=>{b.off("set-sale-order-detail")}),(c,p)=>{var B;const z=f("el-image"),g=f("el-table-column"),R=f("el-table"),O=f("el-button"),x=f("el-empty"),d=E("infinite-scroll"),V=E("loading");return s(),o("div",Fe,[t.value.id?$((s(),o("div",Ne,[$((s(),o("div",Ke,[Me,e("div",Ue,[e("div",Pe,[Te,e("div",je,a(t.value.order_id),1)]),e("div",qe,[We,e("div",Ge,a(t.value.total_num||0),1)]),e("div",He,[Je,e("div",Qe,"¥"+a(t.value.pay_price),1)]),e("div",Xe,[Ye,e("div",Ze,a(t.value.pay_time),1)]),e("div",et,[tt,e("div",st,"¥"+a(t.value.deduction_price),1)]),e("div",ot,[it,e("div",at,"¥"+a(t.value.pay_price),1)]),e("div",lt,[nt,e("div",ct,a(t.value.pay_time),1)]),e("div",dt,[_t,e("div",rt,[t.value.pay_type_name?(s(),o("span",vt,a(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",ut,"微信收款")):t.value.pay_type==17?(s(),o("span",ft,"现金支付")):t.value.pay_type==13?(s(),o("span",pt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ht,"余额支付")):t.value.pay_type==1?(s(),o("span",yt,"微信支付")):u("",!0)])])]),t.value.uid?(s(),o("div",mt,"用户信息")):u("",!0),t.value.uid?(s(),o("div",kt,[e("div",gt,[$t,e("div",bt,a(t.value.uid),1)]),e("div",wt,[Ct,e("div",xt,a(t.value.nickname),1)]),e("div",Rt,[It,e("div",zt,a(t.value.mobile),1)])])):u("",!0),e("div",Ot,[w(" 共计 "),e("span",Vt,a(((B=t.value.product)==null?void 0:B.length)||" "),1),w(" 款商品 ")]),_(R,{data:t.value.product},{default:y(()=>[_(g,{label:"商品信息"},{default:y(({row:D})=>{var L,S;return[e("div",Bt,[_(z,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(L=D.cart_info)==null?void 0:L.image},null,8,["src"]),e("span",Dt,a((S=D.cart_info)==null?void 0:S.name),1)])]}),_:1}),_(g,{prop:"cart_info.price",label:"单价",width:"150"}),_(g,{prop:"cart_info.cart_num",label:"数量",width:"150"}),_(g,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Lt])),[[d,m]]),e("div",St,[t.value.is_writeoff==0?(s(),N(O,{key:0,type:"primary",size:"large",disabled:t.value.is_writeoff,onClick:k},{default:y(()=>[w("立即核销")]),_:1},8,["disabled"])):u("",!0),t.value.is_writeoff==1?(s(),o("div",At,"该订单已核销")):u("",!0),t.value.is_writeoff==1?(s(),N(O,{key:2,style:{"margin-left":"1rem"},type:"warning",size:"large",onClick:I},{default:y(()=>[w("打印小票")]),_:1})):u("",!0)])])),[[V,h.value]]):(s(),o("div",Et,[_(x,{description:"没找到核销订单信息"})]))])}}},Nt=q(Ft,[["__scopeId","data-v-1950b4ed"]]),Kt={class:"my-card"},Mt={class:"my-code"},Ut=e("h2",null,"订单核销",-1),Pt={class:"box"},Tt=e("span",null,"查看核销记录",-1),Ht={__name:"index",setup(C){const t=l(1),h=l(""),n=l(null),r=l(null),m=()=>{if(h.value=="")return F.error("请输入订单编号");t.value=2,M(()=>{r.value.setCode(h.value)})},k=()=>{t.value=3,M(()=>{r.value.setCode("")})},I=()=>{m()};return H(()=>{M(()=>{n.value.focus()})}),(c,p)=>{const z=f("ArrowRightBold"),g=f("el-icon");return s(),o("div",Kt,[$(e("div",Mt,[Ut,e("div",Pt,[$(e("input",{ref_key:"inputRef",ref:n,"onUpdate:modelValue":p[0]||(p[0]=R=>h.value=R),placeholder:"请输入核销码",class:"input",onKeyup:G(m,["enter"])},null,544),[[te,h.value]]),e("div",{class:"btn",onClick:m},"查询")]),e("div",{class:"to-list",onClick:k},[Tt,_(g,null,{default:y(()=>[_(z)]),_:1})])],512),[[A,t.value==1]]),$(_(Ee,{type:t.value,style:{"flex-shrink":"0"},ref_key:"orderRef",ref:r,onBackOne:p[1]||(p[1]=R=>{t.value=1,h.value=""})},null,8,["type"]),[[A,t.value!=1]]),$(_(le,null,null,512),[[A,t.value!=1]]),$(_(Nt,{ref:"detailRef",onReInit:I},null,512),[[A,t.value!=1]])])}}};export{Ht as default}; +import{_ as q,u as W,r as l,b as f,h as E,c as s,k as o,e,t as a,f as _,w as y,g as w,i as G,j as $,F as P,l as T,p as u,m as b,E as F,z as j,d as N,I as X,o as H,a as Y,q as Z,s as ee,n as M,L as A,M as te}from"./index-D_5muR1B.js";import{e as se,j as oe,w as ie,i as ae}from"./store-SrwX7Uca.js";/* empty css */import{p as le}from"./padding-DD0QsmkS.js";const ne={class:"my-order"},ce={class:"header-nav"},de={class:"nav-item"},_e={class:"nav-item-clear"},re={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},ue=["onClick"],fe={class:"top"},pe={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},me={key:0,class:"shop-name"},ke={class:"right"},ge={class:"money"},$e={class:"count"},be={class:"bottom"},we={class:"pay"},Ce={key:0},xe={key:1},Re={key:2},Ie={key:3},ze={key:4},Oe={key:5},Ve={key:1,style:{color:"#ff4a00"}},Be={key:0,class:"cashier"},De={key:1,class:"cashier",style:{color:"#ff4a00"}},Le={key:0,class:"load-end"},Se={key:1,class:"load-end"},Ae={__name:"order",props:{type:{type:Number,default:2}},emits:["backOne"],setup(C,{expose:t,emit:h}){W(),l([]),l(null);const n=l({verify_code:"",page_no:1,page_size:15}),r=l(!1),m=l(0),k=l(0),I=l(!1),c=l([]),p=(x=!1)=>{r.value||(r.value=!0,n.value.verify_code?(n.value.verify_code=n.value.verify_code.replace("—","-"),n.value.verify_code=n.value.verify_code.replace(/\uFF0D/,"-"),n.value.verify_code=n.value.verify_code.replace(" ",""),se({verify_code:n.value.verify_code}).then(d=>{c.value=[d.data],k.value=0,b.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,r.value=!1,c.value[0].is_writeoff&&F.warning("订单已核销过")}).catch(d=>{r.value=!1,F.error(d.msg||"没有找到该订单"),c.value=[],b.emit("set-sale-order-detail",{})})):oe(n.value).then(d=>{c.value=[...c.value,...d.data.lists],n.value.page_no==1&&b.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,n.value.page_no++,r.value=!1}).catch(d=>{r.value=!1}))},z=(x,d)=>{k.value=d,b.emit("set-sale-order-detail",x)},g=x=>{n.value.verify_code=x,k.value=0,n.value.page_no=1,p(!0)},R=h,O=()=>{b.emit("set-sale-order-detail",{}),c.value=[],R("backOne")};return t({setCode:g}),(x,d)=>{const V=f("el-button"),B=f("el-input"),D=f("el-image"),L=f("spna"),S=E("loading"),J=E("infinite-scroll");return s(),o("div",ne,[e("div",ce,[e("div",de,a(C.type==2?"核销订单":"核销记录"),1),e("div",_e,[_(V,{type:"primary",size:"small",onClick:O},{default:y(()=>[w("返回上一页")]),_:1})])]),e("div",re,[_(B,{modelValue:n.value.verify_code,"onUpdate:modelValue":d[1]||(d[1]=i=>n.value.verify_code=i),placeholder:"请输入核销码",onKeydown:d[2]||(d[2]=G(i=>p(!0),["enter"])),clearable:""},{append:y(()=>[_(V,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:d[0]||(d[0]=i=>p(!0))},{default:y(()=>[w("搜索")]),_:1})]),_:1},8,["modelValue"])]),$((s(),o("div",ve,[(s(!0),o(P,null,T(c.value,(i,K)=>(s(),o("div",{class:j(["item",{"item-active":k.value==K}]),key:K,onClick:U=>z(i,K)},[e("div",fe,[e("div",{class:j(["sn","cahier"])},"单号: "+a(i.order_id),1),e("div",pe,a(i.pay_time),1)]),e("div",he,[i.product?(s(),o("div",ye,[(s(!0),o(P,null,T(i.product.slice(0,5),(U,Q)=>(s(),N(D,{key:Q,src:U.cart_info.image,class:"shop-img"},null,8,["src"]))),128)),i.product.length==1?(s(),o("div",me,a(i.product[0].store_name),1)):u("",!0)])):u("",!0),e("div",ke,[e("div",ge,"¥"+a(i.pay_price),1),e("div",$e,"共"+a(i.total_num)+"款商品",1)])]),e("div",be,[e("div",we,[i.paid?(s(),o("div",Ce,[w(a(i.paid_name)+" ",1),i.pay_type_name?(s(),N(L,{key:0},{default:y(()=>[w("("+a(i.pay_type_name)+")",1)]),_:2},1024)):i.pay_type==9?(s(),o("span",xe,"(微信收款)")):i.pay_type==17?(s(),o("span",Re,"(现金支付)")):i.pay_type==13?(s(),o("span",Ie,"(支付宝收款)")):i.pay_type==3?(s(),o("span",ze,"(余额支付)")):i.pay_type==1?(s(),o("span",Oe,"(微信支付)")):u("",!0)])):(s(),o("div",Ve,a(i.paid_name),1))]),i.is_writeoff==0?(s(),o("div",Be,"核销码:"+a(i.verify_code),1)):(s(),o("div",De,"已核销:"+a(i.verify_code),1))])],10,ue))),128)),I.value?(s(),o("div",Le,"没有更多了")):u("",!0),r.value?(s(),o("div",Se,"加载中...")):u("",!0)])),[[S,r.value],[J,p]])])}}},Ee=q(Ae,[["__scopeId","data-v-f1ecc2f9"]]),v=C=>(Z("data-v-1950b4ed"),C=C(),ee(),C),Fe={class:"my-order"},Ne={key:0,class:"detail"},Ke={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Me=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Ue={class:"table-info"},Pe={class:"info-item"},Te=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},We=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),Ge={class:"info-item-info"},He={class:"info-item"},Je=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Qe={class:"info-item-info"},Xe={class:"info-item"},Ye=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Ze={class:"info-item-info"},et={class:"info-item"},tt=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),st={class:"info-item-info"},ot={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),at={class:"info-item-info"},lt={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),ct={class:"info-item-info"},dt={class:"info-item"},_t=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),rt={class:"info-item-info"},vt={key:0},ut={key:1},ft={key:2},pt={key:3},ht={key:4},yt={key:5},mt={key:0,class:"table-title"},kt={key:1,class:"table-info"},gt={class:"info-item"},$t=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),bt={class:"info-item-info"},wt={class:"info-item"},Ct=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),xt={class:"info-item-info"},Rt={class:"info-item"},It=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),zt={class:"info-item-info"},Ot={style:{"font-size":"0.9rem"}},Vt={style:{color:"#ff4a00"}},Bt={style:{display:"flex","align-items":"center"}},Dt={style:{"margin-left":"0.5rem"}},Lt=v(()=>e("div",{style:{height:"8rem"}},null,-1)),St={class:"footer"},At={key:1},Et={key:1},Ft={__name:"detail",setup(C){W(),X();const t=l({id:""});l([]),l(null);const h=l(!1);l(0),l(0),l(["商品信息","订单详情"]),l(""),l(!1);const n=l({page_no:1,page_size:15,loadend:!1,loading:!1}),r=l([]),m=()=>console.log("触底"),k=()=>{ie({verify_code:t.value.verify_code}).then(c=>{c.show==0&&c.msg=="核销成功"&&F.success(c.msg),t.value.is_writeoff=1})},I=()=>{ae({id:t.value.id}).then(c=>{b.emit("letPrintReceipt",c.data)})};return H(()=>{b.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,n.value.page_no=1,n.value.loadend=!1,n.value.loading=!1,r.value=[]})}),Y(()=>{b.off("set-sale-order-detail")}),(c,p)=>{var B;const z=f("el-image"),g=f("el-table-column"),R=f("el-table"),O=f("el-button"),x=f("el-empty"),d=E("infinite-scroll"),V=E("loading");return s(),o("div",Fe,[t.value.id?$((s(),o("div",Ne,[$((s(),o("div",Ke,[Me,e("div",Ue,[e("div",Pe,[Te,e("div",je,a(t.value.order_id),1)]),e("div",qe,[We,e("div",Ge,a(t.value.total_num||0),1)]),e("div",He,[Je,e("div",Qe,"¥"+a(t.value.pay_price),1)]),e("div",Xe,[Ye,e("div",Ze,a(t.value.pay_time),1)]),e("div",et,[tt,e("div",st,"¥"+a(t.value.deduction_price),1)]),e("div",ot,[it,e("div",at,"¥"+a(t.value.pay_price),1)]),e("div",lt,[nt,e("div",ct,a(t.value.pay_time),1)]),e("div",dt,[_t,e("div",rt,[t.value.pay_type_name?(s(),o("span",vt,a(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",ut,"微信收款")):t.value.pay_type==17?(s(),o("span",ft,"现金支付")):t.value.pay_type==13?(s(),o("span",pt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ht,"余额支付")):t.value.pay_type==1?(s(),o("span",yt,"微信支付")):u("",!0)])])]),t.value.uid?(s(),o("div",mt,"用户信息")):u("",!0),t.value.uid?(s(),o("div",kt,[e("div",gt,[$t,e("div",bt,a(t.value.uid),1)]),e("div",wt,[Ct,e("div",xt,a(t.value.nickname),1)]),e("div",Rt,[It,e("div",zt,a(t.value.mobile),1)])])):u("",!0),e("div",Ot,[w(" 共计 "),e("span",Vt,a(((B=t.value.product)==null?void 0:B.length)||" "),1),w(" 款商品 ")]),_(R,{data:t.value.product},{default:y(()=>[_(g,{label:"商品信息"},{default:y(({row:D})=>{var L,S;return[e("div",Bt,[_(z,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:(L=D.cart_info)==null?void 0:L.image},null,8,["src"]),e("span",Dt,a((S=D.cart_info)==null?void 0:S.name),1)])]}),_:1}),_(g,{prop:"cart_info.price",label:"单价",width:"150"}),_(g,{prop:"cart_info.cart_num",label:"数量",width:"150"}),_(g,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Lt])),[[d,m]]),e("div",St,[t.value.is_writeoff==0?(s(),N(O,{key:0,type:"primary",size:"large",disabled:t.value.is_writeoff,onClick:k},{default:y(()=>[w("立即核销")]),_:1},8,["disabled"])):u("",!0),t.value.is_writeoff==1?(s(),o("div",At,"该订单已核销")):u("",!0),t.value.is_writeoff==1?(s(),N(O,{key:2,style:{"margin-left":"1rem"},type:"warning",size:"large",onClick:I},{default:y(()=>[w("打印小票")]),_:1})):u("",!0)])])),[[V,h.value]]):(s(),o("div",Et,[_(x,{description:"没找到核销订单信息"})]))])}}},Nt=q(Ft,[["__scopeId","data-v-1950b4ed"]]),Kt={class:"my-card"},Mt={class:"my-code"},Ut=e("h2",null,"订单核销",-1),Pt={class:"box"},Tt=e("span",null,"查看核销记录",-1),Ht={__name:"index",setup(C){const t=l(1),h=l(""),n=l(null),r=l(null),m=()=>{if(h.value=="")return F.error("请输入订单编号");t.value=2,M(()=>{r.value.setCode(h.value)})},k=()=>{t.value=3,M(()=>{r.value.setCode("")})},I=()=>{m()};return H(()=>{M(()=>{n.value.focus()})}),(c,p)=>{const z=f("ArrowRightBold"),g=f("el-icon");return s(),o("div",Kt,[$(e("div",Mt,[Ut,e("div",Pt,[$(e("input",{ref_key:"inputRef",ref:n,"onUpdate:modelValue":p[0]||(p[0]=R=>h.value=R),placeholder:"请输入核销码",class:"input",onKeyup:G(m,["enter"])},null,544),[[te,h.value]]),e("div",{class:"btn",onClick:m},"查询")]),e("div",{class:"to-list",onClick:k},[Tt,_(g,null,{default:y(()=>[_(z)]),_:1})])],512),[[A,t.value==1]]),$(_(Ee,{type:t.value,style:{"flex-shrink":"0"},ref_key:"orderRef",ref:r,onBackOne:p[1]||(p[1]=R=>{t.value=1,h.value=""})},null,8,["type"]),[[A,t.value!=1]]),$(_(le,null,null,512),[[A,t.value!=1]]),$(_(Nt,{ref:"detailRef",onReInit:I},null,512),[[A,t.value!=1]])])}}};export{Ht as default}; diff --git a/build/assets/index-Bo-OgYgJ.js b/build/assets/index-Y-zzZTgR.js similarity index 99% rename from build/assets/index-Bo-OgYgJ.js rename to build/assets/index-Y-zzZTgR.js index 5702381..8090a08 100644 --- a/build/assets/index-Bo-OgYgJ.js +++ b/build/assets/index-Y-zzZTgR.js @@ -1 +1 @@ -import{u as be,r as d,G as De,b as y,c as n,k as g,f as a,w as t,E as D,_ as ke,o as $e,m as K,a as Ve,h as fe,e,g as f,F as ne,l as re,d as O,p as oe,i as Ne,j as ge,z as ce,t as h,q as we,s as Ce,J as He,n as pe,I as Qe}from"./index-CCL_aieW.js";import{a as Xe,b as Ye,u as Ze,c as Ee,d as Ie,e as Pe,f as el,g as ll,h as al,i as tl}from"./user-AxtDYzrO.js";import"./moment-Cl4UOzQZ.js";import{r as ye}from"./axiosAPI-XZKFUjoi.js";import{_ as je}from"./authCode-C8sYYjUN.js";import{g as sl,k as ol,l as il}from"./store-BNm3g_zr.js";import{p as nl}from"./padding-CGiyqEPU.js";function Se(C){return ye.get("/city",{params:C})}function Ue(C){return ye.get("/area",{params:C})}function xe(C){return ye.get("/street",{params:C})}function ze(C){return ye.get("/village",{params:C})}function Ae(C){return ye.get("/brigade",{params:C})}const ul={class:"add-user"},dl={__name:"add",emits:["close"],setup(C,{expose:r,emit:$}){const R=be(),F=d(null),c=De({mobile:"",code:"",real_name:"",user_ship:0,selectedValues:[]}),j=De({mobile:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}],real_name:[{required:!0,message:"请输入用户姓名",trigger:"blur"}],user_ship:[{required:!0,message:"请选择用户类型",trigger:"change"}],selectedValues:[{required:!0,message:"请选择用户地址",trigger:"change"}]}),Y=d([]),B=async(q,k)=>{const N=q.level;let b;if(N!==0&&!q.data.code)return k([]);N===0?(b=await Se({province_code:51e4}),b=b.data.map(A=>({code:A.city_code,name:A.city_name}))):N===1?(b=await Ue({city_code:q.data.code}),b=b.data.map(A=>({code:A.area_code,name:A.area_name}))):N===2?(b=await xe({area_code:q.data.code}),b=b.data.map(A=>({code:A.street_code,name:A.street_name}))):N===3?(b=await ze({street_code:q.data.code}),b=b.data.map(A=>({code:A.village_code,name:A.village_name}))):N===4&&(b=await Ae({village_code:q.data.code}),b=b.data.map(A=>({code:A.id,name:A.brigade_name,leaf:!0}))),k(b)},H={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:B};d([]);const V=$,w=()=>{F.value.validate(async q=>{if(q){let k={};k.mobile=c.mobile,k.code=c.code,k.user_ship=c.user_ship,k.real_name=c.real_name,k.province="510000",k.city=c.selectedValues[0],k.area=c.selectedValues[1],k.street=c.selectedValues[2],k.village=c.selectedValues[3],k.brigade=c.selectedValues[4],k.store_id=R.userInfo.store_id,Xe(k).then(N=>{c.mobile="",c.code="",c.user_ship=0,c.real_name="",c.selectedValues=[],F.value.resetFields(),V("close")})}})},z=d(null),P=()=>{F.value.validateField("mobile",q=>{q&&Ye({mobile:c.mobile}).then(k=>{D.success("发送成功"),z.value.startCountDown()}).catch(k=>{D.error("发送失败")})})};return r({addUser:w}),(q,k)=>{const N=y("el-input"),b=y("el-form-item"),A=y("el-cascader"),ae=y("el-form");return n(),g("div",ul,[a(ae,{model:c,rules:j,ref_key:"formDataRef",ref:F,"label-width":"80px"},{default:t(()=>[a(b,{label:"用户电话",prop:"mobile"},{default:t(()=>[a(N,{modelValue:c.mobile,"onUpdate:modelValue":k[0]||(k[0]=E=>c.mobile=E),placeholder:"请输入用户电话"},null,8,["modelValue"])]),_:1}),a(b,{label:"验证码",prop:"code"},{default:t(()=>[a(N,{modelValue:c.code,"onUpdate:modelValue":k[1]||(k[1]=E=>c.code=E),placeholder:"请输入验证码",style:{flex:"1"}},null,8,["modelValue"]),a(je,{ref_key:"authCodeRef",ref:z,style:{"margin-left":"1rem"},onSendCode:P,start:!1},null,512)]),_:1}),a(b,{label:"用户姓名",prop:"real_name"},{default:t(()=>[a(N,{modelValue:c.real_name,"onUpdate:modelValue":k[2]||(k[2]=E=>c.real_name=E),placeholder:"请输入用户姓名"},null,8,["modelValue"])]),_:1}),a(b,{label:"用户地址",prop:"selectedValues"},{default:t(()=>[a(A,{style:{width:"100%"},modelValue:c.selectedValues,"onUpdate:modelValue":k[3]||(k[3]=E=>c.selectedValues=E),options:Y.value,props:H,load:B,class:"w-full"},null,8,["modelValue","options"])]),_:1})]),_:1},8,["model","rules"])])}}},Re=C=>(we("data-v-df06e4b9"),C=C(),Ce(),C),rl={class:"my-order"},cl={class:"header-nav"},vl=Re(()=>e("div",{class:"nav-item"},h("用户列表"),-1)),_l={class:"header-row"},ml=Re(()=>e("div",{class:"label"},"用户类型",-1)),pl={class:"header-row"},fl=Re(()=>e("div",{class:"label"},"用户地区",-1)),yl={class:"header-input"},hl={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},gl=["onClick"],bl={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},kl={class:"top flex"},$l={class:"r-1"},Vl={class:"bold"},wl={class:"bottom flex",style:{"justify-content":"space-between"}},Cl={class:"red"},Sl={class:"red"},Ul={class:"red"},xl={class:"red"},zl={key:0,class:"load-end"},Al={key:1,class:"load-end"},Rl={class:"dialog-footer"},Fl={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(C){const r=be();d([]);const $=d({page_no:1,page_size:20,mobile:"",user_ship:"",street:null}),R=d(!1),F=d(0),c=d(0),j=d(!1),Y=d([]),B=(U=!1)=>{if(U)$.value.page_no=1;else if(j.value||R.value)return;R.value=!0,$.value.mobile==""&&$.value.user_ship==""?$.value.store_id=r.userInfo.store_id:$.value.store_id=null,Ze($.value).then(u=>{U?Y.value=u.data.lists:Y.value=[...Y.value,...u.data.lists],$.value.page_no==1&&Y.value.length>0&&K.emit("set-user-detail",Y.value[0]),u.data.lists.length<$.value.page_size?j.value=!0:$.value.page_no++,c.value=0,F.value=u.data.count,R.value=!1}).catch(u=>{j.value=!0,R.value=!1})},H=(U,u)=>{c.value=u,K.emit("set-user-detail",U)},V=d(!1),w=d(null),z=()=>{var U;(U=w.value)==null||U.addUser()},P=()=>{V.value=!1,B(!0)},q=d([]);(()=>{Ee({type_id:4}).then(U=>{q.value=U.data.lists})})();const N=()=>{$.value.mobile="",$.value.user_ship="",$.value.street=null,b.value=[],B(!0)},b=d([]),A=d([]),ae=async(U,u)=>{const x=U.level;let _;if(x!==0&&!U.data.code)return u([]);x===0?(_=await Se({province_code:51e4}),_=_.data.map(p=>({code:p.city_code,name:p.city_name}))):x===1?(_=await Ue({city_code:U.data.code}),_=_.data.map(p=>({code:p.area_code,name:p.area_name}))):x===2?(_=await xe({area_code:U.data.code}),_=_.data.map(p=>({code:p.street_code,name:p.street_name,leaf:!0}))):x===3?(_=await ze({street_code:U.data.code}),_=_.data.map(p=>({code:p.village_code,name:p.village_name}))):x===4&&(_=await Ae({village_code:U.data.code}),_=_.data.map(p=>({code:p.id,name:p.brigade_name,leaf:!0}))),u(_)},E={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:ae},Z=()=>{b.value.length?$.value.street=b.value[b.value.length-1]:$.value.street="",B(!0)};return $e(()=>{K.on("re-load-user-list",U=>{U&&B(!0)})}),Ve(()=>{K.off("re-load-user-list")}),(U,u)=>{const x=y("Plus"),_=y("el-icon"),p=y("el-button"),ee=y("el-option"),W=y("el-select"),le=y("el-cascader"),J=y("CircleClose"),ve=y("el-input"),ue=y("el-avatar"),ie=y("el-tag"),te=y("el-dialog"),o=fe("loading"),m=fe("infinite-scroll");return n(),g("div",rl,[e("div",cl,[vl,a(p,{type:"primary",onClick:u[0]||(u[0]=l=>V.value=!0)},{default:t(()=>[a(_,null,{default:t(()=>[a(x)]),_:1}),f(" 添加用户")]),_:1})]),e("div",_l,[ml,a(W,{modelValue:$.value.user_ship,"onUpdate:modelValue":u[1]||(u[1]=l=>$.value.user_ship=l),onChange:u[2]||(u[2]=l=>B(!0)),placeholder:"请选择用户类型",style:{flex:"1"}},{default:t(()=>[(n(!0),g(ne,null,re(q.value,l=>(n(),O(ee,{key:l.id,label:l.title,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{onClick:N,style:{"margin-left":"1rem"}},{default:t(()=>[f("重置")]),_:1})]),e("div",pl,[fl,a(le,{style:{flex:"1"},options:A.value,modelValue:b.value,"onUpdate:modelValue":u[3]||(u[3]=l=>b.value=l),props:E,load:ae,class:"w-full",onChange:Z},null,8,["options","modelValue"])]),e("div",yl,[a(ve,{modelValue:$.value.mobile,"onUpdate:modelValue":u[6]||(u[6]=l=>$.value.mobile=l),placeholder:"搜索手机号",onKeydown:u[7]||(u[7]=Ne(l=>B(!0),["enter"])),onClear:u[8]||(u[8]=l=>B(!0))},{suffix:t(()=>[$.value.mobile!=""?(n(),O(_,{key:0,size:"18",onClick:u[4]||(u[4]=l=>{$.value.mobile="",B(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:t(()=>[a(J)]),_:1})):oe("",!0)]),append:t(()=>[a(p,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:u[5]||(u[5]=l=>B(!0))},{default:t(()=>[f("搜索")]),_:1})]),_:1},8,["modelValue"])]),ge((n(),g("div",hl,[(n(!0),g(ne,null,re(Y.value,(l,S)=>{var Q;return n(),g("div",{class:ce(["item",{"item-active":c.value==S}]),key:S,onClick:v=>H(l,S)},[a(ue,{class:"avatar",src:l.avatar},null,8,["src"]),e("div",bl,[e("div",kl,[e("div",$l,[e("span",Vl,h(l.real_name||l.nickname),1),e("span",null,h(" (ID:"+l.id+")"),1)]),e("div",null,"手机号: "+h(l.mobile),1)]),e("div",wl,[e("div",null,[f("余额: "),e("span",Cl,h(l.now_money),1)]),e("div",null,[f("采购款: "),e("span",Sl,h(l.purchase_funds),1)]),e("div",null,[f("返还金: "),e("span",Ul,h((Q=l.return_money)==null?void 0:Q.toFixed(2)),1)]),e("div",null,[f("礼品券: "),e("span",xl,h(l.integral),1)]),e("div",null,[l.user_ship==0?(n(),O(ie,{key:0,type:"primary"},{default:t(()=>[f(h(l.user_ship_name),1)]),_:2},1024)):(n(),O(ie,{key:1,type:"success"},{default:t(()=>[f(h(l.user_ship_name),1)]),_:2},1024))])])])],10,gl)}),128)),j.value?(n(),g("div",zl,"没有更多了")):oe("",!0),R.value?(n(),g("div",Al,"加载中...")):oe("",!0)])),[[o,R.value],[m,B]]),a(te,{modelValue:V.value,"onUpdate:modelValue":u[10]||(u[10]=l=>V.value=l),title:"添加用户",width:"600"},{footer:t(()=>[e("div",Rl,[a(p,{onClick:u[9]||(u[9]=l=>V.value=!1)},{default:t(()=>[f("取消")]),_:1}),a(p,{type:"primary",onClick:z},{default:t(()=>[f(" 添加 ")]),_:1})])]),default:t(()=>[a(dl,{ref_key:"addRef",ref:w,onClose:P},null,512)]),_:1},8,["modelValue"])])}}},Ll=ke(Fl,[["__scopeId","data-v-df06e4b9"]]),_e=C=>(we("data-v-5ad4b8f5"),C=C(),Ce(),C),Ol=_e(()=>e("h4",null,"选择支付方式",-1)),Dl={class:"dra-body"},Il={class:"header"},Pl={style:{display:"inline-block"}},Nl=_e(()=>e("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),El={style:{color:"#f5222d","padding-bottom":"2rem"}},jl={style:{"font-size":"1.6rem"}},ql={key:0,"element-loading-text":"支付中",class:"card1"},Bl=_e(()=>e("div",{class:"tips"},null,-1)),Jl={key:1,class:"card2"},Tl={class:"drawer-body"},Kl={class:"counter"},Ml={class:"received"},Wl={key:0},Gl={key:1,style:{"font-size":"1rem",color:"#999"}},Hl={key:0,class:"balance"},Ql={class:"money"},Xl=_e(()=>e("div",{class:"tips"},"按回车(Enter)确认支付",-1)),Yl={key:1,class:"balance"},Zl=_e(()=>e("div",null,"不够找零, 请支付更多金额",-1)),ea=_e(()=>e("div",{class:"tips"},"按下小键盘输入金额",-1)),la=[Zl,ea],aa={class:"keypad"},ta={class:"left"},sa={class:"right"},oa={style:{width:"100%",display:"flex","justify-content":"center"}},ia={__name:"payUser",emits:["paySuccess"],setup(C,{expose:r,emit:$}){const R=d(!1),F=d(1),c=d(""),j=d("");be();const Y=()=>{u()},B=()=>{pe(()=>{setTimeout(()=>{var m;x.value=!1,c.value="",N.value=!0,(m=j.value)==null||m.focus(),H(F.value)},300)})},H=m=>{m!=1&&j.value.blur(),F.value=m,console.log(F.value),F.value==2?window.addEventListener("keydown",ue):(window.removeEventListener("keydown",ue),pe(()=>{var l;c.value="",(l=j.value)==null||l.focus()}))},V=d({price:0,uid:"",user_ship:"",village:null,brigade:null}),w=d([]),z=d(!1),P=m=>{V.value=m.data,V.value.total=m.data.price,w.value=m.cart_id,z.value=m.isRePay||!1},q=m=>{V.value.total=m.price,E.value=m.order_id},k=$,N=d(!1),b=d(["1","2","3","4","5","6","7","8","9","0","00","."]),A=/^(10|11|12|13|14|15)\d{16}$/,ae=/^(25|26|27|28|29|30)\d{14,22}$/,E=d(""),Z=()=>{if(x.value=!0,j.value.blur(),z.value)U();else{let m;if(A.test(c.value))m="9";else if(ae.test(c.value))m="13";else return x.value=!1,c.value="",j.value.focus(),D.error("请输入正确的支付码");Ie({uid:V.value.uid,user_ship:V.value.user_ship,village:V.value.village,brigade:V.value.brigade,price:V.value.price,pay_type:m,auth_code:c.value}).then(l=>{l.data.out_trade_no&&l.msg=="支付成功"?(R.value=!1,D({message:"支付成功",type:"success"}),u(l.data)):l.msg=="用户支付中"&&l.code==1&&(D.warning(l.msg),K.on("pay_user_success",S=>{D({message:"支付成功",type:"success"}),setTimeout(()=>{K.off("pay_user_success")},200),R.value=!1,u(S)}))}).catch(l=>{x.value=!1,pe(()=>{var S;(S=j.value)==null||S.focus()})})}},U=()=>{let m=17;if(F.value==1)if(A.test(c.value))m="9";else if(ae.test(c.value))m="13";else return x.value=!1,c.value="",j.value.focus(),D.error("请输入正确的支付码");sl({order_id:V.value.order_id,pay_type:m,auth_code:c.value}).then(l=>{var S;(S=l.msg)!=null&&S.includes("成功")?(R.value=!1,D({message:"支付成功",type:"success"}),u({msg:"支付成功"})):l.msg=="用户支付中"&&l.code==1&&(D.warning(l.msg),K.on("pay_user_success",Q=>{D({message:"支付成功",type:"success"}),setTimeout(()=>{K.off("pay_user_success")},200),R.value=!1,u(Q)}))}).catch(l=>{c.value="",x.value=!1,pe(()=>{var S;(S=j.value)==null||S.focus()})})};d(0);const u=(m=null)=>{var l;window.removeEventListener("keydown",ue),N.value=!1,x.value=!1,c.value="",p.value="",_.value=[],(l=j.value)==null||l.blur(),typeof m=="function"&&(m=null),k("paySuccess",m),R.value=!1},x=d(!1);r({drawer:R,setForm:P,setRePay:q,beforeClose:u});const _=d([]),p=d(""),ee=He(()=>+p.value>0?(p.value-V.value.total).toFixed(2):-1),W=d(!1),le=m=>{m===-1?_.value=[]:_.value.pop(),p.value=_.value.length?_.value.join(""):0},J=m=>{W.value===!1&&(p.value="",W.value=!0);let l=String(p.value).indexOf(".")+1,S=String(p.value).length-l;console.log(l,S),(l===0||S<2)&&(_.value.join("")<=9999999&&_.value.push(m),p.value=_.value.join("")>99999999?99999999:_.value.join(""))},ve=()=>{if(ee.value===""||ee.value===null||ee.value===void 0||+p.value<+V.value.total)return D.error("收款金额应该大于等于应收金额");z.value?U():Ie({uid:V.value.uid,user_ship:V.value.user_ship,village:V.value.village,brigade:V.value.brigade,price:V.value.price,pay_type:17}).then(m=>{console.log("========"),R.value=!1,D({message:m.msg,type:"success"}),F.value=1,u({msg:"收款成功"})}).catch(m=>{x.value=!1})},ue=m=>{let S=(m||window.event).keyCode;if(S==37)return H(2);if(S==120)return K.emit("F9");if(S==27)return u();switch(m.stopPropagation(),m.preventDefault(),S){case 96:case 48:J(0);break;case 97:case 49:J(1);break;case 98:case 50:J(2);break;case 99:case 51:J(3);break;case 100:case 52:J(4);break;case 101:case 53:J(5);break;case 102:case 54:J(6);break;case 103:case 55:J(7);break;case 104:case 56:J(8);break;case 105:case 57:J(9);break;case 110:J(".");break;case 190:J(".");break;case 8:le();break;case 13:ve();break}},ie=d(!1),te=()=>{if(!(!R.value||ie.value&&c.value.length>0)&&F.value==2)return H(1)},o=()=>{if(!(!R.value||ie.value&&c.value.length>0)&&F.value==1)return H(2)};return $e(()=>{K.on("left",te),K.on("right",o)}),Ve(()=>{K.off("left",te),K.off("right",o)}),(m,l)=>{const S=y("el-input"),Q=y("el-button"),v=y("Delete"),s=y("el-icon"),G=y("el-drawer"),I=fe("loading");return n(),O(G,{size:"60rem",modelValue:R.value,"onUpdate:modelValue":l[6]||(l[6]=L=>R.value=L),direction:"rtl",onOpen:B,"before-close":u},{header:t(()=>[Ol]),default:t(()=>{var L;return[e("div",Dl,[e("div",Il,[e("div",{class:ce(["left",{active:F.value==1}]),onClick:l[0]||(l[0]=X=>H(1))}," 微信/支付宝 ",2),e("div",{class:ce(["right",{active:F.value==2}]),onClick:l[1]||(l[1]=X=>H(2))}," 现金收款 ",2)]),e("div",null,[e("div",Pl,[Nl,e("div",El,[f(" ¥"),e("span",jl,h((L=V.value)==null?void 0:L.price),1)])])]),F.value==1?ge((n(),g("div",ql,[a(S,{ref_key:"codeRef",ref:j,modelValue:c.value,"onUpdate:modelValue":l[2]||(l[2]=X=>c.value=X),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:Ne(Z,["enter"]),onFocus:l[3]||(l[3]=X=>ie.value=!0),onBlur:l[4]||(l[4]=X=>ie.value=!1)},null,8,["modelValue"]),Bl])),[[I,x.value]]):(n(),g("div",Jl,[e("div",Tl,[e("div",Kl,[e("div",Ml,[p.value?(n(),g("span",Wl,h(p.value),1)):(n(),g("span",Gl,"按下键盘输入客户支付金额"))]),ee.value>=0?(n(),g("div",Hl,[e("div",null,[f(" 需找零(元):"),e("span",Ql,"¥"+h(ee.value),1)]),Xl])):(n(),g("div",Yl,la)),e("div",aa,[e("div",ta,[(n(!0),g(ne,null,re(b.value,X=>(n(),O(Q,{key:X,onClick:T=>J(X)},{default:t(()=>[f(h(X),1)]),_:2},1032,["onClick"]))),128))]),e("div",sa,[a(Q,{onClick:le},{default:t(()=>[a(s,null,{default:t(()=>[a(v)]),_:1})]),_:1}),a(Q,{onClick:l[5]||(l[5]=X=>le(-1))},{default:t(()=>[f("C")]),_:1}),a(Q,{class:ce(["enter",{"enter-disable":+p.value<+V.value.total}]),disabled:+p.value<+V.value.total,onClick:ve},{default:t(()=>[f(" 确认 ")]),_:1},8,["class","disabled"])])])])])]))])]}),footer:t(()=>[e("div",oa,[a(Q,{class:"cancel-btn",onClick:Y},{default:t(()=>[f("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},na=ke(ia,[["__scopeId","data-v-5ad4b8f5"]]),M=C=>(we("data-v-d356fe09"),C=C(),Ce(),C),ua={class:"my-order"},da={class:"header-nav"},ra=["onClick"],ca={key:0,class:"detail"},va={class:"table"},_a=M(()=>e("div",{class:"table-title"},"用户信息",-1)),ma={class:"table-info"},pa={class:"info-item"},fa=M(()=>e("div",{class:"info-item-title"},"用户余额:",-1)),ya={class:"info-item-info red"},ha={class:"info-item"},ga=M(()=>e("div",{class:"info-item-title"},"采购款:",-1)),ba={class:"info-item-info red"},ka={class:"info-item"},$a=M(()=>e("div",{class:"info-item-title"},"返还金:",-1)),Va={class:"info-item-info red"},wa={class:"info-item"},Ca=M(()=>e("div",{class:"info-item-title"},"头像:",-1)),Sa={class:"info-item-info"},Ua={class:"info-item"},xa=M(()=>e("div",{class:"info-item-title"},"礼品券:",-1)),za={class:"info-item-info red"},Aa={class:"info-item"},Ra=M(()=>e("div",{class:"info-item-title"},"冻结礼品券:",-1)),Fa={class:"info-item-info red"},La={class:"info-item"},Oa=M(()=>e("div",{class:"info-item-title"},"ID:",-1)),Da={class:"info-item-info"},Ia={class:"info-item"},Pa=M(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),Na={class:"info-item-info"},Ea={class:"info-item"},ja=M(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),qa={class:"info-item-info"},Ba={class:"info-item"},Ja=M(()=>e("div",{class:"info-item-title"},"用户账号:",-1)),Ta={class:"info-item-info"},Ka={class:"info-item"},Ma=M(()=>e("div",{class:"info-item-title"},"真实姓名:",-1)),Wa={class:"info-item-info"},Ga={class:"info-item"},Ha=M(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Qa={class:"info-item-info"},Xa={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Ya=M(()=>e("div",{class:"info-item-title"},"用户类型:",-1)),Za={class:"info-item-info"},et={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},lt=M(()=>e("div",{class:"info-item-title"},"用户地址:",-1)),at={key:1,class:"detail"},tt={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},st={style:{display:"flex","align-items":"center"}},ot={style:{"margin-left":"0.5rem"}},it={key:0,style:{display:"flex","align-items":"center"}},nt={class:"footer"},ut={key:0},dt={key:1},rt={key:2},ct={class:"dialog-footer"},vt={key:0},_t={class:"ship-money-list"},mt=["onClick"],pt={class:"item1"},ft={class:"item2"},yt={class:"dialog-footer"},ht={__name:"detail",setup(C){be(),Qe();const r=d({id:""});d({price:"",type:1});const $=d(null),R=(v=null)=>{ie()},F=d(!1),c=d([]);(()=>{Ee({type_id:4}).then(v=>{c.value=v.data.lists})})();const Y=()=>{el({id:r.value.id,user_ship:r.value.user_ship}).then(v=>{var s;D.success("修改成功"),r.value.user_ship_name=(s=c.value.find(G=>G.id==r.value.user_ship))==null?void 0:s.title,F.value=!1})},B=()=>{F.value=!1},H=d([]);(()=>{ll().then(v=>{H.value=v.data,console.log(v)})})();const w=d({id:"",province:"",city:"",area:"",street:"",brigade:""}),z=d([]),P=d([]),q=()=>{al({uid:r.value.id}).then(v=>{var s;(s=v.data)!=null&&s.village?(z.value=[v.data.city,v.data.area,v.data.street,v.data.village,+v.data.brigade],P.value=JSON.parse(JSON.stringify(z.value)),w.value=v.data):(z.value=[],P.value=[],w.value={id:"",province:"",city:"",area:"",street:"",brigade:""})}).catch(v=>{z.value=[],P.value=[],w.value={id:"",province:"",city:"",area:"",street:"",brigade:""}})},k=d([]),N=async(v,s)=>{const G=v.level;let I;if(G!==0&&!v.data.code)return s([]);G===0?(I=await Se({province_code:51e4}),I=I.data.map(L=>({code:L.city_code,name:L.city_name}))):G===1?(I=await Ue({city_code:v.data.code}),I=I.data.map(L=>({code:L.area_code,name:L.area_name}))):G===2?(I=await xe({area_code:v.data.code}),I=I.data.map(L=>({code:L.street_code,name:L.street_name}))):G===3?(I=await ze({street_code:v.data.code}),I=I.data.map(L=>({code:L.village_code,name:L.village_name}))):G===4&&(I=await Ae({village_code:v.data.code}),I=I.data.map(L=>({code:L.id,name:L.brigade_name,leaf:!0}))),s(I)},b={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:N},A=async()=>{w.value.city=z.value[0],w.value.area=z.value[1],w.value.street=z.value[2],w.value.village=z.value[3],w.value.brigade=z.value[4],w.value.phone||(w.value.phone=r.value.account),w.value.real_name||(w.value.real_name=r.value.real_name||r.value.nickname),tl({...w.value,uid:r.value.id}).then(v=>{P.value=JSON.parse(JSON.stringify(z.value)),D.success("编辑成功"),E.value=!0}).catch(v=>{ae()})},ae=()=>{z.value=JSON.parse(JSON.stringify(P.value)),P.value.length>0&&(w.value.city=P.value[0],w.value.area=P.value[1],w.value.street=P.value[2],w.value.village=P.value[3],w.value.brigade=P.value[4]),E.value=!0},E=d(!0),Z=d(0),U=d(["基本信息","用户资产"]),u=d(!1),x=d([]),_=d({page_no:1,page_size:10,loading:!1,loadend:!1});let p=[];const ee=(v=!1)=>{v&&(x.value=[],_.value.page_no=1,_.value.loadend=!1),!(_.value.loadend||_.value.loading)&&(_.value.loading=!0,ol({uid:r.value.id,page_no:_.value.page_no,page_size:_.value.page_size}).then(s=>{x.value=[...x.value,...s.data.lists],_.value.loading=!1,_.value.page_no++,s.data.lists.length<_.value.page_size&&(_.value.loadend=!0)}))},W=d({mobile:"",code:""}),le=d(!1),J=()=>{if(W.value.mobile=r.value.phone,W.value.code="",p=x.value.filter(v=>v.n_num).map(v=>({product_id:v.product_id,nums:v.n_num})),p.length==0)return D.error("请选择商品");le.value=!0},ve=()=>{console.log("发送短信验证码"),D.success("验证码已发送")},ue=()=>{if(W.value.code=="")return D.error("请输入验证码");il({uid:r.value.id,info:p}).then(v=>{u.value=!1,D.success("出库成功"),le.value=!1,ee(!0)})},ie=()=>{Pe({id:r.value.id}).then(({data:v})=>{v.phone=v.mobile+"",delete v.mobile,r.value=Object.assign(r.value,v)})},te=d(!1),o=d({user_ship:"",user_ship_name:"",limit:"",money:"",type:""}),m=()=>{o.value.money=Number(o.value.money).toFixed(2),(+o.value.money<+o.value.limit||+o.value.money>1e4)&&(+o.value.limit>0?o.value.money=o.value.limit:o.value.money="")},l=v=>{if(o.value.type=="add"){let s=c.value.find(G=>G.id==v);s&&(o.value.limit=s.limit,o.value.user_ship_name=s.title,o.value.money=s.limit)}},S=()=>{if(o.value.user_ship===""||o.value.user_ship===null||o.value.user_ship===void 0||o.value.user_ship===0)return D.error("请选择会员类型");if(o.value.money==0||o.value.money=="")return D.error(o.value.type=="add"?"请输入充值金额":"请选择金额");if(o.value.type=="add"&&(+o.value.money<+o.value.limit||+o.value.money>1e4))return+o.value.limit>0?o.value.money=o.value.limit:o.value.money="",D.error(`该类型至少需要充值${o.value.limit}元`);$.value.setForm({data:{uid:r.value.id,price:o.value.money,user_ship:o.value.user_ship,village:w.value.village,brigade:w.value.brigade}}),$.value.drawer=!0,pe(()=>{te.value=!1})},Q=v=>{if(P.value.length==0)return D.error("请先选择用户地址");o.value.type=v,v=="add"&&(o.value.user_ship=r.value.user_ship,o.value.user_ship_name=r.value.user_ship_name,l(o.value.user_ship)),te.value=!0};return $e(()=>{K.on("set-user-detail",v=>{r.value=v,u.value=!1,Pe({id:r.value.id}).then(({data:s})=>{s.phone=s.mobile+"",delete s.mobile,r.value=Object.assign(v,s)}),z.value=[],P.value=[],q(),ee(!0),o.value={user_ship:"",user_ship_name:"",limit:"",money:"",type:""}})}),Ve(()=>{K.off("set-user-detail")}),(v,s)=>{var Oe;const G=y("el-avatar"),I=y("el-tag"),L=y("el-option"),X=y("el-select"),T=y("el-button"),qe=y("el-cascader"),Be=y("el-image"),he=y("el-table-column"),Je=y("el-input-number"),Te=y("el-table"),Ke=y("el-empty"),me=y("el-input"),de=y("el-form-item"),Fe=y("el-form"),Le=y("el-dialog"),Me=fe("infinite-scroll"),We=fe("loading");return n(),g("div",ua,[e("div",da,[(n(!0),g(ne,null,re(U.value,(i,se)=>(n(),g("div",{key:se,class:ce(["nav-item",{"nav-item-active":Z.value==se,"nav-item-radius1":Z.value==se+1,"nav-item-radius2":Z.value==se-1}]),onClick:Ge=>Z.value=se},h(i),11,ra))),128)),e("div",{class:ce(["nav-item",{"nav-item-radius2":Z.value==U.value.length-1}]),style:{flex:"1"}},null,2)]),r.value.id&&Z.value==0?(n(),g("div",ca,[e("div",va,[_a,e("div",ma,[e("div",pa,[fa,e("div",ya,"¥"+h(r.value.now_money),1)]),e("div",ha,[ga,e("div",ba,"¥"+h(r.value.purchase_funds),1)]),e("div",ka,[$a,e("div",Va,"¥"+h((Oe=r.value.return_money)==null?void 0:Oe.toFixed(2)),1)]),e("div",wa,[Ca,e("div",Sa,[a(G,{style:{width:"4rem",height:"4rem"},src:r.value.avatar},null,8,["src"])])]),e("div",Ua,[xa,e("div",za,"¥"+h(r.value.integral),1)]),e("div",Aa,[Ra,e("div",Fa,"¥"+h(r.value.get_frozen),1)]),e("div",La,[Oa,e("div",Da,h(r.value.id),1)]),e("div",Ia,[Pa,e("div",Na,h(r.value.nickname),1)]),e("div",Ea,[ja,e("div",qa,h(r.value.phone),1)]),e("div",Ba,[Ja,e("div",Ta,h(r.value.account),1)]),e("div",Ka,[Ma,e("div",Wa,h(r.value.real_name),1)]),e("div",Ga,[Ha,e("div",Qa,h(r.value.create_time),1)]),e("div",Xa,[Ya,e("div",Za,[F.value==!1?(n(),g(ne,{key:0},[r.value.user_ship==0?(n(),O(I,{key:0,type:"primary",size:"large"},{default:t(()=>[f(h(r.value.user_ship_name),1)]),_:1})):(n(),O(I,{key:1,type:"success",size:"large"},{default:t(()=>[f(h(r.value.user_ship_name),1)]),_:1}))],64)):(n(),g(ne,{key:1},[a(X,{modelValue:r.value.user_ship,"onUpdate:modelValue":s[0]||(s[0]=i=>r.value.user_ship=i),placeholder:"请选择用户类型",style:{width:"10rem"}},{default:t(()=>[(n(!0),g(ne,null,re(c.value,i=>(n(),O(L,{key:i.id,label:i.title,value:i.id,disabled:i.id!=0&&i.id!=4},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),a(T,{type:"primary",style:{"margin-left":"1rem"},onClick:Y},{default:t(()=>[f("确认")]),_:1}),a(T,{style:{"margin-left":"1rem"},onClick:B},{default:t(()=>[f("取消")]),_:1})],64))])]),e("div",et,[lt,(n(),O(qe,{key:r.value.id,style:{flex:"1"},modelValue:z.value,"onUpdate:modelValue":s[1]||(s[1]=i=>z.value=i),options:k.value,props:b,load:N,class:"w-full",disabled:E.value},null,8,["modelValue","options","disabled"])),E.value&&!P.value.length?(n(),O(T,{key:0,type:"primary",style:{"margin-left":"1rem"},onClick:s[2]||(s[2]=i=>E.value=!1)},{default:t(()=>[f("修改")]),_:1})):oe("",!0),E.value?oe("",!0):(n(),O(T,{key:1,type:"primary",style:{"margin-left":"1rem"},onClick:A},{default:t(()=>[f("确认")]),_:1})),E.value?oe("",!0):(n(),O(T,{key:2,style:{"margin-left":"1rem"},onClick:ae},{default:t(()=>[f("取消")]),_:1}))]),r.value.user_ship!=0?(n(),O(T,{key:0,type:"success",class:"big-btn",size:"large",onClick:s[3]||(s[3]=i=>Q("add"))},{default:t(()=>[f("增加经营资金")]),_:1})):(n(),O(T,{key:1,type:"primary",class:"big-btn",size:"large",onClick:s[4]||(s[4]=i=>Q("recharge"))},{default:t(()=>[f("成为会员")]),_:1}))])])])):oe("",!0),r.value.id&&Z.value==1?ge((n(),g("div",at,[ge((n(),g("div",tt,[a(Te,{data:x.value},{default:t(()=>[a(he,{label:"商品信息"},{default:t(({row:i})=>[e("div",st,[a(Be,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:i.image},null,8,["src"]),e("span",ot,h(i.store_name),1)])]),_:1}),a(he,{prop:"price",label:"单价",width:u.value?130:200},null,8,["width"]),a(he,{prop:"nums",label:"存量",width:u.value?100:200},null,8,["width"]),u.value?(n(),O(he,{key:0,prop:"nums",label:"出库量",width:"250"},{default:t(({row:i})=>[i.nums?(n(),g("div",it,[a(Je,{modelValue:i.n_num,"onUpdate:modelValue":se=>i.n_num=se,"step-strictly":"",min:0,max:i.nums},null,8,["modelValue","onUpdate:modelValue","max"]),a(T,{type:"primary",style:{"margin-left":"1rem"},onClick:se=>i.n_num=i.nums},{default:t(()=>[f("全部")]),_:2},1032,["onClick"])])):oe("",!0)]),_:1})):oe("",!0)]),_:1},8,["data"])])),[[Me,ee]]),e("div",nt,[u.value?(n(),g("div",dt,[a(T,{type:"primary",size:"large",onClick:J},{default:t(()=>[f("确认出库")]),_:1}),a(T,{size:"large",onClick:s[6]||(s[6]=i=>u.value=!1)},{default:t(()=>[f("取消")]),_:1})])):(n(),g("div",ut,[a(T,{type:"warning",size:"large",onClick:s[5]||(s[5]=i=>u.value=!0),disabled:x.value.length==0},{default:t(()=>[f("商品出库")]),_:1},8,["disabled"])]))])])),[[We,_.value.loading]]):(n(),g("div",rt,[a(Ke)])),a(na,{ref_key:"payRef",ref:$,onPaySuccess:R},null,512),a(Le,{modelValue:le.value,"onUpdate:modelValue":s[10]||(s[10]=i=>le.value=i),title:"出库验证",width:"500"},{footer:t(()=>[e("div",ct,[a(T,{onClick:s[9]||(s[9]=i=>le.value=!1)},{default:t(()=>[f("取消")]),_:1}),a(T,{type:"primary",onClick:ue},{default:t(()=>[f(" 确认 ")]),_:1})])]),default:t(()=>[a(Fe,{model:W.value},{default:t(()=>[a(de,{label:"手机号:"},{default:t(()=>[a(me,{modelValue:W.value.mobile,"onUpdate:modelValue":s[7]||(s[7]=i=>W.value.mobile=i),autocomplete:"off",readonly:""},null,8,["modelValue"])]),_:1}),a(de,{label:"验证码:"},{default:t(()=>[a(me,{modelValue:W.value.code,"onUpdate:modelValue":s[8]||(s[8]=i=>W.value.code=i),autocomplete:"off",placeholder:"请输入验证码",style:{flex:"1"}},null,8,["modelValue"]),(n(),O(je,{style:{"margin-left":"1rem"},onSendCode:ve,key:W.value.mobile}))]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),a(Le,{modelValue:te.value,"onUpdate:modelValue":s[17]||(s[17]=i=>te.value=i),title:o.value.type=="add"?"增加经营资金":"成为会员",width:"500"},{footer:t(()=>[e("div",yt,[a(T,{onClick:s[16]||(s[16]=i=>te.value=!1)},{default:t(()=>[f("取消")]),_:1}),a(T,{type:"primary",onClick:S},{default:t(()=>[f(" 确认 ")]),_:1})])]),default:t(()=>[a(Fe,{model:o.value,"label-width":"100px"},{default:t(()=>[a(de,{label:"手机号:"},{default:t(()=>[a(me,{modelValue:r.value.phone,"onUpdate:modelValue":s[11]||(s[11]=i=>r.value.phone=i),autocomplete:"off",readonly:""},null,8,["modelValue"])]),_:1}),o.value.type=="add"?(n(),O(de,{key:0,label:"会员类型:"},{default:t(()=>[a(me,{modelValue:o.value.user_ship_name,"onUpdate:modelValue":s[12]||(s[12]=i=>o.value.user_ship_name=i),autocomplete:"off",readonly:""},null,8,["modelValue"])]),_:1})):(n(),O(de,{key:1,label:"会员类型:",required:""},{default:t(()=>[a(X,{modelValue:o.value.user_ship,"onUpdate:modelValue":s[13]||(s[13]=i=>o.value.user_ship=i),placeholder:"请选择用户类型",style:{flex:"1"},onChange:l},{default:t(()=>[(n(!0),g(ne,null,re(c.value,i=>(n(),O(L,{key:i.id,label:i.title,value:i.id,disabled:i.id==0},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})),o.value.type=="add"?(n(),O(de,{key:2,label:"充值金额:",required:""},{default:t(()=>[a(me,{modelValue:o.value.money,"onUpdate:modelValue":s[14]||(s[14]=i=>o.value.money=i),type:"number",onBlur:m,onFocus:s[15]||(s[15]=i=>o.value.money=""),autocomplete:"off"},{prepend:t(()=>[f("¥")]),append:t(()=>[f("元")]),_:1},8,["modelValue"]),o.value.limit?(n(),g("div",vt,h(`${o.value.user_ship_name}角色至少要充值${o.value.limit}元, 最大不超过10000元`),1)):oe("",!0)]),_:1})):(n(),O(de,{key:3,label:"充值金额:",required:""},{default:t(()=>[e("div",_t,[(n(!0),g(ne,null,re(H.value,(i,se)=>(n(),g("div",{class:ce(["ship-money-item",{"ship-money-item-active":i.money==o.value.money}]),onClick:Ge=>o.value.money=i.money,key:se},[e("div",pt,h(i.money)+h(i.money_string),1),e("div",ft,"送"+h(i.send)+h(i.send_string),1)],10,mt))),128))])]),_:1}))]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},gt=ke(ht,[["__scopeId","data-v-d356fe09"]]),bt={class:"my-card"},xt={__name:"index",setup(C){return(r,$)=>(n(),g("div",bt,[a(Ll,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),a(nl),a(gt,{ref:"detailRef"},null,512)]))}};export{xt as default}; +import{u as be,r as d,G as De,b as y,c as n,k as g,f as a,w as t,E as D,_ as ke,o as $e,m as K,a as Ve,h as fe,e,g as f,F as ne,l as re,d as O,p as oe,i as Ne,j as ge,z as ce,t as h,q as we,s as Ce,J as He,n as pe,I as Qe}from"./index-D_5muR1B.js";import{a as Xe,b as Ye,u as Ze,c as Ee,d as Ie,e as Pe,f as el,g as ll,h as al,i as tl}from"./user-WwUaLh3a.js";import"./moment-Cl4UOzQZ.js";import{r as ye}from"./axiosAPI-B_pgHZLY.js";import{_ as je}from"./authCode-BMBF_Y6x.js";import{g as sl,k as ol,l as il}from"./store-SrwX7Uca.js";import{p as nl}from"./padding-DD0QsmkS.js";function Se(C){return ye.get("/city",{params:C})}function Ue(C){return ye.get("/area",{params:C})}function xe(C){return ye.get("/street",{params:C})}function ze(C){return ye.get("/village",{params:C})}function Ae(C){return ye.get("/brigade",{params:C})}const ul={class:"add-user"},dl={__name:"add",emits:["close"],setup(C,{expose:r,emit:$}){const R=be(),F=d(null),c=De({mobile:"",code:"",real_name:"",user_ship:0,selectedValues:[]}),j=De({mobile:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}],real_name:[{required:!0,message:"请输入用户姓名",trigger:"blur"}],user_ship:[{required:!0,message:"请选择用户类型",trigger:"change"}],selectedValues:[{required:!0,message:"请选择用户地址",trigger:"change"}]}),Y=d([]),B=async(q,k)=>{const N=q.level;let b;if(N!==0&&!q.data.code)return k([]);N===0?(b=await Se({province_code:51e4}),b=b.data.map(A=>({code:A.city_code,name:A.city_name}))):N===1?(b=await Ue({city_code:q.data.code}),b=b.data.map(A=>({code:A.area_code,name:A.area_name}))):N===2?(b=await xe({area_code:q.data.code}),b=b.data.map(A=>({code:A.street_code,name:A.street_name}))):N===3?(b=await ze({street_code:q.data.code}),b=b.data.map(A=>({code:A.village_code,name:A.village_name}))):N===4&&(b=await Ae({village_code:q.data.code}),b=b.data.map(A=>({code:A.id,name:A.brigade_name,leaf:!0}))),k(b)},H={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:B};d([]);const V=$,w=()=>{F.value.validate(async q=>{if(q){let k={};k.mobile=c.mobile,k.code=c.code,k.user_ship=c.user_ship,k.real_name=c.real_name,k.province="510000",k.city=c.selectedValues[0],k.area=c.selectedValues[1],k.street=c.selectedValues[2],k.village=c.selectedValues[3],k.brigade=c.selectedValues[4],k.store_id=R.userInfo.store_id,Xe(k).then(N=>{c.mobile="",c.code="",c.user_ship=0,c.real_name="",c.selectedValues=[],F.value.resetFields(),V("close")})}})},z=d(null),P=()=>{F.value.validateField("mobile",q=>{q&&Ye({mobile:c.mobile}).then(k=>{D.success("发送成功"),z.value.startCountDown()}).catch(k=>{D.error("发送失败")})})};return r({addUser:w}),(q,k)=>{const N=y("el-input"),b=y("el-form-item"),A=y("el-cascader"),ae=y("el-form");return n(),g("div",ul,[a(ae,{model:c,rules:j,ref_key:"formDataRef",ref:F,"label-width":"80px"},{default:t(()=>[a(b,{label:"用户电话",prop:"mobile"},{default:t(()=>[a(N,{modelValue:c.mobile,"onUpdate:modelValue":k[0]||(k[0]=E=>c.mobile=E),placeholder:"请输入用户电话"},null,8,["modelValue"])]),_:1}),a(b,{label:"验证码",prop:"code"},{default:t(()=>[a(N,{modelValue:c.code,"onUpdate:modelValue":k[1]||(k[1]=E=>c.code=E),placeholder:"请输入验证码",style:{flex:"1"}},null,8,["modelValue"]),a(je,{ref_key:"authCodeRef",ref:z,style:{"margin-left":"1rem"},onSendCode:P,start:!1},null,512)]),_:1}),a(b,{label:"用户姓名",prop:"real_name"},{default:t(()=>[a(N,{modelValue:c.real_name,"onUpdate:modelValue":k[2]||(k[2]=E=>c.real_name=E),placeholder:"请输入用户姓名"},null,8,["modelValue"])]),_:1}),a(b,{label:"用户地址",prop:"selectedValues"},{default:t(()=>[a(A,{style:{width:"100%"},modelValue:c.selectedValues,"onUpdate:modelValue":k[3]||(k[3]=E=>c.selectedValues=E),options:Y.value,props:H,load:B,class:"w-full"},null,8,["modelValue","options"])]),_:1})]),_:1},8,["model","rules"])])}}},Re=C=>(we("data-v-df06e4b9"),C=C(),Ce(),C),rl={class:"my-order"},cl={class:"header-nav"},vl=Re(()=>e("div",{class:"nav-item"},h("用户列表"),-1)),_l={class:"header-row"},ml=Re(()=>e("div",{class:"label"},"用户类型",-1)),pl={class:"header-row"},fl=Re(()=>e("div",{class:"label"},"用户地区",-1)),yl={class:"header-input"},hl={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},gl=["onClick"],bl={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},kl={class:"top flex"},$l={class:"r-1"},Vl={class:"bold"},wl={class:"bottom flex",style:{"justify-content":"space-between"}},Cl={class:"red"},Sl={class:"red"},Ul={class:"red"},xl={class:"red"},zl={key:0,class:"load-end"},Al={key:1,class:"load-end"},Rl={class:"dialog-footer"},Fl={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(C){const r=be();d([]);const $=d({page_no:1,page_size:20,mobile:"",user_ship:"",street:null}),R=d(!1),F=d(0),c=d(0),j=d(!1),Y=d([]),B=(U=!1)=>{if(U)$.value.page_no=1;else if(j.value||R.value)return;R.value=!0,$.value.mobile==""&&$.value.user_ship==""?$.value.store_id=r.userInfo.store_id:$.value.store_id=null,Ze($.value).then(u=>{U?Y.value=u.data.lists:Y.value=[...Y.value,...u.data.lists],$.value.page_no==1&&Y.value.length>0&&K.emit("set-user-detail",Y.value[0]),u.data.lists.length<$.value.page_size?j.value=!0:$.value.page_no++,c.value=0,F.value=u.data.count,R.value=!1}).catch(u=>{j.value=!0,R.value=!1})},H=(U,u)=>{c.value=u,K.emit("set-user-detail",U)},V=d(!1),w=d(null),z=()=>{var U;(U=w.value)==null||U.addUser()},P=()=>{V.value=!1,B(!0)},q=d([]);(()=>{Ee({type_id:4}).then(U=>{q.value=U.data.lists})})();const N=()=>{$.value.mobile="",$.value.user_ship="",$.value.street=null,b.value=[],B(!0)},b=d([]),A=d([]),ae=async(U,u)=>{const x=U.level;let _;if(x!==0&&!U.data.code)return u([]);x===0?(_=await Se({province_code:51e4}),_=_.data.map(p=>({code:p.city_code,name:p.city_name}))):x===1?(_=await Ue({city_code:U.data.code}),_=_.data.map(p=>({code:p.area_code,name:p.area_name}))):x===2?(_=await xe({area_code:U.data.code}),_=_.data.map(p=>({code:p.street_code,name:p.street_name,leaf:!0}))):x===3?(_=await ze({street_code:U.data.code}),_=_.data.map(p=>({code:p.village_code,name:p.village_name}))):x===4&&(_=await Ae({village_code:U.data.code}),_=_.data.map(p=>({code:p.id,name:p.brigade_name,leaf:!0}))),u(_)},E={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:ae},Z=()=>{b.value.length?$.value.street=b.value[b.value.length-1]:$.value.street="",B(!0)};return $e(()=>{K.on("re-load-user-list",U=>{U&&B(!0)})}),Ve(()=>{K.off("re-load-user-list")}),(U,u)=>{const x=y("Plus"),_=y("el-icon"),p=y("el-button"),ee=y("el-option"),W=y("el-select"),le=y("el-cascader"),J=y("CircleClose"),ve=y("el-input"),ue=y("el-avatar"),ie=y("el-tag"),te=y("el-dialog"),o=fe("loading"),m=fe("infinite-scroll");return n(),g("div",rl,[e("div",cl,[vl,a(p,{type:"primary",onClick:u[0]||(u[0]=l=>V.value=!0)},{default:t(()=>[a(_,null,{default:t(()=>[a(x)]),_:1}),f(" 添加用户")]),_:1})]),e("div",_l,[ml,a(W,{modelValue:$.value.user_ship,"onUpdate:modelValue":u[1]||(u[1]=l=>$.value.user_ship=l),onChange:u[2]||(u[2]=l=>B(!0)),placeholder:"请选择用户类型",style:{flex:"1"}},{default:t(()=>[(n(!0),g(ne,null,re(q.value,l=>(n(),O(ee,{key:l.id,label:l.title,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{onClick:N,style:{"margin-left":"1rem"}},{default:t(()=>[f("重置")]),_:1})]),e("div",pl,[fl,a(le,{style:{flex:"1"},options:A.value,modelValue:b.value,"onUpdate:modelValue":u[3]||(u[3]=l=>b.value=l),props:E,load:ae,class:"w-full",onChange:Z},null,8,["options","modelValue"])]),e("div",yl,[a(ve,{modelValue:$.value.mobile,"onUpdate:modelValue":u[6]||(u[6]=l=>$.value.mobile=l),placeholder:"搜索手机号",onKeydown:u[7]||(u[7]=Ne(l=>B(!0),["enter"])),onClear:u[8]||(u[8]=l=>B(!0))},{suffix:t(()=>[$.value.mobile!=""?(n(),O(_,{key:0,size:"18",onClick:u[4]||(u[4]=l=>{$.value.mobile="",B(!0)}),style:{cursor:"pointer","margin-right":"0.5rem"}},{default:t(()=>[a(J)]),_:1})):oe("",!0)]),append:t(()=>[a(p,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:u[5]||(u[5]=l=>B(!0))},{default:t(()=>[f("搜索")]),_:1})]),_:1},8,["modelValue"])]),ge((n(),g("div",hl,[(n(!0),g(ne,null,re(Y.value,(l,S)=>{var Q;return n(),g("div",{class:ce(["item",{"item-active":c.value==S}]),key:S,onClick:v=>H(l,S)},[a(ue,{class:"avatar",src:l.avatar},null,8,["src"]),e("div",bl,[e("div",kl,[e("div",$l,[e("span",Vl,h(l.real_name||l.nickname),1),e("span",null,h(" (ID:"+l.id+")"),1)]),e("div",null,"手机号: "+h(l.mobile),1)]),e("div",wl,[e("div",null,[f("余额: "),e("span",Cl,h(l.now_money),1)]),e("div",null,[f("采购款: "),e("span",Sl,h(l.purchase_funds),1)]),e("div",null,[f("返还金: "),e("span",Ul,h((Q=l.return_money)==null?void 0:Q.toFixed(2)),1)]),e("div",null,[f("礼品券: "),e("span",xl,h(l.integral),1)]),e("div",null,[l.user_ship==0?(n(),O(ie,{key:0,type:"primary"},{default:t(()=>[f(h(l.user_ship_name),1)]),_:2},1024)):(n(),O(ie,{key:1,type:"success"},{default:t(()=>[f(h(l.user_ship_name),1)]),_:2},1024))])])])],10,gl)}),128)),j.value?(n(),g("div",zl,"没有更多了")):oe("",!0),R.value?(n(),g("div",Al,"加载中...")):oe("",!0)])),[[o,R.value],[m,B]]),a(te,{modelValue:V.value,"onUpdate:modelValue":u[10]||(u[10]=l=>V.value=l),title:"添加用户",width:"600"},{footer:t(()=>[e("div",Rl,[a(p,{onClick:u[9]||(u[9]=l=>V.value=!1)},{default:t(()=>[f("取消")]),_:1}),a(p,{type:"primary",onClick:z},{default:t(()=>[f(" 添加 ")]),_:1})])]),default:t(()=>[a(dl,{ref_key:"addRef",ref:w,onClose:P},null,512)]),_:1},8,["modelValue"])])}}},Ll=ke(Fl,[["__scopeId","data-v-df06e4b9"]]),_e=C=>(we("data-v-5ad4b8f5"),C=C(),Ce(),C),Ol=_e(()=>e("h4",null,"选择支付方式",-1)),Dl={class:"dra-body"},Il={class:"header"},Pl={style:{display:"inline-block"}},Nl=_e(()=>e("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),El={style:{color:"#f5222d","padding-bottom":"2rem"}},jl={style:{"font-size":"1.6rem"}},ql={key:0,"element-loading-text":"支付中",class:"card1"},Bl=_e(()=>e("div",{class:"tips"},null,-1)),Jl={key:1,class:"card2"},Tl={class:"drawer-body"},Kl={class:"counter"},Ml={class:"received"},Wl={key:0},Gl={key:1,style:{"font-size":"1rem",color:"#999"}},Hl={key:0,class:"balance"},Ql={class:"money"},Xl=_e(()=>e("div",{class:"tips"},"按回车(Enter)确认支付",-1)),Yl={key:1,class:"balance"},Zl=_e(()=>e("div",null,"不够找零, 请支付更多金额",-1)),ea=_e(()=>e("div",{class:"tips"},"按下小键盘输入金额",-1)),la=[Zl,ea],aa={class:"keypad"},ta={class:"left"},sa={class:"right"},oa={style:{width:"100%",display:"flex","justify-content":"center"}},ia={__name:"payUser",emits:["paySuccess"],setup(C,{expose:r,emit:$}){const R=d(!1),F=d(1),c=d(""),j=d("");be();const Y=()=>{u()},B=()=>{pe(()=>{setTimeout(()=>{var m;x.value=!1,c.value="",N.value=!0,(m=j.value)==null||m.focus(),H(F.value)},300)})},H=m=>{m!=1&&j.value.blur(),F.value=m,console.log(F.value),F.value==2?window.addEventListener("keydown",ue):(window.removeEventListener("keydown",ue),pe(()=>{var l;c.value="",(l=j.value)==null||l.focus()}))},V=d({price:0,uid:"",user_ship:"",village:null,brigade:null}),w=d([]),z=d(!1),P=m=>{V.value=m.data,V.value.total=m.data.price,w.value=m.cart_id,z.value=m.isRePay||!1},q=m=>{V.value.total=m.price,E.value=m.order_id},k=$,N=d(!1),b=d(["1","2","3","4","5","6","7","8","9","0","00","."]),A=/^(10|11|12|13|14|15)\d{16}$/,ae=/^(25|26|27|28|29|30)\d{14,22}$/,E=d(""),Z=()=>{if(x.value=!0,j.value.blur(),z.value)U();else{let m;if(A.test(c.value))m="9";else if(ae.test(c.value))m="13";else return x.value=!1,c.value="",j.value.focus(),D.error("请输入正确的支付码");Ie({uid:V.value.uid,user_ship:V.value.user_ship,village:V.value.village,brigade:V.value.brigade,price:V.value.price,pay_type:m,auth_code:c.value}).then(l=>{l.data.out_trade_no&&l.msg=="支付成功"?(R.value=!1,D({message:"支付成功",type:"success"}),u(l.data)):l.msg=="用户支付中"&&l.code==1&&(D.warning(l.msg),K.on("pay_user_success",S=>{D({message:"支付成功",type:"success"}),setTimeout(()=>{K.off("pay_user_success")},200),R.value=!1,u(S)}))}).catch(l=>{x.value=!1,pe(()=>{var S;(S=j.value)==null||S.focus()})})}},U=()=>{let m=17;if(F.value==1)if(A.test(c.value))m="9";else if(ae.test(c.value))m="13";else return x.value=!1,c.value="",j.value.focus(),D.error("请输入正确的支付码");sl({order_id:V.value.order_id,pay_type:m,auth_code:c.value}).then(l=>{var S;(S=l.msg)!=null&&S.includes("成功")?(R.value=!1,D({message:"支付成功",type:"success"}),u({msg:"支付成功"})):l.msg=="用户支付中"&&l.code==1&&(D.warning(l.msg),K.on("pay_user_success",Q=>{D({message:"支付成功",type:"success"}),setTimeout(()=>{K.off("pay_user_success")},200),R.value=!1,u(Q)}))}).catch(l=>{c.value="",x.value=!1,pe(()=>{var S;(S=j.value)==null||S.focus()})})};d(0);const u=(m=null)=>{var l;window.removeEventListener("keydown",ue),N.value=!1,x.value=!1,c.value="",p.value="",_.value=[],(l=j.value)==null||l.blur(),typeof m=="function"&&(m=null),k("paySuccess",m),R.value=!1},x=d(!1);r({drawer:R,setForm:P,setRePay:q,beforeClose:u});const _=d([]),p=d(""),ee=He(()=>+p.value>0?(p.value-V.value.total).toFixed(2):-1),W=d(!1),le=m=>{m===-1?_.value=[]:_.value.pop(),p.value=_.value.length?_.value.join(""):0},J=m=>{W.value===!1&&(p.value="",W.value=!0);let l=String(p.value).indexOf(".")+1,S=String(p.value).length-l;console.log(l,S),(l===0||S<2)&&(_.value.join("")<=9999999&&_.value.push(m),p.value=_.value.join("")>99999999?99999999:_.value.join(""))},ve=()=>{if(ee.value===""||ee.value===null||ee.value===void 0||+p.value<+V.value.total)return D.error("收款金额应该大于等于应收金额");z.value?U():Ie({uid:V.value.uid,user_ship:V.value.user_ship,village:V.value.village,brigade:V.value.brigade,price:V.value.price,pay_type:17}).then(m=>{console.log("========"),R.value=!1,D({message:m.msg,type:"success"}),F.value=1,u({msg:"收款成功"})}).catch(m=>{x.value=!1})},ue=m=>{let S=(m||window.event).keyCode;if(S==37)return H(2);if(S==120)return K.emit("F9");if(S==27)return u();switch(m.stopPropagation(),m.preventDefault(),S){case 96:case 48:J(0);break;case 97:case 49:J(1);break;case 98:case 50:J(2);break;case 99:case 51:J(3);break;case 100:case 52:J(4);break;case 101:case 53:J(5);break;case 102:case 54:J(6);break;case 103:case 55:J(7);break;case 104:case 56:J(8);break;case 105:case 57:J(9);break;case 110:J(".");break;case 190:J(".");break;case 8:le();break;case 13:ve();break}},ie=d(!1),te=()=>{if(!(!R.value||ie.value&&c.value.length>0)&&F.value==2)return H(1)},o=()=>{if(!(!R.value||ie.value&&c.value.length>0)&&F.value==1)return H(2)};return $e(()=>{K.on("left",te),K.on("right",o)}),Ve(()=>{K.off("left",te),K.off("right",o)}),(m,l)=>{const S=y("el-input"),Q=y("el-button"),v=y("Delete"),s=y("el-icon"),G=y("el-drawer"),I=fe("loading");return n(),O(G,{size:"60rem",modelValue:R.value,"onUpdate:modelValue":l[6]||(l[6]=L=>R.value=L),direction:"rtl",onOpen:B,"before-close":u},{header:t(()=>[Ol]),default:t(()=>{var L;return[e("div",Dl,[e("div",Il,[e("div",{class:ce(["left",{active:F.value==1}]),onClick:l[0]||(l[0]=X=>H(1))}," 微信/支付宝 ",2),e("div",{class:ce(["right",{active:F.value==2}]),onClick:l[1]||(l[1]=X=>H(2))}," 现金收款 ",2)]),e("div",null,[e("div",Pl,[Nl,e("div",El,[f(" ¥"),e("span",jl,h((L=V.value)==null?void 0:L.price),1)])])]),F.value==1?ge((n(),g("div",ql,[a(S,{ref_key:"codeRef",ref:j,modelValue:c.value,"onUpdate:modelValue":l[2]||(l[2]=X=>c.value=X),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:Ne(Z,["enter"]),onFocus:l[3]||(l[3]=X=>ie.value=!0),onBlur:l[4]||(l[4]=X=>ie.value=!1)},null,8,["modelValue"]),Bl])),[[I,x.value]]):(n(),g("div",Jl,[e("div",Tl,[e("div",Kl,[e("div",Ml,[p.value?(n(),g("span",Wl,h(p.value),1)):(n(),g("span",Gl,"按下键盘输入客户支付金额"))]),ee.value>=0?(n(),g("div",Hl,[e("div",null,[f(" 需找零(元):"),e("span",Ql,"¥"+h(ee.value),1)]),Xl])):(n(),g("div",Yl,la)),e("div",aa,[e("div",ta,[(n(!0),g(ne,null,re(b.value,X=>(n(),O(Q,{key:X,onClick:T=>J(X)},{default:t(()=>[f(h(X),1)]),_:2},1032,["onClick"]))),128))]),e("div",sa,[a(Q,{onClick:le},{default:t(()=>[a(s,null,{default:t(()=>[a(v)]),_:1})]),_:1}),a(Q,{onClick:l[5]||(l[5]=X=>le(-1))},{default:t(()=>[f("C")]),_:1}),a(Q,{class:ce(["enter",{"enter-disable":+p.value<+V.value.total}]),disabled:+p.value<+V.value.total,onClick:ve},{default:t(()=>[f(" 确认 ")]),_:1},8,["class","disabled"])])])])])]))])]}),footer:t(()=>[e("div",oa,[a(Q,{class:"cancel-btn",onClick:Y},{default:t(()=>[f("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},na=ke(ia,[["__scopeId","data-v-5ad4b8f5"]]),M=C=>(we("data-v-d356fe09"),C=C(),Ce(),C),ua={class:"my-order"},da={class:"header-nav"},ra=["onClick"],ca={key:0,class:"detail"},va={class:"table"},_a=M(()=>e("div",{class:"table-title"},"用户信息",-1)),ma={class:"table-info"},pa={class:"info-item"},fa=M(()=>e("div",{class:"info-item-title"},"用户余额:",-1)),ya={class:"info-item-info red"},ha={class:"info-item"},ga=M(()=>e("div",{class:"info-item-title"},"采购款:",-1)),ba={class:"info-item-info red"},ka={class:"info-item"},$a=M(()=>e("div",{class:"info-item-title"},"返还金:",-1)),Va={class:"info-item-info red"},wa={class:"info-item"},Ca=M(()=>e("div",{class:"info-item-title"},"头像:",-1)),Sa={class:"info-item-info"},Ua={class:"info-item"},xa=M(()=>e("div",{class:"info-item-title"},"礼品券:",-1)),za={class:"info-item-info red"},Aa={class:"info-item"},Ra=M(()=>e("div",{class:"info-item-title"},"冻结礼品券:",-1)),Fa={class:"info-item-info red"},La={class:"info-item"},Oa=M(()=>e("div",{class:"info-item-title"},"ID:",-1)),Da={class:"info-item-info"},Ia={class:"info-item"},Pa=M(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),Na={class:"info-item-info"},Ea={class:"info-item"},ja=M(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),qa={class:"info-item-info"},Ba={class:"info-item"},Ja=M(()=>e("div",{class:"info-item-title"},"用户账号:",-1)),Ta={class:"info-item-info"},Ka={class:"info-item"},Ma=M(()=>e("div",{class:"info-item-title"},"真实姓名:",-1)),Wa={class:"info-item-info"},Ga={class:"info-item"},Ha=M(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Qa={class:"info-item-info"},Xa={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Ya=M(()=>e("div",{class:"info-item-title"},"用户类型:",-1)),Za={class:"info-item-info"},et={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},lt=M(()=>e("div",{class:"info-item-title"},"用户地址:",-1)),at={key:1,class:"detail"},tt={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},st={style:{display:"flex","align-items":"center"}},ot={style:{"margin-left":"0.5rem"}},it={key:0,style:{display:"flex","align-items":"center"}},nt={class:"footer"},ut={key:0},dt={key:1},rt={key:2},ct={class:"dialog-footer"},vt={key:0},_t={class:"ship-money-list"},mt=["onClick"],pt={class:"item1"},ft={class:"item2"},yt={class:"dialog-footer"},ht={__name:"detail",setup(C){be(),Qe();const r=d({id:""});d({price:"",type:1});const $=d(null),R=(v=null)=>{ie()},F=d(!1),c=d([]);(()=>{Ee({type_id:4}).then(v=>{c.value=v.data.lists})})();const Y=()=>{el({id:r.value.id,user_ship:r.value.user_ship}).then(v=>{var s;D.success("修改成功"),r.value.user_ship_name=(s=c.value.find(G=>G.id==r.value.user_ship))==null?void 0:s.title,F.value=!1})},B=()=>{F.value=!1},H=d([]);(()=>{ll().then(v=>{H.value=v.data,console.log(v)})})();const w=d({id:"",province:"",city:"",area:"",street:"",brigade:""}),z=d([]),P=d([]),q=()=>{al({uid:r.value.id}).then(v=>{var s;(s=v.data)!=null&&s.village?(z.value=[v.data.city,v.data.area,v.data.street,v.data.village,+v.data.brigade],P.value=JSON.parse(JSON.stringify(z.value)),w.value=v.data):(z.value=[],P.value=[],w.value={id:"",province:"",city:"",area:"",street:"",brigade:""})}).catch(v=>{z.value=[],P.value=[],w.value={id:"",province:"",city:"",area:"",street:"",brigade:""}})},k=d([]),N=async(v,s)=>{const G=v.level;let I;if(G!==0&&!v.data.code)return s([]);G===0?(I=await Se({province_code:51e4}),I=I.data.map(L=>({code:L.city_code,name:L.city_name}))):G===1?(I=await Ue({city_code:v.data.code}),I=I.data.map(L=>({code:L.area_code,name:L.area_name}))):G===2?(I=await xe({area_code:v.data.code}),I=I.data.map(L=>({code:L.street_code,name:L.street_name}))):G===3?(I=await ze({street_code:v.data.code}),I=I.data.map(L=>({code:L.village_code,name:L.village_name}))):G===4&&(I=await Ae({village_code:v.data.code}),I=I.data.map(L=>({code:L.id,name:L.brigade_name,leaf:!0}))),s(I)},b={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:N},A=async()=>{w.value.city=z.value[0],w.value.area=z.value[1],w.value.street=z.value[2],w.value.village=z.value[3],w.value.brigade=z.value[4],w.value.phone||(w.value.phone=r.value.account),w.value.real_name||(w.value.real_name=r.value.real_name||r.value.nickname),tl({...w.value,uid:r.value.id}).then(v=>{P.value=JSON.parse(JSON.stringify(z.value)),D.success("编辑成功"),E.value=!0}).catch(v=>{ae()})},ae=()=>{z.value=JSON.parse(JSON.stringify(P.value)),P.value.length>0&&(w.value.city=P.value[0],w.value.area=P.value[1],w.value.street=P.value[2],w.value.village=P.value[3],w.value.brigade=P.value[4]),E.value=!0},E=d(!0),Z=d(0),U=d(["基本信息","用户资产"]),u=d(!1),x=d([]),_=d({page_no:1,page_size:10,loading:!1,loadend:!1});let p=[];const ee=(v=!1)=>{v&&(x.value=[],_.value.page_no=1,_.value.loadend=!1),!(_.value.loadend||_.value.loading)&&(_.value.loading=!0,ol({uid:r.value.id,page_no:_.value.page_no,page_size:_.value.page_size}).then(s=>{x.value=[...x.value,...s.data.lists],_.value.loading=!1,_.value.page_no++,s.data.lists.length<_.value.page_size&&(_.value.loadend=!0)}))},W=d({mobile:"",code:""}),le=d(!1),J=()=>{if(W.value.mobile=r.value.phone,W.value.code="",p=x.value.filter(v=>v.n_num).map(v=>({product_id:v.product_id,nums:v.n_num})),p.length==0)return D.error("请选择商品");le.value=!0},ve=()=>{console.log("发送短信验证码"),D.success("验证码已发送")},ue=()=>{if(W.value.code=="")return D.error("请输入验证码");il({uid:r.value.id,info:p}).then(v=>{u.value=!1,D.success("出库成功"),le.value=!1,ee(!0)})},ie=()=>{Pe({id:r.value.id}).then(({data:v})=>{v.phone=v.mobile+"",delete v.mobile,r.value=Object.assign(r.value,v)})},te=d(!1),o=d({user_ship:"",user_ship_name:"",limit:"",money:"",type:""}),m=()=>{o.value.money=Number(o.value.money).toFixed(2),(+o.value.money<+o.value.limit||+o.value.money>1e4)&&(+o.value.limit>0?o.value.money=o.value.limit:o.value.money="")},l=v=>{if(o.value.type=="add"){let s=c.value.find(G=>G.id==v);s&&(o.value.limit=s.limit,o.value.user_ship_name=s.title,o.value.money=s.limit)}},S=()=>{if(o.value.user_ship===""||o.value.user_ship===null||o.value.user_ship===void 0||o.value.user_ship===0)return D.error("请选择会员类型");if(o.value.money==0||o.value.money=="")return D.error(o.value.type=="add"?"请输入充值金额":"请选择金额");if(o.value.type=="add"&&(+o.value.money<+o.value.limit||+o.value.money>1e4))return+o.value.limit>0?o.value.money=o.value.limit:o.value.money="",D.error(`该类型至少需要充值${o.value.limit}元`);$.value.setForm({data:{uid:r.value.id,price:o.value.money,user_ship:o.value.user_ship,village:w.value.village,brigade:w.value.brigade}}),$.value.drawer=!0,pe(()=>{te.value=!1})},Q=v=>{if(P.value.length==0)return D.error("请先选择用户地址");o.value.type=v,v=="add"&&(o.value.user_ship=r.value.user_ship,o.value.user_ship_name=r.value.user_ship_name,l(o.value.user_ship)),te.value=!0};return $e(()=>{K.on("set-user-detail",v=>{r.value=v,u.value=!1,Pe({id:r.value.id}).then(({data:s})=>{s.phone=s.mobile+"",delete s.mobile,r.value=Object.assign(v,s)}),z.value=[],P.value=[],q(),ee(!0),o.value={user_ship:"",user_ship_name:"",limit:"",money:"",type:""}})}),Ve(()=>{K.off("set-user-detail")}),(v,s)=>{var Oe;const G=y("el-avatar"),I=y("el-tag"),L=y("el-option"),X=y("el-select"),T=y("el-button"),qe=y("el-cascader"),Be=y("el-image"),he=y("el-table-column"),Je=y("el-input-number"),Te=y("el-table"),Ke=y("el-empty"),me=y("el-input"),de=y("el-form-item"),Fe=y("el-form"),Le=y("el-dialog"),Me=fe("infinite-scroll"),We=fe("loading");return n(),g("div",ua,[e("div",da,[(n(!0),g(ne,null,re(U.value,(i,se)=>(n(),g("div",{key:se,class:ce(["nav-item",{"nav-item-active":Z.value==se,"nav-item-radius1":Z.value==se+1,"nav-item-radius2":Z.value==se-1}]),onClick:Ge=>Z.value=se},h(i),11,ra))),128)),e("div",{class:ce(["nav-item",{"nav-item-radius2":Z.value==U.value.length-1}]),style:{flex:"1"}},null,2)]),r.value.id&&Z.value==0?(n(),g("div",ca,[e("div",va,[_a,e("div",ma,[e("div",pa,[fa,e("div",ya,"¥"+h(r.value.now_money),1)]),e("div",ha,[ga,e("div",ba,"¥"+h(r.value.purchase_funds),1)]),e("div",ka,[$a,e("div",Va,"¥"+h((Oe=r.value.return_money)==null?void 0:Oe.toFixed(2)),1)]),e("div",wa,[Ca,e("div",Sa,[a(G,{style:{width:"4rem",height:"4rem"},src:r.value.avatar},null,8,["src"])])]),e("div",Ua,[xa,e("div",za,"¥"+h(r.value.integral),1)]),e("div",Aa,[Ra,e("div",Fa,"¥"+h(r.value.get_frozen),1)]),e("div",La,[Oa,e("div",Da,h(r.value.id),1)]),e("div",Ia,[Pa,e("div",Na,h(r.value.nickname),1)]),e("div",Ea,[ja,e("div",qa,h(r.value.phone),1)]),e("div",Ba,[Ja,e("div",Ta,h(r.value.account),1)]),e("div",Ka,[Ma,e("div",Wa,h(r.value.real_name),1)]),e("div",Ga,[Ha,e("div",Qa,h(r.value.create_time),1)]),e("div",Xa,[Ya,e("div",Za,[F.value==!1?(n(),g(ne,{key:0},[r.value.user_ship==0?(n(),O(I,{key:0,type:"primary",size:"large"},{default:t(()=>[f(h(r.value.user_ship_name),1)]),_:1})):(n(),O(I,{key:1,type:"success",size:"large"},{default:t(()=>[f(h(r.value.user_ship_name),1)]),_:1}))],64)):(n(),g(ne,{key:1},[a(X,{modelValue:r.value.user_ship,"onUpdate:modelValue":s[0]||(s[0]=i=>r.value.user_ship=i),placeholder:"请选择用户类型",style:{width:"10rem"}},{default:t(()=>[(n(!0),g(ne,null,re(c.value,i=>(n(),O(L,{key:i.id,label:i.title,value:i.id,disabled:i.id!=0&&i.id!=4},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),a(T,{type:"primary",style:{"margin-left":"1rem"},onClick:Y},{default:t(()=>[f("确认")]),_:1}),a(T,{style:{"margin-left":"1rem"},onClick:B},{default:t(()=>[f("取消")]),_:1})],64))])]),e("div",et,[lt,(n(),O(qe,{key:r.value.id,style:{flex:"1"},modelValue:z.value,"onUpdate:modelValue":s[1]||(s[1]=i=>z.value=i),options:k.value,props:b,load:N,class:"w-full",disabled:E.value},null,8,["modelValue","options","disabled"])),E.value&&!P.value.length?(n(),O(T,{key:0,type:"primary",style:{"margin-left":"1rem"},onClick:s[2]||(s[2]=i=>E.value=!1)},{default:t(()=>[f("修改")]),_:1})):oe("",!0),E.value?oe("",!0):(n(),O(T,{key:1,type:"primary",style:{"margin-left":"1rem"},onClick:A},{default:t(()=>[f("确认")]),_:1})),E.value?oe("",!0):(n(),O(T,{key:2,style:{"margin-left":"1rem"},onClick:ae},{default:t(()=>[f("取消")]),_:1}))]),r.value.user_ship!=0?(n(),O(T,{key:0,type:"success",class:"big-btn",size:"large",onClick:s[3]||(s[3]=i=>Q("add"))},{default:t(()=>[f("增加经营资金")]),_:1})):(n(),O(T,{key:1,type:"primary",class:"big-btn",size:"large",onClick:s[4]||(s[4]=i=>Q("recharge"))},{default:t(()=>[f("成为会员")]),_:1}))])])])):oe("",!0),r.value.id&&Z.value==1?ge((n(),g("div",at,[ge((n(),g("div",tt,[a(Te,{data:x.value},{default:t(()=>[a(he,{label:"商品信息"},{default:t(({row:i})=>[e("div",st,[a(Be,{style:{height:"3rem",width:"3rem","flex-shrink":"0"},src:i.image},null,8,["src"]),e("span",ot,h(i.store_name),1)])]),_:1}),a(he,{prop:"price",label:"单价",width:u.value?130:200},null,8,["width"]),a(he,{prop:"nums",label:"存量",width:u.value?100:200},null,8,["width"]),u.value?(n(),O(he,{key:0,prop:"nums",label:"出库量",width:"250"},{default:t(({row:i})=>[i.nums?(n(),g("div",it,[a(Je,{modelValue:i.n_num,"onUpdate:modelValue":se=>i.n_num=se,"step-strictly":"",min:0,max:i.nums},null,8,["modelValue","onUpdate:modelValue","max"]),a(T,{type:"primary",style:{"margin-left":"1rem"},onClick:se=>i.n_num=i.nums},{default:t(()=>[f("全部")]),_:2},1032,["onClick"])])):oe("",!0)]),_:1})):oe("",!0)]),_:1},8,["data"])])),[[Me,ee]]),e("div",nt,[u.value?(n(),g("div",dt,[a(T,{type:"primary",size:"large",onClick:J},{default:t(()=>[f("确认出库")]),_:1}),a(T,{size:"large",onClick:s[6]||(s[6]=i=>u.value=!1)},{default:t(()=>[f("取消")]),_:1})])):(n(),g("div",ut,[a(T,{type:"warning",size:"large",onClick:s[5]||(s[5]=i=>u.value=!0),disabled:x.value.length==0},{default:t(()=>[f("商品出库")]),_:1},8,["disabled"])]))])])),[[We,_.value.loading]]):(n(),g("div",rt,[a(Ke)])),a(na,{ref_key:"payRef",ref:$,onPaySuccess:R},null,512),a(Le,{modelValue:le.value,"onUpdate:modelValue":s[10]||(s[10]=i=>le.value=i),title:"出库验证",width:"500"},{footer:t(()=>[e("div",ct,[a(T,{onClick:s[9]||(s[9]=i=>le.value=!1)},{default:t(()=>[f("取消")]),_:1}),a(T,{type:"primary",onClick:ue},{default:t(()=>[f(" 确认 ")]),_:1})])]),default:t(()=>[a(Fe,{model:W.value},{default:t(()=>[a(de,{label:"手机号:"},{default:t(()=>[a(me,{modelValue:W.value.mobile,"onUpdate:modelValue":s[7]||(s[7]=i=>W.value.mobile=i),autocomplete:"off",readonly:""},null,8,["modelValue"])]),_:1}),a(de,{label:"验证码:"},{default:t(()=>[a(me,{modelValue:W.value.code,"onUpdate:modelValue":s[8]||(s[8]=i=>W.value.code=i),autocomplete:"off",placeholder:"请输入验证码",style:{flex:"1"}},null,8,["modelValue"]),(n(),O(je,{style:{"margin-left":"1rem"},onSendCode:ve,key:W.value.mobile}))]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),a(Le,{modelValue:te.value,"onUpdate:modelValue":s[17]||(s[17]=i=>te.value=i),title:o.value.type=="add"?"增加经营资金":"成为会员",width:"500"},{footer:t(()=>[e("div",yt,[a(T,{onClick:s[16]||(s[16]=i=>te.value=!1)},{default:t(()=>[f("取消")]),_:1}),a(T,{type:"primary",onClick:S},{default:t(()=>[f(" 确认 ")]),_:1})])]),default:t(()=>[a(Fe,{model:o.value,"label-width":"100px"},{default:t(()=>[a(de,{label:"手机号:"},{default:t(()=>[a(me,{modelValue:r.value.phone,"onUpdate:modelValue":s[11]||(s[11]=i=>r.value.phone=i),autocomplete:"off",readonly:""},null,8,["modelValue"])]),_:1}),o.value.type=="add"?(n(),O(de,{key:0,label:"会员类型:"},{default:t(()=>[a(me,{modelValue:o.value.user_ship_name,"onUpdate:modelValue":s[12]||(s[12]=i=>o.value.user_ship_name=i),autocomplete:"off",readonly:""},null,8,["modelValue"])]),_:1})):(n(),O(de,{key:1,label:"会员类型:",required:""},{default:t(()=>[a(X,{modelValue:o.value.user_ship,"onUpdate:modelValue":s[13]||(s[13]=i=>o.value.user_ship=i),placeholder:"请选择用户类型",style:{flex:"1"},onChange:l},{default:t(()=>[(n(!0),g(ne,null,re(c.value,i=>(n(),O(L,{key:i.id,label:i.title,value:i.id,disabled:i.id==0},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})),o.value.type=="add"?(n(),O(de,{key:2,label:"充值金额:",required:""},{default:t(()=>[a(me,{modelValue:o.value.money,"onUpdate:modelValue":s[14]||(s[14]=i=>o.value.money=i),type:"number",onBlur:m,onFocus:s[15]||(s[15]=i=>o.value.money=""),autocomplete:"off"},{prepend:t(()=>[f("¥")]),append:t(()=>[f("元")]),_:1},8,["modelValue"]),o.value.limit?(n(),g("div",vt,h(`${o.value.user_ship_name}角色至少要充值${o.value.limit}元, 最大不超过10000元`),1)):oe("",!0)]),_:1})):(n(),O(de,{key:3,label:"充值金额:",required:""},{default:t(()=>[e("div",_t,[(n(!0),g(ne,null,re(H.value,(i,se)=>(n(),g("div",{class:ce(["ship-money-item",{"ship-money-item-active":i.money==o.value.money}]),onClick:Ge=>o.value.money=i.money,key:se},[e("div",pt,h(i.money)+h(i.money_string),1),e("div",ft,"送"+h(i.send)+h(i.send_string),1)],10,mt))),128))])]),_:1}))]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},gt=ke(ht,[["__scopeId","data-v-d356fe09"]]),bt={class:"my-card"},xt={__name:"index",setup(C){return(r,$)=>(n(),g("div",bt,[a(Ll,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),a(nl),a(gt,{ref:"detailRef"},null,512)]))}};export{xt as default}; diff --git a/build/assets/padding-CGiyqEPU.js b/build/assets/padding-DD0QsmkS.js similarity index 65% rename from build/assets/padding-CGiyqEPU.js rename to build/assets/padding-DD0QsmkS.js index fc8a841..61f70af 100644 --- a/build/assets/padding-CGiyqEPU.js +++ b/build/assets/padding-DD0QsmkS.js @@ -1 +1 @@ -import{_ as e,c as t,k as c}from"./index-CCL_aieW.js";const n={},o={style:{width:"1rem",height:"100%"}};function r(s,_){return t(),c("div",o)}const i=e(n,[["render",r]]);export{i as p}; +import{_ as e,c as t,k as c}from"./index-D_5muR1B.js";const n={},o={style:{width:"1rem",height:"100%"}};function r(s,_){return t(),c("div",o)}const i=e(n,[["render",r]]);export{i as p}; diff --git a/build/assets/pay-H92PK2lK.js b/build/assets/pay-CHuMd-xH.js similarity index 98% rename from build/assets/pay-H92PK2lK.js rename to build/assets/pay-CHuMd-xH.js index c2ca103..1621d82 100644 --- a/build/assets/pay-H92PK2lK.js +++ b/build/assets/pay-CHuMd-xH.js @@ -1 +1 @@ -import{_ as ye,r as o,u as me,J as ge,o as he,m,a as ke,b as D,h as be,c as _,d as O,w as g,e as s,z as B,k as w,g as C,t as S,p as Z,j as we,f as x,i as ee,F as Ce,l as xe,n as R,E as c,q as $e,s as Ve}from"./index-CCL_aieW.js";import{f as K,g as Se,h as Pe,i as Ee}from"./store-BNm3g_zr.js";import{_ as Fe}from"./authCode-C8sYYjUN.js";/* empty css */const V=L=>($e("data-v-09cf2609"),L=L(),Ve(),L),ze=V(()=>s("h4",null,"选择支付方式",-1)),Be={class:"dra-body"},je={class:"header"},Ae={key:0,style:{display:"inline-block","margin-right":"20px"}},De={style:{display:"inline-block","margin-right":"20px"}},Le=V(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"原价:",-1)),Re={style:{color:"#f5222d","padding-bottom":"2rem"}},Te={style:{"font-size":"1.6rem"}},Ne={style:{display:"inline-block"}},Ue=V(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"活动折扣: ",-1)),Ie={style:{color:"#f5222d","padding-bottom":"2rem"}},Oe={style:{"font-size":"1.6rem"}},Ke={style:{display:"inline-block"}},Me=V(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),qe={style:{color:"#f5222d","padding-bottom":"2rem"}},Je={style:{"font-size":"1.6rem"}},We={key:0,"element-loading-text":"支付中",class:"card1"},Ge=V(()=>s("div",{class:"tips"},null,-1)),He={key:1,class:"card2"},Qe={class:"drawer-body"},Xe={class:"counter"},Ye={class:"received"},Ze={key:0},ea={key:1,style:{"font-size":"1rem",color:"#999"}},aa={key:0,class:"balance"},sa={class:"money"},ta=V(()=>s("div",{class:"tips"},"按回车(Enter)确认支付",-1)),la={key:1,class:"balance"},oa=V(()=>s("div",null,"不够找零, 请支付更多金额",-1)),na=V(()=>s("div",{class:"tips"},"按下小键盘输入金额",-1)),ia=[oa,na],ua={class:"keypad"},ca={class:"left"},ra={class:"right"},da={key:2,class:"card3"},va={class:"codes"},_a={style:{width:"100%",display:"flex","justify-content":"center"}},pa={__name:"pay",emits:["paySuccess"],setup(L,{expose:ae,emit:se}){const v=o(!1),t=o(1),i=o(""),h=o("");me(),o(0);const P=a=>{Ee({id:a}).then(e=>{m.emit("letPrintReceipt",e.data)})},te=()=>{y()},le=()=>{R(()=>{setTimeout(()=>{var a;k.value=!1,i.value="",M.value=!0,(a=h.value)==null||a.focus(),p(t.value)},300)})},p=a=>{t.value=a,t.value==2?window.addEventListener("keydown",U):(window.removeEventListener("keydown",U),R(()=>{var e;i.value="",(e=h.value)==null||e.focus()}))},u=o({}),j=o([]),f=o(""),E=o(null),T=o(!1);let F=0;const oe=a=>{u.value=a.data,j.value=a.cart_id,f.value=a.uid,E.value=a.reservation||null,F=a.is_storage||0,console.log("选择了用户==",f.value||"游客"),T.value=a.isRePay||!1},ne=a=>{u.value.pay_price=a.price,ce.value=a.order_id,F=a.is_storage||0},ie=se,M=o(!1),ue=o(["1","2","3","4","5","6","7","8","9","0","00","."]),q=/^(10|11|12|13|14|15)\d{16}$/,J=/^(25|26|27|28|29|30)\d{14,22}$/,ce=o(""),re=()=>{if(k.value=!0,h.value.blur(),T.value)W();else{let a;if(q.test(i.value))a="9";else if(J.test(i.value))a="13";else return k.value=!1,i.value="",h.value.focus(),c.error("请输入正确的支付码");K({key:u.value.key,cart_id:j.value,pay_type:a,is_storage:F,auth_code:i.value,reservation:E.value,uid:f.value}).then(e=>{e.data.out_trade_no&&e.msg=="支付成功"?(v.value=!1,c({message:"支付成功",type:"success"}),y(e.data),P(e.data.id)):e.msg=="用户支付中"&&e.code==1&&(c.warning(e.msg),m.on("pay_success",l=>{c({message:"支付成功",type:"success"}),P(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y(l)}))}).catch(e=>{k.value=!1,R(()=>{var l;(l=h.value)==null||l.focus()})})}},W=()=>{let a=17;if(t.value==1)if(q.test(i.value))a="9";else if(J.test(i.value))a="13";else return k.value=!1,i.value="",h.value.focus(),c.error("请输入正确的支付码");Se({order_id:u.value.order_id,pay_type:a,is_storage:F,auth_code:i.value,reservation:E.value,uid:f.value}).then(e=>{var l;(l=e.msg)!=null&&l.includes("成功")?(v.value=!1,c({message:"支付成功",type:"success"}),P(e.data.id),y()):e.msg=="用户支付中"&&e.code==1&&(c.warning(e.msg),m.on("pay_success",$=>{c({message:"支付成功",type:"success"}),P(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y($)}))}).catch(e=>{i.value="",k.value=!1,R(()=>{var l;(l=h.value)==null||l.focus()})})};o(0);const y=a=>{var e;try{window.removeEventListener("keydown",U),M.value=!1,k.value=!1,i.value="",r.value="",b.value=[],(e=h.value)==null||e.blur(),ie("paySuccess",a),v.value=!1}catch{}},k=o(!1);ae({drawer:v,setForm:oe,setRePay:ne,beforeClose:y});const b=o([]),r=o(""),A=ge(()=>+r.value>0?(+r.value-u.value.pay_price).toFixed(2):-1),G=o(!1),N=a=>{a===-1?b.value=[]:b.value.pop(),r.value=b.value.length?b.value.join(""):0},d=a=>{G.value===!1&&(r.value="",G.value=!0);let e=String(r.value).indexOf(".")+1,l=String(r.value).length-e;console.log(e,l),(e===0||l<2)&&(b.value.join("")<=9999999&&b.value.push(a),r.value=b.value.join("")>99999999?99999999:b.value.join(""))},H=()=>{if(A.value===""||A.value===null||A.value===void 0||+r.value<+u.value.pay_price)return c.error("收款金额应该大于等于应收金额");T.value?W():K({cart_id:j.value,pay_type:"17",is_storage:F,reservation:E.value,uid:f.value}).then(a=>{v.value=!1,c({message:a.msg,type:"success"}),P(a.data.id),t.value=1,y()}).catch(a=>{k.value=!1})},U=a=>{let l=(a||window.event).keyCode;if(l==37)return p(2);if(l==120)return m.emit("F9");if(l==27)return y();switch(a.stopPropagation(),a.preventDefault(),l){case 96:case 48:d(0);break;case 97:case 49:d(1);break;case 98:case 50:d(2);break;case 99:case 51:d(3);break;case 100:case 52:d(4);break;case 101:case 53:d(5);break;case 102:case 54:d(6);break;case 103:case 55:d(7);break;case 104:case 56:d(8);break;case 105:case 57:d(9);break;case 110:d(".");break;case 190:d(".");break;case 8:N();break;case 13:H();break}},de=()=>{if(!f.value)return c.error("请先选择用户");let a=1;t.value==4&&(a=2),t.value==5&&(a=3),Pe({cart_id:j.value,reservation:E.value,uid:f.value,type:a}).then(e=>{c({message:"发送成功",type:"success"})})},I=o(""),Q=()=>{if(!f.value)return c.error("请先选择用户");let a=18;t.value==4&&(a=19),t.value==5&&(a=3),K({pay_type:a,is_storage:F,sms_code:I.value,cart_id:j.value,reservation:E.value,uid:f.value}).then(e=>{v.value=!1,c({message:e.msg,type:"success"}),P(e.data.id),p(1),y()})},z=o(!1),X=()=>{if(!(!v.value||z.value&&i.value.length>0)&&t.value!=1)return p(t.value-1)},Y=()=>{if(!(!v.value||z.value&&i.value.length>0)&&t.value!=5)return p(t.value+1)};return he(()=>{m.on("left",X),m.on("right",Y)}),ke(()=>{m.off("left",X),m.off("right",Y)}),(a,e)=>{const l=D("el-input"),$=D("el-button"),ve=D("Delete"),_e=D("el-icon"),pe=D("el-drawer"),fe=be("loading");return _(),O(pe,{size:"60rem",modelValue:v.value,"onUpdate:modelValue":e[12]||(e[12]=n=>v.value=n),direction:"rtl",onOpen:le,"before-close":y},{header:g(()=>[ze]),default:g(()=>[s("div",Be,[s("div",je,[s("div",{class:B(["left",{active:t.value==1}]),onClick:e[0]||(e[0]=n=>p(1))}," 微信/支付宝 ",2),s("div",{class:B(["center",{active:t.value==2}]),onClick:e[1]||(e[1]=n=>p(2))}," 现金收款 ",2),s("div",{class:B(["center",{active:t.value==3}]),style:{"border-left":"none"},onClick:e[2]||(e[2]=n=>p(3))}," 采购款 ",2),s("div",{class:B(["center",{active:t.value==4}]),style:{"border-left":"none"},onClick:e[3]||(e[3]=n=>p(4))}," 礼品券兑换 ",2),s("div",{class:B(["right",{active:t.value==5}]),onClick:e[4]||(e[4]=n=>p(5))}," 余额 ",2)]),s("div",null,[u.value.activities==1&&t.value!=4?(_(),w("div",Ae,[s("div",De,[Le,s("div",Re,[C(" ¥"),s("span",Te,S(u.value.total_price),1)])]),s("div",Ne,[Ue,s("div",Ie,[C(S(u.value.activity)+"¥",1),s("span",Oe,S(u.value.activity_price),1)])])])):Z("",!0),s("div",Ke,[Me,s("div",qe,[C(" ¥"),s("span",Je,S(t.value==4?u.value.total_price:u.value.pay_price),1)])])]),t.value==1?we((_(),w("div",We,[x(l,{ref_key:"codeRef",ref:h,modelValue:i.value,"onUpdate:modelValue":e[5]||(e[5]=n=>i.value=n),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:ee(re,["enter"]),onFocus:e[6]||(e[6]=n=>z.value=!0),onBlur:e[7]||(e[7]=n=>z.value=!1)},null,8,["modelValue"]),Ge])),[[fe,k.value]]):t.value==2?(_(),w("div",He,[s("div",Qe,[s("div",Xe,[s("div",Ye,[r.value?(_(),w("span",Ze,S(r.value),1)):(_(),w("span",ea,"按下键盘输入客户支付金额"))]),A.value>=0?(_(),w("div",aa,[s("div",null,[C(" 需找零(元):"),s("span",sa,"¥"+S(A.value),1)]),ta])):(_(),w("div",la,ia)),s("div",ua,[s("div",ca,[(_(!0),w(Ce,null,xe(ue.value,n=>(_(),O($,{key:n,onClick:fa=>d(n)},{default:g(()=>[C(S(n),1)]),_:2},1032,["onClick"]))),128))]),s("div",ra,[x($,{onClick:N},{default:g(()=>[x(_e,null,{default:g(()=>[x(ve)]),_:1})]),_:1}),x($,{onClick:e[8]||(e[8]=n=>N(-1))},{default:g(()=>[C("C")]),_:1}),x($,{class:B(["enter",{"enter-disable":+r.value<+u.value.pay_price}]),disabled:+r.value<+u.value.pay_price,onClick:H},{default:g(()=>[C(" 确认 ")]),_:1},8,["class","disabled"])])])])])])):t.value==3||t.value==4||t.value==5?(_(),w("div",da,[s("div",va,[x(l,{modelValue:I.value,"onUpdate:modelValue":e[9]||(e[9]=n=>I.value=n),autofocus:"",class:"code-input",placeholder:"请输入验证码",onKeyup:ee(Q,["enter"]),onFocus:e[10]||(e[10]=n=>z.value=!0),onBlur:e[11]||(e[11]=n=>z.value=!1)},null,8,["modelValue"]),(_(),O(Fe,{style:{"margin-left":"1rem"},onSendCode:de,start:f.value>0,key:u.value.order_id,class:"get-code-btn"},null,8,["start"]))]),x($,{type:"primary",onClick:Q,class:"code-pay"},{default:g(()=>[C("确认支付")]),_:1})])):Z("",!0)])]),footer:g(()=>[s("div",_a,[x($,{class:"cancel-btn",onClick:te},{default:g(()=>[C("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},ka=ye(pa,[["__scopeId","data-v-09cf2609"]]);export{ka as p}; +import{_ as ye,r as o,u as me,J as ge,o as he,m,a as ke,b as D,h as be,c as _,d as O,w as g,e as s,z as B,k as w,g as C,t as S,p as Z,j as we,f as x,i as ee,F as Ce,l as xe,n as R,E as c,q as $e,s as Ve}from"./index-D_5muR1B.js";import{f as K,g as Se,h as Pe,i as Ee}from"./store-SrwX7Uca.js";import{_ as Fe}from"./authCode-BMBF_Y6x.js";/* empty css */const V=L=>($e("data-v-09cf2609"),L=L(),Ve(),L),ze=V(()=>s("h4",null,"选择支付方式",-1)),Be={class:"dra-body"},je={class:"header"},Ae={key:0,style:{display:"inline-block","margin-right":"20px"}},De={style:{display:"inline-block","margin-right":"20px"}},Le=V(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"原价:",-1)),Re={style:{color:"#f5222d","padding-bottom":"2rem"}},Te={style:{"font-size":"1.6rem"}},Ne={style:{display:"inline-block"}},Ue=V(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"活动折扣: ",-1)),Ie={style:{color:"#f5222d","padding-bottom":"2rem"}},Oe={style:{"font-size":"1.6rem"}},Ke={style:{display:"inline-block"}},Me=V(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),qe={style:{color:"#f5222d","padding-bottom":"2rem"}},Je={style:{"font-size":"1.6rem"}},We={key:0,"element-loading-text":"支付中",class:"card1"},Ge=V(()=>s("div",{class:"tips"},null,-1)),He={key:1,class:"card2"},Qe={class:"drawer-body"},Xe={class:"counter"},Ye={class:"received"},Ze={key:0},ea={key:1,style:{"font-size":"1rem",color:"#999"}},aa={key:0,class:"balance"},sa={class:"money"},ta=V(()=>s("div",{class:"tips"},"按回车(Enter)确认支付",-1)),la={key:1,class:"balance"},oa=V(()=>s("div",null,"不够找零, 请支付更多金额",-1)),na=V(()=>s("div",{class:"tips"},"按下小键盘输入金额",-1)),ia=[oa,na],ua={class:"keypad"},ca={class:"left"},ra={class:"right"},da={key:2,class:"card3"},va={class:"codes"},_a={style:{width:"100%",display:"flex","justify-content":"center"}},pa={__name:"pay",emits:["paySuccess"],setup(L,{expose:ae,emit:se}){const v=o(!1),t=o(1),i=o(""),h=o("");me(),o(0);const P=a=>{Ee({id:a}).then(e=>{m.emit("letPrintReceipt",e.data)})},te=()=>{y()},le=()=>{R(()=>{setTimeout(()=>{var a;k.value=!1,i.value="",M.value=!0,(a=h.value)==null||a.focus(),p(t.value)},300)})},p=a=>{t.value=a,t.value==2?window.addEventListener("keydown",U):(window.removeEventListener("keydown",U),R(()=>{var e;i.value="",(e=h.value)==null||e.focus()}))},u=o({}),j=o([]),f=o(""),E=o(null),T=o(!1);let F=0;const oe=a=>{u.value=a.data,j.value=a.cart_id,f.value=a.uid,E.value=a.reservation||null,F=a.is_storage||0,console.log("选择了用户==",f.value||"游客"),T.value=a.isRePay||!1},ne=a=>{u.value.pay_price=a.price,ce.value=a.order_id,F=a.is_storage||0},ie=se,M=o(!1),ue=o(["1","2","3","4","5","6","7","8","9","0","00","."]),q=/^(10|11|12|13|14|15)\d{16}$/,J=/^(25|26|27|28|29|30)\d{14,22}$/,ce=o(""),re=()=>{if(k.value=!0,h.value.blur(),T.value)W();else{let a;if(q.test(i.value))a="9";else if(J.test(i.value))a="13";else return k.value=!1,i.value="",h.value.focus(),c.error("请输入正确的支付码");K({key:u.value.key,cart_id:j.value,pay_type:a,is_storage:F,auth_code:i.value,reservation:E.value,uid:f.value}).then(e=>{e.data.out_trade_no&&e.msg=="支付成功"?(v.value=!1,c({message:"支付成功",type:"success"}),y(e.data),P(e.data.id)):e.msg=="用户支付中"&&e.code==1&&(c.warning(e.msg),m.on("pay_success",l=>{c({message:"支付成功",type:"success"}),P(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y(l)}))}).catch(e=>{k.value=!1,R(()=>{var l;(l=h.value)==null||l.focus()})})}},W=()=>{let a=17;if(t.value==1)if(q.test(i.value))a="9";else if(J.test(i.value))a="13";else return k.value=!1,i.value="",h.value.focus(),c.error("请输入正确的支付码");Se({order_id:u.value.order_id,pay_type:a,is_storage:F,auth_code:i.value,reservation:E.value,uid:f.value}).then(e=>{var l;(l=e.msg)!=null&&l.includes("成功")?(v.value=!1,c({message:"支付成功",type:"success"}),P(e.data.id),y()):e.msg=="用户支付中"&&e.code==1&&(c.warning(e.msg),m.on("pay_success",$=>{c({message:"支付成功",type:"success"}),P(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y($)}))}).catch(e=>{i.value="",k.value=!1,R(()=>{var l;(l=h.value)==null||l.focus()})})};o(0);const y=a=>{var e;try{window.removeEventListener("keydown",U),M.value=!1,k.value=!1,i.value="",r.value="",b.value=[],(e=h.value)==null||e.blur(),ie("paySuccess",a),v.value=!1}catch{}},k=o(!1);ae({drawer:v,setForm:oe,setRePay:ne,beforeClose:y});const b=o([]),r=o(""),A=ge(()=>+r.value>0?(+r.value-u.value.pay_price).toFixed(2):-1),G=o(!1),N=a=>{a===-1?b.value=[]:b.value.pop(),r.value=b.value.length?b.value.join(""):0},d=a=>{G.value===!1&&(r.value="",G.value=!0);let e=String(r.value).indexOf(".")+1,l=String(r.value).length-e;console.log(e,l),(e===0||l<2)&&(b.value.join("")<=9999999&&b.value.push(a),r.value=b.value.join("")>99999999?99999999:b.value.join(""))},H=()=>{if(A.value===""||A.value===null||A.value===void 0||+r.value<+u.value.pay_price)return c.error("收款金额应该大于等于应收金额");T.value?W():K({cart_id:j.value,pay_type:"17",is_storage:F,reservation:E.value,uid:f.value}).then(a=>{v.value=!1,c({message:a.msg,type:"success"}),P(a.data.id),t.value=1,y()}).catch(a=>{k.value=!1})},U=a=>{let l=(a||window.event).keyCode;if(l==37)return p(2);if(l==120)return m.emit("F9");if(l==27)return y();switch(a.stopPropagation(),a.preventDefault(),l){case 96:case 48:d(0);break;case 97:case 49:d(1);break;case 98:case 50:d(2);break;case 99:case 51:d(3);break;case 100:case 52:d(4);break;case 101:case 53:d(5);break;case 102:case 54:d(6);break;case 103:case 55:d(7);break;case 104:case 56:d(8);break;case 105:case 57:d(9);break;case 110:d(".");break;case 190:d(".");break;case 8:N();break;case 13:H();break}},de=()=>{if(!f.value)return c.error("请先选择用户");let a=1;t.value==4&&(a=2),t.value==5&&(a=3),Pe({cart_id:j.value,reservation:E.value,uid:f.value,type:a}).then(e=>{c({message:"发送成功",type:"success"})})},I=o(""),Q=()=>{if(!f.value)return c.error("请先选择用户");let a=18;t.value==4&&(a=19),t.value==5&&(a=3),K({pay_type:a,is_storage:F,sms_code:I.value,cart_id:j.value,reservation:E.value,uid:f.value}).then(e=>{v.value=!1,c({message:e.msg,type:"success"}),P(e.data.id),p(1),y()})},z=o(!1),X=()=>{if(!(!v.value||z.value&&i.value.length>0)&&t.value!=1)return p(t.value-1)},Y=()=>{if(!(!v.value||z.value&&i.value.length>0)&&t.value!=5)return p(t.value+1)};return he(()=>{m.on("left",X),m.on("right",Y)}),ke(()=>{m.off("left",X),m.off("right",Y)}),(a,e)=>{const l=D("el-input"),$=D("el-button"),ve=D("Delete"),_e=D("el-icon"),pe=D("el-drawer"),fe=be("loading");return _(),O(pe,{size:"60rem",modelValue:v.value,"onUpdate:modelValue":e[12]||(e[12]=n=>v.value=n),direction:"rtl",onOpen:le,"before-close":y},{header:g(()=>[ze]),default:g(()=>[s("div",Be,[s("div",je,[s("div",{class:B(["left",{active:t.value==1}]),onClick:e[0]||(e[0]=n=>p(1))}," 微信/支付宝 ",2),s("div",{class:B(["center",{active:t.value==2}]),onClick:e[1]||(e[1]=n=>p(2))}," 现金收款 ",2),s("div",{class:B(["center",{active:t.value==3}]),style:{"border-left":"none"},onClick:e[2]||(e[2]=n=>p(3))}," 采购款 ",2),s("div",{class:B(["center",{active:t.value==4}]),style:{"border-left":"none"},onClick:e[3]||(e[3]=n=>p(4))}," 礼品券兑换 ",2),s("div",{class:B(["right",{active:t.value==5}]),onClick:e[4]||(e[4]=n=>p(5))}," 余额 ",2)]),s("div",null,[u.value.activities==1&&t.value!=4?(_(),w("div",Ae,[s("div",De,[Le,s("div",Re,[C(" ¥"),s("span",Te,S(u.value.total_price),1)])]),s("div",Ne,[Ue,s("div",Ie,[C(S(u.value.activity)+"¥",1),s("span",Oe,S(u.value.activity_price),1)])])])):Z("",!0),s("div",Ke,[Me,s("div",qe,[C(" ¥"),s("span",Je,S(t.value==4?u.value.total_price:u.value.pay_price),1)])])]),t.value==1?we((_(),w("div",We,[x(l,{ref_key:"codeRef",ref:h,modelValue:i.value,"onUpdate:modelValue":e[5]||(e[5]=n=>i.value=n),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:ee(re,["enter"]),onFocus:e[6]||(e[6]=n=>z.value=!0),onBlur:e[7]||(e[7]=n=>z.value=!1)},null,8,["modelValue"]),Ge])),[[fe,k.value]]):t.value==2?(_(),w("div",He,[s("div",Qe,[s("div",Xe,[s("div",Ye,[r.value?(_(),w("span",Ze,S(r.value),1)):(_(),w("span",ea,"按下键盘输入客户支付金额"))]),A.value>=0?(_(),w("div",aa,[s("div",null,[C(" 需找零(元):"),s("span",sa,"¥"+S(A.value),1)]),ta])):(_(),w("div",la,ia)),s("div",ua,[s("div",ca,[(_(!0),w(Ce,null,xe(ue.value,n=>(_(),O($,{key:n,onClick:fa=>d(n)},{default:g(()=>[C(S(n),1)]),_:2},1032,["onClick"]))),128))]),s("div",ra,[x($,{onClick:N},{default:g(()=>[x(_e,null,{default:g(()=>[x(ve)]),_:1})]),_:1}),x($,{onClick:e[8]||(e[8]=n=>N(-1))},{default:g(()=>[C("C")]),_:1}),x($,{class:B(["enter",{"enter-disable":+r.value<+u.value.pay_price}]),disabled:+r.value<+u.value.pay_price,onClick:H},{default:g(()=>[C(" 确认 ")]),_:1},8,["class","disabled"])])])])])])):t.value==3||t.value==4||t.value==5?(_(),w("div",da,[s("div",va,[x(l,{modelValue:I.value,"onUpdate:modelValue":e[9]||(e[9]=n=>I.value=n),autofocus:"",class:"code-input",placeholder:"请输入验证码",onKeyup:ee(Q,["enter"]),onFocus:e[10]||(e[10]=n=>z.value=!0),onBlur:e[11]||(e[11]=n=>z.value=!1)},null,8,["modelValue"]),(_(),O(Fe,{style:{"margin-left":"1rem"},onSendCode:de,start:f.value>0,key:u.value.order_id,class:"get-code-btn"},null,8,["start"]))]),x($,{type:"primary",onClick:Q,class:"code-pay"},{default:g(()=>[C("确认支付")]),_:1})])):Z("",!0)])]),footer:g(()=>[s("div",_a,[x($,{class:"cancel-btn",onClick:te},{default:g(()=>[C("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},ka=ye(pa,[["__scopeId","data-v-09cf2609"]]);export{ka as p}; diff --git a/build/assets/shop-DO-HIKTR.js b/build/assets/shop-NV06cTZv.js similarity index 73% rename from build/assets/shop-DO-HIKTR.js rename to build/assets/shop-NV06cTZv.js index 4d4d777..3b3baca 100644 --- a/build/assets/shop-DO-HIKTR.js +++ b/build/assets/shop-NV06cTZv.js @@ -1 +1 @@ -import{K as s}from"./index-CCL_aieW.js";import{r}from"./axiosAPI-XZKFUjoi.js";function a(t){return r.get("/product/product/lists",{params:t})}function i(t){return s.get("/cate/cate/lists",{params:t})}function n(t){return s.get("/system_store_storage/systemstorestorage/lists",{params:t})}function u(t){return s.post("/system_store_storage/systemstorestorage/edit",t)}function p(t){return s.get("/store_product/storeProduct/lists",{params:t})}export{n as a,u as b,p as c,i as m,a as s}; +import{K as s}from"./index-D_5muR1B.js";import{r}from"./axiosAPI-B_pgHZLY.js";function a(t){return r.get("/product/product/lists",{params:t})}function i(t){return s.get("/cate/cate/lists",{params:t})}function n(t){return s.get("/system_store_storage/systemstorestorage/lists",{params:t})}function u(t){return s.post("/system_store_storage/systemstorestorage/edit",t)}function p(t){return s.get("/store_product/storeProduct/lists",{params:t})}export{n as a,u as b,p as c,i as m,a as s}; diff --git a/build/assets/store-BNm3g_zr.js b/build/assets/store-SrwX7Uca.js similarity index 94% rename from build/assets/store-BNm3g_zr.js rename to build/assets/store-SrwX7Uca.js index 85dfd95..19f0646 100644 --- a/build/assets/store-BNm3g_zr.js +++ b/build/assets/store-SrwX7Uca.js @@ -1 +1 @@ -import{K as e}from"./index-CCL_aieW.js";function o(r){return e.post("/cart/cart/create",r)}function s(r){return e.get("/cart/cart/list",{params:r})}function a(r){return e.post("/store_order/storeOrder/checkInventory",r)}function n(r){return e.post("/store_order/StoreOrder/checkOrder",r)}function i(r){return e.post("/cart/cart/delete",r)}function u(r){return e.post("/store_order/StoreOrder/createOrder",r)}function c(r){return e.post("/store_order/StoreOrder/pay",r)}function d(r){return e.get("/store_order/StoreOrder/lists",{params:r})}function p(r){return e.get("/user_product_storage_log/UserProductStorageLog/lists",{params:r})}function f(r){return e.get("/store_order/storeOrder/detail",{params:r})}function g(r){return e.get("/store_order/storeOrder/writeoff_list",{params:r})}function _(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function O(r){return e.post("/store_order/StoreOrder/checkSms",r)}function A(r){return e.get("/store_order/StoreOrder/print",{params:r})}function S(r){return e.get("/user_product_storage/UserProductStorage/lists",{params:r})}function l(r){return e.post("/user_product_storage/UserProductStorage/supply",r)}export{s as a,o as b,i as c,d,f as e,u as f,c as g,O as h,A as i,g as j,S as k,l,n as o,a as s,p as u,_ as w}; +import{K as e}from"./index-D_5muR1B.js";function o(r){return e.post("/cart/cart/create",r)}function s(r){return e.get("/cart/cart/list",{params:r})}function a(r){return e.post("/store_order/storeOrder/checkInventory",r)}function n(r){return e.post("/store_order/StoreOrder/checkOrder",r)}function i(r){return e.post("/cart/cart/delete",r)}function u(r){return e.post("/store_order/StoreOrder/createOrder",r)}function c(r){return e.post("/store_order/StoreOrder/pay",r)}function d(r){return e.get("/store_order/StoreOrder/lists",{params:r})}function p(r){return e.get("/user_product_storage_log/UserProductStorageLog/lists",{params:r})}function f(r){return e.get("/store_order/storeOrder/detail",{params:r})}function g(r){return e.get("/store_order/storeOrder/writeoff_list",{params:r})}function _(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function O(r){return e.post("/store_order/StoreOrder/checkSms",r)}function A(r){return e.get("/store_order/StoreOrder/print",{params:r})}function S(r){return e.get("/user_product_storage/UserProductStorage/lists",{params:r})}function l(r){return e.post("/user_product_storage/UserProductStorage/supply",r)}export{s as a,o as b,i as c,d,f as e,u as f,c as g,O as h,A as i,g as j,S as k,l,n as o,a as s,p as u,_ as w}; diff --git a/build/assets/test-CVeEG6NU.js b/build/assets/test-B4kXEuqA.js similarity index 99% rename from build/assets/test-CVeEG6NU.js rename to build/assets/test-B4kXEuqA.js index 56a0db7..7c0e6c7 100644 --- a/build/assets/test-CVeEG6NU.js +++ b/build/assets/test-B4kXEuqA.js @@ -1,4 +1,4 @@ -import{r as O,b as S,c as w,k as C,e as g,f as T,w as A,F as x,E as I,g as L}from"./index-CCL_aieW.js";var D={exports:{}};(function(j,M){(function(a,e){j.exports=e()})(window,function(){return function(h){var a={};function e(o){if(a[o])return a[o].exports;var d=a[o]={i:o,l:!1,exports:{}};return h[o].call(d.exports,d,d.exports,e),d.l=!0,d.exports}return e.m=h,e.c=a,e.d=function(o,d,f){e.o(o,d)||Object.defineProperty(o,d,{enumerable:!0,get:f})},e.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,d){if(d&1&&(o=e(o)),d&8||d&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),d&2&&typeof o!="string")for(var b in o)e.d(f,b,(function(i){return o[i]}).bind(null,b));return f},e.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(d,"a",d),d},e.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},e.p="",e(e.s=0)}({"./src/index.js":function(h,a,e){e.r(a),e("./src/sass/index.scss");var o=e("./src/js/init.js"),d=o.default.init;typeof window<"u"&&(window.printJS=d),a.default=d},"./src/js/browser.js":function(h,a,e){e.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(h,a,e){e.r(a),e.d(a,"addWrapper",function(){return b}),e.d(a,"capitalizePrint",function(){return i}),e.d(a,"collectStyles",function(){return l}),e.d(a,"addHeader",function(){return n}),e.d(a,"cleanUp",function(){return u}),e.d(a,"isRawHTML",function(){return p});var o=e("./src/js/modal.js"),d=e("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,s){var c="font-family:"+s.font+" !important; font-size: "+s.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,s){for(var c=document.defaultView||window,E="",y=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return s.test(t)}},"./src/js/html.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(n){return typeof n}:f=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f(l)}a.default={print:function(r,n){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),d.default.send(r,n)}};function b(l,r){for(var n=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),p=0;p"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(v){y.srcdoc+=''})),y.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(v){t.onError(v)}finally{t.showModal&&d.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,y);break;case"image":l.default.print(t,y);break;case"html":b.default.print(t,y);break;case"raw-html":i.default.print(t,y);break;case"json":r.default.print(t,y);break}}}},"./src/js/json.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(n){return{field:f(n)==="object"?n.field:n,displayName:f(n)==="object"?n.displayName:n,columnSize:f(n)==="object"&&n.columnSize?n.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),d.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,n='';i.repeatTableHeader&&(n+=""),n+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";n+="",i.repeatTableHeader&&(n+=""),n+="";for(var p=0;p";for(var t=0;t1)for(var E=0;E'+s+""}n+=""}return n+="
",n}},"./src/js/modal.js":function(h,a,e){e.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var n=document.createElement("span");n.setAttribute("class","printSpinner"),l.appendChild(n);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js"),d=e("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var n=new window.XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("error",function(){Object(d.cleanUp)(i),i.onError(n.statusText,n)}),n.addEventListener("load",function(){if([200,201].indexOf(n.status)===-1){Object(d.cleanUp)(i),i.onError(n.statusText,n);return}f(i,l,n.response)}),n.open("GET",i.printable,!0),n.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(h,a,e){e.r(a);var o=e("./src/js/browser.js"),d=e("./src/js/functions.js"),f={send:function(n,u){document.getElementsByTagName("body")[0].appendChild(u);var p=document.getElementById(n.frameId);p.onload=function(){if(n.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(p,n)},1e3):b(p,n);return}var t=p.contentWindow||p.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(n.printableElement),n.type!=="pdf"&&n.style){var s=document.createElement("style");s.innerHTML=n.style,t.head.appendChild(s)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(p,n)}):b(p,n)}}};function b(r,n){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){n.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(d.cleanUp)(n)}}function i(r){var n=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(n)}function l(r){return new Promise(function(n){var u=function p(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(p,500):n()};u()})}a.default=f},"./src/js/raw-html.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(h,a,e){},0:function(h,a,e){h.exports=e("./src/index.js")}}).default})})(D);const B=g("h2",null,"小票标题",-1),U=g("p",null,"商品名称: 商品1",-1),R=g("p",null,"价格: ¥10.00",-1),W=g("p",null,"数量: 1",-1),H=g("p",null,"-------------------",-1),N=g("p",null,"总计: ¥10.00",-1),K=g("p",null,"-------------------",-1),z=[B,U,R,W,H,N,K],F={__name:"test",setup(j){const M=O(null),h=()=>{uni.getEnv(e=>{e.h5?I.error("请使用APP打印小票"):a()})},a=()=>{let e="";e+=`******************************** +import{r as O,b as S,c as w,k as C,e as g,f as T,w as A,F as x,E as I,g as L}from"./index-D_5muR1B.js";var D={exports:{}};(function(j,M){(function(a,e){j.exports=e()})(window,function(){return function(h){var a={};function e(o){if(a[o])return a[o].exports;var d=a[o]={i:o,l:!1,exports:{}};return h[o].call(d.exports,d,d.exports,e),d.l=!0,d.exports}return e.m=h,e.c=a,e.d=function(o,d,f){e.o(o,d)||Object.defineProperty(o,d,{enumerable:!0,get:f})},e.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,d){if(d&1&&(o=e(o)),d&8||d&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),d&2&&typeof o!="string")for(var b in o)e.d(f,b,(function(i){return o[i]}).bind(null,b));return f},e.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(d,"a",d),d},e.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},e.p="",e(e.s=0)}({"./src/index.js":function(h,a,e){e.r(a),e("./src/sass/index.scss");var o=e("./src/js/init.js"),d=o.default.init;typeof window<"u"&&(window.printJS=d),a.default=d},"./src/js/browser.js":function(h,a,e){e.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(h,a,e){e.r(a),e.d(a,"addWrapper",function(){return b}),e.d(a,"capitalizePrint",function(){return i}),e.d(a,"collectStyles",function(){return l}),e.d(a,"addHeader",function(){return n}),e.d(a,"cleanUp",function(){return u}),e.d(a,"isRawHTML",function(){return p});var o=e("./src/js/modal.js"),d=e("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,s){var c="font-family:"+s.font+" !important; font-size: "+s.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,s){for(var c=document.defaultView||window,E="",y=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return s.test(t)}},"./src/js/html.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(n){return typeof n}:f=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f(l)}a.default={print:function(r,n){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),d.default.send(r,n)}};function b(l,r){for(var n=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),p=0;p"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(v){y.srcdoc+=''})),y.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(v){t.onError(v)}finally{t.showModal&&d.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,y);break;case"image":l.default.print(t,y);break;case"html":b.default.print(t,y);break;case"raw-html":i.default.print(t,y);break;case"json":r.default.print(t,y);break}}}},"./src/js/json.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(n){return{field:f(n)==="object"?n.field:n,displayName:f(n)==="object"?n.displayName:n,columnSize:f(n)==="object"&&n.columnSize?n.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),d.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,n='';i.repeatTableHeader&&(n+=""),n+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";n+="",i.repeatTableHeader&&(n+=""),n+="";for(var p=0;p";for(var t=0;t1)for(var E=0;E'+s+""}n+=""}return n+="
",n}},"./src/js/modal.js":function(h,a,e){e.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var n=document.createElement("span");n.setAttribute("class","printSpinner"),l.appendChild(n);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js"),d=e("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var n=new window.XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("error",function(){Object(d.cleanUp)(i),i.onError(n.statusText,n)}),n.addEventListener("load",function(){if([200,201].indexOf(n.status)===-1){Object(d.cleanUp)(i),i.onError(n.statusText,n);return}f(i,l,n.response)}),n.open("GET",i.printable,!0),n.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(h,a,e){e.r(a);var o=e("./src/js/browser.js"),d=e("./src/js/functions.js"),f={send:function(n,u){document.getElementsByTagName("body")[0].appendChild(u);var p=document.getElementById(n.frameId);p.onload=function(){if(n.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(p,n)},1e3):b(p,n);return}var t=p.contentWindow||p.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(n.printableElement),n.type!=="pdf"&&n.style){var s=document.createElement("style");s.innerHTML=n.style,t.head.appendChild(s)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(p,n)}):b(p,n)}}};function b(r,n){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){n.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(d.cleanUp)(n)}}function i(r){var n=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(n)}function l(r){return new Promise(function(n){var u=function p(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(p,500):n()};u()})}a.default=f},"./src/js/raw-html.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(h,a,e){},0:function(h,a,e){h.exports=e("./src/index.js")}}).default})})(D);const B=g("h2",null,"小票标题",-1),U=g("p",null,"商品名称: 商品1",-1),R=g("p",null,"价格: ¥10.00",-1),W=g("p",null,"数量: 1",-1),H=g("p",null,"-------------------",-1),N=g("p",null,"总计: ¥10.00",-1),K=g("p",null,"-------------------",-1),z=[B,U,R,W,H,N,K],F={__name:"test",setup(j){const M=O(null),h=()=>{uni.getEnv(e=>{e.h5?I.error("请使用APP打印小票"):a()})},a=()=>{let e="";e+=`******************************** `,e+=`泸优采-小票 `,e+=`单号: CG171565043141139102 `,e+=`测试商品1 * 1 1.00元 diff --git a/build/assets/user-AxtDYzrO.js b/build/assets/user-WwUaLh3a.js similarity index 91% rename from build/assets/user-AxtDYzrO.js rename to build/assets/user-WwUaLh3a.js index b0dcbac..a65cb9b 100644 --- a/build/assets/user-AxtDYzrO.js +++ b/build/assets/user-WwUaLh3a.js @@ -1 +1 @@ -import{K as r}from"./index-CCL_aieW.js";function t(s){return r.post("/login/account",s)}function u(s){return r.get("/user/UserShip/lists",{params:s})}function i(s){return r.post("/user/user/add",s)}function n(s){return r.post("/user/user/archives_sms",s)}function a(s){return r.get("/user/user/lists",{params:s})}function o(s){return r.get("/user/user/detail",{params:s})}function p(s){return r.get("/user/Address/detail",{params:s})}function c(s){return r.post("/user/Address/edit",s)}function d(s){return r.post("/store_order/StoreOrder/rechange_amount",s)}function A(s){return r.post("/user/user/user_ship",s)}function f(s){return r.post("/user/User/recharge_list",s)}export{i as a,n as b,u as c,d,o as e,A as f,f as g,p as h,c as i,t as l,a as u}; +import{K as r}from"./index-D_5muR1B.js";function t(s){return r.post("/login/account",s)}function u(s){return r.get("/user/UserShip/lists",{params:s})}function i(s){return r.post("/user/user/add",s)}function n(s){return r.post("/user/user/archives_sms",s)}function a(s){return r.get("/user/user/lists",{params:s})}function o(s){return r.get("/user/user/detail",{params:s})}function p(s){return r.get("/user/Address/detail",{params:s})}function c(s){return r.post("/user/Address/edit",s)}function d(s){return r.post("/store_order/StoreOrder/rechange_amount",s)}function A(s){return r.post("/user/user/user_ship",s)}function f(s){return r.post("/user/User/recharge_list",s)}export{i as a,n as b,u as c,d,o as e,A as f,f as g,p as h,c as i,t as l,a as u}; diff --git a/build/index.html b/build/index.html index e6a7670..7d3f459 100644 --- a/build/index.html +++ b/build/index.html @@ -56,7 +56,7 @@ } } - +