This commit is contained in:
weipengfei 2024-06-18 18:37:39 +08:00
parent 387fde1fd8
commit 637c4df043
53 changed files with 235 additions and 127 deletions

View File

@ -1 +0,0 @@
import{A as U,_ as I,u as R,r as u,o as S,b as s,c as b,h as L,e as v,f as e,w as t,p as m,g as B,y as C,z as E,D as K,E as w}from"./index-DHeiRjQX.js";function N(a){return U.post("/login/account",a)}const M=a=>(C("data-v-f9ff2ce9"),a=a(),E(),a),T={class:"body"},q={class:"login"},z=M(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),A={__name:"index",setup(a){const d=R(),y=K(),h=u(null),p=u(null),n=u({account:"",password:"",terminal:1}),_=()=>{if(!n.value.account)return w({message:"请填写账号",type:"error"});if(!n.value.password)return w({message:"请填写密码",type:"error"});N(n.value).then(l=>{var o;(o=l.data)!=null&&o.token&&(d.setToken(l.data.token),d.setUserInfo(l.data),y.push("/"))}).catch(l=>{})};return S(()=>{}),(l,o)=>{const k=s("User"),f=s("el-icon"),i=s("el-input"),c=s("el-form-item"),g=s("Lock"),x=s("el-button"),V=s("el-form");return b(),L("div",T,[v("div",q,[z,e(V,null,{default:t(()=>[e(c,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:h,modelValue:n.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>n.value.account=r),placeholder:"请输入账号",onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:n.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>n.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["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:_},{default:t(()=>[B("登录")]),_:1})]),_:1})]),_:1})])])}}},$=I(A,[["__scopeId","data-v-f9ff2ce9"]]);export{$ as default};

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 +1 @@
@charset "UTF-8";.my-order[data-v-4002e8c0]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-4002e8c0]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-4002e8c0]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-4002e8c0]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-4002e8c0]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-4002e8c0]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-4002e8c0]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-4002e8c0]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-4002e8c0]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-4002e8c0]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-4002e8c0]: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-4002e8c0]: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-4002e8c0]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-4002e8c0]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-4002e8c0]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-4002e8c0]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-4002e8c0]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-4002e8c0]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-4002e8c0]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-4002e8c0]{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-4002e8c0]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-4002e8c0]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-4002e8c0]{background-color:#efefef}.my-order .load-end[data-v-4002e8c0]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-f20a49e0]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-f20a49e0]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-f20a49e0]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-f20a49e0]{font-weight:700}.my-order .detail .table .table-info[data-v-f20a49e0]{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-f20a49e0]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-f20a49e0]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-f20a49e0]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-f20a49e0]{position:absolute;bottom:0;left:0;width:100%;height:6rem;box-sizing:border-box;background-color:#fff;display:flex;justify-content:flex-end;align-items:center;padding:0 2rem;border-top:.0625rem solid #eee}.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} @charset "UTF-8";.my-order[data-v-4002e8c0]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-4002e8c0]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-4002e8c0]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-4002e8c0]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-4002e8c0]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-4002e8c0]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-4002e8c0]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-4002e8c0]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-4002e8c0]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-4002e8c0]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-4002e8c0]: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-4002e8c0]: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-4002e8c0]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-4002e8c0]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-4002e8c0]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-4002e8c0]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-4002e8c0]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-4002e8c0]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-4002e8c0]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-4002e8c0]{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-4002e8c0]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-4002e8c0]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-4002e8c0]{background-color:#efefef}.my-order .load-end[data-v-4002e8c0]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-d6d231a6]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-d6d231a6]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-d6d231a6]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-d6d231a6]{font-weight:700}.my-order .detail .table .table-info[data-v-d6d231a6]{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-d6d231a6]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-d6d231a6]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-d6d231a6]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-d6d231a6]{position:absolute;bottom:0;left:0;width:100%;height:6rem;box-sizing:border-box;background-color:#fff;display:flex;justify-content:flex-end;align-items:center;padding:0 2rem;border-top:.0625rem solid #eee}.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 @@
@charset "UTF-8";.put-storage{background-color:#fff;border-radius:1.2rem;box-sizing:border-box;padding:1rem;height:100%;display:flex;flex-direction:column}.put-storage .image{width:4rem;height:4rem}.put-storage .order-lists{flex:1;width:100%}::-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

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-90e829d8]{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-90e829d8]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem}.my-order .header-nav .nav-item[data-v-90e829d8]{font-weight:700}.my-order .header-nav span[data-v-90e829d8]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-90e829d8]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .header-input[data-v-90e829d8]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-90e829d8]{flex:1;overflow-y:auto}.my-order .order-lists .item[data-v-90e829d8]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-90e829d8]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-90e829d8]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-90e829d8]: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-90e829d8]: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-90e829d8]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-90e829d8]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-90e829d8]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-90e829d8]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-90e829d8]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-90e829d8]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-90e829d8]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-90e829d8]{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-90e829d8]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-90e829d8]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-90e829d8]{background-color:#efefef}.my-order .load-end[data-v-90e829d8]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-2317ae78]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-2317ae78]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-2317ae78]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-2317ae78]{font-weight:700}.my-order .detail .table .table-info[data-v-2317ae78]{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-2317ae78]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-2317ae78]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-2317ae78]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-2317ae78]{position:absolute;bottom:0;left:0;width:100%;height:6rem;box-sizing:border-box;background-color:#fff;display:flex;justify-content:flex-end;align-items:center;padding:0 2rem;border-top:.0625rem solid #eee}.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:.0625rem solid #1890ff;padding:0 1rem;font-size:1.1rem}.my-card .my-code .box .input:focus{outline:none;box-shadow:0 0 .31rem #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;cursor:pointer}.my-card .my-code .to-list{width:auto;color:#1890ff;font-size:1.1rem;margin-top:3rem;text-align:center;display:flex;align-items:center;cursor:pointer}::-webkit-scrollbar{width:.31rem}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.31rem}::-webkit-scrollbar-thumb:hover{background-color:#999}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{b as t,c,h as a,e,f as o,w as d,g as l}from"./index-DHeiRjQX.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,k as a,e,f as o,w as d,g as l}from"./index-DJoTTm2b.js";const r={style:{width:"100vw",height:"100vh"}},_={style:{display:"flex","justify-content":"center","padding-top":"20vh"}},m={style:{display:"flex","flex-direction":"column","justify-content":"center","padding-left":"3rem"}},p=e("div",{style:{"font-size":"5rem","font-weight":"bold"}},"404",-1),h=e("div",{style:{"padding-bottom":"1rem"}},"您的页面没有找到",-1),v={__name:"index",setup(f){const s=()=>{window.location="/"};return(y,g)=>{const n=t("el-image"),i=t("el-button");return c(),a("div",r,[e("div",_,[o(n,{loading:"lazy",style:{width:"30rem",height:"20rem"},src:"/src/assets/icon-404-color.svg"}),e("div",m,[p,h,o(i,{type:"primary",onClick:s},{default:d(()=>[l("返回首页")]),_:1})])])])}}};export{v as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
@charset "UTF-8";.my-order[data-v-ede11fac]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-ede11fac]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-ede11fac]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-ede11fac]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-ede11fac]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-ede11fac]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-ede11fac]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-ede11fac]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-ede11fac]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-ede11fac]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-ede11fac]: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-ede11fac]: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-ede11fac]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-ede11fac]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-ede11fac]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-ede11fac]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-ede11fac]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-ede11fac]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-ede11fac]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-ede11fac]{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-ede11fac]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-ede11fac]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-ede11fac]{background-color:#efefef}.my-order .load-end[data-v-ede11fac]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-4a81916c]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-4a81916c]{height:calc(100vh - 10.25rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-4a81916c]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-4a81916c]{font-weight:700}.my-order .detail .table .table-info[data-v-4a81916c]{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-4a81916c]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-4a81916c]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-4a81916c]{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} @charset "UTF-8";.my-order[data-v-ede11fac]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-ede11fac]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-ede11fac]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-ede11fac]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-ede11fac]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-ede11fac]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-ede11fac]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-ede11fac]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-ede11fac]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-ede11fac]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-ede11fac]: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-ede11fac]: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-ede11fac]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-ede11fac]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-ede11fac]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-ede11fac]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-ede11fac]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-ede11fac]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-ede11fac]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-ede11fac]{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-ede11fac]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-ede11fac]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-ede11fac]{background-color:#efefef}.my-order .load-end[data-v-ede11fac]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-0d99d774]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-0d99d774]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-0d99d774]{padding:1rem 1rem 6rem;box-sizing:border-box;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-0d99d774]{font-weight:700}.my-order .detail .table .table-info[data-v-0d99d774]{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-0d99d774]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-0d99d774]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-0d99d774]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-0d99d774]{position:absolute;bottom:0;left:0;width:100%;height:6rem;box-sizing:border-box;background-color:#fff;display:flex;justify-content:flex-end;align-items:center;padding:0 2rem;border-top:.0625rem solid #eee}.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 @@
@charset "UTF-8";.my-order[data-v-6dfecf0d]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-6dfecf0d]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-6dfecf0d]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-6dfecf0d]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-6dfecf0d]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-6dfecf0d]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-6dfecf0d]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-6dfecf0d]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-6dfecf0d]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-6dfecf0d]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-6dfecf0d]: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-6dfecf0d]: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-6dfecf0d]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-6dfecf0d]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-6dfecf0d]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-6dfecf0d]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-6dfecf0d]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-6dfecf0d]{display:flex;align-items:center;font-size:.8rem}.my-order .order-lists .item .bottom[data-v-6dfecf0d]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-6dfecf0d]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-6dfecf0d]{background-color:#efefef}.my-order .load-end[data-v-6dfecf0d]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order .bottom-btn-fiexd[data-v-6dfecf0d]{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-6dfecf0d]{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}

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

@ -0,0 +1 @@
import{a as B,b as L}from"./shop-CaNDP56N.js";import{r as f,b as s,h as v,c as i,k as b,f as e,w as t,j as N,g as r,d,p as y,E as A}from"./index-DJoTTm2b.js";const D={class:"my-card put-storage"},I={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},T={__name:"index",setup(S){const u=f([]),a=f({page_no:1,page_size:20,loadend:!1,type:1}),_=f(!1),c=()=>{a.value.loadend||(_.value=!0,B({page_no:a.value.page_no,page_size:a.value.page_size,type:a.value.type}).then(n=>{u.value=[...u.value,...n.data.lists],n.data.lists.length<a.value.page_size&&(a.value.loadend=!0),a.value.page_no++,_.value=!1}))};c();const h=()=>{a.value.page_no=1,a.value.loadend=!1,u.value=[],c()},k=async n=>{L({id:n.id}).then(p=>{n.status=1,A.success("入库成功")})};return(n,p)=>{const g=s("el-radio-button"),x=s("el-radio-group"),o=s("el-table-column"),C=s("el-image"),m=s("el-tag"),V=s("el-button"),E=s("el-table"),w=v("loading"),z=v("infinite-scroll");return i(),b("div",D,[e(x,{style:{"margin-bottom":"20px"},modelValue:a.value.type,"onUpdate:modelValue":p[0]||(p[0]=l=>a.value.type=l),onChange:h},{default:t(()=>[e(g,{label:1,value:1},{default:t(()=>[r("售卖库存")]),_:1}),e(g,{label:2,value:2},{default:t(()=>[r("兑换库存")]),_:1})]),_:1},8,["modelValue"]),N((i(),b("div",I,[e(E,{data:u.value},{default:t(()=>[e(o,{label:"导入人员",prop:"admin_name"}),e(o,{label:"门店确认人员",prop:"staff_name"}),e(o,{label:"商品图",prop:"image"},{default:t(({row:l})=>[e(C,{class:"image",src:l.image},null,8,["src"])]),_:1}),e(o,{label:"商品",prop:"store_name"}),e(o,{label:"数量",prop:"nums"}),e(o,{label:"状态",prop:"status"},{default:t(({row:l})=>[l.status===1?(i(),d(m,{key:0,type:"success"},{default:t(()=>[r("已入库")]),_:1})):l.status===0?(i(),d(m,{key:1,type:"warning"},{default:t(()=>[r("待确认")]),_:1})):l.status===-1?(i(),d(m,{key:2,type:"danger"},{default:t(()=>[r("库存不足")]),_:1})):y("",!0)]),_:1}),e(o,{label:"备注",prop:"mark"}),e(o,{label:"操作",width:"120",fixed:"right"},{default:t(({row:l})=>[l.status==0?(i(),d(V,{key:0,type:"success",onClick:j=>k(l)},{default:t(()=>[r(" 确认入库 ")]),_:2},1032,["onClick"])):y("",!0)]),_:1})]),_:1},8,["data"])])),[[w,_.value],[z,c]])])}}};export{T as default};

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 @@
import{_ as U,u as I,r as u,o as R,b as n,c as S,k as b,e as v,f as e,w as t,i as m,g as C,q as L,s as B,C as E,E as w}from"./index-DJoTTm2b.js";import{l as K}from"./user-C9-8GGK9.js";const N=l=>(L("data-v-f9ff2ce9"),l=l(),B(),l),M={class:"body"},T={class:"login"},q=N(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),$={__name:"index",setup(l){const d=I(),y=E(),k=u(null),p=u(null),s=u({account:"",password:"",terminal:1}),_=()=>{if(!s.value.account)return w({message:"请填写账号",type:"error"});if(!s.value.password)return w({message:"请填写密码",type:"error"});K(s.value).then(a=>{var o;(o=a.data)!=null&&o.token&&(d.setToken(a.data.token),d.setUserInfo(a.data),y.push("/"))}).catch(a=>{})};return R(()=>{}),(a,o)=>{const h=n("User"),f=n("el-icon"),i=n("el-input"),c=n("el-form-item"),x=n("Lock"),V=n("el-button"),g=n("el-form");return S(),b("div",M,[v("div",T,[q,e(g,null,{default:t(()=>[e(c,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:k,modelValue:s.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.account=r),placeholder:"请输入账号",onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(h)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:s.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(x)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:_},{default:t(()=>[C("登录")]),_:1})]),_:1})]),_:1})])])}}},A=U($,[["__scopeId","data-v-f9ff2ce9"]]);export{A as default};

