Compare commits

..

1 Commits

Author SHA1 Message Date
weipengfei 643fb1af9a 1 2024-06-26 14:10:09 +08:00
90 changed files with 495 additions and 613 deletions

View File

@ -7,8 +7,8 @@ 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:8545' # VITE_BASE_URL = 'http://192.168.1.22:8545'
VITE_PUSH_URL ='wss://test-multi-store.lihaink.cn/pull' # VITE_PUSH_URL ='wss://test-multi-store.lihaink.cn/pull'
VITE_BASE_URL = 'https://test-multi-store.lihaink.cn' # VITE_BASE_URL = 'https://test-multi-store.lihaink.cn'
# VITE_PUSH_URL ='wss://multi-store.lihaink.cn/pull' VITE_PUSH_URL ='wss://multi-store.lihaink.cn/pull'
# VITE_BASE_URL = 'https://multi-store.lihaink.cn' VITE_BASE_URL = 'https://multi-store.lihaink.cn'

View File

@ -1 +0,0 @@
import{K as o,L as s,E as r,u as d,M as g}from"./index-BMBzhgd2.js";const m=o.create({baseURL:s.api,timeout:6e4});m.interceptors.request.use(t=>{const a=localStorage.getItem("Token");return a&&(t.headers.token=a),t},t=>(console.error(t),Promise.reject(t)));m.interceptors.response.use(t=>{var a;if(t.data.code===-1&&(t.data.msg=="登录过期"||t.data.msg=="登录超时,请重新登录"))throw r({message:t.data.msg,type:"error"}),setTimeout(()=>{const e=d();e.setUserInfo({}),e.setToken(""),g.push("/login")},500),new Error(t.data.msg);if(t.data.code===400)throw r({message:t.data.msg,type:"error"}),new Error(t.data.msg);if(t.data.show&&r({message:t.data.msg,type:"error"}),t.data.code===500)throw t.data.msg=JSON.parse(t.data.msg),r({message:((a=t.data.msg)==null?void 0:a.msg)||t.data.msg,type:"error"}),new Error(t.data.msg);return t.data.code===0?Promise.reject(t.data):t.data},t=>{var a,e;return console.error(t),r({message:((e=(a=t.response)==null?void 0:a.data)==null?void 0:e.msg)||t,type:"error"}),Promise.reject(t)});export{m as r};

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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +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-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

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

@ -0,0 +1 @@
import{a as B,b as L}from"./shop-C55TVXVT.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-DH75R1-e.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

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{_ 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-BVz4Ohfy.js";import{l as K}from"./user-CmzBi8Mn.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}; 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-DH75R1-e.js";import{l as K}from"./user-qAF2nwQz.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};

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +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-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

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 @@
import{b as t,c,k as a,e,f as o,w as d,g as l}from"./index-BMBzhgd2.js";const r={style:{width:"100vw",height:"100vh"}},_={style:{display:"flex","justify-content":"center","padding-top":"20vh"}},m={style:{display:"flex","flex-direction":"column","justify-content":"center","padding-left":"3rem"}},p=e("div",{style:{"font-size":"5rem","font-weight":"bold"}},"404",-1),h=e("div",{style:{"padding-bottom":"1rem"}},"您的页面没有找到",-1),v={__name:"index",setup(f){const s=()=>{window.location="/"};return(y,g)=>{const n=t("el-image"),i=t("el-button");return c(),a("div",r,[e("div",_,[o(n,{loading:"lazy",style:{width:"30rem",height:"20rem"},src:"/src/assets/icon-404-color.svg"}),e("div",m,[p,h,o(i,{type:"primary",onClick:s},{default:d(()=>[l("返回首页")]),_:1})])])])}}};export{v as default}; import{b as t,c,k as a,e,f as o,w as d,g as l}from"./index-DH75R1-e.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 +0,0 @@
@charset "UTF-8";.my-order[data-v-42ec4cb4]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-42ec4cb4]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-42ec4cb4]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-42ec4cb4]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-42ec4cb4]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-42ec4cb4]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-42ec4cb4]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-42ec4cb4]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-42ec4cb4]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-42ec4cb4]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-42ec4cb4]: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-42ec4cb4]: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-42ec4cb4]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-42ec4cb4]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-42ec4cb4]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-42ec4cb4]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-42ec4cb4]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-42ec4cb4]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-42ec4cb4]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-42ec4cb4]{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-42ec4cb4]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-42ec4cb4]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-42ec4cb4]{background-color:#efefef}.my-order .load-end[data-v-42ec4cb4]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-bd1f9589]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-bd1f9589]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-bd1f9589]{padding:1rem;box-sizing:border-box;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-bd1f9589]{font-weight:700}.my-order .detail .table .table-info[data-v-bd1f9589]{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-bd1f9589]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-bd1f9589]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-bd1f9589]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-bd1f9589]{position:absolute;bottom:0;left:0;z-index:1;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

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 @@
import{f as i}from"./merchant-D4huy5DX.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-BMBzhgd2.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}; import{f as i}from"./merchant-CyT-j4BR.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-DH75R1-e.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{H as a}from"./index-BMBzhgd2.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-DH75R1-e.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,k as c}from"./index-BMBzhgd2.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-DH75R1-e.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};

View File

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

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

View File

@ -1 +0,0 @@
import{H as s}from"./index-BMBzhgd2.js";import{r}from"./axiosAPI-DiwKH9qZ.js";function a(t){return r.get("/product/product/lists",{params:t})}function i(t){return s.get("/cate/cate/lists",{params:t})}function n(t){return s.get("/system_store_storage/systemstorestorage/lists",{params:t})}function m(t){return s.post("/system_store_storage/systemstorestorage/edit",t)}export{n as a,m as b,i as m,a as s};

View File

@ -0,0 +1 @@
import{G as s}from"./index-DH75R1-e.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

@ -0,0 +1 @@
import{G as e}from"./index-DH75R1-e.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

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

View File

@ -0,0 +1 @@
import{G as s}from"./index-DH75R1-e.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-BMBzhgd2.js"></script> <script type="module" crossorigin src="./assets/index-DH75R1-e.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-F8CM97a-.css"> <link rel="stylesheet" crossorigin href="./assets/index-BpYACaKk.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -1 +0,0 @@
import{K as o,L as s,E as r,u as d,M as g}from"./index-BVz4Ohfy.js";const m=o.create({baseURL:s.api,timeout:6e4});m.interceptors.request.use(t=>{const a=localStorage.getItem("Token");return a&&(t.headers.token=a),t},t=>(console.error(t),Promise.reject(t)));m.interceptors.response.use(t=>{var a;if(t.data.code===-1&&(t.data.msg=="登录过期"||t.data.msg=="登录超时,请重新登录"))throw r({message:t.data.msg,type:"error"}),setTimeout(()=>{const e=d();e.setUserInfo({}),e.setToken(""),g.push("/login")},500),new Error(t.data.msg);if(t.data.code===400)throw r({message:t.data.msg,type:"error"}),new Error(t.data.msg);if(t.data.show&&r({message:t.data.msg,type:"error"}),t.data.code===500)throw t.data.msg=JSON.parse(t.data.msg),r({message:((a=t.data.msg)==null?void 0:a.msg)||t.data.msg,type:"error"}),new Error(t.data.msg);return t.data.code===0?Promise.reject(t.data):t.data},t=>{var a,e;return console.error(t),r({message:((e=(a=t.response)==null?void 0:a.data)==null?void 0:e.msg)||t,type:"error"}),Promise.reject(t)});export{m as r};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/assets/index-BEvZ4iTk.js vendored Normal file
View File

