diff --git a/.env.development b/.env.development index 822a12e..9127492 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ VITE_NOW_TYPE = 'dist' -VITE_BASE_URL = 'http://192.168.1.22:8324' -# VITE_BASE_URL = 'https://crmeb-test.shop.lihaink.cn' \ No newline at end of file +# VITE_BASE_URL = 'http://192.168.1.22:8324' +VITE_BASE_URL = 'https://crmeb-test.shop.lihaink.cn' \ No newline at end of file diff --git a/dist/assets/index-DqzXjIW8.js b/dist/assets/index-7n2OC_H-.js similarity index 96% rename from dist/assets/index-DqzXjIW8.js rename to dist/assets/index-7n2OC_H-.js index 195b187..cb06ea2 100644 --- a/dist/assets/index-DqzXjIW8.js +++ b/dist/assets/index-7n2OC_H-.js @@ -1 +1 @@ -import{_ as U,u as I,r as u,o as R,b as n,c as S,h as b,e as w,f as e,w as t,k as v,g as L,s as B,v as C,z as E,E as d,G as K,H as N}from"./index-BSeKe2ro.js";const M=l=>(B("data-v-271611c3"),l=l(),C(),l),T={class:"body"},z={class:"login"},G=M(()=>w("div",{class:"title"},"里海收银系统 - 登录",-1)),H={__name:"index",setup(l){const p=I(),y=E(),h=u(null),_=u(null),s=u({account:"",password:"",key:"",captchaVerification:"",code:""}),i=()=>{if(!s.value.account)return d({message:"请填写账号",type:"error"});if(!s.value.password)return d({message:"请填写密码",type:"error"});K(s.value).then(a=>{console.log(a),a.data&&(p.setToken(a.data.token),N().then(({data:o})=>{if(!o.service)return d({message:"请联系管理员开通服务",type:"error"});p.setUserInfo(o),y.push("/")}))}).catch(a=>{})};return R(()=>{}),(a,o)=>{const k=n("User"),f=n("el-icon"),m=n("el-input"),c=n("el-form-item"),g=n("Lock"),V=n("el-button"),x=n("el-form");return S(),b("div",T,[w("div",z,[G,e(x,null,{default:t(()=>[e(c,null,{default:t(()=>[e(m,{ref_key:"accRef",ref:h,modelValue:s.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.account=r),placeholder:"请输入账号",autofocus:!0,onKeydown:o[1]||(o[1]=v(r=>_.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(m,{ref_key:"pwdRef",ref:_,modelValue:s.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:v(i,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(g)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:i},{default:t(()=>[L("登录")]),_:1})]),_:1})]),_:1})])])}}},j=U(H,[["__scopeId","data-v-271611c3"]]);export{j as default}; +import{_ as U,u as I,r as u,o as R,b as n,c as S,h as b,e as w,f as e,w as t,k as v,g as L,s as B,v as C,z as E,E as d,G as K,H as N}from"./index-CDJP75me.js";const M=l=>(B("data-v-271611c3"),l=l(),C(),l),T={class:"body"},z={class:"login"},G=M(()=>w("div",{class:"title"},"里海收银系统 - 登录",-1)),H={__name:"index",setup(l){const p=I(),y=E(),h=u(null),_=u(null),s=u({account:"",password:"",key:"",captchaVerification:"",code:""}),i=()=>{if(!s.value.account)return d({message:"请填写账号",type:"error"});if(!s.value.password)return d({message:"请填写密码",type:"error"});K(s.value).then(a=>{console.log(a),a.data&&(p.setToken(a.data.token),N().then(({data:o})=>{if(!o.service)return d({message:"请联系管理员开通服务",type:"error"});p.setUserInfo(o),y.push("/")}))}).catch(a=>{})};return R(()=>{}),(a,o)=>{const k=n("User"),f=n("el-icon"),m=n("el-input"),c=n("el-form-item"),g=n("Lock"),V=n("el-button"),x=n("el-form");return S(),b("div",T,[w("div",z,[G,e(x,null,{default:t(()=>[e(c,null,{default:t(()=>[e(m,{ref_key:"accRef",ref:h,modelValue:s.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.account=r),placeholder:"请输入账号",autofocus:!0,onKeydown:o[1]||(o[1]=v(r=>_.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(m,{ref_key:"pwdRef",ref:_,modelValue:s.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:v(i,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(g)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:i},{default:t(()=>[L("登录")]),_:1})]),_:1})]),_:1})])])}}},j=U(H,[["__scopeId","data-v-271611c3"]]);export{j as default}; diff --git a/dist/assets/index-DWtBHQXf.css b/dist/assets/index-9QHHZYoV.css similarity index 78% rename from dist/assets/index-DWtBHQXf.css rename to dist/assets/index-9QHHZYoV.css index 226727c..e1e8325 100644 --- a/dist/assets/index-DWtBHQXf.css +++ b/dist/assets/index-9QHHZYoV.css @@ -1 +1 @@ -@charset "UTF-8";.my-order[data-v-9936e733]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-9936e733]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem}.my-order .header-nav span[data-v-9936e733]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-9936e733]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .header-input[data-v-9936e733]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:1px solid #eee}.my-order .order-list[data-v-9936e733]{height:calc(100vh - 100px - 8.2rem);overflow-y:auto}.my-order .order-list .item[data-v-9936e733]{padding:1rem;border-bottom:1px solid #eee}.my-order .order-list .item .top[data-v-9936e733]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-list .item .top .sn[data-v-9936e733]{font-weight:700;font-size:.9rem}.my-order .order-list .item .top .cahier[data-v-9936e733]:before{content:"收银";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:1px solid #2ec479;color:#2ec479;border-radius:3px}.my-order .order-list .item .top .cahier2[data-v-9936e733]:before{content:"平台";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:1px solid #ff4a00;color:#ff4a00;border-radius:3px}.my-order .order-list .item .top .create-time[data-v-9936e733]{font-size:.8rem}.my-order .order-list .item .shop[data-v-9936e733]{display:flex;justify-content:space-between}.my-order .order-list .item .shop .right[data-v-9936e733]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-list .item .shop .right .money[data-v-9936e733]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-list .item .shop .right .count[data-v-9936e733]{font-size:.7rem;color:#999}.my-order .order-list .item .shop .left[data-v-9936e733]{height:4.5rem;display:flex;align-items:center}.my-order .order-list .item .shop .left .shop-img[data-v-9936e733]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-list .item .shop .left .shop-name[data-v-9936e733]{font-size:.9rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3}.my-order .order-list .item .bottom[data-v-9936e733]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-list .item-active[data-v-9936e733]{background-color:#efefef}.my-order .load-end[data-v-9936e733]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-2ec0b2dc]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .header-nav[data-v-2ec0b2dc]{display:flex;background:linear-gradient(to bottom,#f5f5f5 50%,#fff 50%)}.my-order .header-nav .nav-item[data-v-2ec0b2dc]{height:4rem;width:8rem;cursor:pointer;display:flex;justify-content:center;align-items:center;font-size:1.2rem;background-color:#f5f5f5;border-radius:1rem 1rem 0 0}.my-order .header-nav .nav-item-active[data-v-2ec0b2dc]{background-color:#fff;position:relative;transition:.3s}.my-order .header-nav .nav-item-radius1[data-v-2ec0b2dc]{border-radius:0 0 1rem}.my-order .header-nav .nav-item-radius2[data-v-2ec0b2dc]{border-radius:0 0 0 1rem}.my-order .detail[data-v-2ec0b2dc]{height:calc(100vh - 100px - 4rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-2ec0b2dc]{padding:1rem 1rem 6rem}.my-order .detail .table .table-title[data-v-2ec0b2dc]{font-weight:700;padding-top:1rem}.my-order .detail .table .table-info[data-v-2ec0b2dc]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:2rem;border-bottom:1px solid #eee}.my-order .detail .table .table-info[data-v-2ec0b2dc]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-2ec0b2dc]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-2ec0b2dc]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-2ec0b2dc]{height:6rem;box-sizing:border-box;padding:0 1.5rem;position:absolute;bottom:0;left:0;width:100%;box-shadow:0 -1px 10px #eee;display:flex;justify-content:space-between;align-items:center;background-color:#fff}.my-order .detail .footer .info[data-v-2ec0b2dc]{display:flex;align-items:flex-end}.my-order .detail .footer .info .ser[data-v-2ec0b2dc]{font-weight:700;margin-right:1rem}.my-order .detail .footer .info .price[data-v-2ec0b2dc]{margin-right:1rem}.my-order .detail .footer .info .price span[data-v-2ec0b2dc]{color:#ff4a00;font-size:1.2rem;font-weight:700}.my-order .detail .footer .handle .btn[data-v-2ec0b2dc]{border-radius:4rem;padding:1.2rem}.my-card{display:flex}.my-card .my-code{height:70%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.my-card .my-code .box{width:38rem;position:relative}.my-card .my-code .box .input{width:100%;height:3rem;box-sizing:border-box;border-radius:4rem;border:1px solid #1890ff;padding:0 1rem;font-size:1.1rem}.my-card .my-code .box .input:focus{outline:none;box-shadow:0 0 5px #1890ff;transition:all .2s ease-in-out}.my-card .my-code .box .btn{position:absolute;right:0;top:0;width:5rem;height:100%;border-radius:0 4rem 4rem 0;background:#1890ff;color:#fff;display:flex;justify-content:center;align-items:center}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:5px}::-webkit-scrollbar-thumb:hover{background-color:#999} +@charset "UTF-8";.my-order[data-v-9936e733]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-9936e733]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem}.my-order .header-nav span[data-v-9936e733]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-9936e733]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .header-input[data-v-9936e733]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:1px solid #eee}.my-order .order-list[data-v-9936e733]{height:calc(100vh - 100px - 8.2rem);overflow-y:auto}.my-order .order-list .item[data-v-9936e733]{padding:1rem;border-bottom:1px solid #eee}.my-order .order-list .item .top[data-v-9936e733]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-list .item .top .sn[data-v-9936e733]{font-weight:700;font-size:.9rem}.my-order .order-list .item .top .cahier[data-v-9936e733]:before{content:"收银";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:1px solid #2ec479;color:#2ec479;border-radius:3px}.my-order .order-list .item .top .cahier2[data-v-9936e733]:before{content:"平台";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:1px solid #ff4a00;color:#ff4a00;border-radius:3px}.my-order .order-list .item .top .create-time[data-v-9936e733]{font-size:.8rem}.my-order .order-list .item .shop[data-v-9936e733]{display:flex;justify-content:space-between}.my-order .order-list .item .shop .right[data-v-9936e733]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-list .item .shop .right .money[data-v-9936e733]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-list .item .shop .right .count[data-v-9936e733]{font-size:.7rem;color:#999}.my-order .order-list .item .shop .left[data-v-9936e733]{height:4.5rem;display:flex;align-items:center}.my-order .order-list .item .shop .left .shop-img[data-v-9936e733]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-list .item .shop .left .shop-name[data-v-9936e733]{font-size:.9rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3}.my-order .order-list .item .bottom[data-v-9936e733]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-list .item-active[data-v-9936e733]{background-color:#efefef}.my-order .load-end[data-v-9936e733]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-827fccdf]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .header-nav[data-v-827fccdf]{display:flex;background:linear-gradient(to bottom,#f5f5f5 50%,#fff 50%)}.my-order .header-nav .nav-item[data-v-827fccdf]{height:4rem;width:8rem;cursor:pointer;display:flex;justify-content:center;align-items:center;font-size:1.2rem;background-color:#f5f5f5;border-radius:1rem 1rem 0 0}.my-order .header-nav .nav-item-active[data-v-827fccdf]{background-color:#fff;position:relative;transition:.3s}.my-order .header-nav .nav-item-radius1[data-v-827fccdf]{border-radius:0 0 1rem}.my-order .header-nav .nav-item-radius2[data-v-827fccdf]{border-radius:0 0 0 1rem}.my-order .detail[data-v-827fccdf]{height:calc(100vh - 100px - 4rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-827fccdf]{padding:1rem 1rem 6rem}.my-order .detail .table .table-title[data-v-827fccdf]{font-weight:700;padding-top:1rem}.my-order .detail .table .table-info[data-v-827fccdf]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:2rem;border-bottom:1px solid #eee}.my-order .detail .table .table-info[data-v-827fccdf]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-827fccdf]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-827fccdf]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-827fccdf]{height:6rem;box-sizing:border-box;padding:0 1.5rem;position:absolute;bottom:0;left:0;width:100%;box-shadow:0 -1px 10px #eee;display:flex;justify-content:space-between;align-items:center;background-color:#fff}.my-order .detail .footer .info[data-v-827fccdf]{display:flex;align-items:flex-end}.my-order .detail .footer .info .ser[data-v-827fccdf]{font-weight:700;margin-right:1rem}.my-order .detail .footer .info .price[data-v-827fccdf]{margin-right:1rem}.my-order .detail .footer .info .price span[data-v-827fccdf]{color:#ff4a00;font-size:1.2rem;font-weight:700}.my-order .detail .footer .handle .btn[data-v-827fccdf]{border-radius:4rem;padding:1.2rem}.my-card{display:flex}.my-card .my-code{height:70%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.my-card .my-code .box{width:38rem;position:relative}.my-card .my-code .box .input{width:100%;height:3rem;box-sizing:border-box;border-radius:4rem;border:1px solid #1890ff;padding:0 1rem;font-size:1.1rem}.my-card .my-code .box .input:focus{outline:none;box-shadow:0 0 5px #1890ff;transition:all .2s ease-in-out}.my-card .my-code .box .btn{position:absolute;right:0;top:0;width:5rem;height:100%;border-radius:0 4rem 4rem 0;background:#1890ff;color:#fff;display:flex;justify-content:center;align-items:center}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:5px}::-webkit-scrollbar-thumb:hover{background-color:#999} diff --git a/dist/assets/index-DVBIrGf3.js b/dist/assets/index-BD_gE31l.js similarity index 95% rename from dist/assets/index-DVBIrGf3.js rename to dist/assets/index-BD_gE31l.js index 11fafaf..062a92f 100644 --- a/dist/assets/index-DVBIrGf3.js +++ b/dist/assets/index-BD_gE31l.js @@ -1 +1 @@ -import{s as L,u as S}from"./shop-Bj2-5fHC.js";import{_ as j,r as i,u as A,b as r,j as F,p as T,c as w,h as $,f as e,w as l,g as m,e as k,d as q,t as M,q as O,E as y}from"./index-BSeKe2ro.js";const P={"element-loading-text":"加载中",class:"my-shop"},G={class:"dialog-footer"},H={__name:"index",setup(J){const v=i([]),V=A(),u=i({page:1,limit:15}),d=i(!1),g=i(0),c=()=>{d.value=!0,L(V.userInfo.service.mer_id,u.value).then(t=>{v.value=t.data.list,g.value=t.data.count,d.value=!1})};c();const C=t=>{u.value.page=t,c()},x=t=>{u.value.page=t,c()},N=t=>{u.value.page=t,c()},p=i(!1),o=i({}),U=t=>{o.value=t,p.value=!0},z=()=>{let t={attr:o.value.attr||[],attrValue:o.value.attrValue,mer_cate_id:o.value.merCateId||[],spec_type:o.value.spec_type,is_stock:1};S(o.value.product_id,t).then(n=>{y({message:n.message,type:"success"}),p.value=!1,c()}).catch(n=>{y({message:n,type:"error"})})};return(t,n)=>{const s=r("el-table-column"),f=r("el-image"),_=r("el-button"),h=r("el-table"),B=r("el-pagination"),D=r("el-input-number"),I=r("el-dialog"),E=F("loading");return T((w(),$("div",P,[e(h,{data:v.value,style:{width:"100%"}},{default:l(()=>[e(s,{prop:"product_id",label:"ID",width:"100"}),e(s,{prop:"image",label:"图片",width:"120"},{default:l(a=>[e(f,{loading:"lazy",style:{width:"60px",height:"60px"},src:a.row.image},null,8,["src"])]),_:1}),e(s,{prop:"store_name",label:"商品名称",width:"500"}),e(s,{prop:"price",label:"售价"}),e(s,{prop:"stock",label:"库存"}),e(s,{label:"操作",width:"120"},{default:l(a=>[e(_,{type:"primary",link:"",onClick:b=>U(a.row)},{default:l(()=>[m("编辑")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(B,{"page-size":u.value.limit,layout:"prev, pager, next",total:g.value,onPrevClick:C,onNextClick:x,onCurrentChange:N},null,8,["page-size","total"]),e(I,{modelValue:p.value,"onUpdate:modelValue":n[1]||(n[1]=a=>p.value=a),title:"编辑商品库存",width:"800"},{footer:l(()=>[k("div",G,[e(_,{onClick:n[0]||(n[0]=a=>p.value=!1)},{default:l(()=>[m("取消")]),_:1}),e(_,{type:"primary",onClick:z},{default:l(()=>[m(" 确定 ")]),_:1})])]),default:l(()=>[o.value.attrValue?(w(),q(h,{key:0,data:o.value.attrValue,stripe:"",style:{width:"100%"}},{default:l(()=>[e(s,{prop:"image",label:"图片",width:"180"},{default:l(a=>[e(f,{loading:"lazy",style:{width:"5rem",height:"5rem"},src:a.row.image||o.value.image},null,8,["src"])]),_:1}),e(s,{prop:"sku",label:"名称",width:"180"},{default:l(a=>[k("span",null,M(a.row.sku||o.value.store_name),1)]),_:1}),e(s,{prop:"price",label:"价格"}),e(s,{prop:"stock",label:"库存"},{default:l(a=>[e(D,{modelValue:a.row.stock,"onUpdate:modelValue":b=>a.row.stock=b,"step-strictly":"",min:0,step:1},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])):O("",!0)]),_:1},8,["modelValue"])])),[[E,d.value]])}}},R=j(H,[["__scopeId","data-v-33636025"]]);export{R as default}; +import{s as L,u as S}from"./shop-u-jllX4w.js";import{_ as j,r as i,u as A,b as r,j as F,p as T,c as w,h as $,f as e,w as l,g as m,e as k,d as q,t as M,q as O,E as y}from"./index-CDJP75me.js";const P={"element-loading-text":"加载中",class:"my-shop"},G={class:"dialog-footer"},H={__name:"index",setup(J){const v=i([]),V=A(),u=i({page:1,limit:15}),d=i(!1),g=i(0),c=()=>{d.value=!0,L(V.userInfo.service.mer_id,u.value).then(t=>{v.value=t.data.list,g.value=t.data.count,d.value=!1})};c();const C=t=>{u.value.page=t,c()},x=t=>{u.value.page=t,c()},N=t=>{u.value.page=t,c()},p=i(!1),o=i({}),U=t=>{o.value=t,p.value=!0},z=()=>{let t={attr:o.value.attr||[],attrValue:o.value.attrValue,mer_cate_id:o.value.merCateId||[],spec_type:o.value.spec_type,is_stock:1};S(o.value.product_id,t).then(n=>{y({message:n.message,type:"success"}),p.value=!1,c()}).catch(n=>{y({message:n,type:"error"})})};return(t,n)=>{const s=r("el-table-column"),f=r("el-image"),_=r("el-button"),h=r("el-table"),B=r("el-pagination"),D=r("el-input-number"),I=r("el-dialog"),E=F("loading");return T((w(),$("div",P,[e(h,{data:v.value,style:{width:"100%"}},{default:l(()=>[e(s,{prop:"product_id",label:"ID",width:"100"}),e(s,{prop:"image",label:"图片",width:"120"},{default:l(a=>[e(f,{loading:"lazy",style:{width:"60px",height:"60px"},src:a.row.image},null,8,["src"])]),_:1}),e(s,{prop:"store_name",label:"商品名称",width:"500"}),e(s,{prop:"price",label:"售价"}),e(s,{prop:"stock",label:"库存"}),e(s,{label:"操作",width:"120"},{default:l(a=>[e(_,{type:"primary",link:"",onClick:b=>U(a.row)},{default:l(()=>[m("编辑")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(B,{"page-size":u.value.limit,layout:"prev, pager, next",total:g.value,onPrevClick:C,onNextClick:x,onCurrentChange:N},null,8,["page-size","total"]),e(I,{modelValue:p.value,"onUpdate:modelValue":n[1]||(n[1]=a=>p.value=a),title:"编辑商品库存",width:"800"},{footer:l(()=>[k("div",G,[e(_,{onClick:n[0]||(n[0]=a=>p.value=!1)},{default:l(()=>[m("取消")]),_:1}),e(_,{type:"primary",onClick:z},{default:l(()=>[m(" 确定 ")]),_:1})])]),default:l(()=>[o.value.attrValue?(w(),q(h,{key:0,data:o.value.attrValue,stripe:"",style:{width:"100%"}},{default:l(()=>[e(s,{prop:"image",label:"图片",width:"180"},{default:l(a=>[e(f,{loading:"lazy",style:{width:"5rem",height:"5rem"},src:a.row.image||o.value.image},null,8,["src"])]),_:1}),e(s,{prop:"sku",label:"名称",width:"180"},{default:l(a=>[k("span",null,M(a.row.sku||o.value.store_name),1)]),_:1}),e(s,{prop:"price",label:"价格"}),e(s,{prop:"stock",label:"库存"},{default:l(a=>[e(D,{modelValue:a.row.stock,"onUpdate:modelValue":b=>a.row.stock=b,"step-strictly":"",min:0,step:1},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])):O("",!0)]),_:1},8,["modelValue"])])),[[E,d.value]])}}},R=j(H,[["__scopeId","data-v-33636025"]]);export{R as default}; diff --git a/dist/assets/index-g1rDH2QM.js b/dist/assets/index-BPmKd3-6.js similarity index 84% rename from dist/assets/index-g1rDH2QM.js rename to dist/assets/index-BPmKd3-6.js index e93f342..90f345e 100644 --- a/dist/assets/index-g1rDH2QM.js +++ b/dist/assets/index-BPmKd3-6.js @@ -1 +1 @@ -import{b as t,c,h as a,e,f as o,w as d,g as l}from"./index-BSeKe2ro.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"}},h=e("div",{style:{"font-size":"5rem","font-weight":"bold"}},"404",-1),p=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,[h,p,o(i,{type:"primary",onClick:s},{default:d(()=>[l("返回首页")]),_:1})])])])}}};export{v as default}; +import{b as t,c,h as a,e,f as o,w as d,g as l}from"./index-CDJP75me.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"}},h=e("div",{style:{"font-size":"5rem","font-weight":"bold"}},"404",-1),p=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,[h,p,o(i,{type:"primary",onClick:s},{default:d(()=>[l("返回首页")]),_:1})])])])}}};export{v as default}; diff --git a/dist/assets/index-L1TMsAdx.js b/dist/assets/index-C8u7JxBI.js similarity index 97% rename from dist/assets/index-L1TMsAdx.js rename to dist/assets/index-C8u7JxBI.js index 944172e..f1add03 100644 --- a/dist/assets/index-L1TMsAdx.js +++ b/dist/assets/index-C8u7JxBI.js @@ -1 +1 @@ -import{c as ne,a as ce,b as Q,p as ie,d as re,o as ue}from"./pay-BcpR4WJS.js";import{_ as B,r as n,o as q,m as b,a as M,b as f,c as $,d as T,w as x,e,f as l,g as h,t as F,n as W,E as de,u as X,h as L,F as G,i as J,j as Y,k as _e,l as Z,p as ee,q as te,s as oe,v as se,x as pe,y as ve}from"./index-BSeKe2ro.js";import{p as fe}from"./padding-XLGqX7ns.js";import{g as me,s as he}from"./shop-Bj2-5fHC.js";const ge={class:"price"},ye={class:"flex"},ke={style:{margin:"10px","padding-bottom":"40px"}},be={style:{color:"#f5222d","font-weight":"bold","margin-left":"1rem"}},$e={class:"dialog-footer"},xe={__name:"price",emits:["submit"],setup(P,{expose:A,emit:g}){const a=n(!1),c=n(null),o=n(0),i=(u,v=0)=>{r.value.nowPrice="",r.value.percentage="",a.value=u,o.value=v,W(()=>{setTimeout(()=>{var V;(V=c.value)==null||V.focus()},150)})},r=n({nowPrice:"",percentage:""}),m=u=>{r.value.percentage=(u/o.value*100).toFixed(2)},w=u=>{r.value.nowPrice=(o.value*u/100).toFixed(2)},R=g,I=()=>{if(r.value.nowPrice<=0)return r.value.nowPrice="",r.value.percentage="",de.error("金额不能小于0");R("submit",r.value.nowPrice),a.value=!1};A({show:i,dialogVisible:a});const S=()=>{if(a.value)I();else return};return q(()=>{b.on("enter",S)}),M(()=>{b.off("enter",S)}),(u,v)=>{const V=f("el-input"),D=f("el-button"),_=f("el-dialog");return $(),T(_,{modelValue:a.value,"onUpdate:modelValue":v[2]||(v[2]=p=>a.value=p),title:"订单改价",width:"650"},{footer:x(()=>[e("div",$e,[l(D,{class:"ok-btn",type:"primary",onClick:I},{default:x(()=>[h(" 确定 (Enter) ")]),_:1})])]),default:x(()=>[e("div",ge,[e("div",ye,[l(V,{ref_key:"priceRef",ref:c,style:{flex:"3",margin:"10px",height:"2.5rem"},modelValue:r.value.nowPrice,"onUpdate:modelValue":v[0]||(v[0]=p=>r.value.nowPrice=p),type:"number",placeholder:"请输入改价后的价格",onInput:m},{suffix:x(()=>[h("元")]),_:1},8,["modelValue"]),l(V,{style:{flex:"2",margin:"10px",height:"2.5rem"},modelValue:r.value.percentage,"onUpdate:modelValue":v[1]||(v[1]=p=>r.value.percentage=p),type:"number",placeholder:"请输入比例",onInput:w},{suffix:x(()=>[h("%")]),_:1},8,["modelValue"])]),e("div",ke,[h("改价后金额: "),e("span",be,"¥"+F(r.value.nowPrice||o.value||" - - "),1)])])]),_:1},8,["modelValue"])}}},we=B(xe,[["__scopeId","data-v-5a0a6db4"]]),Ie={class:"my-order"},Ve={class:"header-nav"},Ce={class:"nav-item"},Pe={class:"order-list"},Ae={class:"order-item-info"},Se={class:"order-item-title"},Fe={class:"title"},Le=["onClick"],Re={class:"order-item-sku"},Ee=["onClick"],De={class:"order-item-price"},Ue={class:"order-footer"},ze={class:"order-total"},Oe={class:"price"},qe={class:"total-item"},Me={style:{"font-size":"1.4rem"}},Ne={class:"total-item"},Be={class:"update-price"},je={class:"order-btn"},Te={__name:"order",emits:["goPay","editAttr"],setup(P,{expose:A,emit:g}){const a=n([]),c=n(0),o=n(0),i=n(0),r=X(),m=()=>{let t=[];a.value.map(d=>{t.push(d.cart_id)}),t.length!=0&&R(t)},w=t=>{a.value=a.value.filter(d=>d.cart_id!=t),R([t])},R=t=>{ne({cart_id:t}).then(d=>{console.log(d),I()})},I=()=>{c.value=0,o.value=0,i.value=0,ce({staff_id:r.userInfo.service.service_id}).then(t=>{var d,k;((k=(d=t.data)==null?void 0:d.list)==null?void 0:k.length)>0?(a.value=t.data.list[0].list,a.value.forEach(C=>{c.value+=C.productAttr.price*C.cart_num}),o.value=c.value):a.value=[]})};I();const S=g,u=()=>{S("goPay")},v=(t,d)=>{Q(t.cart_id,{cart_num:t.cart_num}).then(k=>{c.value=0,a.value.forEach(C=>{c.value+=C.productAttr.price*C.cart_num}),o.value=c.value})},V=t=>{S("editPupop",t)},D=(t,d)=>{Q(t,d).then(k=>{I()})},_=t=>{i.value=o.value-t,c.value=+t};n(0);const p=n(null),y=()=>{p.value.show(!0,o.value)};A({getList:I,list:a,editItem:D,discounts:i,allPrice:c});const U=()=>{p.value.dialogVisible?p.value.dialogVisible=!1:y()},s=()=>{a.value.length>0&&m()};return q(()=>{b.on("insert",U),b.on("delete",s)}),M(()=>{b.off("insert",U),b.off("delete",s)}),(t,d)=>{const k=f("Delete"),C=f("el-icon"),z=f("el-empty"),O=f("el-image"),j=f("ArrowDown"),K=f("el-input-number"),H=f("el-button");return $(),L("div",Ie,[e("div",Ve,[e("div",Ce,[h(" 已选购 "),e("span",null,F(a.value.length),1),h(" 件 ")]),e("div",{class:"nav-item-clear",onClick:m},[l(C,null,{default:x(()=>[l(k)]),_:1}),h("清空 (Delete) ")])]),e("div",Pe,[a.value.length==0?($(),T(z,{key:0,description:"请点击右侧添加商品"})):($(!0),L(G,{key:1},J(a.value,(E,le)=>($(),L("div",{class:"order-item",key:le},[l(O,{loading:"lazy",class:"order-item-img",src:E.productAttr&&E.productAttr.image||E.product.image},null,8,["src"]),e("div",Ae,[e("div",Se,[e("div",Fe,F(E.spu.store_name),1),e("div",{class:"delete",onClick:N=>w(E.cart_id)},"删除",8,Le)]),e("div",Re,[e("span",{style:{display:"flex","align-items":"center"},onClick:N=>V(E)},[h("商品规格: "+F(E.productAttr.sku||"默认规格"),1),l(C,{size:"16",style:{"margin-left":"0.2rem"}},{default:x(()=>[l(j)]),_:1})],8,Ee)]),e("div",De,[e("div",null,[h(" ¥"),e("span",null,F(E.productAttr.price),1)]),e("div",null,[l(K,{modelValue:E.cart_num,"onUpdate:modelValue":N=>E.cart_num=N,"step-strictly":"",min:1,step:1,onChange:N=>v(E)},null,8,["modelValue","onUpdate:modelValue","onChange"])])])])]))),128))]),e("div",Ue,[e("div",ze,[e("div",Oe,[e("div",qe,[h(" 实付: "),e("span",null,[h("¥"),e("span",Me,F(c.value.toFixed(2)),1)])]),e("div",Ne,[h(" 优惠: "),e("span",null,[h("¥"),e("span",null,F(i.value.toFixed(2)),1)])])]),e("div",Be,[l(H,{class:"btn",type:"primary",onClick:y},{default:x(()=>[h("改价 (Insert)")]),_:1})])]),e("div",je,[l(H,{class:"btn",type:"primary",onClick:u,disabled:a.value.length==0},{default:x(()=>[h("立即结账 (F9)")]),_:1},8,["disabled"])])]),l(we,{ref_key:"priceRef",ref:p,onSubmit:_},null,512)])}}},Ge=B(Te,[["__scopeId","data-v-870ceba6"]]),ae=P=>(oe("data-v-d440e37d"),P=P(),se(),P),Je={class:"my-order"},Ke=ae(()=>e("div",{class:"nav-item-label"},"搜索 (Shift)",-1)),He={class:"nav-item-input"},Qe={class:"shop-list","infinite-scroll-distance":"100","infinite-scroll-delay":"500",style:{overflow:"auto"}},We=["onClick"],Xe={class:"shop-name"},Ye={class:"shop-price"},Ze={key:0,class:"no-stock"},et=ae(()=>e("div",null,[e("span",null,"暂无"),e("span",null,"库存")],-1)),tt=[et],ot={__name:"shop",props:{storeList:{type:Array,default:()=>[]}},emits:["getStoreList","changeItem","loadMore"],setup(P,{expose:A,emit:g}){const a=n(null),c=g,o=n(""),i=()=>{c("loadMore",{bar_code:o.value})},r=u=>{c("changeItem",u)},m=()=>{c("getStoreList",{bar_code:o.value})};A({bar_code:o});const w=n(!1),R=()=>{w.value=!0},I=()=>{w.value=!1},S=()=>{var u;(u=a.value)==null||u.focus()};return q(()=>{W(()=>{var u;(u=a.value)==null||u.focus(),R()}),b.on("shift",S)}),M(()=>{b.off("shift",S)}),(u,v)=>{const V=f("el-input"),D=f("Search"),_=f("el-icon"),p=f("el-button"),y=f("el-image"),U=f("el-space"),s=Y("infinite-scroll");return $(),L("div",Je,[e("div",{class:Z(["header-nav",{"input-focus":w.value}])},[Ke,e("div",He,[l(V,{modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=t=>o.value=t),placeholder:" 搜索商品名称/ID/唯一码或点击聚焦扫码, 按回车(Enter)搜索",clearable:"",ref_key:"codeRef",ref:a,onFocus:R,onBlur:I,onKeyup:_e(m,["enter"]),onClear:m},null,8,["modelValue"])]),e("div",{class:"nav-item-btn",onClick:m},[l(p,{class:"btn",type:"primary"},{default:x(()=>[l(_,null,{default:x(()=>[l(D)]),_:1})]),_:1})])],2),ee(($(),L("div",Qe,[l(U,{wrap:"",size:20},{default:x(()=>[($(!0),L(G,null,J(P.storeList,(t,d)=>($(),L("div",{class:"shop-item",key:d,onClick:k=>r(t)},[l(y,{loading:"lazy",src:t.image},null,8,["src"]),e("div",Xe,F(t.store_name),1),e("div",Ye,[h(" ¥"),e("span",null,F(t.price),1)]),t.stock==0?($(),L("div",Ze,tt)):te("",!0)],8,We))),128))]),_:1})])),[[s,i]])])}}},st=B(ot,[["__scopeId","data-v-d440e37d"]]),at=P=>(oe("data-v-52f45b9b"),P=P(),se(),P),lt={class:"shop"},nt={key:0,class:"shop-info"},ct={class:"shop-info-left"},it={class:"shop-info-right"},rt={class:"shop-info-right-top"},ut={class:"shop-info-right-center"},dt={class:"shop-info-right-price"},_t={class:"shop-sku"},pt=at(()=>e("div",{class:"title"},"产品",-1)),vt={class:"sku"},ft=["onClick"],mt={class:"dialog-footer"},ht={__name:"pupop",emits:["changeItem"],setup(P,{expose:A,emit:g}){const a=n(!1),c=_=>{a.value=_},o=n({}),i=n(null),r=n(!1),m=n("add"),w=n({}),R=(_,p="add")=>{m.value=p,p=="add"?(o.value=_,i.value=_.attr[0]):(r.value=!0,w.value=_,me(_.product_id).then(y=>{y.data.attrValue=JSON.parse(JSON.stringify(y.data.attr)),y.data.attr=Object.keys(y.data.sku),o.value=y.data,i.value=y.data.attr[0],r.value=!1}).catch(y=>{r.value=!1}))},I=g,S=()=>{m.value=="add"?I("changeItem",o.value,i.value):I("editItem",w.value.cart_id,{cart_num:w.value.cart_num,product_attr_unique:o.value.sku[i.value].unique}),a.value=!1},u=_=>{i.value=_};A({show:c,setForm:R});const v=()=>{if(!a.value)return;let _=o.value.attr.indexOf(i.value);if(_>0)return u(o.value.attr[_-1])},V=()=>{if(!a.value)return;let _=o.value.attr.indexOf(i.value);if(_{a.value&&S()};return q(()=>{b.on("left",v),b.on("right",V),b.on("enter",D)}),M(()=>{b.off("left",v),b.off("right",V),b.off("enter",D)}),(_,p)=>{const y=f("el-image"),U=f("el-space"),s=f("el-button"),t=f("el-dialog"),d=Y("loading");return $(),T(t,{modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=k=>a.value=k),title:"商品规格",width:"650"},pe({default:x(()=>{var k,C,z;return[ee(($(),L("div",lt,[o.value.sku?($(),L("div",nt,[e("div",ct,[l(y,{loading:"lazy",src:((k=o.value.sku[i.value])==null?void 0:k.image)||o.value.image},null,8,["src"])]),e("div",it,[e("div",rt,F(o.value.store_name),1),e("div",ut,"库存"+F(((C=o.value.sku[i.value])==null?void 0:C.stock)||0),1),e("div",dt,[h("¥"),e("span",null,F(((z=o.value.sku[i.value])==null?void 0:z.price)||o.value.price),1)])])])):te("",!0),e("div",_t,[pt,e("div",vt,[l(U,{wrap:"",size:20},{default:x(()=>[($(!0),L(G,null,J(o.value.attr,(O,j)=>($(),L("div",{class:Z(["sku-item",{"sku-item_active":i.value==O}]),onClick:K=>u(O),key:j},F(O||"默认规格"),11,ft))),128))]),_:1})])])])),[[d,r.value]])]}),_:2},[m.value!="add"&&o.value.attr&&o.value.attr.length==1?void 0:{name:"footer",fn:x(()=>[e("div",mt,[l(s,{class:"ok-btn",type:"primary",onClick:S},{default:x(()=>[h(" 确定 (Enter) ")]),_:1})])]),key:"0"}]),1032,["modelValue"])}}},gt=B(ht,[["__scopeId","data-v-52f45b9b"]]),yt={class:"my-card"},wt={__name:"index",setup(P){const A=n(null),g=n(null),a=n(null),c=n(null),o=n([]),i=X(),r=ve(),m=n({page:0,limit:30}),w=s=>{m.value={staff_id:i.userInfo.service.service_id,...m.value,...s},s.bar_code&&(o.value=[],m.value.page=1),he(i.userInfo.service.mer_id,m.value).then(t=>{var k,C;((C=(k=t.data)==null?void 0:k.list)==null?void 0:C.length)(z.attr=Object.keys(z.sku),z));o.value=o.value.concat(d),s.bar_code&&o.value.length==1&&S(s.bar_code)&&(a.value.bar_code="",v(o.value[0],o.value[0].attr[0]))})},R=n(!1),I=s=>{R.value||(m.value.page++,w(s))};function S(s){return/^\d+$/.test(s)}const u=(s,t="")=>{let d={is_new:0,product_id:s.product_id,cart_num:1,product_attr_unique:s.sku[t]!==void 0?s.sku[t].unique:"",staff_id:i.userInfo.service.service_id,product_type:0};re(d).then(k=>{g.value.getList()})},v=(s,t)=>{if(!s.attr||s.attr.length==0||s.attr.length==1)return u(s,s.attr[0]?s.attr[0]:"");if(t)return u(s,t);A.value.setForm(s,"add"),A.value.show(!0)},V=(s,t)=>{g.value.editItem(s,t)},D=s=>{A.value.setForm(s,"edit"),A.value.show(!0)},_=()=>{let s=g.value.list.map(d=>d.cart_id),t={takes:[],use_coupon:{},use_integral:!1,cart_id:s};g.value.discounts>0&&(t.deduction_price=g.value.discounts.toFixed(2),t.pay_type="micropay"),ue(t).then(d=>{c.value.setForm({data:d.data,cart_id:s})})},p=()=>{_(),c.value.drawer=!0},y=()=>{g.value.getList()},U=()=>{console.log("F9"),r.name=="home"&&(!c.value.drawer&&g.value.list.length>0?p():c.value.beforeClose())};return q(()=>{b.on("F9",U)}),M(()=>{b.off("F9",U)}),(s,t)=>($(),L("div",yt,[l(Ge,{ref_key:"orderRef",ref:g,onGoPay:p,onEditPupop:D},null,512),l(fe),l(st,{ref_key:"shopRef",ref:a,style:{flex:"1"},storeList:o.value,onGetStoreList:w,onChangeItem:v,onLoadMore:I},null,8,["storeList"]),l(gt,{ref_key:"pupopRef",ref:A,onChangeItem:v,onEditItem:V},null,512),l(ie,{ref_key:"payRef",ref:c,onPaySuccess:y},null,512)]))}};export{wt as default}; +import{c as ne,a as ce,b as Q,p as ie,d as re,o as ue}from"./pay-BajYk3t1.js";import{_ as B,r as n,o as q,m as b,a as M,b as f,c as $,d as T,w as x,e,f as l,g as h,t as F,n as W,E as de,u as X,h as L,F as G,i as J,j as Y,k as _e,l as Z,p as ee,q as te,s as oe,v as se,x as pe,y as ve}from"./index-CDJP75me.js";import{p as fe}from"./padding-BXN6xH5X.js";import{g as me,s as he}from"./shop-u-jllX4w.js";const ge={class:"price"},ye={class:"flex"},ke={style:{margin:"10px","padding-bottom":"40px"}},be={style:{color:"#f5222d","font-weight":"bold","margin-left":"1rem"}},$e={class:"dialog-footer"},xe={__name:"price",emits:["submit"],setup(P,{expose:A,emit:g}){const a=n(!1),c=n(null),o=n(0),i=(u,v=0)=>{r.value.nowPrice="",r.value.percentage="",a.value=u,o.value=v,W(()=>{setTimeout(()=>{var V;(V=c.value)==null||V.focus()},150)})},r=n({nowPrice:"",percentage:""}),m=u=>{r.value.percentage=(u/o.value*100).toFixed(2)},w=u=>{r.value.nowPrice=(o.value*u/100).toFixed(2)},R=g,I=()=>{if(r.value.nowPrice<=0)return r.value.nowPrice="",r.value.percentage="",de.error("金额不能小于0");R("submit",r.value.nowPrice),a.value=!1};A({show:i,dialogVisible:a});const S=()=>{if(a.value)I();else return};return q(()=>{b.on("enter",S)}),M(()=>{b.off("enter",S)}),(u,v)=>{const V=f("el-input"),D=f("el-button"),_=f("el-dialog");return $(),T(_,{modelValue:a.value,"onUpdate:modelValue":v[2]||(v[2]=p=>a.value=p),title:"订单改价",width:"650"},{footer:x(()=>[e("div",$e,[l(D,{class:"ok-btn",type:"primary",onClick:I},{default:x(()=>[h(" 确定 (Enter) ")]),_:1})])]),default:x(()=>[e("div",ge,[e("div",ye,[l(V,{ref_key:"priceRef",ref:c,style:{flex:"3",margin:"10px",height:"2.5rem"},modelValue:r.value.nowPrice,"onUpdate:modelValue":v[0]||(v[0]=p=>r.value.nowPrice=p),type:"number",placeholder:"请输入改价后的价格",onInput:m},{suffix:x(()=>[h("元")]),_:1},8,["modelValue"]),l(V,{style:{flex:"2",margin:"10px",height:"2.5rem"},modelValue:r.value.percentage,"onUpdate:modelValue":v[1]||(v[1]=p=>r.value.percentage=p),type:"number",placeholder:"请输入比例",onInput:w},{suffix:x(()=>[h("%")]),_:1},8,["modelValue"])]),e("div",ke,[h("改价后金额: "),e("span",be,"¥"+F(r.value.nowPrice||o.value||" - - "),1)])])]),_:1},8,["modelValue"])}}},we=B(xe,[["__scopeId","data-v-5a0a6db4"]]),Ie={class:"my-order"},Ve={class:"header-nav"},Ce={class:"nav-item"},Pe={class:"order-list"},Ae={class:"order-item-info"},Se={class:"order-item-title"},Fe={class:"title"},Le=["onClick"],Re={class:"order-item-sku"},Ee=["onClick"],De={class:"order-item-price"},Ue={class:"order-footer"},ze={class:"order-total"},Oe={class:"price"},qe={class:"total-item"},Me={style:{"font-size":"1.4rem"}},Ne={class:"total-item"},Be={class:"update-price"},je={class:"order-btn"},Te={__name:"order",emits:["goPay","editAttr"],setup(P,{expose:A,emit:g}){const a=n([]),c=n(0),o=n(0),i=n(0),r=X(),m=()=>{let t=[];a.value.map(d=>{t.push(d.cart_id)}),t.length!=0&&R(t)},w=t=>{a.value=a.value.filter(d=>d.cart_id!=t),R([t])},R=t=>{ne({cart_id:t}).then(d=>{console.log(d),I()})},I=()=>{c.value=0,o.value=0,i.value=0,ce({staff_id:r.userInfo.service.service_id}).then(t=>{var d,k;((k=(d=t.data)==null?void 0:d.list)==null?void 0:k.length)>0?(a.value=t.data.list[0].list,a.value.forEach(C=>{c.value+=C.productAttr.price*C.cart_num}),o.value=c.value):a.value=[]})};I();const S=g,u=()=>{S("goPay")},v=(t,d)=>{Q(t.cart_id,{cart_num:t.cart_num}).then(k=>{c.value=0,a.value.forEach(C=>{c.value+=C.productAttr.price*C.cart_num}),o.value=c.value})},V=t=>{S("editPupop",t)},D=(t,d)=>{Q(t,d).then(k=>{I()})},_=t=>{i.value=o.value-t,c.value=+t};n(0);const p=n(null),y=()=>{p.value.show(!0,o.value)};A({getList:I,list:a,editItem:D,discounts:i,allPrice:c});const U=()=>{p.value.dialogVisible?p.value.dialogVisible=!1:y()},s=()=>{a.value.length>0&&m()};return q(()=>{b.on("insert",U),b.on("delete",s)}),M(()=>{b.off("insert",U),b.off("delete",s)}),(t,d)=>{const k=f("Delete"),C=f("el-icon"),z=f("el-empty"),O=f("el-image"),j=f("ArrowDown"),K=f("el-input-number"),H=f("el-button");return $(),L("div",Ie,[e("div",Ve,[e("div",Ce,[h(" 已选购 "),e("span",null,F(a.value.length),1),h(" 件 ")]),e("div",{class:"nav-item-clear",onClick:m},[l(C,null,{default:x(()=>[l(k)]),_:1}),h("清空 (Delete) ")])]),e("div",Pe,[a.value.length==0?($(),T(z,{key:0,description:"请点击右侧添加商品"})):($(!0),L(G,{key:1},J(a.value,(E,le)=>($(),L("div",{class:"order-item",key:le},[l(O,{loading:"lazy",class:"order-item-img",src:E.productAttr&&E.productAttr.image||E.product.image},null,8,["src"]),e("div",Ae,[e("div",Se,[e("div",Fe,F(E.spu.store_name),1),e("div",{class:"delete",onClick:N=>w(E.cart_id)},"删除",8,Le)]),e("div",Re,[e("span",{style:{display:"flex","align-items":"center"},onClick:N=>V(E)},[h("商品规格: "+F(E.productAttr.sku||"默认规格"),1),l(C,{size:"16",style:{"margin-left":"0.2rem"}},{default:x(()=>[l(j)]),_:1})],8,Ee)]),e("div",De,[e("div",null,[h(" ¥"),e("span",null,F(E.productAttr.price),1)]),e("div",null,[l(K,{modelValue:E.cart_num,"onUpdate:modelValue":N=>E.cart_num=N,"step-strictly":"",min:1,step:1,onChange:N=>v(E)},null,8,["modelValue","onUpdate:modelValue","onChange"])])])])]))),128))]),e("div",Ue,[e("div",ze,[e("div",Oe,[e("div",qe,[h(" 实付: "),e("span",null,[h("¥"),e("span",Me,F(c.value.toFixed(2)),1)])]),e("div",Ne,[h(" 优惠: "),e("span",null,[h("¥"),e("span",null,F(i.value.toFixed(2)),1)])])]),e("div",Be,[l(H,{class:"btn",type:"primary",onClick:y},{default:x(()=>[h("改价 (Insert)")]),_:1})])]),e("div",je,[l(H,{class:"btn",type:"primary",onClick:u,disabled:a.value.length==0},{default:x(()=>[h("立即结账 (F9)")]),_:1},8,["disabled"])])]),l(we,{ref_key:"priceRef",ref:p,onSubmit:_},null,512)])}}},Ge=B(Te,[["__scopeId","data-v-870ceba6"]]),ae=P=>(oe("data-v-d440e37d"),P=P(),se(),P),Je={class:"my-order"},Ke=ae(()=>e("div",{class:"nav-item-label"},"搜索 (Shift)",-1)),He={class:"nav-item-input"},Qe={class:"shop-list","infinite-scroll-distance":"100","infinite-scroll-delay":"500",style:{overflow:"auto"}},We=["onClick"],Xe={class:"shop-name"},Ye={class:"shop-price"},Ze={key:0,class:"no-stock"},et=ae(()=>e("div",null,[e("span",null,"暂无"),e("span",null,"库存")],-1)),tt=[et],ot={__name:"shop",props:{storeList:{type:Array,default:()=>[]}},emits:["getStoreList","changeItem","loadMore"],setup(P,{expose:A,emit:g}){const a=n(null),c=g,o=n(""),i=()=>{c("loadMore",{bar_code:o.value})},r=u=>{c("changeItem",u)},m=()=>{c("getStoreList",{bar_code:o.value})};A({bar_code:o});const w=n(!1),R=()=>{w.value=!0},I=()=>{w.value=!1},S=()=>{var u;(u=a.value)==null||u.focus()};return q(()=>{W(()=>{var u;(u=a.value)==null||u.focus(),R()}),b.on("shift",S)}),M(()=>{b.off("shift",S)}),(u,v)=>{const V=f("el-input"),D=f("Search"),_=f("el-icon"),p=f("el-button"),y=f("el-image"),U=f("el-space"),s=Y("infinite-scroll");return $(),L("div",Je,[e("div",{class:Z(["header-nav",{"input-focus":w.value}])},[Ke,e("div",He,[l(V,{modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=t=>o.value=t),placeholder:" 搜索商品名称/ID/唯一码或点击聚焦扫码, 按回车(Enter)搜索",clearable:"",ref_key:"codeRef",ref:a,onFocus:R,onBlur:I,onKeyup:_e(m,["enter"]),onClear:m},null,8,["modelValue"])]),e("div",{class:"nav-item-btn",onClick:m},[l(p,{class:"btn",type:"primary"},{default:x(()=>[l(_,null,{default:x(()=>[l(D)]),_:1})]),_:1})])],2),ee(($(),L("div",Qe,[l(U,{wrap:"",size:20},{default:x(()=>[($(!0),L(G,null,J(P.storeList,(t,d)=>($(),L("div",{class:"shop-item",key:d,onClick:k=>r(t)},[l(y,{loading:"lazy",src:t.image},null,8,["src"]),e("div",Xe,F(t.store_name),1),e("div",Ye,[h(" ¥"),e("span",null,F(t.price),1)]),t.stock==0?($(),L("div",Ze,tt)):te("",!0)],8,We))),128))]),_:1})])),[[s,i]])])}}},st=B(ot,[["__scopeId","data-v-d440e37d"]]),at=P=>(oe("data-v-52f45b9b"),P=P(),se(),P),lt={class:"shop"},nt={key:0,class:"shop-info"},ct={class:"shop-info-left"},it={class:"shop-info-right"},rt={class:"shop-info-right-top"},ut={class:"shop-info-right-center"},dt={class:"shop-info-right-price"},_t={class:"shop-sku"},pt=at(()=>e("div",{class:"title"},"产品",-1)),vt={class:"sku"},ft=["onClick"],mt={class:"dialog-footer"},ht={__name:"pupop",emits:["changeItem"],setup(P,{expose:A,emit:g}){const a=n(!1),c=_=>{a.value=_},o=n({}),i=n(null),r=n(!1),m=n("add"),w=n({}),R=(_,p="add")=>{m.value=p,p=="add"?(o.value=_,i.value=_.attr[0]):(r.value=!0,w.value=_,me(_.product_id).then(y=>{y.data.attrValue=JSON.parse(JSON.stringify(y.data.attr)),y.data.attr=Object.keys(y.data.sku),o.value=y.data,i.value=y.data.attr[0],r.value=!1}).catch(y=>{r.value=!1}))},I=g,S=()=>{m.value=="add"?I("changeItem",o.value,i.value):I("editItem",w.value.cart_id,{cart_num:w.value.cart_num,product_attr_unique:o.value.sku[i.value].unique}),a.value=!1},u=_=>{i.value=_};A({show:c,setForm:R});const v=()=>{if(!a.value)return;let _=o.value.attr.indexOf(i.value);if(_>0)return u(o.value.attr[_-1])},V=()=>{if(!a.value)return;let _=o.value.attr.indexOf(i.value);if(_{a.value&&S()};return q(()=>{b.on("left",v),b.on("right",V),b.on("enter",D)}),M(()=>{b.off("left",v),b.off("right",V),b.off("enter",D)}),(_,p)=>{const y=f("el-image"),U=f("el-space"),s=f("el-button"),t=f("el-dialog"),d=Y("loading");return $(),T(t,{modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=k=>a.value=k),title:"商品规格",width:"650"},pe({default:x(()=>{var k,C,z;return[ee(($(),L("div",lt,[o.value.sku?($(),L("div",nt,[e("div",ct,[l(y,{loading:"lazy",src:((k=o.value.sku[i.value])==null?void 0:k.image)||o.value.image},null,8,["src"])]),e("div",it,[e("div",rt,F(o.value.store_name),1),e("div",ut,"库存"+F(((C=o.value.sku[i.value])==null?void 0:C.stock)||0),1),e("div",dt,[h("¥"),e("span",null,F(((z=o.value.sku[i.value])==null?void 0:z.price)||o.value.price),1)])])])):te("",!0),e("div",_t,[pt,e("div",vt,[l(U,{wrap:"",size:20},{default:x(()=>[($(!0),L(G,null,J(o.value.attr,(O,j)=>($(),L("div",{class:Z(["sku-item",{"sku-item_active":i.value==O}]),onClick:K=>u(O),key:j},F(O||"默认规格"),11,ft))),128))]),_:1})])])])),[[d,r.value]])]}),_:2},[m.value!="add"&&o.value.attr&&o.value.attr.length==1?void 0:{name:"footer",fn:x(()=>[e("div",mt,[l(s,{class:"ok-btn",type:"primary",onClick:S},{default:x(()=>[h(" 确定 (Enter) ")]),_:1})])]),key:"0"}]),1032,["modelValue"])}}},gt=B(ht,[["__scopeId","data-v-52f45b9b"]]),yt={class:"my-card"},wt={__name:"index",setup(P){const A=n(null),g=n(null),a=n(null),c=n(null),o=n([]),i=X(),r=ve(),m=n({page:0,limit:30}),w=s=>{m.value={staff_id:i.userInfo.service.service_id,...m.value,...s},s.bar_code&&(o.value=[],m.value.page=1),he(i.userInfo.service.mer_id,m.value).then(t=>{var k,C;((C=(k=t.data)==null?void 0:k.list)==null?void 0:C.length)(z.attr=Object.keys(z.sku),z));o.value=o.value.concat(d),s.bar_code&&o.value.length==1&&S(s.bar_code)&&(a.value.bar_code="",v(o.value[0],o.value[0].attr[0]))})},R=n(!1),I=s=>{R.value||(m.value.page++,w(s))};function S(s){return/^\d+$/.test(s)}const u=(s,t="")=>{let d={is_new:0,product_id:s.product_id,cart_num:1,product_attr_unique:s.sku[t]!==void 0?s.sku[t].unique:"",staff_id:i.userInfo.service.service_id,product_type:0};re(d).then(k=>{g.value.getList()})},v=(s,t)=>{if(!s.attr||s.attr.length==0||s.attr.length==1)return u(s,s.attr[0]?s.attr[0]:"");if(t)return u(s,t);A.value.setForm(s,"add"),A.value.show(!0)},V=(s,t)=>{g.value.editItem(s,t)},D=s=>{A.value.setForm(s,"edit"),A.value.show(!0)},_=()=>{let s=g.value.list.map(d=>d.cart_id),t={takes:[],use_coupon:{},use_integral:!1,cart_id:s};g.value.discounts>0&&(t.deduction_price=g.value.discounts.toFixed(2),t.pay_type="micropay"),ue(t).then(d=>{c.value.setForm({data:d.data,cart_id:s})})},p=()=>{_(),c.value.drawer=!0},y=()=>{g.value.getList()},U=()=>{console.log("F9"),r.name=="home"&&(!c.value.drawer&&g.value.list.length>0?p():c.value.beforeClose())};return q(()=>{b.on("F9",U)}),M(()=>{b.off("F9",U)}),(s,t)=>($(),L("div",yt,[l(Ge,{ref_key:"orderRef",ref:g,onGoPay:p,onEditPupop:D},null,512),l(fe),l(st,{ref_key:"shopRef",ref:a,style:{flex:"1"},storeList:o.value,onGetStoreList:w,onChangeItem:v,onLoadMore:I},null,8,["storeList"]),l(gt,{ref_key:"pupopRef",ref:A,onChangeItem:v,onEditItem:V},null,512),l(ie,{ref_key:"payRef",ref:c,onPaySuccess:y},null,512)]))}};export{wt as default}; diff --git a/dist/assets/index-BSeKe2ro.js b/dist/assets/index-CDJP75me.js similarity index 99% rename from dist/assets/index-BSeKe2ro.js rename to dist/assets/index-CDJP75me.js index 0d1dfb9..649364f 100644 --- a/dist/assets/index-BSeKe2ro.js +++ b/dist/assets/index-CDJP75me.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index-L1TMsAdx.js","./pay-BcpR4WJS.js","./pay-DhaR4dEp.css","./padding-XLGqX7ns.js","./shop-Bj2-5fHC.js","./index-BHNczGBs.css","./index-BFSnqOmy.js","./index-DXzcP25f.css","./indexList-B-91xBrU.js","./indexList-Cdt8gTOX.css","./index-DVBIrGf3.js","./index-Bmp4AY5x.css","./index-Dn94DM0i.js","./index-DWtBHQXf.css","./index-DqzXjIW8.js","./index-CtNwS61F.css"] + __vite__mapDeps.viteFileDeps = ["./index-C8u7JxBI.js","./pay-BajYk3t1.js","./pay-DhaR4dEp.css","./padding-BXN6xH5X.js","./shop-u-jllX4w.js","./index-BHNczGBs.css","./index-D7wY4kwL.js","./index-DXzcP25f.css","./indexList-Cb2zn8_B.js","./indexList-Cdt8gTOX.css","./index-BD_gE31l.js","./index-Bmp4AY5x.css","./index-CvejhDpu.js","./index-9QHHZYoV.css","./index-7n2OC_H-.js","./index-CtNwS61F.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -76,4 +76,4 @@ 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=us(l);o[s]||(cce(r,l),o[s]=!0)}return Ve.isArray(t)?t.forEach(a):a(t),this}}hd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ve.reduceDescriptors(hd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Ve.freezeMethods(hd);const ar=hd;function pf(e,t){const n=this||iv,o=t||n,r=ar.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 kb(e){return!!(e&&e.__CANCEL__)}function Ti(e,t,n){Rt.call(this,e??"canceled",Rt.ERR_CANCELED,t,n),this.name="CanceledError"}Ve.inherits(Ti,Rt,{__CANCEL__:!0});function dce(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 fce=Ro.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 pce(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vce(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Eb(e,t){return e&&!pce(t)?vce(e,t):t}const hce=Ro.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 mce(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gce(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 yce=typeof XMLHttpRequest<"u",_ce=yce&&function(e){return new Promise(function(n,o){let r=e.data;const a=ar.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(Ro.hasStandardBrowserEnv||Ro.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((f=a.getContentType())!==!1){const[v,...y]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+y))}const p=Eb(e.baseURL,e.url);d.open(e.method.toUpperCase(),bb(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const v=ar.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};dce(function(b){n(b),c()},function(b){o(b),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 y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||wb;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),o(new Rt(y,g.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,e,d)),d=null},Ro.hasStandardBrowserEnv&&(s&&Ve.isFunction(s)&&(s=s(e)),s||s!==!1&&hce(p))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&fce.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}r===void 0&&a.setContentType(null),"setRequestHeader"in d&&Ve.forEach(a.toJSON(),function(y,g){d.setRequestHeader(g,y)}),Ve.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),l&&l!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",d4(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",d4(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=v=>{d&&(o(!v||v.type?new Ti(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=mce(p);if(m&&Ro.protocols.indexOf(m)===-1){o(new Rt("Unsupported protocol "+m+":",Rt.ERR_BAD_REQUEST,e));return}d.send(r||null)})},W0={http:Wue,xhr:_ce};Ve.forEach(W0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const f4=e=>`- ${e}`,bce=e=>Ve.isFunction(e)||e===null||e===!1,xb={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(f4).join(` `):" "+f4(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:W0};function vf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ti(null,e)}function p4(e){return vf(e),e.headers=ar.from(e.headers),e.data=pf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xb.getAdapter(e.adapter||iv.adapter)(e).then(function(o){return vf(e),o.data=pf.call(e,e.transformResponse,o),o.headers=ar.from(o.headers),o},function(o){return kb(o)||(vf(e),o&&o.response&&(o.response.data=pf.call(e,e.transformResponse,o.response),o.response.headers=ar.from(o.response.headers))),Promise.reject(o)})}const v4=e=>e instanceof ar?{...e}:e;function Dl(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(v4(c),v4(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 Mb="1.6.8",uv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uv[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const h4={};uv.transitional=function(t,n,o){function r(a,l){return"[Axios v"+Mb+"] 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&&!h4[l]&&(h4[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 wce(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 j0={assertOptions:wce,validators:uv},xr=j0.validators;class gc{constructor(t){this.defaults=t,this.interceptors={request:new u4,response:new u4}}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=Dl(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:a}=n;o!==void 0&&j0.assertOptions(o,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),r!=null&&(Ve.isFunction(r)?n.paramsSerializer={serialize:r}:j0.assertOptions(r,{encode:xr.function,serialize:xr.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=ar.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=[p4.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 Ti(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 Cce=cv;function Sce(e){return function(n){return e.apply(null,n)}}function kce(e){return Ve.isObject(e)&&e.isAxiosError===!0}const q0={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(q0).forEach(([e,t])=>{q0[t]=e});const Ece=q0;function $b(e){const t=new zu(e),n=ib(zu.prototype.request,t);return Ve.extend(n,zu.prototype,t,{allOwnKeys:!0}),Ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return $b(Dl(e,r))},n}const sn=$b(iv);sn.Axios=zu;sn.CanceledError=Ti;sn.CancelToken=Cce;sn.isCancel=kb;sn.VERSION=Mb;sn.toFormData=vd;sn.AxiosError=Rt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=Sce;sn.isAxiosError=kce;sn.mergeConfig=Dl;sn.AxiosHeaders=ar;sn.formToJSON=e=>Sb(Ve.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=xb.getAdapter;sn.HttpStatusCode=Ece;sn.default=sn;const Oi=sn.create({baseURL:"http://192.168.1.22:8324/api",timeout:1e4});Oi.interceptors.request.use(e=>{const t=localStorage.getItem("Token");return t&&(e.headers["X-Token"]="Bearer "+t),e},e=>(console.error(e),Promise.reject(e)));Oi.interceptors.response.use(e=>{if((e.data.status===401||e.data.status===4e4)&&($s({message:e.data.message,type:"error"}),setTimeout(()=>{const t=rv();t.setUserInfo({}),t.setToken(""),Ob.push("/login")},700)),e.data.status===400)throw $s({message:e.data.message,type:"error"}),new Error(e.data.message);return e.data},e=>{var t,n;return console.error(e),$s({message:((n=(t=e.response)==null?void 0:t.data)==null?void 0:n.message)||e,type:"error"}),Promise.reject(e)});function Qce(e){return Oi.post("auth/login",e)}function ede(e){return Oi.get("user",e)}function xce(){return Oi.post("logout")}const dv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mce=e=>(j4("data-v-28f3f43a"),e=e(),q4(),e),$ce={class:"my-card"},Tce={class:"card-header"},Oce=Mce(()=>k("div",{class:"card-title"},"里海收银系统",-1)),Ace={class:"card-body"},Nce={class:"el-dropdown-link"},Rce={class:"info"},Ice={style:{"margin-left":"0.3rem"}},Pce={__name:"myHeader",setup(e){const t=rv(),n=P({});n.value=t.userInfo.mer_info;const o=P({});o.value=t.userInfo.service;const r=ob(),a=()=>{xce().then(()=>{t.setUserInfo({}),t.setToken(""),r.push("/login")}).catch(()=>{$s({message:"退出失败",type:"error"})})};return(l,s)=>{const u=Ze("el-image"),c=Ze("el-avatar"),f=Ze("arrow-down"),d=Ze("el-icon"),p=Ze("el-dropdown-item"),h=Ze("el-dropdown-menu"),m=Ze("el-dropdown");return _(),M("div",$ce,[k("div",Tce,[W(u,{style:{height:"3rem",width:"3rem"},src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/56a52202404051428413664.png"}),Oce]),k("div",Ace,[W(m,{trigger:"hover"},{dropdown:X(()=>[W(h,null,{default:X(()=>[W(p,{onClick:a},{default:X(()=>[gt("退出登录")]),_:1})]),_:1})]),default:X(()=>[k("div",Nce,[W(c,{src:o.value.avatar,icon:"user-filled"},null,8,["src"]),k("div",Rce,[k("div",null,[gt(Te(o.value.nickname)+" ",1),k("span",Ice,"("+Te(n.value.company_name||n.value.mer_name)+")",1)]),k("div",null,Te(i(t).userInfo.account),1)]),W(d,{class:"el-icon--right"},{default:X(()=>[W(f)]),_:1})])]),_:1})])])}}},Lce=dv(Pce,[["__scopeId","data-v-28f3f43a"]]);function Vce(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 qn=Vce(),md=e=>(j4("data-v-72bc38cb"),e=e(),q4(),e),Bce={class:"my-card"},zce=md(()=>k("div",null,"收银",-1)),Hce=md(()=>k("div",null,"订单",-1)),Dce=md(()=>k("div",null,"核销",-1)),Fce=md(()=>k("div",null,"商品",-1)),Kce={__name:"myAside",setup(e){const t=ob(),n=tue(),o=s=>{t.push({name:s})},r=P(["home","order","convert","shop"]),a=()=>{let s=r.value.indexOf(n.name);s>0&&o(r.value[s-1])},l=()=>{let s=r.value.indexOf(n.name);s{qn.on("up",a),qn.on("down",l)}),zo(()=>{qn.off("aup",a),qn.off("adown",l)}),(s,u)=>{const c=Ze("Sell"),f=Ze("el-icon"),d=Ze("DataLine"),p=Ze("FullScreen"),h=Ze("ShoppingBag");return _(),M("div",Bce,[k("div",{class:T(["list-item",{active:i(n).name=="home"}]),onClick:u[0]||(u[0]=m=>o("home"))},[W(f,{size:"30"},{default:X(()=>[W(c)]),_:1}),zce],2),k("div",{class:T(["list-item",{active:i(n).name=="order"}]),onClick:u[1]||(u[1]=m=>o("order"))},[W(f,{size:"30"},{default:X(()=>[W(d)]),_:1}),Hce],2),k("div",{class:T(["list-item",{active:i(n).name=="convert"}]),onClick:u[2]||(u[2]=m=>o("convert"))},[W(f,{size:"30"},{default:X(()=>[W(p)]),_:1}),Dce],2),k("div",{class:T(["list-item",{active:i(n).name=="shop"}]),onClick:u[3]||(u[3]=m=>o("shop"))},[W(f,{size:"30"},{default:X(()=>[W(h)]),_:1}),Fce],2)])}}},Wce=dv(Kce,[["__scopeId","data-v-72bc38cb"]]),jce={class:"common-layout"},qce={__name:"index",setup(e){const t=n=>{console.log("按下",n.keyCode),n.keyCode==16&&qn.emit("shift"),n.keyCode==120&&qn.emit("F9"),n.keyCode==13&&qn.emit("enter"),n.keyCode==37&&qn.emit("left"),n.keyCode==39&&qn.emit("right"),n.keyCode==38&&qn.emit("up"),n.keyCode==40&&qn.emit("down"),n.keyCode==46&&qn.emit("delete"),n.keyCode==45&&qn.emit("insert")};return et(()=>{window.addEventListener("keydown",t),console.log("开启键盘监听")}),zo(()=>{window.removeEventListener("keydown",t),console.log("关闭键盘监听")}),(n,o)=>{const r=Ze("el-header"),a=Ze("el-aside"),l=Ze("router-view"),s=Ze("el-main"),u=Ze("el-container");return _(),M("div",jce,[W(u,null,{default:X(()=>[W(r,null,{default:X(()=>[W(Lce)]),_:1}),W(u,null,{default:X(()=>[W(a,{width:"100px"},{default:X(()=>[W(Wce)]),_:1}),W(s,null,{default:X(()=>[W(l,{class:"my-main"},{default:X(({Component:c})=>[W(tn,{name:"el-zoom-in-top"},{default:X(()=>[(_(),le(it(c)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})])}}},Uce=dv(qce,[["__scopeId","data-v-64ddf17e"]]),Yce=[{path:"/",name:"layout",component:Uce,redirect:"/home",children:[{path:"/home",name:"home",component:()=>ia(()=>import("./index-L1TMsAdx.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{path:"/order",name:"order",component:()=>ia(()=>import("./index-BFSnqOmy.js"),__vite__mapDeps([6,1,2,3,7]),import.meta.url)},{path:"/orderList",name:"orderList",component:()=>ia(()=>import("./indexList-B-91xBrU.js"),__vite__mapDeps([8,1,2,9]),import.meta.url)},{path:"/shop",name:"shop",component:()=>ia(()=>import("./index-DVBIrGf3.js"),__vite__mapDeps([10,4,11]),import.meta.url)},{path:"/convert",name:"convert",component:()=>ia(()=>import("./index-Dn94DM0i.js"),__vite__mapDeps([12,1,2,3,13]),import.meta.url)}]},{path:"/login",name:"login",component:()=>ia(()=>import("./index-DqzXjIW8.js"),__vite__mapDeps([14,15]),import.meta.url)},{path:"/:catchAll(.*)",name:"notFound",component:()=>ia(()=>import("./index-g1rDH2QM.js"),__vite__mapDeps([]),import.meta.url)}],Tb=Qie({history:$ie(),routes:Yce});Tb.beforeEach((e,t,n)=>{const o=rv();e.name!=="login"&&!o.Token?n({name:"login"}):n()});const Ob=Tb,Ai=Og(Z5);for(const[e,t]of Object.entries(ML))Ai.component(e,t);const Gce=oue();Ai.use(Ob);Ai.use(Gce);Ai.use(Use,{locale:Yse});Ai.mount("#app");export{Oi as A,bt as B,y2 as C,S as D,$s as E,Ke as F,Qce as G,ede as H,dv as _,zo as a,Ze as b,_ as c,le as d,k as e,W as f,gt as g,M as h,ht as i,Ec as j,Mt as k,T as l,qn as m,We as n,et as o,tt as p,ne as q,P as r,j4 as s,Te as t,rv as u,q4 as v,X as w,lr as x,tue as y,ob as z}; +`+a):o.stack=a}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dl(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:a}=n;o!==void 0&&j0.assertOptions(o,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),r!=null&&(Ve.isFunction(r)?n.paramsSerializer={serialize:r}:j0.assertOptions(r,{encode:xr.function,serialize:xr.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=ar.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=[p4.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 Ti(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 Cce=cv;function Sce(e){return function(n){return e.apply(null,n)}}function kce(e){return Ve.isObject(e)&&e.isAxiosError===!0}const q0={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(q0).forEach(([e,t])=>{q0[t]=e});const Ece=q0;function $b(e){const t=new zu(e),n=ib(zu.prototype.request,t);return Ve.extend(n,zu.prototype,t,{allOwnKeys:!0}),Ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return $b(Dl(e,r))},n}const sn=$b(iv);sn.Axios=zu;sn.CanceledError=Ti;sn.CancelToken=Cce;sn.isCancel=kb;sn.VERSION=Mb;sn.toFormData=vd;sn.AxiosError=Rt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=Sce;sn.isAxiosError=kce;sn.mergeConfig=Dl;sn.AxiosHeaders=ar;sn.formToJSON=e=>Sb(Ve.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=xb.getAdapter;sn.HttpStatusCode=Ece;sn.default=sn;const Oi=sn.create({baseURL:"https://crmeb-test.shop.lihaink.cn/api",timeout:1e4});Oi.interceptors.request.use(e=>{const t=localStorage.getItem("Token");return t&&(e.headers["X-Token"]="Bearer "+t),e},e=>(console.error(e),Promise.reject(e)));Oi.interceptors.response.use(e=>{if((e.data.status===401||e.data.status===4e4)&&($s({message:e.data.message,type:"error"}),setTimeout(()=>{const t=rv();t.setUserInfo({}),t.setToken(""),Ob.push("/login")},700)),e.data.status===400)throw $s({message:e.data.message,type:"error"}),new Error(e.data.message);return e.data},e=>{var t,n;return console.error(e),$s({message:((n=(t=e.response)==null?void 0:t.data)==null?void 0:n.message)||e,type:"error"}),Promise.reject(e)});function Qce(e){return Oi.post("auth/login",e)}function ede(e){return Oi.get("user",e)}function xce(){return Oi.post("logout")}const dv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mce=e=>(j4("data-v-28f3f43a"),e=e(),q4(),e),$ce={class:"my-card"},Tce={class:"card-header"},Oce=Mce(()=>k("div",{class:"card-title"},"里海收银系统",-1)),Ace={class:"card-body"},Nce={class:"el-dropdown-link"},Rce={class:"info"},Ice={style:{"margin-left":"0.3rem"}},Pce={__name:"myHeader",setup(e){const t=rv(),n=P({});n.value=t.userInfo.mer_info;const o=P({});o.value=t.userInfo.service;const r=ob(),a=()=>{xce().then(()=>{t.setUserInfo({}),t.setToken(""),r.push("/login")}).catch(()=>{$s({message:"退出失败",type:"error"})})};return(l,s)=>{const u=Ze("el-image"),c=Ze("el-avatar"),f=Ze("arrow-down"),d=Ze("el-icon"),p=Ze("el-dropdown-item"),h=Ze("el-dropdown-menu"),m=Ze("el-dropdown");return _(),M("div",$ce,[k("div",Tce,[W(u,{style:{height:"3rem",width:"3rem"},src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/56a52202404051428413664.png"}),Oce]),k("div",Ace,[W(m,{trigger:"hover"},{dropdown:X(()=>[W(h,null,{default:X(()=>[W(p,{onClick:a},{default:X(()=>[gt("退出登录")]),_:1})]),_:1})]),default:X(()=>[k("div",Nce,[W(c,{src:o.value.avatar,icon:"user-filled"},null,8,["src"]),k("div",Rce,[k("div",null,[gt(Te(o.value.nickname)+" ",1),k("span",Ice,"("+Te(n.value.company_name||n.value.mer_name)+")",1)]),k("div",null,Te(i(t).userInfo.account),1)]),W(d,{class:"el-icon--right"},{default:X(()=>[W(f)]),_:1})])]),_:1})])])}}},Lce=dv(Pce,[["__scopeId","data-v-28f3f43a"]]);function Vce(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 qn=Vce(),md=e=>(j4("data-v-72bc38cb"),e=e(),q4(),e),Bce={class:"my-card"},zce=md(()=>k("div",null,"收银",-1)),Hce=md(()=>k("div",null,"订单",-1)),Dce=md(()=>k("div",null,"核销",-1)),Fce=md(()=>k("div",null,"商品",-1)),Kce={__name:"myAside",setup(e){const t=ob(),n=tue(),o=s=>{t.push({name:s})},r=P(["home","order","convert","shop"]),a=()=>{let s=r.value.indexOf(n.name);s>0&&o(r.value[s-1])},l=()=>{let s=r.value.indexOf(n.name);s{qn.on("up",a),qn.on("down",l)}),zo(()=>{qn.off("aup",a),qn.off("adown",l)}),(s,u)=>{const c=Ze("Sell"),f=Ze("el-icon"),d=Ze("DataLine"),p=Ze("FullScreen"),h=Ze("ShoppingBag");return _(),M("div",Bce,[k("div",{class:T(["list-item",{active:i(n).name=="home"}]),onClick:u[0]||(u[0]=m=>o("home"))},[W(f,{size:"30"},{default:X(()=>[W(c)]),_:1}),zce],2),k("div",{class:T(["list-item",{active:i(n).name=="order"}]),onClick:u[1]||(u[1]=m=>o("order"))},[W(f,{size:"30"},{default:X(()=>[W(d)]),_:1}),Hce],2),k("div",{class:T(["list-item",{active:i(n).name=="convert"}]),onClick:u[2]||(u[2]=m=>o("convert"))},[W(f,{size:"30"},{default:X(()=>[W(p)]),_:1}),Dce],2),k("div",{class:T(["list-item",{active:i(n).name=="shop"}]),onClick:u[3]||(u[3]=m=>o("shop"))},[W(f,{size:"30"},{default:X(()=>[W(h)]),_:1}),Fce],2)])}}},Wce=dv(Kce,[["__scopeId","data-v-72bc38cb"]]),jce={class:"common-layout"},qce={__name:"index",setup(e){const t=n=>{console.log("按下",n.keyCode),n.keyCode==16&&qn.emit("shift"),n.keyCode==120&&qn.emit("F9"),n.keyCode==13&&qn.emit("enter"),n.keyCode==37&&qn.emit("left"),n.keyCode==39&&qn.emit("right"),n.keyCode==38&&qn.emit("up"),n.keyCode==40&&qn.emit("down"),n.keyCode==46&&qn.emit("delete"),n.keyCode==45&&qn.emit("insert")};return et(()=>{window.addEventListener("keydown",t),console.log("开启键盘监听")}),zo(()=>{window.removeEventListener("keydown",t),console.log("关闭键盘监听")}),(n,o)=>{const r=Ze("el-header"),a=Ze("el-aside"),l=Ze("router-view"),s=Ze("el-main"),u=Ze("el-container");return _(),M("div",jce,[W(u,null,{default:X(()=>[W(r,null,{default:X(()=>[W(Lce)]),_:1}),W(u,null,{default:X(()=>[W(a,{width:"100px"},{default:X(()=>[W(Wce)]),_:1}),W(s,null,{default:X(()=>[W(l,{class:"my-main"},{default:X(({Component:c})=>[W(tn,{name:"el-zoom-in-top"},{default:X(()=>[(_(),le(it(c)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})])}}},Uce=dv(qce,[["__scopeId","data-v-64ddf17e"]]),Yce=[{path:"/",name:"layout",component:Uce,redirect:"/home",children:[{path:"/home",name:"home",component:()=>ia(()=>import("./index-C8u7JxBI.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{path:"/order",name:"order",component:()=>ia(()=>import("./index-D7wY4kwL.js"),__vite__mapDeps([6,1,2,3,7]),import.meta.url)},{path:"/orderList",name:"orderList",component:()=>ia(()=>import("./indexList-Cb2zn8_B.js"),__vite__mapDeps([8,1,2,9]),import.meta.url)},{path:"/shop",name:"shop",component:()=>ia(()=>import("./index-BD_gE31l.js"),__vite__mapDeps([10,4,11]),import.meta.url)},{path:"/convert",name:"convert",component:()=>ia(()=>import("./index-CvejhDpu.js"),__vite__mapDeps([12,1,2,3,13]),import.meta.url)}]},{path:"/login",name:"login",component:()=>ia(()=>import("./index-7n2OC_H-.js"),__vite__mapDeps([14,15]),import.meta.url)},{path:"/:catchAll(.*)",name:"notFound",component:()=>ia(()=>import("./index-BPmKd3-6.js"),__vite__mapDeps([]),import.meta.url)}],Tb=Qie({history:$ie(),routes:Yce});Tb.beforeEach((e,t,n)=>{const o=rv();e.name!=="login"&&!o.Token?n({name:"login"}):n()});const Ob=Tb,Ai=Og(Z5);for(const[e,t]of Object.entries(ML))Ai.component(e,t);const Gce=oue();Ai.use(Ob);Ai.use(Gce);Ai.use(Use,{locale:Yse});Ai.mount("#app");export{Oi as A,bt as B,y2 as C,S as D,$s as E,Ke as F,Qce as G,ede as H,dv as _,zo as a,Ze as b,_ as c,le as d,k as e,W as f,gt as g,M as h,ht as i,Ec as j,Mt as k,T as l,qn as m,We as n,et as o,tt as p,ne as q,P as r,j4 as s,Te as t,rv as u,q4 as v,X as w,lr as x,tue as y,ob as z}; diff --git a/dist/assets/index-CvejhDpu.js b/dist/assets/index-CvejhDpu.js new file mode 100644 index 0000000..4c6c65e --- /dev/null +++ b/dist/assets/index-CvejhDpu.js @@ -0,0 +1 @@ +import{_ as j,u as q,r as n,b as C,j as D,c as t,h as s,e,f as l,w as p,g,k as H,p as S,F as K,i as N,l as U,t as c,d as F,q as a,E as M,m as I,s as G,v as J,z as Q,o as W,n as O,B as L,C as X}from"./index-CDJP75me.js";import{v as Y,p as Z,f as ee}from"./pay-BajYk3t1.js";import{p as te}from"./padding-BXN6xH5X.js";const se=y=>(G("data-v-9936e733"),y=y(),J(),y),oe={class:"my-order"},ie={class:"header-nav"},ae=se(()=>e("div",{class:"nav-item"},"核销订单",-1)),ne={class:"nav-item-clear"},le={class:"header-input"},ce={class:"order-list","infinite-scroll-distance":"300","infinite-scroll-delay":"500","infinite-scroll-immediate":"false",style:{overflow:"auto"}},de=["onClick"],_e={class:"top"},re={class:"create-time"},ue={class:"shop"},ve={key:0,class:"left"},pe={key:0,class:"shop-name"},fe={class:"right"},he={class:"money"},me={class:"count"},ye={class:"bottom"},ke={class:"pay"},ge={key:0},$e={key:0},be={key:1},Ce={key:2},Ve={key:3},we={key:4},Se={key:5},xe={key:6},Pe={key:1,style:{color:"#ff4a00"}},Re={key:0,class:"cashier"},Le={key:1,class:"cashier"},Ie={key:0,class:"load-end"},Ue={key:1,class:"load-end"},ze={__name:"order",setup(y,{expose:$}){const o=q();n([]);const b=n(1);n(null);const u=n({page:1,limit:20,search_info:""}),d=n(!1);n(0);const x=n(0),V=n(!1),h=n([]),P=(v=!1)=>{if(!u.value.search_info)return M.error("请输入订单编号");if(v)u.value.page=1;else if(V.value||d.value)return;d.value=!0,b.value==1&&(u.value.paid=null),b.value==2&&(u.value.paid=0),h.value=[],I.emit("set-order-detail",{}),Y(o.userInfo.service.mer_id,u.value.search_info).then(r=>{h.value=[r.data],I.emit("set-order-detail",h.value[0]),d.value=!1}).catch(r=>{V.value=!0,d.value=!1})},z=(v,r)=>{x.value=r,I.emit("set-order-detail",v)};return $({setCode:v=>{u.value.search_info=v,P(!0)}}),(v,r)=>{const w=C("el-button"),A=C("el-input"),B=C("el-image"),R=D("loading"),E=D("infinite-scroll");return t(),s("div",oe,[e("div",ie,[ae,e("div",ne,[l(w,{type:"primary",size:"small"},{default:p(()=>[g("返回上一页")]),_:1})])]),e("div",le,[l(A,{modelValue:u.value.search_info,"onUpdate:modelValue":r[1]||(r[1]=i=>u.value.search_info=i),placeholder:"请输入订单编号",onKeydown:r[2]||(r[2]=H(i=>P(!0),["enter"])),clearable:""},{append:p(()=>[l(w,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 5px 5px 0"},onClick:r[0]||(r[0]=i=>P(!0))},{default:p(()=>[g("搜索")]),_:1})]),_:1},8,["modelValue"])]),S((t(),s("div",ce,[(t(!0),s(K,null,N(h.value,(i,_)=>(t(),s("div",{class:U(["item",{"item-active":x.value==_}]),key:_,onClick:m=>z(i,_)},[e("div",_e,[e("div",{class:U(["sn",i.pay_type===11||i.pay_type===12||i.pay_type===13?"cahier":"cahier2"])},"单号: "+c(i.order_sn),3),e("div",re,c(i.create_time),1)]),e("div",ue,[i.orderProduct?(t(),s("div",ve,[(t(!0),s(K,null,N(i.orderProduct.slice(0,5),(m,T)=>(t(),F(B,{key:T,src:m.cart_info.productAttr.image||m.cart_info.product.image,class:"shop-img"},null,8,["src"]))),128)),i.orderProduct.length==1?(t(),s("div",pe,c(i.orderProduct[0].cart_info.product.store_name),1)):a("",!0)])):a("",!0),e("div",fe,[e("div",he,"¥"+c(i.pay_price),1),e("div",me,"共"+c(i.total_num)+"件商品",1)])]),e("div",ye,[e("div",ke,[i.paid?(t(),s("div",ge,[g(" 已支付 "),i.pay_type==13?(t(),s("span",$e,"(支付宝收款)")):a("",!0),i.pay_type==12?(t(),s("span",be,"(现金支付)")):a("",!0),i.pay_type==11?(t(),s("span",Ce,"(微信收款)")):a("",!0),i.pay_type==0?(t(),s("span",Ve,"(余额支付)")):a("",!0),i.pay_type==1?(t(),s("span",we,"(微信支付)")):a("",!0),i.pay_type==9?(t(),s("span",Se,"(商户余额支付)")):a("",!0),i.pay_type==10?(t(),s("span",xe,"(对公转账)")):a("",!0)])):(t(),s("div",Pe,"未支付"))]),i.service_info?(t(),s("div",Re,"收银员: "+c(i.service_info.nickname),1)):(t(),s("div",Le,"平台订单"))])],10,de))),128)),V.value?(t(),s("div",Ie,"没有更多了")):a("",!0),d.value?(t(),s("div",Ue,"加载中...")):a("",!0)])),[[R,d.value],[E,P]])])}}},Ae=j(ze,[["__scopeId","data-v-9936e733"]]),f=y=>(G("data-v-827fccdf"),y=y(),J(),y),Be={class:"my-order"},Ee={class:"header-nav"},De=["onClick"],Ke={class:"detail"},Ne={key:0,class:"table"},Fe={style:{"font-size":"0.9rem"}},Me={style:{color:"#ff4a00"}},Te={style:{display:"flex","align-items":"center"}},Oe={style:{"margin-left":"0.5rem"}},je={key:1,class:"table"},qe=f(()=>e("div",{class:"table-title"},"订单信息",-1)),He={class:"table-info"},Ge={class:"info-item"},Je=f(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Qe={class:"info-item-info"},We={class:"info-item"},Xe=f(()=>e("div",{class:"info-item-title"},"商品总数:",-1)),Ye={class:"info-item-info"},Ze={class:"info-item"},et=f(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),tt={class:"info-item-info"},st={class:"info-item"},ot=f(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),it={class:"info-item-info"},at={class:"info-item"},nt=f(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),lt={class:"info-item-info"},ct={class:"info-item"},dt=f(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),_t={class:"info-item-info"},rt={class:"info-item"},ut=f(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),vt={class:"info-item-info"},pt={key:0},ft={key:1},ht={key:2},mt={key:3},yt={key:4},kt={key:5},gt={key:6},$t={key:0,class:"table-title"},bt={key:1,class:"table-info",style:{"flex-direction":"column"}},Ct={class:"info-item"},Vt=f(()=>e("div",{class:"info-item-title"},"头像:",-1)),wt={class:"info-item-info"},St={class:"info-item"},xt=f(()=>e("div",{class:"info-item-title"},"昵称:",-1)),Pt={class:"info-item-info"},Rt={class:"info-item"},Lt=f(()=>e("div",{class:"info-item-title"},"账号:",-1)),It={class:"info-item-info"},Ut={class:"footer"},zt={class:"info"},At={class:"price"},Bt={key:0,class:"handle"},Et={key:1,class:"handle"},Dt=f(()=>e("span",null,"提单前请清空购物车, 避免提单的商品与购物车商品混合, 请确保购物车内无数据后再进行提单",-1)),Kt={class:"dialog-footer"},Nt={__name:"detail",setup(y){q();const $=Q(),o=n({});I.on("set-order-detail",k=>{o.value=k}),n([]);const b=n(null),u=n(!1);n(0);const d=n(0),x=n(["商品信息","订单详情"]),V=n(""),h=n(!1),P=()=>{h.value=!1,ee({order_sn:V.value}).then(k=>{M({message:k.message,type:"success"}),$.push({name:"home"})})},z=k=>{b.value.setRePay({price:k.pay_price,order_id:k.group_order_id}),b.value.drawer=!0};return(k,v)=>{const r=C("el-image"),w=C("el-table-column"),A=C("el-input-number"),B=C("el-table"),R=C("el-button"),E=C("el-dialog"),i=D("loading");return t(),s("div",Be,[e("div",Ee,[(t(!0),s(K,null,N(x.value,(_,m)=>(t(),s("div",{key:m,class:U(["nav-item",{"nav-item-active":d.value==m,"nav-item-radius1":d.value==m+1,"nav-item-radius2":d.value==m-1}]),onClick:T=>d.value=m},c(_),11,De))),128)),e("div",{class:U(["nav-item",{"nav-item-radius2":d.value==x.value.length-1}]),style:{flex:"1"}},null,2)]),S((t(),s("div",Ke,[o.value.orderProduct&&d.value==0?(t(),s("div",Ne,[e("div",Fe,[g(" 共计 "),e("span",Me,c(o.value.total_num),1),g(" 件商品 ")]),l(B,{style:{height:"calc(100vh - 100px - 14rem)"},data:o.value.orderProduct},{default:p(()=>[l(w,{prop:"cart_info.product.store_name",label:"商品信息"},{default:p(({row:_})=>[e("div",Te,[l(r,{style:{height:"3rem",width:"3rem"},src:_.cart_info.productAttr.image||_.cart_info.product.image},null,8,["src"]),e("span",Oe,c(_.cart_info.product.store_name),1)])]),_:1}),l(w,{prop:"cart_info.productAttr.price",label:"单价",width:"150"}),l(w,{prop:"product_num",label:"数量",width:"180"},{default:p(({row:_})=>[l(A,{modelValue:_.product_num,"onUpdate:modelValue":m=>_.product_num=m,placeholder:"",size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),l(w,{prop:"total_price",label:"总价",width:"150"})]),_:1},8,["data"])])):a("",!0),o.value.orderProduct&&d.value==1?(t(),s("div",je,[qe,e("div",He,[e("div",Ge,[Je,e("div",Qe,c(o.value.create_time),1)]),e("div",We,[Xe,e("div",Ye,c(o.value.total_num),1)]),e("div",Ze,[et,e("div",tt,"¥"+c(o.value.total_price),1)]),e("div",st,[ot,e("div",it,c(o.value.pay_time),1)]),e("div",at,[nt,e("div",lt,"¥"+c(o.value.deduction_price),1)]),e("div",ct,[dt,e("div",_t,"¥"+c(o.value.pay_price),1)]),e("div",rt,[ut,e("div",vt,[o.value.pay_type==11?(t(),s("span",pt,"微信收款")):a("",!0),o.value.pay_type==12?(t(),s("span",ft,"现金支付")):a("",!0),o.value.pay_type==13?(t(),s("span",ht,"支付宝收款")):a("",!0),o.value.pay_type==0?(t(),s("span",mt,"余额支付")):a("",!0),o.value.pay_type==1?(t(),s("span",yt,"微信支付")):a("",!0),o.value.pay_type==9?(t(),s("span",kt,"商户余额支付")):a("",!0),o.value.pay_type==10?(t(),s("span",gt,"对公转账")):a("",!0)])])]),o.value.service_info?(t(),s("div",$t,"收银员信息")):a("",!0),o.value.service_info?(t(),s("div",bt,[e("div",Ct,[Vt,e("div",wt,[l(r,{style:{height:"4rem",width:"4rem","border-radius":"50%"},src:o.value.service_info.avatar},null,8,["src"])])]),e("div",St,[xt,e("div",Pt,c(o.value.service_info.nickname),1)]),e("div",Rt,[Lt,e("div",It,c(o.value.service_info.account),1)])])):a("",!0)])):a("",!0),e("div",Ut,[e("div",zt,[e("div",At,[g(" 实付: "),e("span",null,"¥"+c(o.value.pay_price),1)])]),o.value.verify_status==0?(t(),s("div",Bt,[l(R,{class:"btn",type:"warning",onClick:v[0]||(v[0]=_=>z(o.value))},{default:p(()=>[g("核销")]),_:1})])):(t(),s("div",Et,"已支付"))])])),[[i,u.value]]),l(Z,{ref_key:"payRef",ref:b},null,512),l(E,{modelValue:h.value,"onUpdate:modelValue":v[2]||(v[2]=_=>h.value=_),title:"提示",width:"500"},{footer:p(()=>[e("div",Kt,[l(R,{onClick:v[1]||(v[1]=_=>h.value=!1)},{default:p(()=>[g("取消")]),_:1}),k.cartCount>0?(t(),F(R,{key:0,onClick:k.goHome},{default:p(()=>[g(" 前去清空购物车 ")]),_:1},8,["onClick"])):(t(),F(R,{key:1,type:"primary",onClick:P},{default:p(()=>[g(" 确认提单 ")]),_:1}))])]),default:p(()=>[Dt]),_:1},8,["modelValue"])])}}},Ft=j(Nt,[["__scopeId","data-v-827fccdf"]]),Mt={class:"my-card"},Tt={class:"my-code"},Ot=e("h2",null,"订单核销",-1),jt={class:"box"},Jt={__name:"index",setup(y){const $=n(1),o=n("2439926081480600"),b=n(null),u=n(null),d=()=>{if(o.value=="")return M.error("请输入订单编号");$.value=2,O(()=>{u.value.setCode(o.value)})};return W(()=>{O(()=>{b.value.focus()})}),(x,V)=>(t(),s("div",Mt,[S(e("div",Tt,[Ot,e("div",jt,[S(e("input",{ref_key:"inputRef",ref:b,"onUpdate:modelValue":V[0]||(V[0]=h=>o.value=h),placeholder:"",class:"input",onKeyup:H(d,["enter"])},null,544),[[X,o.value]]),e("div",{class:"btn",onClick:d},"查询")])],512),[[L,$.value==1]]),S(l(Ae,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:u},null,512),[[L,$.value==2]]),S(l(te,null,null,512),[[L,$.value==2]]),S(l(Ft,{ref:"detailRef"},null,512),[[L,$.value==2]])]))}};export{Jt as default}; diff --git a/dist/assets/index-BFSnqOmy.js b/dist/assets/index-D7wY4kwL.js similarity index 98% rename from dist/assets/index-BFSnqOmy.js rename to dist/assets/index-D7wY4kwL.js index b29ef6d..d5cd1c2 100644 --- a/dist/assets/index-BFSnqOmy.js +++ b/dist/assets/index-D7wY4kwL.js @@ -1 +1 @@ -import{_ as T,u as j,r as _,b as y,j as N,c as t,h as o,e,f as n,w as u,g as v,k as J,p as q,F as U,i as F,l as A,t as d,d as K,q as l,m as O,s as H,v as M,z as Q,E}from"./index-BSeKe2ro.js";import{e as W,p as X,f as Y,g as Z}from"./pay-BcpR4WJS.js";import{p as ee}from"./padding-XLGqX7ns.js";const te=h=>(H("data-v-477f396c"),h=h(),M(),h),se={class:"my-order"},oe={class:"header-nav"},ae=te(()=>e("div",{class:"nav-item"},"订单列表",-1)),ie={class:"nav-item-clear"},le={class:"header-input"},ne={class:"order-list","infinite-scroll-distance":"300","infinite-scroll-delay":"500",style:{overflow:"auto"}},ce=["onClick"],de={class:"top"},_e={class:"create-time"},re={class:"shop"},ue={key:0,class:"left"},ve={key:0,class:"shop-name"},pe={class:"right"},fe={class:"money"},me={class:"count"},he={class:"bottom"},ye={class:"pay"},ge={key:0},ke={key:0},$e={key:1},be={key:2},Ce={key:3},Ve={key:4},we={key:5},Se={key:6},Pe={key:1,style:{color:"#ff4a00"}},Le={key:0,class:"cashier"},xe={key:1,class:"cashier"},Ie={key:0,class:"load-end"},Ae={key:1,class:"load-end"},Re={__name:"order",setup(h){const P=j();_([]);const a=_(1),S=$=>{f.value.page=1,m.value=!1,r.value=!1,k.value=[],C(!0)};_(null);const f=_({page:1,limit:20,search_info:""}),r=_(!1),L=_(0),V=_(0),m=_(!1),k=_([]),C=($=!1)=>{if($)f.value.page=1;else if(m.value||r.value)return;r.value=!0,a.value==1&&(f.value.paid=null),a.value==2&&(f.value.paid=0),W(P.userInfo.service.mer_id,f.value).then(i=>{$?k.value=i.data.list:k.value=[...k.value,...i.data.list],i.data.list.length{m.value=!0,r.value=!1})},R=($,i)=>{V.value=i,O.emit("set-order-detail",$)};return($,i)=>{const c=y("el-radio-button"),x=y("el-radio-group"),w=y("el-button"),z=y("el-input"),b=y("el-image"),B=N("loading"),D=N("infinite-scroll");return t(),o("div",se,[e("div",oe,[ae,e("div",ie,[n(x,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=s=>a.value=s),onChange:S,size:"small"},{default:u(()=>[n(c,{value:1},{default:u(()=>[v("全部")]),_:1}),n(c,{value:2},{default:u(()=>[v("未支付")]),_:1})]),_:1},8,["modelValue"])])]),e("div",le,[n(z,{modelValue:f.value.search_info,"onUpdate:modelValue":i[2]||(i[2]=s=>f.value.search_info=s),placeholder:"请输入订单编号",onKeydown:i[3]||(i[3]=J(s=>C(!0),["enter"])),onClear:i[4]||(i[4]=s=>C(!0)),clearable:""},{append:u(()=>[n(w,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 5px 5px 0"},onClick:i[1]||(i[1]=s=>C(!0))},{default:u(()=>[v("搜索")]),_:1})]),_:1},8,["modelValue"])]),q((t(),o("div",ne,[(t(!0),o(U,null,F(k.value,(s,g)=>(t(),o("div",{class:A(["item",{"item-active":V.value==g}]),key:g,onClick:I=>R(s,g)},[e("div",de,[e("div",{class:A(["sn",s.pay_type===11||s.pay_type===12||s.pay_type===13?"cahier":"cahier2"])},"单号: "+d(s.order_sn),3),e("div",_e,d(s.create_time),1)]),e("div",re,[s.orderProduct?(t(),o("div",ue,[(t(!0),o(U,null,F(s.orderProduct.slice(0,5),(I,G)=>(t(),K(b,{key:G,src:I.cart_info.productAttr.image||I.cart_info.product.image,class:"shop-img"},null,8,["src"]))),128)),s.orderProduct.length==1?(t(),o("div",ve,d(s.orderProduct[0].cart_info.product.store_name),1)):l("",!0)])):l("",!0),e("div",pe,[e("div",fe,"¥"+d(s.pay_price),1),e("div",me,"共"+d(s.total_num)+"件商品",1)])]),e("div",he,[e("div",ye,[s.paid?(t(),o("div",ge,[v(" 已支付 "),s.pay_type==13?(t(),o("span",ke,"(支付宝收款)")):l("",!0),s.pay_type==12?(t(),o("span",$e,"(现金支付)")):l("",!0),s.pay_type==11?(t(),o("span",be,"(微信收款)")):l("",!0),s.pay_type==0?(t(),o("span",Ce,"(余额支付)")):l("",!0),s.pay_type==1?(t(),o("span",Ve,"(微信支付)")):l("",!0),s.pay_type==9?(t(),o("span",we,"(商户余额支付)")):l("",!0),s.pay_type==10?(t(),o("span",Se,"(对公转账)")):l("",!0)])):(t(),o("div",Pe,"未支付"))]),s.service_info?(t(),o("div",Le,"收银员: "+d(s.service_info.nickname),1)):(t(),o("div",xe,"平台订单"))])],10,ce))),128)),m.value?(t(),o("div",Ie,"没有更多了")):l("",!0),r.value?(t(),o("div",Ae,"加载中...")):l("",!0)])),[[B,r.value],[D,C]])])}}},ze=T(Re,[["__scopeId","data-v-477f396c"]]),p=h=>(H("data-v-f0903720"),h=h(),M(),h),Be={class:"my-order"},De={class:"header-nav"},Ee=["onClick"],Ne={class:"detail"},Ue={key:0,class:"table"},Fe={style:{"font-size":"0.9rem"}},Ke={style:{color:"#ff4a00"}},Oe={style:{display:"flex","align-items":"center"}},Te={style:{"margin-left":"0.5rem"}},je={key:1,class:"table"},qe=p(()=>e("div",{class:"table-title"},"订单信息",-1)),He={class:"table-info"},Me={class:"info-item"},Ge=p(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Je={class:"info-item-info"},Qe={class:"info-item"},We=p(()=>e("div",{class:"info-item-title"},"商品总数:",-1)),Xe={class:"info-item-info"},Ye={class:"info-item"},Ze=p(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=p(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=p(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},ct=p(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),dt={class:"info-item-info"},_t={class:"info-item"},rt=p(()=>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:6},kt={key:0,class:"table-title"},$t={key:1,class:"table-info",style:{"flex-direction":"column"}},bt={class:"info-item"},Ct=p(()=>e("div",{class:"info-item-title"},"头像:",-1)),Vt={class:"info-item-info"},wt={class:"info-item"},St=p(()=>e("div",{class:"info-item-title"},"昵称:",-1)),Pt={class:"info-item-info"},Lt={class:"info-item"},xt=p(()=>e("div",{class:"info-item-title"},"账号:",-1)),It={class:"info-item-info"},At={key:2,class:"footer"},Rt={class:"info"},zt={class:"ser"},Bt={class:"price"},Dt={key:0,class:"handle"},Et={key:1,class:"handle"},Nt=p(()=>e("span",null,"提单前请清空购物车, 避免提单的商品与购物车商品混合, 请确保购物车内无数据后再进行提单",-1)),Ut={class:"dialog-footer"},Ft={__name:"detail",setup(h){j();const P=Q(),a=_({});O.on("set-order-detail",i=>{a.value=i}),_([]);const S=_(null),f=_(!1);_(0);const r=_(0),L=_(["商品信息","订单详情"]),V=_(""),m=_(!1),k=i=>{V.value=i,m.value=!0},C=()=>{m.value=!1,Y({order_sn:V.value}).then(i=>{E({message:i.message,type:"success"}),P.push({name:"home"})})},R=i=>{S.value.setRePay({price:i.pay_price,order_id:i.group_order_id}),S.value.drawer=!0},$=i=>{Z({order_sn:i}).then(c=>{c.data.paid==1||c.message=="支付成功"?E({message:c.message,type:"success"}):E({message:c.message,type:"error"})}).catch(c=>{})};return(i,c)=>{const x=y("el-image"),w=y("el-table-column"),z=y("el-table"),b=y("el-button"),B=y("el-dialog"),D=N("loading");return t(),o("div",Be,[e("div",De,[(t(!0),o(U,null,F(L.value,(s,g)=>(t(),o("div",{key:g,class:A(["nav-item",{"nav-item-active":r.value==g,"nav-item-radius1":r.value==g+1,"nav-item-radius2":r.value==g-1}]),onClick:I=>r.value=g},d(s),11,Ee))),128)),e("div",{class:A(["nav-item",{"nav-item-radius2":r.value==L.value.length-1}]),style:{flex:"1"}},null,2)]),q((t(),o("div",Ne,[a.value.orderProduct&&r.value==0?(t(),o("div",Ue,[e("div",Fe,[v(" 共计 "),e("span",Ke,d(a.value.total_num),1),v(" 件商品 ")]),n(z,{style:{height:"calc(100vh - 100px - 14rem)"},data:a.value.orderProduct},{default:u(()=>[n(w,{prop:"cart_info.product.store_name",label:"商品信息"},{default:u(({row:s})=>[e("div",Oe,[n(x,{style:{height:"3rem",width:"3rem"},src:s.cart_info.productAttr.image||s.cart_info.product.image},null,8,["src"]),e("span",Te,d(s.cart_info.product.store_name),1)])]),_:1}),n(w,{prop:"cart_info.productAttr.price",label:"单价",width:"150"}),n(w,{prop:"product_num",label:"数量",width:"150"}),n(w,{prop:"total_price",label:"总价",width:"150"})]),_:1},8,["data"])])):l("",!0),a.value.orderProduct&&r.value==1?(t(),o("div",je,[qe,e("div",He,[e("div",Me,[Ge,e("div",Je,d(a.value.create_time),1)]),e("div",Qe,[We,e("div",Xe,d(a.value.total_num),1)]),e("div",Ye,[Ze,e("div",et,"¥"+d(a.value.total_price),1)]),e("div",tt,[st,e("div",ot,d(a.value.pay_time),1)]),e("div",at,[it,e("div",lt,"¥"+d(a.value.deduction_price),1)]),e("div",nt,[ct,e("div",dt,"¥"+d(a.value.pay_price),1)]),e("div",_t,[rt,e("div",ut,[a.value.pay_type==11?(t(),o("span",vt,"微信收款")):l("",!0),a.value.pay_type==12?(t(),o("span",pt,"现金支付")):l("",!0),a.value.pay_type==13?(t(),o("span",ft,"支付宝收款")):l("",!0),a.value.pay_type==0?(t(),o("span",mt,"余额支付")):l("",!0),a.value.pay_type==1?(t(),o("span",ht,"微信支付")):l("",!0),a.value.pay_type==9?(t(),o("span",yt,"商户余额支付")):l("",!0),a.value.pay_type==10?(t(),o("span",gt,"对公转账")):l("",!0)])])]),a.value.service_info?(t(),o("div",kt,"收银员信息")):l("",!0),a.value.service_info?(t(),o("div",$t,[e("div",bt,[Ct,e("div",Vt,[n(x,{style:{height:"4rem",width:"4rem","border-radius":"50%"},src:a.value.service_info.avatar},null,8,["src"])])]),e("div",wt,[St,e("div",Pt,d(a.value.service_info.nickname),1)]),e("div",Lt,[xt,e("div",It,d(a.value.service_info.account),1)])])):l("",!0)])):l("",!0),a.value.service_info?(t(),o("div",At,[e("div",Rt,[e("div",zt,"收银员: "+d(a.value.service_info.nickname),1),e("div",Bt,[v(" 实付: "),e("span",null,"¥"+d(a.value.pay_price),1)])]),a.value.pay_time?(t(),o("div",Et,"已支付")):(t(),o("div",Dt,[n(b,{class:"btn",type:"primary",onClick:c[0]||(c[0]=s=>R(a.value))},{default:u(()=>[v("重新支付")]),_:1}),n(b,{class:"btn",type:"primary",onClick:c[1]||(c[1]=s=>$(a.value.order_sn))},{default:u(()=>[v("检测状态")]),_:1}),n(b,{class:"btn",type:"success",onClick:c[2]||(c[2]=s=>k(a.value.order_sn))},{default:u(()=>[v("提单")]),_:1})]))])):l("",!0)])),[[D,f.value]]),n(X,{ref_key:"payRef",ref:S},null,512),n(B,{modelValue:m.value,"onUpdate:modelValue":c[4]||(c[4]=s=>m.value=s),title:"提示",width:"500"},{footer:u(()=>[e("div",Ut,[n(b,{onClick:c[3]||(c[3]=s=>m.value=!1)},{default:u(()=>[v("取消")]),_:1}),i.cartCount>0?(t(),K(b,{key:0,onClick:i.goHome},{default:u(()=>[v(" 前去清空购物车 ")]),_:1},8,["onClick"])):(t(),K(b,{key:1,type:"primary",onClick:C},{default:u(()=>[v(" 确认提单 ")]),_:1}))])]),default:u(()=>[Nt]),_:1},8,["modelValue"])])}}},Kt=T(Ft,[["__scopeId","data-v-f0903720"]]),Ot={class:"my-card"},Ht={__name:"index",setup(h){return(P,a)=>(t(),o("div",Ot,[n(ze,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),n(ee),n(Kt,{ref:"detailRef"},null,512)]))}};export{Ht as default}; +import{_ as T,u as j,r as _,b as y,j as N,c as t,h as o,e,f as n,w as u,g as v,k as J,p as q,F as U,i as F,l as A,t as d,d as K,q as l,m as O,s as H,v as M,z as Q,E}from"./index-CDJP75me.js";import{e as W,p as X,f as Y,g as Z}from"./pay-BajYk3t1.js";import{p as ee}from"./padding-BXN6xH5X.js";const te=h=>(H("data-v-477f396c"),h=h(),M(),h),se={class:"my-order"},oe={class:"header-nav"},ae=te(()=>e("div",{class:"nav-item"},"订单列表",-1)),ie={class:"nav-item-clear"},le={class:"header-input"},ne={class:"order-list","infinite-scroll-distance":"300","infinite-scroll-delay":"500",style:{overflow:"auto"}},ce=["onClick"],de={class:"top"},_e={class:"create-time"},re={class:"shop"},ue={key:0,class:"left"},ve={key:0,class:"shop-name"},pe={class:"right"},fe={class:"money"},me={class:"count"},he={class:"bottom"},ye={class:"pay"},ge={key:0},ke={key:0},$e={key:1},be={key:2},Ce={key:3},Ve={key:4},we={key:5},Se={key:6},Pe={key:1,style:{color:"#ff4a00"}},Le={key:0,class:"cashier"},xe={key:1,class:"cashier"},Ie={key:0,class:"load-end"},Ae={key:1,class:"load-end"},Re={__name:"order",setup(h){const P=j();_([]);const a=_(1),S=$=>{f.value.page=1,m.value=!1,r.value=!1,k.value=[],C(!0)};_(null);const f=_({page:1,limit:20,search_info:""}),r=_(!1),L=_(0),V=_(0),m=_(!1),k=_([]),C=($=!1)=>{if($)f.value.page=1;else if(m.value||r.value)return;r.value=!0,a.value==1&&(f.value.paid=null),a.value==2&&(f.value.paid=0),W(P.userInfo.service.mer_id,f.value).then(i=>{$?k.value=i.data.list:k.value=[...k.value,...i.data.list],i.data.list.length{m.value=!0,r.value=!1})},R=($,i)=>{V.value=i,O.emit("set-order-detail",$)};return($,i)=>{const c=y("el-radio-button"),x=y("el-radio-group"),w=y("el-button"),z=y("el-input"),b=y("el-image"),B=N("loading"),D=N("infinite-scroll");return t(),o("div",se,[e("div",oe,[ae,e("div",ie,[n(x,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=s=>a.value=s),onChange:S,size:"small"},{default:u(()=>[n(c,{value:1},{default:u(()=>[v("全部")]),_:1}),n(c,{value:2},{default:u(()=>[v("未支付")]),_:1})]),_:1},8,["modelValue"])])]),e("div",le,[n(z,{modelValue:f.value.search_info,"onUpdate:modelValue":i[2]||(i[2]=s=>f.value.search_info=s),placeholder:"请输入订单编号",onKeydown:i[3]||(i[3]=J(s=>C(!0),["enter"])),onClear:i[4]||(i[4]=s=>C(!0)),clearable:""},{append:u(()=>[n(w,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 5px 5px 0"},onClick:i[1]||(i[1]=s=>C(!0))},{default:u(()=>[v("搜索")]),_:1})]),_:1},8,["modelValue"])]),q((t(),o("div",ne,[(t(!0),o(U,null,F(k.value,(s,g)=>(t(),o("div",{class:A(["item",{"item-active":V.value==g}]),key:g,onClick:I=>R(s,g)},[e("div",de,[e("div",{class:A(["sn",s.pay_type===11||s.pay_type===12||s.pay_type===13?"cahier":"cahier2"])},"单号: "+d(s.order_sn),3),e("div",_e,d(s.create_time),1)]),e("div",re,[s.orderProduct?(t(),o("div",ue,[(t(!0),o(U,null,F(s.orderProduct.slice(0,5),(I,G)=>(t(),K(b,{key:G,src:I.cart_info.productAttr.image||I.cart_info.product.image,class:"shop-img"},null,8,["src"]))),128)),s.orderProduct.length==1?(t(),o("div",ve,d(s.orderProduct[0].cart_info.product.store_name),1)):l("",!0)])):l("",!0),e("div",pe,[e("div",fe,"¥"+d(s.pay_price),1),e("div",me,"共"+d(s.total_num)+"件商品",1)])]),e("div",he,[e("div",ye,[s.paid?(t(),o("div",ge,[v(" 已支付 "),s.pay_type==13?(t(),o("span",ke,"(支付宝收款)")):l("",!0),s.pay_type==12?(t(),o("span",$e,"(现金支付)")):l("",!0),s.pay_type==11?(t(),o("span",be,"(微信收款)")):l("",!0),s.pay_type==0?(t(),o("span",Ce,"(余额支付)")):l("",!0),s.pay_type==1?(t(),o("span",Ve,"(微信支付)")):l("",!0),s.pay_type==9?(t(),o("span",we,"(商户余额支付)")):l("",!0),s.pay_type==10?(t(),o("span",Se,"(对公转账)")):l("",!0)])):(t(),o("div",Pe,"未支付"))]),s.service_info?(t(),o("div",Le,"收银员: "+d(s.service_info.nickname),1)):(t(),o("div",xe,"平台订单"))])],10,ce))),128)),m.value?(t(),o("div",Ie,"没有更多了")):l("",!0),r.value?(t(),o("div",Ae,"加载中...")):l("",!0)])),[[B,r.value],[D,C]])])}}},ze=T(Re,[["__scopeId","data-v-477f396c"]]),p=h=>(H("data-v-f0903720"),h=h(),M(),h),Be={class:"my-order"},De={class:"header-nav"},Ee=["onClick"],Ne={class:"detail"},Ue={key:0,class:"table"},Fe={style:{"font-size":"0.9rem"}},Ke={style:{color:"#ff4a00"}},Oe={style:{display:"flex","align-items":"center"}},Te={style:{"margin-left":"0.5rem"}},je={key:1,class:"table"},qe=p(()=>e("div",{class:"table-title"},"订单信息",-1)),He={class:"table-info"},Me={class:"info-item"},Ge=p(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Je={class:"info-item-info"},Qe={class:"info-item"},We=p(()=>e("div",{class:"info-item-title"},"商品总数:",-1)),Xe={class:"info-item-info"},Ye={class:"info-item"},Ze=p(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=p(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=p(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},ct=p(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),dt={class:"info-item-info"},_t={class:"info-item"},rt=p(()=>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:6},kt={key:0,class:"table-title"},$t={key:1,class:"table-info",style:{"flex-direction":"column"}},bt={class:"info-item"},Ct=p(()=>e("div",{class:"info-item-title"},"头像:",-1)),Vt={class:"info-item-info"},wt={class:"info-item"},St=p(()=>e("div",{class:"info-item-title"},"昵称:",-1)),Pt={class:"info-item-info"},Lt={class:"info-item"},xt=p(()=>e("div",{class:"info-item-title"},"账号:",-1)),It={class:"info-item-info"},At={key:2,class:"footer"},Rt={class:"info"},zt={class:"ser"},Bt={class:"price"},Dt={key:0,class:"handle"},Et={key:1,class:"handle"},Nt=p(()=>e("span",null,"提单前请清空购物车, 避免提单的商品与购物车商品混合, 请确保购物车内无数据后再进行提单",-1)),Ut={class:"dialog-footer"},Ft={__name:"detail",setup(h){j();const P=Q(),a=_({});O.on("set-order-detail",i=>{a.value=i}),_([]);const S=_(null),f=_(!1);_(0);const r=_(0),L=_(["商品信息","订单详情"]),V=_(""),m=_(!1),k=i=>{V.value=i,m.value=!0},C=()=>{m.value=!1,Y({order_sn:V.value}).then(i=>{E({message:i.message,type:"success"}),P.push({name:"home"})})},R=i=>{S.value.setRePay({price:i.pay_price,order_id:i.group_order_id}),S.value.drawer=!0},$=i=>{Z({order_sn:i}).then(c=>{c.data.paid==1||c.message=="支付成功"?E({message:c.message,type:"success"}):E({message:c.message,type:"error"})}).catch(c=>{})};return(i,c)=>{const x=y("el-image"),w=y("el-table-column"),z=y("el-table"),b=y("el-button"),B=y("el-dialog"),D=N("loading");return t(),o("div",Be,[e("div",De,[(t(!0),o(U,null,F(L.value,(s,g)=>(t(),o("div",{key:g,class:A(["nav-item",{"nav-item-active":r.value==g,"nav-item-radius1":r.value==g+1,"nav-item-radius2":r.value==g-1}]),onClick:I=>r.value=g},d(s),11,Ee))),128)),e("div",{class:A(["nav-item",{"nav-item-radius2":r.value==L.value.length-1}]),style:{flex:"1"}},null,2)]),q((t(),o("div",Ne,[a.value.orderProduct&&r.value==0?(t(),o("div",Ue,[e("div",Fe,[v(" 共计 "),e("span",Ke,d(a.value.total_num),1),v(" 件商品 ")]),n(z,{style:{height:"calc(100vh - 100px - 14rem)"},data:a.value.orderProduct},{default:u(()=>[n(w,{prop:"cart_info.product.store_name",label:"商品信息"},{default:u(({row:s})=>[e("div",Oe,[n(x,{style:{height:"3rem",width:"3rem"},src:s.cart_info.productAttr.image||s.cart_info.product.image},null,8,["src"]),e("span",Te,d(s.cart_info.product.store_name),1)])]),_:1}),n(w,{prop:"cart_info.productAttr.price",label:"单价",width:"150"}),n(w,{prop:"product_num",label:"数量",width:"150"}),n(w,{prop:"total_price",label:"总价",width:"150"})]),_:1},8,["data"])])):l("",!0),a.value.orderProduct&&r.value==1?(t(),o("div",je,[qe,e("div",He,[e("div",Me,[Ge,e("div",Je,d(a.value.create_time),1)]),e("div",Qe,[We,e("div",Xe,d(a.value.total_num),1)]),e("div",Ye,[Ze,e("div",et,"¥"+d(a.value.total_price),1)]),e("div",tt,[st,e("div",ot,d(a.value.pay_time),1)]),e("div",at,[it,e("div",lt,"¥"+d(a.value.deduction_price),1)]),e("div",nt,[ct,e("div",dt,"¥"+d(a.value.pay_price),1)]),e("div",_t,[rt,e("div",ut,[a.value.pay_type==11?(t(),o("span",vt,"微信收款")):l("",!0),a.value.pay_type==12?(t(),o("span",pt,"现金支付")):l("",!0),a.value.pay_type==13?(t(),o("span",ft,"支付宝收款")):l("",!0),a.value.pay_type==0?(t(),o("span",mt,"余额支付")):l("",!0),a.value.pay_type==1?(t(),o("span",ht,"微信支付")):l("",!0),a.value.pay_type==9?(t(),o("span",yt,"商户余额支付")):l("",!0),a.value.pay_type==10?(t(),o("span",gt,"对公转账")):l("",!0)])])]),a.value.service_info?(t(),o("div",kt,"收银员信息")):l("",!0),a.value.service_info?(t(),o("div",$t,[e("div",bt,[Ct,e("div",Vt,[n(x,{style:{height:"4rem",width:"4rem","border-radius":"50%"},src:a.value.service_info.avatar},null,8,["src"])])]),e("div",wt,[St,e("div",Pt,d(a.value.service_info.nickname),1)]),e("div",Lt,[xt,e("div",It,d(a.value.service_info.account),1)])])):l("",!0)])):l("",!0),a.value.service_info?(t(),o("div",At,[e("div",Rt,[e("div",zt,"收银员: "+d(a.value.service_info.nickname),1),e("div",Bt,[v(" 实付: "),e("span",null,"¥"+d(a.value.pay_price),1)])]),a.value.pay_time?(t(),o("div",Et,"已支付")):(t(),o("div",Dt,[n(b,{class:"btn",type:"primary",onClick:c[0]||(c[0]=s=>R(a.value))},{default:u(()=>[v("重新支付")]),_:1}),n(b,{class:"btn",type:"primary",onClick:c[1]||(c[1]=s=>$(a.value.order_sn))},{default:u(()=>[v("检测状态")]),_:1}),n(b,{class:"btn",type:"success",onClick:c[2]||(c[2]=s=>k(a.value.order_sn))},{default:u(()=>[v("提单")]),_:1})]))])):l("",!0)])),[[D,f.value]]),n(X,{ref_key:"payRef",ref:S},null,512),n(B,{modelValue:m.value,"onUpdate:modelValue":c[4]||(c[4]=s=>m.value=s),title:"提示",width:"500"},{footer:u(()=>[e("div",Ut,[n(b,{onClick:c[3]||(c[3]=s=>m.value=!1)},{default:u(()=>[v("取消")]),_:1}),i.cartCount>0?(t(),K(b,{key:0,onClick:i.goHome},{default:u(()=>[v(" 前去清空购物车 ")]),_:1},8,["onClick"])):(t(),K(b,{key:1,type:"primary",onClick:C},{default:u(()=>[v(" 确认提单 ")]),_:1}))])]),default:u(()=>[Nt]),_:1},8,["modelValue"])])}}},Kt=T(Ft,[["__scopeId","data-v-f0903720"]]),Ot={class:"my-card"},Ht={__name:"index",setup(h){return(P,a)=>(t(),o("div",Ot,[n(ze,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),n(ee),n(Kt,{ref:"detailRef"},null,512)]))}};export{Ht as default}; diff --git a/dist/assets/index-Dn94DM0i.js b/dist/assets/index-Dn94DM0i.js deleted file mode 100644 index 6ce2345..0000000 --- a/dist/assets/index-Dn94DM0i.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as O,u as j,r as n,b as C,j as K,c as t,h as s,e,f as d,w as f,g as m,k as q,p as S,F as N,i as U,l as A,t as l,d as F,q as a,E as M,m as I,s as H,v as G,z as Q,o as W,n as T,B as L,C as X}from"./index-BSeKe2ro.js";import{v as Y,p as Z,f as ee}from"./pay-BcpR4WJS.js";import{p as te}from"./padding-XLGqX7ns.js";const se=h=>(H("data-v-9936e733"),h=h(),G(),h),oe={class:"my-order"},ie={class:"header-nav"},ae=se(()=>e("div",{class:"nav-item"},"核销订单",-1)),ne={class:"nav-item-clear"},le={class:"header-input"},ce={class:"order-list","infinite-scroll-distance":"300","infinite-scroll-delay":"500","infinite-scroll-immediate":"false",style:{overflow:"auto"}},de=["onClick"],_e={class:"top"},re={class:"create-time"},ue={class:"shop"},ve={key:0,class:"left"},pe={key:0,class:"shop-name"},fe={class:"right"},he={class:"money"},ye={class:"count"},me={class:"bottom"},ke={class:"pay"},ge={key:0},$e={key:0},be={key:1},Ce={key:2},we={key:3},Se={key:4},Ve={key:5},xe={key:6},Pe={key:1,style:{color:"#ff4a00"}},Re={key:0,class:"cashier"},Le={key:1,class:"cashier"},Ie={key:0,class:"load-end"},Ae={key:1,class:"load-end"},Be={__name:"order",setup(h,{expose:k}){const i=j();n([]);const g=n(1);n(null);const r=n({page:1,limit:20,search_info:""}),c=n(!1);n(0);const V=n(0),b=n(!1),p=n([]),x=(u=!1)=>{if(!r.value.search_info)return M.error("请输入订单编号");if(u)r.value.page=1;else if(b.value||c.value)return;c.value=!0,g.value==1&&(r.value.paid=null),g.value==2&&(r.value.paid=0),p.value=[],I.emit("set-order-detail",{}),Y(i.userInfo.service.mer_id,r.value.search_info).then(_=>{p.value=[_.data],I.emit("set-order-detail",p.value[0]),c.value=!1}).catch(_=>{b.value=!0,c.value=!1})},B=(u,_)=>{V.value=_,I.emit("set-order-detail",u)};return k({setCode:u=>{r.value.search_info=u,x(!0)}}),(u,_)=>{const w=C("el-button"),E=C("el-input"),P=C("el-image"),z=K("loading"),D=K("infinite-scroll");return t(),s("div",oe,[e("div",ie,[ae,e("div",ne,[d(w,{type:"primary",size:"small"},{default:f(()=>[m("返回上一页")]),_:1})])]),e("div",le,[d(E,{modelValue:r.value.search_info,"onUpdate:modelValue":_[1]||(_[1]=o=>r.value.search_info=o),placeholder:"请输入订单编号",onKeydown:_[2]||(_[2]=q(o=>x(!0),["enter"])),clearable:""},{append:f(()=>[d(w,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 5px 5px 0"},onClick:_[0]||(_[0]=o=>x(!0))},{default:f(()=>[m("搜索")]),_:1})]),_:1},8,["modelValue"])]),S((t(),s("div",ce,[(t(!0),s(N,null,U(p.value,(o,$)=>(t(),s("div",{class:A(["item",{"item-active":V.value==$}]),key:$,onClick:R=>B(o,$)},[e("div",_e,[e("div",{class:A(["sn",o.pay_type===11||o.pay_type===12||o.pay_type===13?"cahier":"cahier2"])},"单号: "+l(o.order_sn),3),e("div",re,l(o.create_time),1)]),e("div",ue,[o.orderProduct?(t(),s("div",ve,[(t(!0),s(N,null,U(o.orderProduct.slice(0,5),(R,J)=>(t(),F(P,{key:J,src:R.cart_info.productAttr.image||R.cart_info.product.image,class:"shop-img"},null,8,["src"]))),128)),o.orderProduct.length==1?(t(),s("div",pe,l(o.orderProduct[0].cart_info.product.store_name),1)):a("",!0)])):a("",!0),e("div",fe,[e("div",he,"¥"+l(o.pay_price),1),e("div",ye,"共"+l(o.total_num)+"件商品",1)])]),e("div",me,[e("div",ke,[o.paid?(t(),s("div",ge,[m(" 已支付 "),o.pay_type==13?(t(),s("span",$e,"(支付宝收款)")):a("",!0),o.pay_type==12?(t(),s("span",be,"(现金支付)")):a("",!0),o.pay_type==11?(t(),s("span",Ce,"(微信收款)")):a("",!0),o.pay_type==0?(t(),s("span",we,"(余额支付)")):a("",!0),o.pay_type==1?(t(),s("span",Se,"(微信支付)")):a("",!0),o.pay_type==9?(t(),s("span",Ve,"(商户余额支付)")):a("",!0),o.pay_type==10?(t(),s("span",xe,"(对公转账)")):a("",!0)])):(t(),s("div",Pe,"未支付"))]),o.service_info?(t(),s("div",Re,"收银员: "+l(o.service_info.nickname),1)):(t(),s("div",Le,"平台订单"))])],10,de))),128)),b.value?(t(),s("div",Ie,"没有更多了")):a("",!0),c.value?(t(),s("div",Ae,"加载中...")):a("",!0)])),[[z,c.value],[D,x]])])}}},Ee=O(Be,[["__scopeId","data-v-9936e733"]]),v=h=>(H("data-v-2ec0b2dc"),h=h(),G(),h),ze={class:"my-order"},De={class:"header-nav"},Ke=["onClick"],Ne={class:"detail"},Ue={key:0,class:"table"},Fe={style:{"font-size":"0.9rem"}},Me={style:{color:"#ff4a00"}},Te={style:{display:"flex","align-items":"center"}},Oe={style:{"margin-left":"0.5rem"}},je={key:1,class:"table"},qe=v(()=>e("div",{class:"table-title"},"订单信息",-1)),He={class:"table-info"},Ge={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)),Ye={class:"info-item-info"},Ze={class:"info-item"},et=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),tt={class:"info-item-info"},st={class:"info-item"},ot=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),it={class:"info-item-info"},at={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),lt={class:"info-item-info"},ct={class:"info-item"},dt=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),_t={class:"info-item-info"},rt={class:"info-item"},ut=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),vt={class:"info-item-info"},pt={key:0},ft={key:1},ht={key:2},yt={key:3},mt={key:4},kt={key:5},gt={key:6},$t={key:0,class:"table-title"},bt={key:1,class:"table-info",style:{"flex-direction":"column"}},Ct={class:"info-item"},wt=v(()=>e("div",{class:"info-item-title"},"头像:",-1)),St={class:"info-item-info"},Vt={class:"info-item"},xt=v(()=>e("div",{class:"info-item-title"},"昵称:",-1)),Pt={class:"info-item-info"},Rt={class:"info-item"},Lt=v(()=>e("div",{class:"info-item-title"},"账号:",-1)),It={class:"info-item-info"},At={class:"footer"},Bt={class:"info"},Et={class:"price"},zt={key:0,class:"handle"},Dt={key:1,class:"handle"},Kt=v(()=>e("span",null,"提单前请清空购物车, 避免提单的商品与购物车商品混合, 请确保购物车内无数据后再进行提单",-1)),Nt={class:"dialog-footer"},Ut={__name:"detail",setup(h){j();const k=Q(),i=n({});I.on("set-order-detail",y=>{i.value=y}),n([]);const g=n(null),r=n(!1);n(0);const c=n(0),V=n(["商品信息","订单详情"]),b=n(""),p=n(!1),x=()=>{p.value=!1,ee({order_sn:b.value}).then(y=>{M({message:y.message,type:"success"}),k.push({name:"home"})})},B=y=>{g.value.setRePay({price:y.pay_price,order_id:y.group_order_id}),g.value.drawer=!0};return(y,u)=>{const _=C("el-image"),w=C("el-table-column"),E=C("el-table"),P=C("el-button"),z=C("el-dialog"),D=K("loading");return t(),s("div",ze,[e("div",De,[(t(!0),s(N,null,U(V.value,(o,$)=>(t(),s("div",{key:$,class:A(["nav-item",{"nav-item-active":c.value==$,"nav-item-radius1":c.value==$+1,"nav-item-radius2":c.value==$-1}]),onClick:R=>c.value=$},l(o),11,Ke))),128)),e("div",{class:A(["nav-item",{"nav-item-radius2":c.value==V.value.length-1}]),style:{flex:"1"}},null,2)]),S((t(),s("div",Ne,[i.value.orderProduct&&c.value==0?(t(),s("div",Ue,[e("div",Fe,[m(" 共计 "),e("span",Me,l(i.value.total_num),1),m(" 件商品 ")]),d(E,{style:{height:"calc(100vh - 100px - 14rem)"},data:i.value.orderProduct},{default:f(()=>[d(w,{prop:"cart_info.product.store_name",label:"商品信息"},{default:f(({row:o})=>[e("div",Te,[d(_,{style:{height:"3rem",width:"3rem"},src:o.cart_info.productAttr.image||o.cart_info.product.image},null,8,["src"]),e("span",Oe,l(o.cart_info.product.store_name),1)])]),_:1}),d(w,{prop:"cart_info.productAttr.price",label:"单价",width:"150"}),d(w,{prop:"product_num",label:"数量",width:"150"}),d(w,{prop:"total_price",label:"总价",width:"150"})]),_:1},8,["data"])])):a("",!0),i.value.orderProduct&&c.value==1?(t(),s("div",je,[qe,e("div",He,[e("div",Ge,[Je,e("div",Qe,l(i.value.create_time),1)]),e("div",We,[Xe,e("div",Ye,l(i.value.total_num),1)]),e("div",Ze,[et,e("div",tt,"¥"+l(i.value.total_price),1)]),e("div",st,[ot,e("div",it,l(i.value.pay_time),1)]),e("div",at,[nt,e("div",lt,"¥"+l(i.value.deduction_price),1)]),e("div",ct,[dt,e("div",_t,"¥"+l(i.value.pay_price),1)]),e("div",rt,[ut,e("div",vt,[i.value.pay_type==11?(t(),s("span",pt,"微信收款")):a("",!0),i.value.pay_type==12?(t(),s("span",ft,"现金支付")):a("",!0),i.value.pay_type==13?(t(),s("span",ht,"支付宝收款")):a("",!0),i.value.pay_type==0?(t(),s("span",yt,"余额支付")):a("",!0),i.value.pay_type==1?(t(),s("span",mt,"微信支付")):a("",!0),i.value.pay_type==9?(t(),s("span",kt,"商户余额支付")):a("",!0),i.value.pay_type==10?(t(),s("span",gt,"对公转账")):a("",!0)])])]),i.value.service_info?(t(),s("div",$t,"收银员信息")):a("",!0),i.value.service_info?(t(),s("div",bt,[e("div",Ct,[wt,e("div",St,[d(_,{style:{height:"4rem",width:"4rem","border-radius":"50%"},src:i.value.service_info.avatar},null,8,["src"])])]),e("div",Vt,[xt,e("div",Pt,l(i.value.service_info.nickname),1)]),e("div",Rt,[Lt,e("div",It,l(i.value.service_info.account),1)])])):a("",!0)])):a("",!0),e("div",At,[e("div",Bt,[e("div",Et,[m(" 实付: "),e("span",null,"¥"+l(i.value.pay_price),1)])]),i.value.verify_status==0?(t(),s("div",zt,[d(P,{class:"btn",type:"warning",onClick:u[0]||(u[0]=o=>B(i.value))},{default:f(()=>[m("核销")]),_:1})])):(t(),s("div",Dt,"已支付"))])])),[[D,r.value]]),d(Z,{ref_key:"payRef",ref:g},null,512),d(z,{modelValue:p.value,"onUpdate:modelValue":u[2]||(u[2]=o=>p.value=o),title:"提示",width:"500"},{footer:f(()=>[e("div",Nt,[d(P,{onClick:u[1]||(u[1]=o=>p.value=!1)},{default:f(()=>[m("取消")]),_:1}),y.cartCount>0?(t(),F(P,{key:0,onClick:y.goHome},{default:f(()=>[m(" 前去清空购物车 ")]),_:1},8,["onClick"])):(t(),F(P,{key:1,type:"primary",onClick:x},{default:f(()=>[m(" 确认提单 ")]),_:1}))])]),default:f(()=>[Kt]),_:1},8,["modelValue"])])}}},Ft=O(Ut,[["__scopeId","data-v-2ec0b2dc"]]),Mt={class:"my-card"},Tt={class:"my-code"},Ot=e("h2",null,"订单核销",-1),jt={class:"box"},Jt={__name:"index",setup(h){const k=n(1),i=n("2439926081480600"),g=n(null),r=n(null),c=()=>{if(i.value=="")return M.error("请输入订单编号");k.value=2,T(()=>{r.value.setCode(i.value)})};return W(()=>{T(()=>{g.value.focus()})}),(V,b)=>(t(),s("div",Mt,[S(e("div",Tt,[Ot,e("div",jt,[S(e("input",{ref_key:"inputRef",ref:g,"onUpdate:modelValue":b[0]||(b[0]=p=>i.value=p),placeholder:"",class:"input",onKeyup:q(c,["enter"])},null,544),[[X,i.value]]),e("div",{class:"btn",onClick:c},"查询")])],512),[[L,k.value==1]]),S(d(Ee,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:r},null,512),[[L,k.value==2]]),S(d(te,null,null,512),[[L,k.value==2]]),S(d(Ft,{ref:"detailRef"},null,512),[[L,k.value==2]])]))}};export{Jt as default}; diff --git a/dist/assets/indexList-B-91xBrU.js b/dist/assets/indexList-Cb2zn8_B.js similarity index 96% rename from dist/assets/indexList-B-91xBrU.js rename to dist/assets/indexList-Cb2zn8_B.js index 3683e1c..2918fed 100644 --- a/dist/assets/indexList-B-91xBrU.js +++ b/dist/assets/indexList-Cb2zn8_B.js @@ -1 +1 @@ -import{e as F,a as G,p as J,g as K,f as Q}from"./pay-BcpR4WJS.js";import{_ as W,u as X,r as s,b as d,j as Y,p as Z,c as u,h as v,f as t,w as o,g as r,t as ee,e as P,d as I,z as te,E as h,s as ae,v as oe}from"./index-BSeKe2ro.js";const le=m=>(ae("data-v-80048b20"),m=m(),oe(),m),se={"element-loading-text":"加载中",class:"my-order"},ne={key:0},re={key:1,style:{color:"#ff4a00"}},ie={key:0},de={key:1,class:"flex"},ue=le(()=>P("span",null,"提单前请清空购物车, 避免提单的商品与购物车商品混合, 请确保购物车内无数据后再进行提单",-1)),ce={class:"dialog-footer"},pe={__name:"indexList",setup(m){const k=X(),C=s([]),b=te(),g=s(1),f=s(null),n=s({page:1,limit:20}),y=s(!1),w=s(0),i=()=>{y.value=!0,g.value==1&&(n.value.paid=null),g.value==2&&(n.value.paid=0),F(k.userInfo.service.mer_id,n.value).then(e=>{C.value=e.data.list,w.value=e.data.count,y.value=!1})};i();const x=s(0);(()=>{G({staff_id:k.userInfo.service.service_id}).then(e=>{var a;x.value=(a=e.data.list)==null?void 0:a.length})})();const A=e=>{n.value.page=1,i()},B=e=>{n.value.page=e,i()},D=e=>{n.value.page=e,i()},N=e=>{n.value.page=e,i()},R=()=>{i()},$=e=>{f.value.setRePay({price:e.pay_price,order_id:e.group_order_id}),f.value.drawer=!0},z=e=>{K({order_sn:e}).then(a=>{a.data.paid==1||a.message=="支付成功"?(h({message:a.message,type:"success"}),i()):h({message:a.message,type:"error"})}).catch(a=>{})},L=s(""),E=()=>{_.value=!1,Q({order_sn:L.value}).then(e=>{h({message:e.message,type:"success"}),b.push({name:"home"})})},_=s(!1),U=e=>{L.value=e,_.value=!0},O=()=>{b.push({name:"home"})};return(e,a)=>{const S=d("el-radio-button"),T=d("el-radio-group"),c=d("el-table-column"),p=d("el-button"),j=d("el-table"),H=d("el-pagination"),M=d("el-dialog"),q=Y("loading");return Z((u(),v("div",se,[t(T,{modelValue:g.value,"onUpdate:modelValue":a[0]||(a[0]=l=>g.value=l),style:{"margin-bottom":"30px"},onChange:A},{default:o(()=>[t(S,{value:1},{default:o(()=>[r("全部")]),_:1}),t(S,{value:2},{default:o(()=>[r("未支付")]),_:1})]),_:1},8,["modelValue"]),t(j,{data:C.value,style:{width:"100%"}},{default:o(()=>[t(c,{prop:"group_order_id",label:"ID",width:"100"}),t(c,{prop:"order_sn",label:"订单号",width:"260"}),t(c,{prop:"total_price",label:"订单金额"}),t(c,{prop:"paid",label:"支付状态"},{default:o(l=>[l.row.paid==1?(u(),v("span",ne,"已支付")):(u(),v("span",re,"未支付"))]),_:1}),t(c,{prop:"create_time",label:"订单创建时间"}),t(c,{prop:"pay_time",label:"订单支付时间"},{default:o(l=>[l.row.pay_time?(u(),v("span",ie,ee(l.row.pay_time),1)):(u(),v("div",de,[t(p,{type:"primary",link:"",onClick:V=>$(l.row)},{default:o(()=>[r("重新支付")]),_:2},1032,["onClick"]),t(p,{type:"primary",link:"",onClick:V=>z(l.row.order_sn)},{default:o(()=>[r("检测状态")]),_:2},1032,["onClick"]),t(p,{type:"primary",link:"",onClick:V=>U(l.row.order_sn)},{default:o(()=>[r("提单")]),_:2},1032,["onClick"])]))]),_:1})]),_:1},8,["data"]),t(H,{"page-size":n.value.limit,layout:"prev, pager, next",total:w.value,onPrevClick:B,onNextClick:D,onCurrentChange:N},null,8,["page-size","total"]),t(J,{ref_key:"payRef",ref:f,onPaySuccess:R},null,512),t(M,{modelValue:_.value,"onUpdate:modelValue":a[2]||(a[2]=l=>_.value=l),title:"提示",width:"500"},{footer:o(()=>[P("div",ce,[t(p,{onClick:a[1]||(a[1]=l=>_.value=!1)},{default:o(()=>[r("取消")]),_:1}),x.value>0?(u(),I(p,{key:0,onClick:O},{default:o(()=>[r(" 前去清空购物车 ")]),_:1})):(u(),I(p,{key:1,type:"primary",onClick:E},{default:o(()=>[r(" 确认提单 ")]),_:1}))])]),default:o(()=>[ue]),_:1},8,["modelValue"])])),[[q,y.value]])}}},ge=W(pe,[["__scopeId","data-v-80048b20"]]);export{ge as default}; +import{e as F,a as G,p as J,g as K,f as Q}from"./pay-BajYk3t1.js";import{_ as W,u as X,r as s,b as d,j as Y,p as Z,c as u,h as v,f as t,w as o,g as r,t as ee,e as P,d as I,z as te,E as h,s as ae,v as oe}from"./index-CDJP75me.js";const le=m=>(ae("data-v-80048b20"),m=m(),oe(),m),se={"element-loading-text":"加载中",class:"my-order"},ne={key:0},re={key:1,style:{color:"#ff4a00"}},ie={key:0},de={key:1,class:"flex"},ue=le(()=>P("span",null,"提单前请清空购物车, 避免提单的商品与购物车商品混合, 请确保购物车内无数据后再进行提单",-1)),ce={class:"dialog-footer"},pe={__name:"indexList",setup(m){const k=X(),C=s([]),b=te(),g=s(1),f=s(null),n=s({page:1,limit:20}),y=s(!1),w=s(0),i=()=>{y.value=!0,g.value==1&&(n.value.paid=null),g.value==2&&(n.value.paid=0),F(k.userInfo.service.mer_id,n.value).then(e=>{C.value=e.data.list,w.value=e.data.count,y.value=!1})};i();const x=s(0);(()=>{G({staff_id:k.userInfo.service.service_id}).then(e=>{var a;x.value=(a=e.data.list)==null?void 0:a.length})})();const A=e=>{n.value.page=1,i()},B=e=>{n.value.page=e,i()},D=e=>{n.value.page=e,i()},N=e=>{n.value.page=e,i()},R=()=>{i()},$=e=>{f.value.setRePay({price:e.pay_price,order_id:e.group_order_id}),f.value.drawer=!0},z=e=>{K({order_sn:e}).then(a=>{a.data.paid==1||a.message=="支付成功"?(h({message:a.message,type:"success"}),i()):h({message:a.message,type:"error"})}).catch(a=>{})},L=s(""),E=()=>{_.value=!1,Q({order_sn:L.value}).then(e=>{h({message:e.message,type:"success"}),b.push({name:"home"})})},_=s(!1),U=e=>{L.value=e,_.value=!0},O=()=>{b.push({name:"home"})};return(e,a)=>{const S=d("el-radio-button"),T=d("el-radio-group"),c=d("el-table-column"),p=d("el-button"),j=d("el-table"),H=d("el-pagination"),M=d("el-dialog"),q=Y("loading");return Z((u(),v("div",se,[t(T,{modelValue:g.value,"onUpdate:modelValue":a[0]||(a[0]=l=>g.value=l),style:{"margin-bottom":"30px"},onChange:A},{default:o(()=>[t(S,{value:1},{default:o(()=>[r("全部")]),_:1}),t(S,{value:2},{default:o(()=>[r("未支付")]),_:1})]),_:1},8,["modelValue"]),t(j,{data:C.value,style:{width:"100%"}},{default:o(()=>[t(c,{prop:"group_order_id",label:"ID",width:"100"}),t(c,{prop:"order_sn",label:"订单号",width:"260"}),t(c,{prop:"total_price",label:"订单金额"}),t(c,{prop:"paid",label:"支付状态"},{default:o(l=>[l.row.paid==1?(u(),v("span",ne,"已支付")):(u(),v("span",re,"未支付"))]),_:1}),t(c,{prop:"create_time",label:"订单创建时间"}),t(c,{prop:"pay_time",label:"订单支付时间"},{default:o(l=>[l.row.pay_time?(u(),v("span",ie,ee(l.row.pay_time),1)):(u(),v("div",de,[t(p,{type:"primary",link:"",onClick:V=>$(l.row)},{default:o(()=>[r("重新支付")]),_:2},1032,["onClick"]),t(p,{type:"primary",link:"",onClick:V=>z(l.row.order_sn)},{default:o(()=>[r("检测状态")]),_:2},1032,["onClick"]),t(p,{type:"primary",link:"",onClick:V=>U(l.row.order_sn)},{default:o(()=>[r("提单")]),_:2},1032,["onClick"])]))]),_:1})]),_:1},8,["data"]),t(H,{"page-size":n.value.limit,layout:"prev, pager, next",total:w.value,onPrevClick:B,onNextClick:D,onCurrentChange:N},null,8,["page-size","total"]),t(J,{ref_key:"payRef",ref:f,onPaySuccess:R},null,512),t(M,{modelValue:_.value,"onUpdate:modelValue":a[2]||(a[2]=l=>_.value=l),title:"提示",width:"500"},{footer:o(()=>[P("div",ce,[t(p,{onClick:a[1]||(a[1]=l=>_.value=!1)},{default:o(()=>[r("取消")]),_:1}),x.value>0?(u(),I(p,{key:0,onClick:O},{default:o(()=>[r(" 前去清空购物车 ")]),_:1})):(u(),I(p,{key:1,type:"primary",onClick:E},{default:o(()=>[r(" 确认提单 ")]),_:1}))])]),default:o(()=>[ue]),_:1},8,["modelValue"])])),[[q,y.value]])}}},ge=W(pe,[["__scopeId","data-v-80048b20"]]);export{ge as default}; diff --git a/dist/assets/padding-XLGqX7ns.js b/dist/assets/padding-BXN6xH5X.js similarity index 65% rename from dist/assets/padding-XLGqX7ns.js rename to dist/assets/padding-BXN6xH5X.js index cff621b..ec0fbcf 100644 --- a/dist/assets/padding-XLGqX7ns.js +++ b/dist/assets/padding-BXN6xH5X.js @@ -1 +1 @@ -import{_ as e,c as t,h as c}from"./index-BSeKe2ro.js";const n={},o={style:{width:"20px",height:"100%"}};function s(r,_){return t(),c("div",o)}const i=e(n,[["render",s]]);export{i as p}; +import{_ as e,c as t,h as c}from"./index-CDJP75me.js";const n={},o={style:{width:"20px",height:"100%"}};function s(r,_){return t(),c("div",o)}const i=e(n,[["render",s]]);export{i as p}; diff --git a/dist/assets/pay-BcpR4WJS.js b/dist/assets/pay-BajYk3t1.js similarity index 99% rename from dist/assets/pay-BcpR4WJS.js rename to dist/assets/pay-BajYk3t1.js index 28719e6..c535201 100644 --- a/dist/assets/pay-BcpR4WJS.js +++ b/dist/assets/pay-BajYk3t1.js @@ -1 +1 @@ -import{A as v,_ as de,r as n,u as ve,D as _e,o as pe,m as j,a as fe,b as I,j as me,c as k,d as X,w as b,e as o,l as q,g as L,t as F,p as ge,h as S,f as A,k as ye,F as he,i as ke,n as V,E as m,s as be,v as we}from"./index-BSeKe2ro.js";function Ze(t){return v.post("user/cart/create",t)}function ea(t){return v.get("user/cart/lst",{params:t})}function aa(t,i){return v.post(`user/cart/change/${t}`,i)}function sa(t){return v.post("v2/order/check",t)}function ta(t){return v.post("user/cart/delete",t)}function Y(t){return v.post("v2/order/create",t)}function Ce(t,i){return v.post(`order/pay/${t}`,i)}function Se(t){return v.get("micropay_query",{params:t})}function oa(t,i){return v.get(`admin/${t}/order_list`,{params:i})}function la(t,i){return v.get(`verifier/${t}/order/${i}`)}function ra(t){return v.get("order_lading",{params:t})}const T=t=>{if(!t)return;let i=new window.SpeechSynthesisUtterance(t);window.speechSynthesis.speak(i)},D=t=>(be("data-v-f7abe660"),t=t(),we(),t),Ae=D(()=>o("h4",null,"选择支付方式",-1)),xe={class:"dra-body"},$e={class:"header"},Le=D(()=>o("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),Ve={style:{color:"#f5222d","padding-bottom":"2rem"}},De={style:{"font-size":"1.6rem"}},Ee={key:0,"element-loading-text":"支付中",class:"card1"},Be=D(()=>o("div",{class:"tips"},null,-1)),je={key:1,class:"card2"},Ie={class:"drawer-body"},Pe={class:"counter"},Fe={class:"received"},Te={key:0},Ue={key:1,style:{"font-size":"1rem",color:"#999"}},ze={key:0,class:"balance"},Ne={class:"money"},Oe=D(()=>o("div",{class:"tips"},"按回车(Enter)确认支付",-1)),qe={key:1,class:"balance"},Re=D(()=>o("div",null,"不够找零, 请支付更多金额",-1)),Ke=D(()=>o("div",{class:"tips"},"按下小键盘输入金额",-1)),Me=[Re,Ke],We={class:"keypad"},Ge={class:"left"},He={class:"right"},Je={style:{width:"100%",display:"flex","justify-content":"center"}},Qe={__name:"pay",emits:["paySuccess"],setup(t,{expose:i,emit:Z}){const g=n(!1),y=n(1),l=n(""),d=n(""),R=ve(),ee=()=>{w()},ae=()=>{V(()=>{setTimeout(()=>{var e;u.value=!1,l.value="",z.value=!0,(e=d.value)==null||e.focus(),x(y.value)},300)})},x=e=>{y.value=e,y.value==2?window.addEventListener("keydown",O):(window.removeEventListener("keydown",O),V(()=>{var a;l.value="",(a=d.value)==null||a.focus()}))},h=n({}),U=n([]),se=e=>{h.value=e.data,U.value=e.cart_id},te=e=>{h.value.order_price=e.price,_.value=e.order_id},oe=Z,z=n(!1),le=n(["1","2","3","4","5","6","7","8","9","0","00","."]);let $=0;const K=/^(10|11|12|13|14|15)\d{16}$/,M=/^(25|26|27|28|29|30)\d{14,22}$/,_=n(""),re=()=>{if(u.value=!0,d.value.blur(),_.value)W(_.value);else{let e;if(K.test(l.value))e="micropay";else if(M.test(l.value))e="alipayBar";else return u.value=!1,l.value="",d.value.focus(),m.error("请输入正确的支付码");Y({address_id:"",key:h.value.key,cart_id:U.value,pay_type:e,auth_code:l.value,staff_id:R.userInfo.service.service_id}).then(a=>{if(a.status==200&&(a.message=="支付成功"||a.message=="success"))g.value=!1,m({message:a.message=="success"?"支付成功":a.message,type:"success"}),T(a.data.message||a.data.result.message),w();else if(a.data.group_order_sn)_.value=a.data.group_order_id,E.value=0,$=0,P(a.data.group_order_sn);else return _.value=a.data.result.order_id,u.value=!1,m({message:a.message,type:"error"})}).catch(a=>{u.value=!1,V(()=>{var s;(s=d.value)==null||s.focus()})})}},W=e=>{let a;if(y.value==1){let s;if(K.test(l.value))s="micropay";else if(M.test(l.value))s="alipayBar";else return u.value=!1,l.value="",d.value.focus(),m.error("请输入正确的支付码");a={type:s,auth_code:l.value}}else a={type:"cash_payment"};Ce(e,a).then(s=>{s.status==200&&(s.message=="支付成功"||s.message=="success")?(g.value=!1,m({message:s.message=="success"?"支付成功":s.message,type:"success"}),T(s.data.message||s.data.result.message),w()):(_.value=s.data.group_order_id,E.value=0,$=0,P(s.data.group_order_sn))}).catch(s=>{l.value="",u.value=!1,V(()=>{var C;(C=d.value)==null||C.focus()})})},E=n(0),P=e=>{e&&(E.value++,$+=5e3,Se({order_sn:e}).then(a=>{a.data.paid==1||a.message=="支付成功"?(m({message:a.message,type:"success"}),T(a.data.message),w()):(m({message:a.message,type:"error"}),l.value="",u.value=!1,V(()=>{var s;(s=d.value)==null||s.focus()}))}).catch(a=>{z.value&&E.value<3?setTimeout(()=>{P(e)},15e3-$>0?15e3-$:0):(l.value="",u.value=!1,V(()=>{var s;(s=d.value)==null||s.focus()}))}))},w=()=>{var e;window.removeEventListener("keydown",O),z.value=!1,u.value=!1,l.value="",r.value="",p.value=[],(e=d.value)==null||e.blur(),oe("paySuccess"),g.value=!1},u=n(!1);i({drawer:g,setForm:se,setRePay:te,beforeClose:w});const p=n([]),r=n(""),B=_e(()=>+r.value>0?(r.value-h.value.order_price).toFixed(2):-1),G=n(!1),N=e=>{e===-1?p.value=[]:p.value.pop(),r.value=p.value.length?p.value.join(""):0},c=e=>{G.value===!1&&(r.value="",G.value=!0);let a=String(r.value).indexOf(".")+1,s=String(r.value).length-a;console.log(a,s),(a===0||s<2)&&(p.value.join("")<=9999999&&p.value.push(e),r.value=p.value.join("")>99999999?99999999:p.value.join(""))},H=()=>{if(B.value===""||B.value===null||B.value===void 0||+r.value<+h.value.order_price)return m.error("收款金额应该大于等于应收金额");_.value?W(_.value):Y({address_id:"",key:h.value.key,cart_id:U.value,pay_type:"cash_payment",staff_id:R.userInfo.service.service_id}).then(e=>{if(e.status==200&&e.message=="支付成功")g.value=!1,m({message:e.message,type:"success"}),T(e.data.message),w();else if(e.data.group_order_sn)_.value=e.data.group_order_id,E.value=0,$=0,P(e.data.group_order_sn);else return _.value=e.data.result.order_id,r.value="",p.value=[],u.value=!1,m({message:e.message,type:"error"})}).catch(e=>{u.value=!1})},O=e=>{let s=(e||window.event).keyCode;if(s==37)return x(2);if(s==120)return j.emit("F9");if(s==27)return w();switch(e.stopPropagation(),e.preventDefault(),s){case 96:case 48:c(0);break;case 97:case 49:c(1);break;case 98:case 50:c(2);break;case 99:case 51:c(3);break;case 100:case 52:c(4);break;case 101:case 53:c(5);break;case 102:case 54:c(6);break;case 103:case 55:c(7);break;case 104:case 56:c(8);break;case 105:case 57:c(9);break;case 110:c(".");break;case 190:c(".");break;case 8:N();break;case 13:H();break}},J=()=>{if(g.value&&y.value==2)return x(1)},Q=()=>{if(g.value&&y.value==1)return x(2)};return pe(()=>{j.on("left",J),j.on("right",Q)}),fe(()=>{j.off("left",J),j.off("right",Q)}),(e,a)=>{const s=I("el-input"),C=I("el-button"),ne=I("Delete"),ue=I("el-icon"),ce=I("el-drawer"),ie=me("loading");return k(),X(ce,{size:800,modelValue:g.value,"onUpdate:modelValue":a[4]||(a[4]=f=>g.value=f),direction:"rtl",onOpen:ae,"before-close":w},{header:b(()=>[Ae]),default:b(()=>[o("div",xe,[o("div",$e,[o("div",{class:q(["left",{active:y.value==1}]),onClick:a[0]||(a[0]=f=>x(1))}," 微信/支付宝 ",2),o("div",{class:q(["right",{active:y.value==2}]),onClick:a[1]||(a[1]=f=>x(2))}," 现金收款 ",2)]),Le,o("div",Ve,[L(" ¥"),o("span",De,F(h.value.order_price),1)]),y.value==1?ge((k(),S("div",Ee,[A(s,{ref_key:"codeRef",ref:d,modelValue:l.value,"onUpdate:modelValue":a[2]||(a[2]=f=>l.value=f),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:ye(re,["enter"])},null,8,["modelValue"]),Be])),[[ie,u.value]]):(k(),S("div",je,[o("div",Ie,[o("div",Pe,[o("div",Fe,[r.value?(k(),S("span",Te,F(r.value),1)):(k(),S("span",Ue,"按下键盘输入客户支付金额"))]),B.value>=0?(k(),S("div",ze,[o("div",null,[L("需找零(元):"),o("span",Ne,"¥"+F(B.value),1)]),Oe])):(k(),S("div",qe,Me)),o("div",We,[o("div",Ge,[(k(!0),S(he,null,ke(le.value,f=>(k(),X(C,{key:f,onClick:Xe=>c(f)},{default:b(()=>[L(F(f),1)]),_:2},1032,["onClick"]))),128))]),o("div",He,[A(C,{onClick:N},{default:b(()=>[A(ue,null,{default:b(()=>[A(ne)]),_:1})]),_:1}),A(C,{onClick:a[3]||(a[3]=f=>N(-1))},{default:b(()=>[L("C")]),_:1}),A(C,{class:q(["enter",{"enter-disable":+r.value<+h.value.order_price}]),disabled:+r.value<+h.value.order_price,onClick:H},{default:b(()=>[L(" 确认 ")]),_:1},8,["class","disabled"])])])])])]))])]),footer:b(()=>[o("div",Je,[A(C,{class:"cancel-btn",onClick:ee},{default:b(()=>[L("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},na=de(Qe,[["__scopeId","data-v-f7abe660"]]);export{ea as a,aa as b,ta as c,Ze as d,oa as e,ra as f,Se as g,sa as o,na as p,la as v}; +import{A as v,_ as de,r as n,u as ve,D as _e,o as pe,m as j,a as fe,b as I,j as me,c as k,d as X,w as b,e as o,l as q,g as L,t as F,p as ge,h as S,f as A,k as ye,F as he,i as ke,n as V,E as m,s as be,v as we}from"./index-CDJP75me.js";function Ze(t){return v.post("user/cart/create",t)}function ea(t){return v.get("user/cart/lst",{params:t})}function aa(t,i){return v.post(`user/cart/change/${t}`,i)}function sa(t){return v.post("v2/order/check",t)}function ta(t){return v.post("user/cart/delete",t)}function Y(t){return v.post("v2/order/create",t)}function Ce(t,i){return v.post(`order/pay/${t}`,i)}function Se(t){return v.get("micropay_query",{params:t})}function oa(t,i){return v.get(`admin/${t}/order_list`,{params:i})}function la(t,i){return v.get(`verifier/${t}/order/${i}`)}function ra(t){return v.get("order_lading",{params:t})}const T=t=>{if(!t)return;let i=new window.SpeechSynthesisUtterance(t);window.speechSynthesis.speak(i)},D=t=>(be("data-v-f7abe660"),t=t(),we(),t),Ae=D(()=>o("h4",null,"选择支付方式",-1)),xe={class:"dra-body"},$e={class:"header"},Le=D(()=>o("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),Ve={style:{color:"#f5222d","padding-bottom":"2rem"}},De={style:{"font-size":"1.6rem"}},Ee={key:0,"element-loading-text":"支付中",class:"card1"},Be=D(()=>o("div",{class:"tips"},null,-1)),je={key:1,class:"card2"},Ie={class:"drawer-body"},Pe={class:"counter"},Fe={class:"received"},Te={key:0},Ue={key:1,style:{"font-size":"1rem",color:"#999"}},ze={key:0,class:"balance"},Ne={class:"money"},Oe=D(()=>o("div",{class:"tips"},"按回车(Enter)确认支付",-1)),qe={key:1,class:"balance"},Re=D(()=>o("div",null,"不够找零, 请支付更多金额",-1)),Ke=D(()=>o("div",{class:"tips"},"按下小键盘输入金额",-1)),Me=[Re,Ke],We={class:"keypad"},Ge={class:"left"},He={class:"right"},Je={style:{width:"100%",display:"flex","justify-content":"center"}},Qe={__name:"pay",emits:["paySuccess"],setup(t,{expose:i,emit:Z}){const g=n(!1),y=n(1),l=n(""),d=n(""),R=ve(),ee=()=>{w()},ae=()=>{V(()=>{setTimeout(()=>{var e;u.value=!1,l.value="",z.value=!0,(e=d.value)==null||e.focus(),x(y.value)},300)})},x=e=>{y.value=e,y.value==2?window.addEventListener("keydown",O):(window.removeEventListener("keydown",O),V(()=>{var a;l.value="",(a=d.value)==null||a.focus()}))},h=n({}),U=n([]),se=e=>{h.value=e.data,U.value=e.cart_id},te=e=>{h.value.order_price=e.price,_.value=e.order_id},oe=Z,z=n(!1),le=n(["1","2","3","4","5","6","7","8","9","0","00","."]);let $=0;const K=/^(10|11|12|13|14|15)\d{16}$/,M=/^(25|26|27|28|29|30)\d{14,22}$/,_=n(""),re=()=>{if(u.value=!0,d.value.blur(),_.value)W(_.value);else{let e;if(K.test(l.value))e="micropay";else if(M.test(l.value))e="alipayBar";else return u.value=!1,l.value="",d.value.focus(),m.error("请输入正确的支付码");Y({address_id:"",key:h.value.key,cart_id:U.value,pay_type:e,auth_code:l.value,staff_id:R.userInfo.service.service_id}).then(a=>{if(a.status==200&&(a.message=="支付成功"||a.message=="success"))g.value=!1,m({message:a.message=="success"?"支付成功":a.message,type:"success"}),T(a.data.message||a.data.result.message),w();else if(a.data.group_order_sn)_.value=a.data.group_order_id,E.value=0,$=0,P(a.data.group_order_sn);else return _.value=a.data.result.order_id,u.value=!1,m({message:a.message,type:"error"})}).catch(a=>{u.value=!1,V(()=>{var s;(s=d.value)==null||s.focus()})})}},W=e=>{let a;if(y.value==1){let s;if(K.test(l.value))s="micropay";else if(M.test(l.value))s="alipayBar";else return u.value=!1,l.value="",d.value.focus(),m.error("请输入正确的支付码");a={type:s,auth_code:l.value}}else a={type:"cash_payment"};Ce(e,a).then(s=>{s.status==200&&(s.message=="支付成功"||s.message=="success")?(g.value=!1,m({message:s.message=="success"?"支付成功":s.message,type:"success"}),T(s.data.message||s.data.result.message),w()):(_.value=s.data.group_order_id,E.value=0,$=0,P(s.data.group_order_sn))}).catch(s=>{l.value="",u.value=!1,V(()=>{var C;(C=d.value)==null||C.focus()})})},E=n(0),P=e=>{e&&(E.value++,$+=5e3,Se({order_sn:e}).then(a=>{a.data.paid==1||a.message=="支付成功"?(m({message:a.message,type:"success"}),T(a.data.message),w()):(m({message:a.message,type:"error"}),l.value="",u.value=!1,V(()=>{var s;(s=d.value)==null||s.focus()}))}).catch(a=>{z.value&&E.value<3?setTimeout(()=>{P(e)},15e3-$>0?15e3-$:0):(l.value="",u.value=!1,V(()=>{var s;(s=d.value)==null||s.focus()}))}))},w=()=>{var e;window.removeEventListener("keydown",O),z.value=!1,u.value=!1,l.value="",r.value="",p.value=[],(e=d.value)==null||e.blur(),oe("paySuccess"),g.value=!1},u=n(!1);i({drawer:g,setForm:se,setRePay:te,beforeClose:w});const p=n([]),r=n(""),B=_e(()=>+r.value>0?(r.value-h.value.order_price).toFixed(2):-1),G=n(!1),N=e=>{e===-1?p.value=[]:p.value.pop(),r.value=p.value.length?p.value.join(""):0},c=e=>{G.value===!1&&(r.value="",G.value=!0);let a=String(r.value).indexOf(".")+1,s=String(r.value).length-a;console.log(a,s),(a===0||s<2)&&(p.value.join("")<=9999999&&p.value.push(e),r.value=p.value.join("")>99999999?99999999:p.value.join(""))},H=()=>{if(B.value===""||B.value===null||B.value===void 0||+r.value<+h.value.order_price)return m.error("收款金额应该大于等于应收金额");_.value?W(_.value):Y({address_id:"",key:h.value.key,cart_id:U.value,pay_type:"cash_payment",staff_id:R.userInfo.service.service_id}).then(e=>{if(e.status==200&&e.message=="支付成功")g.value=!1,m({message:e.message,type:"success"}),T(e.data.message),w();else if(e.data.group_order_sn)_.value=e.data.group_order_id,E.value=0,$=0,P(e.data.group_order_sn);else return _.value=e.data.result.order_id,r.value="",p.value=[],u.value=!1,m({message:e.message,type:"error"})}).catch(e=>{u.value=!1})},O=e=>{let s=(e||window.event).keyCode;if(s==37)return x(2);if(s==120)return j.emit("F9");if(s==27)return w();switch(e.stopPropagation(),e.preventDefault(),s){case 96:case 48:c(0);break;case 97:case 49:c(1);break;case 98:case 50:c(2);break;case 99:case 51:c(3);break;case 100:case 52:c(4);break;case 101:case 53:c(5);break;case 102:case 54:c(6);break;case 103:case 55:c(7);break;case 104:case 56:c(8);break;case 105:case 57:c(9);break;case 110:c(".");break;case 190:c(".");break;case 8:N();break;case 13:H();break}},J=()=>{if(g.value&&y.value==2)return x(1)},Q=()=>{if(g.value&&y.value==1)return x(2)};return pe(()=>{j.on("left",J),j.on("right",Q)}),fe(()=>{j.off("left",J),j.off("right",Q)}),(e,a)=>{const s=I("el-input"),C=I("el-button"),ne=I("Delete"),ue=I("el-icon"),ce=I("el-drawer"),ie=me("loading");return k(),X(ce,{size:800,modelValue:g.value,"onUpdate:modelValue":a[4]||(a[4]=f=>g.value=f),direction:"rtl",onOpen:ae,"before-close":w},{header:b(()=>[Ae]),default:b(()=>[o("div",xe,[o("div",$e,[o("div",{class:q(["left",{active:y.value==1}]),onClick:a[0]||(a[0]=f=>x(1))}," 微信/支付宝 ",2),o("div",{class:q(["right",{active:y.value==2}]),onClick:a[1]||(a[1]=f=>x(2))}," 现金收款 ",2)]),Le,o("div",Ve,[L(" ¥"),o("span",De,F(h.value.order_price),1)]),y.value==1?ge((k(),S("div",Ee,[A(s,{ref_key:"codeRef",ref:d,modelValue:l.value,"onUpdate:modelValue":a[2]||(a[2]=f=>l.value=f),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:ye(re,["enter"])},null,8,["modelValue"]),Be])),[[ie,u.value]]):(k(),S("div",je,[o("div",Ie,[o("div",Pe,[o("div",Fe,[r.value?(k(),S("span",Te,F(r.value),1)):(k(),S("span",Ue,"按下键盘输入客户支付金额"))]),B.value>=0?(k(),S("div",ze,[o("div",null,[L("需找零(元):"),o("span",Ne,"¥"+F(B.value),1)]),Oe])):(k(),S("div",qe,Me)),o("div",We,[o("div",Ge,[(k(!0),S(he,null,ke(le.value,f=>(k(),X(C,{key:f,onClick:Xe=>c(f)},{default:b(()=>[L(F(f),1)]),_:2},1032,["onClick"]))),128))]),o("div",He,[A(C,{onClick:N},{default:b(()=>[A(ue,null,{default:b(()=>[A(ne)]),_:1})]),_:1}),A(C,{onClick:a[3]||(a[3]=f=>N(-1))},{default:b(()=>[L("C")]),_:1}),A(C,{class:q(["enter",{"enter-disable":+r.value<+h.value.order_price}]),disabled:+r.value<+h.value.order_price,onClick:H},{default:b(()=>[L(" 确认 ")]),_:1},8,["class","disabled"])])])])])]))])]),footer:b(()=>[o("div",Je,[A(C,{class:"cancel-btn",onClick:ee},{default:b(()=>[L("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},na=de(Qe,[["__scopeId","data-v-f7abe660"]]);export{ea as a,aa as b,ta as c,Ze as d,oa as e,ra as f,Se as g,sa as o,na as p,la as v}; diff --git a/dist/assets/shop-Bj2-5fHC.js b/dist/assets/shop-u-jllX4w.js similarity index 75% rename from dist/assets/shop-Bj2-5fHC.js rename to dist/assets/shop-u-jllX4w.js index 00940d9..342757f 100644 --- a/dist/assets/shop-Bj2-5fHC.js +++ b/dist/assets/shop-u-jllX4w.js @@ -1 +1 @@ -import{A as e}from"./index-BSeKe2ro.js";function u(r,t){return e.get(`server/${r}/product/lst`,{params:t})}function a(r,t){return e.get(`store/product/detail/${r}`,{params:t})}function o(r,t){return e.post(`user_free_trial/${r}`,t)}export{a as g,u as s,o as u}; +import{A as e}from"./index-CDJP75me.js";function u(r,t){return e.get(`server/${r}/product/lst`,{params:t})}function a(r,t){return e.get(`store/product/detail/${r}`,{params:t})}function o(r,t){return e.post(`user_free_trial/${r}`,t)}export{a as g,u as s,o as u}; diff --git a/dist/index.html b/dist/index.html index ed29715..ede920b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ 里海收银系统 - + diff --git a/src/views/convert/component/detail.vue b/src/views/convert/component/detail.vue index bbbd819..b32a5f2 100644 --- a/src/views/convert/component/detail.vue +++ b/src/views/convert/component/detail.vue @@ -134,7 +134,11 @@ const getOrderStatus = (id) => { label="单价" width="150" /> - + + +