This commit is contained in:
weipengfei 2024-06-26 18:20:43 +08:00
parent 5810d2bf3f
commit 669db8ab20
47 changed files with 482 additions and 420 deletions

View File

@ -4,11 +4,11 @@ VITE_NOW_TYPE = 'dist'
# VITE_PUSH_URL = 'ws://192.168.1.201:8787'
# VITE_BASE_URL = 'http://192.168.1.201:8545'
VITE_PUSH_URL = 'ws://192.168.1.22:8787'
VITE_BASE_URL = 'http://192.168.1.22:8545'
# VITE_PUSH_URL = 'ws://192.168.1.22:8787'
# VITE_BASE_URL = 'http://192.168.1.22:8545'
# VITE_PUSH_URL ='wss://test-multi-store.lihaink.cn/pull'
# VITE_BASE_URL = 'https://test-multi-store.lihaink.cn'
VITE_PUSH_URL ='wss://test-multi-store.lihaink.cn/pull'
VITE_BASE_URL = 'https://test-multi-store.lihaink.cn'
# VITE_PUSH_URL ='wss://multi-store.lihaink.cn/pull'
# VITE_BASE_URL = 'https://multi-store.lihaink.cn'

View File

@ -0,0 +1 @@
import{K as o,L as s,E as r,u as d,M as g}from"./index-B_LkfMUP.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

View File

@ -1 +1 @@
@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-e0380861]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-e0380861]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-e0380861]{padding:1rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-e0380861]{font-weight:700}.my-order .detail .table .table-info[data-v-e0380861]{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-e0380861]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-e0380861]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-e0380861]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-e0380861]{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}
@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

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-CxfOyPwH.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-CcxqhLG0.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

@ -1 +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-f5ee51ef]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-f5ee51ef]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-f5ee51ef]{padding:1rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-f5ee51ef]{font-weight:700}.my-order .detail .table .table-info[data-v-f5ee51ef]{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-f5ee51ef]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-f5ee51ef]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-f5ee51ef]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-f5ee51ef]{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}
@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

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-BQABWjL2.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-B_LkfMUP.js";import"./axiosAPI-CauzQQFo.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};

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-CcxqhLG0.js";import{l as K}from"./user-kDLiz9po.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 L,q as B,s as C,D as E,E as w}from"./index-B_LkfMUP.js";import{l as K}from"./user-DQnUVii_.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};

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

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
@charset "UTF-8";.my-order[data-v-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-18a74f9a]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-18a74f9a]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-18a74f9a]{padding:1rem;box-sizing:border-box;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-18a74f9a]{font-weight:700}.my-order .detail .table .table-info[data-v-18a74f9a]{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-18a74f9a]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-18a74f9a]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-18a74f9a]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-18a74f9a]{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}
@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

View File

@ -1 +1 @@
import{f as i}from"./merchant-DsGSBAJH.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-CcxqhLG0.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-B_gb7w8R.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-B_LkfMUP.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-CcxqhLG0.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{H as a}from"./index-B_LkfMUP.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-CcxqhLG0.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-B_LkfMUP.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

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

View File

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

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

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

@ -1 +0,0 @@
import{G as s}from"./index-CcxqhLG0.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,7 +56,7 @@
}
}
</style>
<script type="module" crossorigin src="./assets/index-CcxqhLG0.js"></script>
<script type="module" crossorigin src="./assets/index-B_LkfMUP.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-F8CM97a-.css">
</head>
<body>

View File

