This commit is contained in:
weipengfei 2024-06-08 20:04:05 +08:00
parent 92045f6f31
commit a75534084b
27 changed files with 84 additions and 64 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
@charset "UTF-8";.my-order[data-v-4b07d859]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden}.my-order .header-nav[data-v-4b07d859]{display:flex;flex-direction:column;justify-content:space-between;padding:1rem;height:3.5rem}.my-order .header-nav span[data-v-4b07d859]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-4b07d859]{font-weight:700}.my-order .header-nav .nav-item-btn[data-v-4b07d859]{display:flex;justify-content:space-between;align-items:center}.my-order .header-input[data-v-4b07d859]{padding:1rem;padding-top:0;height:2.5rem;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-4b07d859]{height:calc(100vh - 16.45rem);overflow-y:auto}.my-order .order-lists .item[data-v-4b07d859]{padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-lists .item .top[data-v-4b07d859]{display:flex;justify-content:space-between;align-items:flex-end}.my-order .order-lists .item .top .sn[data-v-4b07d859]{font-weight:700;font-size:.9rem}.my-order .order-lists .item .top .cahier[data-v-4b07d859]: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-4b07d859]: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-4b07d859]{font-size:.8rem}.my-order .order-lists .item .shop[data-v-4b07d859]{display:flex;justify-content:space-between}.my-order .order-lists .item .shop .right[data-v-4b07d859]{flex-shrink:0;display:flex;flex-direction:column;justify-content:center}.my-order .order-lists .item .shop .right .money[data-v-4b07d859]{font-size:1rem;color:#ff4a00;font-weight:700}.my-order .order-lists .item .shop .right .count[data-v-4b07d859]{font-size:.7rem;color:#999}.my-order .order-lists .item .shop .left[data-v-4b07d859]{height:4.5rem;display:flex;align-items:center}.my-order .order-lists .item .shop .left .shop-img[data-v-4b07d859]{width:3.5rem;height:3.5rem;border-radius:.3rem;margin-right:.4rem}.my-order .order-lists .item .shop .left .shop-name[data-v-4b07d859]{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-4b07d859]{display:flex;justify-content:space-between;font-size:.9rem;color:#777}.my-order .order-lists .item .bottom .manage-btn[data-v-4b07d859]{color:#fff;background-color:#e6a23c;border-radius:.2rem;padding:0 .2rem;margin-left:.5rem}.my-order .order-lists .item-active[data-v-4b07d859]{background-color:#efefef}.my-order .load-end[data-v-4b07d859]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.my-order[data-v-870cbbd4]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-870cbbd4]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-870cbbd4]{padding:1rem 1rem 6rem;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-870cbbd4]{font-weight:700}.my-order .detail .table .table-info[data-v-870cbbd4]{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-870cbbd4]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-870cbbd4]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .info-item-title[data-v-870cbbd4]{flex-shrink:0;padding-right:1rem}.my-order .detail .footer[data-v-870cbbd4]{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 +1 @@
import{A as U,_ as I,u as R,r as c,o as S,b as s,c as b,h as L,e as v,f as e,w as t,p as m,g as B,y as C,z as E,G as K,E as w}from"./index-C2mUYWeU.js";function N(a){return U.post("/login/account",a)}const M=a=>(C("data-v-aaf16e07"),a=a(),E(),a),T={class:"body"},q={class:"login"},z=M(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),A={__name:"index",setup(a){const d=R(),y=K(),h=c(null),p=c(null),n=c({account:"",password:"",terminal:1}),_=()=>{if(!n.value.account)return w({message:"请填写账号",type:"error"});if(!n.value.password)return w({message:"请填写密码",type:"error"});N(n.value).then(l=>{var o;(o=l.data)!=null&&o.token&&(d.setToken(l.data.token),d.setUserInfo(l.data),y.push("/"))}).catch(l=>{})};return S(()=>{}),(l,o)=>{const k=s("User"),f=s("el-icon"),i=s("el-input"),u=s("el-form-item"),g=s("Lock"),x=s("el-button"),V=s("el-form");return b(),L("div",T,[v("div",q,[z,e(V,null,{default:t(()=>[e(u,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:h,modelValue:n.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>n.value.account=r),placeholder:"请输入账号",autofocus:!0,onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:n.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>n.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(g)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(x,{style:{width:"100%"},type:"primary",onClick:_},{default:t(()=>[B("登录")]),_:1})]),_:1})]),_:1})])])}}},$=I(A,[["__scopeId","data-v-aaf16e07"]]);export{$ as default};
import{A as U,_ as I,u as R,r as c,o as S,b as s,c as b,h as L,e as v,f as e,w as t,p as m,g as B,y as C,z as E,D as K,E as w}from"./index-DhxPMYiX.js";function N(a){return U.post("/login/account",a)}const M=a=>(C("data-v-aaf16e07"),a=a(),E(),a),T={class:"body"},q={class:"login"},z=M(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),A={__name:"index",setup(a){const d=R(),y=K(),h=c(null),p=c(null),n=c({account:"",password:"",terminal:1}),_=()=>{if(!n.value.account)return w({message:"请填写账号",type:"error"});if(!n.value.password)return w({message:"请填写密码",type:"error"});N(n.value).then(l=>{var o;(o=l.data)!=null&&o.token&&(d.setToken(l.data.token),d.setUserInfo(l.data),y.push("/"))}).catch(l=>{})};return S(()=>{}),(l,o)=>{const k=s("User"),f=s("el-icon"),i=s("el-input"),u=s("el-form-item"),g=s("Lock"),x=s("el-button"),V=s("el-form");return b(),L("div",T,[v("div",q,[z,e(V,null,{default:t(()=>[e(u,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:h,modelValue:n.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>n.value.account=r),placeholder:"请输入账号",autofocus:!0,onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:n.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>n.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(g)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:t(()=>[e(x,{style:{width:"100%"},type:"primary",onClick:_},{default:t(()=>[B("登录")]),_:1})]),_:1})]),_:1})])])}}},$=I(A,[["__scopeId","data-v-aaf16e07"]]);export{$ as default};