View File

@ -1 +0,0 @@
@charset "UTF-8";.my-order[data-v-c1565278]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-c1565278]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem}.my-order .header-nav span[data-v-c1565278]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-c1565278]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .header-input[data-v-c1565278]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-c1565278]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-c1565278]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-c1565278]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-c1565278]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-c1565278]: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-c1565278]: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-c1565278]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-c1565278]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-c1565278]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-c1565278]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-c1565278]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-c1565278]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-c1565278]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-c1565278]{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-c1565278]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-c1565278]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-c1565278]{background-color:#efefef}.my-order .load-end[data-v-c1565278]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-76c1152d]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-76c1152d]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-76c1152d]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-76c1152d]{font-weight:700}.my-order .detail .table .table-info[data-v-76c1152d]{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-76c1152d]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-76c1152d]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-76c1152d]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-76c1152d]{position:absolute;bottom:0;left:0;width:100%;height:6rem;box-sizing:border-box;background-color:#fff;display:flex;justify-content:flex-end;align-items:center;padding:0 2rem;border-top:.0625rem solid #eee}.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:.0625rem solid #1890ff;padding:0 1rem;font-size:1.1rem}.my-card .my-code .box .input:focus{outline:none;box-shadow:0 0 .31rem #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;cursor:pointer}::-webkit-scrollbar{width:.31rem}::-webkit-scrollbar-track{background-color:#f1f1f1}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.31rem}::-webkit-scrollbar-thumb:hover{background-color:#999}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{f as i}from"./merchant-DxVgBGiP.js";import{_ as d,r as a,b as s,l as p,v as m,c as u,h,e as v,f as e,w as f}from"./index-DHeiRjQX.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(l=>{o.value=l.data.lists})})(),(l,B)=>{const t=s("el-table-column"),c=s("el-table"),_=p("loading");return m((u(),h("div",b,[v("div",g,[e(c,{data:o.value,style:{width:"100%"}},{default:f(()=>[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

@ -0,0 +1 @@
import{f as i}from"./merchant-CLILIP6M.js";import{_ as d,r as a,b as l,h as p,j as m,c as u,k as h,e as f,f as e,w as v}from"./index-DJoTTm2b.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,k)=>{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 +1 @@
import{A as a}from"./index-DHeiRjQX.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}; import{G as a}from"./index-DJoTTm2b.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};