@ -0,0 +1 @@
import{a as B,b as L}from"./shop-c9MT_JBp.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-QkO6FBr4.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

File diff suppressed because one or more lines are too long

View File

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

1
dist/assets/index-DBEr6_P-.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +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 L,q as B,s as C,D as E,E as w}from"./index-BMBzhgd2.js";import{l as K}from"./user-dRm6MYdG.js";const N=l=>(B("data-v-f9ff2ce9"),l=l(),C(),l),M={class:"body"},T={class:"login"},q=N(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),D={__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(()=>[L("登录")]),_:1})]),_:1})]),_:1})])])}}},z=U(D,[["__scopeId","data-v-f9ff2ce9"]]);export{z as default}; 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-QkO6FBr4.js";import{l as K}from"./user-DUJVH13a.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};

27
dist/assets/index-DM2ZtRC3.js vendored Normal file

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

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{f as i}from"./merchant-CYIKGKiv.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-BVz4Ohfy.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}; import{f as i}from"./merchant-DWA0XvKf.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-QkO6FBr4.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{G as a}from"./index-BVz4Ohfy.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-QkO6FBr4.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,k as c}from"./index-BVz4Ohfy.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-QkO6FBr4.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};

View File

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

1
dist/assets/pay-CjeO9AqB.css vendored Normal file
View File

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

File diff suppressed because one or more lines are too long

1
dist/assets/pay-QX-2kglT.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{G as s}from"./index-BVz4Ohfy.js";import{r}from"./axiosAPI-Cd-ap3gb.js";function a(t){return r.get("/product/product/lists",{params:t})}function i(t){return s.get("/cate/cate/lists",{params:t})}function n(t){return s.get("/system_store_storage/systemstorestorage/lists",{params:t})}function m(t){return s.post("/system_store_storage/systemstorestorage/edit",t)}export{n as a,m as b,i as m,a as s};

1
dist/assets/shop-c9MT_JBp.js vendored Normal file
View File

@ -0,0 +1 @@
import{G as s}from"./index-QkO6FBr4.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{G as e}from"./index-BVz4Ohfy.js";function o(r){return e.post("/cart/cart/create",r)}function s(r){return e.get("/cart/cart/list",{params:r})}function a(r){return e.post("/store_order/StoreOrder/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 p(r){return e.get("/store_order/storeOrder/detail",{params:r})}function u(r){return e.get("/store_order/storeOrder/writeoff_list",{params:r})}function f(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function O(r){return e.post("/store_order/StoreOrder/checkSms",r)}function A(r){return e.get("/store_order/StoreOrder/print",{params:r})}export{s as a,o as b,i as c,p as d,n as e,c as f,O as g,A as h,u as i,a as o,d as s,f as w};

View File

@ -1 +1 @@
import{H as e}from"./index-BMBzhgd2.js";function o(r){return e.post("/cart/cart/create",r)}function s(r){return e.get("/cart/cart/list",{params:r})}function a(r){return e.post("/store_order/StoreOrder/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 p(r){return e.get("/store_order/storeOrder/detail",{params:r})}function u(r){return e.get("/store_order/storeOrder/writeoff_list",{params:r})}function f(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function O(r){return e.post("/store_order/StoreOrder/checkSms",r)}function A(r){return e.get("/store_order/StoreOrder/print",{params:r})}export{s as a,o as b,i as c,p as d,n as e,c as f,O as g,A as h,u as i,a as o,d as s,f as w}; import{G as e}from"./index-QkO6FBr4.js";function o(r){return e.post("/cart/cart/create",r)}function s(r){return e.get("/cart/cart/list",{params:r})}function a(r){return e.post("/store_order/StoreOrder/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 p(r){return e.get("/store_order/storeOrder/detail",{params:r})}function u(r){return e.get("/store_order/storeOrder/writeoff_list",{params:r})}function f(r){return e.post("/store_order/StoreOrder/writeoff_order",r)}function O(r){return e.post("/store_order/StoreOrder/checkSms",r)}function A(r){return e.get("/store_order/StoreOrder/print",{params:r})}export{s as a,o as b,i as c,p as d,n as e,c as f,O as g,A as h,u as i,a as o,d as s,f as w};

File diff suppressed because one or more lines are too long

View File

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

1
dist/assets/user-DUJVH13a.js vendored Normal file
View File

@ -0,0 +1 @@
import{G as s}from"./index-QkO6FBr4.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};

2
dist/index.html vendored
View File

@ -56,7 +56,7 @@
} }
} }
</style> </style>
<script type="module" crossorigin src="./assets/index-BVz4Ohfy.js"></script> <script type="module" crossorigin src="./assets/index-QkO6FBr4.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-F8CM97a-.css"> <link rel="stylesheet" crossorigin href="./assets/index-F8CM97a-.css">
</head> </head>
<body> <body>

View File

@ -1,5 +1,4 @@
import request from '@/utils/axios.js' import request from '@/utils/axios.js'
import api from '@/utils/axiosAPI.js'
/** /**
* @description 商品列表 * @description 商品列表
@ -8,7 +7,6 @@ export function storeListApi(id, data) {
return request.get(`server/${id}/product/lst`, { params: data }) return request.get(`server/${id}/product/lst`, { params: data })
} }
/** /**
* @description 商品详情 * @description 商品详情
*/ */
@ -65,18 +63,11 @@ export function productDetailApi(store_id, id, data) {
return request.get(`server/${store_id}/product/detail/${id}`, { params: data }) return request.get(`server/${store_id}/product/detail/${id}`, { params: data })
} }
// /**
// * @description 批发商品列表
// */
// export function saleStoreListApi(data) {
// return request.get(`/store_product/storeProduct/lists`, { params: data })
// }
/** /**
* @description 批发商品列表 * @description 批发商品列表
*/ */
export function saleStoreListApi(data) { export function saleStoreListApi(data) {
return api.get(`/product/product/lists`, { params: data }) return request.get(`/store_product/storeProduct/lists`, { params: data })
} }
/** /**

View File

@ -41,13 +41,6 @@ export function userAddApi(data) {
return request.post(`/user/user/add`, data) return request.post(`/user/user/add`, data)
} }
/**
* @description 发送新增用户档案验证码
*/
export function userArchivesSmsApi(data) {
return request.post(`/user/user/archives_sms`, data)
}
/** /**
* @description 会员列表 * @description 会员列表
*/ */

