This commit is contained in:
weipengfei 2024-05-25 17:35:52 +08:00
parent 6de147a86c
commit 56a57ee6cb
54 changed files with 305 additions and 218 deletions

View File

@ -1,7 +1,7 @@
VITE_NOW_TYPE = 'dist' VITE_NOW_TYPE = 'dist'
VITE_PUSH_URL = 'ws://192.168.1.22:8787' # VITE_PUSH_URL = 'ws://192.168.1.22:8787'
VITE_BASE_URL = 'http://192.168.1.22:8546' # VITE_BASE_URL = 'http://192.168.1.22:8546'
# VITE_PUSH_URL ='wss://erp.lihaink.cn/pull' VITE_PUSH_URL ='wss://erp.lihaink.cn/pull'
# VITE_BASE_URL = 'https://erp.lihaink.cn' VITE_BASE_URL = 'https://erp.lihaink.cn'

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
@charset "UTF-8";.my-order[data-v-1fde361d]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-1fde361d]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-1fde361d]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-1fde361d]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-1fde361d]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-1fde361d]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:1px solid #eee}.my-order .order-list[data-v-1fde361d]{height:calc(100vh - 100px - 10.2rem);overflow-y:auto}.my-order .order-list .item[data-v-1fde361d]{padding:1rem;border-bottom:1px solid #eee}.my-order .order-list .item .top[data-v-1fde361d]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-list .item .top .sn[data-v-1fde361d]{font-weight:700;font-size:.9rem}.my-order .order-list .item .top .cahier[data-v-1fde361d]: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-1fde361d]: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-1fde361d]{font-size:.8rem}.my-order .order-list .item .shop[data-v-1fde361d]{display:flex;justify-content:space-between}.my-order .order-list .item .shop .right[data-v-1fde361d]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-list .item .shop .right .money[data-v-1fde361d]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-list .item .shop .right .count[data-v-1fde361d]{font-size:.7rem;color:#999}.my-order .order-list .item .shop .left[data-v-1fde361d]{height:4.5rem;display:flex;align-items:center}.my-order .order-list .item .shop .left .shop-img[data-v-1fde361d]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-list .item .shop .left .shop-name[data-v-1fde361d]{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-1fde361d]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-list .item-active[data-v-1fde361d]{background-color:#efefef}.my-order .load-end[data-v-1fde361d]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-f0903720]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .header-nav[data-v-f0903720]{display:flex;background:linear-gradient(to bottom,#f5f5f5 50%,#fff 50%)}.my-order .header-nav .nav-item[data-v-f0903720]{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-f0903720]{background-color:#fff;position:relative;transition:.3s}.my-order .header-nav .nav-item-radius1[data-v-f0903720]{border-radius:0 0 1rem}.my-order .header-nav .nav-item-radius2[data-v-f0903720]{border-radius:0 0 0 1rem}.my-order .detail[data-v-f0903720]{height:calc(100vh - 100px - 4rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-f0903720]{padding:1rem 1rem 6rem}.my-order .detail .table .table-title[data-v-f0903720]{font-weight:700;padding-top:1rem}.my-order .detail .table .table-info[data-v-f0903720]{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-f0903720]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-f0903720]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-f0903720]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-f0903720]{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-f0903720]{display:flex;align-items:flex-end}.my-order .detail .footer .info .ser[data-v-f0903720]{font-weight:700;margin-right:1rem}.my-order .detail .footer .info .price[data-v-f0903720]{margin-right:1rem}.my-order .detail .footer .info .price span[data-v-f0903720]{color:#ff4a00;font-size:1.2rem;font-weight:700}.my-order .detail .footer .handle .btn[data-v-f0903720]{border-radius:4rem;padding:1.2rem}

View File

@ -1 +1 @@
import{b as t,c,h as a,e,f as o,w as d,g as l}from"./index-DUM_3Px5.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-BhwfcSvx.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};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{o as r,d as o}from"./detail-B501BovZ.js";import{p as t}from"./padding-CwOzKUo2.js";import{c as a,h as s,f as e}from"./index-DUM_3Px5.js";import"./pay.vue_vue_type_style_index_0_scoped_d2507c03_lang-CPz3lDzO.js";import"./pay-BIYaSPbP.js";const c={class:"my-card"},u={__name:"index",setup(d){return(i,l)=>(a(),s("div",c,[e(r,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),e(t),e(o,{ref:"detailRef"},null,512)]))}};export{u as default};

View File