View File

@ -1 +1 @@
import{_ as e,c as t,h as c}from"./index-DHeiRjQX.js";const n={},o={style:{width:"1rem",height:"100%"}};function r(s,_){return t(),c("div",o)}const i=e(n,[["render",r]]);export{i as p}; import{_ as e,c as t,k as c}from"./index-DJoTTm2b.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-62ff6b08]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-62ff6b08]{width:25rem;display:flex}.dra-body .header>div[data-v-62ff6b08]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-62ff6b08]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-62ff6b08]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-62ff6b08]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-62ff6b08]{width:100%;height:3rem;font-size:1.2rem}.dra-body .card1 .tips[data-v-62ff6b08]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.dra-body .card3 .codes[data-v-62ff6b08]{width:38rem;display:flex;align-items:center}.dra-body .card3 .codes .code-input[data-v-62ff6b08]{flex:1;height:3rem;font-size:1.2rem}.dra-body .card3 .codes .get-code-btn[data-v-62ff6b08]{height:3rem;margin-left:1rem}.dra-body .card3 .code-pay[data-v-62ff6b08]{margin-top:4rem;width:100%;height:3rem;border-radius:3rem}.cancel-btn[data-v-62ff6b08]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-62ff6b08]{width:100%;overflow-x:hidden}.counter[data-v-62ff6b08]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-62ff6b08]{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-62ff6b08]{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-62ff6b08]{color:#ff4a00}.counter .balance .tips[data-v-62ff6b08]{font-size:.8rem;color:#999}.counter .keypad[data-v-62ff6b08]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-62ff6b08]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-62ff6b08]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-62ff6b08]{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-62ff6b08]:focus{box-shadow:none}.counter .keypad .enter[data-v-62ff6b08]{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-62ff6b08]{background-color:#ccc}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.dra-body[data-v-0d4a4f66]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-0d4a4f66]{width:25rem;display:flex}.dra-body .header>div[data-v-0d4a4f66]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-0d4a4f66]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-0d4a4f66]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-0d4a4f66]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-0d4a4f66]{width:100%;height:3rem}.dra-body .card1 .tips[data-v-0d4a4f66]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.cancel-btn[data-v-0d4a4f66]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-0d4a4f66]{width:100%;overflow-x:hidden}.counter[data-v-0d4a4f66]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-0d4a4f66]{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-0d4a4f66]{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-0d4a4f66]{color:#ff4a00}.counter .balance .tips[data-v-0d4a4f66]{font-size:.8rem;color:#999}.counter .keypad[data-v-0d4a4f66]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-0d4a4f66]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-0d4a4f66]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-0d4a4f66]{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-0d4a4f66]:focus{box-shadow:none}.counter .keypad .enter[data-v-0d4a4f66]{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-0d4a4f66]{background-color:#ccc}