View File

@ -16,7 +16,7 @@ const codeRef = ref("");
const userStore = useUserStore(); const userStore = useUserStore();
const minMoney = ref(0) // const minMoney = ref(0.01) //
const onPrint = (id) => { const onPrint = (id) => {
storeOrderPrintApi({ storeOrderPrintApi({
@ -101,7 +101,7 @@ const regexPay = /^(25|26|27|28|29|30)\d{14,22}$/; //支付宝条码正则 25-30
const order_id = ref(""); const order_id = ref("");
// //
const handleEnter = () => { const handleEnter = () => {
// if (form.value.pay_price < minMoney.value) return ElMessage.error(`${minMoney.value}`) if (form.value.pay_price < minMoney.value) return ElMessage.error(`起购金额为${minMoney.value}`)
loading.value = true; loading.value = true;
codeRef.value.blur(); codeRef.value.blur();
if (isRePay.value) orderPay(); if (isRePay.value) orderPay();
@ -332,7 +332,7 @@ const numTap = (item) => {
}; };
// //
const cashBnt = () => { const cashBnt = () => {
// if (form.value.pay_price < minMoney.value) return ElMessage.error(`${minMoney.value}`) if (form.value.pay_price < minMoney.value) return ElMessage.error(`起购金额为${minMoney.value}`)
if ( if (
changePrice.value === "" || changePrice.value === "" ||
changePrice.value === null || changePrice.value === null ||
@ -428,7 +428,7 @@ const keyboard = (event) => {
}; };
const getSms = () => { const getSms = () => {
// if (form.value.pay_price < minMoney.value && active.value === 3) return ElMessage.error(`${minMoney.value}`) if (form.value.pay_price < minMoney.value && active.value === 3) return ElMessage.error(`起购金额为${minMoney.value}`)
if (!uid.value) return ElMessage.error('请先选择用户'); if (!uid.value) return ElMessage.error('请先选择用户');
let type = 1; // let type = 1; //
if (active.value == 4) type = 2; // if (active.value == 4) type = 2; //
@ -446,7 +446,7 @@ const getSms = () => {
const smsCode = ref(''); const smsCode = ref('');
// / // /
const handlecodeEnter = () => { const handlecodeEnter = () => {
// if (form.value.pay_price < minMoney.value && active.value === 3) return ElMessage.error(`${minMoney.value}`) if (form.value.pay_price < minMoney.value && active.value === 3) return ElMessage.error(`起购金额为${minMoney.value}`)
if (!uid.value) return ElMessage.error('请先选择用户'); if (!uid.value) return ElMessage.error('请先选择用户');
let pay_type = 18; // let pay_type = 18; //
if (active.value == 4) pay_type = 19; // if (active.value == 4) pay_type = 19; //
@ -503,7 +503,7 @@ onUnmounted(() => {
<div class="center" :class="{ active: active == 2 }" @click="changeActive(2)"> <div class="center" :class="{ active: active == 2 }" @click="changeActive(2)">
现金收款 现金收款
</div> </div>
<div class="center" style="border-left: none;" :class="{ active: active == 3 }" @click="changeActive(3)"> <div class="center" :class="{ active: active == 3 }" @click="changeActive(3)">
采购款 采购款
</div> </div>
<div class="right" :class="{ active: active == 4 }" @click="changeActive(4)"> <div class="right" :class="{ active: active == 4 }" @click="changeActive(4)">
@ -515,22 +515,21 @@ onUnmounted(() => {
<div style="display: inline-block;margin-right: 20px"> <div style="display: inline-block;margin-right: 20px">
<div style="color: #999;padding: 2rem 0 0.3rem 0">原价:</div> <div style="color: #999;padding: 2rem 0 0.3rem 0">原价:</div>
<div style="color: #f5222d; padding-bottom: 2rem"> <div style="color: #f5222d; padding-bottom: 2rem">
¥<span style="font-size: 1.6rem">{{ form.total_price }}</span> ¥<span style="font-size: 1.6rem">{{ form.original_price }}</span>
</div> </div>
</div> </div>
<div style="display: inline-block;"> <div style="display: inline-block;">
<div style="color: #999;padding: 2rem 0 0.3rem 0">活动折扣: <div style="color: #999;padding: 2rem 0 0.3rem 0">{{ form.activity ? '活动折扣:' : '消费返利' }}
</div> </div>
<div style="color: #f5222d; padding-bottom: 2rem"> <div style="color: #f5222d; padding-bottom: 2rem">
{{ form.activity }}¥<span style="font-size: 1.6rem">{{ form.activity_price }}</span> {{ form.activity }}¥<span style="font-size: 1.6rem">{{ form.activity_price }}</span>
</div> </div>
</div> </div>
</div> </div>
<div style="display: inline-block"> <div style="display: inline-block ">
<div style="color: #999; padding: 2rem 0 0.3rem 0">应收金额():</div> <div style="color: #999; padding: 2rem 0 0.3rem 0">应收金额():</div>
<div style="color: #f5222d; padding-bottom: 2rem"> <div style="color: #f5222d; padding-bottom: 2rem">
¥<span style="font-size: 1.6rem">{{ active == 4 ? form.total_price : form.pay_price }}</span> ¥<span style="font-size: 1.6rem">{{ active == 4 ? form.original_price : form.pay_price }}</span>
<!-- <span style="font-size: 1.6rem" v-if="active==2 && form.activities == 1">{{ Math.ceil(form.original_price - form.activity_price).toFixed(2) }}</span> -->
</div> </div>
</div> </div>

View File

@ -93,7 +93,7 @@ defineExpose({
</div> </div>
<div class="bottom flex" style="justify-content: space-between;"> <div class="bottom flex" style="justify-content: space-between;">
<div>采购款: <span class="red">{{ item.purchase_funds }}</span></div> <div>采购款: <span class="red">{{ item.purchase_funds }}</span></div>
<div>礼品券: <span class="red">{{ item.get_frozen }}</span></div> <div>礼品券: <span class="red">{{ item.integral }}</span></div>
</div> </div>
</div> </div>
</div> </div>
@ -142,7 +142,6 @@ defineExpose({
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: flex-start;
.item { .item {
width: 45%; width: 45%;
@ -204,8 +203,6 @@ defineExpose({
padding: 1rem; padding: 1rem;
color: #333; color: #333;
font-size: 0.8rem; font-size: 0.8rem;
width: 100%;
height: 100%;
} }
} }
</style> </style>

View File

@ -133,8 +133,7 @@ export const printTicket = (obj = {}, test = false) => {
str += Esc.fillLine("=") + "\n"; str += Esc.fillLine("=") + "\n";
// str += Esc.Left() + "合计: " + obj.total_price + "元" + "\n"; str += Esc.Left() + "合计: " + obj.total_price + "元" + "\n";
str += Esc.Left() + "合计: " + obj.pay_price + "元" + "\n";
str += Esc.Left() + "实付款: " + obj.pay_price + "元" + "\n"; str += Esc.Left() + "实付款: " + obj.pay_price + "元" + "\n";
str += Esc.Left() + "支付方式: " + obj.pay_type_name + "\n"; str += Esc.Left() + "支付方式: " + obj.pay_type_name + "\n";
// str += Esc.Left() + "支付单号: " + obj.order_id + "\n"; // str += Esc.Left() + "支付单号: " + obj.order_id + "\n";

View File

@ -175,8 +175,7 @@ onUnmounted(() => {
</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.total_price }}</div> --> <div class="info-item-info">¥{{ formData.total_price }}</div>
<div class="info-item-info">¥{{ formData.pay_price }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">创建时间:</div> <div class="info-item-title">创建时间:</div>
@ -236,7 +235,7 @@ onUnmounted(() => {
</el-table-column> </el-table-column>
<el-table-column prop="cart_info.price" label="单价" width="150" /> <el-table-column prop="cart_info.price" label="单价" width="150" />
<el-table-column prop="cart_info.cart_num" label="数量" width="150" /> <el-table-column prop="cart_info.cart_num" label="数量" width="150" />
<el-table-column prop="cart_info.pay_price" label="总价" width="150"> <el-table-column prop="cart_info.total_price" label="总价" width="150">
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="height: 8rem;"></div> <div style="height: 8rem;"></div>

View File

@ -68,12 +68,9 @@ const getOrderList = (reload = false) => {
} else { } else {
cashierinfoWriteoffListApi(where.value) cashierinfoWriteoffListApi(where.value)
.then((res) => { .then((res) => {
orderList.value = [...orderList.value, ...res.data.lists]; orderList.value = res.data.lists;
if(where.value.page_no == 1) { mitt.emit("set-sale-order-detail", orderList.value[0]);
mitt.emit("set-sale-order-detail", orderList.value[0]);
}
total.value = res.data.count; total.value = res.data.count;
where.value.page_no++;
loading.value = false; loading.value = false;
}) })
.catch((err) => { .catch((err) => {
@ -92,7 +89,6 @@ const setForm = (item, index) => {
const setCode = (code) => { const setCode = (code) => {
where.value.verify_code = code; where.value.verify_code = code;
activeStore.value = 0; activeStore.value = 0;
where.value.page_no = 1;
getOrderList(true); getOrderList(true);
} }

View File

@ -160,8 +160,7 @@ onUnmounted(() => {
</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.total_price }}</div> --> <div class="info-item-info">¥{{ formData.total_price }}</div>
<div class="info-item-info">¥{{ formData.pay_price }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">创建时间:</div> <div class="info-item-title">创建时间:</div>
@ -221,7 +220,7 @@ onUnmounted(() => {
</el-table-column> </el-table-column>
<el-table-column prop="cart_info.price" label="单价" width="150" /> <el-table-column prop="cart_info.price" label="单价" width="150" />
<el-table-column prop="cart_info.cart_num" label="数量" width="150" /> <el-table-column prop="cart_info.cart_num" label="数量" width="150" />
<el-table-column prop="cart_info.pay_price" label="总价" width="150"> <el-table-column prop="cart_info.total_price" label="总价" width="150">
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="height: 8rem;"></div> <div style="height: 8rem;"></div>

View File

@ -58,28 +58,25 @@ const getCategoryList3 = (pid) => {
const changeActive = (index = -1, type = 1) => { const changeActive = (index = -1, type = 1) => {
sactive.value = index; sactive.value = index;
show.value = true; show.value = true;
let cate_id = '';
let class_all = ''; let class_all = '';
console.log(index, type);
if (type == 1) { if (type == 1) {
active.value = index; active.value = index;
cactive.value = -1; cactive.value = -1;
dactive.value = -1; dactive.value = -1;
if (index!=-1) class_all = categoryList.value[index].id; if (index!=-1) class_all = categoryList.value[index].id;
getCategoryList2(class_all); getCategoryList2(class_all);
emit("getStoreList", {
top_cate_id: class_all,
two_cate_id: null
}, true);
} }
else if (type == 2) { else if (type == 2) {
cactive.value = index; cactive.value = index;
dactive.value = -1; dactive.value = -1;
if (index!=-1) class_all = categoryList2.value[index].id; if (index!=-1) class_all = categoryList2.value[index].id;
getCategoryList3(class_all); getCategoryList3(class_all);
emit("getStoreList", {
two_cate_id: class_all
}, true);
} }
emit("getStoreList", {
cate_id: cate_id,
class_all: class_all
}, true);
}; };
</script> </script>

View File

@ -34,25 +34,23 @@ const deleteShop = (arr) => {
cartDeleteApi({ cartDeleteApi({
id: arr, id: arr,
}).then((res) => { }).then((res) => {
console.log(res);
getList(); getList();
}); });
}; };
const extend = ref({});
const getList = () => { const getList = () => {
allPrice.value = 0; allPrice.value = 0;
costPrice.value = 0; costPrice.value = 0;
discounts.value = 0; discounts.value = 0;
cartListApi().then((res) => { cartListApi().then((res) => {
extend.value = res.data.extend; if (res.data?.lists?.length > 0) {
list.value = res.data.lists || []; list.value = res.data.lists;
// if (res.data?.lists?.length > 0) { allPrice.value = res.data?.lists.reduce((previous, current) => {
// list.value = res.data.lists; return previous + Number(current.total_price);
// allPrice.value = res.data?.lists.reduce((previous, current) => { }, 0)
// return previous + Number(current.total_price); costPrice.value = allPrice.value;
// }, 0) } else list.value = [];
// costPrice.value = allPrice.value;
// } else list.value = [];
}); });
}; };
getList(); getList();
@ -68,17 +66,13 @@ const changeCartNum = (val, old) => {
product_id: val.product_id, product_id: val.product_id,
cart_num: val.cart_num cart_num: val.cart_num
}).then((res) => { }).then((res) => {
getList(); allPrice.value = 0;
// allPrice.value = 0; list.value.forEach((item) => {
// list.value.forEach((item) => { allPrice.value += item.price * item.cart_num;
// allPrice.value += item.price * item.cart_num; });
// }); costPrice.value = allPrice.value;
// costPrice.value = allPrice.value;
}).catch((err)=>{ }).catch((err)=>{
let match = err?.msg?.match(/\b\d+(\.\d+)?\b/); val.cart_num = err?.msg?.match(/\d+\.\d+/) || 1;
if(match){
val.cart_num = +match[0];
}else val.cart_num = 1;
}); });
}; };
@ -153,7 +147,7 @@ onUnmounted(() => {
<div class="flex-bewteen" style="align-items: flex-end;"> <div class="flex-bewteen" style="align-items: flex-end;">
<div style="display:flex;"> <div style="display:flex;">
<div style="margin-right: 0.5rem;">采购款: <span style="color: #f70;">{{ userInfo.purchase_funds }}</span></div> <div style="margin-right: 0.5rem;">采购款: <span style="color: #f70;">{{ userInfo.purchase_funds }}</span></div>
<div>礼品券: <span style="color: #f70;">{{ userInfo.get_frozen }}</span></div> <div>礼品券: <span style="color: #f70;">{{ userInfo.integral }}</span></div>
</div> </div>
<el-button link @click="userInfo.uid = ''">重置<el-icon> <el-button link @click="userInfo.uid = ''">重置<el-icon>
<RefreshLeft /> <RefreshLeft />
@ -208,24 +202,24 @@ onUnmounted(() => {
<div class="order-footer"> <div class="order-footer">
<div class="order-total"> <div class="order-total">
<div class="price"> <div class="price">
<div class="total-item" style="flex-shrink: 0;"> <div class="total-item">
合计: 合计:
<span>¥<span style="font-size: 1.4rem"> <span>¥<span style="font-size: 1.4rem">{{
{{ extend.pay_price || '0.00' }}</span></span> allPrice.toFixed(2)
}}</span></span>
</div> </div>
<div v-if="extend.msg" class="total-item" style="padding-right: 0;line-height: 0.8rem;"><span style="font-size: 0.8rem">{{ extend.msg }}</span></div>
<!-- <div class="total-item"> <!-- <div class="total-item">
优惠: 优惠:
<span <span
>¥<span>{{ discounts.toFixed(2) }}</span></span >¥<span>{{ discounts.toFixed(2) }}</span></span
> >
</div> --> </div> -->
</div> </div>
<!-- <div class="update-price"> <!-- <div class="update-price">
<el-button class="btn" type="primary" @click="showPrice" <el-button class="btn" type="primary" @click="showPrice"
>改价 (Insert)</el-button >改价 (Insert)</el-button
> >
</div> --> </div> -->
</div> </div>
<div class="order-btn"> <div class="order-btn">
<el-button class="btn" type="primary" @click="goPay" :disabled="list.length == 0">{{ "立即结账 (F9)" }}</el-button> <el-button class="btn" type="primary" @click="goPay" :disabled="list.length == 0">{{ "立即结账 (F9)" }}</el-button>

View File

@ -7,172 +7,145 @@ import mitt from "@/utils/mitt.js";
const dialogVisible = ref(false); const dialogVisible = ref(false);
const inputRef = ref(null); const inputRef = ref(null);
const props = defineProps({
priceKey: {
type: Object,
default: () => ({})
}
});
const show = (e) => { const show = (e) => {
dialogVisible.value = e; dialogVisible.value = e;
}; };
const form = ref({}); const form = ref({});
const loading = ref(false); const loading = ref(false);
const mode = ref("add"); const mode = ref("add");
const setForm = (data, type = "add") => { const setForm = (data, type = "add") => {
mode.value = type; mode.value = type;
form.value = JSON.parse(JSON.stringify(data)); form.value = JSON.parse(JSON.stringify(data));
}; };
const emit = defineEmits(["changeItem"]); const emit = defineEmits(["changeItem"]);
const changeItem = () => { const changeItem = () => {
if (!form.value.cart_num) form.value.cart_num = form.value.batch > 0 ? form.value.batch : 1; if(!form.value.cart_num) form.value.cart_num = form.value.batch > 0 ? form.value.batch : 1;
emit("changeItem", form.value); emit("changeItem", form.value);
dialogVisible.value = false; dialogVisible.value = false;
}; };
defineExpose({ defineExpose({
show, show,
setForm, setForm,
}); });
const aenter = () => { const aenter = () => {
if (!dialogVisible.value) return; if (!dialogVisible.value) return;
changeItem(); changeItem();
}; };
onMounted(() => { onMounted(() => {
mitt.on("enter", aenter); mitt.on("enter", aenter);
}); });
onUnmounted(() => { onUnmounted(() => {
mitt.off("enter", aenter); mitt.off("enter", aenter);
}); });
const close = () => { const close = () => {
console.log("sss"); console.log("sss");
}; };
</script> </script>
<template> <template>
<el-dialog v-model="dialogVisible" title="购买数量" width="650" @opened="inputRef.focus()"> <el-dialog v-model="dialogVisible" title="购买数量" width="650" @opened="inputRef.focus()">
<div class="shop" v-loading="loading"> <div class="shop" v-loading="loading">
<div class="shop-info"> <div class="shop-info">
<div class="shop-info-left"> <div class="shop-info-left">
<el-image loading="lazy" :src="form.image"></el-image> <el-image loading="lazy" :src="form.image"></el-image>
</div>
<div class="shop-info-right">
<div class="shop-info-right-top">{{ form.store_name }}</div>
<div>
<div class="shop-info-right-price" v-if="priceKey.off_activity == 1">
<span class="unit-name">活动价:</span> ¥<span>{{ form[priceKey.price] }}</span>
<span class="unit-name" v-if="form.unit_name">/{{ form.unit_name }}</span>
</div>
<div class="shop-info-right-price" v-if="priceKey.off_activity == 1">
<span class="unit-name">原价: </span> <span class="unit-name del">¥{{ form[priceKey.op_price]
}}
/{{ form.unit_name }}</span>
</div>
<div class="shop-info-right-price" v-else>
¥<span>{{ form[priceKey.op_price] }}</span>
<span class="unit-name">/{{ form.unit_name }}</span>
</div>
</div>
</div>
</div>
<div class="shop-sku">
<div class="title">购买数量 ( {{ form.unit_name }} )</div>
<div class="sku">
<el-input-number ref="inputRef" v-model="form.cart_num"
:placeholder="`请输入数量(默认为${+form.batch > 0 ? form.batch : '1'})`"
:min="+form.batch > 0 ? +form.batch : 1" step-strictly :step="1" style="width: 20rem"
size="large" />
</div>
</div>
</div> </div>
<template #footer v-if="!(mode != 'add' && form.attr && form.attr.length == 1)"> <div class="shop-info-right">
<div class="dialog-footer"> <div class="shop-info-right-top">{{ form.store_name }}</div>
<el-button class="ok-btn" type="primary" @click="changeItem"> <div class="shop-info-right-price">
确定 (Enter) ¥<span>{{ form.price }}</span
</el-button> ><span style="font-size: 1rem; color: #777">
</div> / {{ form.unit_name }}</span
</template> >
</el-dialog> </div>
</div>
</div>
<div class="shop-sku">
<div class="title">购买数量 ( {{ form.unit_name }} )</div>
<div class="sku">
<el-input-number
ref="inputRef"
v-model="form.cart_num"
:placeholder="`请输入数量(默认为${+form.batch > 0 ? form.batch : '1'})`"
:min="+form.batch > 0 ? +form.batch : 1"
step-strictly
:step="1"
style="width: 20rem"
size="large"
/>
</div>
</div>
</div>
<template
#footer
v-if="!(mode != 'add' && form.attr && form.attr.length == 1)"
>
<div class="dialog-footer">
<el-button class="ok-btn" type="primary" @click="changeItem">
确定 (Enter)
</el-button>
</div>
</template>
</el-dialog>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.dialog-footer { .dialog-footer {
.ok-btn { .ok-btn {
width: 100%; width: 100%;
height: 2.5rem; height: 2.5rem;
border-radius: 2.5rem; border-radius: 2.5rem;
} }
} }
.shop { .shop {
border-top: 1px solid #eee; border-top: 1px solid #eee;
padding-top: 1rem; padding-top: 1rem;
.shop-info {
.shop-info { display: flex;
display: flex; .shop-info-left {
flex-shrink: 0;
.shop-info-left { margin-right: 0.8rem;
flex-shrink: 0; height: 8rem;
margin-right: 0.8rem; width: 8rem;
height: 8rem; overflow: hidden;
width: 8rem; border-radius: 0.5rem;
overflow: hidden;
border-radius: 0.5rem;
}
.shop-info-right {
display: flex;
flex-direction: column;
justify-content: space-between;
.shop-info-right-top {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 2;
/* 限制文本显示为两行 */
font-size: 1.1rem;
}
.shop-info-right-center {
font-size: 0.8rem;
}
.shop-info-right-price {
color: #ff4a00;
font-size: 1.2rem;
font-weight: bold;
span {
font-size: 1.4rem;
margin-left: 0.2rem;
}
.unit-name {
font-size: 0.9rem;
color: #999;
font-weight: 400;
}
.del {
text-decoration: line-through;
}
}
}
} }
.shop-info-right {
.shop-sku { display: flex;
display: flex; flex-direction: column;
align-items: center; justify-content: space-between;
justify-content: space-between; .shop-info-right-top {
margin: 1rem 0; display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 2; /* 限制文本显示为两行 */
font-size: 1.1rem;
}
.shop-info-right-center {
font-size: 0.8rem;
}
.shop-info-right-price {
color: #ff4a00;
font-size: 1.2rem;
font-weight: bold;
span {
font-size: 1.4rem;
margin-left: 0.2rem;
}
}
} }
}
.shop-sku {
display: flex;
align-items: center;
justify-content: space-between;
margin: 1rem 0;
}
} }
</style> </style>

View File

@ -1,22 +1,18 @@
<script setup> <script setup>
import { ref, reactive, watch, onMounted, onUnmounted, nextTick } from "vue"; import { ref, watch, onMounted, onUnmounted, nextTick } from "vue";
import mitt from "@/utils/mitt.js"; import mitt from "@/utils/mitt.js";
import _ from 'lodash'; import _ from 'lodash';
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
const props = defineProps({ const props = defineProps({
storeList: { storeList: {
type: Array, type: Array,
default: () => [], default: () => [],
}, },
priceKey: { loading: {
type: Object, type: Boolean,
default: () => ({}) default: () => false
}, }
loading: {
type: Boolean,
default: () => false
}
}); });
const codeRef = ref(null); const codeRef = ref(null);
@ -26,265 +22,258 @@ const emit = defineEmits(["getStoreList", "changeItem", "loadMore"]);
const name = ref(""); const name = ref("");
const loadMore = () => { const loadMore = () => {
emit("loadMore", { emit("loadMore", {
store_name_code: name.value, store_name_code: name.value,
}); });
}; };
const changeItem = (item) => { const changeItem = (item) => {
if (item.is_used == 0) return ElMessage.error("该商品已被平台关闭"); if(item.is_used==0) return ElMessage.error("该商品已被平台关闭");
if (item.stock == 0) return ElMessage.warning("该商品无库存"); if(item.stock==0) return ElMessage.warning("该商品无库存");
emit("changeItem", item); emit("changeItem", item);
}; };
const handleEnter = _.throttle(() => { const handleEnter = _.throttle(() => {
let obj = { let obj = {
store_name: name.value, store_name_code: name.value,
} }
// if(/^\d+$/.test(name.value)) obj.code = name.value; // if(/^\d+$/.test(name.value)) obj.code = name.value;
// else obj.name = name.value; // else obj.name = name.value;
emit("getStoreList", obj, true); emit("getStoreList", obj, true);
}, 300) }, 300)
const inputBlur = () => { const inputBlur = ()=>{
codeRef.value?.blur(); codeRef.value?.blur();
} }
defineExpose({ defineExpose({
name, name,
inputBlur inputBlur
}); });
const isfocus = ref(false); const isfocus = ref(false);
const focus = () => { const focus = () => {
isfocus.value = true; isfocus.value = true;
}; };
const blur = () => { const blur = () => {
isfocus.value = false; isfocus.value = false;
}; };
// //
const ashift = () => { const ashift = () => {
codeRef.value?.focus(); codeRef.value?.focus();
}; };
onMounted(() => { onMounted(() => {
nextTick(() => { nextTick(() => {
codeRef.value?.focus(); codeRef.value?.focus();
focus(); focus();
}); });
mitt.on("shift", ashift); mitt.on("shift", ashift);
}); });
onUnmounted(() => { onUnmounted(() => {
mitt.off("shift", ashift); mitt.off("shift", ashift);
}); });
</script> </script>
<template> <template>
<div class="my-order"> <div class="my-order">
<div class="header-nav" :class="{ 'input-focus': isfocus }"> <div class="header-nav" :class="{ 'input-focus': isfocus }">
<div class="nav-item-label">搜索 (Shift)</div> <div class="nav-item-label">搜索 (Shift)</div>
<div class="nav-item-input"> <div class="nav-item-input">
<el-input v-model="name" placeholder=" 搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索" clearable ref="codeRef" <el-input
@focus="focus" @blur="blur" @keyup.enter="handleEnter" @clear="handleEnter" /> v-model="name"
</div> placeholder=" 搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索"
<div class="nav-item-btn" @click="handleEnter"> clearable
<el-button class="btn" type="primary"><el-icon> ref="codeRef"
<Search /> @focus="focus"
</el-icon></el-button> @blur="blur"
</div> @keyup.enter="handleEnter"
</div> @clear="handleEnter"
<div class="shop-list" v-loading="loading" v-infinite-scroll="loadMore" :infinite-scroll-distance="1000" />
:infinite-scroll-delay="500" :infinite-scroll-immediate="false" style="overflow: auto"> </div>
<el-space wrap v-if="storeList.length" :size="14"> <div class="nav-item-btn" @click="handleEnter">
<div class="shop-item" v-for="(item, index) in storeList" :key="index" @click="changeItem(item)"> <el-button class="btn" type="primary"
<el-image loading="lazy" :src="item.image"></el-image> ><el-icon><Search /></el-icon
<div class="shop-name">{{ item.store_name }}</div> ></el-button>
<div class="shop-price" v-if="priceKey.off_activity == 1"> </div>
<span class="unit-name">活动价:</span> ¥<span>{{ item[priceKey.price] }}</span>
<span class="unit-name" v-if="item.unit_name">/{{ item.unit_name }}</span>
</div>
<div class="shop-price" v-if="priceKey.off_activity == 1">
<span class="unit-name">原价: </span> <span class="unit-name del">¥{{ item[priceKey.op_price] }}
/{{ item.unit_name }}</span>
</div>
<div class="shop-price" v-else>
¥<span>{{ item[priceKey.op_price] }}</span>
<span class="unit-name">/{{ item.unit_name }}</span>
</div>
<div class="no-stock" v-if="item.stock == 0">
<div>
<span>暂无</span>
<span>库存</span>
</div>
</div>
<div class="no-stock" v-if="item.is_used == 0">
<div>
<span>平台</span>
<span>关闭</span>
</div>
</div>
</div>
</el-space>
<div class="no-data" v-if="!storeList.length">
<el-empty :image-size="200" description="没有找到对应商品"></el-empty>
</div>
</div>
</div> </div>
<div
class="shop-list"
v-loading="loading"
v-infinite-scroll="loadMore"
:infinite-scroll-distance="1000"
:infinite-scroll-delay="500"
:infinite-scroll-immediate="false"
style="overflow: auto"
>
<el-space wrap v-if="storeList.length" :size="14">
<div
class="shop-item"
v-for="(item, index) in storeList"
:key="index"
@click="changeItem(item)"
>
<el-image loading="lazy" :src="item.image"></el-image>
<div class="shop-name">{{ item.store_name }}</div>
<div class="shop-price">
¥<span>{{ item.price }}</span>
<span class="unit-name">/{{item.unit_name}}</span>
</div>
<div class="no-stock" v-if="item.stock == 0">
<div>
<span>暂无</span>
<span>库存</span>
</div>
</div>
<div class="no-stock" v-if="item.is_used == 0">
<div>
<span>平台</span>
<span>关闭</span>
</div>
</div>
</div>
</el-space>
<div class="no-data" v-if="!storeList.length">
<el-empty :image-size="200" description="没有找到对应商品"></el-empty>
</div>
</div>
</div>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.my-order { .my-order {
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
display: flex;
flex-direction: column;
.header-nav {
border-radius: 0.8rem;
background-color: #fff;
display: flex; display: flex;
flex-direction: column; justify-content: space-between;
overflow: hidden;
width: auto;
border: 1px solid rgba($color: #000000, $alpha: 0);
.header-nav { .nav-item-label {
border-radius: 0.8rem; width: 7rem;
background-color: #fff; height: 3rem;
display: flex; box-sizing: border-box;
justify-content: space-between; text-align: center;
line-height: 3rem;
}
.nav-item-input {
flex: 1;
.el-input {
width: 100%;
height: 100%;
}
::v-deep .el-input__wrapper {
border: none !important;
box-shadow: none !important;
text-align: center;
}
}
.nav-item-btn {
width: 5rem;
.btn {
width: 100%;
height: 100%;
border-radius: 0;
font-size: 1.6rem;
}
}
}
.input-focus {
border: 1px solid #1890ff;
}
.shop-list {
/* height: calc(100vh - 9.75rem); */
flex: 1;
width: auto;
overflow-y: auto;
box-sizing: border-box;
padding-top: 1.25rem;
.shop-item {
width: 11.5rem;
height: 16rem;
cursor: pointer;
background-color: #fff;
border-radius: 1rem;
padding: 0.7rem;
display: flex;
justify-content: space-between;
flex-direction: column;
position: relative;
overflow: hidden;
.el-image {
border-radius: 0.5rem;
width: 11.5rem;
height: 11.5rem;
}
.shop-name {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
width: auto; text-overflow: ellipsis;
border: 1px solid rgba($color: #000000, $alpha: 0); -webkit-line-clamp: 2; /* 将文本限制为两行 */
}
.nav-item-label { .shop-price {
width: 7rem; font-size: 0.8rem;
height: 3rem; color: #f5222d;
box-sizing: border-box; span {
text-align: center; font-size: 1.2rem;
line-height: 3rem; margin-left: 0.187rem;
} }
.unit-name{
.nav-item-input { color: #777;font-size: 0.9rem;
flex: 1;
.el-input {
width: 100%;
height: 100%;
}
::v-deep .el-input__wrapper {
border: none !important;
box-shadow: none !important;
text-align: center;
}
} }
}
.nav-item-btn { &:hover {
width: 5rem; background-color: #1890ff;
color: #fff;
.btn { .shop-price {
width: 100%; color: #fff;
height: 100%;
border-radius: 0;
font-size: 1.6rem;
}
} }
.unit-name{
color: #fff;
}
}
.no-stock {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba($color: #000000, $alpha: 0.2);
display: flex;
justify-content: center;
align-items: center;
div {
background-color: #4e4e4e;
color: #fff;
border-radius: 50%;
width: 5rem;
height: 5rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
} }
.input-focus { }
border: 1px solid #1890ff;
}
.shop-list {
/* height: calc(100vh - 9.75rem); */
flex: 1;
width: auto;
overflow-y: auto;
box-sizing: border-box;
padding-top: 1.25rem;
.shop-item {
width: 11.5rem;
height: 16rem;
cursor: pointer;
background-color: #fff;
border-radius: 1rem;
padding: 0.7rem;
display: flex;
justify-content: space-between;
flex-direction: column;
position: relative;
overflow: hidden;
.el-image {
border-radius: 0.5rem;
width: 11.5rem;
height: 11.5rem;
}
.shop-name {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
margin-top: 0.5rem;
/* 将文本限制为两行 */
}
.shop-price {
font-size: 0.8rem;
color: #f5222d;
span {
font-size: 1.2rem;
margin-left: 0.187rem;
}
.unit-name {
color: #777;
font-size: 0.9rem;
}
.del {
text-decoration: line-through;
}
}
&:hover {
background-color: #1890ff;
color: #fff;
.shop-price {
color: #fff;
}
.unit-name {
color: #fff;
}
}
.no-stock {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba($color: #000000, $alpha: 0.2);
display: flex;
justify-content: center;
align-items: center;
div {
background-color: #4e4e4e;
color: #fff;
border-radius: 50%;
width: 5rem;
height: 5rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
}
}
} }
</style> </style>

View File

@ -5,7 +5,7 @@ import padding from "@/components/padding.vue";
import pupop from "./component/pupop.vue"; import pupop from "./component/pupop.vue";
import classify from "./component/classify.vue"; import classify from "./component/classify.vue";
import pay from "@/components/pay.vue"; import pay from "@/components/pay.vue";
import { ref, reactive, nextTick, onMounted, onUnmounted } from "vue"; import { ref, nextTick, onMounted, onUnmounted } from "vue";
import { cartCreateApi, orderCheckApi } from "@/api/store.js"; import { cartCreateApi, orderCheckApi } from "@/api/store.js";
import { saleStoreListApi } from "@/api/shop.js"; import { saleStoreListApi } from "@/api/shop.js";
import { useUserStore } from "@/store/user.js"; import { useUserStore } from "@/store/user.js";
@ -21,11 +21,6 @@ const shopRef = ref(null);
const payRef = ref(null); const payRef = ref(null);
const storeList = ref([]); const storeList = ref([]);
const priceKey = reactive({
off_activity: "",
op_price: "",
price: ""
})
const userStore = useUserStore(); const userStore = useUserStore();
const route = useRoute(); const route = useRoute();
@ -34,8 +29,6 @@ const where = ref({
page_no: 1, page_no: 1,
page_size: 30, page_size: 30,
}); });
const loading = ref(false) const loading = ref(false)
const getStoreList = (data = {}, reload = false) => { const getStoreList = (data = {}, reload = false) => {
where.value = { where.value = {
@ -48,14 +41,8 @@ const getStoreList = (data = {}, reload = false) => {
loadEnd.value = false; loadEnd.value = false;
} }
loading.value = true; loading.value = true;
saleStoreListApi({ saleStoreListApi(where.value).then((res) => {
...where.value,
store_id: userStore.userInfo?.store_id
}).then((res) => {
loading.value = false; loading.value = false;
for (let key in res.data.extend) {
priceKey[key] = res.data.extend[key]
}
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 (
@ -208,9 +195,9 @@ onUnmounted(() => {
<div class="my-card"> <div class="my-card">
<order ref="orderRef" @goPay="goPay" @editPupop="editPupop" /> <order ref="orderRef" @goPay="goPay" @editPupop="editPupop" />
<padding /> <padding />
<shop ref="shopRef" style="flex: 1" :storeList="storeList" :priceKey="priceKey" :loading="loading" @getStoreList="getStoreList" <shop ref="shopRef" style="flex: 1" :storeList="storeList" :loading="loading" @getStoreList="getStoreList"
@changeItem="changeItem" @loadMore="loadMore" /> @changeItem="changeItem" @loadMore="loadMore" />
<pupop ref="pupopRef" :priceKey="priceKey" @changeItem="cartAddInfo" /> <pupop ref="pupopRef" @changeItem="cartAddInfo" />
<padding /> <padding />
<classify ref="classifyRef" @getStoreList="getStoreList" /> <classify ref="classifyRef" @getStoreList="getStoreList" />
<pay ref="payRef" @paySuccess="paySuccess" /> <pay ref="payRef" @paySuccess="paySuccess" />

View File

@ -170,8 +170,7 @@ onUnmounted(() => {
</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.total_price }}</div> --> <div class="info-item-info">¥{{ formData.total_price }}</div>
<div class="info-item-info">¥{{ formData.pay_price }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">创建时间:</div> <div class="info-item-title">创建时间:</div>
@ -231,7 +230,7 @@ onUnmounted(() => {
</el-table-column> </el-table-column>
<el-table-column prop="cart_info.price" label="单价" width="150" /> <el-table-column prop="cart_info.price" label="单价" width="150" />
<el-table-column prop="cart_info.cart_num" label="数量" width="150" /> <el-table-column prop="cart_info.cart_num" label="数量" width="150" />
<el-table-column prop="cart_info.pay_price" label="总价" width="150"> <el-table-column prop="cart_info.total_price" label="总价" width="150">
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="height: 8rem;"></div> <div style="height: 8rem;"></div>

View File

@ -1,14 +1,13 @@
<script setup> <script setup>
import { ref, onMounted, onUnmounted, reactive } from "vue"; import { ref, onMounted, onUnmounted, reactive } from "vue";
import { apiProvince, apiCity, apiArea, apiStreet, apiVillage, apiBrigade } from '@/api/public' import { apiProvince, apiCity, apiArea, apiStreet, apiVillage, apiBrigade } from '@/api/public'
import { userShipApi, userAddApi, userArchivesSmsApi } from "@/api/user" import { userShipApi, userAddApi } from "@/api/user"
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
const formDataRef = ref(null); const formDataRef = ref(null);
const formDataInfo = reactive({ const formDataInfo = reactive({
mobile: '', mobile: '',
code: '',
real_name: '', real_name: '',
user_ship: '', user_ship: '',
selectedValues: [], selectedValues: [],
@ -19,9 +18,6 @@ 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' }
], ],
code: [
{ required: true, message: '请输入验证码', trigger: 'blur' }
],
real_name: [ real_name: [
{ required: true, message: '请输入用户姓名', trigger: 'blur' } { required: true, message: '请输入用户姓名', trigger: 'blur' }
], ],
@ -129,7 +125,6 @@ const addUser = () => {
if (valid) { if (valid) {
let forms = {}; let forms = {};
forms.mobile = formDataInfo.mobile; forms.mobile = formDataInfo.mobile;
forms.code = formDataInfo.code;
forms.user_ship = formDataInfo.user_ship; forms.user_ship = formDataInfo.user_ship;
forms.real_name = formDataInfo.real_name; forms.real_name = formDataInfo.real_name;
forms.province = "510000"; forms.province = "510000";
@ -146,21 +141,6 @@ const addUser = () => {
} }
const getSms = ()=>{
formDataRef.value.validateField('mobile',(valid)=>{
if(valid){
userArchivesSmsApi({
mobile:formDataInfo.mobile
}).then(res=>{
ElMessage.success('发送成功')
}).catch(err=>{
ElMessage.error('发送失败')
})
}
})
}
defineExpose({ defineExpose({
addUser addUser
}) })
@ -173,10 +153,6 @@ 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="code">
<el-input v-model="formDataInfo.code" placeholder="请输入验证码" style="flex: 1;"/>
<el-button type="primary" style="margin-left: 1rem;" @click="getSms">获取验证码</el-button>
</el-form-item>
<el-form-item label="用户姓名" prop="real_name"> <el-form-item label="用户姓名" prop="real_name">
<el-input v-model="formDataInfo.real_name" placeholder="请输入用户姓名" /> <el-input v-model="formDataInfo.real_name" placeholder="请输入用户姓名" />
</el-form-item> </el-form-item>

View File

@ -250,7 +250,7 @@ onUnmounted(() => {
</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.return_money?.toFixed(2) }}</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>
@ -260,11 +260,7 @@ onUnmounted(() => {
</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.get_frozen?.toFixed(2) }}</div> <div class="info-item-info red">¥{{ formData.integral }}</div>
</div>
<div class="info-item">
<div class="info-item-title">冻结礼品券:</div>
<div class="info-item-info red">¥{{ formData.amount_frozen?.toFixed(2) }}</div>
</div> </div>
<div class="info-item"> <div class="info-item">
<div class="info-item-title">ID:</div> <div class="info-item-title">ID:</div>

View File

@ -138,7 +138,7 @@ onUnmounted(() => {
<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?.toFixed(2) }}</span></div> <div>返还金: <span class="red">{{ item.return_money?.toFixed(2) }}</span></div>
<div>礼品券: <span class="red">{{ item.get_frozen?.toFixed(2) }}</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>
<el-tag type="success" v-else>{{ item.user_ship_name }}</el-tag> <el-tag type="success" v-else>{{ item.user_ship_name }}</el-tag>