File diff suppressed because one or more lines are too long

View File

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

View File

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

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

View File

@ -1 +1 @@
import{A as a}from"./index-C2mUYWeU.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{A as a}from"./index-DhxPMYiX.js";function i(){return a.get("/merchant/Merchant/amount_account")}function r(n){return a.get("/merchant/Merchant/taking_lists",{params:n})}function c(){return a.get("/merchant/Merchant/taking_info")}function e(n){return a.post("/merchant/Merchant/withdraw",n)}function o(n){return a.get("/financial/FinancialRecord/lists",{params:n})}function s(n){return a.get("/financial/FinancialRecord/api_lists",{params:n})}export{i as a,c as b,e as c,r as d,s as e,o as f};

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

@ -141,8 +141,8 @@ const handleEnter = () => {
const orderPay = () => {
let query;
let pay_type=17;
if(active.value==1){
let pay_type = 17;
if (active.value == 1) {
if (regexWechat.test(input.value)) pay_type = "9"; //
else if (regexPay.test(input.value)) pay_type = "13"; //
else {
@ -157,19 +157,29 @@ const orderPay = () => {
pay_type: pay_type,
auth_code: input.value
}).then((res) => {
if (res.data.out_trade_no && res.msg == "支付成功") {
if (res.msg?.includes('成功')) {
drawer.value = false;
ElMessage({
message: "支付成功",
type: "success",
});
// if(res.data.message) audioplay(res.data.message);
beforeClose(res.data);
beforeClose();
} else {
order_id.value = res.data.group_order_id;
count.value = 0;
timecount = 0;
getOrderStatus(res.data.group_order_sn);
if (res.msg == "用户支付中" && res.code == 1) {
ElMessage.warning(res.msg);
mitt.on("pay_success", (e) => {
ElMessage({
message: "支付成功",
type: "success",
});
setTimeout(() => {
mitt.off("pay_success");
}, 200);
drawer.value = false;
beforeClose(e);
});
}
}
})
.catch((err) => {

View File

@ -120,6 +120,7 @@ const getDetail = () => {
})
}
const emit = defineEmits(['rePaySuccess'])
const paySuccess = (data = null) => {
// data = {
// out_trade_no: "PF171568087790938356", //
@ -128,9 +129,10 @@ const paySuccess = (data = null) => {
// transaction_id: "4200002159202405159003084211", //
// }
// if(data) onPrint(data);
// setTimeout(()=>{
// orderRef.value.getList();
// })
setTimeout(()=>{
emit('rePaySuccess');
})
};
onMounted(() => {

View File

@ -93,6 +93,10 @@ const setForm = (item, index) => {
mitt.emit("set-sale-order-detail", item);
};
defineExpose({
getOrderList
})
onMounted(() => {
mitt.on("update-sale-order-detail", (item) => {
console.log("===");

View File

@ -4,14 +4,17 @@ import detail from "./component/detail.vue";
import padding from "@/components/padding.vue";
import { ref, nextTick } from "vue";
const orderRef = ref(null);
const rePaySuccess = ()=>{
orderRef.value?.getOrderList(true);
}
</script>
<template>
<div class="my-card">
<order style="flex-shrink: 0;" ref="orderRef"/>
<padding />
<detail ref="detailRef"/>
<detail ref="detailRef" @rePaySuccess="rePaySuccess"/>
</div>
</template>