@ -1 +0,0 @@
@charset "UTF-8";.dra-body[data-v-2d33ceca]{width:100%;display:flex;flex-direction:column;text-align:center}[data-v-2d33ceca] .el-upload--picture-card{--el-upload-picture-card-size: 60px !important}[data-v-2d33ceca] .el-upload-list--picture-card .el-upload-list__item{height:60px!important;width:60px!important}.my-shop[data-v-e8828dd9]{background-color:#fff;border-radius:1.2rem;box-sizing:border-box;padding:1rem;overflow-y:scroll}[data-v-e8828dd9]::-webkit-scrollbar{width:5px}[data-v-e8828dd9]::-webkit-scrollbar-track{background-color:#f1f1f1;margin:20px 0}[data-v-e8828dd9]::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:5px}[data-v-e8828dd9]::-webkit-scrollbar-thumb:hover{background-color:#999}.el-menu--horizontal[data-v-e8828dd9]{height:2.5rem}.el-form--inline .el-form-item[data-v-e8828dd9]{margin-right:1rem}

View File

@ -0,0 +1 @@
@charset "UTF-8";.my-order[data-v-27ca906a]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-27ca906a]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-27ca906a]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-27ca906a]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-27ca906a]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-27ca906a]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-27ca906a]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-27ca906a]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-27ca906a]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-27ca906a]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-27ca906a]:before{content:"收银";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:.0625rem solid #2ec479;color:#2ec479;border-radius:.187rem}.my-order .order-lists .item .top .cahier2[data-v-27ca906a]:before{content:"平台";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:.0625rem solid #ff4a00;color:#ff4a00;border-radius:.187rem}.my-order .order-lists .item .top .create-time[data-v-27ca906a]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-27ca906a]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-27ca906a]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-27ca906a]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-27ca906a]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-27ca906a]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-27ca906a]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-27ca906a]{font-size:.9rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3}.my-order .order-lists .item .bottom[data-v-27ca906a]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-27ca906a]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-27ca906a]{background-color:#efefef}.my-order .load-end[data-v-27ca906a]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order .bottom-btn-fiexd[data-v-27ca906a]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box;border-top:.0625rem solid #eee;background-color:#fff;z-index:100;height:5.2rem;padding:1rem 1.5rem}.my-order .bottom-btn-fiexd .btn[data-v-27ca906a]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}.my-order[data-v-0317eb70]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-0317eb70]{height:calc(100vh - 10.25rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-0317eb70]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-0317eb70]{font-weight:700}.my-order .detail .table .addAddress[data-v-0317eb70]{margin-top:1rem;margin-bottom:1.5rem}.my-order .detail .table .table-info[data-v-0317eb70]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:.0625rem solid #eee}.my-order .detail .table .table-info[data-v-0317eb70]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-0317eb70]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-0317eb70]{flex-shrink:0;padding-right:1rem}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999}

View File

@ -0,0 +1 @@
import{D as U,_ as I,u as R,r as u,o as S,b as a,c as b,h as B,e as w,f as e,w as t,v,g as C,B as L,C as E,P as K,E as d}from"./index-BhwfcSvx.js";function N(l){return U.post("/login/account",l)}const M=l=>(L("data-v-4397c91e"),l=l(),E(),l),T={class:"body"},q={class:"login"},D=M(()=>w("div",{class:"title"},"里海收银系统 - 登录",-1)),P={__name:"index",setup(l){const p=R(),h=K(),y=u(null),_=u(null),n=u({account:"",password:"",terminal:3,scene:1}),i=()=>{if(!n.value.account)return d({message:"请填写账号",type:"error"});if(!n.value.password)return d({message:"请填写密码",type:"error"});N(n.value).then(s=>{var o;if((o=s.data)!=null&&o.token){if(!s.data.merchant||!s.data.merchant.service_phone)return d.error("请先完善商户信息");p.setToken(s.data.token),p.setUserInfo(s.data),h.push("/")}}).catch(s=>{})};return S(()=>{}),(s,o)=>{const k=a("User"),f=a("el-icon"),m=a("el-input"),c=a("el-form-item"),g=a("Lock"),x=a("el-button"),V=a("el-form");return b(),B("div",T,[w("div",q,[D,e(V,null,{default:t(()=>[e(c,null,{default:t(()=>[e(m,{ref_key:"accRef",ref:y,modelValue:n.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>n.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:n.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>n.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(x,{style:{width:"100%"},type:"primary",onClick:i},{default:t(()=>[C("登录")]),_:1})]),_:1})]),_:1})])])}}},j=I(P,[["__scopeId","data-v-4397c91e"]]);export{j as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
@charset "UTF-8";.my-order[data-v-fa3e0699]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-fa3e0699]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-fa3e0699]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-fa3e0699]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-fa3e0699]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-fa3e0699]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-fa3e0699]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-fa3e0699]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-fa3e0699]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-fa3e0699]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-fa3e0699]:before{content:"收银";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:.0625rem solid #2ec479;color:#2ec479;border-radius:.187rem}.my-order .order-lists .item .top .cahier2[data-v-fa3e0699]:before{content:"平台";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:.0625rem solid #ff4a00;color:#ff4a00;border-radius:.187rem}.my-order .order-lists .item .top .create-time[data-v-fa3e0699]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-fa3e0699]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-fa3e0699]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-fa3e0699]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-fa3e0699]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-fa3e0699]{display:flex;align-items:center;font-size:.8rem}.my-order .order-lists .item .bottom[data-v-fa3e0699]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-fa3e0699]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-fa3e0699]{background-color:#efefef}.my-order .load-end[data-v-fa3e0699]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order .bottom-btn-fiexd[data-v-fa3e0699]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box;border-top:.0625rem solid #eee;background-color:#fff;z-index:100;height:5.2rem;padding:1rem 1.5rem}.my-order .bottom-btn-fiexd .btn[data-v-fa3e0699]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}.el-drawer__header{margin-bottom:0}.el-drawer__body{padding-top:0}.dra-body[data-v-928e3cd0]{width:100%;height:100%}.dra-body .detail[data-v-928e3cd0]{height:100%;box-sizing:border-box;position:relative}.dra-body .detail .table[data-v-928e3cd0]{padding-bottom:1rem;overflow-y:auto;height:100%}.dra-body .detail .table .table-title[data-v-928e3cd0]{font-weight:700}.dra-body .detail .table .addAddress[data-v-928e3cd0]{margin-top:1rem;margin-bottom:1.5rem}.dra-body .detail .table .table-info[data-v-928e3cd0]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:.0625rem solid #eee}.dra-body .detail .table .table-info[data-v-928e3cd0]:last-child{border-bottom:none}.dra-body .detail .table .table-info .info-item[data-v-928e3cd0]{width:33%;display:flex;padding-top:1rem}.dra-body .detail .table .table-info .info-item .info-item-title[data-v-928e3cd0]{flex-shrink:0;padding-right:1rem}.my-order[data-v-7bc9887f]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-7bc9887f]{height:calc(100vh - 10.25rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-7bc9887f]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-7bc9887f]{font-weight:700}.my-order .detail .table .addAddress[data-v-7bc9887f]{margin-top:1rem;margin-bottom:1.5rem}.my-order .detail .table .table-info[data-v-7bc9887f]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:.0625rem solid #eee}.my-order .detail .table .table-info[data-v-7bc9887f]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-7bc9887f]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-7bc9887f]{flex-shrink:0;padding-right:1rem}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999}

View File

@ -1 +0,0 @@
@charset "UTF-8";.my-card{display:flex}::-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}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
@charset "UTF-8";.my-order[data-v-e01d9d71]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .header-nav[data-v-e01d9d71]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:7.5rem}.my-order .header-nav .nav-item[data-v-e01d9d71]{font-weight:700}.my-order .header-nav .nav-body .my-money[data-v-e01d9d71]{padding:.4rem 0;height:4rem}.my-order .header-nav .nav-body .my-money span[data-v-e01d9d71]{font-size:1.5rem;font-weight:700}.my-order .header-nav .nav-body .my-count[data-v-e01d9d71]{height:1.4rem;display:flex;justify-content:space-between;color:#777}.my-order .order-lists[data-v-e01d9d71]{flex:1;overflow-y:auto}.my-order .order-lists .item[data-v-e01d9d71]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .own[data-v-e01d9d71]{font-size:.7rem;padding:.1rem .2rem;background-color:#2ec479;color:#fff;margin-left:1rem;border-radius:.2rem}.my-order .order-lists .item-active[data-v-e01d9d71]{background-color:#efefef}.my-order .order-footer[data-v-e01d9d71]{position:absolute;bottom:0;left:0;width:100%;box-shadow:0 -.0625rem .625rem #eee;background-color:#fff}.my-order .order-footer .input-btn[data-v-e01d9d71]{display:flex;padding:1rem 1.5rem;padding-bottom:0}.my-order .order-footer .input-btn .btn[data-v-e01d9d71]{margin-left:1rem}.my-order .order-footer .order-btn[data-v-e01d9d71]{height:3.2rem;padding:1rem 1.5rem}.my-order .order-footer .order-btn .btn[data-v-e01d9d71]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}input[data-v-e01d9d71]::-webkit-outer-spin-button,input[data-v-e01d9d71]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.my-order[data-v-129102fe]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .date[data-v-129102fe]{padding:1rem 1rem 0;display:flex;justify-content:space-between}.my-order .detail[data-v-129102fe]{height:calc(100vh - 10.25rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-129102fe]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-129102fe]{font-weight:700}.my-order .detail .table .table-info[data-v-129102fe]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:.0625rem solid #eee}.my-order .detail .table .table-info[data-v-129102fe]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-129102fe]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-129102fe]{flex-shrink:0;padding-right:1rem}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999}

View File

@ -1 +1 @@
.body[data-v-59a7e82c]{width:100vw;height:100vh;box-sizing:border-box;background-image:url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/b84ef202404101425077785.png);background-size:100% 100%;background-repeat:no-repeat;display:flex;justify-content:center;align-items:center}.body .login[data-v-59a7e82c]{width:18rem;background-color:#fff;border-radius:2rem;padding:2rem 3rem}.body .login .title[data-v-59a7e82c]{text-align:center;font-size:1.3rem;padding-bottom:2rem} .body[data-v-4397c91e]{width:100vw;height:100vh;box-sizing:border-box;background-image:url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/b84ef202404101425077785.png);background-size:100% 100%;background-repeat:no-repeat;display:flex;justify-content:center;align-items:center}.body .login[data-v-4397c91e]{width:18rem;background-color:#fff;border-radius:2rem;padding:2rem 3rem}.body .login .title[data-v-4397c91e]{text-align:center;font-size:1.3rem;padding-bottom:2rem;color:#333}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
@charset "UTF-8";.my-order[data-v-9d0ec279]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-9d0ec279]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-9d0ec279]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-9d0ec279]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-9d0ec279]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-9d0ec279]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-9d0ec279]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-9d0ec279]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-9d0ec279]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-9d0ec279]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-9d0ec279]:before{content:"收银";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:.0625rem solid #2ec479;color:#2ec479;border-radius:.187rem}.my-order .order-lists .item .top .cahier2[data-v-9d0ec279]:before{content:"平台";font-weight:400;font-size:.7rem;padding:.1rem;margin-right:.2rem;border:.0625rem solid #ff4a00;color:#ff4a00;border-radius:.187rem}.my-order .order-lists .item .top .create-time[data-v-9d0ec279]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-9d0ec279]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-9d0ec279]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-9d0ec279]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-9d0ec279]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-9d0ec279]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-9d0ec279]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-9d0ec279]{font-size:.9rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3}.my-order .order-lists .item .bottom[data-v-9d0ec279]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-9d0ec279]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-9d0ec279]{background-color:#efefef}.my-order .load-end[data-v-9d0ec279]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-4e281875]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-4e281875]{height:calc(100vh - 10.25rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-4e281875]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-4e281875]{font-weight:700}.my-order .detail .table .table-info[data-v-4e281875]{display:flex;flex-wrap:wrap;color:#777;font-size:.9rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:.0625rem solid #eee}.my-order .detail .table .table-info[data-v-4e281875]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-4e281875]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-4e281875]{flex-shrink:0;padding-right:1rem}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as U,u as I,r as u,o as L,b as n,c as R,h as S,e as w,f as e,w as t,p as v,g as b,y as C,z as K,C as B,E as d,K as E,L as N}from"./index-DUM_3Px5.js";const M=l=>(C("data-v-59a7e82c"),l=l(),K(),l),T={class:"body"},z={class:"login"},$=M(()=>w("div",{class:"title"},"里海收银系统 - 登录",-1)),j={__name:"index",setup(l){const p=I(),y=B(),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"});E(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 L(()=>{}),(a,o)=>{const g=n("User"),f=n("el-icon"),m=n("el-input"),c=n("el-form-item"),k=n("Lock"),V=n("el-button"),x=n("el-form");return R(),S("div",T,[w("div",z,[$,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(g)]),_: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(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:i},{default:t(()=>[b("登录")]),_:1})]),_:1})]),_:1})])])}}},A=U(j,[["__scopeId","data-v-59a7e82c"]]);export{A as default};

View File

@ -0,0 +1 @@
import{f as i}from"./merchant-CtlTM3LR.js";import{_ as d,r as a,b as l,s as p,z as m,c as u,h,e as f,f as e,w as v}from"./index-BhwfcSvx.js";const b={"element-loading-text":"加载中",class:"my-order"},g={class:"table"},x={__name:"indexCount",setup(w){const o=a([]),n=a({page_no:1,page_size:15}),r=a(!1);return(()=>{i(n.value).then(s=>{o.value=s.data.lists})})(),(s,B)=>{const t=l("el-table-column"),c=l("el-table"),_=p("loading");return m((u(),h("div",b,[f("div",g,[e(c,{data:o.value,style:{width:"100%"}},{default:v(()=>[e(t,{prop:"record_date",label:"时间",width:"260"}),e(t,{prop:"cashier_cash_total_amount",label:"现金收银金额(元)"}),e(t,{prop:"cashier_total_amount",label:"线上收银金额(元)"}),e(t,{prop:"platofrm_total_amount",label:"平台订单金额(元)"}),e(t,{prop:"total_amount",label:"总金额(元)"})]),_:1},8,["data"])])])),[[_,r.value]])}}},y=d(x,[["__scopeId","data-v-d25755c6"]]);export{y as default};

View File

@ -1 +0,0 @@
@charset "UTF-8";.my-order[data-v-e81bdac1]{box-sizing:border-box}.my-order .from[data-v-e81bdac1]{width:100%;padding-bottom:20px;display:grid;grid-template-columns:repeat(5,1fr);gap:20px}.my-order .from .form-card[data-v-e81bdac1]{border-radius:.8rem;height:5rem;background-color:#fff;font-size:1.3rem;font-weight:700;display:flex;flex-direction:column;justify-content:center;align-items:center}.my-order .from .form-card .tips[data-v-e81bdac1]{font-size:.9rem;color:#999;font-weight:400}.my-order .from .red[data-v-e81bdac1]{color:#ff4a00}.my-order .from .green[data-v-e81bdac1]{color:#01c86f}.my-order .table[data-v-e81bdac1]{background-color:#fff;border-radius:1.2rem;box-sizing:border-box;padding:1rem;overflow-y:scroll}[data-v-e81bdac1]::-webkit-scrollbar{width:5px}[data-v-e81bdac1]::-webkit-scrollbar-track{background-color:#f1f1f1;margin:20px 0}[data-v-e81bdac1]::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:5px}[data-v-e81bdac1]::-webkit-scrollbar-thumb:hover{background-color:#999}

View File

@ -0,0 +1 @@
@charset "UTF-8";.my-order[data-v-d25755c6]{box-sizing:border-box}.my-order .from[data-v-d25755c6]{width:100%;padding-bottom:1.25rem;display:grid;grid-template-columns:repeat(5,1fr);gap:1.25rem}.my-order .from .form-card[data-v-d25755c6]{border-radius:.8rem;height:5rem;background-color:#fff;font-size:1.3rem;font-weight:700;display:flex;flex-direction:column;justify-content:center;align-items:center}.my-order .from .form-card .tips[data-v-d25755c6]{font-size:.9rem;color:#999;font-weight:400}.my-order .from .red[data-v-d25755c6]{color:#ff4a00}.my-order .from .green[data-v-d25755c6]{color:#01c86f}.my-order .table[data-v-d25755c6]{background-color:#fff;border-radius:1.2rem;box-sizing:border-box;padding:1rem;overflow-y:scroll}[data-v-d25755c6]::-webkit-scrollbar{width:.315rem}[data-v-d25755c6]::-webkit-scrollbar-track{background-color:#f1f1f1;margin:1.25rem 0}[data-v-d25755c6]::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}[data-v-d25755c6]::-webkit-scrollbar-thumb:hover{background-color:#999}

View File

@ -1 +0,0 @@
import{h as f,s as g}from"./pay.vue_vue_type_style_index_0_scoped_d2507c03_lang-CPz3lDzO.js";import{_ as P,u as b,r as o,b as v,l as x,v as I,c as u,h as p,e,t,x as S,f as l,w,y as C,z as D,C as k}from"./index-DUM_3Px5.js";const a=i=>(C("data-v-e81bdac1"),i=i(),D(),i),B={"element-loading-text":"加载中",class:"my-order"},L={key:0,class:"from"},N={class:"form-card green"},V=a(()=>e("div",{class:"tips"},"今日线上收银金额",-1)),A={class:"form-card green"},O=a(()=>e("div",{class:"tips"},"昨日线上收银金额",-1)),z={class:"form-card green"},E=a(()=>e("div",{class:"tips"},"本月线上收银金额",-1)),R={class:"form-card"},U=a(()=>e("div",{class:"tips"},"今日收银 线上+现金 总金额",-1)),j={class:"form-card"},q=a(()=>e("div",{class:"tips"},"本月收银 线上+现金 总金额",-1)),F={class:"form-card red"},G=a(()=>e("div",{class:"tips"},"今日现金收银金额",-1)),H={class:"form-card red"},J=a(()=>e("div",{class:"tips"},"昨日现金收银金额",-1)),K={class:"form-card red"},M=a(()=>e("div",{class:"tips"},"本月现金收银金额",-1)),Q={class:"form-card"},T=a(()=>e("div",{class:"tips"},"昨日收银 线上+现金 总金额",-1)),W={class:"table"},X={__name:"indexCount",setup(i){const c=b(),_=o([]);k(),o(1),o(null);const h=o({page:1,limit:15,staff_id:c.userInfo.service.service_id}),r=o(!1);o(0),(()=>{f(c.userInfo.service.mer_id,h.value).then(d=>{_.value=d.data})})();const s=o({});return(()=>{r.value=!0,g(c.userInfo.service.mer_id,{staff_id:c.userInfo.service.service_id}).then(d=>{s.value=d.data.data,r.value=!1})})(),(d,$)=>{const n=v("el-table-column"),m=v("el-table"),y=x("loading");return I((u(),p("div",B,[s.value.today?(u(),p("div",L,[e("div",N,[e("div",null,t(s.value.today.payPrice),1),V]),e("div",A,[e("div",null,t(s.value.yesterday.payPrice),1),O]),e("div",z,[e("div",null,t(s.value.month.payPrice),1),E]),e("div",R,[e("div",null,t(s.value.today.cashPayment+s.value.today.payPrice),1),U]),e("div",j,[e("div",null,t(s.value.month.cashPayment+s.value.month.payPrice),1),q]),e("div",F,[e("div",null,t(s.value.today.cashPayment),1),G]),e("div",H,[e("div",null,t(s.value.yesterday.cashPayment),1),J]),e("div",K,[e("div",null,t(s.value.month.cashPayment),1),M]),e("div",Q,[e("div",null,t(s.value.yesterday.cashPayment+s.value.yesterday.payPrice),1),T])])):S("",!0),e("div",W,[l(m,{data:_.value,style:{width:"100%"}},{default:w(()=>[l(n,{prop:"day",label:"日期",width:"260"}),l(n,{prop:"total",label:"订单数量"}),l(n,{prop:"pay_price",label:"总金额"})]),_:1},8,["data"])])])),[[y,r.value]])}}},te=P(X,[["__scopeId","data-v-e81bdac1"]]);export{te as default};

View File

@ -1 +0,0 @@
@charset "UTF-8";.my-order[data-v-80048b20]{background-color:#fff;border-radius:1.2rem;box-sizing:border-box;padding:1rem;overflow-y:scroll}[data-v-80048b20]::-webkit-scrollbar{width:5px}[data-v-80048b20]::-webkit-scrollbar-track{background-color:#f1f1f1;margin:20px 0}[data-v-80048b20]::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:5px}[data-v-80048b20]::-webkit-scrollbar-thumb:hover{background-color:#999}

View File

@ -1 +0,0 @@
import{e as F,a as G,g as J,f as K}from"./pay.vue_vue_type_style_index_0_scoped_d2507c03_lang-CPz3lDzO.js";import{_ as Q,u as W,r as s,b as d,l as X,v as Y,c as u,h as m,f as t,w as o,g as r,t as Z,e as P,d as I,C as ee,E as h,y as te,z as ae}from"./index-DUM_3Px5.js";import{p as oe}from"./pay-BIYaSPbP.js";const le=v=>(te("data-v-80048b20"),v=v(),ae(),v),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(v){const k=W(),C=s([]),b=ee(),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=>{J({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,K({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"),H=d("el-table"),M=d("el-pagination"),j=d("el-dialog"),q=X("loading");return Y((u(),m("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(H,{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(),m("span",ne,"已支付")):(u(),m("span",re,"未支付"))]),_:1}),t(c,{prop:"create_time",label:"订单创建时间"}),t(c,{prop:"pay_time",label:"订单支付时间"},{default:o(l=>[l.row.pay_time?(u(),m("span",ie,Z(l.row.pay_time),1)):(u(),m("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(M,{"page-size":n.value.limit,layout:"prev, pager, next",total:w.value,onPrevClick:B,onNextClick:D,onCurrentChange:N},null,8,["page-size","total"]),t(oe,{ref_key:"payRef",ref:f,onPaySuccess:R},null,512),t(j,{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]])}}},fe=Q(pe,[["__scopeId","data-v-80048b20"]]);export{fe as default};

View File

@ -1 +0,0 @@
import{o as r,d as t}from"./detail-B501BovZ.js";import{p as o}from"./padding-CwOzKUo2.js";import{c as s,h as a,f as e}from"./index-DUM_3Px5.js";import"./pay.vue_vue_type_style_index_0_scoped_d2507c03_lang-CPz3lDzO.js";import"./pay-BIYaSPbP.js";const i={class:"my-card"},u={__name:"indexSystem",setup(m){return(c,d)=>(s(),a("div",i,[e(r,{style:{"flex-shrink":"0"},ref:"orderRef",isSystem:""},null,512),e(o),e(t,{ref:"detailRef"},null,512)]))}};export{u as default};

View File

@ -0,0 +1 @@
import{D as a}from"./index-BhwfcSvx.js";function i(){return a.get("/merchant/Merchant/amount_account")}function r(n){return a.get("/merchant/Merchant/taking_lists",{params:n})}function c(){return a.get("/merchant/Merchant/taking_info")}function e(n){return a.post("/merchant/Merchant/withdraw",n)}function o(n){return a.get("/financial/FinancialRecord/lists",{params:n})}function s(n){return a.get("/financial/FinancialRecord/api_lists",{params:n})}export{i as a,c as b,e as c,r as d,s as e,o as f};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as e,c as t,h as c}from"./index-DUM_3Px5.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};

View File

@ -0,0 +1 @@
import{_ as e,c as t,h as c}from"./index-BhwfcSvx.js";const n={},o={style:{width:"1rem",height:"100%"}};function r(s,_){return t(),c("div",o)}const i=e(n,[["render",r]]);export{i as p};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.dra-body[data-v-33527f7d]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-33527f7d]{width:25rem;display:flex}.dra-body .header>div[data-v-33527f7d]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-33527f7d]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-33527f7d]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-33527f7d]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-33527f7d]{width:100%;height:3rem}.dra-body .card1 .tips[data-v-33527f7d]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.cancel-btn[data-v-33527f7d]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-33527f7d]{width:100%;overflow-x:hidden}.counter[data-v-33527f7d]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-33527f7d]{height:3rem;padding:0 1.25rem;border:.0625rem solid #1890ff;box-shadow:0 0 .18rem #1890ff;border-radius:.5rem;background-color:#fff;font-size:1.62rem;line-height:3rem;color:#333}.counter .balance[data-v-33527f7d]{width:100%;box-sizing:border-box;padding:1.12rem 0 1.12rem .625rem;text-align:start;font-size:.95rem;color:#303133;display:flex;justify-content:space-between}.counter .balance .money[data-v-33527f7d]{color:#ff4a00}.counter .balance .tips[data-v-33527f7d]{font-size:.8rem;color:#999}.counter .keypad[data-v-33527f7d]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-33527f7d]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-33527f7d]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-33527f7d]{height:3.875rem;width:8.125rem;margin:0!important;border:0;border-radius:.5rem;font-weight:500;font-size:1.75rem!important;line-height:3.87rem;color:#1890ff}.counter .keypad .el-button[data-v-33527f7d]:focus{box-shadow:none}.counter .keypad .enter[data-v-33527f7d]{grid-row-end:span 4;height:8.37rem;line-height:8.37rem;background-color:#1890ff;font-weight:500;font-size:1.35rem!important;color:#fff;position:relative}.counter .keypad .enter-disable[data-v-33527f7d]{background-color:#ccc}

View File

@ -1 +0,0 @@
.dra-body[data-v-d2507c03]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-d2507c03]{width:25rem;display:flex}.dra-body .header>div[data-v-d2507c03]{flex:1;border:1px solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-d2507c03]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-d2507c03]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-d2507c03]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-d2507c03]{width:100%;height:3rem}.dra-body .card1 .tips[data-v-d2507c03]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.cancel-btn[data-v-d2507c03]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-d2507c03]{width:100%;overflow-x:hidden}.counter[data-v-d2507c03]{padding:20px;border-radius:20px;background-color:#f3f9ff}.counter .received[data-v-d2507c03]{height:58px;padding:0 20px;border:1px solid #1890ff;box-shadow:0 0 3px #1890ff;border-radius:8px;background-color:#fff;font-size:26px;line-height:58px;color:#333}.counter .balance[data-v-d2507c03]{width:100%;box-sizing:border-box;padding:18px 0 18px 10px;text-align:start;font-size:.95rem;color:#303133;display:flex;justify-content:space-between}.counter .balance .money[data-v-d2507c03]{color:#ff4a00}.counter .balance .tips[data-v-d2507c03]{font-size:.8rem;color:#999}.counter .keypad[data-v-d2507c03]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:10px}.counter .keypad .left[data-v-d2507c03]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:10px}.counter .keypad .right[data-v-d2507c03]{display:grid;grid-template-columns:auto;grid-gap:10px}.counter .keypad .el-button[data-v-d2507c03]{height:62px;width:130px;margin:0!important;border:0;border-radius:8px;font-weight:500;font-size:28px!important;line-height:62px;color:#1890ff}.counter .keypad .el-button[data-v-d2507c03]:focus{box-shadow:none}.counter .keypad .enter[data-v-d2507c03]{grid-row-end:span 4;height:134px;line-height:134px;background-color:#1890ff;font-weight:500;font-size:1.35rem!important;color:#fff;position:relative}.counter .keypad .enter-disable[data-v-d2507c03]{background-color:#ccc}

View File

@ -1 +0,0 @@
import{G as e}from"./index-DUM_3Px5.js";function n(r){return e.post("user/cart/create",r)}function s(r){return e.get("user/cart/lst",{params:r})}function o(r,t){return e.post(`user/cart/change/${r}`,t)}function u(r){return e.post("v2/order/check",r)}function c(r){return e.post("user/cart/delete",r)}function p(r){return e.post("v2/order/create",r)}function d(r,t){return e.post(`order/pay/${r}`,t)}function f(r){return e.get("micropay_query",{params:r})}function A(r,t){return e.get(`admin/${r}/order_list`,{params:t})}function g(r,t){return e.get(`verifier/${r}/order/${t}`)}function m(r){return e.get("order_lading",{params:r})}function $(r,t,i){return e.post(`verifier/${r}/${t}`,i)}function v(r,t){return e.get(`admin/${r}/statistics`,{params:t})}function h(r,t){return e.get(`admin/${r}/order_price`,{params:t})}export{s as a,o as b,c,n as d,A as e,m as f,f as g,h,$ as i,p as j,d as k,u as o,v as s,g as v};

View File

@ -1 +0,0 @@
import{G as e}from"./index-DUM_3Px5.js";function a(t,r){return e.get(`server/${t}/product/lst`,{params:r})}function p(t,r){return e.get(`store/product/detail/${t}`,{params:r})}function o(t,r){return e.post(`user_free_trial/${t}`,r)}function i(t,r){return e.get(`server/${t}/product/title`,{params:r})}function n(t,r,s){return e.post(`server/${t}/product/status/${r}`,s)}function c(t,r){return e.get(`server/${t}/category/list`,{params:r})}function d(t,r){return e.post(`server/${t}/product/create`,r)}function $(t,r,s){return e.post(`server/${t}/product/update/${r}`,s)}function f(t,r,s){return e.get(`server/${t}/product/detail/${r}`,{params:s})}export{d as a,$ as b,c,i as d,n as e,p as g,f as p,a as s,o as u};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
#receipt{padding:.625rem .625rem 1.25rem;font-size:.75rem;border:.0625rem solid #ccc;width:12.5rem}

View File

@ -1,12 +1,63 @@
<!doctype html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./cashier.svg" /> <link rel="icon" type="image/svg+xml" href="./cashier.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>里海收银系统</title> <title>里海收银系统</title>
<script type="module" crossorigin src="./assets/index-DUM_3Px5.js"></script> <script
<link rel="stylesheet" crossorigin href="./assets/index-jw1reycn.css"> type="text/javascript"
src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"
></script>
<script type="text/javascript">
document.addEventListener("UniAppJSBridgeReady", function () {});
function receiveData(data) {
try {
data = JSON.parse(data);
if (data.type === "connect") {
window.postMessage(data);
}
} catch (error) {}
}
</script>
<style>
/* 小屏幕 */
@media screen and (max-width: 576px) {
html {
font-size: 0.625rem;
}
}
/* 中等屏幕 */
@media screen and (min-width: 577px) and (max-width: 992px) {
html {
font-size: 0.625rem;
}
}
/* 大屏幕 */
@media screen and (min-width: 993px) and (max-width: 1336px) {
html {
font-size: 0.875rem;
}
}
/* 大屏幕 */
@media screen and (min-width: 1336px) and (max-width: 1900px) {
html {
font-size: 0.9375rem;
}
}
/* 大屏幕 */
@media screen and (min-width: 1900px) {
html {
font-size: 1rem;
}
}
</style>
<script type="module" crossorigin src="./assets/index-BhwfcSvx.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-B7YDDoo1.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -67,7 +67,7 @@ export function productDetailApi(mer_id, id, data) {
* @description 批发商品列表 * @description 批发商品列表
*/ */
export function saleStoreListApi(data) { export function saleStoreListApi(data) {
return request.get(`/goods/goods/lists`, { params: data }) return request.get(`/goods/goods/mer_list`, { params: data })
} }
/** /**

View File

@ -39,7 +39,7 @@ const changeActive = (e) => {
nextTick(() => { nextTick(() => {
input.value = ""; input.value = "";
codeRef.value?.focus(); codeRef.value?.focus();
}) });
} }
}; };
@ -88,8 +88,8 @@ const handleEnter = () => {
if (order_id.value) orderPay(order_id.value); if (order_id.value) orderPay(order_id.value);
else { else {
let pay_type; let pay_type;
if (regexWechat.test(input.value)) pay_type = "9"; if (regexWechat.test(input.value)) pay_type = "9"; //
else if (regexPay.test(input.value)) pay_type = "alipayBar"; else if (regexPay.test(input.value)) pay_type = "13"; //
else { else {
loading.value = false; loading.value = false;
input.value = ""; input.value = "";
@ -104,28 +104,28 @@ const handleEnter = () => {
auth_code: input.value, auth_code: input.value,
}) })
.then((res) => { .then((res) => {
if (res.data.trade_state == 'SUCCESS') { if (res.data.trade_state == "SUCCESS") {
drawer.value = false; drawer.value = false;
ElMessage({ ElMessage({
message: res.data.trade_state_desc || '支付成功', message: res.data.trade_state_desc || "支付成功",
type: "success", type: "success",
}); });
// if(res.data.message) audioplay(res.data.message); // if(res.data.message) audioplay(res.data.message);
beforeClose(res.data); beforeClose(res.data);
} else { } else {
if(res.msg=='用户支付中'&&res.code==1){ if (res.msg == "用户支付中" && res.code == 1) {
ElMessage.warning(res.msg); ElMessage.warning(res.msg);
mitt.on('pay_success', (e)=>{ mitt.on("pay_success", (e) => {
ElMessage({ ElMessage({
message: '支付成功', message: "支付成功",
type: "success", type: "success",
}); });
setTimeout(() => { setTimeout(() => {
mitt.off('pay_success'); mitt.off("pay_success");
}, 200); }, 200);
drawer.value = false; drawer.value = false;
beforeClose(e); beforeClose(e);
}) });
} }
// if (!res.data.group_order_sn) { // if (!res.data.group_order_sn) {
// order_id.value = res.data.result.order_id; // order_id.value = res.data.result.order_id;
@ -173,10 +173,10 @@ const orderPay = (id) => {
}; };
orderPayApi(id, query) orderPayApi(id, query)
.then((res) => { .then((res) => {
if (res.data.trade_state == 'SUCCESS') { if (res.data.trade_state == "SUCCESS") {
drawer.value = false; drawer.value = false;
ElMessage({ ElMessage({
message: res.message=='success'?'支付成功':res.message, message: res.message == "success" ? "支付成功" : res.message,
type: "success", type: "success",
}); });
// if(res.data.message) audioplay(res.data.message); // if(res.data.message) audioplay(res.data.message);
@ -206,7 +206,7 @@ const getOrderStatus = (id) => {
order_sn: id, order_sn: id,
}) })
.then((res) => { .then((res) => {
if (res.data.trade_state == 'SUCCESS') { if (res.data.trade_state == "SUCCESS") {
ElMessage({ ElMessage({
message: res.message, message: res.message,
type: "success", type: "success",
@ -215,7 +215,10 @@ const getOrderStatus = (id) => {
beforeClose(); beforeClose();
} else { } else {
ElMessage({ ElMessage({
message: res.data.trade_state=='USERPAYING' ? '用户正在支付中' : res.message, message:
res.data.trade_state == "USERPAYING"
? "用户正在支付中"
: res.message,
type: "error", type: "error",
}); });
input.value = ""; input.value = "";
@ -261,7 +264,7 @@ defineExpose({
drawer, drawer,
setForm, setForm,
setRePay, setRePay,
beforeClose beforeClose,
}); });
const collectionArray = ref([]); const collectionArray = ref([]);
@ -312,41 +315,23 @@ const cashBnt = () => {
changePrice.value === null || changePrice.value === null ||
changePrice.value === undefined || changePrice.value === undefined ||
+collection.value < +form.value.total +collection.value < +form.value.total
) return ElMessage.error("收款金额应该大于等于应收金额"); )
return ElMessage.error("收款金额应该大于等于应收金额");
if (order_id.value) orderPay(order_id.value); if (order_id.value) orderPay(order_id.value);
else else
orderCreateApi({ orderCreateApi({
address_id: "", address_id: "",
cart_id: cart_id.value, cart_id: cart_id.value,
pay_type: "cash_payment", pay_type: "17", // 17
}) })
.then((res) => { .then((res) => {
if (res.data.trade_state == 'SUCCESS') {
drawer.value = false; drawer.value = false;
ElMessage({ ElMessage({
message: res.message, message: res.msg,
type: "success", type: "success",
}); });
changeActive(1); changeActive(1);
// if(res.data.message) audioplay(res.data.message);
beforeClose(); beforeClose();
} else {
if (!res.data.group_order_sn) {
order_id.value = res.data.result.order_id;
collection.value = "";
collectionArray.value = [];
loading.value = false;
return ElMessage({
message: res.message,
type: "error",
});
} else {
order_id.value = res.data.group_order_id;
count.value = 0;
timecount = 0;
getOrderStatus(res.data.group_order_sn);
}
}
}) })
.catch((err) => { .catch((err) => {
loading.value = false; loading.value = false;
@ -358,7 +343,7 @@ const keyboard = (event) => {
let e = event || window.event; let e = event || window.event;
let key = e.keyCode; let key = e.keyCode;
if (key == 37) return changeActive(2); if (key == 37) return changeActive(2);
if(key == 120)return mitt.emit('F9'); if (key == 120) return mitt.emit("F9");
if (key == 27) return beforeClose(); if (key == 27) return beforeClose();
event.stopPropagation(); // event.stopPropagation(); //
event.preventDefault(); // event.preventDefault(); //
@ -419,7 +404,7 @@ const keyboard = (event) => {
}; };
// //
const isFocus = ref(false) const isFocus = ref(false);
// //
const aleft = () => { const aleft = () => {
@ -439,7 +424,6 @@ onUnmounted(() => {
mitt.off("left", aleft); mitt.off("left", aleft);
mitt.off("right", aright); mitt.off("right", aright);
}); });
</script> </script>
<template> <template>
@ -488,8 +472,8 @@ onUnmounted(() => {
class="code-input" class="code-input"
placeholder="请点击输入框聚焦扫码或输入编码号" placeholder="请点击输入框聚焦扫码或输入编码号"
@keyup.enter="handleEnter" @keyup.enter="handleEnter"
@focus="isFocus=true;" @focus="isFocus = true"
@blur="isFocus=false;" @blur="isFocus = false"
/> />
<div class="tips"></div> <div class="tips"></div>
</div> </div>
@ -503,7 +487,9 @@ onUnmounted(() => {
> >
</div> </div>
<div class="balance" v-if="changePrice >= 0"> <div class="balance" v-if="changePrice >= 0">
<div>需找零()<span class="money">{{ changePrice }}</span></div> <div>
需找零()<span class="money">{{ changePrice }}</span>
</div>
<div class="tips">按回车(Enter)确认支付</div> <div class="tips">按回车(Enter)确认支付</div>
</div> </div>
<div class="balance" v-else> <div class="balance" v-else>
@ -524,7 +510,12 @@ onUnmounted(() => {
><el-icon><Delete /></el-icon ><el-icon><Delete /></el-icon
></el-button> ></el-button>
<el-button @click="delNum(-1)">C</el-button> <el-button @click="delNum(-1)">C</el-button>
<el-button class="enter" :class="{'enter-disable': +collection < +form.total}" :disabled="+collection < +form.total" @click="cashBnt"> <el-button
class="enter"
:class="{ 'enter-disable': +collection < +form.total }"
:disabled="+collection < +form.total"
@click="cashBnt"
>
确认 确认
</el-button> </el-button>
</div> </div>
@ -582,7 +573,7 @@ onUnmounted(() => {
.tips { .tips {
width: 38rem; width: 38rem;
height: 16rem; height: 16rem;
background: url('@/assets/pay.png'); background: url("@/assets/pay.png");
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
@ -609,14 +600,14 @@ onUnmounted(() => {
background-color: #f3f9ff; background-color: #f3f9ff;
.received { .received {
height: 3.0rem; height: 3rem;
padding: 0 1.25rem; padding: 0 1.25rem;
border: 1px solid #1890ff; border: 1px solid #1890ff;
box-shadow: 0 0 0.18rem #1890ff; box-shadow: 0 0 0.18rem #1890ff;
border-radius: 0.5rem; border-radius: 0.5rem;
background-color: #ffffff; background-color: #ffffff;
font-size: 1.62rem; font-size: 1.62rem;
line-height: 3.0rem; line-height: 3rem;
color: #333; color: #333;
} }

View File

@ -77,6 +77,7 @@ const close = () => {
:min="0" :min="0"
:step="1" :step="1"
style="width: 20rem" style="width: 20rem"
size="large"
/> />
</div> </div>
</div> </div>

View File

@ -9,6 +9,10 @@ const props = defineProps({
type: Array, type: Array,
default: () => [], default: () => [],
}, },
loading: {
type: Boolean,
default: () => false
}
}); });
const codeRef = ref(null); const codeRef = ref(null);
@ -30,9 +34,10 @@ const changeItem = (item) => {
}; };
const handleEnter = _.throttle(() => { const handleEnter = _.throttle(() => {
emit("getStoreList", { let obj = {}
name: name.value, if(/^\d+$/.test(name.value)) obj.code = name.value;
}, true); else obj.name = name.value;
emit("getStoreList", obj, true);
}, 300) }, 300)
defineExpose({ defineExpose({
@ -88,6 +93,7 @@ onUnmounted(() => {
</div> </div>
<div <div
class="shop-list" class="shop-list"
v-loading="loading"
v-infinite-scroll="loadMore" v-infinite-scroll="loadMore"
:infinite-scroll-distance="1000" :infinite-scroll-distance="1000"
:infinite-scroll-delay="500" :infinite-scroll-delay="500"
@ -264,4 +270,3 @@ onUnmounted(() => {
} }
} }
</style> </style>
, nextTick

View File

@ -28,6 +28,7 @@ const where = ref({
page_no: 1, page_no: 1,
page_size: 30, page_size: 30,
}); });
const loading = ref(false)
const getStoreList = (data = {}, reload = false) => { const getStoreList = (data = {}, reload = false) => {
where.value = { where.value = {
...where.value, ...where.value,
@ -38,7 +39,9 @@ const getStoreList = (data = {}, reload = false) => {
where.value.page_no = 1; where.value.page_no = 1;
loadEnd.value = false; loadEnd.value = false;
} }
loading.value = true;
saleStoreListApi(where.value).then((res) => { saleStoreListApi(where.value).then((res) => {
loading.value = false;
if (res.data?.lists?.length < where.value.page_size) loadEnd.value = true; if (res.data?.lists?.length < where.value.page_size) loadEnd.value = true;
storeList.value = storeList.value.concat(res.data.lists); storeList.value = storeList.value.concat(res.data.lists);
if ( if (
@ -190,6 +193,7 @@ onUnmounted(() => {
ref="shopRef" ref="shopRef"
style="flex: 1" style="flex: 1"
:storeList="storeList" :storeList="storeList"
:loading="loading"
@getStoreList="getStoreList" @getStoreList="getStoreList"
@changeItem="changeItem" @changeItem="changeItem"
@loadMore="loadMore" @loadMore="loadMore"

View File

@ -42,6 +42,7 @@ const setForm = (e)=>{
} }
const submit = ()=>{ const submit = ()=>{
form.value.amount = Math.floor(form.value.amount * 100) / 100;
if(+form.value.amount <= 0) { if(+form.value.amount <= 0) {
form.value.amount = ''; form.value.amount = '';
return ElMessage.error('提现金额必须大于0'); return ElMessage.error('提现金额必须大于0');
@ -105,7 +106,7 @@ const submit = ()=>{
<el-button class="btn" type="primary" @click="form.amount=info.balance">全部</el-button> <el-button class="btn" type="primary" @click="form.amount=info.balance">全部</el-button>
</div> </div>
<div class="order-btn"> <div class="order-btn">
<el-button class="btn" type="primary" @click="submit" :disabled="info.balance<=0">立即提现</el-button> <el-button class="btn" type="primary" @click="submit" :disabled="info.balance<=0||bankList.length==0">立即提现</el-button>
</div> </div>
</div> </div>
</div> </div>