View File

@ -0,0 +1 @@
import{G as s}from"./index-DJoTTm2b.js";function r(t){return s.get("/store_product/storeProduct/lists",{params:t})}function o(t){return s.get("/cate/cate/lists",{params:t})}function a(t){return s.get("/system_store_storage/systemstorestorage/lists",{params:t})}function i(t){return s.post("/system_store_storage/systemstorestorage/edit",t)}export{a,i as b,o as m,r as s};

View File

@ -1 +0,0 @@
import{A as e}from"./index-DHeiRjQX.js";function s(r){return e.post("/cart/cart/create",r)}function a(r){return e.get("/cart/cart/list",{params:r})}function o(r){return e.post("/store_order/StoreOrder/checkOrder",r)}function i(r){return e.post("/cart/cart/delete",r)}function n(r){return e.post("/store_order/StoreOrder/createOrder",r)}function c(r){return e.post("/store_order/StoreOrder/pay",r)}function d(r){return e.get("/store_order/StoreOrder/lists",{params:r})}function u(r){return e.get("/order/cashierinfo/lists",{params:r})}function p(r){return e.get("/store_order/storeOrder/detail",{params:r})}function f(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function O(r){return e.post("/user/address/merchant_create",r)}function A(r){return e.get("/order/OpurchaseOrder/lists",{params:r})}function h(r){return e.get("/order/OpurchaseOrder/sub_orders",{params:r})}export{a,s as b,i as c,u as d,p as e,n as f,c as g,A as h,h as i,O as m,o,d as s,f as w};

View File

@ -0,0 +1 @@
import{G as e}from"./index-DJoTTm2b.js";function o(r){return e.post("/cart/cart/create",r)}function s(r){return e.get("/cart/cart/list",{params:r})}function i(r){return e.post("/store_order/StoreOrder/checkOrder",r)}function a(r){return e.post("/cart/cart/delete",r)}function n(r){return e.post("/store_order/StoreOrder/createOrder",r)}function c(r){return e.post("/store_order/StoreOrder/pay",r)}function d(r){return e.get("/store_order/StoreOrder/lists",{params:r})}function p(r){return e.get("/order/cashierinfo/lists",{params:r})}function f(r){return e.get("/store_order/storeOrder/detail",{params:r})}function u(r){return e.get("/store_order/storeOrder/writeoff_list",{params:r})}function O(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function A(r){return e.post("/store_order/StoreOrder/checkSms",r)}function _(r){return e.get("/store_order/StoreOrder/print",{params:r})}export{s as a,o as b,a as c,p as d,f as e,n as f,c as g,A as h,_ as i,u as j,i as o,d as s,O as w};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{G as s}from"./index-DJoTTm2b.js";function t(e){return s.post("/login/account",e)}function u(e){return s.get("/user/UserShip/lists",{params:e})}function i(e){return s.post("/user/user/add",e)}function n(e){return s.get("/user/user/lists",{params:e})}function a(e){return s.get("/user/user/detail",{params:e})}function p(e){return s.get("/user/Address/detail",{params:e})}function o(e){return s.post("/user/Address/edit",e)}function d(e){return s.post("/store_order/StoreOrder/rechange_amount",e)}function c(e){return s.post("/user/user/user_ship",e)}function A(e){return s.get("/user/UserLabel/lists",{params:e})}function l(e){return s.post("/user/user/user_label",e)}export{u as a,i as b,d as c,a as d,c as e,A as f,l as g,p as h,o as i,t as l,n as u};

View File

@ -56,8 +56,8 @@
} }
} }
</style> </style>
<script type="module" crossorigin src="./assets/index-DHeiRjQX.js"></script> <script type="module" crossorigin src="./assets/index-DJoTTm2b.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BUGaIO07.css"> <link rel="stylesheet" crossorigin href="./assets/index-BpYACaKk.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -82,3 +82,17 @@ export function userRechangeAmountApi(data) {
export function userShipUpdateApi(data) { export function userShipUpdateApi(data) {
return request.post(`/user/user/user_ship`, data) return request.post(`/user/user/user_ship`, data)
} }
/**
* @description 用户标签
*/
export function userLabelListApi(data) {
return request.get(`/user/UserLabel/lists`, { params: data })
}
/**
* @description 编辑用户标签
*/
export function userLabelUpdateApi(data) {
return request.post(`/user/user/user_label`, data)
}