@ -515,7 +515,7 @@ onUnmounted(() => {
<div style="display: inline-block;margin-right: 20px">
<div style="color: #999;padding: 2rem 0 0.3rem 0">原价:</div>
<div style="color: #f5222d; padding-bottom: 2rem">
¥<span style="font-size: 1.6rem">{{ form.original_price }}</span>
¥<span style="font-size: 1.6rem">{{ form.total_price }}</span>
</div>
</div>
<div style="display: inline-block;">
@ -526,11 +526,11 @@ onUnmounted(() => {
</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: #f5222d; padding-bottom: 2rem">
¥<span style="font-size: 1.6rem" v-if="active==2 && form.activities == 1">{{ Math.ceil(form.original_price - form.activity_price).toFixed(2) }}</span>
<span style="font-size: 1.6rem" v-else>{{ active == 4 ? form.original_price : form.pay_price }}</span>
¥<span style="font-size: 1.6rem">{{ active == 4 ? form.total_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>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,145 +7,172 @@ import mitt from "@/utils/mitt.js";
const dialogVisible = ref(false);
const inputRef = ref(null);
const props = defineProps({
priceKey: {
type: Object,
default: () => ({})
}
});
const show = (e) => {
dialogVisible.value = e;
dialogVisible.value = e;
};
const form = ref({});
const loading = ref(false);
const mode = ref("add");
const setForm = (data, type = "add") => {
mode.value = type;
form.value = JSON.parse(JSON.stringify(data));
mode.value = type;
form.value = JSON.parse(JSON.stringify(data));
};
const emit = defineEmits(["changeItem"]);
const changeItem = () => {
if(!form.value.cart_num) form.value.cart_num = form.value.batch > 0 ? form.value.batch : 1;
emit("changeItem", form.value);
dialogVisible.value = false;
if (!form.value.cart_num) form.value.cart_num = form.value.batch > 0 ? form.value.batch : 1;
emit("changeItem", form.value);
dialogVisible.value = false;
};
defineExpose({
show,
setForm,
show,
setForm,
});
const aenter = () => {
if (!dialogVisible.value) return;
changeItem();
if (!dialogVisible.value) return;
changeItem();
};
onMounted(() => {
mitt.on("enter", aenter);
mitt.on("enter", aenter);
});
onUnmounted(() => {
mitt.off("enter", aenter);
mitt.off("enter", aenter);
});
const close = () => {
console.log("sss");
console.log("sss");
};
</script>
<template>
<el-dialog v-model="dialogVisible" title="购买数量" width="650" @opened="inputRef.focus()">
<div class="shop" v-loading="loading">
<div class="shop-info">
<div class="shop-info-left">
<el-image loading="lazy" :src="form.image"></el-image>
<el-dialog v-model="dialogVisible" title="购买数量" width="650" @opened="inputRef.focus()">
<div class="shop" v-loading="loading">
<div class="shop-info">
<div class="shop-info-left">
<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 class="shop-info-right">
<div class="shop-info-right-top">{{ form.store_name }}</div>
<div class="shop-info-right-price">
¥<span>{{ form.price }}</span
><span style="font-size: 1rem; color: #777">
/ {{ form.unit_name }}</span
>
</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 #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>
<style scoped lang="scss">
.dialog-footer {
.ok-btn {
width: 100%;
height: 2.5rem;
border-radius: 2.5rem;
}
.ok-btn {
width: 100%;
height: 2.5rem;
border-radius: 2.5rem;
}
}
.shop {
border-top: 1px solid #eee;
padding-top: 1rem;
.shop-info {
display: flex;
.shop-info-left {
flex-shrink: 0;
margin-right: 0.8rem;
height: 8rem;
width: 8rem;
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;
border-top: 1px solid #eee;
padding-top: 1rem;
.shop-info {
display: flex;
.shop-info-left {
flex-shrink: 0;
margin-right: 0.8rem;
height: 8rem;
width: 8rem;
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-sku {
display: flex;
align-items: center;
justify-content: space-between;
margin: 1rem 0;
}
.shop-sku {
display: flex;
align-items: center;
justify-content: space-between;
margin: 1rem 0;
}
}
</style>

View File

@ -1,18 +1,22 @@
<script setup>
import { ref, watch, onMounted, onUnmounted, nextTick } from "vue";
import { ref, reactive, watch, onMounted, onUnmounted, nextTick } from "vue";
import mitt from "@/utils/mitt.js";
import _ from 'lodash';
import { ElMessage } from "element-plus";
const props = defineProps({
storeList: {
type: Array,
default: () => [],
},
loading: {
type: Boolean,
default: () => false
}
storeList: {
type: Array,
default: () => [],
},
priceKey: {
type: Object,
default: () => ({})
},
loading: {
type: Boolean,
default: () => false
}
});
const codeRef = ref(null);
@ -22,258 +26,265 @@ const emit = defineEmits(["getStoreList", "changeItem", "loadMore"]);
const name = ref("");
const loadMore = () => {
emit("loadMore", {
store_name_code: name.value,
});
emit("loadMore", {
store_name_code: name.value,
});
};
const changeItem = (item) => {
if(item.is_used==0) return ElMessage.error("该商品已被平台关闭");
if(item.stock==0) return ElMessage.warning("该商品无库存");
emit("changeItem", item);
if (item.is_used == 0) return ElMessage.error("该商品已被平台关闭");
if (item.stock == 0) return ElMessage.warning("该商品无库存");
emit("changeItem", item);
};
const handleEnter = _.throttle(() => {
let obj = {
store_name_code: name.value,
}
// if(/^\d+$/.test(name.value)) obj.code = name.value;
// else obj.name = name.value;
emit("getStoreList", obj, true);
let obj = {
store_name: name.value,
}
// if(/^\d+$/.test(name.value)) obj.code = name.value;
// else obj.name = name.value;
emit("getStoreList", obj, true);
}, 300)
const inputBlur = ()=>{
codeRef.value?.blur();
const inputBlur = () => {
codeRef.value?.blur();
}
defineExpose({
name,
inputBlur
name,
inputBlur
});
const isfocus = ref(false);
const focus = () => {
isfocus.value = true;
isfocus.value = true;
};
const blur = () => {
isfocus.value = false;
isfocus.value = false;
};
//
const ashift = () => {
codeRef.value?.focus();
codeRef.value?.focus();
};
onMounted(() => {
nextTick(() => {
codeRef.value?.focus();
focus();
});
mitt.on("shift", ashift);
nextTick(() => {
codeRef.value?.focus();
focus();
});
mitt.on("shift", ashift);
});
onUnmounted(() => {
mitt.off("shift", ashift);
mitt.off("shift", ashift);
});
</script>
<template>
<div class="my-order">
<div class="header-nav" :class="{ 'input-focus': isfocus }">
<div class="nav-item-label">搜索 (Shift)</div>
<div class="nav-item-input">
<el-input
v-model="name"
placeholder=" 搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索"
clearable
ref="codeRef"
@focus="focus"
@blur="blur"
@keyup.enter="handleEnter"
@clear="handleEnter"
/>
</div>
<div class="nav-item-btn" @click="handleEnter">
<el-button class="btn" type="primary"
><el-icon><Search /></el-icon
></el-button>
</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 class="my-order">
<div class="header-nav" :class="{ 'input-focus': isfocus }">
<div class="nav-item-label">搜索 (Shift)</div>
<div class="nav-item-input">
<el-input v-model="name" placeholder=" 搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索" clearable ref="codeRef"
@focus="focus" @blur="blur" @keyup.enter="handleEnter" @clear="handleEnter" />
</div>
</div>
<div class="no-stock" v-if="item.is_used == 0">
<div>
<span>平台</span>
<span>关闭</span>
<div class="nav-item-btn" @click="handleEnter">
<el-button class="btn" type="primary"><el-icon>
<Search />
</el-icon></el-button>
</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" v-if="priceKey.off_activity == 1">
<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>
</el-space>
<div class="no-data" v-if="!storeList.length">
<el-empty :image-size="200" description="没有找到对应商品"></el-empty>
</div>
</div>
</div>
</template>
<style scoped lang="scss">
.my-order {
height: 100%;
box-sizing: border-box;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
.header-nav {
border-radius: 0.8rem;
background-color: #fff;
display: flex;
justify-content: space-between;
overflow: hidden;
width: auto;
border: 1px solid rgba($color: #000000, $alpha: 0);
.nav-item-label {
width: 7rem;
height: 3rem;
box-sizing: border-box;
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;
height: 100%;
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;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
.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; /* 将文本限制为两行 */
}
.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;
}
}
&: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);
.header-nav {
border-radius: 0.8rem;
background-color: #fff;
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;
justify-content: space-between;
overflow: hidden;
width: auto;
border: 1px solid rgba($color: #000000, $alpha: 0);
.nav-item-label {
width: 7rem;
height: 3rem;
box-sizing: border-box;
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;
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>

View File

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

View File

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

View File

@ -138,7 +138,7 @@ onUnmounted(() => {
<div>余额: <span class="red">{{ item.now_money }}</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.integral }}</span></div>
<div>礼品券: <span class="red">{{ item.get_frozen }}</span></div>
<div>
<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>