View File

@ -68,7 +68,7 @@ const setForm = (e) => {
}; };
const setRePay = (e) => { const setRePay = (e) => {
form.value.total = e.price; form.value.pay_price = e.price;
order_id.value = e.order_id; order_id.value = e.order_id;
}; };
@ -119,6 +119,7 @@ const handleEnter = () => {
cart_id: cart_id.value, cart_id: cart_id.value,
pay_type: pay_type, pay_type: pay_type,
auth_code: input.value, auth_code: input.value,
uid: uid.value
}) })
.then((res) => { .then((res) => {
if (res.data.out_trade_no && res.msg == "支付成功") { if (res.data.out_trade_no && res.msg == "支付成功") {
@ -173,7 +174,8 @@ const orderPay = () => {
orderPayApi({ orderPayApi({
order_id: form.value.order_id, order_id: form.value.order_id,
pay_type: pay_type, pay_type: pay_type,
auth_code: input.value auth_code: input.value,
uid: uid.value
}).then((res) => { }).then((res) => {
if (res.msg?.includes('成功')) { if (res.msg?.includes('成功')) {
drawer.value = false; drawer.value = false;
@ -286,7 +288,7 @@ const collection = ref(""); //输入的金额
const changePrice = computed(() => { const changePrice = computed(() => {
// //
if (+collection.value > 0) { if (+collection.value > 0) {
return (collection.value - form.value.total).toFixed(2); return (+collection.value - form.value.pay_price).toFixed(2);
} }
return -1; return -1;
}); });
@ -328,7 +330,7 @@ const cashBnt = () => {
changePrice.value === "" || changePrice.value === "" ||
changePrice.value === null || changePrice.value === null ||
changePrice.value === undefined || changePrice.value === undefined ||
+collection.value < +form.value.total +collection.value < +form.value.pay_price
) )
return ElMessage.error("收款金额应该大于等于应收金额"); return ElMessage.error("收款金额应该大于等于应收金额");
if (isRePay.value) orderPay(); if (isRePay.value) orderPay();
@ -336,6 +338,7 @@ const cashBnt = () => {
orderCreateApi({ orderCreateApi({
cart_id: cart_id.value, cart_id: cart_id.value,
pay_type: "17", // 17 pay_type: "17", // 17
uid: uid.value
}) })
.then((res) => { .then((res) => {
drawer.value = false; drawer.value = false;
@ -552,8 +555,8 @@ onUnmounted(() => {
</el-icon> </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 }" <el-button class="enter" :class="{ 'enter-disable': +collection < +form.pay_price }"
:disabled="+collection < +form.total" @click="cashBnt"> :disabled="+collection < +form.pay_price" @click="cashBnt">
确认 确认
</el-button> </el-button>
</div> </div>

View File

@ -71,12 +71,6 @@ const list = ref([
ico: "FullScreen", ico: "FullScreen",
count: 0, count: 0,
}, },
// {
// name: "statistics",
// title: "",
// ico: "TrendCharts",
// count: 0,
// },
{ {
name: "putStorage", name: "putStorage",
title: "入库登记", title: "入库登记",

View File

@ -47,12 +47,6 @@ const routes = [
meta: { title: '订单核销' }, meta: { title: '订单核销' },
component: () => import('@/views/convert/index.vue'), component: () => import('@/views/convert/index.vue'),
}, },
{
path: '/statistics',
name: 'statistics',
meta: { title: '盈收统计' },
component: () => import('@/views/statistics/index.vue'),
},
{ {
path: '/putStorage', path: '/putStorage',
name: 'putStorage', name: 'putStorage',

View File

@ -52,12 +52,6 @@ request.interceptors.response.use(
}) })
throw new Error(response.data.msg); throw new Error(response.data.msg);
} }
if (response.data.show) {
ElMessage({
message: response.data.msg,
type: 'error',
})
}
if (response.data.code === 500) { if (response.data.code === 500) {
response.data.msg = JSON.parse(response.data.msg); response.data.msg = JSON.parse(response.data.msg);
ElMessage({ ElMessage({
@ -66,6 +60,12 @@ request.interceptors.response.use(
}) })
throw new Error(response.data.msg); throw new Error(response.data.msg);
} }
if (response.data.show) {
ElMessage({
message: response.data.msg,
type: response.data.code === 0 ? 'error' : 'success',
})
}
// console.log(response.data); // console.log(response.data);
if (response.data.code === 0) { if (response.data.code === 0) {
return Promise.reject(response.data) return Promise.reject(response.data)

View File

@ -205,6 +205,21 @@ onUnmounted(() => {
</div> </div>
</div> </div>
</div> </div>
<div class="table-title" v-if="formData.uid">用户信息</div>
<div class="table-info" v-if="formData.uid">
<div class="info-item">
<div class="info-item-title">用户ID:</div>
<div class="info-item-info">{{ formData.uid }}</div>
</div>
<div class="info-item">
<div class="info-item-title">用户昵称:</div>
<div class="info-item-info">{{ formData.nickname }}</div>
</div>
<div class="info-item">
<div class="info-item-title">用户电话:</div>
<div class="info-item-info">{{ formData.mobile }}</div>
</div>
</div>
<div style="font-size: 0.9rem"> <div style="font-size: 0.9rem">
共计 共计
<span style="color: #ff4a00">{{ formData.product?.length || " " }}</span> 款商品 <span style="color: #ff4a00">{{ formData.product?.length || " " }}</span> 款商品

View File

@ -190,6 +190,21 @@ onUnmounted(() => {
</div> </div>
</div> </div>
</div> </div>
<div class="table-title" v-if="formData.uid">用户信息</div>
<div class="table-info" v-if="formData.uid">
<div class="info-item">
<div class="info-item-title">用户ID:</div>
<div class="info-item-info">{{ formData.uid }}</div>
</div>
<div class="info-item">
<div class="info-item-title">用户昵称:</div>
<div class="info-item-info">{{ formData.nickname }}</div>
</div>
<div class="info-item">
<div class="info-item-title">用户电话:</div>
<div class="info-item-info">{{ formData.mobile }}</div>
</div>
</div>
<div style="font-size: 0.9rem"> <div style="font-size: 0.9rem">
共计 共计
<span style="color: #ff4a00">{{ formData.product?.length || " " }}</span> 款商品 <span style="color: #ff4a00">{{ formData.product?.length || " " }}</span> 款商品
@ -209,11 +224,11 @@ onUnmounted(() => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="footer"> <!-- <div class="footer">
<el-button v-if="formData.is_writeoff === 0" type="primary" size="large" :disabled="formData.is_writeoff" <el-button v-if="formData.is_writeoff === 0" type="primary" size="large" :disabled="formData.is_writeoff"
@click="stockUp">备货</el-button> @click="stockUp">备货</el-button>
<div v-else-if="formData.is_writeoff === 1">等待用户自提</div> <div v-else-if="formData.is_writeoff === 1">等待用户自提</div>
</div> </div> -->
</div> </div>
<div v-else> <div v-else>
<el-empty></el-empty> <el-empty></el-empty>

View File

@ -94,6 +94,7 @@ const checkOut = () => {
let cart_id = orderRef.value.list.map((item) => item.id); let cart_id = orderRef.value.list.map((item) => item.id);
let query = { let query = {
cart_id: cart_id, cart_id: cart_id,
uid: orderRef.value?.userInfo?.uid || ""
}; };
if (orderRef.value.discounts > 0) { if (orderRef.value.discounts > 0) {
query.deduction_price = orderRef.value.discounts.toFixed(2); query.deduction_price = orderRef.value.discounts.toFixed(2);

View File

@ -200,6 +200,21 @@ onUnmounted(() => {
</div> </div>
</div> </div>
</div> </div>
<div class="table-title" v-if="formData.uid">用户信息</div>
<div class="table-info" v-if="formData.uid">
<div class="info-item">
<div class="info-item-title">用户ID:</div>
<div class="info-item-info">{{ formData.uid }}</div>
</div>
<div class="info-item">
<div class="info-item-title">用户昵称:</div>
<div class="info-item-info">{{ formData.nickname }}</div>
</div>
<div class="info-item">
<div class="info-item-title">用户电话:</div>
<div class="info-item-info">{{ formData.mobile }}</div>
</div>
</div>
<div style="font-size: 0.9rem"> <div style="font-size: 0.9rem">
共计 共计
<span style="color: #ff4a00">{{ formData.product?.length || " " }}</span> 款商品 <span style="color: #ff4a00">{{ formData.product?.length || " " }}</span> 款商品

View File

@ -1,8 +0,0 @@
<template>
我是统计
</template>
<script lang="ts" setup>
import { ref, reactive } from "vue"
</script>

View File

@ -8,6 +8,7 @@ import { ElMessage } from "element-plus";
const formDataRef = ref(null); const formDataRef = ref(null);
const formDataInfo = reactive({ const formDataInfo = reactive({
mobile: '', mobile: '',
real_name: '',
user_ship: '', user_ship: '',
selectedValues: [], selectedValues: [],
}) })
@ -17,6 +18,9 @@ const formDataRules = reactive({
{ required: true, message: '请输入手机号', trigger: 'blur' }, { required: true, message: '请输入手机号', trigger: 'blur' },
{ pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' } { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
], ],
real_name: [
{ required: true, message: '请输入用户姓名', trigger: 'blur' }
],
user_ship: [ user_ship: [
{ required: true, message: '请选择用户类型', trigger: 'change' } { required: true, message: '请选择用户类型', trigger: 'change' }
], ],
@ -122,6 +126,7 @@ const addUser = () => {
let forms = {}; let forms = {};
forms.mobile = formDataInfo.mobile; forms.mobile = formDataInfo.mobile;
forms.user_ship = formDataInfo.user_ship; forms.user_ship = formDataInfo.user_ship;
forms.real_name = formDataInfo.real_name;
forms.province = "510000"; forms.province = "510000";
forms.city = formDataInfo.selectedValues[0] forms.city = formDataInfo.selectedValues[0]
forms.area = formDataInfo.selectedValues[1] forms.area = formDataInfo.selectedValues[1]
@ -148,6 +153,9 @@ defineExpose({
<el-form-item label="用户电话" prop="mobile"> <el-form-item label="用户电话" prop="mobile">
<el-input v-model="formDataInfo.mobile" placeholder="请输入用户电话" /> <el-input v-model="formDataInfo.mobile" placeholder="请输入用户电话" />
</el-form-item> </el-form-item>
<el-form-item label="用户姓名" prop="real_name">
<el-input v-model="formDataInfo.real_name" placeholder="请输入用户姓名" />
</el-form-item>
<el-form-item label="用户类型" prop="user_ship"> <el-form-item label="用户类型" prop="user_ship">
<el-select v-model="formDataInfo.user_ship" placeholder="请选择用户类型" style="width: 100%;"> <el-select v-model="formDataInfo.user_ship" placeholder="请选择用户类型" style="width: 100%;">
<el-option v-for="item in userShip" :key="item.id" :label="item.title" :value="item.id" :disabled="item.id==1" /> <el-option v-for="item in userShip" :key="item.id" :label="item.title" :value="item.id" :disabled="item.id==1" />

View File

@ -7,7 +7,7 @@ import mitt from "@/utils/mitt.js";
import payUser from "@/components/payUser.vue"; import payUser from "@/components/payUser.vue";
import { userAddressDetailApi, userAddressEditApi, userDetailApi } from "@/api/user" import { userAddressDetailApi, userAddressEditApi, userDetailApi } from "@/api/user"
import { apiProvince, apiCity, apiArea, apiStreet, apiVillage, apiBrigade } from '@/api/public' import { apiProvince, apiCity, apiArea, apiStreet, apiVillage, apiBrigade } from '@/api/public'
import { userShipApi, userShipUpdateApi } from "@/api/user" import { userShipApi, userShipUpdateApi, userLabelListApi, userLabelUpdateApi } from "@/api/user"
const userStore = useUserStore(); const userStore = useUserStore();
const router = useRouter(); const router = useRouter();
@ -64,6 +64,28 @@ const cancelUserShip = ()=>{
updateShip.value = false; updateShip.value = false;
} }
const updateLable = ref(false);
const userLable = ref([]);
const getLableList = () => {
userLabelListApi().then(res => {
userLable.value = res.data.lists;
})
}
getLableList()
const updateUserLable = () => {
userLabelUpdateApi({
id: formData.value.id,
label_id: formData.value.label_id
}).then(res => {
ElMessage.success('修改成功');
formData.value.label_name = userLable.value.find(item => item.label_id == formData.value.label_id)?.label_name;
updateLable.value = false;
})
}
const cancelLable = () => {
updateLable.value = false;
}
const addressInfo = ref({ const addressInfo = ref({
id: '', id: '',
@ -227,8 +249,8 @@ onUnmounted(() => {
<div class="info-item-info red">¥{{ formData.purchase_funds }}</div> <div class="info-item-info red">¥{{ formData.purchase_funds }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">返还金:</div> <div class="info-item-title">返还金:</div>
<div class="info-item-info red">¥{{ formData.number }}</div> <div class="info-item-info red">¥{{ formData.number?.toFixed(2) }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">头像:</div> <div class="info-item-title">头像:</div>
@ -256,6 +278,10 @@ onUnmounted(() => {
<div class="info-item-title">用户账号:</div> <div class="info-item-title">用户账号:</div>
<div class="info-item-info">{{ formData.account }}</div> <div class="info-item-info">{{ formData.account }}</div>
</div> </div>
<div class="info-item">
<div class="info-item-title">真实姓名:</div>
<div class="info-item-info">{{ formData.real_name }}</div>
</div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">创建时间:</div> <div class="info-item-title">创建时间:</div>
<div class="info-item-info">{{ formData.create_time }}</div> <div class="info-item-info">{{ formData.create_time }}</div>
@ -264,10 +290,11 @@ onUnmounted(() => {
<div class="info-item-title">用户类型:</div> <div class="info-item-title">用户类型:</div>
<div class="info-item-info"> <div class="info-item-info">
<template v-if="updateShip == false"> <template v-if="updateShip == false">
<el-tag type="primary" size="large" v-if="formData.user_ship != 1">{{ formData.user_ship_name <el-tag type="primary" size="large" v-if="formData.user_ship != 1">{{
formData.user_ship_name
}}</el-tag> }}</el-tag>
<el-tag type="success" size="large" v-else>{{ formData.user_ship_name }}</el-tag> <el-tag type="success" size="large" v-else>{{ formData.user_ship_name }}</el-tag>
<el-button type="primary" style="margin-left: 1rem;" <el-button type="primary" v-if="formData.user_ship != 1" style="margin-left: 1rem;"
@click="updateShip = true">修改</el-button> @click="updateShip = true">修改</el-button>
</template> </template>
<template v-else> <template v-else>
@ -277,8 +304,30 @@ onUnmounted(() => {
</el-select> </el-select>
<el-button type="primary" style="margin-left: 1rem;" <el-button type="primary" style="margin-left: 1rem;"
@click="updateUserShip">确认</el-button> @click="updateUserShip">确认</el-button>
<el-button style="margin-left: 1rem;" <el-button style="margin-left: 1rem;" @click="cancelUserShip">取消</el-button>
@click="cancelUserShip">取消</el-button> </template>
</div>
</div>
<div class="info-item" v-if="formData.user_ship == 1"
style="width: 100%;flex-shrink: 0;align-items: center;">
<div class="info-item-title">用户标签:</div>
<div class="info-item-info">
<template v-if="updateLable == false">
<el-tag type="primary" size="large" v-if="formData.label_name">{{ formData.label_name
}}</el-tag>
<el-button type="primary" v-if="formData.label_name" style="margin-left: 1rem;"
@click="updateLable = true">修改</el-button>
<el-button type="primary" v-else style="margin-left: 1rem;"
@click="formData.label_id = ''; updateLable = true;">添加</el-button>
</template>
<template v-else>
<el-select v-model="formData.label_id" placeholder="请选择用户类型" style="width: 10rem;">
<el-option v-for="item in userLable" :key="item.label_id" :label="item.label_name"
:value="item.label_id" />
</el-select>
<el-button type="primary" style="margin-left: 1rem;"
@click="updateUserLable">确认</el-button>
<el-button style="margin-left: 1rem;" @click="cancelLable">取消</el-button>
</template> </template>
</div> </div>
</div> </div>

View File

@ -119,7 +119,7 @@ onUnmounted(()=>{
<!-- <div class="r-1">积分: <span class="red">55</span></div> --> <!-- <div class="r-1">积分: <span class="red">55</span></div> -->
<div>余额: <span class="red">{{item.now_money}}</span></div> <div>余额: <span class="red">{{item.now_money}}</span></div>
<div>采购款: <span class="red">{{item.purchase_funds}}</span></div> <div>采购款: <span class="red">{{item.purchase_funds}}</span></div>
<div>返还: <span class="red">{{item.return_money}}</span></div> <div>返还: <span class="red">{{item.return_money?.toFixed(2)}}</span></div>
<div>礼品券: <span class="red">{{item.integral}}</span></div> <div>礼品券: <span class="red">{{item.integral}}</span></div>
<div> <div>
<el-tag type="primary" v-if="item.user_ship!=1">{{ item.user_ship_name }}</el-tag> <el-tag type="primary" v-if="item.user_ship!=1">{{ item.user_ship_name }}</el-tag>