From cb44f976e37775463a993874f4ec47c0d91b86c4 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 28 Jun 2024 18:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...osAPI-B5dawX3v.js => axiosAPI-DYpcg3Yc.js} | 2 +- build/assets/index-1a1dz75i.css | 1 - build/assets/index-4LENzAhO.css | 1 + build/assets/index-BJ49Hkgb.js | 1 - build/assets/index-BMKMLBt4.js | 27 ------------------- .../{index-rsJ_f2nJ.js => index-BbprSBiW.js} | 2 +- .../{index-CSaQTX_c.js => index-Bjp8iKWj.js} | 2 +- .../{index-BrKk-7uT.js => index-CSoTogo0.js} | 2 +- .../{index-XEdwB4XS.js => index-CbGMo1br.js} | 2 +- .../{index-B4UGSS-7.js => index-CoHhCr11.js} | 2 +- .../{index-DFFBOMnM.js => index-DRtqUpzG.js} | 2 +- .../{index-B8EEu-LB.js => index-DslPK7Nc.js} | 4 +-- .../{index-GpW-BMFV.js => index-QlXZ6G4J.js} | 2 +- build/assets/index-c0nzEvII.js | 1 + build/assets/index-mvvao8ZD.js | 27 +++++++++++++++++++ ...{index-D7GQBsjU.css => index-zrGTTzRW.css} | 2 +- ...unt-xluBJzuO.js => indexCount-5PH9xZfJ.js} | 2 +- ...chant-CYZ4pJwa.js => merchant-D2Gq3I4N.js} | 2 +- ...adding-CBqAITKo.js => padding-CQ0n6974.js} | 2 +- build/assets/pay-Bm_PmHdm.css | 1 - build/assets/pay-DJzT1N1_.js | 1 - build/assets/pay-Dn2JkHh_.js | 1 + build/assets/pay-OHBr3Zal.css | 1 + .../{shop-Cwb0_dzb.js => shop-B66-JAoZ.js} | 2 +- build/assets/store-BHLkswxT.js | 1 - build/assets/store-BUqDvNxu.js | 1 + .../{test-CwFTindV.js => test-C1w-f_el.js} | 2 +- .../{user-H5zoLVp6.js => user-jp6MVT4O.js} | 2 +- build/index.html | 2 +- 29 files changed, 50 insertions(+), 50 deletions(-) rename build/assets/{axiosAPI-B5dawX3v.js => axiosAPI-DYpcg3Yc.js} (93%) delete mode 100644 build/assets/index-1a1dz75i.css create mode 100644 build/assets/index-4LENzAhO.css delete mode 100644 build/assets/index-BJ49Hkgb.js delete mode 100644 build/assets/index-BMKMLBt4.js rename build/assets/{index-rsJ_f2nJ.js => index-BbprSBiW.js} (96%) rename build/assets/{index-CSaQTX_c.js => index-Bjp8iKWj.js} (98%) rename build/assets/{index-BrKk-7uT.js => index-CSoTogo0.js} (84%) rename build/assets/{index-XEdwB4XS.js => index-CbGMo1br.js} (96%) rename build/assets/{index-B4UGSS-7.js => index-CoHhCr11.js} (94%) rename build/assets/{index-DFFBOMnM.js => index-DRtqUpzG.js} (84%) rename build/assets/{index-B8EEu-LB.js => index-DslPK7Nc.js} (99%) rename build/assets/{index-GpW-BMFV.js => index-QlXZ6G4J.js} (98%) create mode 100644 build/assets/index-c0nzEvII.js create mode 100644 build/assets/index-mvvao8ZD.js rename build/assets/{index-D7GQBsjU.css => index-zrGTTzRW.css} (81%) rename build/assets/{indexCount-xluBJzuO.js => indexCount-5PH9xZfJ.js} (86%) rename build/assets/{merchant-CYZ4pJwa.js => merchant-D2Gq3I4N.js} (87%) rename build/assets/{padding-CBqAITKo.js => padding-CQ0n6974.js} (65%) delete mode 100644 build/assets/pay-Bm_PmHdm.css delete mode 100644 build/assets/pay-DJzT1N1_.js create mode 100644 build/assets/pay-Dn2JkHh_.js create mode 100644 build/assets/pay-OHBr3Zal.css rename build/assets/{shop-Cwb0_dzb.js => shop-B66-JAoZ.js} (68%) delete mode 100644 build/assets/store-BHLkswxT.js create mode 100644 build/assets/store-BUqDvNxu.js rename build/assets/{test-CwFTindV.js => test-C1w-f_el.js} (99%) rename build/assets/{user-H5zoLVp6.js => user-jp6MVT4O.js} (92%) diff --git a/build/assets/axiosAPI-B5dawX3v.js b/build/assets/axiosAPI-DYpcg3Yc.js similarity index 93% rename from build/assets/axiosAPI-B5dawX3v.js rename to build/assets/axiosAPI-DYpcg3Yc.js index 2e962d3..dc9eac9 100644 --- a/build/assets/axiosAPI-B5dawX3v.js +++ b/build/assets/axiosAPI-DYpcg3Yc.js @@ -1 +1 @@ -import{K as o,L as s,E as r,u as d,M as g}from"./index-B8EEu-LB.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}; +import{K as o,L as s,E as r,u as d,M as g}from"./index-DslPK7Nc.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}; diff --git a/build/assets/index-1a1dz75i.css b/build/assets/index-1a1dz75i.css deleted file mode 100644 index c258f6a..0000000 --- a/build/assets/index-1a1dz75i.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.my-order[data-v-3d8750ac]{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-3d8750ac]{display:flex;justify-content:space-between;padding:1rem}.my-order .header-nav span[data-v-3d8750ac]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-3d8750ac]{font-weight:700}.my-order .header-row[data-v-3d8750ac]{display:flex;padding:0 1rem 1rem;align-items:center}.my-order .header-row .label[data-v-3d8750ac]{flex-shrink:0;margin-right:1rem;font-size:.9rem}.my-order .header-input[data-v-3d8750ac]{padding:1rem;padding-top:0;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-3d8750ac]{flex:1;overflow-y:auto}.my-order .order-lists .item[data-v-3d8750ac]{padding:1rem;border-bottom:.0625rem solid #eee;display:flex}.my-order .order-lists .item .avatar[data-v-3d8750ac]{height:4rem;width:4rem;border-radius:50%;margin-right:1rem;flex-shrink:0}.my-order .order-lists .item .flex[data-v-3d8750ac]{display:flex;flex-wrap:wrap}.my-order .order-lists .item .bold[data-v-3d8750ac]{font-weight:700}.my-order .order-lists .item .r-1[data-v-3d8750ac]{margin-right:1rem}.my-order .order-lists .item .bottom>div[data-v-3d8750ac]{margin-left:.5rem}.my-order .order-lists .item .red[data-v-3d8750ac]{color:#ff4a00}.my-order .order-lists .item-active[data-v-3d8750ac]{background-color:#efefef}.my-order .load-end[data-v-3d8750ac]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.dra-body[data-v-7b0b3630]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-7b0b3630]{width:25rem;display:flex}.dra-body .header>div[data-v-7b0b3630]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-7b0b3630]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-7b0b3630]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-7b0b3630]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-7b0b3630]{width:100%;height:3rem}.dra-body .card1 .tips[data-v-7b0b3630]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.cancel-btn[data-v-7b0b3630]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-7b0b3630]{width:100%;overflow-x:hidden}.counter[data-v-7b0b3630]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-7b0b3630]{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-7b0b3630]{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-7b0b3630]{color:#ff4a00}.counter .balance .tips[data-v-7b0b3630]{font-size:.8rem;color:#999}.counter .keypad[data-v-7b0b3630]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-7b0b3630]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-7b0b3630]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-7b0b3630]{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-7b0b3630]:focus{box-shadow:none}.counter .keypad .enter[data-v-7b0b3630]{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-7b0b3630]{background-color:#ccc}.my-order[data-v-3f469190]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .detail[data-v-3f469190]{height:100%;box-sizing:border-box;position:relative}.my-order .detail .table[data-v-3f469190]{padding:1rem 1rem 6rem;box-sizing:border-box;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-3f469190]{font-weight:700}.my-order .detail .table .table-title .tips[data-v-3f469190]{font-weight:400;color:#999;font-size:.8rem;margin-left:1rem}.my-order .detail .table .table-info[data-v-3f469190]{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-3f469190]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-3f469190]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .red[data-v-3f469190]{color:#ff4a00}.my-order .detail .table .table-info .info-item .info-item-title[data-v-3f469190]{flex-shrink:0;padding-right:1rem}.my-order .detail .table .table-info .pay-btn[data-v-3f469190]{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}.my-order .detail .table .table-info .pay-btn .pay-item[data-v-3f469190]{flex:1;min-width:10rem;margin:1rem .5rem 0;height:5rem;background-color:#67c23a1a;color:#67c23a;border-radius:1rem;border:.125rem solid #67c23a;cursor:pointer;font-size:1.5rem;display:flex;justify-content:center;align-items:center}.my-order .detail .table .table-info .pay-btn .pay-item .input[data-v-3f469190]{font-size:1.5rem;width:100%;height:100%;text-align:center;color:#67c23a}.my-order .detail .table .table-info .pay-btn .pay-item-active[data-v-3f469190]{background-color:#67c23a;color:#fff}.my-order .detail .table .table-info .pay-btn .pay-item-active .input[data-v-3f469190]{color:#fff}.my-order .detail .table .table-info .pay[data-v-3f469190]{width:100%;border-radius:3rem;margin:.5rem}.my-order .detail .footer[data-v-3f469190]{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-order input[type=number][data-v-3f469190]{border:none;padding:0;background-color:transparent;outline:none;-webkit-text-fill-color:inherit;-webkit-appearance:none;box-shadow:none}.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} diff --git a/build/assets/index-4LENzAhO.css b/build/assets/index-4LENzAhO.css new file mode 100644 index 0000000..618d86f --- /dev/null +++ b/build/assets/index-4LENzAhO.css @@ -0,0 +1 @@ +@charset "UTF-8";.my-order[data-v-43704951]{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-43704951]{display:flex;justify-content:space-between;padding:1rem}.my-order .header-nav span[data-v-43704951]{color:#ff4a00}.my-order .header-nav .nav-item[data-v-43704951]{font-weight:700}.my-order .header-row[data-v-43704951]{display:flex;padding:0 1rem 1rem;align-items:center}.my-order .header-row .label[data-v-43704951]{flex-shrink:0;margin-right:1rem;font-size:.9rem}.my-order .header-input[data-v-43704951]{padding:1rem;padding-top:0;border-bottom:.0625rem solid #eee}.my-order .order-lists[data-v-43704951]{flex:1;overflow-y:auto}.my-order .order-lists .item[data-v-43704951]{padding:1rem;border-bottom:.0625rem solid #eee;display:flex}.my-order .order-lists .item .avatar[data-v-43704951]{height:4rem;width:4rem;border-radius:50%;margin-right:1rem;flex-shrink:0}.my-order .order-lists .item .flex[data-v-43704951]{display:flex;flex-wrap:wrap}.my-order .order-lists .item .bold[data-v-43704951]{font-weight:700}.my-order .order-lists .item .r-1[data-v-43704951]{margin-right:1rem}.my-order .order-lists .item .bottom>div[data-v-43704951]{margin-left:.5rem}.my-order .order-lists .item .red[data-v-43704951]{color:#ff4a00}.my-order .order-lists .item-active[data-v-43704951]{background-color:#efefef}.my-order .load-end[data-v-43704951]{text-align:center;padding:1rem;color:#333;font-size:.8rem}.dra-body[data-v-7b0b3630]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-7b0b3630]{width:25rem;display:flex}.dra-body .header>div[data-v-7b0b3630]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-7b0b3630]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-7b0b3630]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-7b0b3630]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-7b0b3630]{width:100%;height:3rem}.dra-body .card1 .tips[data-v-7b0b3630]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.cancel-btn[data-v-7b0b3630]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-7b0b3630]{width:100%;overflow-x:hidden}.counter[data-v-7b0b3630]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-7b0b3630]{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-7b0b3630]{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-7b0b3630]{color:#ff4a00}.counter .balance .tips[data-v-7b0b3630]{font-size:.8rem;color:#999}.counter .keypad[data-v-7b0b3630]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-7b0b3630]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-7b0b3630]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-7b0b3630]{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-7b0b3630]:focus{box-shadow:none}.counter .keypad .enter[data-v-7b0b3630]{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-7b0b3630]{background-color:#ccc}.my-order[data-v-d89a3027]{border-radius:1.2rem;height:100%;flex:1;background-color:#fff;position:relative;overflow:hidden}.my-order .header-nav[data-v-d89a3027]{display:flex;background:linear-gradient(to bottom,#f5f5f5 50%,#fff 50%)}.my-order .header-nav .nav-item[data-v-d89a3027]{height:4rem;width:8rem;cursor:pointer;display:flex;justify-content:center;align-items:center;font-size:1.2rem;background-color:#f5f5f5;border-radius:1rem 1rem 0 0}.my-order .header-nav .nav-item-active[data-v-d89a3027]{background-color:#fff;position:relative;transition:.3s}.my-order .header-nav .nav-item-radius1[data-v-d89a3027]{border-radius:0 0 1rem}.my-order .header-nav .nav-item-radius2[data-v-d89a3027]{border-radius:0 0 0 1rem}.my-order .detail[data-v-d89a3027]{height:calc(100% - 4rem);box-sizing:border-box;position:relative}.my-order .detail .table[data-v-d89a3027]{padding:1rem 1rem 7rem;box-sizing:border-box;overflow-y:auto;height:100%}.my-order .detail .table .table-title[data-v-d89a3027]{font-weight:700}.my-order .detail .table .table-title .tips[data-v-d89a3027]{font-weight:400;color:#999;font-size:.8rem;margin-left:1rem}.my-order .detail .table .table-info[data-v-d89a3027]{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-d89a3027]:last-child{border-bottom:none}.my-order .detail .table .table-info .info-item[data-v-d89a3027]{width:33%;display:flex;padding-top:1rem}.my-order .detail .table .table-info .info-item .red[data-v-d89a3027]{color:#ff4a00}.my-order .detail .table .table-info .info-item .info-item-title[data-v-d89a3027]{flex-shrink:0;padding-right:1rem}.my-order .detail .table .table-info .pay-btn[data-v-d89a3027]{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}.my-order .detail .table .table-info .pay-btn .pay-item[data-v-d89a3027]{flex:1;min-width:10rem;margin:1rem .5rem 0;height:5rem;background-color:#67c23a1a;color:#67c23a;border-radius:1rem;border:.125rem solid #67c23a;cursor:pointer;font-size:1.5rem;display:flex;justify-content:center;align-items:center}.my-order .detail .table .table-info .pay-btn .pay-item .input[data-v-d89a3027]{font-size:1.5rem;width:100%;height:100%;text-align:center;color:#67c23a}.my-order .detail .table .table-info .pay-btn .pay-item-active[data-v-d89a3027]{background-color:#67c23a;color:#fff}.my-order .detail .table .table-info .pay-btn .pay-item-active .input[data-v-d89a3027]{color:#fff}.my-order .detail .table .table-info .pay[data-v-d89a3027]{width:100%;border-radius:3rem;margin:.5rem}.my-order .detail .footer[data-v-d89a3027]{position:absolute;z-index:1000;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-order input[type=number][data-v-d89a3027]{border:none;padding:0;background-color:transparent;outline:none;-webkit-text-fill-color:inherit;-webkit-appearance:none;box-shadow:none}.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} diff --git a/build/assets/index-BJ49Hkgb.js b/build/assets/index-BJ49Hkgb.js deleted file mode 100644 index efde8ba..0000000 --- a/build/assets/index-BJ49Hkgb.js +++ /dev/null @@ -1 +0,0 @@ -import{r as _,B as ye,b as $,c as s,k as V,f as u,w as i,g as h,F as T,l as te,d as R,E as j,_ as ue,u as re,o as ce,m as P,a as ve,h as de,e,i as ge,j as _e,z as W,t as k,p as G,q as pe,s as fe,G as Le,n as ne,D as ze,J as De}from"./index-B8EEu-LB.js";import{a as me,b as Fe,c as Re,u as Ie,d as he,e as Pe,f as je,g as Ee,h as Ne,i as Oe,j as Be}from"./user-H5zoLVp6.js";import"./moment-Cl4UOzQZ.js";import{r as se}from"./axiosAPI-B5dawX3v.js";import{f as qe}from"./store-BHLkswxT.js";import{p as Te}from"./padding-CBqAITKo.js";function be(w){return se.get("/city",{params:w})}function ke(w){return se.get("/area",{params:w})}function $e(w){return se.get("/street",{params:w})}function Ve(w){return se.get("/village",{params:w})}function we(w){return se.get("/brigade",{params:w})}const Je={class:"add-user"},Ke={__name:"add",emits:["close"],setup(w,{expose:t,emit:y}){const U=_(null),p=ye({mobile:"",code:"",real_name:"",user_ship:"",selectedValues:[]}),C=ye({mobile:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}],real_name:[{required:!0,message:"请输入用户姓名",trigger:"blur"}],user_ship:[{required:!0,message:"请选择用户类型",trigger:"change"}],selectedValues:[{required:!0,message:"请选择用户地址",trigger:"change"}]}),S=_([]),I=async(F,r)=>{const l=F.level;let f;if(l!==0&&!F.data.code)return r([]);l===0?(f=await be({province_code:51e4}),f=f.data.map(x=>({code:x.city_code,name:x.city_name}))):l===1?(f=await ke({city_code:F.data.code}),f=f.data.map(x=>({code:x.area_code,name:x.area_name}))):l===2?(f=await $e({area_code:F.data.code}),f=f.data.map(x=>({code:x.street_code,name:x.street_name}))):l===3?(f=await Ve({street_code:F.data.code}),f=f.data.map(x=>({code:x.village_code,name:x.village_name}))):l===4&&(f=await we({village_code:F.data.code}),f=f.data.map(x=>({code:x.id,name:x.brigade_name,leaf:!0}))),r(f)},Z={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:I},D=_([]);(()=>{me().then(F=>{D.value=F.data.lists})})();const N=y,O=()=>{U.value.validate(async F=>{if(F){let r={};r.mobile=p.mobile,r.code=p.code,r.user_ship=p.user_ship,r.real_name=p.real_name,r.province="510000",r.city=p.selectedValues[0],r.area=p.selectedValues[1],r.street=p.selectedValues[2],r.village=p.selectedValues[3],r.brigade=p.selectedValues[4],Fe(r).then(l=>{N("close")})}})},H=()=>{U.value.validateField("mobile",F=>{F&&Re({mobile:p.mobile}).then(r=>{j.success("发送成功")}).catch(r=>{j.error("发送失败")})})};return t({addUser:O}),(F,r)=>{const l=$("el-input"),f=$("el-form-item"),x=$("el-button"),B=$("el-option"),Q=$("el-select"),J=$("el-cascader"),K=$("el-form");return s(),V("div",Je,[u(K,{model:p,rules:C,ref_key:"formDataRef",ref:U,"label-width":"80px"},{default:i(()=>[u(f,{label:"用户电话",prop:"mobile"},{default:i(()=>[u(l,{modelValue:p.mobile,"onUpdate:modelValue":r[0]||(r[0]=g=>p.mobile=g),placeholder:"请输入用户电话"},null,8,["modelValue"])]),_:1}),u(f,{label:"验证码",prop:"code"},{default:i(()=>[u(l,{modelValue:p.code,"onUpdate:modelValue":r[1]||(r[1]=g=>p.code=g),placeholder:"请输入验证码",style:{flex:"1"}},null,8,["modelValue"]),u(x,{type:"primary",style:{"margin-left":"1rem"},onClick:H},{default:i(()=>[h("获取验证码")]),_:1})]),_:1}),u(f,{label:"用户姓名",prop:"real_name"},{default:i(()=>[u(l,{modelValue:p.real_name,"onUpdate:modelValue":r[2]||(r[2]=g=>p.real_name=g),placeholder:"请输入用户姓名"},null,8,["modelValue"])]),_:1}),u(f,{label:"用户类型",prop:"user_ship"},{default:i(()=>[u(Q,{modelValue:p.user_ship,"onUpdate:modelValue":r[3]||(r[3]=g=>p.user_ship=g),placeholder:"请选择用户类型",style:{width:"100%"}},{default:i(()=>[(s(!0),V(T,null,te(D.value,g=>(s(),R(B,{key:g.id,label:g.title,value:g.id,disabled:g.id==1},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(f,{label:"用户地址",prop:"selectedValues"},{default:i(()=>[u(J,{style:{width:"100%"},modelValue:p.selectedValues,"onUpdate:modelValue":r[4]||(r[4]=g=>p.selectedValues=g),options:S.value,props:Z,load:I,class:"w-full"},null,8,["modelValue","options"])]),_:1})]),_:1},8,["model","rules"])])}}},Ce=w=>(pe("data-v-3d8750ac"),w=w(),fe(),w),Me={class:"my-order"},Ge={class:"header-nav"},We=Ce(()=>e("div",{class:"nav-item"},k("用户列表"),-1)),He={class:"header-row"},Qe=Ce(()=>e("div",{class:"label"},"用户类型",-1)),Xe={class:"header-input"},Ye={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},Ze=["onClick"],et={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},tt={class:"top flex"},lt={class:"r-1"},at={class:"bold"},st={class:"bottom flex",style:{"justify-content":"space-between"}},ot={class:"red"},it={class:"red"},nt={class:"red"},dt={class:"red"},ut={key:0,class:"load-end"},rt={key:1,class:"load-end"},ct={class:"dialog-footer"},vt={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(w){re(),_([]);const t=_({page_no:1,page_size:20,mobile:"",user_ship:""}),y=_(!1),U=_(0),p=_(0),C=_(!1),S=_([]),I=(r=!1)=>{if(r)t.value.page_no=1;else if(C.value||y.value)return;y.value=!0,Ie(t.value).then(l=>{r?S.value=l.data.lists:S.value=[...S.value,...l.data.lists],t.value.page_no==1&&S.value.length>0&&P.emit("set-user-detail",S.value[0]),l.data.lists.length{C.value=!0,y.value=!1})},Z=(r,l)=>{p.value=l,P.emit("set-user-detail",r)},D=_(!1),L=_(null),N=()=>{var r;(r=L.value)==null||r.addUser()},O=()=>{D.value=!1,I(!0)},H=_([]);return(()=>{me().then(r=>{H.value=r.data.lists})})(),ce(()=>{P.on("re-load-user-list",()=>{I(!0)})}),ve(()=>{P.off("re-load-user-list")}),(r,l)=>{const f=$("Plus"),x=$("el-icon"),B=$("el-button"),Q=$("el-option"),J=$("el-select"),K=$("el-input"),g=$("el-avatar"),E=$("el-tag"),z=$("el-dialog"),c=de("loading"),n=de("infinite-scroll");return s(),V("div",Me,[e("div",Ge,[We,u(B,{type:"primary",onClick:l[0]||(l[0]=o=>D.value=!0)},{default:i(()=>[u(x,null,{default:i(()=>[u(f)]),_:1}),h(" 添加用户")]),_:1})]),e("div",He,[Qe,u(J,{modelValue:t.value.user_ship,"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.user_ship=o),onChange:l[2]||(l[2]=o=>I(!0)),placeholder:"请选择用户类型",style:{flex:"1"}},{default:i(()=>[(s(!0),V(T,null,te(H.value,o=>(s(),R(Q,{key:o.id,label:o.title,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e("div",Xe,[u(K,{modelValue:t.value.mobile,"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.mobile=o),placeholder:"搜索手机号/ID",onKeydown:l[5]||(l[5]=ge(o=>I(!0),["enter"])),onClear:l[6]||(l[6]=o=>I(!0)),clearable:""},{append:i(()=>[u(B,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:l[3]||(l[3]=o=>I(!0))},{default:i(()=>[h("搜索")]),_:1})]),_:1},8,["modelValue"])]),_e((s(),V("div",Ye,[(s(!0),V(T,null,te(S.value,(o,b)=>{var d,M;return s(),V("div",{class:W(["item",{"item-active":p.value==b}]),key:b,onClick:X=>Z(o,b)},[u(g,{class:"avatar",src:o.avatar},null,8,["src"]),e("div",et,[e("div",tt,[e("div",lt,[e("span",at,k(o.nickname),1),e("span",null,k(" (ID:"+o.id+")"),1)]),e("div",null,"手机号: "+k(o.mobile),1)]),e("div",st,[e("div",null,[h("余额: "),e("span",ot,k(o.now_money),1)]),e("div",null,[h("采购款: "),e("span",it,k(o.purchase_funds),1)]),e("div",null,[h("返还金: "),e("span",nt,k((d=o.return_money)==null?void 0:d.toFixed(2)),1)]),e("div",null,[h("礼品券: "),e("span",dt,k((M=o.get_frozen)==null?void 0:M.toFixed(2)),1)]),e("div",null,[o.user_ship!=1?(s(),R(E,{key:0,type:"primary"},{default:i(()=>[h(k(o.user_ship_name),1)]),_:2},1024)):(s(),R(E,{key:1,type:"success"},{default:i(()=>[h(k(o.user_ship_name),1)]),_:2},1024))])])])],10,Ze)}),128)),C.value?(s(),V("div",ut,"没有更多了")):G("",!0),y.value?(s(),V("div",rt,"加载中...")):G("",!0)])),[[c,y.value],[n,I]]),u(z,{modelValue:D.value,"onUpdate:modelValue":l[8]||(l[8]=o=>D.value=o),title:"添加用户",width:"600"},{footer:i(()=>[e("div",ct,[u(B,{onClick:l[7]||(l[7]=o=>D.value=!1)},{default:i(()=>[h("取消")]),_:1}),u(B,{type:"primary",onClick:N},{default:i(()=>[h(" 添加 ")]),_:1})])]),default:i(()=>[u(Ke,{ref_key:"addRef",ref:L,onClose:O},null,512)]),_:1},8,["modelValue"])])}}},_t=ue(vt,[["__scopeId","data-v-3d8750ac"]]),le=w=>(pe("data-v-7b0b3630"),w=w(),fe(),w),pt=le(()=>e("h4",null,"选择支付方式",-1)),ft={class:"dra-body"},mt={class:"header"},yt={style:{display:"inline-block"}},ht=le(()=>e("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),gt={style:{color:"#f5222d","padding-bottom":"2rem"}},bt={style:{"font-size":"1.6rem"}},kt={key:0,"element-loading-text":"支付中",class:"card1"},$t=le(()=>e("div",{class:"tips"},null,-1)),Vt={key:1,class:"card2"},wt={class:"drawer-body"},Ct={class:"counter"},xt={class:"received"},St={key:0},Ut={key:1,style:{"font-size":"1rem",color:"#999"}},At={key:0,class:"balance"},Lt={class:"money"},zt=le(()=>e("div",{class:"tips"},"按回车(Enter)确认支付",-1)),Dt={key:1,class:"balance"},Ft=le(()=>e("div",null,"不够找零, 请支付更多金额",-1)),Rt=le(()=>e("div",{class:"tips"},"按下小键盘输入金额",-1)),It=[Ft,Rt],Pt={class:"keypad"},jt={class:"left"},Et={class:"right"},Nt={style:{width:"100%",display:"flex","justify-content":"center"}},Ot={__name:"payUser",emits:["paySuccess"],setup(w,{expose:t,emit:y}){const U=_(!1),p=_(1),C=_(""),S=_("");re();const I=()=>{g()},Z=()=>{ne(()=>{setTimeout(()=>{var m;E.value=!1,C.value="",l.value=!0,(m=S.value)==null||m.focus(),D(p.value)},300)})},D=m=>{p.value=m,console.log(p.value),p.value==2?window.addEventListener("keydown",X):(window.removeEventListener("keydown",X),ne(()=>{var v;C.value="",(v=S.value)==null||v.focus()}))},L=_({price:0,uid:""}),N=_([]),O=_(!1),H=m=>{L.value=m.data,L.value.total=m.data.price,N.value=m.cart_id,O.value=m.isRePay||!1},F=m=>{L.value.total=m.price,Q.value=m.order_id},r=y,l=_(!1),f=_(["1","2","3","4","5","6","7","8","9","0","00","."]),x=/^(10|11|12|13|14|15)\d{16}$/,B=/^(25|26|27|28|29|30)\d{14,22}$/,Q=_(""),J=()=>{if(E.value=!0,S.value.blur(),O.value)K();else{let m;if(x.test(C.value))m="9";else if(B.test(C.value))m="13";else return E.value=!1,C.value="",S.value.focus(),j.error("请输入正确的支付码");he({uid:L.value.uid,price:L.value.price,pay_type:m,auth_code:C.value}).then(v=>{v.data.out_trade_no&&v.msg=="支付成功"?(U.value=!1,j({message:"支付成功",type:"success"}),g(v.data)):v.msg=="用户支付中"&&v.code==1&&(j.warning(v.msg),P.on("pay_success",a=>{j({message:"支付成功",type:"success"}),setTimeout(()=>{P.off("pay_success")},200),U.value=!1,g(a)}))}).catch(v=>{E.value=!1,ne(()=>{var a;(a=S.value)==null||a.focus()})})}},K=()=>{let m=17;if(p.value==1)if(x.test(C.value))m="9";else if(B.test(C.value))m="13";else return E.value=!1,C.value="",S.value.focus(),j.error("请输入正确的支付码");qe({order_id:L.value.order_id,pay_type:m,auth_code:C.value}).then(v=>{var a;(a=v.msg)!=null&&a.includes("成功")?(U.value=!1,j({message:"支付成功",type:"success"}),g()):v.msg=="用户支付中"&&v.code==1&&(j.warning(v.msg),P.on("pay_success",Y=>{j({message:"支付成功",type:"success"}),setTimeout(()=>{P.off("pay_success")},200),U.value=!1,g(Y)}))}).catch(v=>{C.value="",E.value=!1,ne(()=>{var a;(a=S.value)==null||a.focus()})})};_(0);const g=m=>{var v;window.removeEventListener("keydown",X),l.value=!1,E.value=!1,C.value="",c.value="",z.value=[],(v=S.value)==null||v.blur(),r("paySuccess",m),U.value=!1},E=_(!1);t({drawer:U,setForm:H,setRePay:F,beforeClose:g});const z=_([]),c=_(""),n=Le(()=>+c.value>0?(c.value-L.value.total).toFixed(2):-1),o=_(!1),b=m=>{m===-1?z.value=[]:z.value.pop(),c.value=z.value.length?z.value.join(""):0},d=m=>{o.value===!1&&(c.value="",o.value=!0);let v=String(c.value).indexOf(".")+1,a=String(c.value).length-v;console.log(v,a),(v===0||a<2)&&(z.value.join("")<=9999999&&z.value.push(m),c.value=z.value.join("")>99999999?99999999:z.value.join(""))},M=()=>{if(n.value===""||n.value===null||n.value===void 0||+c.value<+L.value.total)return j.error("收款金额应该大于等于应收金额");O.value?K():he({uid:L.value.uid,price:L.value.price,pay_type:17}).then(m=>{U.value=!1,j({message:m.msg,type:"success"}),D(1),g()}).catch(m=>{E.value=!1})},X=m=>{let a=(m||window.event).keyCode;if(a==37)return D(2);if(a==120)return P.emit("F9");if(a==27)return g();switch(m.stopPropagation(),m.preventDefault(),a){case 96:case 48:d(0);break;case 97:case 49:d(1);break;case 98:case 50:d(2);break;case 99:case 51:d(3);break;case 100:case 52:d(4);break;case 101:case 53:d(5);break;case 102:case 54:d(6);break;case 103:case 55:d(7);break;case 104:case 56:d(8);break;case 105:case 57:d(9);break;case 110:d(".");break;case 190:d(".");break;case 8:b();break;case 13:M();break}},ee=_(!1),oe=()=>{if(!(!U.value||ee.value&&C.value.length>0)&&p.value==2)return D(1)},ae=()=>{if(!(!U.value||ee.value&&C.value.length>0)&&p.value==1)return D(2)};return ce(()=>{P.on("left",oe),P.on("right",ae)}),ve(()=>{P.off("left",oe),P.off("right",ae)}),(m,v)=>{const a=$("el-input"),Y=$("el-button"),xe=$("Delete"),Se=$("el-icon"),Ue=$("el-drawer"),Ae=de("loading");return s(),R(Ue,{size:"60rem",modelValue:U.value,"onUpdate:modelValue":v[6]||(v[6]=ie=>U.value=ie),direction:"rtl",onOpen:Z,"before-close":g},{header:i(()=>[pt]),default:i(()=>{var ie;return[e("div",ft,[e("div",mt,[e("div",{class:W(["left",{active:p.value==1}]),onClick:v[0]||(v[0]=q=>D(1))}," 微信/支付宝 ",2),e("div",{class:W(["right",{active:p.value==2}]),onClick:v[1]||(v[1]=q=>D(2))}," 现金收款 ",2)]),e("div",null,[e("div",yt,[ht,e("div",gt,[h(" ¥"),e("span",bt,k((ie=L.value)==null?void 0:ie.price),1)])])]),p.value==1?_e((s(),V("div",kt,[u(a,{ref_key:"codeRef",ref:S,modelValue:C.value,"onUpdate:modelValue":v[2]||(v[2]=q=>C.value=q),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:ge(J,["enter"]),onFocus:v[3]||(v[3]=q=>ee.value=!0),onBlur:v[4]||(v[4]=q=>ee.value=!1)},null,8,["modelValue"]),$t])),[[Ae,E.value]]):(s(),V("div",Vt,[e("div",wt,[e("div",Ct,[e("div",xt,[c.value?(s(),V("span",St,k(c.value),1)):(s(),V("span",Ut,"按下键盘输入客户支付金额"))]),n.value>=0?(s(),V("div",At,[e("div",null,[h(" 需找零(元):"),e("span",Lt,"¥"+k(n.value),1)]),zt])):(s(),V("div",Dt,It)),e("div",Pt,[e("div",jt,[(s(!0),V(T,null,te(f.value,q=>(s(),R(Y,{key:q,onClick:Ql=>d(q)},{default:i(()=>[h(k(q),1)]),_:2},1032,["onClick"]))),128))]),e("div",Et,[u(Y,{onClick:b},{default:i(()=>[u(Se,null,{default:i(()=>[u(xe)]),_:1})]),_:1}),u(Y,{onClick:v[5]||(v[5]=q=>b(-1))},{default:i(()=>[h("C")]),_:1}),u(Y,{class:W(["enter",{"enter-disable":+c.value<+L.value.total}]),disabled:+c.value<+L.value.total,onClick:M},{default:i(()=>[h(" 确认 ")]),_:1},8,["class","disabled"])])])])])]))])]}),footer:i(()=>[e("div",Nt,[u(Y,{class:"cancel-btn",onClick:I},{default:i(()=>[h("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},Bt=ue(Ot,[["__scopeId","data-v-7b0b3630"]]),A=w=>(pe("data-v-3f469190"),w=w(),fe(),w),qt={class:"my-order"},Tt={key:0,class:"detail"},Jt={class:"table"},Kt=A(()=>e("div",{class:"table-title"},"用户信息",-1)),Mt={class:"table-info"},Gt={class:"info-item"},Wt=A(()=>e("div",{class:"info-item-title"},"用户余额:",-1)),Ht={class:"info-item-info red"},Qt={class:"info-item"},Xt=A(()=>e("div",{class:"info-item-title"},"采购款:",-1)),Yt={class:"info-item-info red"},Zt={class:"info-item"},el=A(()=>e("div",{class:"info-item-title"},"返还金:",-1)),tl={class:"info-item-info red"},ll={class:"info-item"},al=A(()=>e("div",{class:"info-item-title"},"头像:",-1)),sl={class:"info-item-info"},ol={class:"info-item"},il=A(()=>e("div",{class:"info-item-title"},"礼品券:",-1)),nl={class:"info-item-info red"},dl={class:"info-item"},ul=A(()=>e("div",{class:"info-item-title"},"冻结礼品券:",-1)),rl={class:"info-item-info red"},cl={class:"info-item"},vl=A(()=>e("div",{class:"info-item-title"},"ID:",-1)),_l={class:"info-item-info"},pl={class:"info-item"},fl=A(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),ml={class:"info-item-info"},yl={class:"info-item"},hl=A(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),gl={class:"info-item-info"},bl={class:"info-item"},kl=A(()=>e("div",{class:"info-item-title"},"用户账号:",-1)),$l={class:"info-item-info"},Vl={class:"info-item"},wl=A(()=>e("div",{class:"info-item-title"},"真实姓名:",-1)),Cl={class:"info-item-info"},xl={class:"info-item"},Sl=A(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Ul={class:"info-item-info"},Al={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Ll=A(()=>e("div",{class:"info-item-title"},"用户类型:",-1)),zl={class:"info-item-info"},Dl={key:0,class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Fl=A(()=>e("div",{class:"info-item-title"},"用户标签:",-1)),Rl={class:"info-item-info"},Il={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Pl=A(()=>e("div",{class:"info-item-title"},"用户地址:",-1)),jl=A(()=>e("div",{class:"table-title"},[h("供销经营礼包"),e("span",{class:"tips"},"首次购买1000元以上成为行业会员")],-1)),El={class:"table-info"},Nl={class:"pay-btn"},Ol=A(()=>e("div",null,"¥1000.00",-1)),Bl=[Ol],ql=A(()=>e("div",null,"¥2000.00",-1)),Tl=[ql],Jl=A(()=>e("div",null,"¥5000.00",-1)),Kl=[Jl],Ml={key:1},Gl={__name:"detail",setup(w){re(),ze();const t=_({id:""}),y=_({price:"",type:1}),U=_(null),p=()=>{y.value.type==1?y.value.price="1000":y.value.type==2?y.value.price="2000":y.value.type==3&&(y.value.price="5000"),y.value.type==0&&(y.value.price=Number(y.value.price).toFixed(2)),console.log("支付",y.value),U.value.setForm({data:{uid:t.value.id,price:y.value.price}}),U.value.drawer=!0},C=()=>{console.log("支付成功"),P.emit("re-load-user-list")},S=_(!1),I=_([]);(()=>{me().then(c=>{I.value=c.data.lists})})();const D=()=>{je({id:t.value.id,user_ship:t.value.user_ship}).then(c=>{var n;j.success("修改成功"),t.value.user_ship_name=(n=I.value.find(o=>o.id==t.value.user_ship))==null?void 0:n.title,S.value=!1})},L=()=>{S.value=!1},N=_(!1),O=_([]);(()=>{Ee().then(c=>{O.value=c.data.lists})})();const F=()=>{Ne({id:t.value.id,label_id:t.value.label_id}).then(c=>{var n;j.success("修改成功"),t.value.label_name=(n=O.value.find(o=>o.label_id==t.value.label_id))==null?void 0:n.label_name,N.value=!1})},r=()=>{N.value=!1},l=_({id:"",province:"",city:"",area:"",street:"",brigade:""}),f=_([]),x=_([]),B=()=>{Oe({uid:t.value.id}).then(c=>{c.data.village&&(f.value=[c.data.city,c.data.area,c.data.street,c.data.village,+c.data.brigade],x.value=JSON.parse(JSON.stringify(f.value)),l.value=Object.assign(l.value,c.data))})},Q=_([]),J=async(c,n)=>{const o=c.level;let b;if(o!==0&&!c.data.code)return n([]);o===0?(b=await be({province_code:51e4}),b=b.data.map(d=>({code:d.city_code,name:d.city_name}))):o===1?(b=await ke({city_code:c.data.code}),b=b.data.map(d=>({code:d.area_code,name:d.area_name}))):o===2?(b=await $e({area_code:c.data.code}),b=b.data.map(d=>({code:d.street_code,name:d.street_name}))):o===3?(b=await Ve({street_code:c.data.code}),b=b.data.map(d=>({code:d.village_code,name:d.village_name}))):o===4&&(b=await we({village_code:c.data.code}),b=b.data.map(d=>({code:d.id,name:d.brigade_name,leaf:!0}))),n(b)},K={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:J},g=async()=>{l.value.city=f.value[0],l.value.area=f.value[1],l.value.street=f.value[2],l.value.village=f.value[3],l.value.brigade=f.value[4],l.value.phone||(l.value.phone=t.value.account),l.value.real_name||(l.value.real_name=t.value.real_name||t.value.nickname),Be({...l.value,uid:t.value.id}).then(c=>{j.success("编辑成功"),z.value=!0})},E=()=>{f.value=JSON.parse(JSON.stringify(x.value)),z.value=!0},z=_(!0);return ce(()=>{P.on("set-user-detail",c=>{t.value=c,Pe({id:c.id}).then(({data:n})=>{t.value=Object.assign(c,n),console.log(t.value)}),B()})}),ve(()=>{P.off("set-user-detail")}),(c,n)=>{var ae,m,v;const o=$("el-avatar"),b=$("el-tag"),d=$("el-button"),M=$("el-option"),X=$("el-select"),ee=$("el-cascader"),oe=$("el-empty");return s(),V("div",qt,[t.value.id?(s(),V("div",Tt,[e("div",Jt,[Kt,e("div",Mt,[e("div",Gt,[Wt,e("div",Ht,"¥"+k(t.value.now_money),1)]),e("div",Qt,[Xt,e("div",Yt,"¥"+k(t.value.purchase_funds),1)]),e("div",Zt,[el,e("div",tl,"¥"+k((ae=t.value.return_money)==null?void 0:ae.toFixed(2)),1)]),e("div",ll,[al,e("div",sl,[u(o,{style:{width:"4rem",height:"4rem"},src:t.value.avatar},null,8,["src"])])]),e("div",ol,[il,e("div",nl,"¥"+k((m=t.value.get_frozen)==null?void 0:m.toFixed(2)),1)]),e("div",dl,[ul,e("div",rl,"¥"+k((v=t.value.amount_frozen)==null?void 0:v.toFixed(2)),1)]),e("div",cl,[vl,e("div",_l,k(t.value.id),1)]),e("div",pl,[fl,e("div",ml,k(t.value.nickname),1)]),e("div",yl,[hl,e("div",gl,k(t.value.mobile),1)]),e("div",bl,[kl,e("div",$l,k(t.value.account),1)]),e("div",Vl,[wl,e("div",Cl,k(t.value.real_name),1)]),e("div",xl,[Sl,e("div",Ul,k(t.value.create_time),1)]),e("div",Al,[Ll,e("div",zl,[S.value==!1?(s(),V(T,{key:0},[t.value.user_ship!=1?(s(),R(b,{key:0,type:"primary",size:"large"},{default:i(()=>[h(k(t.value.user_ship_name),1)]),_:1})):(s(),R(b,{key:1,type:"success",size:"large"},{default:i(()=>[h(k(t.value.user_ship_name),1)]),_:1})),t.value.user_ship!=1?(s(),R(d,{key:2,type:"primary",style:{"margin-left":"1rem"},onClick:n[0]||(n[0]=a=>S.value=!0)},{default:i(()=>[h("修改")]),_:1})):G("",!0)],64)):(s(),V(T,{key:1},[u(X,{modelValue:t.value.user_ship,"onUpdate:modelValue":n[1]||(n[1]=a=>t.value.user_ship=a),placeholder:"请选择用户类型",style:{width:"10rem"}},{default:i(()=>[(s(!0),V(T,null,te(I.value,a=>(s(),R(M,{key:a.id,label:a.title,value:a.id,disabled:a.id==1},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),u(d,{type:"primary",style:{"margin-left":"1rem"},onClick:D},{default:i(()=>[h("确认")]),_:1}),u(d,{style:{"margin-left":"1rem"},onClick:L},{default:i(()=>[h("取消")]),_:1})],64))])]),t.value.user_ship==1?(s(),V("div",Dl,[Fl,e("div",Rl,[N.value==!1?(s(),V(T,{key:0},[t.value.label_name?(s(),R(b,{key:0,type:"primary",size:"large"},{default:i(()=>[h(k(t.value.label_name),1)]),_:1})):G("",!0),t.value.label_name?(s(),R(d,{key:1,type:"primary",style:{"margin-left":"1rem"},onClick:n[2]||(n[2]=a=>N.value=!0)},{default:i(()=>[h("修改")]),_:1})):(s(),R(d,{key:2,type:"primary",style:{"margin-left":"1rem"},onClick:n[3]||(n[3]=a=>{t.value.label_id="",N.value=!0})},{default:i(()=>[h("添加")]),_:1}))],64)):(s(),V(T,{key:1},[u(X,{modelValue:t.value.label_id,"onUpdate:modelValue":n[4]||(n[4]=a=>t.value.label_id=a),placeholder:"请选择用户类型",style:{width:"10rem"}},{default:i(()=>[(s(!0),V(T,null,te(O.value,a=>(s(),R(M,{key:a.label_id,label:a.label_name,value:a.label_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),u(d,{type:"primary",style:{"margin-left":"1rem"},onClick:F},{default:i(()=>[h("确认")]),_:1}),u(d,{style:{"margin-left":"1rem"},onClick:r},{default:i(()=>[h("取消")]),_:1})],64))])])):G("",!0),e("div",Il,[Pl,(s(),R(ee,{key:t.value.id,style:{flex:"1"},modelValue:f.value,"onUpdate:modelValue":n[5]||(n[5]=a=>f.value=a),options:Q.value,props:K,load:J,class:"w-full",disabled:z.value},null,8,["modelValue","options","disabled"])),z.value?(s(),R(d,{key:0,type:"primary",style:{"margin-left":"1rem"},onClick:n[6]||(n[6]=a=>z.value=!1)},{default:i(()=>[h("修改")]),_:1})):G("",!0),z.value?G("",!0):(s(),R(d,{key:1,type:"primary",style:{"margin-left":"1rem"},onClick:g},{default:i(()=>[h("确认")]),_:1})),z.value?G("",!0):(s(),R(d,{key:2,style:{"margin-left":"1rem"},onClick:E},{default:i(()=>[h("取消")]),_:1}))])]),jl,e("div",El,[e("div",Nl,[e("div",{class:W(["pay-item",{"pay-item-active":y.value.type==1}]),onClick:n[7]||(n[7]=a=>y.value.type=1)},Bl,2),e("div",{class:W(["pay-item",{"pay-item-active":y.value.type==2}]),onClick:n[8]||(n[8]=a=>y.value.type=2)},Tl,2),e("div",{class:W(["pay-item",{"pay-item-active":y.value.type==3}]),onClick:n[9]||(n[9]=a=>y.value.type=3)},Kl,2),e("div",{class:W(["pay-item",{"pay-item-active":y.value.type==0}]),onClick:n[11]||(n[11]=a=>y.value.type=0)},[_e(e("input",{type:"number",class:"input","onUpdate:modelValue":n[10]||(n[10]=a=>y.value.price=a),placeholder:"自定义金额"},null,512),[[De,y.value.price]])],2)]),u(d,{type:"primary",size:"large",class:"pay",onClick:p},{default:i(()=>[h("立即支付")]),_:1})])])])):(s(),V("div",Ml,[u(oe)])),u(Bt,{ref_key:"payRef",ref:U,onPaySuccess:C},null,512)])}}},Wl=ue(Gl,[["__scopeId","data-v-3f469190"]]),Hl={class:"my-card"},aa={__name:"index",setup(w){return(t,y)=>(s(),V("div",Hl,[u(_t,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),u(Te),u(Wl,{ref:"detailRef"},null,512)]))}};export{aa as default}; diff --git a/build/assets/index-BMKMLBt4.js b/build/assets/index-BMKMLBt4.js deleted file mode 100644 index a8ca4f7..0000000 --- a/build/assets/index-BMKMLBt4.js +++ /dev/null @@ -1,27 +0,0 @@ -import{c as Wp,a as Bp,b as Ho,o as Up}from"./store-BHLkswxT.js";import{_ as ot,r as b,o as Ft,m as ee,a as Wt,b as un,c as F,d as We,w as dn,e as v,f as B,g as on,t as D,n as su,E as Pr,u as Fr,h as Ot,i as zo,j as ou,k as X,F as Pt,l as $t,p as le,q as lu,s as fu,v as Tt,x as Mp,y as Tr,z as Or,A as Dp,B as Np,C as Kp}from"./index-B8EEu-LB.js";import{u as Gp}from"./user-H5zoLVp6.js";import"./moment-Cl4UOzQZ.js";import{p as Go}from"./padding-CBqAITKo.js";import"./axiosAPI-B5dawX3v.js";import{m as uu,s as Hp}from"./shop-Cwb0_dzb.js";import{p as zp}from"./pay-DJzT1N1_.js";/* empty css */const kp={class:"price"},qp={class:"flex"},Zp={style:{margin:"0.625rem","padding-bottom":"40px"}},Yp={style:{color:"#f5222d","font-weight":"bold","margin-left":"1rem"}},Vp={class:"dialog-footer"},Xp={__name:"price",emits:["changeAllPrice"],setup(N,{expose:yn,emit:o}){const T=b(!1),k=b(null),en=b(0),x=(V=!0,y=0)=>{q.value.nowPrice="",q.value.percentage="",T.value=V,en.value=y,su(()=>{setTimeout(()=>{var ln;(ln=k.value)==null||ln.focus()},150)})},q=b({nowPrice:"",percentage:""}),an=V=>{q.value.percentage=(V/en.value*100).toFixed(2)},cn=V=>{q.value.nowPrice=(en.value*V/100).toFixed(2)},j=o,Y=()=>{if(q.value.percentage>100)return q.value.nowPrice="",q.value.percentage="",Pr.error("改价金额不能大于当前订单金额");if(q.value.nowPrice<=0)return q.value.nowPrice="",q.value.percentage="",Pr.error("金额不能小于0");j("changeAllPrice",q.value.nowPrice)};yn({show:x,dialogVisible:T});const xn=()=>{T.value&&Y()};return Ft(()=>{ee.on("enter",xn)}),Wt(()=>{ee.off("enter",xn)}),(V,y)=>{const ln=un("el-input"),O=un("el-button"),U=un("el-dialog");return F(),We(U,{modelValue:T.value,"onUpdate:modelValue":y[2]||(y[2]=tn=>T.value=tn),title:"订单改价",width:"650"},{footer:dn(()=>[v("div",Vp,[B(O,{class:"ok-btn",type:"primary",onClick:Y},{default:dn(()=>[on(" 确定 (Enter) ")]),_:1})])]),default:dn(()=>[v("div",kp,[v("div",qp,[B(ln,{ref_key:"priceRef",ref:k,style:{flex:"3",margin:"0.625rem",height:"2.5rem"},modelValue:q.value.nowPrice,"onUpdate:modelValue":y[0]||(y[0]=tn=>q.value.nowPrice=tn),type:"number",placeholder:"请输入改价后的价格",onInput:an},{suffix:dn(()=>[on("元")]),_:1},8,["modelValue"]),B(ln,{style:{flex:"2",margin:"0.625rem",height:"2.5rem"},modelValue:q.value.percentage,"onUpdate:modelValue":y[1]||(y[1]=tn=>q.value.percentage=tn),type:"number",placeholder:"请输入比例",onInput:cn},{suffix:dn(()=>[on("%")]),_:1},8,["modelValue"])]),v("div",Zp,[on(" 改价后金额: "),v("span",Yp,"¥"+D(q.value.nowPrice||en.value||" - - "),1)])])]),_:1},8,["modelValue"])}}},Jp=ot(Xp,[["__scopeId","data-v-924edcc0"]]),Qp={class:"check-user-list"},jp={class:"header-input"},ng={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},eg=["onClick"],tg={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},rg={class:"top"},ig={class:"bold"},ug={class:"flex-between"},sg={class:"mr-2"},og={class:"bottom flex",style:{"justify-content":"space-between"}},lg={class:"red"},fg={class:"red"},ag={key:0,class:"load-end"},cg={key:1,class:"load-end"},hg={__name:"userList",emits:["setUser"],setup(N,{expose:yn,emit:o}){Fr();const T=b(!1),k=b({page_no:1,page_size:20,mobile:""}),en=o,x=b(!1),q=b(0),an=b(!1),cn=b([]),j=(V=!1)=>{if(V)k.value.page_no=1;else if(an.value||x.value)return;x.value=!0,Gp(k.value).then(y=>{V?cn.value=y.data.lists:cn.value=[...cn.value,...y.data.lists],y.data.lists.length{an.value=!0,x.value=!1})},Y=(V,y)=>{en("setUser",V),T.value=!1};return yn({open:()=>{T.value=!0,j(!0)}}),(V,y)=>{const ln=un("el-button"),O=un("el-input"),U=un("el-avatar"),tn=un("el-tag"),Z=un("el-dialog"),sn=Ot("loading"),hn=Ot("infinite-scroll");return F(),We(Z,{modelValue:T.value,"onUpdate:modelValue":y[4]||(y[4]=K=>T.value=K),title:"选择用户",width:"800"},{default:dn(()=>[v("div",Qp,[v("div",jp,[B(O,{modelValue:k.value.mobile,"onUpdate:modelValue":y[1]||(y[1]=K=>k.value.mobile=K),placeholder:"搜索手机号/ID",onKeydown:y[2]||(y[2]=zo(K=>j(!0),["enter"])),onClear:y[3]||(y[3]=K=>j(!0)),clearable:""},{append:dn(()=>[B(ln,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:y[0]||(y[0]=K=>j(!0))},{default:dn(()=>[on("搜索")]),_:1})]),_:1},8,["modelValue"])]),ou((F(),X("div",ng,[(F(!0),X(Pt,null,$t(cn.value,(K,A)=>(F(),X("div",{class:"item",key:A,onClick:J=>Y(K,A)},[B(U,{class:"avatar",src:K.avatar},null,8,["src"]),v("div",tg,[v("div",rg,[v("div",null,[v("span",ig,D(K.nickname),1),v("span",null,D(" (ID:"+K.id+")"),1)]),v("div",ug,[v("div",sg,"手机号: "+D(K.mobile||K.account),1),K.user_ship!=1?(F(),We(tn,{key:0,type:"primary"},{default:dn(()=>[on(D(K.user_ship_name),1)]),_:2},1024)):(F(),We(tn,{key:1,type:"success"},{default:dn(()=>[on(D(K.user_ship_name),1)]),_:2},1024))])]),v("div",og,[v("div",null,[on("采购款: "),v("span",lg,D(K.purchase_funds),1)]),v("div",null,[on("礼品券: "),v("span",fg,D(K.get_frozen),1)])])])],8,eg))),128)),an.value?(F(),X("div",ag,"没有更多了")):le("",!0),x.value?(F(),X("div",cg,"加载中...")):le("",!0)])),[[sn,x.value],[hn,j]])])]),_:1},8,["modelValue"])}}},_g=ot(hg,[["__scopeId","data-v-fb07bcea"]]),dg=N=>(lu("data-v-6a6b7337"),N=N(),fu(),N),pg={class:"my-order"},gg={class:"user-nav"},vg={class:"user-info"},mg={key:0,class:"info"},wg={class:"flex-bewteen"},yg={class:"flex-bewteen",style:{"align-items":"flex-end"}},xg={style:{display:"flex"}},Ag={style:{"margin-right":"0.5rem"}},Ig={style:{color:"#f70"}},Cg={style:{color:"#f70"}},Lg={key:1,class:"info",style:{"align-items":"center",display:"flex","justify-content":"space-between"}},Rg={class:"flex-bewteen",style:{width:"100%"}},Sg=dg(()=>v("div",{style:{"font-size":"1.2rem"}},"游客",-1)),bg={class:"header-nav"},Eg={class:"nav-item"},Tg={class:"order-list"},Og={class:"order-item-info"},Pg={class:"order-item-title"},$g={class:"title"},Fg=["onClick"],Wg={class:"order-item-sku"},Bg={class:"order-item-price"},Ug={class:"order-footer"},Mg={class:"order-total"},Dg={class:"price"},Ng={class:"total-item",style:{"flex-shrink":"0"}},Kg={style:{"font-size":"1.4rem"}},Gg={key:0,class:"total-item",style:{"padding-right":"0","line-height":"0.8rem"}},Hg={style:{"font-size":"0.8rem"}},zg={class:"order-btn"},kg={__name:"order",emits:["goPay","editAttr"],setup(N,{expose:yn,emit:o}){const T=b([]),k=b(0),en=b(0),x=b(0);Fr();const q=b(null),an=()=>{let A=[];T.value.map(J=>{A.push(J.id)}),A.length!=0&&j(A)},cn=A=>{T.value=T.value.filter(J=>J.id!=A),j([A])},j=A=>{Wp({id:A}).then(J=>{xn()})},Y=b({}),xn=()=>{k.value=0,en.value=0,x.value=0,Bp().then(A=>{Y.value=A.data.extend,T.value=A.data.lists||[]})};xn();const V=o,y=()=>{V("goPay")},ln=(A,J)=>{Ho({product_id:A.product_id,cart_num:A.cart_num}).then(H=>{xn()}).catch(H=>{var Sn;let Rn=(Sn=H==null?void 0:H.msg)==null?void 0:Sn.match(/\b\d+(\.\d+)?\b/);Rn?A.cart_num=+Rn[0]:A.cart_num=1})},O=A=>{x.value=en.value-A,k.value=+A,su(()=>{setTimeout(()=>{tn(!1)},150)})};b(0);const U=b(null),tn=(A=!0)=>{U.value.show(A,en.value)},Z=b({uid:""}),sn=A=>{Z.value=A,Z.value.uid=A.id};yn({getList:xn,list:T,discounts:x,allPrice:k,userInfo:Z});const hn=()=>{U.value.dialogVisible?U.value.dialogVisible=!1:tn()},K=()=>{T.value.length>0&&an()};return Ft(()=>{ee.on("insert",hn),ee.on("delete",K)}),Wt(()=>{ee.off("insert",hn),ee.off("delete",K)}),(A,J)=>{const H=un("el-avatar"),Rn=un("ArrowRight"),Sn=un("el-icon"),qn=un("el-button"),_e=un("RefreshLeft"),Ut=un("Delete"),Wr=un("el-empty"),Br=un("el-image"),de=un("el-input-number");return F(),X("div",pg,[v("div",gg,[v("div",vg,[B(H,{class:"avatar",src:Z.value.avatar},null,8,["src"]),Z.value.uid?(F(),X("div",mg,[v("div",wg,[v("div",null,"手机号: "+D(Z.value.mobile||Z.value.account),1),B(qn,{type:"primary",link:"",class:"change-user",onClick:J[0]||(J[0]=mn=>q.value.open())},{default:dn(()=>[on("切换用户"),B(Sn,null,{default:dn(()=>[B(Rn)]),_:1})]),_:1})]),v("div",yg,[v("div",xg,[v("div",Ag,[on("采购款: "),v("span",Ig,D(Z.value.purchase_funds),1)]),v("div",null,[on("礼品券: "),v("span",Cg,D(Z.value.get_frozen),1)])]),B(qn,{link:"",onClick:J[1]||(J[1]=mn=>Z.value.uid="")},{default:dn(()=>[on("重置"),B(Sn,null,{default:dn(()=>[B(_e)]),_:1})]),_:1})])])):(F(),X("div",Lg,[v("div",Rg,[Sg,B(qn,{type:"primary",link:"",class:"change-user",onClick:J[2]||(J[2]=mn=>q.value.open())},{default:dn(()=>[on("切换用户"),B(Sn,null,{default:dn(()=>[B(Rn)]),_:1})]),_:1})])]))]),B(_g,{ref_key:"userListRef",ref:q,onSetUser:sn},null,512)]),v("div",bg,[v("div",Eg,[on(" 已选购 "),v("span",null,D(T.value.length),1),on(" 款 ")]),v("div",{class:"nav-item-clear",onClick:an},[B(Sn,null,{default:dn(()=>[B(Ut)]),_:1}),on("清空 (Delete) ")])]),v("div",Tg,[T.value.length==0?(F(),We(Wr,{key:0,description:"请点击右侧添加商品"})):(F(!0),X(Pt,{key:1},$t(T.value,(mn,Ur)=>(F(),X("div",{class:"order-item",key:Ur},[B(Br,{loading:"lazy",class:"order-item-img",src:mn.image},null,8,["src"]),v("div",Og,[v("div",Pg,[v("div",$g,D(mn.store_name),1),v("div",{class:"delete",onClick:Le=>cn(mn.id)},"删除",8,Fg)]),v("div",Wg,[v("span",null,D(mn.unit_name),1)]),v("div",Bg,[v("div",null,[on(" ¥"),v("span",null,D(mn.price),1)]),v("div",null,[B(de,{modelValue:mn.cart_num,"onUpdate:modelValue":Le=>mn.cart_num=Le,min:+mn.batch>0?+mn.batch:1,step:1,"step-strictly":"",onChange:Le=>ln(mn)},null,8,["modelValue","onUpdate:modelValue","min","onChange"])])])])]))),128))]),v("div",Ug,[v("div",Mg,[v("div",Dg,[v("div",Ng,[on(" 合计: "),v("span",null,[on("¥"),v("span",Kg,D(Y.value.pay_price||"0.00"),1)])]),Y.value.msg?(F(),X("div",Gg,[v("span",Hg,D(Y.value.msg),1)])):le("",!0)])]),v("div",zg,[B(qn,{class:"btn",type:"primary",onClick:y,disabled:T.value.length==0},{default:dn(()=>[on(D("立即结账 (F9)"))]),_:1},8,["disabled"])])]),B(Jp,{ref_key:"priceRef",ref:U,onChangeAllPrice:O},null,512)])}}},qg=ot(kg,[["__scopeId","data-v-6a6b7337"]]);var $r={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */$r.exports;(function(N,yn){(function(){var o,T="4.17.21",k=200,en="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",x="Expected a function",q="Invalid `variable` option passed into `_.template`",an="__lodash_hash_undefined__",cn=500,j="__lodash_placeholder__",Y=1,xn=2,V=4,y=1,ln=2,O=1,U=2,tn=4,Z=8,sn=16,hn=32,K=64,A=128,J=256,H=512,Rn=30,Sn="...",qn=800,_e=16,Ut=1,Wr=2,Br=3,de=1/0,mn=9007199254740991,Ur=17976931348623157e292,Le=NaN,fe=4294967295,qo=fe-1,Zo=fe>>>1,Yo=[["ary",A],["bind",O],["bindKey",U],["curry",Z],["curryRight",sn],["flip",H],["partial",hn],["partialRight",K],["rearg",J]],ke="[object Arguments]",Mt="[object Array]",Vo="[object AsyncFunction]",lt="[object Boolean]",ft="[object Date]",Xo="[object DOMException]",Dt="[object Error]",Nt="[object Function]",au="[object GeneratorFunction]",te="[object Map]",at="[object Number]",Jo="[object Null]",pe="[object Object]",cu="[object Promise]",Qo="[object Proxy]",ct="[object RegExp]",re="[object Set]",ht="[object String]",Kt="[object Symbol]",jo="[object Undefined]",_t="[object WeakMap]",nl="[object WeakSet]",dt="[object ArrayBuffer]",qe="[object DataView]",Mr="[object Float32Array]",Dr="[object Float64Array]",Nr="[object Int8Array]",Kr="[object Int16Array]",Gr="[object Int32Array]",Hr="[object Uint8Array]",zr="[object Uint8ClampedArray]",kr="[object Uint16Array]",qr="[object Uint32Array]",el=/\b__p \+= '';/g,tl=/\b(__p \+=) '' \+/g,rl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hu=/&(?:amp|lt|gt|quot|#39);/g,_u=/[&<>"']/g,il=RegExp(hu.source),ul=RegExp(_u.source),sl=/<%-([\s\S]+?)%>/g,ol=/<%([\s\S]+?)%>/g,du=/<%=([\s\S]+?)%>/g,ll=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fl=/^\w*$/,al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/[\\^$.*+?()[\]{}|]/g,cl=RegExp(Zr.source),Yr=/^\s+/,hl=/\s/,_l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,dl=/\{\n\/\* \[wrapped with (.+)\] \*/,pl=/,? & /,gl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vl=/[()=,{}\[\]\/\s]/,ml=/\\(\\)?/g,wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pu=/\w*$/,yl=/^[-+]0x[0-9a-f]+$/i,xl=/^0b[01]+$/i,Al=/^\[object .+?Constructor\]$/,Il=/^0o[0-7]+$/i,Cl=/^(?:0|[1-9]\d*)$/,Ll=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gt=/($^)/,Rl=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",Sl="\\u0300-\\u036f",bl="\\ufe20-\\ufe2f",El="\\u20d0-\\u20ff",gu=Sl+bl+El,vu="\\u2700-\\u27bf",mu="a-z\\xdf-\\xf6\\xf8-\\xff",Tl="\\xac\\xb1\\xd7\\xf7",Ol="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pl="\\u2000-\\u206f",$l=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wu="A-Z\\xc0-\\xd6\\xd8-\\xde",yu="\\ufe0e\\ufe0f",xu=Tl+Ol+Pl+$l,Vr="['’]",Fl="["+Ht+"]",Au="["+xu+"]",zt="["+gu+"]",Iu="\\d+",Wl="["+vu+"]",Cu="["+mu+"]",Lu="[^"+Ht+xu+Iu+vu+mu+wu+"]",Xr="\\ud83c[\\udffb-\\udfff]",Bl="(?:"+zt+"|"+Xr+")",Ru="[^"+Ht+"]",Jr="(?:\\ud83c[\\udde6-\\uddff]){2}",Qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ze="["+wu+"]",Su="\\u200d",bu="(?:"+Cu+"|"+Lu+")",Ul="(?:"+Ze+"|"+Lu+")",Eu="(?:"+Vr+"(?:d|ll|m|re|s|t|ve))?",Tu="(?:"+Vr+"(?:D|LL|M|RE|S|T|VE))?",Ou=Bl+"?",Pu="["+yu+"]?",Ml="(?:"+Su+"(?:"+[Ru,Jr,Qr].join("|")+")"+Pu+Ou+")*",Dl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$u=Pu+Ou+Ml,Kl="(?:"+[Wl,Jr,Qr].join("|")+")"+$u,Gl="(?:"+[Ru+zt+"?",zt,Jr,Qr,Fl].join("|")+")",Hl=RegExp(Vr,"g"),zl=RegExp(zt,"g"),jr=RegExp(Xr+"(?="+Xr+")|"+Gl+$u,"g"),kl=RegExp([Ze+"?"+Cu+"+"+Eu+"(?="+[Au,Ze,"$"].join("|")+")",Ul+"+"+Tu+"(?="+[Au,Ze+bu,"$"].join("|")+")",Ze+"?"+bu+"+"+Eu,Ze+"+"+Tu,Nl,Dl,Iu,Kl].join("|"),"g"),ql=RegExp("["+Su+Ht+gu+yu+"]"),Zl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vl=-1,pn={};pn[Mr]=pn[Dr]=pn[Nr]=pn[Kr]=pn[Gr]=pn[Hr]=pn[zr]=pn[kr]=pn[qr]=!0,pn[ke]=pn[Mt]=pn[dt]=pn[lt]=pn[qe]=pn[ft]=pn[Dt]=pn[Nt]=pn[te]=pn[at]=pn[pe]=pn[ct]=pn[re]=pn[ht]=pn[_t]=!1;var _n={};_n[ke]=_n[Mt]=_n[dt]=_n[qe]=_n[lt]=_n[ft]=_n[Mr]=_n[Dr]=_n[Nr]=_n[Kr]=_n[Gr]=_n[te]=_n[at]=_n[pe]=_n[ct]=_n[re]=_n[ht]=_n[Kt]=_n[Hr]=_n[zr]=_n[kr]=_n[qr]=!0,_n[Dt]=_n[Nt]=_n[_t]=!1;var Xl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ql={"&":"&","<":"<",">":">",""":'"',"'":"'"},jl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nf=parseFloat,ef=parseInt,Fu=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,tf=typeof self=="object"&&self&&self.Object===Object&&self,En=Fu||tf||Function("return this")(),ni=yn&&!yn.nodeType&&yn,Be=ni&&!0&&N&&!N.nodeType&&N,Wu=Be&&Be.exports===ni,ei=Wu&&Fu.process,Zn=function(){try{var a=Be&&Be.require&&Be.require("util").types;return a||ei&&ei.binding&&ei.binding("util")}catch{}}(),Bu=Zn&&Zn.isArrayBuffer,Uu=Zn&&Zn.isDate,Mu=Zn&&Zn.isMap,Du=Zn&&Zn.isRegExp,Nu=Zn&&Zn.isSet,Ku=Zn&&Zn.isTypedArray;function Nn(a,_,h){switch(h.length){case 0:return a.call(_);case 1:return a.call(_,h[0]);case 2:return a.call(_,h[0],h[1]);case 3:return a.call(_,h[0],h[1],h[2])}return a.apply(_,h)}function rf(a,_,h,w){for(var S=-1,Q=a==null?0:a.length;++S-1}function ti(a,_,h){for(var w=-1,S=a==null?0:a.length;++w-1;);return h}function Vu(a,_){for(var h=a.length;h--&&Ye(_,a[h],0)>-1;);return h}function _f(a,_){for(var h=a.length,w=0;h--;)a[h]===_&&++w;return w}var df=si(Xl),pf=si(Jl);function gf(a){return"\\"+jl[a]}function vf(a,_){return a==null?o:a[_]}function Ve(a){return ql.test(a)}function mf(a){return Zl.test(a)}function wf(a){for(var _,h=[];!(_=a.next()).done;)h.push(_.value);return h}function ai(a){var _=-1,h=Array(a.size);return a.forEach(function(w,S){h[++_]=[S,w]}),h}function Xu(a,_){return function(h){return a(_(h))}}function be(a,_){for(var h=-1,w=a.length,S=0,Q=[];++h-1}function sa(n,e){var t=this.__data__,r=lr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ge.prototype.clear=ta,ge.prototype.delete=ra,ge.prototype.get=ia,ge.prototype.has=ua,ge.prototype.set=sa;function ve(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Jn(n,e,t,r,i,s){var l,f=e&Y,c=e&xn,d=e&V;if(t&&(l=i?t(n,r,i,s):t(n)),l!==o)return l;if(!vn(n))return n;var p=E(n);if(p){if(l=ac(n),!f)return Bn(n,l)}else{var g=Pn(n),m=g==Nt||g==au;if(Fe(n))return Ps(n,f);if(g==pe||g==ke||m&&!i){if(l=c||m?{}:Js(n),!f)return c?ja(n,Aa(l,n)):Qa(n,ls(l,n))}else{if(!_n[g])return i?n:{};l=cc(n,g,f)}}s||(s=new ue);var I=s.get(n);if(I)return I;s.set(n,l),So(n)?n.forEach(function(R){l.add(Jn(R,e,t,R,n,s))}):Lo(n)&&n.forEach(function(R,M){l.set(M,Jn(R,e,t,M,n,s))});var L=d?c?Bi:Wi:c?Mn:bn,$=p?o:L(n);return Yn($||n,function(R,M){$&&(M=R,R=n[M]),xt(l,M,Jn(R,e,t,M,n,s))}),l}function Ia(n){var e=bn(n);return function(t){return fs(t,n,e)}}function fs(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var i=t[r],s=e[i],l=n[i];if(l===o&&!(i in n)||!s(l))return!1}return!0}function as(n,e,t){if(typeof n!="function")throw new Vn(x);return bt(function(){n.apply(o,t)},e)}function At(n,e,t,r){var i=-1,s=kt,l=!0,f=n.length,c=[],d=e.length;if(!f)return c;t&&(e=gn(e,Kn(t))),r?(s=ti,l=!1):e.length>=k&&(s=pt,l=!1,e=new De(e));n:for(;++ii?0:i+t),r=r===o||r>i?i:P(r),r<0&&(r+=i),r=t>r?0:Eo(r);t0&&t(f)?e>1?Tn(f,e-1,t,r,i):Se(i,f):r||(i[i.length]=f)}return i}var vi=Ms(),_s=Ms(!0);function ae(n,e){return n&&vi(n,e,bn)}function mi(n,e){return n&&_s(n,e,bn)}function ar(n,e){return Re(e,function(t){return Ae(n[t])})}function Ke(n,e){e=Pe(e,n);for(var t=0,r=e.length;n!=null&&te}function Ra(n,e){return n!=null&&rn.call(n,e)}function Sa(n,e){return n!=null&&e in fn(n)}function ba(n,e,t){return n>=On(e,t)&&n=120&&p.length>=120)?new De(l&&p):o}p=n[0];var g=-1,m=f[0];n:for(;++g-1;)f!==n&&er.call(f,c,1),er.call(n,c,1);return n}function Cs(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==s){var s=i;xe(i)?er.call(n,i,1):bi(n,i)}}return n}function Li(n,e){return n+ir(is()*(e-n+1))}function Ka(n,e,t,r){for(var i=-1,s=Ln(rr((e-n)/(t||1)),0),l=h(s);s--;)l[r?s:++i]=n,n+=t;return l}function Ri(n,e){var t="";if(!n||e<1||e>mn)return t;do e%2&&(t+=n),e=ir(e/2),e&&(n+=n);while(e);return t}function W(n,e){return Hi(no(n,e,Dn),n+"")}function Ga(n){return os(st(n))}function Ha(n,e){var t=st(n);return xr(t,Ne(e,0,t.length))}function Lt(n,e,t,r){if(!vn(n))return n;e=Pe(e,n);for(var i=-1,s=e.length,l=s-1,f=n;f!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=h(i);++r>>1,l=n[s];l!==null&&!Hn(l)&&(t?l<=e:l=k){var d=e?null:rc(n);if(d)return Zt(d);l=!1,i=pt,c=new De}else c=e?[]:f;n:for(;++r=r?n:Qn(n,e,t)}var Os=Ff||function(n){return En.clearTimeout(n)};function Ps(n,e){if(e)return n.slice();var t=n.length,r=ju?ju(t):new n.constructor(t);return n.copy(r),r}function Pi(n){var e=new n.constructor(n.byteLength);return new jt(e).set(new jt(n)),e}function Ya(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Va(n){var e=new n.constructor(n.source,pu.exec(n));return e.lastIndex=n.lastIndex,e}function Xa(n){return yt?fn(yt.call(n)):{}}function $s(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function Fs(n,e){if(n!==e){var t=n!==o,r=n===null,i=n===n,s=Hn(n),l=e!==o,f=e===null,c=e===e,d=Hn(e);if(!f&&!d&&!s&&n>e||s&&l&&c&&!f&&!d||r&&l&&c||!t&&c||!i)return 1;if(!r&&!s&&!d&&n=f)return c;var d=t[r];return c*(d=="desc"?-1:1)}}return n.index-e.index}function Ws(n,e,t,r){for(var i=-1,s=n.length,l=t.length,f=-1,c=e.length,d=Ln(s-l,0),p=h(c+d),g=!r;++f1?t[i-1]:o,l=i>2?t[2]:o;for(s=n.length>3&&typeof s=="function"?(i--,s):o,l&&Fn(t[0],t[1],l)&&(s=i<3?o:s,i=1),e=fn(e);++r-1?i[s?e[l]:l]:o}}function Ks(n){return ye(function(e){var t=e.length,r=t,i=Xn.prototype.thru;for(n&&e.reverse();r--;){var s=e[r];if(typeof s!="function")throw new Vn(x);if(i&&!l&&wr(s)=="wrapper")var l=new Xn([],!0)}for(r=l?r:t;++r1&&z.reverse(),p&&cf))return!1;var d=s.get(n),p=s.get(e);if(d&&p)return d==e&&p==n;var g=-1,m=!0,I=t&ln?new De:o;for(s.set(n,e),s.set(e,n);++g1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(_l,`{ -/* [wrapped with `+e+`] */ -`)}function _c(n){return E(n)||ze(n)||!!(ts&&n&&n[ts])}function xe(n,e){var t=typeof n;return e=e??mn,!!e&&(t=="number"||t!="symbol"&&Cl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=qn)return arguments[0]}else e=0;return n.apply(o,arguments)}}function xr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t1?n[e-1]:o;return t=typeof t=="function"?(n.pop(),t):o,ho(n,t)});function _o(n){var e=u(n);return e.__chain__=!0,e}function Ch(n,e){return e(n),n}function Ar(n,e){return e(n)}var Lh=ye(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(s){return gi(s,n)};return e>1||this.__actions__.length||!(r instanceof G)||!xe(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Ar,args:[i],thisArg:o}),new Xn(r,this.__chain__).thru(function(s){return e&&!s.length&&s.push(o),s}))});function Rh(){return _o(this)}function Sh(){return new Xn(this.value(),this.__chain__)}function bh(){this.__values__===o&&(this.__values__=bo(this.value()));var n=this.__index__>=this.__values__.length,e=n?o:this.__values__[this.__index__++];return{done:n,value:e}}function Eh(){return this}function Th(n){for(var e,t=this;t instanceof or;){var r=so(t);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Oh(){var n=this.__wrapped__;if(n instanceof G){var e=n;return this.__actions__.length&&(e=new G(this)),e=e.reverse(),e.__actions__.push({func:Ar,args:[zi],thisArg:o}),new Xn(e,this.__chain__)}return this.thru(zi)}function Ph(){return Es(this.__wrapped__,this.__actions__)}var $h=dr(function(n,e,t){rn.call(n,t)?++n[t]:me(n,t,1)});function Fh(n,e,t){var r=E(n)?Gu:Ca;return t&&Fn(n,e,t)&&(e=o),r(n,C(e,3))}function Wh(n,e){var t=E(n)?Re:hs;return t(n,C(e,3))}var Bh=Ns(oo),Uh=Ns(lo);function Mh(n,e){return Tn(Ir(n,e),1)}function Dh(n,e){return Tn(Ir(n,e),de)}function Nh(n,e,t){return t=t===o?1:P(t),Tn(Ir(n,e),t)}function po(n,e){var t=E(n)?Yn:Te;return t(n,C(e,3))}function go(n,e){var t=E(n)?uf:cs;return t(n,C(e,3))}var Kh=dr(function(n,e,t){rn.call(n,t)?n[t].push(e):me(n,t,[e])});function Gh(n,e,t,r){n=Un(n)?n:st(n),t=t&&!r?P(t):0;var i=n.length;return t<0&&(t=Ln(i+t,0)),br(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Ye(n,e,t)>-1}var Hh=W(function(n,e,t){var r=-1,i=typeof e=="function",s=Un(n)?h(n.length):[];return Te(n,function(l){s[++r]=i?Nn(e,l,t):It(l,e,t)}),s}),zh=dr(function(n,e,t){me(n,t,e)});function Ir(n,e){var t=E(n)?gn:ms;return t(n,C(e,3))}function kh(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?o:t,E(t)||(t=t==null?[]:[t]),As(n,e,t))}var qh=dr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Zh(n,e,t){var r=E(n)?ri:qu,i=arguments.length<3;return r(n,C(e,4),t,i,Te)}function Yh(n,e,t){var r=E(n)?sf:qu,i=arguments.length<3;return r(n,C(e,4),t,i,cs)}function Vh(n,e){var t=E(n)?Re:hs;return t(n,Rr(C(e,3)))}function Xh(n){var e=E(n)?os:Ga;return e(n)}function Jh(n,e,t){(t?Fn(n,e,t):e===o)?e=1:e=P(e);var r=E(n)?wa:Ha;return r(n,e)}function Qh(n){var e=E(n)?ya:ka;return e(n)}function jh(n){if(n==null)return 0;if(Un(n))return br(n)?Xe(n):n.length;var e=Pn(n);return e==te||e==re?n.size:Ai(n).length}function n_(n,e,t){var r=E(n)?ii:qa;return t&&Fn(n,e,t)&&(e=o),r(n,C(e,3))}var e_=W(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Fn(n,e[0],e[1])?e=[]:t>2&&Fn(e[0],e[1],e[2])&&(e=[e[0]]),As(n,Tn(e,1),[])}),Cr=Wf||function(){return En.Date.now()};function t_(n,e){if(typeof e!="function")throw new Vn(x);return n=P(n),function(){if(--n<1)return e.apply(this,arguments)}}function vo(n,e,t){return e=t?o:e,e=n&&e==null?n.length:e,we(n,A,o,o,o,o,e)}function mo(n,e){var t;if(typeof e!="function")throw new Vn(x);return n=P(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=o),t}}var qi=W(function(n,e,t){var r=O;if(t.length){var i=be(t,it(qi));r|=hn}return we(n,r,e,t,i)}),wo=W(function(n,e,t){var r=O|U;if(t.length){var i=be(t,it(wo));r|=hn}return we(e,r,n,t,i)});function yo(n,e,t){e=t?o:e;var r=we(n,Z,o,o,o,o,o,e);return r.placeholder=yo.placeholder,r}function xo(n,e,t){e=t?o:e;var r=we(n,sn,o,o,o,o,o,e);return r.placeholder=xo.placeholder,r}function Ao(n,e,t){var r,i,s,l,f,c,d=0,p=!1,g=!1,m=!0;if(typeof n!="function")throw new Vn(x);e=ne(e)||0,vn(t)&&(p=!!t.leading,g="maxWait"in t,s=g?Ln(ne(t.maxWait)||0,e):s,m="trailing"in t?!!t.trailing:m);function I(In){var oe=r,Ce=i;return r=i=o,d=In,l=n.apply(Ce,oe),l}function L(In){return d=In,f=bt(M,e),p?I(In):l}function $(In){var oe=In-c,Ce=In-d,Ko=e-oe;return g?On(Ko,s-Ce):Ko}function R(In){var oe=In-c,Ce=In-d;return c===o||oe>=e||oe<0||g&&Ce>=s}function M(){var In=Cr();if(R(In))return z(In);f=bt(M,$(In))}function z(In){return f=o,m&&r?I(In):(r=i=o,l)}function zn(){f!==o&&Os(f),d=0,r=c=i=f=o}function Wn(){return f===o?l:z(Cr())}function kn(){var In=Cr(),oe=R(In);if(r=arguments,i=this,c=In,oe){if(f===o)return L(c);if(g)return Os(f),f=bt(M,e),I(c)}return f===o&&(f=bt(M,e)),l}return kn.cancel=zn,kn.flush=Wn,kn}var r_=W(function(n,e){return as(n,1,e)}),i_=W(function(n,e,t){return as(n,ne(e)||0,t)});function u_(n){return we(n,H)}function Lr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Vn(x);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var l=n.apply(this,r);return t.cache=s.set(i,l)||s,l};return t.cache=new(Lr.Cache||ve),t}Lr.Cache=ve;function Rr(n){if(typeof n!="function")throw new Vn(x);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function s_(n){return mo(2,n)}var o_=Za(function(n,e){e=e.length==1&&E(e[0])?gn(e[0],Kn(C())):gn(Tn(e,1),Kn(C()));var t=e.length;return W(function(r){for(var i=-1,s=On(r.length,t);++i=e}),ze=ps(function(){return arguments}())?ps:function(n){return wn(n)&&rn.call(n,"callee")&&!es.call(n,"callee")},E=h.isArray,A_=Bu?Kn(Bu):Ta;function Un(n){return n!=null&&Sr(n.length)&&!Ae(n)}function An(n){return wn(n)&&Un(n)}function I_(n){return n===!0||n===!1||wn(n)&&$n(n)==lt}var Fe=Uf||iu,C_=Uu?Kn(Uu):Oa;function L_(n){return wn(n)&&n.nodeType===1&&!Et(n)}function R_(n){if(n==null)return!0;if(Un(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||Fe(n)||ut(n)||ze(n)))return!n.length;var e=Pn(n);if(e==te||e==re)return!n.size;if(St(n))return!Ai(n).length;for(var t in n)if(rn.call(n,t))return!1;return!0}function S_(n,e){return Ct(n,e)}function b_(n,e,t){t=typeof t=="function"?t:o;var r=t?t(n,e):o;return r===o?Ct(n,e,o,t):!!r}function Yi(n){if(!wn(n))return!1;var e=$n(n);return e==Dt||e==Xo||typeof n.message=="string"&&typeof n.name=="string"&&!Et(n)}function E_(n){return typeof n=="number"&&rs(n)}function Ae(n){if(!vn(n))return!1;var e=$n(n);return e==Nt||e==au||e==Vo||e==Qo}function Co(n){return typeof n=="number"&&n==P(n)}function Sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=mn}function vn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function wn(n){return n!=null&&typeof n=="object"}var Lo=Mu?Kn(Mu):$a;function T_(n,e){return n===e||xi(n,e,Mi(e))}function O_(n,e,t){return t=typeof t=="function"?t:o,xi(n,e,Mi(e),t)}function P_(n){return Ro(n)&&n!=+n}function $_(n){if(gc(n))throw new S(en);return gs(n)}function F_(n){return n===null}function W_(n){return n==null}function Ro(n){return typeof n=="number"||wn(n)&&$n(n)==at}function Et(n){if(!wn(n)||$n(n)!=pe)return!1;var e=nr(n);if(e===null)return!0;var t=rn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Xt.call(t)==Of}var Vi=Du?Kn(Du):Fa;function B_(n){return Co(n)&&n>=-mn&&n<=mn}var So=Nu?Kn(Nu):Wa;function br(n){return typeof n=="string"||!E(n)&&wn(n)&&$n(n)==ht}function Hn(n){return typeof n=="symbol"||wn(n)&&$n(n)==Kt}var ut=Ku?Kn(Ku):Ba;function U_(n){return n===o}function M_(n){return wn(n)&&Pn(n)==_t}function D_(n){return wn(n)&&$n(n)==nl}var N_=mr(Ii),K_=mr(function(n,e){return n<=e});function bo(n){if(!n)return[];if(Un(n))return br(n)?ie(n):Bn(n);if(gt&&n[gt])return wf(n[gt]());var e=Pn(n),t=e==te?ai:e==re?Zt:st;return t(n)}function Ie(n){if(!n)return n===0?n:0;if(n=ne(n),n===de||n===-de){var e=n<0?-1:1;return e*Ur}return n===n?n:0}function P(n){var e=Ie(n),t=e%1;return e===e?t?e-t:e:0}function Eo(n){return n?Ne(P(n),0,fe):0}function ne(n){if(typeof n=="number")return n;if(Hn(n))return Le;if(vn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=vn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Zu(n);var t=xl.test(n);return t||Il.test(n)?ef(n.slice(2),t?2:8):yl.test(n)?Le:+n}function To(n){return ce(n,Mn(n))}function G_(n){return n?Ne(P(n),-mn,mn):n===0?n:0}function nn(n){return n==null?"":Gn(n)}var H_=tt(function(n,e){if(St(e)||Un(e)){ce(e,bn(e),n);return}for(var t in e)rn.call(e,t)&&xt(n,t,e[t])}),Oo=tt(function(n,e){ce(e,Mn(e),n)}),Er=tt(function(n,e,t,r){ce(e,Mn(e),n,r)}),z_=tt(function(n,e,t,r){ce(e,bn(e),n,r)}),k_=ye(gi);function q_(n,e){var t=et(n);return e==null?t:ls(t,e)}var Z_=W(function(n,e){n=fn(n);var t=-1,r=e.length,i=r>2?e[2]:o;for(i&&Fn(e[0],e[1],i)&&(r=1);++t1),s}),ce(n,Bi(n),t),r&&(t=Jn(t,Y|xn|V,ic));for(var i=e.length;i--;)bi(t,e[i]);return t});function cd(n,e){return $o(n,Rr(C(e)))}var hd=ye(function(n,e){return n==null?{}:Da(n,e)});function $o(n,e){if(n==null)return{};var t=gn(Bi(n),function(r){return[r]});return e=C(e),Is(n,t,function(r,i){return e(r,i[0])})}function _d(n,e,t){e=Pe(e,n);var r=-1,i=e.length;for(i||(i=1,n=o);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=is();return On(n+i*(e-n+nf("1e-"+((i+"").length-1))),e)}return Li(n,e)}var Cd=rt(function(n,e,t){return e=e.toLowerCase(),n+(t?Bo(e):e)});function Bo(n){return Qi(nn(n).toLowerCase())}function Uo(n){return n=nn(n),n&&n.replace(Ll,df).replace(zl,"")}function Ld(n,e,t){n=nn(n),e=Gn(e);var r=n.length;t=t===o?r:Ne(P(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function Rd(n){return n=nn(n),n&&ul.test(n)?n.replace(_u,pf):n}function Sd(n){return n=nn(n),n&&cl.test(n)?n.replace(Zr,"\\$&"):n}var bd=rt(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Ed=rt(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Td=Ds("toLowerCase");function Od(n,e,t){n=nn(n),e=P(e);var r=e?Xe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return vr(ir(i),t)+n+vr(rr(i),t)}function Pd(n,e,t){n=nn(n),e=P(e);var r=e?Xe(n):0;return e&&r>>0,t?(n=nn(n),n&&(typeof e=="string"||e!=null&&!Vi(e))&&(e=Gn(e),!e&&Ve(n))?$e(ie(n),0,t):n.split(e,t)):[]}var Dd=rt(function(n,e,t){return n+(t?" ":"")+Qi(e)});function Nd(n,e,t){return n=nn(n),t=t==null?0:Ne(P(t),0,n.length),e=Gn(e),n.slice(t,t+e.length)==e}function Kd(n,e,t){var r=u.templateSettings;t&&Fn(n,e,t)&&(e=o),n=nn(n),e=Er({},e,r,qs);var i=Er({},e.imports,r.imports,qs),s=bn(i),l=fi(i,s),f,c,d=0,p=e.interpolate||Gt,g="__p += '",m=ci((e.escape||Gt).source+"|"+p.source+"|"+(p===du?wl:Gt).source+"|"+(e.evaluate||Gt).source+"|$","g"),I="//# sourceURL="+(rn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vl+"]")+` -`;n.replace(m,function(R,M,z,zn,Wn,kn){return z||(z=zn),g+=n.slice(d,kn).replace(Rl,gf),M&&(f=!0,g+=`' + -__e(`+M+`) + -'`),Wn&&(c=!0,g+=`'; -`+Wn+`; -__p += '`),z&&(g+=`' + -((__t = (`+z+`)) == null ? '' : __t) + -'`),d=kn+R.length,R}),g+=`'; -`;var L=rn.call(e,"variable")&&e.variable;if(!L)g=`with (obj) { -`+g+` -} -`;else if(vl.test(L))throw new S(q);g=(c?g.replace(el,""):g).replace(tl,"$1").replace(rl,"$1;"),g="function("+(L||"obj")+`) { -`+(L?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+g+`return __p -}`;var $=Do(function(){return Q(s,I+"return "+g).apply(o,l)});if($.source=g,Yi($))throw $;return $}function Gd(n){return nn(n).toLowerCase()}function Hd(n){return nn(n).toUpperCase()}function zd(n,e,t){if(n=nn(n),n&&(t||e===o))return Zu(n);if(!n||!(e=Gn(e)))return n;var r=ie(n),i=ie(e),s=Yu(r,i),l=Vu(r,i)+1;return $e(r,s,l).join("")}function kd(n,e,t){if(n=nn(n),n&&(t||e===o))return n.slice(0,Ju(n)+1);if(!n||!(e=Gn(e)))return n;var r=ie(n),i=Vu(r,ie(e))+1;return $e(r,0,i).join("")}function qd(n,e,t){if(n=nn(n),n&&(t||e===o))return n.replace(Yr,"");if(!n||!(e=Gn(e)))return n;var r=ie(n),i=Yu(r,ie(e));return $e(r,i).join("")}function Zd(n,e){var t=Rn,r=Sn;if(vn(e)){var i="separator"in e?e.separator:i;t="length"in e?P(e.length):t,r="omission"in e?Gn(e.omission):r}n=nn(n);var s=n.length;if(Ve(n)){var l=ie(n);s=l.length}if(t>=s)return n;var f=t-Xe(r);if(f<1)return r;var c=l?$e(l,0,f).join(""):n.slice(0,f);if(i===o)return c+r;if(l&&(f+=c.length-f),Vi(i)){if(n.slice(f).search(i)){var d,p=c;for(i.global||(i=ci(i.source,nn(pu.exec(i))+"g")),i.lastIndex=0;d=i.exec(p);)var g=d.index;c=c.slice(0,g===o?f:g)}}else if(n.indexOf(Gn(i),f)!=f){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function Yd(n){return n=nn(n),n&&il.test(n)?n.replace(hu,If):n}var Vd=rt(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Qi=Ds("toUpperCase");function Mo(n,e,t){return n=nn(n),e=t?o:e,e===o?mf(n)?Rf(n):ff(n):n.match(e)||[]}var Do=W(function(n,e){try{return Nn(n,o,e)}catch(t){return Yi(t)?t:new S(t)}}),Xd=ye(function(n,e){return Yn(e,function(t){t=he(t),me(n,t,qi(n[t],n))}),n});function Jd(n){var e=n==null?0:n.length,t=C();return n=e?gn(n,function(r){if(typeof r[1]!="function")throw new Vn(x);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++imn)return[];var t=fe,r=On(n,fe);e=C(e),n-=fe;for(var i=li(r,e);++t0||e<0)?new G(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=P(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},G.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},G.prototype.toArray=function(){return this.take(fe)},ae(G.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var l=this.__wrapped__,f=r?[1]:arguments,c=l instanceof G,d=f[0],p=c||E(l),g=function(M){var z=i.apply(u,Se([M],f));return r&&m?z[0]:z};p&&t&&typeof d=="function"&&d.length!=1&&(c=p=!1);var m=this.__chain__,I=!!this.__actions__.length,L=s&&!m,$=c&&!I;if(!s&&p){l=$?l:new G(this);var R=n.apply(l,f);return R.__actions__.push({func:Ar,args:[g],thisArg:o}),new Xn(R,m)}return L&&$?n.apply(this,f):(R=this.thru(g),L?r?R.value()[0]:R.value():R)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Yt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(E(s)?s:[],i)}return this[t](function(l){return e.apply(E(l)?l:[],i)})}}),ae(G.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";rn.call(nt,r)||(nt[r]=[]),nt[r].push({name:e,func:t})}}),nt[pr(o,U).name]=[{name:"wrapper",func:o}],G.prototype.clone=Yf,G.prototype.reverse=Vf,G.prototype.value=Xf,u.prototype.at=Lh,u.prototype.chain=Rh,u.prototype.commit=Sh,u.prototype.next=bh,u.prototype.plant=Th,u.prototype.reverse=Oh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Ph,u.prototype.first=u.prototype.head,gt&&(u.prototype[gt]=Eh),u},Je=Sf();Be?((Be.exports=Je)._=Je,ni._=Je):En._=Je}).call(Tt)})($r,$r.exports);var Zg=$r.exports;const Yg=Mp(Zg),Bt=N=>(lu("data-v-7d75d07a"),N=N(),fu(),N),Vg={class:"my-order"},Xg=Bt(()=>v("div",{class:"nav-item-label"},"搜索 (Shift)",-1)),Jg={class:"nav-item-input"},Qg={class:"shop-list","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},jg=["onClick"],nv={class:"shop-name"},ev={key:0,class:"shop-price"},tv=Bt(()=>v("span",{class:"unit-name"},"活动价:",-1)),rv={key:0,class:"unit-name"},iv={key:1,class:"shop-price"},uv=Bt(()=>v("span",{class:"unit-name"},"原价: ",-1)),sv={class:"unit-name del"},ov={key:2,class:"shop-price"},lv={class:"unit-name"},fv={key:3,class:"no-stock"},av=Bt(()=>v("div",null,[v("span",null,"暂无"),v("span",null,"库存")],-1)),cv=[av],hv={key:4,class:"no-stock"},_v=Bt(()=>v("div",null,[v("span",null,"平台"),v("span",null,"关闭")],-1)),dv=[_v],pv={key:1,class:"no-data"},gv={__name:"shop",props:{storeList:{type:Array,default:()=>[]},priceKey:{type:Object,default:()=>({})},loading:{type:Boolean,default:()=>!1}},emits:["getStoreList","changeItem","loadMore"],setup(N,{expose:yn,emit:o}){const T=b(null),k=o,en=b(""),x=()=>{k("loadMore",{store_name_code:en.value})},q=y=>{if(y.is_used==0)return Pr.error("该商品已被平台关闭");if(y.stock==0)return Pr.warning("该商品无库存");k("changeItem",y)},an=Yg.throttle(()=>{let y={store_name:en.value};k("getStoreList",y,!0)},300);yn({name:en,inputBlur:()=>{var y;(y=T.value)==null||y.blur()}});const j=b(!1),Y=()=>{j.value=!0},xn=()=>{j.value=!1},V=()=>{var y;(y=T.value)==null||y.focus()};return Ft(()=>{su(()=>{var y;(y=T.value)==null||y.focus(),Y()}),ee.on("shift",V)}),Wt(()=>{ee.off("shift",V)}),(y,ln)=>{const O=un("el-input"),U=un("Search"),tn=un("el-icon"),Z=un("el-button"),sn=un("el-image"),hn=un("el-space"),K=un("el-empty"),A=Ot("loading"),J=Ot("infinite-scroll");return F(),X("div",Vg,[v("div",{class:Or(["header-nav",{"input-focus":j.value}])},[Xg,v("div",Jg,[B(O,{modelValue:en.value,"onUpdate:modelValue":ln[0]||(ln[0]=H=>en.value=H),placeholder:" 搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索",clearable:"",ref_key:"codeRef",ref:T,onFocus:Y,onBlur:xn,onKeyup:zo(Tr(an),["enter"]),onClear:Tr(an)},null,8,["modelValue","onKeyup","onClear"])]),v("div",{class:"nav-item-btn",onClick:ln[1]||(ln[1]=(...H)=>Tr(an)&&Tr(an)(...H))},[B(Z,{class:"btn",type:"primary"},{default:dn(()=>[B(tn,null,{default:dn(()=>[B(U)]),_:1})]),_:1})])],2),ou((F(),X("div",Qg,[N.storeList.length?(F(),We(hn,{key:0,wrap:"",size:14},{default:dn(()=>[(F(!0),X(Pt,null,$t(N.storeList,(H,Rn)=>(F(),X("div",{class:"shop-item",key:Rn,onClick:Sn=>q(H)},[B(sn,{loading:"lazy",src:H.image},null,8,["src"]),v("div",nv,D(H.store_name),1),N.priceKey.off_activity==1?(F(),X("div",ev,[tv,on(" ¥"),v("span",null,D(H[N.priceKey.price]),1),H.unit_name?(F(),X("span",rv,"/"+D(H.unit_name),1)):le("",!0)])):le("",!0),N.priceKey.off_activity==1?(F(),X("div",iv,[uv,on(),v("span",sv,"¥"+D(H[N.priceKey.op_price])+" /"+D(H.unit_name),1)])):(F(),X("div",ov,[on(" ¥"),v("span",null,D(H[N.priceKey.op_price]),1),v("span",lv,"/"+D(H.unit_name),1)])),H.stock==0?(F(),X("div",fv,cv)):le("",!0),H.is_used==0?(F(),X("div",hv,dv)):le("",!0)],8,jg))),128))]),_:1})):le("",!0),N.storeList.length?le("",!0):(F(),X("div",pv,[B(K,{"image-size":200,description:"没有找到对应商品"})]))])),[[A,N.loading],[J,x]])])}}},vv=ot(gv,[["__scopeId","data-v-7d75d07a"]]),ko=N=>(lu("data-v-6c040b11"),N=N(),fu(),N),mv={class:"shop"},wv={class:"shop-info"},yv={class:"shop-info-left"},xv={class:"shop-info-right"},Av={class:"shop-info-right-top"},Iv={key:0,class:"shop-info-right-price"},Cv=ko(()=>v("span",{class:"unit-name"},"活动价:",-1)),Lv={key:0,class:"unit-name"},Rv={key:1,class:"shop-info-right-price"},Sv=ko(()=>v("span",{class:"unit-name"},"原价: ",-1)),bv={class:"unit-name del"},Ev={key:2,class:"shop-info-right-price"},Tv={class:"unit-name"},Ov={class:"shop-sku"},Pv={class:"title"},$v={class:"sku"},Fv={class:"dialog-footer"},Wv={__name:"pupop",props:{priceKey:{type:Object,default:()=>({})}},emits:["changeItem"],setup(N,{expose:yn,emit:o}){const T=b(!1),k=b(null),en=V=>{T.value=V},x=b({}),q=b(!1),an=b("add"),cn=(V,y="add")=>{an.value=y,x.value=JSON.parse(JSON.stringify(V))},j=o,Y=()=>{x.value.cart_num||(x.value.cart_num=x.value.batch>0?x.value.batch:1),j("changeItem",x.value),T.value=!1};yn({show:en,setForm:cn});const xn=()=>{T.value&&Y()};return Ft(()=>{ee.on("enter",xn)}),Wt(()=>{ee.off("enter",xn)}),(V,y)=>{const ln=un("el-image"),O=un("el-input-number"),U=un("el-button"),tn=un("el-dialog"),Z=Ot("loading");return F(),We(tn,{modelValue:T.value,"onUpdate:modelValue":y[1]||(y[1]=sn=>T.value=sn),title:"购买数量",width:"650",onOpened:y[2]||(y[2]=sn=>k.value.focus())},Dp({default:dn(()=>[ou((F(),X("div",mv,[v("div",wv,[v("div",yv,[B(ln,{loading:"lazy",src:x.value.image},null,8,["src"])]),v("div",xv,[v("div",Av,D(x.value.store_name),1),v("div",null,[N.priceKey.off_activity==1?(F(),X("div",Iv,[Cv,on(" ¥"),v("span",null,D(x.value[N.priceKey.price]),1),x.value.unit_name?(F(),X("span",Lv,"/"+D(x.value.unit_name),1)):le("",!0)])):le("",!0),N.priceKey.off_activity==1?(F(),X("div",Rv,[Sv,on(),v("span",bv,"¥"+D(x.value[N.priceKey.op_price])+" /"+D(x.value.unit_name),1)])):(F(),X("div",Ev,[on(" ¥"),v("span",null,D(x.value[N.priceKey.op_price]),1),v("span",Tv,"/"+D(x.value.unit_name),1)]))])])]),v("div",Ov,[v("div",Pv,"购买数量 ( "+D(x.value.unit_name)+" )",1),v("div",$v,[B(O,{ref_key:"inputRef",ref:k,modelValue:x.value.cart_num,"onUpdate:modelValue":y[0]||(y[0]=sn=>x.value.cart_num=sn),placeholder:`请输入数量(默认为${+x.value.batch>0?x.value.batch:"1"})`,min:+x.value.batch>0?+x.value.batch:1,"step-strictly":"",step:1,style:{width:"20rem"},size:"large"},null,8,["modelValue","placeholder","min"])])])])),[[Z,q.value]])]),_:2},[an.value!="add"&&x.value.attr&&x.value.attr.length==1?void 0:{name:"footer",fn:dn(()=>[v("div",Fv,[B(U,{class:"ok-btn",type:"primary",onClick:Y},{default:dn(()=>[on(" 确定 (Enter) ")]),_:1})])]),key:"0"}]),1032,["modelValue"])}}},Bv=ot(Wv,[["__scopeId","data-v-6c040b11"]]),Uv=["onClick","onMousemove"],Mv=["onMousemove"],Dv={class:"title"},Nv={class:"list"},Kv=["onClick"],Gv={__name:"classify",emits:["getStoreList"],setup(N,{emit:yn}){const o=yn,T=b([]),k=b([]),en=b([]),x=b(-1),q=b(-1),an=b(-1),cn=b(-1),j=b(!1),Y=Fr();(()=>{uu({pid:0,page_no:1,page_size:30,level:1,store_id:Y.userInfo.store_id}).then(O=>{T.value=O.data.lists,x.value=-1})})();const V=O=>{uu({pid:O,page_no:1,page_size:30,level:2,store_id:Y.userInfo.store_id}).then(U=>{k.value=U.data.lists})},y=O=>{uu({pid:O,page_no:1,page_size:30,level:3,store_id:Y.userInfo.store_id}).then(U=>{en.value=U.data.lists})},ln=(O=-1,U=1)=>{cn.value=O,j.value=!0;let tn="";console.log(O,U),U==1?(x.value=O,q.value=-1,an.value=-1,O!=-1&&(tn=T.value[O].id),V(tn),o("getStoreList",{top_cate_id:tn,two_cate_id:null},!0)):U==2&&(q.value=O,an.value=-1,O!=-1&&(tn=k.value[O].id),y(tn),o("getStoreList",{two_cate_id:tn},!0))};return(O,U)=>{const tn=un("el-popover");return F(),X("div",{class:"classify",onMouseout:U[2]||(U[2]=Z=>j.value?j.value=!1:j.value=!0)},[v("div",{class:Or(["itemP",{"itemP-active":x.value==-1}]),onClick:U[0]||(U[0]=Z=>ln(-1))},D("全部"),2),(F(!0),X(Pt,null,$t(T.value,(Z,sn)=>(F(),We(tn,{placement:"left",width:"20rem",trigger:"click",key:sn,visible:sn==x.value&&cn.value==sn},{reference:dn(()=>[v("div",{class:Or(["itemP",{"itemP-active":sn==x.value}]),onClick:hn=>ln(sn),onMousemove:hn=>cn.value=sn},D(Z.name),43,Uv)]),default:dn(()=>[v("div",{class:"active-card",onMouseout:U[1]||(U[1]=hn=>cn.value=-1),onMousemove:hn=>cn.value=sn},[v("div",Dv,D(Z.name),1),v("div",Nv,[(F(!0),X(Pt,null,$t(k.value,(hn,K)=>(F(),X("div",{class:Or({"list-active":K==q.value}),link:"",type:"primary",key:hn.id,onClick:A=>ln(K,2)},D(hn.name),11,Kv))),128))])],40,Mv)]),_:2},1032,["visible"]))),128))],32)}}},Hv=ot(Gv,[["__scopeId","data-v-4d5623b0"]]),zv={class:"my-card"},n1={__name:"index",setup(N){const yn=b(null),o=b(null),T=b(null),k=b(null),en=b([]),x=Np({off_activity:"",op_price:"",price:""}),q=Fr(),an=Kp(),cn=b({page_no:1,page_size:30}),j=b(!1),Y=(A={},J=!1)=>{var H;cn.value={...cn.value,...A},J&&(en.value=[],cn.value.page_no=1,xn.value=!1),j.value=!0,Hp({...cn.value,store_id:(H=q.userInfo)==null?void 0:H.store_id}).then(Rn=>{var Sn,qn;j.value=!1;for(let _e in Rn.data.extend)x[_e]=Rn.data.extend[_e];((qn=(Sn=Rn.data)==null?void 0:Sn.lists)==null?void 0:qn.length){xn.value||Y(A)};function y(A){return/^\d+$/.test(A)}const ln=(A,J="")=>{console.log(A,J);let H={product_id:A.product_id,cart_num:A.cart_num};Ho(H).then(Rn=>{o.value.getList()})},O=(A,J)=>{yn.value.setForm(A,"add"),yn.value.show(!0)},U=A=>{yn.value.setForm(A,"edit"),yn.value.show(!0)},tn=b({}),Z=()=>{var H,Rn;let A=o.value.list.map(Sn=>Sn.id),J={cart_id:A,uid:((Rn=(H=o.value)==null?void 0:H.userInfo)==null?void 0:Rn.uid)||""};o.value.discounts>0&&(J.deduction_price=o.value.discounts.toFixed(2),J.pay_type="micropay"),Up(J).then(Sn=>{var qn,_e;tn.value=Sn.data.order,k.value.setForm({data:Sn.data.order,cart_id:A,uid:((_e=(qn=o.value)==null?void 0:qn.userInfo)==null?void 0:_e.uid)||""})})},sn=()=>{Z(),k.value.drawer=!0},hn=(A=null)=>{setTimeout(()=>{o.value.getList()})},K=()=>{an.name=="saleHome"&&(!k.value.drawer&&o.value.list.length>0?sn():k.value.beforeClose())};return Ft(()=>{Y(),ee.on("F9",K)}),Wt(()=>{ee.off("F9",K)}),(A,J)=>(F(),X("div",zv,[B(qg,{ref_key:"orderRef",ref:o,onGoPay:sn,onEditPupop:U},null,512),B(Go),B(vv,{ref_key:"shopRef",ref:T,style:{flex:"1"},storeList:en.value,priceKey:x,loading:j.value,onGetStoreList:Y,onChangeItem:O,onLoadMore:V},null,8,["storeList","priceKey","loading"]),B(Bv,{ref_key:"pupopRef",ref:yn,priceKey:x,onChangeItem:ln},null,8,["priceKey"]),B(Go),B(Hv,{ref:"classifyRef",onGetStoreList:Y},null,512),B(zp,{ref_key:"payRef",ref:k,onPaySuccess:hn},null,512)]))}};export{n1 as default}; diff --git a/build/assets/index-rsJ_f2nJ.js b/build/assets/index-BbprSBiW.js similarity index 96% rename from build/assets/index-rsJ_f2nJ.js rename to build/assets/index-BbprSBiW.js index f8c81ac..f9252e8 100644 --- a/build/assets/index-rsJ_f2nJ.js +++ b/build/assets/index-BbprSBiW.js @@ -1 +1 @@ -import{_ as U,u as I,r as u,o as R,b as n,c as S,k as b,e as v,f as e,w as t,i as m,g as L,q as B,s as C,D as E,E as w}from"./index-B8EEu-LB.js";import{l as K}from"./user-H5zoLVp6.js";const N=l=>(B("data-v-f9ff2ce9"),l=l(),C(),l),M={class:"body"},T={class:"login"},q=N(()=>v("div",{class:"title"},"里海收银系统 - 登录",-1)),D={__name:"index",setup(l){const d=I(),y=E(),k=u(null),p=u(null),s=u({account:"",password:"",terminal:1}),_=()=>{if(!s.value.account)return w({message:"请填写账号",type:"error"});if(!s.value.password)return w({message:"请填写密码",type:"error"});K(s.value).then(a=>{var o;(o=a.data)!=null&&o.token&&(d.setToken(a.data.token),d.setUserInfo(a.data),y.push("/"))}).catch(a=>{})};return R(()=>{}),(a,o)=>{const h=n("User"),f=n("el-icon"),i=n("el-input"),c=n("el-form-item"),x=n("Lock"),V=n("el-button"),g=n("el-form");return S(),b("div",M,[v("div",T,[q,e(g,null,{default:t(()=>[e(c,null,{default:t(()=>[e(i,{ref_key:"accRef",ref:k,modelValue:s.value.account,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value.account=r),placeholder:"请输入账号",onKeydown:o[1]||(o[1]=m(r=>p.value.focus(),["enter"]))},{prefix:t(()=>[e(f,null,{default:t(()=>[e(h)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(i,{ref_key:"pwdRef",ref:p,modelValue:s.value.password,"onUpdate:modelValue":o[2]||(o[2]=r=>s.value.password=r),type:"password",placeholder:"请输入密码","show-password":"",onKeydown:m(_,["enter"])},{prefix:t(()=>[e(f,null,{default:t(()=>[e(x)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(V,{style:{width:"100%"},type:"primary",onClick:_},{default:t(()=>[L("登录")]),_:1})]),_:1})]),_:1})])])}}},z=U(D,[["__scopeId","data-v-f9ff2ce9"]]);export{z as default}; +import{_ as U,u as I,r as u,o as R,b as n,c as S,k as b,e as v,f as e,w as t,i as m,g as L,q as B,s as C,D as E,E as w}from"./index-DslPK7Nc.js";import{l as K}from"./user-jp6MVT4O.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}; diff --git a/build/assets/index-CSaQTX_c.js b/build/assets/index-Bjp8iKWj.js similarity index 98% rename from build/assets/index-CSaQTX_c.js rename to build/assets/index-Bjp8iKWj.js index 1eca7c5..72a2fa3 100644 --- a/build/assets/index-CSaQTX_c.js +++ b/build/assets/index-Bjp8iKWj.js @@ -1 +1 @@ -import{_ as E,u as K,r as n,o as P,m as b,a as j,b as p,h as x,c as o,k as i,e,f as d,w as v,g,i as oe,j as B,F as T,l as F,z as O,t as l,d as R,p as w,q,s as G,D as ae}from"./index-B8EEu-LB.js";import{s as ie,d as le}from"./store-BHLkswxT.js";import{h as A}from"./moment-Cl4UOzQZ.js";/* empty css */import{p as ne}from"./padding-CBqAITKo.js";const H=f=>(q("data-v-42ec4cb4"),f=f(),G(),f),de={class:"my-order"},_e={class:"header-nav"},ce=H(()=>e("div",{class:"nav-item"},l("线上订单"),-1)),re={class:"nav-item-btn"},ue={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},pe=["onClick"],fe={class:"top"},me={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},ge={key:0,class:"shop-name"},ke={class:"right"},$e={class:"money"},be={class:"count"},we={class:"bottom"},De={class:"pay"},Ve={key:0},Ce={key:1},Ye={key:2},xe={key:3},ze={key:4},Se={key:5},Ie={key:1,style:{color:"#ff4a00"}},Me={key:0,class:"load-end"},Ue={key:1,class:"load-end"},Be=H(()=>e("span",null,"您有新订单了, 是否立即刷新",-1)),Le={class:"dialog-footer"},Ne={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f){K(),n([]);const s=n(1),D=u=>{_.value.page_no=1,m.value=!1,c.value=!1,h.value=[],y(!0)};n(null);const k=n(""),z=()=>{_.value.start_time=A(k.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=A(k.value[1]).format("YYYY-MM-DD 23:59:59"),y(!0)},S=u=>u.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:2}),c=n(!1),L=n(0),V=n(0),m=n(!1),h=n([]),y=(u=!1)=>{if(u)_.value.page_no=1;else if(m.value||c.value)return;c.value=!0,s.value==1&&(_.value.paid=null),s.value==2&&(_.value.paid=0),ie(_.value).then(a=>{u?h.value=a.data.lists:h.value=[...h.value,...a.data.lists],_.value.page_no==1&&h.value.length>0&&b.emit("set-sale-order-detail",h.value[0]),a.data.lists.length<_.value.page_size?m.value=!0:_.value.page_no++,V.value=0,L.value=a.data.count,c.value=!1}).catch(a=>{m.value=!0,c.value=!1})},I=(u,a)=>{V.value=a,b.emit("set-sale-order-detail",u)},$=n(!1);return P(()=>{b.on("update-sale-order-detail",u=>{console.log("==="),h.value[V.value].paid=1}),b.on("new_order",()=>{$.value||($.value=!0)})}),j(()=>{b.off("update-sale-order-detail"),b.off("new_order")}),(u,a)=>{const C=p("el-radio-button"),Y=p("el-radio-group"),J=p("el-date-picker"),M=p("el-button"),Q=p("el-input"),W=p("el-image"),X=p("spna"),Z=p("el-dialog"),ee=x("loading"),te=x("infinite-scroll");return o(),i("div",de,[e("div",_e,[ce,e("div",re,[d(Y,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=t=>s.value=t),onChange:D,size:"small"},{default:v(()=>[d(C,{value:1},{default:v(()=>[g("全部")]),_:1}),d(C,{value:2},{default:v(()=>[g("未支付")]),_:1})]),_:1},8,["modelValue"]),d(J,{modelValue:k.value,"onUpdate:modelValue":a[1]||(a[1]=t=>k.value=t),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":S,onChange:z,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",ue,[d(Q,{modelValue:_.value.order_id,"onUpdate:modelValue":a[3]||(a[3]=t=>_.value.order_id=t),placeholder:"请输入订单编号",onKeydown:a[4]||(a[4]=oe(t=>y(!0),["enter"])),onClear:a[5]||(a[5]=t=>y(!0)),clearable:""},{append:v(()=>[d(M,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:a[2]||(a[2]=t=>y(!0))},{default:v(()=>[g("搜索")]),_:1})]),_:1},8,["modelValue"])]),B((o(),i("div",ve,[(o(!0),i(T,null,F(h.value,(t,U)=>(o(),i("div",{class:O(["item",{"item-active":V.value==U}]),key:U,onClick:N=>I(t,U)},[e("div",fe,[e("div",{class:O(["sn","cahier"])},"单号: "+l(t.order_id),1),e("div",me,l(t.pay_time),1)]),e("div",he,[t.product_info?(o(),i("div",ye,[(o(!0),i(T,null,F(t.product_info.slice(0,5),(N,se)=>(o(),R(W,{key:se,src:N.image,class:"shop-img"},null,8,["src"]))),128)),t.product_info.length==1?(o(),i("div",ge,l(t.product_info[0].store_name),1)):w("",!0)])):w("",!0),e("div",ke,[e("div",$e,"¥"+l(t.pay_price),1),e("div",be,"共"+l(t.total_num)+"款商品",1)])]),e("div",we,[e("div",De,[t.paid?(o(),i("div",Ve,[g(l(t.paid_name)+" ",1),t.pay_type_name?(o(),R(X,{key:0},{default:v(()=>[g("("+l(t.pay_type_name)+")",1)]),_:2},1024)):t.pay_type==9?(o(),i("span",Ce,"(微信收款)")):t.pay_type==17?(o(),i("span",Ye,"(现金支付)")):t.pay_type==13?(o(),i("span",xe,"(支付宝收款)")):t.pay_type==3?(o(),i("span",ze,"(余额支付)")):t.pay_type==1?(o(),i("span",Se,"(微信支付)")):w("",!0)])):(o(),i("div",Ie,l(t.paid_name),1))])])],10,pe))),128)),m.value?(o(),i("div",Me,"没有更多了")):w("",!0),c.value?(o(),i("div",Ue,"加载中...")):w("",!0)])),[[ee,c.value],[te,y]]),d(Z,{modelValue:$.value,"onUpdate:modelValue":a[8]||(a[8]=t=>$.value=t),title:"新订单提醒",width:"500"},{footer:v(()=>[e("div",Le,[d(M,{onClick:a[6]||(a[6]=t=>$.value=!1)},{default:v(()=>[g("稍后刷新")]),_:1}),d(M,{type:"primary",onClick:a[7]||(a[7]=t=>{y(!0),$.value=!1})},{default:v(()=>[g(" 立即刷新 ")]),_:1})])]),default:v(()=>[Be]),_:1},8,["modelValue"])])}}},Te=E(Ne,[["__scopeId","data-v-42ec4cb4"]]),r=f=>(q("data-v-bd1f9589"),f=f(),G(),f),Fe={class:"my-order"},Oe={key:0,class:"detail"},Re={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ae=r(()=>e("div",{class:"table-title"},"订单信息",-1)),Ee={class:"table-info"},Ke={class:"info-item"},Pe=r(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Ge=r(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),He={class:"info-item-info"},Je={class:"info-item"},Qe=r(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),We={class:"info-item-info"},Xe={class:"info-item"},Ze=r(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=r(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=r(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},dt=r(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),_t={class:"info-item-info"},ct={class:"info-item"},rt=r(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ut={class:"info-item-info"},vt={key:0},pt={key:1},ft={key:2},mt={key:3},ht={key:4},yt={key:5},gt={key:0,class:"table-title"},kt={key:1,class:"table-info"},$t={class:"info-item"},bt=r(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),wt={class:"info-item-info"},Dt={class:"info-item"},Vt=r(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),Ct={class:"info-item-info"},Yt={class:"info-item"},xt=r(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),zt={class:"info-item-info"},St={style:{"font-size":"0.9rem"}},It={style:{color:"#ff4a00"}},Mt={style:{display:"flex","align-items":"center"}},Ut={style:{"margin-left":"0.5rem"}},Bt=r(()=>e("div",{style:{height:"8rem"}},null,-1)),Lt={key:1},Nt={__name:"detail",setup(f){K(),ae();const s=n({id:""});n([]),n(null);const D=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const k=n({page_no:1,page_size:15,loadend:!1,loading:!1}),z=n([]),S=()=>console.log("触底"),_=()=>{D.value=!0,le({id:s.value.id}).then(c=>{s.value=c.data,setTimeout(()=>{D.value=!1},200)})};return P(()=>{b.on("set-sale-order-detail",c=>{console.log("===",c),s.value=c,k.value.page_no=1,k.value.loadend=!1,k.value.loading=!1,z.value=[],_()})}),j(()=>{b.off("set-sale-order-detail")}),(c,L)=>{var u;const V=p("el-image"),m=p("el-table-column"),h=p("el-table"),y=p("el-empty"),I=x("infinite-scroll"),$=x("loading");return o(),i("div",Fe,[s.value.id?B((o(),i("div",Oe,[B((o(),i("div",Re,[Ae,e("div",Ee,[e("div",Ke,[Pe,e("div",je,l(s.value.order_id),1)]),e("div",qe,[Ge,e("div",He,l(s.value.total_num||0),1)]),e("div",Je,[Qe,e("div",We,"¥"+l(s.value.pay_price),1)]),e("div",Xe,[Ze,e("div",et,l(s.value.pay_time),1)]),e("div",tt,[st,e("div",ot,"¥"+l(s.value.deduction_price),1)]),e("div",at,[it,e("div",lt,"¥"+l(s.value.pay_price),1)]),e("div",nt,[dt,e("div",_t,l(s.value.pay_time),1)]),e("div",ct,[rt,e("div",ut,[s.value.pay_type_name?(o(),i("span",vt,l(s.value.pay_type_name),1)):s.value.pay_type==9?(o(),i("span",pt,"微信收款")):s.value.pay_type==17?(o(),i("span",ft,"现金支付")):s.value.pay_type==13?(o(),i("span",mt,"支付宝收款")):s.value.pay_type==3?(o(),i("span",ht,"余额支付")):s.value.pay_type==1?(o(),i("span",yt,"微信支付")):w("",!0)])])]),s.value.uid?(o(),i("div",gt,"用户信息")):w("",!0),s.value.uid?(o(),i("div",kt,[e("div",$t,[bt,e("div",wt,l(s.value.uid),1)]),e("div",Dt,[Vt,e("div",Ct,l(s.value.nickname),1)]),e("div",Yt,[xt,e("div",zt,l(s.value.mobile),1)])])):w("",!0),e("div",St,[g(" 共计 "),e("span",It,l(((u=s.value.product)==null?void 0:u.length)||" "),1),g(" 款商品 ")]),d(h,{data:s.value.product},{default:v(()=>[d(m,{label:"商品信息"},{default:v(({row:a})=>{var C,Y;return[e("div",Mt,[d(V,{style:{height:"3rem",width:"3rem"},src:(C=a.cart_info)==null?void 0:C.image},null,8,["src"]),e("span",Ut,l((Y=a.cart_info)==null?void 0:Y.name),1)])]}),_:1}),d(m,{prop:"cart_info.price",label:"单价",width:"150"}),d(m,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(m,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Bt])),[[I,S]])])),[[$,D.value]]):(o(),i("div",Lt,[d(y)]))])}}},Tt=E(Nt,[["__scopeId","data-v-bd1f9589"]]),Ft={class:"my-card"},Pt={__name:"index",setup(f){return(s,D)=>(o(),i("div",Ft,[d(Te,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),d(ne),d(Tt,{ref:"detailRef"},null,512)]))}};export{Pt as default}; +import{_ as E,u as K,r as n,o as P,m as b,a as j,b as p,h as x,c as o,k as i,e,f as d,w as v,g,i as oe,j as B,F as T,l as F,z as O,t as l,d as R,p as w,q,s as G,D as ae}from"./index-DslPK7Nc.js";import{s as ie,d as le}from"./store-BUqDvNxu.js";import{h as A}from"./moment-Cl4UOzQZ.js";/* empty css */import{p as ne}from"./padding-CQ0n6974.js";const H=f=>(q("data-v-42ec4cb4"),f=f(),G(),f),de={class:"my-order"},_e={class:"header-nav"},ce=H(()=>e("div",{class:"nav-item"},l("线上订单"),-1)),re={class:"nav-item-btn"},ue={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},pe=["onClick"],fe={class:"top"},me={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},ge={key:0,class:"shop-name"},ke={class:"right"},$e={class:"money"},be={class:"count"},we={class:"bottom"},De={class:"pay"},Ve={key:0},Ce={key:1},Ye={key:2},xe={key:3},ze={key:4},Se={key:5},Ie={key:1,style:{color:"#ff4a00"}},Me={key:0,class:"load-end"},Ue={key:1,class:"load-end"},Be=H(()=>e("span",null,"您有新订单了, 是否立即刷新",-1)),Le={class:"dialog-footer"},Ne={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(f){K(),n([]);const s=n(1),D=u=>{_.value.page_no=1,m.value=!1,c.value=!1,h.value=[],y(!0)};n(null);const k=n(""),z=()=>{_.value.start_time=A(k.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=A(k.value[1]).format("YYYY-MM-DD 23:59:59"),y(!0)},S=u=>u.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:2}),c=n(!1),L=n(0),V=n(0),m=n(!1),h=n([]),y=(u=!1)=>{if(u)_.value.page_no=1;else if(m.value||c.value)return;c.value=!0,s.value==1&&(_.value.paid=null),s.value==2&&(_.value.paid=0),ie(_.value).then(a=>{u?h.value=a.data.lists:h.value=[...h.value,...a.data.lists],_.value.page_no==1&&h.value.length>0&&b.emit("set-sale-order-detail",h.value[0]),a.data.lists.length<_.value.page_size?m.value=!0:_.value.page_no++,V.value=0,L.value=a.data.count,c.value=!1}).catch(a=>{m.value=!0,c.value=!1})},I=(u,a)=>{V.value=a,b.emit("set-sale-order-detail",u)},$=n(!1);return P(()=>{b.on("update-sale-order-detail",u=>{console.log("==="),h.value[V.value].paid=1}),b.on("new_order",()=>{$.value||($.value=!0)})}),j(()=>{b.off("update-sale-order-detail"),b.off("new_order")}),(u,a)=>{const C=p("el-radio-button"),Y=p("el-radio-group"),J=p("el-date-picker"),M=p("el-button"),Q=p("el-input"),W=p("el-image"),X=p("spna"),Z=p("el-dialog"),ee=x("loading"),te=x("infinite-scroll");return o(),i("div",de,[e("div",_e,[ce,e("div",re,[d(Y,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=t=>s.value=t),onChange:D,size:"small"},{default:v(()=>[d(C,{value:1},{default:v(()=>[g("全部")]),_:1}),d(C,{value:2},{default:v(()=>[g("未支付")]),_:1})]),_:1},8,["modelValue"]),d(J,{modelValue:k.value,"onUpdate:modelValue":a[1]||(a[1]=t=>k.value=t),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":S,onChange:z,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",ue,[d(Q,{modelValue:_.value.order_id,"onUpdate:modelValue":a[3]||(a[3]=t=>_.value.order_id=t),placeholder:"请输入订单编号",onKeydown:a[4]||(a[4]=oe(t=>y(!0),["enter"])),onClear:a[5]||(a[5]=t=>y(!0)),clearable:""},{append:v(()=>[d(M,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:a[2]||(a[2]=t=>y(!0))},{default:v(()=>[g("搜索")]),_:1})]),_:1},8,["modelValue"])]),B((o(),i("div",ve,[(o(!0),i(T,null,F(h.value,(t,U)=>(o(),i("div",{class:O(["item",{"item-active":V.value==U}]),key:U,onClick:N=>I(t,U)},[e("div",fe,[e("div",{class:O(["sn","cahier"])},"单号: "+l(t.order_id),1),e("div",me,l(t.pay_time),1)]),e("div",he,[t.product_info?(o(),i("div",ye,[(o(!0),i(T,null,F(t.product_info.slice(0,5),(N,se)=>(o(),R(W,{key:se,src:N.image,class:"shop-img"},null,8,["src"]))),128)),t.product_info.length==1?(o(),i("div",ge,l(t.product_info[0].store_name),1)):w("",!0)])):w("",!0),e("div",ke,[e("div",$e,"¥"+l(t.pay_price),1),e("div",be,"共"+l(t.total_num)+"款商品",1)])]),e("div",we,[e("div",De,[t.paid?(o(),i("div",Ve,[g(l(t.paid_name)+" ",1),t.pay_type_name?(o(),R(X,{key:0},{default:v(()=>[g("("+l(t.pay_type_name)+")",1)]),_:2},1024)):t.pay_type==9?(o(),i("span",Ce,"(微信收款)")):t.pay_type==17?(o(),i("span",Ye,"(现金支付)")):t.pay_type==13?(o(),i("span",xe,"(支付宝收款)")):t.pay_type==3?(o(),i("span",ze,"(余额支付)")):t.pay_type==1?(o(),i("span",Se,"(微信支付)")):w("",!0)])):(o(),i("div",Ie,l(t.paid_name),1))])])],10,pe))),128)),m.value?(o(),i("div",Me,"没有更多了")):w("",!0),c.value?(o(),i("div",Ue,"加载中...")):w("",!0)])),[[ee,c.value],[te,y]]),d(Z,{modelValue:$.value,"onUpdate:modelValue":a[8]||(a[8]=t=>$.value=t),title:"新订单提醒",width:"500"},{footer:v(()=>[e("div",Le,[d(M,{onClick:a[6]||(a[6]=t=>$.value=!1)},{default:v(()=>[g("稍后刷新")]),_:1}),d(M,{type:"primary",onClick:a[7]||(a[7]=t=>{y(!0),$.value=!1})},{default:v(()=>[g(" 立即刷新 ")]),_:1})])]),default:v(()=>[Be]),_:1},8,["modelValue"])])}}},Te=E(Ne,[["__scopeId","data-v-42ec4cb4"]]),r=f=>(q("data-v-bd1f9589"),f=f(),G(),f),Fe={class:"my-order"},Oe={key:0,class:"detail"},Re={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ae=r(()=>e("div",{class:"table-title"},"订单信息",-1)),Ee={class:"table-info"},Ke={class:"info-item"},Pe=r(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Ge=r(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),He={class:"info-item-info"},Je={class:"info-item"},Qe=r(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),We={class:"info-item-info"},Xe={class:"info-item"},Ze=r(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),et={class:"info-item-info"},tt={class:"info-item"},st=r(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),ot={class:"info-item-info"},at={class:"info-item"},it=r(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),lt={class:"info-item-info"},nt={class:"info-item"},dt=r(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),_t={class:"info-item-info"},ct={class:"info-item"},rt=r(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ut={class:"info-item-info"},vt={key:0},pt={key:1},ft={key:2},mt={key:3},ht={key:4},yt={key:5},gt={key:0,class:"table-title"},kt={key:1,class:"table-info"},$t={class:"info-item"},bt=r(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),wt={class:"info-item-info"},Dt={class:"info-item"},Vt=r(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),Ct={class:"info-item-info"},Yt={class:"info-item"},xt=r(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),zt={class:"info-item-info"},St={style:{"font-size":"0.9rem"}},It={style:{color:"#ff4a00"}},Mt={style:{display:"flex","align-items":"center"}},Ut={style:{"margin-left":"0.5rem"}},Bt=r(()=>e("div",{style:{height:"8rem"}},null,-1)),Lt={key:1},Nt={__name:"detail",setup(f){K(),ae();const s=n({id:""});n([]),n(null);const D=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const k=n({page_no:1,page_size:15,loadend:!1,loading:!1}),z=n([]),S=()=>console.log("触底"),_=()=>{D.value=!0,le({id:s.value.id}).then(c=>{s.value=c.data,setTimeout(()=>{D.value=!1},200)})};return P(()=>{b.on("set-sale-order-detail",c=>{console.log("===",c),s.value=c,k.value.page_no=1,k.value.loadend=!1,k.value.loading=!1,z.value=[],_()})}),j(()=>{b.off("set-sale-order-detail")}),(c,L)=>{var u;const V=p("el-image"),m=p("el-table-column"),h=p("el-table"),y=p("el-empty"),I=x("infinite-scroll"),$=x("loading");return o(),i("div",Fe,[s.value.id?B((o(),i("div",Oe,[B((o(),i("div",Re,[Ae,e("div",Ee,[e("div",Ke,[Pe,e("div",je,l(s.value.order_id),1)]),e("div",qe,[Ge,e("div",He,l(s.value.total_num||0),1)]),e("div",Je,[Qe,e("div",We,"¥"+l(s.value.pay_price),1)]),e("div",Xe,[Ze,e("div",et,l(s.value.pay_time),1)]),e("div",tt,[st,e("div",ot,"¥"+l(s.value.deduction_price),1)]),e("div",at,[it,e("div",lt,"¥"+l(s.value.pay_price),1)]),e("div",nt,[dt,e("div",_t,l(s.value.pay_time),1)]),e("div",ct,[rt,e("div",ut,[s.value.pay_type_name?(o(),i("span",vt,l(s.value.pay_type_name),1)):s.value.pay_type==9?(o(),i("span",pt,"微信收款")):s.value.pay_type==17?(o(),i("span",ft,"现金支付")):s.value.pay_type==13?(o(),i("span",mt,"支付宝收款")):s.value.pay_type==3?(o(),i("span",ht,"余额支付")):s.value.pay_type==1?(o(),i("span",yt,"微信支付")):w("",!0)])])]),s.value.uid?(o(),i("div",gt,"用户信息")):w("",!0),s.value.uid?(o(),i("div",kt,[e("div",$t,[bt,e("div",wt,l(s.value.uid),1)]),e("div",Dt,[Vt,e("div",Ct,l(s.value.nickname),1)]),e("div",Yt,[xt,e("div",zt,l(s.value.mobile),1)])])):w("",!0),e("div",St,[g(" 共计 "),e("span",It,l(((u=s.value.product)==null?void 0:u.length)||" "),1),g(" 款商品 ")]),d(h,{data:s.value.product},{default:v(()=>[d(m,{label:"商品信息"},{default:v(({row:a})=>{var C,Y;return[e("div",Mt,[d(V,{style:{height:"3rem",width:"3rem"},src:(C=a.cart_info)==null?void 0:C.image},null,8,["src"]),e("span",Ut,l((Y=a.cart_info)==null?void 0:Y.name),1)])]}),_:1}),d(m,{prop:"cart_info.price",label:"单价",width:"150"}),d(m,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(m,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Bt])),[[I,S]])])),[[$,D.value]]):(o(),i("div",Lt,[d(y)]))])}}},Tt=E(Nt,[["__scopeId","data-v-bd1f9589"]]),Ft={class:"my-card"},Pt={__name:"index",setup(f){return(s,D)=>(o(),i("div",Ft,[d(Te,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),d(ne),d(Tt,{ref:"detailRef"},null,512)]))}};export{Pt as default}; diff --git a/build/assets/index-BrKk-7uT.js b/build/assets/index-CSoTogo0.js similarity index 84% rename from build/assets/index-BrKk-7uT.js rename to build/assets/index-CSoTogo0.js index 604f9ac..5591a64 100644 --- a/build/assets/index-BrKk-7uT.js +++ b/build/assets/index-CSoTogo0.js @@ -1 +1 @@ -import{b as t,c,k as a,e,f as o,w as d,g as l}from"./index-B8EEu-LB.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-DslPK7Nc.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}; diff --git a/build/assets/index-XEdwB4XS.js b/build/assets/index-CbGMo1br.js similarity index 96% rename from build/assets/index-XEdwB4XS.js rename to build/assets/index-CbGMo1br.js index 168c06b..ad95bd2 100644 --- a/build/assets/index-XEdwB4XS.js +++ b/build/assets/index-CbGMo1br.js @@ -1 +1 @@ -import{_ as T,u as R,r as y,b as m,c as s,k as p,e as t,t as v,g as _,F as B,l as E,z as j,f as l,w as d,E as $,m as D,q as J,s as q,o as W,a as G,h as L,d as b,p as w,j as N}from"./index-B8EEu-LB.js";import{a as H,b as K,c as P,d as Q,e as X}from"./merchant-CYZ4pJwa.js";import{h as U}from"./moment-Cl4UOzQZ.js";import{p as Z}from"./padding-CBqAITKo.js";const z=k=>(J("data-v-e01d9d71"),k=k(),q(),k),ee={class:"my-order"},ae={class:"header-nav"},te=z(()=>t("div",{class:"nav-item"},v("提现"),-1)),le={class:"nav-body"},ne={class:"my-money"},oe=z(()=>t("div",null,"我的余额:",-1)),se={style:{"text-align":"center",color:"#2ec479"}},ie={class:"my-count"},de={class:"count"},_e={class:"money"},re={style:{color:"#ff4a00"}},ue={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},ce=["onClick"],ve={style:{color:"#1890ff"}},me={class:"own"},pe=z(()=>t("div",{style:{height:"8.2rem"}},null,-1)),fe={class:"order-footer"},he={class:"input-btn"},ge={class:"order-btn"},be={__name:"order",setup(k){R();const e=y({balance:0,count:0,total:0}),h=y([]),r=()=>{H().then(o=>{o.data.bank_list.forEach(i=>{i.is_check&&(a.value.merchant_bank_id=i.id)}),a.value.merchant_bank_id||(a.value.merchant_bank_id=o.data.bank_list[0].id),h.value=o.data.bank_list,e.value.balance=o.data.balance}),K().then(o=>{e.value=Object.assign(e.value,o.data)})};r();const a=y({merchant_bank_id:"",amount:""}),f=o=>{a.value.merchant_bank_id=o.id},x=()=>{if(a.value.amount=Math.floor(a.value.amount*100)/100,+a.value.amount<=0)return a.value.amount="",$.error("提现金额必须大于0");if(+a.value.amount>+e.value.balance)return a.value.amount=e.value.balance,$.error("提现金额不能大于余额");P(a.value).then(o=>{a.value.amount="",$.success("提现成功,等待管理员审核"),D.emit("get-taking-lists"),r()})};return(o,i)=>{const g=m("el-input"),V=m("el-button");return s(),p("div",ee,[t("div",ae,[te,t("div",le,[t("div",ne,[oe,t("div",se,[t("span",null,v(e.value.balance),1),_("元 ")])]),t("div",ie,[t("div",de,[_("提现次数: "),t("span",null,v(e.value.count),1),_("次")]),t("div",_e,[_("累计提现到账: "),t("span",re,v(e.value.total),1),_("元")])])])]),t("div",ue,[(s(!0),p(B,null,E(h.value,(u,C)=>(s(),p("div",{class:j(["item",{"item-active":a.value.merchant_bank_id==u.id}]),key:C,onClick:c=>f(u)},[t("div",null,[_(" 提现至 "),t("span",ve,v(u.bank_name)+"("+v(u.bank_code.slice(-4))+")",1),t("span",me,v(u.is_own==1?"对公":"个人"),1)])],10,ce))),128))]),pe,t("div",fe,[t("div",he,[l(g,{modelValue:a.value.amount,"onUpdate:modelValue":i[0]||(i[0]=u=>a.value.amount=u),placeholder:"请输入提现金额",type:"number"},null,8,["modelValue"]),l(V,{class:"btn",type:"primary",onClick:i[1]||(i[1]=u=>a.value.amount=e.value.balance)},{default:d(()=>[_("全部")]),_:1})]),t("div",ge,[l(V,{class:"btn",type:"primary",onClick:x,disabled:e.value.balance<=0||h.value.length==0},{default:d(()=>[_("立即提现")]),_:1},8,["disabled"])])])])}}},ke=T(be,[["__scopeId","data-v-e01d9d71"]]),ye={class:"my-order"},we={class:"date"},Ve={class:"detail"},Ye={key:0,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},$e={key:0},xe={key:1},Ce={key:1,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},De={__name:"detail",setup(k){const e=y({page_no:1,page_size:15,loadend:!1,loading:!1,create_time:"",start_time:""}),h=()=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],f()},r=y(1),a=y([]),f=()=>{if(console.log("触底",!e.value.loadend,!e.value.loading),!e.value.loadend&&!e.value.loading&&(console.log("加载"),e.value.loading=!0,r.value==1&&Q({page_no:e.value.page_no,page_size:e.value.page_size,create_time:e.value.create_time}).then(o=>{a.value=[...a.value,...o.data.lists],o.data.lists.length=e.value.start_time[1])return e.value.loading=!1,$.error("开始时间不能大于等于结束时间");let o=e.value.start_time[0]?U(e.value.start_time[0]).format("YYYY-MM-DD"):"",i=e.value.start_time[1]?U(e.value.start_time[1]).format("YYYY-MM-DD"):"";X({page_no:e.value.page_no,page_size:e.value.page_size,start_time:o,end_time:i}).then(g=>{a.value=[...a.value,...g.data.lists],g.data.lists.length{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],f()};return W(()=>{D.on("get-taking-lists",o=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],f()})}),G(()=>{D.off("get-taking-lists")}),(o,i)=>{const g=m("el-date-picker"),V=m("el-button"),u=m("el-radio-button"),C=m("el-radio-group"),c=m("el-table-column"),O=m("el-image"),Y=m("el-tag"),M=m("el-table"),I=L("loading"),S=L("infinite-scroll");return s(),p("div",ye,[t("div",we,[t("div",null,[r.value==1?(s(),b(g,{key:0,modelValue:e.value.create_time,"onUpdate:modelValue":i[0]||(i[0]=n=>e.value.create_time=n),type:"month",placeholder:"请选择月份",onChange:h,clearable:!1},null,8,["modelValue"])):w("",!0),r.value==2?(s(),b(g,{key:1,modelValue:e.value.start_time,"onUpdate:modelValue":i[1]||(i[1]=n=>e.value.start_time=n),type:"daterange",placeholder:"请选择日期",onChange:h,format:"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])):w("",!0),l(V,{type:"primary",style:{"margin-left":"1rem"}},{default:d(()=>[_("重置")]),_:1})]),l(C,{modelValue:r.value,"onUpdate:modelValue":i[2]||(i[2]=n=>r.value=n),onChange:x},{default:d(()=>[l(u,{label:"提现记录",value:1}),l(u,{label:"余额明细",value:2})]),_:1},8,["modelValue"])]),t("div",Ve,[r.value==1?N((s(),p("div",Ye,[l(M,{data:a.value},{default:d(()=>[l(c,{prop:"merchant_bank_info.is_own",label:"账户类型",width:"100"},{default:d(({row:n})=>[t("div",null,v(n.merchant_bank_info.is_own?"对公账户":"个人账户"),1)]),_:1}),l(c,{prop:"price",label:"银行卡"},{default:d(({row:n})=>[t("div",null,v(n.merchant_bank_info.bank_info.name)+" ("+v(n.merchant_bank_info.bank_code.slice(-4))+") ",1)]),_:1}),l(c,{prop:"amount",label:"提现金额",width:"150"}),l(c,{label:"备注/凭证",width:"200"},{default:d(({row:n})=>[n.arrival_proof?(s(),p("div",$e,[(s(!0),p(B,null,E(JSON.parse(n.arrival_proof),(F,A)=>(s(),b(O,{style:{width:"3rem",height:"3rem","margin-right":"0.2rem"},key:A,src:F,"preview-src-list":JSON.parse(n.arrival_proof),"initial-index":A},null,8,["src","preview-src-list","initial-index"]))),128))])):(s(),p("div",xe,v(n.fail_msg),1))]),_:1}),l(c,{label:"提现状态",width:"100"},{default:d(({row:n})=>[n.arrival_proof?(s(),b(Y,{key:0,type:"success"},{default:d(()=>[_("已到账")]),_:1})):n.is_check==1?(s(),b(Y,{key:1,type:"primary"},{default:d(()=>[_("待转账")]),_:1})):n.is_check==0?(s(),b(Y,{key:2,type:"info"},{default:d(()=>[_("待审核")]),_:1})):n.is_check==2?(s(),b(Y,{key:3,type:"danger"},{default:d(()=>[_("提现失败")]),_:1})):w("",!0)]),_:1}),l(c,{prop:"create_time",label:"提现时间",width:"200"})]),_:1},8,["data"])])),[[I,e.value.loading],[S,f]]):w("",!0),r.value==2?N((s(),p("div",Ce,[l(M,{data:a.value},{default:d(()=>[l(c,{prop:"number_sn",label:"订单号",width:"250"}),l(c,{prop:"number",label:"变动金额",width:"180"}),l(c,{prop:"financial_type",label:"变动类型",width:"180"}),l(c,{prop:"create_time",label:"时间"})]),_:1},8,["data"])])),[[I,e.value.loading],[S,f]]):w("",!0)])])}}},ze=T(De,[["__scopeId","data-v-b27fe34a"]]),Me={class:"my-card"},Ne={__name:"index",setup(k){return(e,h)=>(s(),p("div",Me,[l(ke,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),l(Z),l(ze,{ref:"detailRef"},null,512)]))}};export{Ne as default}; +import{_ as T,u as R,r as y,b as m,c as s,k as p,e as t,t as v,g as _,F as B,l as E,z as j,f as l,w as d,E as $,m as D,q as J,s as q,o as W,a as G,h as L,d as b,p as w,j as N}from"./index-DslPK7Nc.js";import{a as H,b as K,c as P,d as Q,e as X}from"./merchant-D2Gq3I4N.js";import{h as U}from"./moment-Cl4UOzQZ.js";import{p as Z}from"./padding-CQ0n6974.js";const z=k=>(J("data-v-e01d9d71"),k=k(),q(),k),ee={class:"my-order"},ae={class:"header-nav"},te=z(()=>t("div",{class:"nav-item"},v("提现"),-1)),le={class:"nav-body"},ne={class:"my-money"},oe=z(()=>t("div",null,"我的余额:",-1)),se={style:{"text-align":"center",color:"#2ec479"}},ie={class:"my-count"},de={class:"count"},_e={class:"money"},re={style:{color:"#ff4a00"}},ue={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},ce=["onClick"],ve={style:{color:"#1890ff"}},me={class:"own"},pe=z(()=>t("div",{style:{height:"8.2rem"}},null,-1)),fe={class:"order-footer"},he={class:"input-btn"},ge={class:"order-btn"},be={__name:"order",setup(k){R();const e=y({balance:0,count:0,total:0}),h=y([]),r=()=>{H().then(o=>{o.data.bank_list.forEach(i=>{i.is_check&&(a.value.merchant_bank_id=i.id)}),a.value.merchant_bank_id||(a.value.merchant_bank_id=o.data.bank_list[0].id),h.value=o.data.bank_list,e.value.balance=o.data.balance}),K().then(o=>{e.value=Object.assign(e.value,o.data)})};r();const a=y({merchant_bank_id:"",amount:""}),f=o=>{a.value.merchant_bank_id=o.id},x=()=>{if(a.value.amount=Math.floor(a.value.amount*100)/100,+a.value.amount<=0)return a.value.amount="",$.error("提现金额必须大于0");if(+a.value.amount>+e.value.balance)return a.value.amount=e.value.balance,$.error("提现金额不能大于余额");P(a.value).then(o=>{a.value.amount="",$.success("提现成功,等待管理员审核"),D.emit("get-taking-lists"),r()})};return(o,i)=>{const g=m("el-input"),V=m("el-button");return s(),p("div",ee,[t("div",ae,[te,t("div",le,[t("div",ne,[oe,t("div",se,[t("span",null,v(e.value.balance),1),_("元 ")])]),t("div",ie,[t("div",de,[_("提现次数: "),t("span",null,v(e.value.count),1),_("次")]),t("div",_e,[_("累计提现到账: "),t("span",re,v(e.value.total),1),_("元")])])])]),t("div",ue,[(s(!0),p(B,null,E(h.value,(u,C)=>(s(),p("div",{class:j(["item",{"item-active":a.value.merchant_bank_id==u.id}]),key:C,onClick:c=>f(u)},[t("div",null,[_(" 提现至 "),t("span",ve,v(u.bank_name)+"("+v(u.bank_code.slice(-4))+")",1),t("span",me,v(u.is_own==1?"对公":"个人"),1)])],10,ce))),128))]),pe,t("div",fe,[t("div",he,[l(g,{modelValue:a.value.amount,"onUpdate:modelValue":i[0]||(i[0]=u=>a.value.amount=u),placeholder:"请输入提现金额",type:"number"},null,8,["modelValue"]),l(V,{class:"btn",type:"primary",onClick:i[1]||(i[1]=u=>a.value.amount=e.value.balance)},{default:d(()=>[_("全部")]),_:1})]),t("div",ge,[l(V,{class:"btn",type:"primary",onClick:x,disabled:e.value.balance<=0||h.value.length==0},{default:d(()=>[_("立即提现")]),_:1},8,["disabled"])])])])}}},ke=T(be,[["__scopeId","data-v-e01d9d71"]]),ye={class:"my-order"},we={class:"date"},Ve={class:"detail"},Ye={key:0,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},$e={key:0},xe={key:1},Ce={key:1,class:"table",":infinite-scroll-delay":500,"infinite-scroll-distance":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},De={__name:"detail",setup(k){const e=y({page_no:1,page_size:15,loadend:!1,loading:!1,create_time:"",start_time:""}),h=()=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],f()},r=y(1),a=y([]),f=()=>{if(console.log("触底",!e.value.loadend,!e.value.loading),!e.value.loadend&&!e.value.loading&&(console.log("加载"),e.value.loading=!0,r.value==1&&Q({page_no:e.value.page_no,page_size:e.value.page_size,create_time:e.value.create_time}).then(o=>{a.value=[...a.value,...o.data.lists],o.data.lists.length=e.value.start_time[1])return e.value.loading=!1,$.error("开始时间不能大于等于结束时间");let o=e.value.start_time[0]?U(e.value.start_time[0]).format("YYYY-MM-DD"):"",i=e.value.start_time[1]?U(e.value.start_time[1]).format("YYYY-MM-DD"):"";X({page_no:e.value.page_no,page_size:e.value.page_size,start_time:o,end_time:i}).then(g=>{a.value=[...a.value,...g.data.lists],g.data.lists.length{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],f()};return W(()=>{D.on("get-taking-lists",o=>{e.value.page_no=1,e.value.loadend=!1,e.value.loading=!1,a.value=[],f()})}),G(()=>{D.off("get-taking-lists")}),(o,i)=>{const g=m("el-date-picker"),V=m("el-button"),u=m("el-radio-button"),C=m("el-radio-group"),c=m("el-table-column"),O=m("el-image"),Y=m("el-tag"),M=m("el-table"),I=L("loading"),S=L("infinite-scroll");return s(),p("div",ye,[t("div",we,[t("div",null,[r.value==1?(s(),b(g,{key:0,modelValue:e.value.create_time,"onUpdate:modelValue":i[0]||(i[0]=n=>e.value.create_time=n),type:"month",placeholder:"请选择月份",onChange:h,clearable:!1},null,8,["modelValue"])):w("",!0),r.value==2?(s(),b(g,{key:1,modelValue:e.value.start_time,"onUpdate:modelValue":i[1]||(i[1]=n=>e.value.start_time=n),type:"daterange",placeholder:"请选择日期",onChange:h,format:"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])):w("",!0),l(V,{type:"primary",style:{"margin-left":"1rem"}},{default:d(()=>[_("重置")]),_:1})]),l(C,{modelValue:r.value,"onUpdate:modelValue":i[2]||(i[2]=n=>r.value=n),onChange:x},{default:d(()=>[l(u,{label:"提现记录",value:1}),l(u,{label:"余额明细",value:2})]),_:1},8,["modelValue"])]),t("div",Ve,[r.value==1?N((s(),p("div",Ye,[l(M,{data:a.value},{default:d(()=>[l(c,{prop:"merchant_bank_info.is_own",label:"账户类型",width:"100"},{default:d(({row:n})=>[t("div",null,v(n.merchant_bank_info.is_own?"对公账户":"个人账户"),1)]),_:1}),l(c,{prop:"price",label:"银行卡"},{default:d(({row:n})=>[t("div",null,v(n.merchant_bank_info.bank_info.name)+" ("+v(n.merchant_bank_info.bank_code.slice(-4))+") ",1)]),_:1}),l(c,{prop:"amount",label:"提现金额",width:"150"}),l(c,{label:"备注/凭证",width:"200"},{default:d(({row:n})=>[n.arrival_proof?(s(),p("div",$e,[(s(!0),p(B,null,E(JSON.parse(n.arrival_proof),(F,A)=>(s(),b(O,{style:{width:"3rem",height:"3rem","margin-right":"0.2rem"},key:A,src:F,"preview-src-list":JSON.parse(n.arrival_proof),"initial-index":A},null,8,["src","preview-src-list","initial-index"]))),128))])):(s(),p("div",xe,v(n.fail_msg),1))]),_:1}),l(c,{label:"提现状态",width:"100"},{default:d(({row:n})=>[n.arrival_proof?(s(),b(Y,{key:0,type:"success"},{default:d(()=>[_("已到账")]),_:1})):n.is_check==1?(s(),b(Y,{key:1,type:"primary"},{default:d(()=>[_("待转账")]),_:1})):n.is_check==0?(s(),b(Y,{key:2,type:"info"},{default:d(()=>[_("待审核")]),_:1})):n.is_check==2?(s(),b(Y,{key:3,type:"danger"},{default:d(()=>[_("提现失败")]),_:1})):w("",!0)]),_:1}),l(c,{prop:"create_time",label:"提现时间",width:"200"})]),_:1},8,["data"])])),[[I,e.value.loading],[S,f]]):w("",!0),r.value==2?N((s(),p("div",Ce,[l(M,{data:a.value},{default:d(()=>[l(c,{prop:"number_sn",label:"订单号",width:"250"}),l(c,{prop:"number",label:"变动金额",width:"180"}),l(c,{prop:"financial_type",label:"变动类型",width:"180"}),l(c,{prop:"create_time",label:"时间"})]),_:1},8,["data"])])),[[I,e.value.loading],[S,f]]):w("",!0)])])}}},ze=T(De,[["__scopeId","data-v-b27fe34a"]]),Me={class:"my-card"},Ne={__name:"index",setup(k){return(e,h)=>(s(),p("div",Me,[l(ke,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),l(Z),l(ze,{ref:"detailRef"},null,512)]))}};export{Ne as default}; diff --git a/build/assets/index-B4UGSS-7.js b/build/assets/index-CoHhCr11.js similarity index 94% rename from build/assets/index-B4UGSS-7.js rename to build/assets/index-CoHhCr11.js index c16f8b7..aaab5f2 100644 --- a/build/assets/index-B4UGSS-7.js +++ b/build/assets/index-CoHhCr11.js @@ -1 +1 @@ -import{a as B,b as L}from"./shop-Cwb0_dzb.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-B8EEu-LB.js";import"./axiosAPI-B5dawX3v.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_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}; +import{a as B,b as L}from"./shop-B66-JAoZ.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-DslPK7Nc.js";import"./axiosAPI-DYpcg3Yc.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_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}; diff --git a/build/assets/index-DFFBOMnM.js b/build/assets/index-DRtqUpzG.js similarity index 84% rename from build/assets/index-DFFBOMnM.js rename to build/assets/index-DRtqUpzG.js index 79faea0..62bd955 100644 --- a/build/assets/index-DFFBOMnM.js +++ b/build/assets/index-DRtqUpzG.js @@ -1 +1 @@ -import{_ as q,u as J,r as l,b as f,h as E,c as s,k as o,e,t as a,f as _,w as h,g as b,i as W,j as $,F as P,l as T,p as u,m as x,E as U,z as j,d as F,D as X,o as G,a as Y,q as Z,s as ee,n as K,I as L,J as te}from"./index-B8EEu-LB.js";import{d as se,i as oe,w as ie,h as ae}from"./store-BHLkswxT.js";/* empty css */import{p as le}from"./padding-CBqAITKo.js";const ne={class:"my-order"},ce={class:"header-nav"},de={class:"nav-item"},_e={class:"nav-item-clear"},re={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},ue=["onClick"],fe={class:"top"},pe={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},me={key:0,class:"shop-name"},ke={class:"right"},ge={class:"money"},$e={class:"count"},be={class:"bottom"},we={class:"pay"},Ce={key:0},xe={key:1},Re={key:2},Ie={key:3},ze={key:4},De={key:5},Oe={key:1,style:{color:"#ff4a00"}},Ve={key:0,class:"cashier"},Be={key:1,class:"cashier",style:{color:"#ff4a00"}},Se={key:0,class:"load-end"},Ae={key:1,class:"load-end"},Le={__name:"order",props:{type:{type:Number,default:2}},emits:["backOne"],setup(w,{expose:t,emit:y}){J(),l([]),l(null);const n=l({verify_code:"",page_no:1,page_size:15}),r=l(!1),m=l(0),k=l(0),I=l(!1),c=l([]),p=(C=!1)=>{r.value||(r.value=!0,n.value.verify_code?(n.value.verify_code=n.value.verify_code.replace("—","-"),n.value.verify_code=n.value.verify_code.replace(/\uFF0D/,"-"),n.value.verify_code=n.value.verify_code.replace(" ",""),se({verify_code:n.value.verify_code}).then(d=>{c.value=[d.data],k.value=0,x.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,r.value=!1,c.value[0].is_writeoff&&U.warning("订单已核销过")}).catch(d=>{r.value=!1})):oe(n.value).then(d=>{c.value=[...c.value,...d.data.lists],n.value.page_no==1&&x.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,n.value.page_no++,r.value=!1}).catch(d=>{r.value=!1}))},z=(C,d)=>{k.value=d,x.emit("set-sale-order-detail",C)},g=C=>{n.value.verify_code=C,k.value=0,n.value.page_no=1,p(!0)},R=y,D=()=>{x.emit("set-sale-order-detail",{}),c.value=[],R("backOne")};return t({setCode:g}),(C,d)=>{const O=f("el-button"),V=f("el-input"),B=f("el-image"),S=f("spna"),A=E("loading"),H=E("infinite-scroll");return s(),o("div",ne,[e("div",ce,[e("div",de,a(w.type==2?"核销订单":"核销记录"),1),e("div",_e,[_(O,{type:"primary",size:"small",onClick:D},{default:h(()=>[b("返回上一页")]),_:1})])]),e("div",re,[_(V,{modelValue:n.value.verify_code,"onUpdate:modelValue":d[1]||(d[1]=i=>n.value.verify_code=i),placeholder:"请输入核销码",onKeydown:d[2]||(d[2]=W(i=>p(!0),["enter"])),clearable:""},{append:h(()=>[_(O,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:d[0]||(d[0]=i=>p(!0))},{default:h(()=>[b("搜索")]),_:1})]),_:1},8,["modelValue"])]),$((s(),o("div",ve,[(s(!0),o(P,null,T(c.value,(i,N)=>(s(),o("div",{class:j(["item",{"item-active":k.value==N}]),key:N,onClick:M=>z(i,N)},[e("div",fe,[e("div",{class:j(["sn","cahier"])},"单号: "+a(i.order_id),1),e("div",pe,a(i.pay_time),1)]),e("div",he,[i.product?(s(),o("div",ye,[(s(!0),o(P,null,T(i.product.slice(0,5),(M,Q)=>(s(),F(B,{key:Q,src:M.cart_info.image,class:"shop-img"},null,8,["src"]))),128)),i.product.length==1?(s(),o("div",me,a(i.product[0].store_name),1)):u("",!0)])):u("",!0),e("div",ke,[e("div",ge,"¥"+a(i.pay_price),1),e("div",$e,"共"+a(i.total_num)+"款商品",1)])]),e("div",be,[e("div",we,[i.paid?(s(),o("div",Ce,[b(a(i.paid_name)+" ",1),i.pay_type_name?(s(),F(S,{key:0},{default:h(()=>[b("("+a(i.pay_type_name)+")",1)]),_:2},1024)):i.pay_type==9?(s(),o("span",xe,"(微信收款)")):i.pay_type==17?(s(),o("span",Re,"(现金支付)")):i.pay_type==13?(s(),o("span",Ie,"(支付宝收款)")):i.pay_type==3?(s(),o("span",ze,"(余额支付)")):i.pay_type==1?(s(),o("span",De,"(微信支付)")):u("",!0)])):(s(),o("div",Oe,a(i.paid_name),1))]),i.is_writeoff==0?(s(),o("div",Ve,"核销码:"+a(i.verify_code),1)):(s(),o("div",Be,"已核销:"+a(i.verify_code),1))])],10,ue))),128)),I.value?(s(),o("div",Se,"没有更多了")):u("",!0),r.value?(s(),o("div",Ae,"加载中...")):u("",!0)])),[[A,r.value],[H,p]])])}}},Ee=q(Le,[["__scopeId","data-v-8d729586"]]),v=w=>(Z("data-v-ea87d657"),w=w(),ee(),w),Fe={class:"my-order"},Ne={key:0,class:"detail"},Ke={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ue=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Me={class:"table-info"},Pe={class:"info-item"},Te=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Je=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),We={class:"info-item-info"},Ge={class:"info-item"},He=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Qe={class:"info-item-info"},Xe={class:"info-item"},Ye=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Ze={class:"info-item-info"},et={class:"info-item"},tt=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),st={class:"info-item-info"},ot={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),at={class:"info-item-info"},lt={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),ct={class:"info-item-info"},dt={class:"info-item"},_t=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),rt={class:"info-item-info"},vt={key:0},ut={key:1},ft={key:2},pt={key:3},ht={key:4},yt={key:5},mt={key:0,class:"table-title"},kt={key:1,class:"table-info"},gt={class:"info-item"},$t=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),bt={class:"info-item-info"},wt={class:"info-item"},Ct=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),xt={class:"info-item-info"},Rt={class:"info-item"},It=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),zt={class:"info-item-info"},Dt={style:{"font-size":"0.9rem"}},Ot={style:{color:"#ff4a00"}},Vt={style:{display:"flex","align-items":"center"}},Bt={style:{"margin-left":"0.5rem"}},St=v(()=>e("div",{style:{height:"8rem"}},null,-1)),At={class:"footer"},Lt={key:1},Et={key:1},Ft={__name:"detail",setup(w){J(),X();const t=l({id:""});l([]),l(null);const y=l(!1);l(0),l(0),l(["商品信息","订单详情"]),l(""),l(!1);const n=l({page_no:1,page_size:15,loadend:!1,loading:!1}),r=l([]),m=()=>console.log("触底"),k=()=>{ie({verify_code:t.value.verify_code}).then(c=>{c.show==0&&c.msg=="核销成功"&&U.success(c.msg),t.value.is_writeoff=1})},I=()=>{ae({id:t.value.id}).then(c=>{x.emit("letPrintReceipt",c.data)})};return G(()=>{x.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,n.value.page_no=1,n.value.loadend=!1,n.value.loading=!1,r.value=[]})}),Y(()=>{x.off("set-sale-order-detail")}),(c,p)=>{var V;const z=f("el-image"),g=f("el-table-column"),R=f("el-table"),D=f("el-button"),C=f("el-empty"),d=E("infinite-scroll"),O=E("loading");return s(),o("div",Fe,[t.value.id?$((s(),o("div",Ne,[$((s(),o("div",Ke,[Ue,e("div",Me,[e("div",Pe,[Te,e("div",je,a(t.value.order_id),1)]),e("div",qe,[Je,e("div",We,a(t.value.total_num||0),1)]),e("div",Ge,[He,e("div",Qe,"¥"+a(t.value.pay_price),1)]),e("div",Xe,[Ye,e("div",Ze,a(t.value.pay_time),1)]),e("div",et,[tt,e("div",st,"¥"+a(t.value.deduction_price),1)]),e("div",ot,[it,e("div",at,"¥"+a(t.value.pay_price),1)]),e("div",lt,[nt,e("div",ct,a(t.value.pay_time),1)]),e("div",dt,[_t,e("div",rt,[t.value.pay_type_name?(s(),o("span",vt,a(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",ut,"微信收款")):t.value.pay_type==17?(s(),o("span",ft,"现金支付")):t.value.pay_type==13?(s(),o("span",pt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ht,"余额支付")):t.value.pay_type==1?(s(),o("span",yt,"微信支付")):u("",!0)])])]),t.value.uid?(s(),o("div",mt,"用户信息")):u("",!0),t.value.uid?(s(),o("div",kt,[e("div",gt,[$t,e("div",bt,a(t.value.uid),1)]),e("div",wt,[Ct,e("div",xt,a(t.value.nickname),1)]),e("div",Rt,[It,e("div",zt,a(t.value.mobile),1)])])):u("",!0),e("div",Dt,[b(" 共计 "),e("span",Ot,a(((V=t.value.product)==null?void 0:V.length)||" "),1),b(" 款商品 ")]),_(R,{data:t.value.product},{default:h(()=>[_(g,{label:"商品信息"},{default:h(({row:B})=>{var S,A;return[e("div",Vt,[_(z,{style:{height:"3rem",width:"3rem"},src:(S=B.cart_info)==null?void 0:S.image},null,8,["src"]),e("span",Bt,a((A=B.cart_info)==null?void 0:A.name),1)])]}),_:1}),_(g,{prop:"cart_info.price",label:"单价",width:"150"}),_(g,{prop:"cart_info.cart_num",label:"数量",width:"150"}),_(g,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),St])),[[d,m]]),e("div",At,[t.value.is_writeoff==0?(s(),F(D,{key:0,type:"primary",size:"large",disabled:t.value.is_writeoff,onClick:k},{default:h(()=>[b("立即核销")]),_:1},8,["disabled"])):u("",!0),t.value.is_writeoff==1?(s(),o("div",Lt,"该订单已核销")):u("",!0),t.value.is_writeoff==1?(s(),F(D,{key:2,style:{"margin-left":"1rem"},type:"warning",size:"large",onClick:I},{default:h(()=>[b("打印小票")]),_:1})):u("",!0)])])),[[O,y.value]]):(s(),o("div",Et,[_(C,{description:"没找到核销订单信息"})]))])}}},Nt=q(Ft,[["__scopeId","data-v-ea87d657"]]),Kt={class:"my-card"},Ut={class:"my-code"},Mt=e("h2",null,"订单核销",-1),Pt={class:"box"},Tt=e("span",null,"查看核销记录",-1),Gt={__name:"index",setup(w){const t=l(1),y=l(""),n=l(null),r=l(null),m=()=>{if(y.value=="")return U.error("请输入订单编号");t.value=2,K(()=>{r.value.setCode(y.value)})},k=()=>{t.value=3,K(()=>{r.value.setCode("")})},I=()=>{m()};return G(()=>{K(()=>{n.value.focus()})}),(c,p)=>{const z=f("ArrowRightBold"),g=f("el-icon");return s(),o("div",Kt,[$(e("div",Ut,[Mt,e("div",Pt,[$(e("input",{ref_key:"inputRef",ref:n,"onUpdate:modelValue":p[0]||(p[0]=R=>y.value=R),placeholder:"",class:"input",onKeyup:W(m,["enter"])},null,544),[[te,y.value]]),e("div",{class:"btn",onClick:m},"查询")]),e("div",{class:"to-list",onClick:k},[Tt,_(g,null,{default:h(()=>[_(z)]),_:1})])],512),[[L,t.value==1]]),$(_(Ee,{type:t.value,style:{"flex-shrink":"0"},ref_key:"orderRef",ref:r,onBackOne:p[1]||(p[1]=R=>t.value=1)},null,8,["type"]),[[L,t.value!=1]]),$(_(le,null,null,512),[[L,t.value!=1]]),$(_(Nt,{ref:"detailRef",onReInit:I},null,512),[[L,t.value!=1]])])}}};export{Gt as default}; +import{_ as q,u as J,r as l,b as f,h as E,c as s,k as o,e,t as a,f as _,w as y,g as b,i as W,j as $,F as P,l as T,p as u,m as x,E as U,z as j,d as F,D as X,o as G,a as Y,q as Z,s as ee,n as K,I as L,J as te}from"./index-DslPK7Nc.js";import{d as se,i as oe,w as ie,h as ae}from"./store-BUqDvNxu.js";/* empty css */import{p as le}from"./padding-CQ0n6974.js";const ne={class:"my-order"},ce={class:"header-nav"},de={class:"nav-item"},_e={class:"nav-item-clear"},re={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},ue=["onClick"],fe={class:"top"},pe={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},me={key:0,class:"shop-name"},ke={class:"right"},ge={class:"money"},$e={class:"count"},be={class:"bottom"},we={class:"pay"},Ce={key:0},xe={key:1},Re={key:2},Ie={key:3},ze={key:4},De={key:5},Oe={key:1,style:{color:"#ff4a00"}},Ve={key:0,class:"cashier"},Be={key:1,class:"cashier",style:{color:"#ff4a00"}},Se={key:0,class:"load-end"},Ae={key:1,class:"load-end"},Le={__name:"order",props:{type:{type:Number,default:2}},emits:["backOne"],setup(w,{expose:t,emit:h}){J(),l([]),l(null);const n=l({verify_code:"",page_no:1,page_size:15}),r=l(!1),m=l(0),k=l(0),I=l(!1),c=l([]),p=(C=!1)=>{r.value||(r.value=!0,n.value.verify_code?(n.value.verify_code=n.value.verify_code.replace("—","-"),n.value.verify_code=n.value.verify_code.replace(/\uFF0D/,"-"),n.value.verify_code=n.value.verify_code.replace(" ",""),se({verify_code:n.value.verify_code}).then(d=>{c.value=[d.data],k.value=0,x.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,r.value=!1,c.value[0].is_writeoff&&U.warning("订单已核销过")}).catch(d=>{r.value=!1})):oe(n.value).then(d=>{c.value=[...c.value,...d.data.lists],n.value.page_no==1&&x.emit("set-sale-order-detail",c.value[0]),m.value=d.data.count,n.value.page_no++,r.value=!1}).catch(d=>{r.value=!1}))},z=(C,d)=>{k.value=d,x.emit("set-sale-order-detail",C)},g=C=>{n.value.verify_code=C,k.value=0,n.value.page_no=1,p(!0)},R=h,D=()=>{x.emit("set-sale-order-detail",{}),c.value=[],R("backOne")};return t({setCode:g}),(C,d)=>{const O=f("el-button"),V=f("el-input"),B=f("el-image"),S=f("spna"),A=E("loading"),H=E("infinite-scroll");return s(),o("div",ne,[e("div",ce,[e("div",de,a(w.type==2?"核销订单":"核销记录"),1),e("div",_e,[_(O,{type:"primary",size:"small",onClick:D},{default:y(()=>[b("返回上一页")]),_:1})])]),e("div",re,[_(V,{modelValue:n.value.verify_code,"onUpdate:modelValue":d[1]||(d[1]=i=>n.value.verify_code=i),placeholder:"请输入核销码",onKeydown:d[2]||(d[2]=W(i=>p(!0),["enter"])),clearable:""},{append:y(()=>[_(O,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:d[0]||(d[0]=i=>p(!0))},{default:y(()=>[b("搜索")]),_:1})]),_:1},8,["modelValue"])]),$((s(),o("div",ve,[(s(!0),o(P,null,T(c.value,(i,N)=>(s(),o("div",{class:j(["item",{"item-active":k.value==N}]),key:N,onClick:M=>z(i,N)},[e("div",fe,[e("div",{class:j(["sn","cahier"])},"单号: "+a(i.order_id),1),e("div",pe,a(i.pay_time),1)]),e("div",he,[i.product?(s(),o("div",ye,[(s(!0),o(P,null,T(i.product.slice(0,5),(M,Q)=>(s(),F(B,{key:Q,src:M.cart_info.image,class:"shop-img"},null,8,["src"]))),128)),i.product.length==1?(s(),o("div",me,a(i.product[0].store_name),1)):u("",!0)])):u("",!0),e("div",ke,[e("div",ge,"¥"+a(i.pay_price),1),e("div",$e,"共"+a(i.total_num)+"款商品",1)])]),e("div",be,[e("div",we,[i.paid?(s(),o("div",Ce,[b(a(i.paid_name)+" ",1),i.pay_type_name?(s(),F(S,{key:0},{default:y(()=>[b("("+a(i.pay_type_name)+")",1)]),_:2},1024)):i.pay_type==9?(s(),o("span",xe,"(微信收款)")):i.pay_type==17?(s(),o("span",Re,"(现金支付)")):i.pay_type==13?(s(),o("span",Ie,"(支付宝收款)")):i.pay_type==3?(s(),o("span",ze,"(余额支付)")):i.pay_type==1?(s(),o("span",De,"(微信支付)")):u("",!0)])):(s(),o("div",Oe,a(i.paid_name),1))]),i.is_writeoff==0?(s(),o("div",Ve,"核销码:"+a(i.verify_code),1)):(s(),o("div",Be,"已核销:"+a(i.verify_code),1))])],10,ue))),128)),I.value?(s(),o("div",Se,"没有更多了")):u("",!0),r.value?(s(),o("div",Ae,"加载中...")):u("",!0)])),[[A,r.value],[H,p]])])}}},Ee=q(Le,[["__scopeId","data-v-8d729586"]]),v=w=>(Z("data-v-ea87d657"),w=w(),ee(),w),Fe={class:"my-order"},Ne={key:0,class:"detail"},Ke={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ue=v(()=>e("div",{class:"table-title"},"订单信息",-1)),Me={class:"table-info"},Pe={class:"info-item"},Te=v(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),je={class:"info-item-info"},qe={class:"info-item"},Je=v(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),We={class:"info-item-info"},Ge={class:"info-item"},He=v(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Qe={class:"info-item-info"},Xe={class:"info-item"},Ye=v(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Ze={class:"info-item-info"},et={class:"info-item"},tt=v(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),st={class:"info-item-info"},ot={class:"info-item"},it=v(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),at={class:"info-item-info"},lt={class:"info-item"},nt=v(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),ct={class:"info-item-info"},dt={class:"info-item"},_t=v(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),rt={class:"info-item-info"},vt={key:0},ut={key:1},ft={key:2},pt={key:3},ht={key:4},yt={key:5},mt={key:0,class:"table-title"},kt={key:1,class:"table-info"},gt={class:"info-item"},$t=v(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),bt={class:"info-item-info"},wt={class:"info-item"},Ct=v(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),xt={class:"info-item-info"},Rt={class:"info-item"},It=v(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),zt={class:"info-item-info"},Dt={style:{"font-size":"0.9rem"}},Ot={style:{color:"#ff4a00"}},Vt={style:{display:"flex","align-items":"center"}},Bt={style:{"margin-left":"0.5rem"}},St=v(()=>e("div",{style:{height:"8rem"}},null,-1)),At={class:"footer"},Lt={key:1},Et={key:1},Ft={__name:"detail",setup(w){J(),X();const t=l({id:""});l([]),l(null);const h=l(!1);l(0),l(0),l(["商品信息","订单详情"]),l(""),l(!1);const n=l({page_no:1,page_size:15,loadend:!1,loading:!1}),r=l([]),m=()=>console.log("触底"),k=()=>{ie({verify_code:t.value.verify_code}).then(c=>{c.show==0&&c.msg=="核销成功"&&U.success(c.msg),t.value.is_writeoff=1})},I=()=>{ae({id:t.value.id}).then(c=>{x.emit("letPrintReceipt",c.data)})};return G(()=>{x.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,n.value.page_no=1,n.value.loadend=!1,n.value.loading=!1,r.value=[]})}),Y(()=>{x.off("set-sale-order-detail")}),(c,p)=>{var V;const z=f("el-image"),g=f("el-table-column"),R=f("el-table"),D=f("el-button"),C=f("el-empty"),d=E("infinite-scroll"),O=E("loading");return s(),o("div",Fe,[t.value.id?$((s(),o("div",Ne,[$((s(),o("div",Ke,[Ue,e("div",Me,[e("div",Pe,[Te,e("div",je,a(t.value.order_id),1)]),e("div",qe,[Je,e("div",We,a(t.value.total_num||0),1)]),e("div",Ge,[He,e("div",Qe,"¥"+a(t.value.pay_price),1)]),e("div",Xe,[Ye,e("div",Ze,a(t.value.pay_time),1)]),e("div",et,[tt,e("div",st,"¥"+a(t.value.deduction_price),1)]),e("div",ot,[it,e("div",at,"¥"+a(t.value.pay_price),1)]),e("div",lt,[nt,e("div",ct,a(t.value.pay_time),1)]),e("div",dt,[_t,e("div",rt,[t.value.pay_type_name?(s(),o("span",vt,a(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",ut,"微信收款")):t.value.pay_type==17?(s(),o("span",ft,"现金支付")):t.value.pay_type==13?(s(),o("span",pt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ht,"余额支付")):t.value.pay_type==1?(s(),o("span",yt,"微信支付")):u("",!0)])])]),t.value.uid?(s(),o("div",mt,"用户信息")):u("",!0),t.value.uid?(s(),o("div",kt,[e("div",gt,[$t,e("div",bt,a(t.value.uid),1)]),e("div",wt,[Ct,e("div",xt,a(t.value.nickname),1)]),e("div",Rt,[It,e("div",zt,a(t.value.mobile),1)])])):u("",!0),e("div",Dt,[b(" 共计 "),e("span",Ot,a(((V=t.value.product)==null?void 0:V.length)||" "),1),b(" 款商品 ")]),_(R,{data:t.value.product},{default:y(()=>[_(g,{label:"商品信息"},{default:y(({row:B})=>{var S,A;return[e("div",Vt,[_(z,{style:{height:"3rem",width:"3rem"},src:(S=B.cart_info)==null?void 0:S.image},null,8,["src"]),e("span",Bt,a((A=B.cart_info)==null?void 0:A.name),1)])]}),_:1}),_(g,{prop:"cart_info.price",label:"单价",width:"150"}),_(g,{prop:"cart_info.cart_num",label:"数量",width:"150"}),_(g,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),St])),[[d,m]]),e("div",At,[t.value.is_writeoff==0?(s(),F(D,{key:0,type:"primary",size:"large",disabled:t.value.is_writeoff,onClick:k},{default:y(()=>[b("立即核销")]),_:1},8,["disabled"])):u("",!0),t.value.is_writeoff==1?(s(),o("div",Lt,"该订单已核销")):u("",!0),t.value.is_writeoff==1?(s(),F(D,{key:2,style:{"margin-left":"1rem"},type:"warning",size:"large",onClick:I},{default:y(()=>[b("打印小票")]),_:1})):u("",!0)])])),[[O,h.value]]):(s(),o("div",Et,[_(C,{description:"没找到核销订单信息"})]))])}}},Nt=q(Ft,[["__scopeId","data-v-ea87d657"]]),Kt={class:"my-card"},Ut={class:"my-code"},Mt=e("h2",null,"订单核销",-1),Pt={class:"box"},Tt=e("span",null,"查看核销记录",-1),Gt={__name:"index",setup(w){const t=l(1),h=l(""),n=l(null),r=l(null),m=()=>{if(h.value=="")return U.error("请输入订单编号");t.value=2,K(()=>{r.value.setCode(h.value)})},k=()=>{t.value=3,K(()=>{r.value.setCode("")})},I=()=>{m()};return G(()=>{K(()=>{n.value.focus()})}),(c,p)=>{const z=f("ArrowRightBold"),g=f("el-icon");return s(),o("div",Kt,[$(e("div",Ut,[Mt,e("div",Pt,[$(e("input",{ref_key:"inputRef",ref:n,"onUpdate:modelValue":p[0]||(p[0]=R=>h.value=R),placeholder:"",class:"input",onKeyup:W(m,["enter"])},null,544),[[te,h.value]]),e("div",{class:"btn",onClick:m},"查询")]),e("div",{class:"to-list",onClick:k},[Tt,_(g,null,{default:y(()=>[_(z)]),_:1})])],512),[[L,t.value==1]]),$(_(Ee,{type:t.value,style:{"flex-shrink":"0"},ref_key:"orderRef",ref:r,onBackOne:p[1]||(p[1]=R=>{t.value=1,h.value=""})},null,8,["type"]),[[L,t.value!=1]]),$(_(le,null,null,512),[[L,t.value!=1]]),$(_(Nt,{ref:"detailRef",onReInit:I},null,512),[[L,t.value!=1]])])}}};export{Gt as default}; diff --git a/build/assets/index-B8EEu-LB.js b/build/assets/index-DslPK7Nc.js similarity index 99% rename from build/assets/index-B8EEu-LB.js rename to build/assets/index-DslPK7Nc.js index c2f9fe0..c0d1bd3 100644 --- a/build/assets/index-B8EEu-LB.js +++ b/build/assets/index-DslPK7Nc.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index-BMKMLBt4.js","./store-BHLkswxT.js","./user-H5zoLVp6.js","./moment-Cl4UOzQZ.js","./padding-CBqAITKo.js","./axiosAPI-B5dawX3v.js","./shop-Cwb0_dzb.js","./pay-DJzT1N1_.js","./pay-Bm_PmHdm.css","./index-D7GQBsjU.css","./index-GpW-BMFV.js","./index-BKsdf9w7.css","./index-CSaQTX_c.js","./index-DnNHXWue.css","./indexCount-xluBJzuO.js","./merchant-CYZ4pJwa.js","./indexCount-quL7L4Zi.css","./index-XEdwB4XS.js","./index-ZYBKJJNc.css","./index-DFFBOMnM.js","./index-BisQBYP4.css","./index-B4UGSS-7.js","./index-Bfak7bLR.css","./index-BJ49Hkgb.js","./index-1a1dz75i.css","./test-CwFTindV.js","./test-CmC8-tN2.css","./index-rsJ_f2nJ.js","./index-BA6nwZsc.css"] + __vite__mapDeps.viteFileDeps = ["./index-mvvao8ZD.js","./store-BUqDvNxu.js","./user-jp6MVT4O.js","./moment-Cl4UOzQZ.js","./padding-CQ0n6974.js","./axiosAPI-DYpcg3Yc.js","./shop-B66-JAoZ.js","./pay-Dn2JkHh_.js","./pay-OHBr3Zal.css","./index-zrGTTzRW.css","./index-QlXZ6G4J.js","./index-BKsdf9w7.css","./index-Bjp8iKWj.js","./index-DnNHXWue.css","./indexCount-5PH9xZfJ.js","./merchant-D2Gq3I4N.js","./indexCount-quL7L4Zi.css","./index-CbGMo1br.js","./index-ZYBKJJNc.css","./index-DRtqUpzG.js","./index-BisQBYP4.css","./index-CoHhCr11.js","./index-Bfak7bLR.css","./index-c0nzEvII.js","./index-4LENzAhO.css","./test-C1w-f_el.js","./test-CmC8-tN2.css","./index-BbprSBiW.js","./index-BA6nwZsc.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -98,4 +98,4 @@ function __vite__mapDeps(indexes) { `,n+=sl(" ")+` `,n+=x4()+`欢迎下次光临! `,n+=Yce(" ")+` -`,n+=Xce(),n},wv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ii=e=>(Vw("data-v-4e1f74b3"),e=e(),Bw(),e),Qce={class:"my-card"},ede={class:"card-header"},tde={style:{width:"4.5rem"}},nde=Ii(()=>k("div",{class:"card-title"},"泸优采收银系统",-1)),ode={style:{"margin-left":"1rem",display:"flex","flex-direction":"column","justify-content":"center",cursor:"pointer"}},rde={class:"card-body"},ade={style:{"margin-right":"1rem"}},lde=Ii(()=>k("span",null,"打印自检",-1)),sde={key:0,style:{"margin-right":"1rem"}},ide=Ii(()=>k("span",null,"点击自动连接打印机",-1)),ude=Ii(()=>k("div",null,"已连接打印机T58",-1)),cde={style:{"font-size":"0.7rem",color:"#ccc"}},dde=Ii(()=>k("span",null,"打印机已连接,是否重新连接",-1)),fde={class:"dialog-footer"},pde={class:"el-dropdown-link"},vde={class:"info"},hde={__name:"myHeader",setup(e){const t=yd(),n=qce(),o=L({});o.value=t.userInfo;const r=hb(),a=()=>{t.setUserInfo({}),t.setToken(""),r.push("/login")},l=()=>{window.location.reload()},s=L(!1),u=()=>{console.log("连接打印机"),uni.getEnv(h=>{h.h5?eo.error("请使用APP连接打印机"):(n.setConnect(!1),n.setPrintAddress(""),s.value=!1,uni.postMessage({data:{type:"connect"}}))})};let c=!1;const f=(h="")=>{console.log("预打印"),console.log(Sf(h,!0)),!c&&(c=!0,uni.getEnv(m=>{m.h5?(eo.error("请使用APP打印小票"),c=!1):(p(h),setTimeout(()=>{c=!1},4e3))}))},d=(h="")=>{console.log("预打印");let m=Sf(h,!0);console.log(m),!c&&(c=!0,uni.getEnv(v=>{v.h5?(eo.error("请使用APP打印小票"),c=!1):(p(m),setTimeout(()=>{c=!1},4e3))}))},p=(h="")=>{let m="";h===""?(m=Sf({},!0),console.log(m)):m=h,uni.postMessage({data:{type:"print",content:m}})};return et(()=>{Jt.on("printReceipt",f),Jt.on("letPrintReceipt",d),window.addEventListener("message",function(h){if(h.data.type==="connect"){let m=h.data.data.address;n.setConnect(!0),n.setPrintAddress(m),eo.success("已连接打印机T58("+m+")")}},!1)}),xo(()=>{Jt.off("printReceipt",f),Jt.off("letPrintReceipt",d)}),(h,m)=>{const v=Ze("el-image"),_=Ze("Refresh"),g=Ze("el-icon"),w=Ze("el-button"),y=Ze("el-dialog"),C=Ze("el-avatar"),E=Ze("arrow-down"),x=Ze("el-dropdown-item"),A=Ze("el-dropdown-menu"),T=Ze("el-dropdown");return b(),M("div",Qce,[k("div",ede,[k("div",tde,[W(v,{style:{height:"2.5rem",width:"2.5rem",margin:"0 auto"},src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/12c93202404101530591311.png"})]),nde,k("div",ode,[W(g,{color:"#fff",size:"18",onClick:l},{default:X(()=>[W(_)]),_:1})])]),k("div",rde,[k("div",ade,[W(w,{onClick:m[0]||(m[0]=R=>i(Jt).emit("letPrintReceipt")),type:"primary"},{default:X(()=>[lde]),_:1})]),!i(n).is_connect||!i(n).printAddress?(b(),M("div",sde,[W(w,{onClick:u,type:"warning"},{default:X(()=>[ide]),_:1})])):(b(),M("div",{key:1,style:{"margin-right":"1rem","font-size":"0.9rem"},onClick:m[1]||(m[1]=R=>s.value=!0)},[ude,k("div",cde,"("+Te(i(n).printAddress)+")",1)])),W(y,{modelValue:s.value,"onUpdate:modelValue":m[3]||(m[3]=R=>s.value=R),title:"提示",width:"500"},{footer:X(()=>[k("div",fde,[W(w,{onClick:m[2]||(m[2]=R=>s.value=!1)},{default:X(()=>[mt("取消")]),_:1}),W(w,{type:"primary",onClick:u},{default:X(()=>[mt(" 重新连接 ")]),_:1})])]),default:X(()=>[dde]),_:1},8,["modelValue"]),W(T,{trigger:"hover"},{dropdown:X(()=>[W(A,null,{default:X(()=>[W(x,{onClick:a},{default:X(()=>[mt("退出登录")]),_:1})]),_:1})]),default:X(()=>[k("div",pde,[W(C,{src:o.value.avatar,icon:"user-filled"},null,8,["src"]),k("div",vde,[k("div",null,Te(o.value.name),1),k("div",null,"("+Te(o.value.role_name)+")",1)]),W(g,{class:"el-icon--right"},{default:X(()=>[W(E)]),_:1})])]),_:1})])])}}},mde=wv(hde,[["__scopeId","data-v-4e1f74b3"]]),gde=vv("order",()=>{const e=L(localStorage.getItem("orderCount")||0);return{orderCount:e,setOrderCount:n=>{e.value=n,localStorage.setItem("orderCount",n)}}}),yde={class:"my-card"},_de=["onClick"],bde={key:0,class:"badge"},wde={__name:"myAside",setup(e){const t=hb(),n=bue(),o=gde(),r=(d=1)=>{o.setOrderCount(d),u.value.forEach(p=>{p.name=="order"&&(p.count=d)})};let a=!1;const l=d=>{try{if(r(0),eo.success("您有新的订单"),a)return;var p=new Audio("/src/assets/order.mp3");p.play(),a=!0,console.log("播放中"),p.addEventListener("ended",function(){a=!1})}catch(h){console.error(h),a=!1,eo.error("播放失败")}},s=d=>{t.push({name:d})},u=L([{name:"saleHome",title:"收银",ico:"Sell",count:0},{name:"saleOrder",title:"收银订单",ico:"DataLine",count:0},{name:"order",title:"线上订单",ico:"DataAnalysis",count:0},{name:"convert",title:"订单核销",ico:"FullScreen",count:0},{name:"putStorage",title:"入库登记",ico:"Van",count:0},{name:"user",title:"用户",ico:"User",count:0}]),c=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==0&&(d=u.value.length),d>0&&s(u.value[d-1].name)},f=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==u.value.length-1&&(d=-1),d{Jt.on("up",c),Jt.on("down",f),Jt.on("new_order",l),Jt.on("set-order-count-zero",()=>{r(0)}),r(0)}),xo(()=>{Jt.off("aup",c),Jt.off("adown",f),Jt.off("new_order",l),Jt.on("set-order-count-zero")}),(d,p)=>{const h=Ze("el-icon");return b(),M("div",yde,[(b(!0),M(Fe,null,ht(u.value,m=>(b(),M("div",{key:m.name,class:$(["list-item",{active:i(n).name==m.name}]),onClick:v=>s(m.name)},[W(h,{size:"2rem"},{default:X(()=>[(b(),le(st(m.ico)))]),_:2},1024),k("div",null,Te(m.title),1),m.count?(b(),M("div",bde,Te(m.count),1)):ne("",!0)],10,_de))),128))])}}},Cde=wv(wde,[["__scopeId","data-v-c2e7e17b"]]),Oo=function e(t){this.doNotConnect=0,t=t||{},t.heartbeat=t.heartbeat||25e3,t.pingTimeout=t.pingTimeout||1e4,this.config=t,this.uid=0,this.channels={},this.connection=null,this.pingTimeoutTimer=0,e.instances.push(this),this.createConnection()};Oo.prototype.checkoutPing=function(){var e=this;e.checkoutPingTimer&&clearTimeout(e.checkoutPingTimer),e.checkoutPingTimer=setTimeout(function(){e.checkoutPingTimer=0,e.connection.state==="connected"&&(e.connection.send('{"event":"pusher:ping","data":{}}'),e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),e.pingTimeoutTimer=setTimeout(function(){e.connection.closeAndClean(),e.connection.doNotConnect||e.connection.waitReconnect()},e.config.pingTimeout))},this.config.heartbeat)};Oo.prototype.channel=function(e){return this.channels.find(e)};Oo.prototype.allChannels=function(){return this.channels.all()};Oo.prototype.createConnection=function(){if(this.connection)throw Error("Connection already exist");var e=this,t=this.config.url;function n(){for(var o in e.channels)e.channels[o].subscribed=!1}this.connection=new Qa({url:t,app_key:this.config.app_key,onOpen:function(){e.connection.state="connecting",e.checkoutPing()},onMessage:function(o){e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),o=JSON.parse(o.data);var r=o.event,a=o.channel;if(r==="pusher:pong"){e.checkoutPing();return}if(r==="pusher:error")throw Error(o.data.message);var l=JSON.parse(o.data),s;if(r==="pusher_internal:subscription_succeeded"){s=e.channels[a],s.subscribed=!0,s.processQueue(),s.emit("pusher:subscription_succeeded");return}if(r==="pusher:connection_established"&&(e.connection.socket_id=l.socket_id,e.connection.updateNetworkState("connected"),e.subscribeAll()),r.indexOf("pusher_internal")!==-1){console.log("Event '"+r+"' not implement");return}s=e.channels[a],s&&s.emit(r,l)},onClose:function(){n()},onError:function(){n()}})};Oo.prototype.disconnect=function(){this.connection.doNotConnect=1,this.connection.close()};Oo.prototype.subscribeAll=function(){if(this.connection.state==="connected")for(var e in this.channels)this.channels[e].processSubscribe()};Oo.prototype.unsubscribe=function(e){this.channels[e]&&(delete this.channels[e],this.connection.state==="connected"&&this.connection.send(JSON.stringify({event:"pusher:unsubscribe",data:{channel:e}})))};Oo.prototype.unsubscribeAll=function(){var e=Object.keys(this.channels);if(e.length&&this.connection.state==="connected")for(var t in this.channels)this.unsubscribe(t);this.channels={}};Oo.prototype.subscribe=function(e){return this.channels[e]?this.channels[e]:e.indexOf("private-")===0?Kb(e,this):e.indexOf("presence-")===0?kde(e,this):Sde(e,this)};Oo.instances=[];function Sde(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){t.connection.send(JSON.stringify({event:"pusher:subscribe",data:{channel:e}}))},n.processSubscribe(),n}function Kb(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){xde({url:t.config.auth,type:"POST",data:{channel_name:e,socket_id:t.connection.socket_id},success:function(o){o=JSON.parse(o),o.channel=e,t.connection.send(JSON.stringify({event:"pusher:subscribe",data:o}))},error:function(o){throw Error(o)}})},n.processSubscribe(),n}function kde(e,t){return Kb(e,t)}function Qa(e){this.dispatcher=new jb,Wb(this,this.dispatcher);var t=["on","off","emit"];for(var n in t)this[t[n]]=this.dispatcher[t[n]];this.options=e,this.state="initialized",this.doNotConnect=0,this.reconnectInterval=1,this.connection=null,this.reconnectTimer=0,this.connect()}Qa.prototype.updateNetworkState=function(e){var t=this.state;this.state=e,t!==e&&this.emit("state_change",{previous:t,current:e})};Qa.prototype.connect=function(){if(this.doNotConnect=0,this.state==="connected"){console.log('networkState is "'+this.state+'" and do not need connect');return}this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=0),this.closeAndClean();var e=this.options,t=new WebSocket(e.url+"/app/"+e.app_key);this.updateNetworkState("connecting");var n=this;t.onopen=function(o){if(n.reconnectInterval=1,n.doNotConnect){n.updateNetworkState("disconnected"),t.close();return}e.onOpen&&e.onOpen(o)},e.onMessage&&(t.onmessage=e.onMessage),t.onclose=function(o){t.onmessage=t.onopen=t.onclose=t.onerror=null,n.updateNetworkState("disconnected"),n.doNotConnect||n.waitReconnect(),e.onClose&&e.onClose(o)},t.onerror=function(o){n.close(),n.doNotConnect||n.waitReconnect(),e.onError&&e.onError(o)},this.connection=t};Qa.prototype.closeAndClean=function(){if(this.connection){var e=this.connection;e.onmessage=e.onopen=e.onclose=e.onerror=null;try{e.close()}catch{}this.updateNetworkState("disconnected")}};Qa.prototype.waitReconnect=function(){if(!(this.state==="connected"||this.state==="connecting")&&!this.doNotConnect){this.updateNetworkState("connecting");var e=this;this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(function(){e.connect()},this.reconnectInterval),this.reconnectInterval<1e3?this.reconnectInterval=1e3:this.reconnectInterval=this.reconnectInterval*2,this.reconnectInterval>2e3&&navigator.onLine&&(e.reconnectInterval=2e3)}};Qa.prototype.send=function(e){if(this.state!=="connected"){console.trace('networkState is "'+this.state+'", can not send '+e);return}this.connection.send(e)};Qa.prototype.close=function(){this.updateNetworkState("disconnected"),this.connection.close()};var Wb=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)};function Li(e,t){this.subscribed=!1,this.dispatcher=new jb,this.connection=e,this.channelName=t,this.subscribeCb=null,this.queue=[],Wb(this,this.dispatcher);var n=["on","off","emit"];for(var o in n)this[n[o]]=this.dispatcher[n[o]]}Li.prototype.processSubscribe=function(){this.connection.state==="connected"&&this.subscribeCb()};Li.prototype.processQueue=function(){if(!(this.connection.state!=="connected"||!this.subscribed)){for(var e in this.queue)this.queue[e]();this.queue=[]}};Li.prototype.trigger=function(e,t){if(e.indexOf("client-")!==0)throw new Error("Event '"+e+"' should start with 'client-'");var n=this;this.queue.push(function(){n.connection.send(JSON.stringify({event:e,data:t,channel:n.channelName}))}),this.processQueue()};var fu=function(){var e={};function t(y){for(var C=[],E=1;E0)for(o=0;o=200&&n<300?e.success&&e.success(t.responseText,t.responseXML):e.error&&e.error(n)}},e.type==="GET"?(t.open("GET",e.url+"?"+params,!0),t.send(null)):e.type==="POST"&&(t.open("POST",e.url,!0),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.send(params))}function Mde(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}const Tde={class:"common-layout"},$de={__name:"index",setup(e){const t=yd(),o=new Oo({url:"wss://multi-store.lihaink.cn/pull",app_key:"2ce3ce22329517213caa7dad261f5695"}).subscribe(`store_merchant_${t.userInfo.store_id}`);o.on("message",function(a){var l,s,u,c,f,d,p;console.log("收到消息--",a);try{((l=a==null?void 0:a.content)==null?void 0:l.type)=="cash_register"&&((s=a==null?void 0:a.content)==null?void 0:s.msg)=="您有一笔订单已支付"&&Jt.emit("pay_success",(u=a==null?void 0:a.content)==null?void 0:u.data),((c=a==null?void 0:a.content)==null?void 0:c.type)=="store_merchant"&&((f=a==null?void 0:a.content)==null?void 0:f.msg)=="您有一笔新的订单"&&Jt.emit("new_order",a==null?void 0:a.content),((d=a==null?void 0:a.content)==null?void 0:d.type)=="platform_print"&&Jt.emit("letPrintReceipt",(p=a==null?void 0:a.content)==null?void 0:p.data)}catch{}}),o.on("close",function(){});const r=a=>{console.log("按下",a.keyCode),a.keyCode==16&&Jt.emit("shift"),a.keyCode==120&&Jt.emit("F9"),a.keyCode==13&&Jt.emit("enter"),a.keyCode==37&&Jt.emit("left"),a.keyCode==39&&Jt.emit("right"),a.keyCode==38&&Jt.emit("up"),a.keyCode==40&&Jt.emit("down"),a.keyCode==46&&Jt.emit("delete")};return et(()=>{window.addEventListener("keydown",r),console.log("开启键盘监听")}),xo(()=>{window.removeEventListener("keydown",r),console.log("关闭键盘监听")}),(a,l)=>{const s=Ze("el-header"),u=Ze("el-aside"),c=Ze("router-view"),f=Ze("el-main"),d=Ze("el-container");return b(),M("div",Tde,[W(d,null,{default:X(()=>[W(s,null,{default:X(()=>[W(mde)]),_:1}),W(d,null,{default:X(()=>[W(u,{width:"6.25rem"},{default:X(()=>[W(Cde)]),_:1}),W(f,{style:{color:"#333"}},{default:X(()=>[W(c,{class:"my-main"},{default:X(({Component:p})=>[W(nn,{name:"el-zoom-in-top"},{default:X(()=>[(b(),le(st(p)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})])}}},Ode=wv($de,[["__scopeId","data-v-a17bc345"]]),Ade=[{path:"/",name:"layout",component:Ode,redirect:"/saleHome",meta:{title:"里海收银系统"},children:[{path:"/saleHome",name:"saleHome",meta:{title:"收银"},component:()=>yo(()=>import("./index-BMKMLBt4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)},{path:"/saleOrder",name:"saleOrder",meta:{title:"收银订单"},component:()=>yo(()=>import("./index-GpW-BMFV.js"),__vite__mapDeps([10,1,3,7,8,4,11]),import.meta.url)},{path:"/order",name:"order",meta:{title:"线上采购"},component:()=>yo(()=>import("./index-CSaQTX_c.js"),__vite__mapDeps([12,1,3,4,13,8]),import.meta.url)},{path:"/orderCount",name:"orderCount",meta:{title:"订单统计"},component:()=>yo(()=>import("./indexCount-xluBJzuO.js"),__vite__mapDeps([14,15,16]),import.meta.url)},{path:"/wallet",name:"wallet",meta:{title:"提现"},component:()=>yo(()=>import("./index-XEdwB4XS.js"),__vite__mapDeps([17,15,3,4,18]),import.meta.url)},{path:"/convert",name:"convert",meta:{title:"订单核销"},component:()=>yo(()=>import("./index-DFFBOMnM.js"),__vite__mapDeps([19,1,4,20,8]),import.meta.url)},{path:"/putStorage",name:"putStorage",meta:{title:"入库登记"},component:()=>yo(()=>import("./index-B4UGSS-7.js"),__vite__mapDeps([21,6,5,22]),import.meta.url)},{path:"/user",name:"user",meta:{title:"用户"},component:()=>yo(()=>import("./index-BJ49Hkgb.js"),__vite__mapDeps([23,2,3,5,1,4,24]),import.meta.url)},{path:"/test",name:"test",component:()=>yo(()=>import("./test-CwFTindV.js"),__vite__mapDeps([25,26]),import.meta.url)}]},{path:"/login",name:"login",component:()=>yo(()=>import("./index-rsJ_f2nJ.js"),__vite__mapDeps([27,2,28]),import.meta.url)},{path:"/:catchAll(.*)",name:"notFound",component:()=>yo(()=>import("./index-BrKk-7uT.js"),__vite__mapDeps([]),import.meta.url)}],qb=yue({history:Uie(),routes:Ade});qb.beforeEach((e,t,n)=>{const o=yd();e.name!=="login"&&!o.Token?n({name:"login"}):n()});const Ub=qb,Vi=Fg(g9);for(const[e,t]of Object.entries(qL))Vi.component(e,t);const Nde=Cue();Vi.use(Ub);Vi.use(Nde);Vi.use(fie,{locale:pie});Vi.mount("#app");export{cr as A,wt as B,bue as C,hb as D,eo as E,Fe as F,S as G,Db as H,bt as I,Tp as J,un as K,Wce as L,Ub as M,wv as _,xo as a,Ze as b,b as c,le as d,k as e,W as f,mt as g,Nc as h,Mt as i,tt as j,M as k,ht as l,Jt as m,We as n,et as o,ne as p,Vw as q,L as r,Bw as s,Te as t,yd as u,kr as v,X as w,Er as x,i as y,$ as z}; +`,n+=Xce(),n},wv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ii=e=>(Vw("data-v-4e1f74b3"),e=e(),Bw(),e),Qce={class:"my-card"},ede={class:"card-header"},tde={style:{width:"4.5rem"}},nde=Ii(()=>k("div",{class:"card-title"},"泸优采收银系统",-1)),ode={style:{"margin-left":"1rem",display:"flex","flex-direction":"column","justify-content":"center",cursor:"pointer"}},rde={class:"card-body"},ade={style:{"margin-right":"1rem"}},lde=Ii(()=>k("span",null,"打印自检",-1)),sde={key:0,style:{"margin-right":"1rem"}},ide=Ii(()=>k("span",null,"点击自动连接打印机",-1)),ude=Ii(()=>k("div",null,"已连接打印机T58",-1)),cde={style:{"font-size":"0.7rem",color:"#ccc"}},dde=Ii(()=>k("span",null,"打印机已连接,是否重新连接",-1)),fde={class:"dialog-footer"},pde={class:"el-dropdown-link"},vde={class:"info"},hde={__name:"myHeader",setup(e){const t=yd(),n=qce(),o=L({});o.value=t.userInfo;const r=hb(),a=()=>{t.setUserInfo({}),t.setToken(""),r.push("/login")},l=()=>{window.location.reload()},s=L(!1),u=()=>{console.log("连接打印机"),uni.getEnv(h=>{h.h5?eo.error("请使用APP连接打印机"):(n.setConnect(!1),n.setPrintAddress(""),s.value=!1,uni.postMessage({data:{type:"connect"}}))})};let c=!1;const f=(h="")=>{console.log("预打印"),console.log(Sf(h,!0)),!c&&(c=!0,uni.getEnv(m=>{m.h5?(eo.error("请使用APP打印小票"),c=!1):(p(h),setTimeout(()=>{c=!1},4e3))}))},d=(h="")=>{console.log("预打印");let m=Sf(h,!0);console.log(m),!c&&(c=!0,uni.getEnv(v=>{v.h5?(eo.error("请使用APP打印小票"),c=!1):(p(m),setTimeout(()=>{c=!1},4e3))}))},p=(h="")=>{let m="";h===""?(m=Sf({},!0),console.log(m)):m=h,uni.postMessage({data:{type:"print",content:m}})};return et(()=>{Jt.on("printReceipt",f),Jt.on("letPrintReceipt",d),window.addEventListener("message",function(h){if(h.data.type==="connect"){let m=h.data.data.address;n.setConnect(!0),n.setPrintAddress(m),eo.success("已连接打印机T58("+m+")")}},!1)}),xo(()=>{Jt.off("printReceipt",f),Jt.off("letPrintReceipt",d)}),(h,m)=>{const v=Ze("el-image"),_=Ze("Refresh"),g=Ze("el-icon"),w=Ze("el-button"),y=Ze("el-dialog"),C=Ze("el-avatar"),E=Ze("arrow-down"),x=Ze("el-dropdown-item"),A=Ze("el-dropdown-menu"),T=Ze("el-dropdown");return b(),M("div",Qce,[k("div",ede,[k("div",tde,[W(v,{style:{height:"2.5rem",width:"2.5rem",margin:"0 auto"},src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/12c93202404101530591311.png"})]),nde,k("div",ode,[W(g,{color:"#fff",size:"18",onClick:l},{default:X(()=>[W(_)]),_:1})])]),k("div",rde,[k("div",ade,[W(w,{onClick:m[0]||(m[0]=R=>i(Jt).emit("letPrintReceipt")),type:"primary"},{default:X(()=>[lde]),_:1})]),!i(n).is_connect||!i(n).printAddress?(b(),M("div",sde,[W(w,{onClick:u,type:"warning"},{default:X(()=>[ide]),_:1})])):(b(),M("div",{key:1,style:{"margin-right":"1rem","font-size":"0.9rem"},onClick:m[1]||(m[1]=R=>s.value=!0)},[ude,k("div",cde,"("+Te(i(n).printAddress)+")",1)])),W(y,{modelValue:s.value,"onUpdate:modelValue":m[3]||(m[3]=R=>s.value=R),title:"提示",width:"500"},{footer:X(()=>[k("div",fde,[W(w,{onClick:m[2]||(m[2]=R=>s.value=!1)},{default:X(()=>[mt("取消")]),_:1}),W(w,{type:"primary",onClick:u},{default:X(()=>[mt(" 重新连接 ")]),_:1})])]),default:X(()=>[dde]),_:1},8,["modelValue"]),W(T,{trigger:"hover"},{dropdown:X(()=>[W(A,null,{default:X(()=>[W(x,{onClick:a},{default:X(()=>[mt("退出登录")]),_:1})]),_:1})]),default:X(()=>[k("div",pde,[W(C,{src:o.value.avatar,icon:"user-filled"},null,8,["src"]),k("div",vde,[k("div",null,Te(o.value.name),1),k("div",null,"("+Te(o.value.role_name)+")",1)]),W(g,{class:"el-icon--right"},{default:X(()=>[W(E)]),_:1})])]),_:1})])])}}},mde=wv(hde,[["__scopeId","data-v-4e1f74b3"]]),gde=vv("order",()=>{const e=L(localStorage.getItem("orderCount")||0);return{orderCount:e,setOrderCount:n=>{e.value=n,localStorage.setItem("orderCount",n)}}}),yde={class:"my-card"},_de=["onClick"],bde={key:0,class:"badge"},wde={__name:"myAside",setup(e){const t=hb(),n=bue(),o=gde(),r=(d=1)=>{o.setOrderCount(d),u.value.forEach(p=>{p.name=="order"&&(p.count=d)})};let a=!1;const l=d=>{try{if(r(0),eo.success("您有新的订单"),a)return;var p=new Audio("/src/assets/order.mp3");p.play(),a=!0,console.log("播放中"),p.addEventListener("ended",function(){a=!1})}catch(h){console.error(h),a=!1,eo.error("播放失败")}},s=d=>{t.push({name:d})},u=L([{name:"saleHome",title:"收银",ico:"Sell",count:0},{name:"saleOrder",title:"收银订单",ico:"DataLine",count:0},{name:"order",title:"线上订单",ico:"DataAnalysis",count:0},{name:"convert",title:"订单核销",ico:"FullScreen",count:0},{name:"putStorage",title:"入库登记",ico:"Van",count:0},{name:"user",title:"用户",ico:"User",count:0}]),c=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==0&&(d=u.value.length),d>0&&s(u.value[d-1].name)},f=()=>{let d=u.value.findIndex(p=>p.name==n.name);d==u.value.length-1&&(d=-1),d{Jt.on("up",c),Jt.on("down",f),Jt.on("new_order",l),Jt.on("set-order-count-zero",()=>{r(0)}),r(0)}),xo(()=>{Jt.off("aup",c),Jt.off("adown",f),Jt.off("new_order",l),Jt.on("set-order-count-zero")}),(d,p)=>{const h=Ze("el-icon");return b(),M("div",yde,[(b(!0),M(Fe,null,ht(u.value,m=>(b(),M("div",{key:m.name,class:$(["list-item",{active:i(n).name==m.name}]),onClick:v=>s(m.name)},[W(h,{size:"2rem"},{default:X(()=>[(b(),le(st(m.ico)))]),_:2},1024),k("div",null,Te(m.title),1),m.count?(b(),M("div",bde,Te(m.count),1)):ne("",!0)],10,_de))),128))])}}},Cde=wv(wde,[["__scopeId","data-v-c2e7e17b"]]),Oo=function e(t){this.doNotConnect=0,t=t||{},t.heartbeat=t.heartbeat||25e3,t.pingTimeout=t.pingTimeout||1e4,this.config=t,this.uid=0,this.channels={},this.connection=null,this.pingTimeoutTimer=0,e.instances.push(this),this.createConnection()};Oo.prototype.checkoutPing=function(){var e=this;e.checkoutPingTimer&&clearTimeout(e.checkoutPingTimer),e.checkoutPingTimer=setTimeout(function(){e.checkoutPingTimer=0,e.connection.state==="connected"&&(e.connection.send('{"event":"pusher:ping","data":{}}'),e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),e.pingTimeoutTimer=setTimeout(function(){e.connection.closeAndClean(),e.connection.doNotConnect||e.connection.waitReconnect()},e.config.pingTimeout))},this.config.heartbeat)};Oo.prototype.channel=function(e){return this.channels.find(e)};Oo.prototype.allChannels=function(){return this.channels.all()};Oo.prototype.createConnection=function(){if(this.connection)throw Error("Connection already exist");var e=this,t=this.config.url;function n(){for(var o in e.channels)e.channels[o].subscribed=!1}this.connection=new Qa({url:t,app_key:this.config.app_key,onOpen:function(){e.connection.state="connecting",e.checkoutPing()},onMessage:function(o){e.pingTimeoutTimer&&(clearTimeout(e.pingTimeoutTimer),e.pingTimeoutTimer=0),o=JSON.parse(o.data);var r=o.event,a=o.channel;if(r==="pusher:pong"){e.checkoutPing();return}if(r==="pusher:error")throw Error(o.data.message);var l=JSON.parse(o.data),s;if(r==="pusher_internal:subscription_succeeded"){s=e.channels[a],s.subscribed=!0,s.processQueue(),s.emit("pusher:subscription_succeeded");return}if(r==="pusher:connection_established"&&(e.connection.socket_id=l.socket_id,e.connection.updateNetworkState("connected"),e.subscribeAll()),r.indexOf("pusher_internal")!==-1){console.log("Event '"+r+"' not implement");return}s=e.channels[a],s&&s.emit(r,l)},onClose:function(){n()},onError:function(){n()}})};Oo.prototype.disconnect=function(){this.connection.doNotConnect=1,this.connection.close()};Oo.prototype.subscribeAll=function(){if(this.connection.state==="connected")for(var e in this.channels)this.channels[e].processSubscribe()};Oo.prototype.unsubscribe=function(e){this.channels[e]&&(delete this.channels[e],this.connection.state==="connected"&&this.connection.send(JSON.stringify({event:"pusher:unsubscribe",data:{channel:e}})))};Oo.prototype.unsubscribeAll=function(){var e=Object.keys(this.channels);if(e.length&&this.connection.state==="connected")for(var t in this.channels)this.unsubscribe(t);this.channels={}};Oo.prototype.subscribe=function(e){return this.channels[e]?this.channels[e]:e.indexOf("private-")===0?Kb(e,this):e.indexOf("presence-")===0?kde(e,this):Sde(e,this)};Oo.instances=[];function Sde(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){t.connection.send(JSON.stringify({event:"pusher:subscribe",data:{channel:e}}))},n.processSubscribe(),n}function Kb(e,t){var n=new Li(t.connection,e);return t.channels[e]=n,n.subscribeCb=function(){xde({url:t.config.auth,type:"POST",data:{channel_name:e,socket_id:t.connection.socket_id},success:function(o){o=JSON.parse(o),o.channel=e,t.connection.send(JSON.stringify({event:"pusher:subscribe",data:o}))},error:function(o){throw Error(o)}})},n.processSubscribe(),n}function kde(e,t){return Kb(e,t)}function Qa(e){this.dispatcher=new jb,Wb(this,this.dispatcher);var t=["on","off","emit"];for(var n in t)this[t[n]]=this.dispatcher[t[n]];this.options=e,this.state="initialized",this.doNotConnect=0,this.reconnectInterval=1,this.connection=null,this.reconnectTimer=0,this.connect()}Qa.prototype.updateNetworkState=function(e){var t=this.state;this.state=e,t!==e&&this.emit("state_change",{previous:t,current:e})};Qa.prototype.connect=function(){if(this.doNotConnect=0,this.state==="connected"){console.log('networkState is "'+this.state+'" and do not need connect');return}this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=0),this.closeAndClean();var e=this.options,t=new WebSocket(e.url+"/app/"+e.app_key);this.updateNetworkState("connecting");var n=this;t.onopen=function(o){if(n.reconnectInterval=1,n.doNotConnect){n.updateNetworkState("disconnected"),t.close();return}e.onOpen&&e.onOpen(o)},e.onMessage&&(t.onmessage=e.onMessage),t.onclose=function(o){t.onmessage=t.onopen=t.onclose=t.onerror=null,n.updateNetworkState("disconnected"),n.doNotConnect||n.waitReconnect(),e.onClose&&e.onClose(o)},t.onerror=function(o){n.close(),n.doNotConnect||n.waitReconnect(),e.onError&&e.onError(o)},this.connection=t};Qa.prototype.closeAndClean=function(){if(this.connection){var e=this.connection;e.onmessage=e.onopen=e.onclose=e.onerror=null;try{e.close()}catch{}this.updateNetworkState("disconnected")}};Qa.prototype.waitReconnect=function(){if(!(this.state==="connected"||this.state==="connecting")&&!this.doNotConnect){this.updateNetworkState("connecting");var e=this;this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(function(){e.connect()},this.reconnectInterval),this.reconnectInterval<1e3?this.reconnectInterval=1e3:this.reconnectInterval=this.reconnectInterval*2,this.reconnectInterval>2e3&&navigator.onLine&&(e.reconnectInterval=2e3)}};Qa.prototype.send=function(e){if(this.state!=="connected"){console.trace('networkState is "'+this.state+'", can not send '+e);return}this.connection.send(e)};Qa.prototype.close=function(){this.updateNetworkState("disconnected"),this.connection.close()};var Wb=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)};function Li(e,t){this.subscribed=!1,this.dispatcher=new jb,this.connection=e,this.channelName=t,this.subscribeCb=null,this.queue=[],Wb(this,this.dispatcher);var n=["on","off","emit"];for(var o in n)this[n[o]]=this.dispatcher[n[o]]}Li.prototype.processSubscribe=function(){this.connection.state==="connected"&&this.subscribeCb()};Li.prototype.processQueue=function(){if(!(this.connection.state!=="connected"||!this.subscribed)){for(var e in this.queue)this.queue[e]();this.queue=[]}};Li.prototype.trigger=function(e,t){if(e.indexOf("client-")!==0)throw new Error("Event '"+e+"' should start with 'client-'");var n=this;this.queue.push(function(){n.connection.send(JSON.stringify({event:e,data:t,channel:n.channelName}))}),this.processQueue()};var fu=function(){var e={};function t(y){for(var C=[],E=1;E0)for(o=0;o=200&&n<300?e.success&&e.success(t.responseText,t.responseXML):e.error&&e.error(n)}},e.type==="GET"?(t.open("GET",e.url+"?"+params,!0),t.send(null)):e.type==="POST"&&(t.open("POST",e.url,!0),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.send(params))}function Mde(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}const Tde={class:"common-layout"},$de={__name:"index",setup(e){const t=yd(),o=new Oo({url:"wss://multi-store.lihaink.cn/pull",app_key:"2ce3ce22329517213caa7dad261f5695"}).subscribe(`store_merchant_${t.userInfo.store_id}`);o.on("message",function(a){var l,s,u,c,f,d,p;console.log("收到消息--",a);try{((l=a==null?void 0:a.content)==null?void 0:l.type)=="cash_register"&&((s=a==null?void 0:a.content)==null?void 0:s.msg)=="您有一笔订单已支付"&&Jt.emit("pay_success",(u=a==null?void 0:a.content)==null?void 0:u.data),((c=a==null?void 0:a.content)==null?void 0:c.type)=="store_merchant"&&((f=a==null?void 0:a.content)==null?void 0:f.msg)=="您有一笔新的订单"&&Jt.emit("new_order",a==null?void 0:a.content),((d=a==null?void 0:a.content)==null?void 0:d.type)=="platform_print"&&Jt.emit("letPrintReceipt",(p=a==null?void 0:a.content)==null?void 0:p.data)}catch{}}),o.on("close",function(){});const r=a=>{console.log("按下",a.keyCode),a.keyCode==16&&Jt.emit("shift"),a.keyCode==120&&Jt.emit("F9"),a.keyCode==13&&Jt.emit("enter"),a.keyCode==37&&Jt.emit("left"),a.keyCode==39&&Jt.emit("right"),a.keyCode==38&&Jt.emit("up"),a.keyCode==40&&Jt.emit("down"),a.keyCode==46&&Jt.emit("delete")};return et(()=>{window.addEventListener("keydown",r),console.log("开启键盘监听")}),xo(()=>{window.removeEventListener("keydown",r),console.log("关闭键盘监听")}),(a,l)=>{const s=Ze("el-header"),u=Ze("el-aside"),c=Ze("router-view"),f=Ze("el-main"),d=Ze("el-container");return b(),M("div",Tde,[W(d,null,{default:X(()=>[W(s,null,{default:X(()=>[W(mde)]),_:1}),W(d,null,{default:X(()=>[W(u,{width:"6.25rem"},{default:X(()=>[W(Cde)]),_:1}),W(f,{style:{color:"#333"}},{default:X(()=>[W(c,{class:"my-main"},{default:X(({Component:p})=>[W(nn,{name:"el-zoom-in-top"},{default:X(()=>[(b(),le(st(p)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})])}}},Ode=wv($de,[["__scopeId","data-v-a17bc345"]]),Ade=[{path:"/",name:"layout",component:Ode,redirect:"/saleHome",meta:{title:"里海收银系统"},children:[{path:"/saleHome",name:"saleHome",meta:{title:"收银"},component:()=>yo(()=>import("./index-mvvao8ZD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)},{path:"/saleOrder",name:"saleOrder",meta:{title:"收银订单"},component:()=>yo(()=>import("./index-QlXZ6G4J.js"),__vite__mapDeps([10,1,3,7,8,4,11]),import.meta.url)},{path:"/order",name:"order",meta:{title:"线上采购"},component:()=>yo(()=>import("./index-Bjp8iKWj.js"),__vite__mapDeps([12,1,3,4,13,8]),import.meta.url)},{path:"/orderCount",name:"orderCount",meta:{title:"订单统计"},component:()=>yo(()=>import("./indexCount-5PH9xZfJ.js"),__vite__mapDeps([14,15,16]),import.meta.url)},{path:"/wallet",name:"wallet",meta:{title:"提现"},component:()=>yo(()=>import("./index-CbGMo1br.js"),__vite__mapDeps([17,15,3,4,18]),import.meta.url)},{path:"/convert",name:"convert",meta:{title:"订单核销"},component:()=>yo(()=>import("./index-DRtqUpzG.js"),__vite__mapDeps([19,1,4,20,8]),import.meta.url)},{path:"/putStorage",name:"putStorage",meta:{title:"入库登记"},component:()=>yo(()=>import("./index-CoHhCr11.js"),__vite__mapDeps([21,6,5,22]),import.meta.url)},{path:"/user",name:"user",meta:{title:"用户"},component:()=>yo(()=>import("./index-c0nzEvII.js"),__vite__mapDeps([23,2,3,5,1,4,24]),import.meta.url)},{path:"/test",name:"test",component:()=>yo(()=>import("./test-C1w-f_el.js"),__vite__mapDeps([25,26]),import.meta.url)}]},{path:"/login",name:"login",component:()=>yo(()=>import("./index-BbprSBiW.js"),__vite__mapDeps([27,2,28]),import.meta.url)},{path:"/:catchAll(.*)",name:"notFound",component:()=>yo(()=>import("./index-CSoTogo0.js"),__vite__mapDeps([]),import.meta.url)}],qb=yue({history:Uie(),routes:Ade});qb.beforeEach((e,t,n)=>{const o=yd();e.name!=="login"&&!o.Token?n({name:"login"}):n()});const Ub=qb,Vi=Fg(g9);for(const[e,t]of Object.entries(qL))Vi.component(e,t);const Nde=Cue();Vi.use(Ub);Vi.use(Nde);Vi.use(fie,{locale:pie});Vi.mount("#app");export{cr as A,wt as B,bue as C,hb as D,eo as E,Fe as F,S as G,Db as H,bt as I,Tp as J,un as K,Wce as L,Ub as M,wv as _,xo as a,Ze as b,b as c,le as d,k as e,W as f,mt as g,Nc as h,Mt as i,tt as j,M as k,ht as l,Jt as m,We as n,et as o,ne as p,Vw as q,L as r,Bw as s,Te as t,yd as u,kr as v,X as w,Er as x,i as y,$ as z}; diff --git a/build/assets/index-GpW-BMFV.js b/build/assets/index-QlXZ6G4J.js similarity index 98% rename from build/assets/index-GpW-BMFV.js rename to build/assets/index-QlXZ6G4J.js index 433dd9c..e8a3d84 100644 --- a/build/assets/index-GpW-BMFV.js +++ b/build/assets/index-QlXZ6G4J.js @@ -1 +1 @@ -import{_ as G,u as H,r as n,o as J,m as S,a as Q,b as v,h as R,c as s,k as o,e,f as d,w as y,g as $,i as te,j as F,F as A,l as E,z as K,t as l,d as j,p as g,q as W,s as X,D as se}from"./index-B8EEu-LB.js";import{s as oe,d as ae}from"./store-BHLkswxT.js";import{h as q}from"./moment-Cl4UOzQZ.js";import{p as ie}from"./pay-DJzT1N1_.js";import{p as le}from"./padding-CBqAITKo.js";/* empty css */const ne=p=>(W("data-v-74a6e87a"),p=p(),X(),p),de={class:"my-order"},_e={class:"header-nav"},ce=ne(()=>e("div",{class:"nav-item"},l("收银订单"),-1)),re={class:"nav-item-btn"},ue={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},pe=["onClick"],fe={class:"top"},me={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},ge={key:0,class:"shop-name"},ke={class:"right"},$e={class:"money"},be={class:"count"},we={class:"bottom"},De={class:"pay"},Se={key:0},Ve={key:1},Ye={key:2},Ce={key:3},xe={key:4},ze={key:5},Pe={key:1,style:{color:"#ff4a00"}},Re={key:0,class:"load-end"},Ie={key:1,class:"load-end"},Me={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(p,{expose:w}){H(),n([]);const t=n(1),f=r=>{_.value.page_no=1,b.value=!1,h.value=!1,c.value=[],k(!0)};n(null);const m=n(""),I=()=>{_.value.start_time=q(m.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=q(m.value[1]).format("YYYY-MM-DD 23:59:59"),k(!0)},V=r=>r.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:1}),h=n(!1),M=n(0),D=n(0),b=n(!1),c=n([]),k=(r=!1)=>{if(r)_.value.page_no=1;else if(b.value||h.value)return;h.value=!0,t.value==1&&(_.value.paid=null),t.value==2&&(_.value.paid=0),oe(_.value).then(i=>{r?c.value=i.data.lists:c.value=[...c.value,...i.data.lists],_.value.page_no==1&&c.value.length>0&&S.emit("set-sale-order-detail",c.value[0]),i.data.lists.length<_.value.page_size?b.value=!0:_.value.page_no++,D.value=0,console.log(_.value.page_no),M.value=i.data.count,h.value=!1}).catch(i=>{b.value=!0,h.value=!1})},L=(r,i)=>{D.value=i,S.emit("set-sale-order-detail",r)};return w({getOrderList:k}),J(()=>{S.on("update-sale-order-detail",r=>{console.log("==="),c.value[D.value].paid=1})}),Q(()=>{S.off("update-sale-order-detail")}),(r,i)=>{const Y=v("el-radio-button"),B=v("el-radio-group"),N=v("el-date-picker"),T=v("el-button"),C=v("el-input"),x=v("el-image"),z=v("spna"),P=R("loading"),Z=R("infinite-scroll");return s(),o("div",de,[e("div",_e,[ce,e("div",re,[d(B,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=a=>t.value=a),onChange:f,size:"small"},{default:y(()=>[d(Y,{value:1},{default:y(()=>[$("全部")]),_:1}),d(Y,{value:2},{default:y(()=>[$("未支付")]),_:1})]),_:1},8,["modelValue"]),d(N,{modelValue:m.value,"onUpdate:modelValue":i[1]||(i[1]=a=>m.value=a),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":V,onChange:I,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",ue,[d(C,{modelValue:_.value.order_id,"onUpdate:modelValue":i[3]||(i[3]=a=>_.value.order_id=a),placeholder:"请输入订单编号",onKeydown:i[4]||(i[4]=te(a=>k(!0),["enter"])),onClear:i[5]||(i[5]=a=>k(!0)),clearable:""},{append:y(()=>[d(T,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:i[2]||(i[2]=a=>k(!0))},{default:y(()=>[$("搜索")]),_:1})]),_:1},8,["modelValue"])]),F((s(),o("div",ve,[(s(!0),o(A,null,E(c.value,(a,U)=>(s(),o("div",{class:K(["item",{"item-active":D.value==U}]),key:U,onClick:O=>L(a,U)},[e("div",fe,[e("div",{class:K(["sn","cahier"])},"单号: "+l(a.order_id),1),e("div",me,l(a.pay_time),1)]),e("div",he,[a.product_info?(s(),o("div",ye,[(s(!0),o(A,null,E(a.product_info.slice(0,5),(O,ee)=>(s(),j(x,{key:ee,src:O.image,class:"shop-img"},null,8,["src"]))),128)),a.product_info.length==1?(s(),o("div",ge,l(a.product_info[0].store_name),1)):g("",!0)])):g("",!0),e("div",ke,[e("div",$e,"¥"+l(a.pay_price),1),e("div",be,"共"+l(a.total_num)+"款商品",1)])]),e("div",we,[e("div",De,[a.paid?(s(),o("div",Se,[$(l(a.paid_name)+" ",1),a.pay_type_name?(s(),j(z,{key:0},{default:y(()=>[$("("+l(a.pay_type_name)+")",1)]),_:2},1024)):a.pay_type==9?(s(),o("span",Ve,"(微信收款)")):a.pay_type==17?(s(),o("span",Ye,"(现金支付)")):a.pay_type==13?(s(),o("span",Ce,"(支付宝收款)")):a.pay_type==3?(s(),o("span",xe,"(余额支付)")):a.pay_type==1?(s(),o("span",ze,"(微信支付)")):g("",!0)])):(s(),o("div",Pe,l(a.paid_name),1))])])],10,pe))),128)),b.value?(s(),o("div",Re,"没有更多了")):g("",!0),h.value?(s(),o("div",Ie,"加载中...")):g("",!0)])),[[P,h.value],[Z,k]])])}}},Le=G(Me,[["__scopeId","data-v-74a6e87a"]]),u=p=>(W("data-v-a7693450"),p=p(),X(),p),Be={class:"my-order"},Ne={key:0,class:"detail"},Te={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ue=u(()=>e("div",{class:"table-title"},"订单信息",-1)),Fe={class:"table-info"},Oe={class:"info-item"},Ae=u(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),Ee={class:"info-item-info"},Ke={class:"info-item"},je=u(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),qe={class:"info-item-info"},Ge={class:"info-item"},He=u(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Je={class:"info-item-info"},Qe={class:"info-item"},We=u(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Xe={class:"info-item-info"},Ze={class:"info-item"},et=u(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),tt={class:"info-item-info"},st={class:"info-item"},ot=u(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),at={class:"info-item-info"},it={class:"info-item"},lt=u(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),nt={class:"info-item-info"},dt={class:"info-item"},_t=u(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ct={class:"info-item-info"},rt={key:0},ut={key:1},vt={key:2},pt={key:3},ft={key:4},mt={key:5},ht={key:0,class:"table-title"},yt={key:1,class:"table-info"},gt={class:"info-item"},kt=u(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),$t={class:"info-item-info"},bt={class:"info-item"},wt=u(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),Dt={class:"info-item-info"},St={class:"info-item"},Vt=u(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),Yt={class:"info-item-info"},Ct={style:{"font-size":"0.9rem"}},xt={style:{color:"#ff4a00"}},zt={style:{display:"flex","align-items":"center"}},Pt={style:{"margin-left":"0.5rem"}},Rt=u(()=>e("div",{style:{height:"8rem"}},null,-1)),It={key:0,class:"footer"},Mt={key:1},Lt={__name:"detail",emits:["rePaySuccess"],setup(p,{emit:w}){H(),se();const t=n({id:""});n([]);const f=n(null),m=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const I=()=>{f.value.setForm({isRePay:!0,data:t.value}),f.value.drawer=!0},V=n({page_no:1,page_size:15,loadend:!1,loading:!1}),_=n([]),h=()=>console.log("触底"),M=()=>{m.value=!0,ae({id:t.value.id}).then(c=>{t.value=c.data,setTimeout(()=>{m.value=!1},200)})},D=w,b=(c=null)=>{setTimeout(()=>{D("rePaySuccess")})};return J(()=>{S.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,V.value.page_no=1,V.value.loadend=!1,V.value.loading=!1,_.value=[],M()})}),Q(()=>{S.off("set-sale-order-detail")}),(c,k)=>{var C;const L=v("el-image"),r=v("el-table-column"),i=v("el-table"),Y=v("el-button"),B=v("el-empty"),N=R("infinite-scroll"),T=R("loading");return s(),o("div",Be,[t.value.id?F((s(),o("div",Ne,[F((s(),o("div",Te,[Ue,e("div",Fe,[e("div",Oe,[Ae,e("div",Ee,l(t.value.order_id),1)]),e("div",Ke,[je,e("div",qe,l(t.value.total_num||0),1)]),e("div",Ge,[He,e("div",Je,"¥"+l(t.value.pay_price),1)]),e("div",Qe,[We,e("div",Xe,l(t.value.pay_time),1)]),e("div",Ze,[et,e("div",tt,"¥"+l(t.value.deduction_price),1)]),e("div",st,[ot,e("div",at,"¥"+l(t.value.pay_price),1)]),e("div",it,[lt,e("div",nt,l(t.value.pay_time),1)]),e("div",dt,[_t,e("div",ct,[t.value.pay_type_name?(s(),o("span",rt,l(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",ut,"微信收款")):t.value.pay_type==17?(s(),o("span",vt,"现金支付")):t.value.pay_type==13?(s(),o("span",pt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ft,"余额支付")):t.value.pay_type==1?(s(),o("span",mt,"微信支付")):g("",!0)])])]),t.value.uid?(s(),o("div",ht,"用户信息")):g("",!0),t.value.uid?(s(),o("div",yt,[e("div",gt,[kt,e("div",$t,l(t.value.uid),1)]),e("div",bt,[wt,e("div",Dt,l(t.value.nickname),1)]),e("div",St,[Vt,e("div",Yt,l(t.value.mobile),1)])])):g("",!0),e("div",Ct,[$(" 共计 "),e("span",xt,l(((C=t.value.product)==null?void 0:C.length)||" "),1),$(" 款商品 ")]),d(i,{data:t.value.product},{default:y(()=>[d(r,{label:"商品信息"},{default:y(({row:x})=>{var z,P;return[e("div",zt,[d(L,{style:{height:"3rem",width:"3rem"},src:(z=x.cart_info)==null?void 0:z.image},null,8,["src"]),e("span",Pt,l((P=x.cart_info)==null?void 0:P.name),1)])]}),_:1}),d(r,{prop:"cart_info.price",label:"单价",width:"150"}),d(r,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(r,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Rt])),[[N,h]]),t.value.paid?g("",!0):(s(),o("div",It,[d(Y,{type:"primary",size:"large",onClick:I},{default:y(()=>[$("重新支付")]),_:1})]))])),[[T,m.value]]):(s(),o("div",Mt,[d(B)])),d(ie,{ref_key:"payRef",ref:f,onPaySuccess:b},null,512)])}}},Bt=G(Lt,[["__scopeId","data-v-a7693450"]]),Nt={class:"my-card"},Kt={__name:"index",setup(p){const w=n(null),t=()=>{var f;(f=w.value)==null||f.getOrderList(!0)};return(f,m)=>(s(),o("div",Nt,[d(Le,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:w},null,512),d(le),d(Bt,{ref:"detailRef",onRePaySuccess:t},null,512)]))}};export{Kt as default}; +import{_ as G,u as H,r as n,o as J,m as S,a as Q,b as v,h as R,c as s,k as o,e,f as d,w as y,g as $,i as te,j as F,F as A,l as E,z as K,t as l,d as j,p as g,q as W,s as X,D as se}from"./index-DslPK7Nc.js";import{s as oe,d as ae}from"./store-BUqDvNxu.js";import{h as q}from"./moment-Cl4UOzQZ.js";import{p as ie}from"./pay-Dn2JkHh_.js";import{p as le}from"./padding-CQ0n6974.js";/* empty css */const ne=p=>(W("data-v-74a6e87a"),p=p(),X(),p),de={class:"my-order"},_e={class:"header-nav"},ce=ne(()=>e("div",{class:"nav-item"},l("收银订单"),-1)),re={class:"nav-item-btn"},ue={class:"header-input"},ve={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},pe=["onClick"],fe={class:"top"},me={class:"create-time"},he={class:"shop"},ye={key:0,class:"left"},ge={key:0,class:"shop-name"},ke={class:"right"},$e={class:"money"},be={class:"count"},we={class:"bottom"},De={class:"pay"},Se={key:0},Ve={key:1},Ye={key:2},Ce={key:3},xe={key:4},ze={key:5},Pe={key:1,style:{color:"#ff4a00"}},Re={key:0,class:"load-end"},Ie={key:1,class:"load-end"},Me={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(p,{expose:w}){H(),n([]);const t=n(1),f=r=>{_.value.page_no=1,b.value=!1,h.value=!1,c.value=[],k(!0)};n(null);const m=n(""),I=()=>{_.value.start_time=q(m.value[0]).format("YYYY-MM-DD 00:00:00"),_.value.end_time=q(m.value[1]).format("YYYY-MM-DD 23:59:59"),k(!0)},V=r=>r.getTime()>Date.now(),_=n({page_no:1,page_size:20,order_id:"",start_time:"",end_time:"",is_sashier:1}),h=n(!1),M=n(0),D=n(0),b=n(!1),c=n([]),k=(r=!1)=>{if(r)_.value.page_no=1;else if(b.value||h.value)return;h.value=!0,t.value==1&&(_.value.paid=null),t.value==2&&(_.value.paid=0),oe(_.value).then(i=>{r?c.value=i.data.lists:c.value=[...c.value,...i.data.lists],_.value.page_no==1&&c.value.length>0&&S.emit("set-sale-order-detail",c.value[0]),i.data.lists.length<_.value.page_size?b.value=!0:_.value.page_no++,D.value=0,console.log(_.value.page_no),M.value=i.data.count,h.value=!1}).catch(i=>{b.value=!0,h.value=!1})},L=(r,i)=>{D.value=i,S.emit("set-sale-order-detail",r)};return w({getOrderList:k}),J(()=>{S.on("update-sale-order-detail",r=>{console.log("==="),c.value[D.value].paid=1})}),Q(()=>{S.off("update-sale-order-detail")}),(r,i)=>{const Y=v("el-radio-button"),B=v("el-radio-group"),N=v("el-date-picker"),T=v("el-button"),C=v("el-input"),x=v("el-image"),z=v("spna"),P=R("loading"),Z=R("infinite-scroll");return s(),o("div",de,[e("div",_e,[ce,e("div",re,[d(B,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=a=>t.value=a),onChange:f,size:"small"},{default:y(()=>[d(Y,{value:1},{default:y(()=>[$("全部")]),_:1}),d(Y,{value:2},{default:y(()=>[$("未支付")]),_:1})]),_:1},8,["modelValue"]),d(N,{modelValue:m.value,"onUpdate:modelValue":i[1]||(i[1]=a=>m.value=a),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间",size:"small","value-format":"YYYY/MM/DD","disabled-date":V,onChange:I,clearable:!1,style:{width:"14rem","margin-left":"1rem"}},null,8,["modelValue"])])]),e("div",ue,[d(C,{modelValue:_.value.order_id,"onUpdate:modelValue":i[3]||(i[3]=a=>_.value.order_id=a),placeholder:"请输入订单编号",onKeydown:i[4]||(i[4]=te(a=>k(!0),["enter"])),onClear:i[5]||(i[5]=a=>k(!0)),clearable:""},{append:y(()=>[d(T,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:i[2]||(i[2]=a=>k(!0))},{default:y(()=>[$("搜索")]),_:1})]),_:1},8,["modelValue"])]),F((s(),o("div",ve,[(s(!0),o(A,null,E(c.value,(a,U)=>(s(),o("div",{class:K(["item",{"item-active":D.value==U}]),key:U,onClick:O=>L(a,U)},[e("div",fe,[e("div",{class:K(["sn","cahier"])},"单号: "+l(a.order_id),1),e("div",me,l(a.pay_time),1)]),e("div",he,[a.product_info?(s(),o("div",ye,[(s(!0),o(A,null,E(a.product_info.slice(0,5),(O,ee)=>(s(),j(x,{key:ee,src:O.image,class:"shop-img"},null,8,["src"]))),128)),a.product_info.length==1?(s(),o("div",ge,l(a.product_info[0].store_name),1)):g("",!0)])):g("",!0),e("div",ke,[e("div",$e,"¥"+l(a.pay_price),1),e("div",be,"共"+l(a.total_num)+"款商品",1)])]),e("div",we,[e("div",De,[a.paid?(s(),o("div",Se,[$(l(a.paid_name)+" ",1),a.pay_type_name?(s(),j(z,{key:0},{default:y(()=>[$("("+l(a.pay_type_name)+")",1)]),_:2},1024)):a.pay_type==9?(s(),o("span",Ve,"(微信收款)")):a.pay_type==17?(s(),o("span",Ye,"(现金支付)")):a.pay_type==13?(s(),o("span",Ce,"(支付宝收款)")):a.pay_type==3?(s(),o("span",xe,"(余额支付)")):a.pay_type==1?(s(),o("span",ze,"(微信支付)")):g("",!0)])):(s(),o("div",Pe,l(a.paid_name),1))])])],10,pe))),128)),b.value?(s(),o("div",Re,"没有更多了")):g("",!0),h.value?(s(),o("div",Ie,"加载中...")):g("",!0)])),[[P,h.value],[Z,k]])])}}},Le=G(Me,[["__scopeId","data-v-74a6e87a"]]),u=p=>(W("data-v-a7693450"),p=p(),X(),p),Be={class:"my-order"},Ne={key:0,class:"detail"},Te={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},Ue=u(()=>e("div",{class:"table-title"},"订单信息",-1)),Fe={class:"table-info"},Oe={class:"info-item"},Ae=u(()=>e("div",{class:"info-item-title"},"订单编号:",-1)),Ee={class:"info-item-info"},Ke={class:"info-item"},je=u(()=>e("div",{class:"info-item-title"},"商品款数:",-1)),qe={class:"info-item-info"},Ge={class:"info-item"},He=u(()=>e("div",{class:"info-item-title"},"商品总价:",-1)),Je={class:"info-item-info"},Qe={class:"info-item"},We=u(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Xe={class:"info-item-info"},Ze={class:"info-item"},et=u(()=>e("div",{class:"info-item-title"},"优惠抵扣:",-1)),tt={class:"info-item-info"},st={class:"info-item"},ot=u(()=>e("div",{class:"info-item-title"},"实际支付:",-1)),at={class:"info-item-info"},it={class:"info-item"},lt=u(()=>e("div",{class:"info-item-title"},"支付时间:",-1)),nt={class:"info-item-info"},dt={class:"info-item"},_t=u(()=>e("div",{class:"info-item-title"},"支付方式:",-1)),ct={class:"info-item-info"},rt={key:0},ut={key:1},vt={key:2},pt={key:3},ft={key:4},mt={key:5},ht={key:0,class:"table-title"},yt={key:1,class:"table-info"},gt={class:"info-item"},kt=u(()=>e("div",{class:"info-item-title"},"用户ID:",-1)),$t={class:"info-item-info"},bt={class:"info-item"},wt=u(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),Dt={class:"info-item-info"},St={class:"info-item"},Vt=u(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),Yt={class:"info-item-info"},Ct={style:{"font-size":"0.9rem"}},xt={style:{color:"#ff4a00"}},zt={style:{display:"flex","align-items":"center"}},Pt={style:{"margin-left":"0.5rem"}},Rt=u(()=>e("div",{style:{height:"8rem"}},null,-1)),It={key:0,class:"footer"},Mt={key:1},Lt={__name:"detail",emits:["rePaySuccess"],setup(p,{emit:w}){H(),se();const t=n({id:""});n([]);const f=n(null),m=n(!1);n(0),n(0),n(["商品信息","订单详情"]),n(""),n(!1);const I=()=>{f.value.setForm({isRePay:!0,data:t.value}),f.value.drawer=!0},V=n({page_no:1,page_size:15,loadend:!1,loading:!1}),_=n([]),h=()=>console.log("触底"),M=()=>{m.value=!0,ae({id:t.value.id}).then(c=>{t.value=c.data,setTimeout(()=>{m.value=!1},200)})},D=w,b=(c=null)=>{setTimeout(()=>{D("rePaySuccess")})};return J(()=>{S.on("set-sale-order-detail",c=>{console.log("===",c),t.value=c,V.value.page_no=1,V.value.loadend=!1,V.value.loading=!1,_.value=[],M()})}),Q(()=>{S.off("set-sale-order-detail")}),(c,k)=>{var C;const L=v("el-image"),r=v("el-table-column"),i=v("el-table"),Y=v("el-button"),B=v("el-empty"),N=R("infinite-scroll"),T=R("loading");return s(),o("div",Be,[t.value.id?F((s(),o("div",Ne,[F((s(),o("div",Te,[Ue,e("div",Fe,[e("div",Oe,[Ae,e("div",Ee,l(t.value.order_id),1)]),e("div",Ke,[je,e("div",qe,l(t.value.total_num||0),1)]),e("div",Ge,[He,e("div",Je,"¥"+l(t.value.pay_price),1)]),e("div",Qe,[We,e("div",Xe,l(t.value.pay_time),1)]),e("div",Ze,[et,e("div",tt,"¥"+l(t.value.deduction_price),1)]),e("div",st,[ot,e("div",at,"¥"+l(t.value.pay_price),1)]),e("div",it,[lt,e("div",nt,l(t.value.pay_time),1)]),e("div",dt,[_t,e("div",ct,[t.value.pay_type_name?(s(),o("span",rt,l(t.value.pay_type_name),1)):t.value.pay_type==9?(s(),o("span",ut,"微信收款")):t.value.pay_type==17?(s(),o("span",vt,"现金支付")):t.value.pay_type==13?(s(),o("span",pt,"支付宝收款")):t.value.pay_type==3?(s(),o("span",ft,"余额支付")):t.value.pay_type==1?(s(),o("span",mt,"微信支付")):g("",!0)])])]),t.value.uid?(s(),o("div",ht,"用户信息")):g("",!0),t.value.uid?(s(),o("div",yt,[e("div",gt,[kt,e("div",$t,l(t.value.uid),1)]),e("div",bt,[wt,e("div",Dt,l(t.value.nickname),1)]),e("div",St,[Vt,e("div",Yt,l(t.value.mobile),1)])])):g("",!0),e("div",Ct,[$(" 共计 "),e("span",xt,l(((C=t.value.product)==null?void 0:C.length)||" "),1),$(" 款商品 ")]),d(i,{data:t.value.product},{default:y(()=>[d(r,{label:"商品信息"},{default:y(({row:x})=>{var z,P;return[e("div",zt,[d(L,{style:{height:"3rem",width:"3rem"},src:(z=x.cart_info)==null?void 0:z.image},null,8,["src"]),e("span",Pt,l((P=x.cart_info)==null?void 0:P.name),1)])]}),_:1}),d(r,{prop:"cart_info.price",label:"单价",width:"150"}),d(r,{prop:"cart_info.cart_num",label:"数量",width:"150"}),d(r,{prop:"cart_info.pay_price",label:"总价",width:"150"})]),_:1},8,["data"]),Rt])),[[N,h]]),t.value.paid?g("",!0):(s(),o("div",It,[d(Y,{type:"primary",size:"large",onClick:I},{default:y(()=>[$("重新支付")]),_:1})]))])),[[T,m.value]]):(s(),o("div",Mt,[d(B)])),d(ie,{ref_key:"payRef",ref:f,onPaySuccess:b},null,512)])}}},Bt=G(Lt,[["__scopeId","data-v-a7693450"]]),Nt={class:"my-card"},Kt={__name:"index",setup(p){const w=n(null),t=()=>{var f;(f=w.value)==null||f.getOrderList(!0)};return(f,m)=>(s(),o("div",Nt,[d(Le,{style:{"flex-shrink":"0"},ref_key:"orderRef",ref:w},null,512),d(le),d(Bt,{ref:"detailRef",onRePaySuccess:t},null,512)]))}};export{Kt as default}; diff --git a/build/assets/index-c0nzEvII.js b/build/assets/index-c0nzEvII.js new file mode 100644 index 0000000..d7fd345 --- /dev/null +++ b/build/assets/index-c0nzEvII.js @@ -0,0 +1 @@ +import{u as pe,r,B as xe,b,c as o,k as g,f as i,w as u,g as y,F as M,l as se,d as z,E as F,_ as ye,o as he,m as I,a as ge,h as de,e,i as ze,j as ue,z as X,t as k,p as Q,q as be,s as ke,G as Ee,n as _e,D as Ne,J as Be}from"./index-DslPK7Nc.js";import{a as $e,b as qe,c as Te,u as Je,d as Ue,e as Ke,f as Me,g as We,h as Ge,i as He,j as Qe}from"./user-jp6MVT4O.js";import"./moment-Cl4UOzQZ.js";import{r as re}from"./axiosAPI-DYpcg3Yc.js";import{f as Xe,u as Ye,j as Ze}from"./store-BUqDvNxu.js";import{p as el}from"./padding-CQ0n6974.js";function Ae(V){return re.get("/city",{params:V})}function Le(V){return re.get("/area",{params:V})}function De(V){return re.get("/street",{params:V})}function Pe(V){return re.get("/village",{params:V})}function Fe(V){return re.get("/brigade",{params:V})}const ll={class:"add-user"},tl={__name:"add",emits:["close"],setup(V,{expose:s,emit:v}){const w=pe(),D=r(null),c=xe({mobile:"",code:"",real_name:"",user_ship:"",selectedValues:[]}),U=xe({mobile:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}],real_name:[{required:!0,message:"请输入用户姓名",trigger:"blur"}],user_ship:[{required:!0,message:"请选择用户类型",trigger:"change"}],selectedValues:[{required:!0,message:"请选择用户地址",trigger:"change"}]}),O=r([]),j=async(P,d)=>{const h=P.level;let t;if(h!==0&&!P.data.code)return d([]);h===0?(t=await Ae({province_code:51e4}),t=t.data.map(x=>({code:x.city_code,name:x.city_name}))):h===1?(t=await Le({city_code:P.data.code}),t=t.data.map(x=>({code:x.area_code,name:x.area_name}))):h===2?(t=await De({area_code:P.data.code}),t=t.data.map(x=>({code:x.street_code,name:x.street_name}))):h===3?(t=await Pe({street_code:P.data.code}),t=t.data.map(x=>({code:x.village_code,name:x.village_name}))):h===4&&(t=await Fe({village_code:P.data.code}),t=t.data.map(x=>({code:x.id,name:x.brigade_name,leaf:!0}))),d(t)},E={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:j},C=r([]);(()=>{$e().then(P=>{C.value=P.data.lists})})();const J=v,oe=()=>{D.value.validate(async P=>{if(P){let d={};d.mobile=c.mobile,d.code=c.code,d.user_ship=c.user_ship,d.real_name=c.real_name,d.province="510000",d.city=c.selectedValues[0],d.area=c.selectedValues[1],d.street=c.selectedValues[2],d.village=c.selectedValues[3],d.brigade=c.selectedValues[4],d.store_id=w.userInfo.store_id,qe(d).then(h=>{J("close")})}})},ee=()=>{D.value.validateField("mobile",P=>{P&&Te({mobile:c.mobile}).then(d=>{F.success("发送成功")}).catch(d=>{F.error("发送失败")})})};return s({addUser:oe}),(P,d)=>{const h=b("el-input"),t=b("el-form-item"),x=b("el-button"),ae=b("el-option"),N=b("el-select"),le=b("el-cascader"),R=b("el-form");return o(),g("div",ll,[i(R,{model:c,rules:U,ref_key:"formDataRef",ref:D,"label-width":"80px"},{default:u(()=>[i(t,{label:"用户电话",prop:"mobile"},{default:u(()=>[i(h,{modelValue:c.mobile,"onUpdate:modelValue":d[0]||(d[0]=$=>c.mobile=$),placeholder:"请输入用户电话"},null,8,["modelValue"])]),_:1}),i(t,{label:"验证码",prop:"code"},{default:u(()=>[i(h,{modelValue:c.code,"onUpdate:modelValue":d[1]||(d[1]=$=>c.code=$),placeholder:"请输入验证码",style:{flex:"1"}},null,8,["modelValue"]),i(x,{type:"primary",style:{"margin-left":"1rem"},onClick:ee},{default:u(()=>[y("获取验证码")]),_:1})]),_:1}),i(t,{label:"用户姓名",prop:"real_name"},{default:u(()=>[i(h,{modelValue:c.real_name,"onUpdate:modelValue":d[2]||(d[2]=$=>c.real_name=$),placeholder:"请输入用户姓名"},null,8,["modelValue"])]),_:1}),i(t,{label:"用户类型",prop:"user_ship"},{default:u(()=>[i(N,{modelValue:c.user_ship,"onUpdate:modelValue":d[3]||(d[3]=$=>c.user_ship=$),placeholder:"请选择用户类型",style:{width:"100%"}},{default:u(()=>[(o(!0),g(M,null,se(C.value,$=>(o(),z(ae,{key:$.id,label:$.title,value:$.id,disabled:$.id==1},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),i(t,{label:"用户地址",prop:"selectedValues"},{default:u(()=>[i(le,{style:{width:"100%"},modelValue:c.selectedValues,"onUpdate:modelValue":d[4]||(d[4]=$=>c.selectedValues=$),options:O.value,props:E,load:j,class:"w-full"},null,8,["modelValue","options"])]),_:1})]),_:1},8,["model","rules"])])}}},Ie=V=>(be("data-v-43704951"),V=V(),ke(),V),al={class:"my-order"},sl={class:"header-nav"},ol=Ie(()=>e("div",{class:"nav-item"},k("用户列表"),-1)),il={class:"header-row"},nl=Ie(()=>e("div",{class:"label"},"用户类型",-1)),ul={class:"header-input"},dl={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},rl=["onClick"],cl={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},vl={class:"top flex"},_l={class:"r-1"},pl={class:"bold"},ml={class:"bottom flex",style:{"justify-content":"space-between"}},fl={class:"red"},yl={class:"red"},hl={class:"red"},gl={class:"red"},bl={key:0,class:"load-end"},kl={key:1,class:"load-end"},$l={class:"dialog-footer"},Vl={__name:"order",props:{isSystem:{type:Boolean,default:!1},source:{type:Number,default:1}},setup(V){const s=pe();r([]);const v=r({page_no:1,page_size:20,mobile:"",user_ship:""}),w=r(!1),D=r(0),c=r(0),U=r(!1),O=r([]),j=(h=!1)=>{if(h)v.value.page_no=1;else if(U.value||w.value)return;w.value=!0,v.value.mobile==""&&v.value.user_ship==""?v.value.store_id=s.userInfo.store_id:v.value.store_id=null,Je(v.value).then(t=>{h?O.value=t.data.lists:O.value=[...O.value,...t.data.lists],v.value.page_no==1&&O.value.length>0&&I.emit("set-user-detail",O.value[0]),t.data.lists.length{U.value=!0,w.value=!1})},E=(h,t)=>{c.value=t,I.emit("set-user-detail",h)},C=r(!1),T=r(null),J=()=>{var h;(h=T.value)==null||h.addUser()},oe=()=>{C.value=!1,j(!0)},ee=r([]);(()=>{$e().then(h=>{ee.value=h.data.lists})})();const d=()=>{v.value.mobile="",v.value.user_ship="",j(!0)};return he(()=>{I.on("re-load-user-list",()=>{j(!0)})}),ge(()=>{I.off("re-load-user-list")}),(h,t)=>{const x=b("Plus"),ae=b("el-icon"),N=b("el-button"),le=b("el-option"),R=b("el-select"),$=b("el-input"),L=b("el-avatar"),S=b("el-tag"),W=b("el-dialog"),K=de("loading"),B=de("infinite-scroll");return o(),g("div",al,[e("div",sl,[ol,i(N,{type:"primary",onClick:t[0]||(t[0]=a=>C.value=!0)},{default:u(()=>[i(ae,null,{default:u(()=>[i(x)]),_:1}),y(" 添加用户")]),_:1})]),e("div",il,[nl,i(R,{modelValue:v.value.user_ship,"onUpdate:modelValue":t[1]||(t[1]=a=>v.value.user_ship=a),onChange:t[2]||(t[2]=a=>j(!0)),placeholder:"请选择用户类型",style:{flex:"1"}},{default:u(()=>[(o(!0),g(M,null,se(ee.value,a=>(o(),z(le,{key:a.id,label:a.title,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i(N,{onClick:d,style:{"margin-left":"1rem"}},{default:u(()=>[y("重置")]),_:1})]),e("div",ul,[i($,{modelValue:v.value.mobile,"onUpdate:modelValue":t[4]||(t[4]=a=>v.value.mobile=a),placeholder:"搜索手机号/ID",onKeydown:t[5]||(t[5]=ze(a=>j(!0),["enter"])),onClear:t[6]||(t[6]=a=>j(!0)),clearable:""},{append:u(()=>[i(N,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:t[3]||(t[3]=a=>j(!0))},{default:u(()=>[y("搜索")]),_:1})]),_:1},8,["modelValue"])]),ue((o(),g("div",dl,[(o(!0),g(M,null,se(O.value,(a,G)=>{var H,Y;return o(),g("div",{class:X(["item",{"item-active":c.value==G}]),key:G,onClick:ne=>E(a,G)},[i(L,{class:"avatar",src:a.avatar},null,8,["src"]),e("div",cl,[e("div",vl,[e("div",_l,[e("span",pl,k(a.nickname),1),e("span",null,k(" (ID:"+a.id+")"),1)]),e("div",null,"手机号: "+k(a.mobile),1)]),e("div",ml,[e("div",null,[y("余额: "),e("span",fl,k(a.now_money),1)]),e("div",null,[y("采购款: "),e("span",yl,k(a.purchase_funds),1)]),e("div",null,[y("返还金: "),e("span",hl,k((H=a.return_money)==null?void 0:H.toFixed(2)),1)]),e("div",null,[y("礼品券: "),e("span",gl,k((Y=a.get_frozen)==null?void 0:Y.toFixed(2)),1)]),e("div",null,[a.user_ship!=1?(o(),z(S,{key:0,type:"primary"},{default:u(()=>[y(k(a.user_ship_name),1)]),_:2},1024)):(o(),z(S,{key:1,type:"success"},{default:u(()=>[y(k(a.user_ship_name),1)]),_:2},1024))])])])],10,rl)}),128)),U.value?(o(),g("div",bl,"没有更多了")):Q("",!0),w.value?(o(),g("div",kl,"加载中...")):Q("",!0)])),[[K,w.value],[B,j]]),i(W,{modelValue:C.value,"onUpdate:modelValue":t[8]||(t[8]=a=>C.value=a),title:"添加用户",width:"600"},{footer:u(()=>[e("div",$l,[i(N,{onClick:t[7]||(t[7]=a=>C.value=!1)},{default:u(()=>[y("取消")]),_:1}),i(N,{type:"primary",onClick:J},{default:u(()=>[y(" 添加 ")]),_:1})])]),default:u(()=>[i(tl,{ref_key:"addRef",ref:T,onClose:oe},null,512)]),_:1},8,["modelValue"])])}}},wl=ye(Vl,[["__scopeId","data-v-43704951"]]),ie=V=>(be("data-v-7b0b3630"),V=V(),ke(),V),Cl=ie(()=>e("h4",null,"选择支付方式",-1)),Sl={class:"dra-body"},xl={class:"header"},Ul={style:{display:"inline-block"}},zl=ie(()=>e("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),Al={style:{color:"#f5222d","padding-bottom":"2rem"}},Ll={style:{"font-size":"1.6rem"}},Dl={key:0,"element-loading-text":"支付中",class:"card1"},Pl=ie(()=>e("div",{class:"tips"},null,-1)),Fl={key:1,class:"card2"},Il={class:"drawer-body"},Rl={class:"counter"},Ol={class:"received"},jl={key:0},El={key:1,style:{"font-size":"1rem",color:"#999"}},Nl={key:0,class:"balance"},Bl={class:"money"},ql=ie(()=>e("div",{class:"tips"},"按回车(Enter)确认支付",-1)),Tl={key:1,class:"balance"},Jl=ie(()=>e("div",null,"不够找零, 请支付更多金额",-1)),Kl=ie(()=>e("div",{class:"tips"},"按下小键盘输入金额",-1)),Ml=[Jl,Kl],Wl={class:"keypad"},Gl={class:"left"},Hl={class:"right"},Ql={style:{width:"100%",display:"flex","justify-content":"center"}},Xl={__name:"payUser",emits:["paySuccess"],setup(V,{expose:s,emit:v}){const w=r(!1),D=r(1),c=r(""),U=r("");pe();const O=()=>{R()},j=()=>{_e(()=>{setTimeout(()=>{var l;$.value=!1,c.value="",d.value=!0,(l=U.value)==null||l.focus(),E(D.value)},300)})},E=l=>{D.value=l,console.log(D.value),D.value==2?window.addEventListener("keydown",H):(window.removeEventListener("keydown",H),_e(()=>{var n;c.value="",(n=U.value)==null||n.focus()}))},C=r({price:0,uid:""}),T=r([]),J=r(!1),oe=l=>{C.value=l.data,C.value.total=l.data.price,T.value=l.cart_id,J.value=l.isRePay||!1},ee=l=>{C.value.total=l.price,ae.value=l.order_id},P=v,d=r(!1),h=r(["1","2","3","4","5","6","7","8","9","0","00","."]),t=/^(10|11|12|13|14|15)\d{16}$/,x=/^(25|26|27|28|29|30)\d{14,22}$/,ae=r(""),N=()=>{if($.value=!0,U.value.blur(),J.value)le();else{let l;if(t.test(c.value))l="9";else if(x.test(c.value))l="13";else return $.value=!1,c.value="",U.value.focus(),F.error("请输入正确的支付码");Ue({uid:C.value.uid,price:C.value.price,pay_type:l,auth_code:c.value}).then(n=>{n.data.out_trade_no&&n.msg=="支付成功"?(w.value=!1,F({message:"支付成功",type:"success"}),R(n.data)):n.msg=="用户支付中"&&n.code==1&&(F.warning(n.msg),I.on("pay_success",_=>{F({message:"支付成功",type:"success"}),setTimeout(()=>{I.off("pay_success")},200),w.value=!1,R(_)}))}).catch(n=>{$.value=!1,_e(()=>{var _;(_=U.value)==null||_.focus()})})}},le=()=>{let l=17;if(D.value==1)if(t.test(c.value))l="9";else if(x.test(c.value))l="13";else return $.value=!1,c.value="",U.value.focus(),F.error("请输入正确的支付码");Xe({order_id:C.value.order_id,pay_type:l,auth_code:c.value}).then(n=>{var _;(_=n.msg)!=null&&_.includes("成功")?(w.value=!1,F({message:"支付成功",type:"success"}),R()):n.msg=="用户支付中"&&n.code==1&&(F.warning(n.msg),I.on("pay_success",p=>{F({message:"支付成功",type:"success"}),setTimeout(()=>{I.off("pay_success")},200),w.value=!1,R(p)}))}).catch(n=>{c.value="",$.value=!1,_e(()=>{var _;(_=U.value)==null||_.focus()})})};r(0);const R=l=>{var n;window.removeEventListener("keydown",H),d.value=!1,$.value=!1,c.value="",S.value="",L.value=[],(n=U.value)==null||n.blur(),P("paySuccess",l),w.value=!1},$=r(!1);s({drawer:w,setForm:oe,setRePay:ee,beforeClose:R});const L=r([]),S=r(""),W=Ee(()=>+S.value>0?(S.value-C.value.total).toFixed(2):-1),K=r(!1),B=l=>{l===-1?L.value=[]:L.value.pop(),S.value=L.value.length?L.value.join(""):0},a=l=>{K.value===!1&&(S.value="",K.value=!0);let n=String(S.value).indexOf(".")+1,_=String(S.value).length-n;console.log(n,_),(n===0||_<2)&&(L.value.join("")<=9999999&&L.value.push(l),S.value=L.value.join("")>99999999?99999999:L.value.join(""))},G=()=>{if(W.value===""||W.value===null||W.value===void 0||+S.value<+C.value.total)return F.error("收款金额应该大于等于应收金额");J.value?le():Ue({uid:C.value.uid,price:C.value.price,pay_type:17}).then(l=>{w.value=!1,F({message:l.msg,type:"success"}),E(1),R()}).catch(l=>{$.value=!1})},H=l=>{let _=(l||window.event).keyCode;if(_==37)return E(2);if(_==120)return I.emit("F9");if(_==27)return R();switch(l.stopPropagation(),l.preventDefault(),_){case 96:case 48:a(0);break;case 97:case 49:a(1);break;case 98:case 50:a(2);break;case 99:case 51:a(3);break;case 100:case 52:a(4);break;case 101:case 53:a(5);break;case 102:case 54:a(6);break;case 103:case 55:a(7);break;case 104:case 56:a(8);break;case 105:case 57:a(9);break;case 110:a(".");break;case 190:a(".");break;case 8:B();break;case 13:G();break}},Y=r(!1),ne=()=>{if(!(!w.value||Y.value&&c.value.length>0)&&D.value==2)return E(1)},f=()=>{if(!(!w.value||Y.value&&c.value.length>0)&&D.value==1)return E(2)};return he(()=>{I.on("left",ne),I.on("right",f)}),ge(()=>{I.off("left",ne),I.off("right",f)}),(l,n)=>{const _=b("el-input"),p=b("el-button"),ce=b("Delete"),ve=b("el-icon"),me=b("el-drawer"),fe=de("loading");return o(),z(me,{size:"60rem",modelValue:w.value,"onUpdate:modelValue":n[6]||(n[6]=Z=>w.value=Z),direction:"rtl",onOpen:j,"before-close":R},{header:u(()=>[Cl]),default:u(()=>{var Z;return[e("div",Sl,[e("div",xl,[e("div",{class:X(["left",{active:D.value==1}]),onClick:n[0]||(n[0]=q=>E(1))}," 微信/支付宝 ",2),e("div",{class:X(["right",{active:D.value==2}]),onClick:n[1]||(n[1]=q=>E(2))}," 现金收款 ",2)]),e("div",null,[e("div",Ul,[zl,e("div",Al,[y(" ¥"),e("span",Ll,k((Z=C.value)==null?void 0:Z.price),1)])])]),D.value==1?ue((o(),g("div",Dl,[i(_,{ref_key:"codeRef",ref:U,modelValue:c.value,"onUpdate:modelValue":n[2]||(n[2]=q=>c.value=q),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:ze(N,["enter"]),onFocus:n[3]||(n[3]=q=>Y.value=!0),onBlur:n[4]||(n[4]=q=>Y.value=!1)},null,8,["modelValue"]),Pl])),[[fe,$.value]]):(o(),g("div",Fl,[e("div",Il,[e("div",Rl,[e("div",Ol,[S.value?(o(),g("span",jl,k(S.value),1)):(o(),g("span",El,"按下键盘输入客户支付金额"))]),W.value>=0?(o(),g("div",Nl,[e("div",null,[y(" 需找零(元):"),e("span",Bl,"¥"+k(W.value),1)]),ql])):(o(),g("div",Tl,Ml)),e("div",Wl,[e("div",Gl,[(o(!0),g(M,null,se(h.value,q=>(o(),z(p,{key:q,onClick:Ve=>a(q)},{default:u(()=>[y(k(q),1)]),_:2},1032,["onClick"]))),128))]),e("div",Hl,[i(p,{onClick:B},{default:u(()=>[i(ve,null,{default:u(()=>[i(ce)]),_:1})]),_:1}),i(p,{onClick:n[5]||(n[5]=q=>B(-1))},{default:u(()=>[y("C")]),_:1}),i(p,{class:X(["enter",{"enter-disable":+S.value<+C.value.total}]),disabled:+S.value<+C.value.total,onClick:G},{default:u(()=>[y(" 确认 ")]),_:1},8,["class","disabled"])])])])])]))])]}),footer:u(()=>[e("div",Ql,[i(p,{class:"cancel-btn",onClick:O},{default:u(()=>[y("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},Yl=ye(Xl,[["__scopeId","data-v-7b0b3630"]]),A=V=>(be("data-v-d89a3027"),V=V(),ke(),V),Zl={class:"my-order"},et={class:"header-nav"},lt=["onClick"],tt={key:0,class:"detail"},at={class:"table"},st=A(()=>e("div",{class:"table-title"},"用户信息",-1)),ot={class:"table-info"},it={class:"info-item"},nt=A(()=>e("div",{class:"info-item-title"},"用户余额:",-1)),ut={class:"info-item-info red"},dt={class:"info-item"},rt=A(()=>e("div",{class:"info-item-title"},"采购款:",-1)),ct={class:"info-item-info red"},vt={class:"info-item"},_t=A(()=>e("div",{class:"info-item-title"},"返还金:",-1)),pt={class:"info-item-info red"},mt={class:"info-item"},ft=A(()=>e("div",{class:"info-item-title"},"头像:",-1)),yt={class:"info-item-info"},ht={class:"info-item"},gt=A(()=>e("div",{class:"info-item-title"},"礼品券:",-1)),bt={class:"info-item-info red"},kt={class:"info-item"},$t=A(()=>e("div",{class:"info-item-title"},"冻结礼品券:",-1)),Vt={class:"info-item-info red"},wt={class:"info-item"},Ct=A(()=>e("div",{class:"info-item-title"},"ID:",-1)),St={class:"info-item-info"},xt={class:"info-item"},Ut=A(()=>e("div",{class:"info-item-title"},"用户昵称:",-1)),zt={class:"info-item-info"},At={class:"info-item"},Lt=A(()=>e("div",{class:"info-item-title"},"用户电话:",-1)),Dt={class:"info-item-info"},Pt={class:"info-item"},Ft=A(()=>e("div",{class:"info-item-title"},"用户账号:",-1)),It={class:"info-item-info"},Rt={class:"info-item"},Ot=A(()=>e("div",{class:"info-item-title"},"真实姓名:",-1)),jt={class:"info-item-info"},Et={class:"info-item"},Nt=A(()=>e("div",{class:"info-item-title"},"创建时间:",-1)),Bt={class:"info-item-info"},qt={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Tt=A(()=>e("div",{class:"info-item-title"},"用户类型:",-1)),Jt={class:"info-item-info"},Kt={key:0,class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Mt=A(()=>e("div",{class:"info-item-title"},"用户标签:",-1)),Wt={class:"info-item-info"},Gt={class:"info-item",style:{width:"100%","flex-shrink":"0","align-items":"center"}},Ht=A(()=>e("div",{class:"info-item-title"},"用户地址:",-1)),Qt=A(()=>e("div",{class:"table-title"},[y("供销经营礼包"),e("span",{class:"tips"},"首次购买1000元以上成为行业会员")],-1)),Xt={class:"table-info"},Yt={class:"pay-btn"},Zt=A(()=>e("div",null,"¥1000.00",-1)),ea=[Zt],la=A(()=>e("div",null,"¥2000.00",-1)),ta=[la],aa=A(()=>e("div",null,"¥5000.00",-1)),sa=[aa],oa={key:1,class:"detail"},ia={class:"table","infinite-scroll-distance":300,"infinite-scroll-delay":300,style:{overflow:"auto"},"infinite-scroll-immediate":!1},na={style:{display:"flex","align-items":"center"}},ua={style:{"margin-left":"0.5rem"}},da={key:0,style:{display:"flex","align-items":"center"}},ra={class:"footer"},ca={key:0},va={key:1},_a={key:2},pa={__name:"detail",setup(V){pe(),Ne();const s=r({id:""}),v=r({price:"",type:1}),w=r(null),D=()=>{v.value.type==1?v.value.price="1000":v.value.type==2?v.value.price="2000":v.value.type==3&&(v.value.price="5000"),v.value.type==0&&(v.value.price=Number(v.value.price).toFixed(2)),console.log("支付",v.value),w.value.setForm({data:{uid:s.value.id,price:v.value.price}}),w.value.drawer=!0},c=()=>{console.log("支付成功"),I.emit("re-load-user-list")},U=r(!1),O=r([]);(()=>{$e().then(f=>{O.value=f.data.lists})})();const E=()=>{Me({id:s.value.id,user_ship:s.value.user_ship}).then(f=>{var l;F.success("修改成功"),s.value.user_ship_name=(l=O.value.find(n=>n.id==s.value.user_ship))==null?void 0:l.title,U.value=!1})},C=()=>{U.value=!1},T=r(!1),J=r([]);(()=>{We().then(f=>{J.value=f.data.lists})})();const ee=()=>{Ge({id:s.value.id,label_id:s.value.label_id}).then(f=>{var l;F.success("修改成功"),s.value.label_name=(l=J.value.find(n=>n.label_id==s.value.label_id))==null?void 0:l.label_name,T.value=!1})},P=()=>{T.value=!1},d=r({id:"",province:"",city:"",area:"",street:"",brigade:""}),h=r([]),t=r([]),x=()=>{He({uid:s.value.id}).then(f=>{f.data.village&&(h.value=[f.data.city,f.data.area,f.data.street,f.data.village,+f.data.brigade],t.value=JSON.parse(JSON.stringify(h.value)),d.value=Object.assign(d.value,f.data))})},ae=r([]),N=async(f,l)=>{const n=f.level;let _;if(n!==0&&!f.data.code)return l([]);n===0?(_=await Ae({province_code:51e4}),_=_.data.map(p=>({code:p.city_code,name:p.city_name}))):n===1?(_=await Le({city_code:f.data.code}),_=_.data.map(p=>({code:p.area_code,name:p.area_name}))):n===2?(_=await De({area_code:f.data.code}),_=_.data.map(p=>({code:p.street_code,name:p.street_name}))):n===3?(_=await Pe({street_code:f.data.code}),_=_.data.map(p=>({code:p.village_code,name:p.village_name}))):n===4&&(_=await Fe({village_code:f.data.code}),_=_.data.map(p=>({code:p.id,name:p.brigade_name,leaf:!0}))),l(_)},le={value:"code",label:"name",children:"children",multiple:!1,lazy:!0,lazyLoad:N},R=async()=>{d.value.city=h.value[0],d.value.area=h.value[1],d.value.street=h.value[2],d.value.village=h.value[3],d.value.brigade=h.value[4],d.value.phone||(d.value.phone=s.value.account),d.value.real_name||(d.value.real_name=s.value.real_name||s.value.nickname),Qe({...d.value,uid:s.value.id}).then(f=>{F.success("编辑成功"),L.value=!0})},$=()=>{h.value=JSON.parse(JSON.stringify(t.value)),L.value=!0},L=r(!0),S=r(0),W=r(["基本信息","用户资产"]),K=r(!1),B=r([]),a=r({page_no:1,page_size:10,loading:!1,loadend:!1});let G=[];const H=(f=!1)=>{f&&(B.value=[],a.value.page_no=1,a.value.loadend=!1),!(a.value.loadend||a.value.loading)&&(a.value.loading=!0,Ye({uid:s.value.id,page_no:a.value.page_no,page_size:a.value.page_size}).then(l=>{B.value=[...B.value,...l.data.lists],a.value.loading=!1,a.value.page_no++,l.data.lists.length{if(G=B.value.filter(f=>f.n_num).map(f=>({product_id:f.product_id,nums:f.n_num})),G.length==0)return F.error("请选择商品");ne()},ne=()=>{Ze({uid:s.value.id,info:G}).then(f=>{K.value=!1,F.success("出库成功"),H(!0)})};return he(()=>{I.on("set-user-detail",f=>{s.value=f,K.value=!1,Ke({id:f.id}).then(({data:l})=>{s.value=Object.assign(f,l),console.log(s.value)}),x(),H(!0)})}),ge(()=>{I.off("set-user-detail")}),(f,l)=>{var we,Ce,Se;const n=b("el-avatar"),_=b("el-tag"),p=b("el-button"),ce=b("el-option"),ve=b("el-select"),me=b("el-cascader"),fe=b("el-image"),Z=b("el-table-column"),q=b("el-input-number"),Ve=b("el-table"),Re=b("el-empty"),Oe=de("infinite-scroll"),je=de("loading");return o(),g("div",Zl,[e("div",et,[(o(!0),g(M,null,se(W.value,(m,te)=>(o(),g("div",{key:te,class:X(["nav-item",{"nav-item-active":S.value==te,"nav-item-radius1":S.value==te+1,"nav-item-radius2":S.value==te-1}]),onClick:ya=>S.value=te},k(m),11,lt))),128)),e("div",{class:X(["nav-item",{"nav-item-radius2":S.value==W.value.length-1}]),style:{flex:"1"}},null,2)]),s.value.id&&S.value==0?(o(),g("div",tt,[e("div",at,[st,e("div",ot,[e("div",it,[nt,e("div",ut,"¥"+k(s.value.now_money),1)]),e("div",dt,[rt,e("div",ct,"¥"+k(s.value.purchase_funds),1)]),e("div",vt,[_t,e("div",pt,"¥"+k((we=s.value.return_money)==null?void 0:we.toFixed(2)),1)]),e("div",mt,[ft,e("div",yt,[i(n,{style:{width:"4rem",height:"4rem"},src:s.value.avatar},null,8,["src"])])]),e("div",ht,[gt,e("div",bt,"¥"+k((Ce=s.value.get_frozen)==null?void 0:Ce.toFixed(2)),1)]),e("div",kt,[$t,e("div",Vt,"¥"+k((Se=s.value.amount_frozen)==null?void 0:Se.toFixed(2)),1)]),e("div",wt,[Ct,e("div",St,k(s.value.id),1)]),e("div",xt,[Ut,e("div",zt,k(s.value.nickname),1)]),e("div",At,[Lt,e("div",Dt,k(s.value.mobile),1)]),e("div",Pt,[Ft,e("div",It,k(s.value.account),1)]),e("div",Rt,[Ot,e("div",jt,k(s.value.real_name),1)]),e("div",Et,[Nt,e("div",Bt,k(s.value.create_time),1)]),e("div",qt,[Tt,e("div",Jt,[U.value==!1?(o(),g(M,{key:0},[s.value.user_ship!=1?(o(),z(_,{key:0,type:"primary",size:"large"},{default:u(()=>[y(k(s.value.user_ship_name),1)]),_:1})):(o(),z(_,{key:1,type:"success",size:"large"},{default:u(()=>[y(k(s.value.user_ship_name),1)]),_:1})),s.value.user_ship!=1?(o(),z(p,{key:2,type:"primary",style:{"margin-left":"1rem"},onClick:l[0]||(l[0]=m=>U.value=!0)},{default:u(()=>[y("修改")]),_:1})):Q("",!0)],64)):(o(),g(M,{key:1},[i(ve,{modelValue:s.value.user_ship,"onUpdate:modelValue":l[1]||(l[1]=m=>s.value.user_ship=m),placeholder:"请选择用户类型",style:{width:"10rem"}},{default:u(()=>[(o(!0),g(M,null,se(O.value,m=>(o(),z(ce,{key:m.id,label:m.title,value:m.id,disabled:m.id==1},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),i(p,{type:"primary",style:{"margin-left":"1rem"},onClick:E},{default:u(()=>[y("确认")]),_:1}),i(p,{style:{"margin-left":"1rem"},onClick:C},{default:u(()=>[y("取消")]),_:1})],64))])]),s.value.user_ship==1?(o(),g("div",Kt,[Mt,e("div",Wt,[T.value==!1?(o(),g(M,{key:0},[s.value.label_name?(o(),z(_,{key:0,type:"primary",size:"large"},{default:u(()=>[y(k(s.value.label_name),1)]),_:1})):Q("",!0),s.value.label_name?(o(),z(p,{key:1,type:"primary",style:{"margin-left":"1rem"},onClick:l[2]||(l[2]=m=>T.value=!0)},{default:u(()=>[y("修改")]),_:1})):(o(),z(p,{key:2,type:"primary",style:{"margin-left":"1rem"},onClick:l[3]||(l[3]=m=>{s.value.label_id="",T.value=!0})},{default:u(()=>[y("添加")]),_:1}))],64)):(o(),g(M,{key:1},[i(ve,{modelValue:s.value.label_id,"onUpdate:modelValue":l[4]||(l[4]=m=>s.value.label_id=m),placeholder:"请选择用户类型",style:{width:"10rem"}},{default:u(()=>[(o(!0),g(M,null,se(J.value,m=>(o(),z(ce,{key:m.label_id,label:m.label_name,value:m.label_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i(p,{type:"primary",style:{"margin-left":"1rem"},onClick:ee},{default:u(()=>[y("确认")]),_:1}),i(p,{style:{"margin-left":"1rem"},onClick:P},{default:u(()=>[y("取消")]),_:1})],64))])])):Q("",!0),e("div",Gt,[Ht,(o(),z(me,{key:s.value.id,style:{flex:"1"},modelValue:h.value,"onUpdate:modelValue":l[5]||(l[5]=m=>h.value=m),options:ae.value,props:le,load:N,class:"w-full",disabled:L.value},null,8,["modelValue","options","disabled"])),L.value?(o(),z(p,{key:0,type:"primary",style:{"margin-left":"1rem"},onClick:l[6]||(l[6]=m=>L.value=!1)},{default:u(()=>[y("修改")]),_:1})):Q("",!0),L.value?Q("",!0):(o(),z(p,{key:1,type:"primary",style:{"margin-left":"1rem"},onClick:R},{default:u(()=>[y("确认")]),_:1})),L.value?Q("",!0):(o(),z(p,{key:2,style:{"margin-left":"1rem"},onClick:$},{default:u(()=>[y("取消")]),_:1}))])]),Qt,e("div",Xt,[e("div",Yt,[e("div",{class:X(["pay-item",{"pay-item-active":v.value.type==1}]),onClick:l[7]||(l[7]=m=>v.value.type=1)},ea,2),e("div",{class:X(["pay-item",{"pay-item-active":v.value.type==2}]),onClick:l[8]||(l[8]=m=>v.value.type=2)},ta,2),e("div",{class:X(["pay-item",{"pay-item-active":v.value.type==3}]),onClick:l[9]||(l[9]=m=>v.value.type=3)},sa,2),e("div",{class:X(["pay-item",{"pay-item-active":v.value.type==0}]),onClick:l[11]||(l[11]=m=>v.value.type=0)},[ue(e("input",{type:"number",class:"input","onUpdate:modelValue":l[10]||(l[10]=m=>v.value.price=m),placeholder:"自定义金额"},null,512),[[Be,v.value.price]])],2)]),i(p,{type:"primary",size:"large",class:"pay",onClick:D},{default:u(()=>[y("立即支付")]),_:1})])])])):Q("",!0),s.value.id&&S.value==1?ue((o(),g("div",oa,[ue((o(),g("div",ia,[i(Ve,{data:B.value},{default:u(()=>[i(Z,{label:"商品信息"},{default:u(({row:m})=>[e("div",na,[i(fe,{style:{height:"3rem",width:"3rem"},src:m.image},null,8,["src"]),e("span",ua,k(m.store_name),1)])]),_:1}),i(Z,{prop:"price",label:"单价",width:"150"}),K.value?(o(),z(Z,{key:0,prop:"nums",label:"数量",width:"250"},{default:u(({row:m})=>[m.nums?(o(),g("div",da,[i(q,{modelValue:m.n_num,"onUpdate:modelValue":te=>m.n_num=te,"step-strictly":"",min:0,max:m.nums},null,8,["modelValue","onUpdate:modelValue","max"]),i(p,{type:"primary",style:{"margin-left":"1rem"},onClick:te=>m.n_num=m.nums},{default:u(()=>[y("全部")]),_:2},1032,["onClick"])])):Q("",!0)]),_:1})):(o(),z(Z,{key:1,prop:"nums",label:"数量",width:"250"}))]),_:1},8,["data"])])),[[Oe,H]]),e("div",ra,[K.value?(o(),g("div",va,[i(p,{type:"primary",size:"large",onClick:Y},{default:u(()=>[y("确认出库")]),_:1}),i(p,{size:"large",onClick:l[13]||(l[13]=m=>K.value=!1)},{default:u(()=>[y("取消")]),_:1})])):(o(),g("div",ca,[i(p,{type:"warning",size:"large",onClick:l[12]||(l[12]=m=>K.value=!0),disabled:B.value.length==0},{default:u(()=>[y("商品出库")]),_:1},8,["disabled"])]))])])),[[je,a.value.loading]]):(o(),g("div",_a,[i(Re)])),i(Yl,{ref_key:"payRef",ref:w,onPaySuccess:c},null,512)])}}},ma=ye(pa,[["__scopeId","data-v-d89a3027"]]),fa={class:"my-card"},wa={__name:"index",setup(V){return(s,v)=>(o(),g("div",fa,[i(wl,{style:{"flex-shrink":"0"},ref:"orderRef"},null,512),i(el),i(ma,{ref:"detailRef"},null,512)]))}};export{wa as default}; diff --git a/build/assets/index-mvvao8ZD.js b/build/assets/index-mvvao8ZD.js new file mode 100644 index 0000000..9d63fa5 --- /dev/null +++ b/build/assets/index-mvvao8ZD.js @@ -0,0 +1,27 @@ +import{c as Wp,a as Bp,b as ko,o as Up}from"./store-BUqDvNxu.js";import{_ as lt,r as S,o as Bt,m as re,a as Ut,b as nn,c as $,d as We,w as pn,e as v,f as W,g as on,t as N,n as lu,E as $r,u as Wr,h as $t,i as qo,j as fu,k as X,F as Ft,l as Wt,p as te,q as au,s as cu,v as Pt,x as Mp,y as Or,z as Pr,A as Dp,B as Np,C as Kp}from"./index-DslPK7Nc.js";import{u as Gp}from"./user-jp6MVT4O.js";import"./moment-Cl4UOzQZ.js";import{p as Ho}from"./padding-CQ0n6974.js";import"./axiosAPI-DYpcg3Yc.js";import{m as ou,s as zp}from"./shop-B66-JAoZ.js";import{p as Hp}from"./pay-Dn2JkHh_.js";/* empty css */const kp={class:"price"},qp={class:"flex"},Vp={style:{margin:"0.625rem","padding-bottom":"40px"}},Zp={style:{color:"#f5222d","font-weight":"bold","margin-left":"1rem"}},Yp={class:"dialog-footer"},Xp={__name:"price",emits:["changeAllPrice"],setup(K,{expose:xn,emit:o}){const T=S(!1),k=S(null),en=S(0),x=(Y=!0,y=0)=>{q.value.nowPrice="",q.value.percentage="",T.value=Y,en.value=y,lu(()=>{setTimeout(()=>{var ln;(ln=k.value)==null||ln.focus()},150)})},q=S({nowPrice:"",percentage:""}),cn=Y=>{q.value.percentage=(Y/en.value*100).toFixed(2)},hn=Y=>{q.value.nowPrice=(en.value*Y/100).toFixed(2)},Q=o,Z=()=>{if(q.value.percentage>100)return q.value.nowPrice="",q.value.percentage="",$r.error("改价金额不能大于当前订单金额");if(q.value.nowPrice<=0)return q.value.nowPrice="",q.value.percentage="",$r.error("金额不能小于0");Q("changeAllPrice",q.value.nowPrice)};xn({show:x,dialogVisible:T});const wn=()=>{T.value&&Z()};return Bt(()=>{re.on("enter",wn)}),Ut(()=>{re.off("enter",wn)}),(Y,y)=>{const ln=nn("el-input"),O=nn("el-button"),M=nn("el-dialog");return $(),We(M,{modelValue:T.value,"onUpdate:modelValue":y[2]||(y[2]=tn=>T.value=tn),title:"订单改价",width:"650"},{footer:pn(()=>[v("div",Yp,[W(O,{class:"ok-btn",type:"primary",onClick:Z},{default:pn(()=>[on(" 确定 (Enter) ")]),_:1})])]),default:pn(()=>[v("div",kp,[v("div",qp,[W(ln,{ref_key:"priceRef",ref:k,style:{flex:"3",margin:"0.625rem",height:"2.5rem"},modelValue:q.value.nowPrice,"onUpdate:modelValue":y[0]||(y[0]=tn=>q.value.nowPrice=tn),type:"number",placeholder:"请输入改价后的价格",onInput:cn},{suffix:pn(()=>[on("元")]),_:1},8,["modelValue"]),W(ln,{style:{flex:"2",margin:"0.625rem",height:"2.5rem"},modelValue:q.value.percentage,"onUpdate:modelValue":y[1]||(y[1]=tn=>q.value.percentage=tn),type:"number",placeholder:"请输入比例",onInput:hn},{suffix:pn(()=>[on("%")]),_:1},8,["modelValue"])]),v("div",Vp,[on(" 改价后金额: "),v("span",Zp,"¥"+N(q.value.nowPrice||en.value||" - - "),1)])])]),_:1},8,["modelValue"])}}},Jp=lt(Xp,[["__scopeId","data-v-924edcc0"]]),Qp={class:"check-user-list"},jp={class:"header-input"},ng={class:"order-lists","infinite-scroll-distance":300,"infinite-scroll-delay":500,style:{overflow:"auto"}},eg=["onClick"],tg={style:{display:"flex","flex-direction":"column","justify-content":"space-around",flex:"1"}},rg={class:"top"},ig={class:"bold"},ug={class:"flex-between"},sg={class:"mr-2"},og={class:"bottom flex",style:{"justify-content":"space-between"}},lg={class:"red"},fg={class:"red"},ag={key:0,class:"load-end"},cg={key:1,class:"load-end"},hg={__name:"userList",emits:["setUser"],setup(K,{expose:xn,emit:o}){Wr();const T=S(!1),k=S({page_no:1,page_size:20,mobile:""}),en=o,x=S(!1),q=S(0),cn=S(!1),hn=S([]),Q=(Y=!1)=>{if(Y)k.value.page_no=1;else if(cn.value||x.value)return;x.value=!0,Gp(k.value).then(y=>{Y?hn.value=y.data.lists:hn.value=[...hn.value,...y.data.lists],y.data.lists.length{cn.value=!0,x.value=!1})},Z=(Y,y)=>{en("setUser",Y),T.value=!1};return xn({open:()=>{T.value=!0,Q(!0)}}),(Y,y)=>{const ln=nn("el-button"),O=nn("el-input"),M=nn("el-avatar"),tn=nn("el-tag"),G=nn("el-dialog"),un=$t("loading"),sn=$t("infinite-scroll");return $(),We(G,{modelValue:T.value,"onUpdate:modelValue":y[4]||(y[4]=V=>T.value=V),title:"选择用户",width:"800"},{default:pn(()=>[v("div",Qp,[v("div",jp,[W(O,{modelValue:k.value.mobile,"onUpdate:modelValue":y[1]||(y[1]=V=>k.value.mobile=V),placeholder:"搜索手机号/ID",onKeydown:y[2]||(y[2]=qo(V=>Q(!0),["enter"])),onClear:y[3]||(y[3]=V=>Q(!0)),clearable:""},{append:pn(()=>[W(ln,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 0.315rem 0.315rem 0"},onClick:y[0]||(y[0]=V=>Q(!0))},{default:pn(()=>[on("搜索")]),_:1})]),_:1},8,["modelValue"])]),fu(($(),X("div",ng,[($(!0),X(Ft,null,Wt(hn.value,(V,B)=>($(),X("div",{class:"item",key:B,onClick:An=>Z(V,B)},[W(M,{class:"avatar",src:V.avatar},null,8,["src"]),v("div",tg,[v("div",rg,[v("div",null,[v("span",ig,N(V.nickname),1),v("span",null,N(" (ID:"+V.id+")"),1)]),v("div",ug,[v("div",sg,"手机号: "+N(V.mobile||V.account),1),V.user_ship!=1?($(),We(tn,{key:0,type:"primary"},{default:pn(()=>[on(N(V.user_ship_name),1)]),_:2},1024)):($(),We(tn,{key:1,type:"success"},{default:pn(()=>[on(N(V.user_ship_name),1)]),_:2},1024))])]),v("div",og,[v("div",null,[on("采购款: "),v("span",lg,N(V.purchase_funds),1)]),v("div",null,[on("礼品券: "),v("span",fg,N(V.get_frozen),1)])])])],8,eg))),128)),cn.value?($(),X("div",ag,"没有更多了")):te("",!0),x.value?($(),X("div",cg,"加载中...")):te("",!0)])),[[un,x.value],[sn,Q]])])]),_:1},8,["modelValue"])}}},_g=lt(hg,[["__scopeId","data-v-fb07bcea"]]),dg=K=>(au("data-v-cb057293"),K=K(),cu(),K),pg={class:"my-order"},gg={class:"user-nav"},vg={class:"user-info"},mg={key:0,class:"info"},wg={class:"flex-bewteen"},yg={class:"flex-bewteen",style:{"align-items":"flex-end"}},xg={style:{display:"flex"}},Ag={style:{"margin-right":"0.5rem"}},Ig={style:{color:"#f70"}},Cg={style:{color:"#f70"}},Lg={key:1,class:"info",style:{"align-items":"center",display:"flex","justify-content":"space-between"}},Rg={class:"flex-bewteen",style:{width:"100%"}},Sg=dg(()=>v("div",{style:{"font-size":"1.2rem"}},"游客",-1)),bg={class:"header-nav"},Eg={class:"nav-item"},Tg={class:"order-list"},Og={class:"order-item-info"},Pg={class:"order-item-title"},$g={class:"title"},Fg=["onClick"],Wg={class:"order-item-sku"},Bg={class:"order-item-price"},Ug={class:"order-footer"},Mg={class:"order-total"},Dg={class:"price",style:{"flex-direction":"column","align-items":"flex-start"}},Ng={class:"total-item",style:{"flex-shrink":"0"}},Kg={style:{"font-size":"1.4rem"}},Gg={key:0,class:"total-item",style:{"padding-right":"0","line-height":"0.8rem"}},zg={style:{"font-size":"0.8rem"}},Hg={key:0,class:"update-price"},kg={class:"order-btn"},qg={__name:"order",emits:["goPay","editAttr"],setup(K,{expose:xn,emit:o}){const T=S([]),k=S(0),en=S(0),x=S(0);Wr();const q=S(null),cn=()=>{let I=[];T.value.map(fn=>{I.push(fn.id)}),I.length!=0&&Q(I)},hn=I=>{T.value=T.value.filter(fn=>fn.id!=I),Q([I])},Q=I=>{Wp({id:I}).then(fn=>{wn()})},Z=S({}),wn=()=>{k.value=0,en.value=0,x.value=0,Bp().then(I=>{Z.value=I.data.extend,T.value=I.data.lists||[]})};wn();const Y=o,y=()=>{Y("goPay")},ln=(I,fn)=>{ko({product_id:I.product_id,cart_num:I.cart_num}).then(bn=>{wn()}).catch(bn=>{var $n;let Kn=($n=bn==null?void 0:bn.msg)==null?void 0:$n.match(/\b\d+(\.\d+)?\b/);Kn?I.cart_num=+Kn[0]:I.cart_num=1})},O=I=>{x.value=en.value-I,k.value=+I,lu(()=>{setTimeout(()=>{tn(!1)},150)})};S(0);const M=S(null),tn=(I=!0)=>{M.value.show(I,en.value)},G=S({uid:""}),un=I=>{G.value=I,G.value.uid=I.id},sn=S(!1);xn({getList:wn,resetView:()=>{sn.value=!1,G.value.uid="",wn()},list:T,discounts:x,allPrice:k,userInfo:G,is_storage:sn});const B=()=>{M.value.dialogVisible?M.value.dialogVisible=!1:tn()},An=()=>{T.value.length>0&&cn()};return Bt(()=>{re.on("insert",B),re.on("delete",An)}),Ut(()=>{re.off("insert",B),re.off("delete",An)}),(I,fn)=>{const bn=nn("el-avatar"),Kn=nn("ArrowRight"),$n=nn("el-icon"),ae=nn("el-button"),Br=nn("RefreshLeft"),Ur=nn("Delete"),pe=nn("el-empty"),ce=nn("el-image"),Mr=nn("el-input-number"),ke=nn("el-switch");return $(),X("div",pg,[v("div",gg,[v("div",vg,[W(bn,{class:"avatar",src:G.value.avatar},null,8,["src"]),G.value.uid?($(),X("div",mg,[v("div",wg,[v("div",null,"手机号: "+N(G.value.mobile||G.value.account),1),W(ae,{type:"primary",link:"",class:"change-user",onClick:fn[0]||(fn[0]=_n=>q.value.open())},{default:pn(()=>[on("切换用户"),W($n,null,{default:pn(()=>[W(Kn)]),_:1})]),_:1})]),v("div",yg,[v("div",xg,[v("div",Ag,[on("采购款: "),v("span",Ig,N(G.value.purchase_funds),1)]),v("div",null,[on("礼品券: "),v("span",Cg,N(G.value.get_frozen),1)])]),W(ae,{link:"",onClick:fn[1]||(fn[1]=_n=>G.value.uid="")},{default:pn(()=>[on("重置"),W($n,null,{default:pn(()=>[W(Br)]),_:1})]),_:1})])])):($(),X("div",Lg,[v("div",Rg,[Sg,W(ae,{type:"primary",link:"",class:"change-user",onClick:fn[2]||(fn[2]=_n=>q.value.open())},{default:pn(()=>[on("切换用户"),W($n,null,{default:pn(()=>[W(Kn)]),_:1})]),_:1})])]))]),W(_g,{ref_key:"userListRef",ref:q,onSetUser:un},null,512)]),v("div",bg,[v("div",Eg,[on(" 已选购 "),v("span",null,N(T.value.length),1),on(" 款 ")]),v("div",{class:"nav-item-clear",onClick:cn},[W($n,null,{default:pn(()=>[W(Ur)]),_:1}),on("清空 (Delete) ")])]),v("div",Tg,[T.value.length==0?($(),We(pe,{key:0,description:"请点击右侧添加商品"})):($(!0),X(Ft,{key:1},Wt(T.value,(_n,Dr)=>($(),X("div",{class:"order-item",key:Dr},[W(ce,{loading:"lazy",class:"order-item-img",src:_n.image},null,8,["src"]),v("div",Og,[v("div",Pg,[v("div",$g,N(_n.store_name),1),v("div",{class:"delete",onClick:ft=>hn(_n.id)},"删除",8,Fg)]),v("div",Wg,[v("span",null,N(_n.unit_name),1)]),v("div",Bg,[v("div",null,[on(" ¥"),v("span",null,N(_n.price),1)]),v("div",null,[W(Mr,{modelValue:_n.cart_num,"onUpdate:modelValue":ft=>_n.cart_num=ft,min:+_n.batch>0?+_n.batch:1,step:1,"step-strictly":"",onChange:ft=>ln(_n)},null,8,["modelValue","onUpdate:modelValue","min","onChange"])])])])]))),128))]),v("div",Ug,[v("div",Mg,[v("div",Dg,[v("div",Ng,[on(" 合计: "),v("span",null,[on("¥"),v("span",Kg,N(Z.value.pay_price||"0.00"),1)])]),Z.value.msg?($(),X("div",Gg,[v("span",zg,N(Z.value.msg),1)])):te("",!0)]),G.value.uid?($(),X("div",Hg,[W(ke,{modelValue:sn.value,"onUpdate:modelValue":fn[3]||(fn[3]=_n=>sn.value=_n),size:"large","inline-prompt":"","active-text":"存货","inactive-text":"不存"},null,8,["modelValue"])])):te("",!0)]),v("div",kg,[W(ae,{class:"btn",type:"primary",onClick:y,disabled:T.value.length==0},{default:pn(()=>[on(N("立即结账 (F9)"))]),_:1},8,["disabled"])])]),W(Jp,{ref_key:"priceRef",ref:M,onChangeAllPrice:O},null,512)])}}},Vg=lt(qg,[["__scopeId","data-v-cb057293"]]);var Fr={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Fr.exports;(function(K,xn){(function(){var o,T="4.17.21",k=200,en="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",x="Expected a function",q="Invalid `variable` option passed into `_.template`",cn="__lodash_hash_undefined__",hn=500,Q="__lodash_placeholder__",Z=1,wn=2,Y=4,y=1,ln=2,O=1,M=2,tn=4,G=8,un=16,sn=32,V=64,B=128,An=256,I=512,fn=30,bn="...",Kn=800,$n=16,ae=1,Br=2,Ur=3,pe=1/0,ce=9007199254740991,Mr=17976931348623157e292,ke=NaN,_n=4294967295,Dr=_n-1,ft=_n>>>1,Zo=[["ary",B],["bind",O],["bindKey",M],["curry",G],["curryRight",un],["flip",I],["partial",sn],["partialRight",V],["rearg",An]],qe="[object Arguments]",Dt="[object Array]",Yo="[object AsyncFunction]",at="[object Boolean]",ct="[object Date]",Xo="[object DOMException]",Nt="[object Error]",Kt="[object Function]",hu="[object GeneratorFunction]",ie="[object Map]",ht="[object Number]",Jo="[object Null]",ge="[object Object]",_u="[object Promise]",Qo="[object Proxy]",_t="[object RegExp]",ue="[object Set]",dt="[object String]",Gt="[object Symbol]",jo="[object Undefined]",pt="[object WeakMap]",nl="[object WeakSet]",gt="[object ArrayBuffer]",Ve="[object DataView]",Nr="[object Float32Array]",Kr="[object Float64Array]",Gr="[object Int8Array]",zr="[object Int16Array]",Hr="[object Int32Array]",kr="[object Uint8Array]",qr="[object Uint8ClampedArray]",Vr="[object Uint16Array]",Zr="[object Uint32Array]",el=/\b__p \+= '';/g,tl=/\b(__p \+=) '' \+/g,rl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,du=/&(?:amp|lt|gt|quot|#39);/g,pu=/[&<>"']/g,il=RegExp(du.source),ul=RegExp(pu.source),sl=/<%-([\s\S]+?)%>/g,ol=/<%([\s\S]+?)%>/g,gu=/<%=([\s\S]+?)%>/g,ll=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fl=/^\w*$/,al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,cl=RegExp(Yr.source),Xr=/^\s+/,hl=/\s/,_l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,dl=/\{\n\/\* \[wrapped with (.+)\] \*/,pl=/,? & /,gl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vl=/[()=,{}\[\]\/\s]/,ml=/\\(\\)?/g,wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vu=/\w*$/,yl=/^[-+]0x[0-9a-f]+$/i,xl=/^0b[01]+$/i,Al=/^\[object .+?Constructor\]$/,Il=/^0o[0-7]+$/i,Cl=/^(?:0|[1-9]\d*)$/,Ll=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,Rl=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",Sl="\\u0300-\\u036f",bl="\\ufe20-\\ufe2f",El="\\u20d0-\\u20ff",mu=Sl+bl+El,wu="\\u2700-\\u27bf",yu="a-z\\xdf-\\xf6\\xf8-\\xff",Tl="\\xac\\xb1\\xd7\\xf7",Ol="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pl="\\u2000-\\u206f",$l=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xu="A-Z\\xc0-\\xd6\\xd8-\\xde",Au="\\ufe0e\\ufe0f",Iu=Tl+Ol+Pl+$l,Jr="['’]",Fl="["+Ht+"]",Cu="["+Iu+"]",kt="["+mu+"]",Lu="\\d+",Wl="["+wu+"]",Ru="["+yu+"]",Su="[^"+Ht+Iu+Lu+wu+yu+xu+"]",Qr="\\ud83c[\\udffb-\\udfff]",Bl="(?:"+kt+"|"+Qr+")",bu="[^"+Ht+"]",jr="(?:\\ud83c[\\udde6-\\uddff]){2}",ni="[\\ud800-\\udbff][\\udc00-\\udfff]",Ze="["+xu+"]",Eu="\\u200d",Tu="(?:"+Ru+"|"+Su+")",Ul="(?:"+Ze+"|"+Su+")",Ou="(?:"+Jr+"(?:d|ll|m|re|s|t|ve))?",Pu="(?:"+Jr+"(?:D|LL|M|RE|S|T|VE))?",$u=Bl+"?",Fu="["+Au+"]?",Ml="(?:"+Eu+"(?:"+[bu,jr,ni].join("|")+")"+Fu+$u+")*",Dl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wu=Fu+$u+Ml,Kl="(?:"+[Wl,jr,ni].join("|")+")"+Wu,Gl="(?:"+[bu+kt+"?",kt,jr,ni,Fl].join("|")+")",zl=RegExp(Jr,"g"),Hl=RegExp(kt,"g"),ei=RegExp(Qr+"(?="+Qr+")|"+Gl+Wu,"g"),kl=RegExp([Ze+"?"+Ru+"+"+Ou+"(?="+[Cu,Ze,"$"].join("|")+")",Ul+"+"+Pu+"(?="+[Cu,Ze+Tu,"$"].join("|")+")",Ze+"?"+Tu+"+"+Ou,Ze+"+"+Pu,Nl,Dl,Lu,Kl].join("|"),"g"),ql=RegExp("["+Eu+Ht+mu+Au+"]"),Vl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yl=-1,gn={};gn[Nr]=gn[Kr]=gn[Gr]=gn[zr]=gn[Hr]=gn[kr]=gn[qr]=gn[Vr]=gn[Zr]=!0,gn[qe]=gn[Dt]=gn[gt]=gn[at]=gn[Ve]=gn[ct]=gn[Nt]=gn[Kt]=gn[ie]=gn[ht]=gn[ge]=gn[_t]=gn[ue]=gn[dt]=gn[pt]=!1;var dn={};dn[qe]=dn[Dt]=dn[gt]=dn[Ve]=dn[at]=dn[ct]=dn[Nr]=dn[Kr]=dn[Gr]=dn[zr]=dn[Hr]=dn[ie]=dn[ht]=dn[ge]=dn[_t]=dn[ue]=dn[dt]=dn[Gt]=dn[kr]=dn[qr]=dn[Vr]=dn[Zr]=!0,dn[Nt]=dn[Kt]=dn[pt]=!1;var Xl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ql={"&":"&","<":"<",">":">",""":'"',"'":"'"},jl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nf=parseFloat,ef=parseInt,Bu=typeof Pt=="object"&&Pt&&Pt.Object===Object&&Pt,tf=typeof self=="object"&&self&&self.Object===Object&&self,En=Bu||tf||Function("return this")(),ti=xn&&!xn.nodeType&&xn,Be=ti&&!0&&K&&!K.nodeType&&K,Uu=Be&&Be.exports===ti,ri=Uu&&Bu.process,Zn=function(){try{var a=Be&&Be.require&&Be.require("util").types;return a||ri&&ri.binding&&ri.binding("util")}catch{}}(),Mu=Zn&&Zn.isArrayBuffer,Du=Zn&&Zn.isDate,Nu=Zn&&Zn.isMap,Ku=Zn&&Zn.isRegExp,Gu=Zn&&Zn.isSet,zu=Zn&&Zn.isTypedArray;function Gn(a,_,h){switch(h.length){case 0:return a.call(_);case 1:return a.call(_,h[0]);case 2:return a.call(_,h[0],h[1]);case 3:return a.call(_,h[0],h[1],h[2])}return a.apply(_,h)}function rf(a,_,h,w){for(var b=-1,J=a==null?0:a.length;++b-1}function ii(a,_,h){for(var w=-1,b=a==null?0:a.length;++w-1;);return h}function Ju(a,_){for(var h=a.length;h--&&Ye(_,a[h],0)>-1;);return h}function _f(a,_){for(var h=a.length,w=0;h--;)a[h]===_&&++w;return w}var df=li(Xl),pf=li(Jl);function gf(a){return"\\"+jl[a]}function vf(a,_){return a==null?o:a[_]}function Xe(a){return ql.test(a)}function mf(a){return Vl.test(a)}function wf(a){for(var _,h=[];!(_=a.next()).done;)h.push(_.value);return h}function hi(a){var _=-1,h=Array(a.size);return a.forEach(function(w,b){h[++_]=[b,w]}),h}function Qu(a,_){return function(h){return a(_(h))}}function be(a,_){for(var h=-1,w=a.length,b=0,J=[];++h-1}function sa(n,e){var t=this.__data__,r=fr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ve.prototype.clear=ta,ve.prototype.delete=ra,ve.prototype.get=ia,ve.prototype.has=ua,ve.prototype.set=sa;function me(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,i,s){var l,f=e&Z,c=e&wn,d=e&Y;if(t&&(l=i?t(n,r,i,s):t(n)),l!==o)return l;if(!mn(n))return n;var p=E(n);if(p){if(l=ac(n),!f)return Un(n,l)}else{var g=Pn(n),m=g==Kt||g==hu;if(Fe(n))return Fs(n,f);if(g==ge||g==qe||m&&!i){if(l=c||m?{}:js(n),!f)return c?ja(n,Aa(l,n)):Qa(n,as(l,n))}else{if(!dn[g])return i?n:{};l=cc(n,g,f)}}s||(s=new oe);var A=s.get(n);if(A)return A;s.set(n,l),Eo(n)?n.forEach(function(R){l.add(Qn(R,e,t,R,n,s))}):So(n)&&n.forEach(function(R,D){l.set(D,Qn(R,e,t,D,n,s))});var L=d?c?Mi:Ui:c?Dn:Sn,F=p?o:L(n);return Yn(F||n,function(R,D){F&&(D=R,R=n[D]),It(l,D,Qn(R,e,t,D,n,s))}),l}function Ia(n){var e=Sn(n);return function(t){return cs(t,n,e)}}function cs(n,e,t){var r=t.length;if(n==null)return!r;for(n=an(n);r--;){var i=t[r],s=e[i],l=n[i];if(l===o&&!(i in n)||!s(l))return!1}return!0}function hs(n,e,t){if(typeof n!="function")throw new Xn(x);return Tt(function(){n.apply(o,t)},e)}function Ct(n,e,t,r){var i=-1,s=qt,l=!0,f=n.length,c=[],d=e.length;if(!f)return c;t&&(e=vn(e,zn(t))),r?(s=ii,l=!1):e.length>=k&&(s=vt,l=!1,e=new De(e));n:for(;++ii?0:i+t),r=r===o||r>i?i:P(r),r<0&&(r+=i),r=t>r?0:Oo(r);t0&&t(f)?e>1?Tn(f,e-1,t,r,i):Se(i,f):r||(i[i.length]=f)}return i}var wi=Ns(),ps=Ns(!0);function he(n,e){return n&&wi(n,e,Sn)}function yi(n,e){return n&&ps(n,e,Sn)}function cr(n,e){return Re(e,function(t){return Ie(n[t])})}function Ke(n,e){e=Pe(e,n);for(var t=0,r=e.length;n!=null&&te}function Ra(n,e){return n!=null&&rn.call(n,e)}function Sa(n,e){return n!=null&&e in an(n)}function ba(n,e,t){return n>=On(e,t)&&n=120&&p.length>=120)?new De(l&&p):o}p=n[0];var g=-1,m=f[0];n:for(;++g-1;)f!==n&&tr.call(f,c,1),tr.call(n,c,1);return n}function Rs(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==s){var s=i;Ae(i)?tr.call(n,i,1):Ti(n,i)}}return n}function Si(n,e){return n+ur(ss()*(e-n+1))}function Ka(n,e,t,r){for(var i=-1,s=Rn(ir((e-n)/(t||1)),0),l=h(s);s--;)l[r?s:++i]=n,n+=t;return l}function bi(n,e){var t="";if(!n||e<1||e>ce)return t;do e%2&&(t+=n),e=ur(e/2),e&&(n+=n);while(e);return t}function U(n,e){return ki(to(n,e,Nn),n+"")}function Ga(n){return fs(ot(n))}function za(n,e){var t=ot(n);return Ar(t,Ne(e,0,t.length))}function St(n,e,t,r){if(!mn(n))return n;e=Pe(e,n);for(var i=-1,s=e.length,l=s-1,f=n;f!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=h(i);++r>>1,l=n[s];l!==null&&!kn(l)&&(t?l<=e:l=k){var d=e?null:rc(n);if(d)return Zt(d);l=!1,i=vt,c=new De}else c=e?[]:f;n:for(;++r=r?n:jn(n,e,t)}var $s=Ff||function(n){return En.clearTimeout(n)};function Fs(n,e){if(e)return n.slice();var t=n.length,r=es?es(t):new n.constructor(t);return n.copy(r),r}function Fi(n){var e=new n.constructor(n.byteLength);return new nr(e).set(new nr(n)),e}function Za(n,e){var t=e?Fi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Ya(n){var e=new n.constructor(n.source,vu.exec(n));return e.lastIndex=n.lastIndex,e}function Xa(n){return At?an(At.call(n)):{}}function Ws(n,e){var t=e?Fi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function Bs(n,e){if(n!==e){var t=n!==o,r=n===null,i=n===n,s=kn(n),l=e!==o,f=e===null,c=e===e,d=kn(e);if(!f&&!d&&!s&&n>e||s&&l&&c&&!f&&!d||r&&l&&c||!t&&c||!i)return 1;if(!r&&!s&&!d&&n=f)return c;var d=t[r];return c*(d=="desc"?-1:1)}}return n.index-e.index}function Us(n,e,t,r){for(var i=-1,s=n.length,l=t.length,f=-1,c=e.length,d=Rn(s-l,0),p=h(c+d),g=!r;++f1?t[i-1]:o,l=i>2?t[2]:o;for(s=n.length>3&&typeof s=="function"?(i--,s):o,l&&Wn(t[0],t[1],l)&&(s=i<3?o:s,i=1),e=an(e);++r-1?i[s?e[l]:l]:o}}function zs(n){return xe(function(e){var t=e.length,r=t,i=Jn.prototype.thru;for(n&&e.reverse();r--;){var s=e[r];if(typeof s!="function")throw new Xn(x);if(i&&!l&&yr(s)=="wrapper")var l=new Jn([],!0)}for(r=l?r:t;++r1&&H.reverse(),p&&cf))return!1;var d=s.get(n),p=s.get(e);if(d&&p)return d==e&&p==n;var g=-1,m=!0,A=t&ln?new De:o;for(s.set(n,e),s.set(e,n);++g1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(_l,`{ +/* [wrapped with `+e+`] */ +`)}function _c(n){return E(n)||He(n)||!!(is&&n&&n[is])}function Ae(n,e){var t=typeof n;return e=e??ce,!!e&&(t=="number"||t!="symbol"&&Cl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Kn)return arguments[0]}else e=0;return n.apply(o,arguments)}}function Ar(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t1?n[e-1]:o;return t=typeof t=="function"?(n.pop(),t):o,po(n,t)});function go(n){var e=u(n);return e.__chain__=!0,e}function Ch(n,e){return e(n),n}function Ir(n,e){return e(n)}var Lh=xe(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(s){return mi(s,n)};return e>1||this.__actions__.length||!(r instanceof z)||!Ae(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Ir,args:[i],thisArg:o}),new Jn(r,this.__chain__).thru(function(s){return e&&!s.length&&s.push(o),s}))});function Rh(){return go(this)}function Sh(){return new Jn(this.value(),this.__chain__)}function bh(){this.__values__===o&&(this.__values__=To(this.value()));var n=this.__index__>=this.__values__.length,e=n?o:this.__values__[this.__index__++];return{done:n,value:e}}function Eh(){return this}function Th(n){for(var e,t=this;t instanceof lr;){var r=lo(t);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Oh(){var n=this.__wrapped__;if(n instanceof z){var e=n;return this.__actions__.length&&(e=new z(this)),e=e.reverse(),e.__actions__.push({func:Ir,args:[qi],thisArg:o}),new Jn(e,this.__chain__)}return this.thru(qi)}function Ph(){return Os(this.__wrapped__,this.__actions__)}var $h=pr(function(n,e,t){rn.call(n,t)?++n[t]:we(n,t,1)});function Fh(n,e,t){var r=E(n)?Hu:Ca;return t&&Wn(n,e,t)&&(e=o),r(n,C(e,3))}function Wh(n,e){var t=E(n)?Re:ds;return t(n,C(e,3))}var Bh=Gs(fo),Uh=Gs(ao);function Mh(n,e){return Tn(Cr(n,e),1)}function Dh(n,e){return Tn(Cr(n,e),pe)}function Nh(n,e,t){return t=t===o?1:P(t),Tn(Cr(n,e),t)}function vo(n,e){var t=E(n)?Yn:Te;return t(n,C(e,3))}function mo(n,e){var t=E(n)?uf:_s;return t(n,C(e,3))}var Kh=pr(function(n,e,t){rn.call(n,t)?n[t].push(e):we(n,t,[e])});function Gh(n,e,t,r){n=Mn(n)?n:ot(n),t=t&&!r?P(t):0;var i=n.length;return t<0&&(t=Rn(i+t,0)),Er(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Ye(n,e,t)>-1}var zh=U(function(n,e,t){var r=-1,i=typeof e=="function",s=Mn(n)?h(n.length):[];return Te(n,function(l){s[++r]=i?Gn(e,l,t):Lt(l,e,t)}),s}),Hh=pr(function(n,e,t){we(n,t,e)});function Cr(n,e){var t=E(n)?vn:ys;return t(n,C(e,3))}function kh(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?o:t,E(t)||(t=t==null?[]:[t]),Cs(n,e,t))}var qh=pr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Vh(n,e,t){var r=E(n)?ui:Zu,i=arguments.length<3;return r(n,C(e,4),t,i,Te)}function Zh(n,e,t){var r=E(n)?sf:Zu,i=arguments.length<3;return r(n,C(e,4),t,i,_s)}function Yh(n,e){var t=E(n)?Re:ds;return t(n,Sr(C(e,3)))}function Xh(n){var e=E(n)?fs:Ga;return e(n)}function Jh(n,e,t){(t?Wn(n,e,t):e===o)?e=1:e=P(e);var r=E(n)?wa:za;return r(n,e)}function Qh(n){var e=E(n)?ya:ka;return e(n)}function jh(n){if(n==null)return 0;if(Mn(n))return Er(n)?Je(n):n.length;var e=Pn(n);return e==ie||e==ue?n.size:Ci(n).length}function n_(n,e,t){var r=E(n)?si:qa;return t&&Wn(n,e,t)&&(e=o),r(n,C(e,3))}var e_=U(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Wn(n,e[0],e[1])?e=[]:t>2&&Wn(e[0],e[1],e[2])&&(e=[e[0]]),Cs(n,Tn(e,1),[])}),Lr=Wf||function(){return En.Date.now()};function t_(n,e){if(typeof e!="function")throw new Xn(x);return n=P(n),function(){if(--n<1)return e.apply(this,arguments)}}function wo(n,e,t){return e=t?o:e,e=n&&e==null?n.length:e,ye(n,B,o,o,o,o,e)}function yo(n,e){var t;if(typeof e!="function")throw new Xn(x);return n=P(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=o),t}}var Zi=U(function(n,e,t){var r=O;if(t.length){var i=be(t,ut(Zi));r|=sn}return ye(n,r,e,t,i)}),xo=U(function(n,e,t){var r=O|M;if(t.length){var i=be(t,ut(xo));r|=sn}return ye(e,r,n,t,i)});function Ao(n,e,t){e=t?o:e;var r=ye(n,G,o,o,o,o,o,e);return r.placeholder=Ao.placeholder,r}function Io(n,e,t){e=t?o:e;var r=ye(n,un,o,o,o,o,o,e);return r.placeholder=Io.placeholder,r}function Co(n,e,t){var r,i,s,l,f,c,d=0,p=!1,g=!1,m=!0;if(typeof n!="function")throw new Xn(x);e=ee(e)||0,mn(t)&&(p=!!t.leading,g="maxWait"in t,s=g?Rn(ee(t.maxWait)||0,e):s,m="trailing"in t?!!t.trailing:m);function A(Cn){var fe=r,Le=i;return r=i=o,d=Cn,l=n.apply(Le,fe),l}function L(Cn){return d=Cn,f=Tt(D,e),p?A(Cn):l}function F(Cn){var fe=Cn-c,Le=Cn-d,zo=e-fe;return g?On(zo,s-Le):zo}function R(Cn){var fe=Cn-c,Le=Cn-d;return c===o||fe>=e||fe<0||g&&Le>=s}function D(){var Cn=Lr();if(R(Cn))return H(Cn);f=Tt(D,F(Cn))}function H(Cn){return f=o,m&&r?A(Cn):(r=i=o,l)}function qn(){f!==o&&$s(f),d=0,r=c=i=f=o}function Bn(){return f===o?l:H(Lr())}function Vn(){var Cn=Lr(),fe=R(Cn);if(r=arguments,i=this,c=Cn,fe){if(f===o)return L(c);if(g)return $s(f),f=Tt(D,e),A(c)}return f===o&&(f=Tt(D,e)),l}return Vn.cancel=qn,Vn.flush=Bn,Vn}var r_=U(function(n,e){return hs(n,1,e)}),i_=U(function(n,e,t){return hs(n,ee(e)||0,t)});function u_(n){return ye(n,I)}function Rr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Xn(x);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var l=n.apply(this,r);return t.cache=s.set(i,l)||s,l};return t.cache=new(Rr.Cache||me),t}Rr.Cache=me;function Sr(n){if(typeof n!="function")throw new Xn(x);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function s_(n){return yo(2,n)}var o_=Va(function(n,e){e=e.length==1&&E(e[0])?vn(e[0],zn(C())):vn(Tn(e,1),zn(C()));var t=e.length;return U(function(r){for(var i=-1,s=On(r.length,t);++i=e}),He=vs(function(){return arguments}())?vs:function(n){return yn(n)&&rn.call(n,"callee")&&!rs.call(n,"callee")},E=h.isArray,A_=Mu?zn(Mu):Ta;function Mn(n){return n!=null&&br(n.length)&&!Ie(n)}function In(n){return yn(n)&&Mn(n)}function I_(n){return n===!0||n===!1||yn(n)&&Fn(n)==at}var Fe=Uf||su,C_=Du?zn(Du):Oa;function L_(n){return yn(n)&&n.nodeType===1&&!Ot(n)}function R_(n){if(n==null)return!0;if(Mn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||Fe(n)||st(n)||He(n)))return!n.length;var e=Pn(n);if(e==ie||e==ue)return!n.size;if(Et(n))return!Ci(n).length;for(var t in n)if(rn.call(n,t))return!1;return!0}function S_(n,e){return Rt(n,e)}function b_(n,e,t){t=typeof t=="function"?t:o;var r=t?t(n,e):o;return r===o?Rt(n,e,o,t):!!r}function Xi(n){if(!yn(n))return!1;var e=Fn(n);return e==Nt||e==Xo||typeof n.message=="string"&&typeof n.name=="string"&&!Ot(n)}function E_(n){return typeof n=="number"&&us(n)}function Ie(n){if(!mn(n))return!1;var e=Fn(n);return e==Kt||e==hu||e==Yo||e==Qo}function Ro(n){return typeof n=="number"&&n==P(n)}function br(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function mn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function yn(n){return n!=null&&typeof n=="object"}var So=Nu?zn(Nu):$a;function T_(n,e){return n===e||Ii(n,e,Ni(e))}function O_(n,e,t){return t=typeof t=="function"?t:o,Ii(n,e,Ni(e),t)}function P_(n){return bo(n)&&n!=+n}function $_(n){if(gc(n))throw new b(en);return ms(n)}function F_(n){return n===null}function W_(n){return n==null}function bo(n){return typeof n=="number"||yn(n)&&Fn(n)==ht}function Ot(n){if(!yn(n)||Fn(n)!=ge)return!1;var e=er(n);if(e===null)return!0;var t=rn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Jt.call(t)==Of}var Ji=Ku?zn(Ku):Fa;function B_(n){return Ro(n)&&n>=-ce&&n<=ce}var Eo=Gu?zn(Gu):Wa;function Er(n){return typeof n=="string"||!E(n)&&yn(n)&&Fn(n)==dt}function kn(n){return typeof n=="symbol"||yn(n)&&Fn(n)==Gt}var st=zu?zn(zu):Ba;function U_(n){return n===o}function M_(n){return yn(n)&&Pn(n)==pt}function D_(n){return yn(n)&&Fn(n)==nl}var N_=wr(Li),K_=wr(function(n,e){return n<=e});function To(n){if(!n)return[];if(Mn(n))return Er(n)?se(n):Un(n);if(mt&&n[mt])return wf(n[mt]());var e=Pn(n),t=e==ie?hi:e==ue?Zt:ot;return t(n)}function Ce(n){if(!n)return n===0?n:0;if(n=ee(n),n===pe||n===-pe){var e=n<0?-1:1;return e*Mr}return n===n?n:0}function P(n){var e=Ce(n),t=e%1;return e===e?t?e-t:e:0}function Oo(n){return n?Ne(P(n),0,_n):0}function ee(n){if(typeof n=="number")return n;if(kn(n))return ke;if(mn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=mn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Yu(n);var t=xl.test(n);return t||Il.test(n)?ef(n.slice(2),t?2:8):yl.test(n)?ke:+n}function Po(n){return _e(n,Dn(n))}function G_(n){return n?Ne(P(n),-ce,ce):n===0?n:0}function j(n){return n==null?"":Hn(n)}var z_=rt(function(n,e){if(Et(e)||Mn(e)){_e(e,Sn(e),n);return}for(var t in e)rn.call(e,t)&&It(n,t,e[t])}),$o=rt(function(n,e){_e(e,Dn(e),n)}),Tr=rt(function(n,e,t,r){_e(e,Dn(e),n,r)}),H_=rt(function(n,e,t,r){_e(e,Sn(e),n,r)}),k_=xe(mi);function q_(n,e){var t=tt(n);return e==null?t:as(t,e)}var V_=U(function(n,e){n=an(n);var t=-1,r=e.length,i=r>2?e[2]:o;for(i&&Wn(e[0],e[1],i)&&(r=1);++t1),s}),_e(n,Mi(n),t),r&&(t=Qn(t,Z|wn|Y,ic));for(var i=e.length;i--;)Ti(t,e[i]);return t});function cd(n,e){return Wo(n,Sr(C(e)))}var hd=xe(function(n,e){return n==null?{}:Da(n,e)});function Wo(n,e){if(n==null)return{};var t=vn(Mi(n),function(r){return[r]});return e=C(e),Ls(n,t,function(r,i){return e(r,i[0])})}function _d(n,e,t){e=Pe(e,n);var r=-1,i=e.length;for(i||(i=1,n=o);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=ss();return On(n+i*(e-n+nf("1e-"+((i+"").length-1))),e)}return Si(n,e)}var Cd=it(function(n,e,t){return e=e.toLowerCase(),n+(t?Mo(e):e)});function Mo(n){return nu(j(n).toLowerCase())}function Do(n){return n=j(n),n&&n.replace(Ll,df).replace(Hl,"")}function Ld(n,e,t){n=j(n),e=Hn(e);var r=n.length;t=t===o?r:Ne(P(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function Rd(n){return n=j(n),n&&ul.test(n)?n.replace(pu,pf):n}function Sd(n){return n=j(n),n&&cl.test(n)?n.replace(Yr,"\\$&"):n}var bd=it(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Ed=it(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Td=Ks("toLowerCase");function Od(n,e,t){n=j(n),e=P(e);var r=e?Je(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return mr(ur(i),t)+n+mr(ir(i),t)}function Pd(n,e,t){n=j(n),e=P(e);var r=e?Je(n):0;return e&&r>>0,t?(n=j(n),n&&(typeof e=="string"||e!=null&&!Ji(e))&&(e=Hn(e),!e&&Xe(n))?$e(se(n),0,t):n.split(e,t)):[]}var Dd=it(function(n,e,t){return n+(t?" ":"")+nu(e)});function Nd(n,e,t){return n=j(n),t=t==null?0:Ne(P(t),0,n.length),e=Hn(e),n.slice(t,t+e.length)==e}function Kd(n,e,t){var r=u.templateSettings;t&&Wn(n,e,t)&&(e=o),n=j(n),e=Tr({},e,r,Zs);var i=Tr({},e.imports,r.imports,Zs),s=Sn(i),l=ci(i,s),f,c,d=0,p=e.interpolate||zt,g="__p += '",m=_i((e.escape||zt).source+"|"+p.source+"|"+(p===gu?wl:zt).source+"|"+(e.evaluate||zt).source+"|$","g"),A="//# sourceURL="+(rn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yl+"]")+` +`;n.replace(m,function(R,D,H,qn,Bn,Vn){return H||(H=qn),g+=n.slice(d,Vn).replace(Rl,gf),D&&(f=!0,g+=`' + +__e(`+D+`) + +'`),Bn&&(c=!0,g+=`'; +`+Bn+`; +__p += '`),H&&(g+=`' + +((__t = (`+H+`)) == null ? '' : __t) + +'`),d=Vn+R.length,R}),g+=`'; +`;var L=rn.call(e,"variable")&&e.variable;if(!L)g=`with (obj) { +`+g+` +} +`;else if(vl.test(L))throw new b(q);g=(c?g.replace(el,""):g).replace(tl,"$1").replace(rl,"$1;"),g="function("+(L||"obj")+`) { +`+(L?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+g+`return __p +}`;var F=Ko(function(){return J(s,A+"return "+g).apply(o,l)});if(F.source=g,Xi(F))throw F;return F}function Gd(n){return j(n).toLowerCase()}function zd(n){return j(n).toUpperCase()}function Hd(n,e,t){if(n=j(n),n&&(t||e===o))return Yu(n);if(!n||!(e=Hn(e)))return n;var r=se(n),i=se(e),s=Xu(r,i),l=Ju(r,i)+1;return $e(r,s,l).join("")}function kd(n,e,t){if(n=j(n),n&&(t||e===o))return n.slice(0,ju(n)+1);if(!n||!(e=Hn(e)))return n;var r=se(n),i=Ju(r,se(e))+1;return $e(r,0,i).join("")}function qd(n,e,t){if(n=j(n),n&&(t||e===o))return n.replace(Xr,"");if(!n||!(e=Hn(e)))return n;var r=se(n),i=Xu(r,se(e));return $e(r,i).join("")}function Vd(n,e){var t=fn,r=bn;if(mn(e)){var i="separator"in e?e.separator:i;t="length"in e?P(e.length):t,r="omission"in e?Hn(e.omission):r}n=j(n);var s=n.length;if(Xe(n)){var l=se(n);s=l.length}if(t>=s)return n;var f=t-Je(r);if(f<1)return r;var c=l?$e(l,0,f).join(""):n.slice(0,f);if(i===o)return c+r;if(l&&(f+=c.length-f),Ji(i)){if(n.slice(f).search(i)){var d,p=c;for(i.global||(i=_i(i.source,j(vu.exec(i))+"g")),i.lastIndex=0;d=i.exec(p);)var g=d.index;c=c.slice(0,g===o?f:g)}}else if(n.indexOf(Hn(i),f)!=f){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function Zd(n){return n=j(n),n&&il.test(n)?n.replace(du,If):n}var Yd=it(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),nu=Ks("toUpperCase");function No(n,e,t){return n=j(n),e=t?o:e,e===o?mf(n)?Rf(n):ff(n):n.match(e)||[]}var Ko=U(function(n,e){try{return Gn(n,o,e)}catch(t){return Xi(t)?t:new b(t)}}),Xd=xe(function(n,e){return Yn(e,function(t){t=de(t),we(n,t,Zi(n[t],n))}),n});function Jd(n){var e=n==null?0:n.length,t=C();return n=e?vn(n,function(r){if(typeof r[1]!="function")throw new Xn(x);return[t(r[0]),r[1]]}):[],U(function(r){for(var i=-1;++ice)return[];var t=_n,r=On(n,_n);e=C(e),n-=_n;for(var i=ai(r,e);++t0||e<0)?new z(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=P(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},z.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},z.prototype.toArray=function(){return this.take(_n)},he(z.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var l=this.__wrapped__,f=r?[1]:arguments,c=l instanceof z,d=f[0],p=c||E(l),g=function(D){var H=i.apply(u,Se([D],f));return r&&m?H[0]:H};p&&t&&typeof d=="function"&&d.length!=1&&(c=p=!1);var m=this.__chain__,A=!!this.__actions__.length,L=s&&!m,F=c&&!A;if(!s&&p){l=F?l:new z(this);var R=n.apply(l,f);return R.__actions__.push({func:Ir,args:[g],thisArg:o}),new Jn(R,m)}return L&&F?n.apply(this,f):(R=this.thru(g),L?r?R.value()[0]:R.value():R)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Yt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(E(s)?s:[],i)}return this[t](function(l){return e.apply(E(l)?l:[],i)})}}),he(z.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";rn.call(et,r)||(et[r]=[]),et[r].push({name:e,func:t})}}),et[gr(o,M).name]=[{name:"wrapper",func:o}],z.prototype.clone=Zf,z.prototype.reverse=Yf,z.prototype.value=Xf,u.prototype.at=Lh,u.prototype.chain=Rh,u.prototype.commit=Sh,u.prototype.next=bh,u.prototype.plant=Th,u.prototype.reverse=Oh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Ph,u.prototype.first=u.prototype.head,mt&&(u.prototype[mt]=Eh),u},Qe=Sf();Be?((Be.exports=Qe)._=Qe,ti._=Qe):En._=Qe}).call(Pt)})(Fr,Fr.exports);var Zg=Fr.exports;const Yg=Mp(Zg),Mt=K=>(au("data-v-7d75d07a"),K=K(),cu(),K),Xg={class:"my-order"},Jg=Mt(()=>v("div",{class:"nav-item-label"},"搜索 (Shift)",-1)),Qg={class:"nav-item-input"},jg={class:"shop-list","infinite-scroll-distance":1e3,"infinite-scroll-delay":500,"infinite-scroll-immediate":!1,style:{overflow:"auto"}},nv=["onClick"],ev={class:"shop-name"},tv={key:0,class:"shop-price"},rv=Mt(()=>v("span",{class:"unit-name"},"活动价:",-1)),iv={key:0,class:"unit-name"},uv={key:1,class:"shop-price"},sv=Mt(()=>v("span",{class:"unit-name"},"原价: ",-1)),ov={class:"unit-name del"},lv={key:2,class:"shop-price"},fv={class:"unit-name"},av={key:3,class:"no-stock"},cv=Mt(()=>v("div",null,[v("span",null,"暂无"),v("span",null,"库存")],-1)),hv=[cv],_v={key:4,class:"no-stock"},dv=Mt(()=>v("div",null,[v("span",null,"平台"),v("span",null,"关闭")],-1)),pv=[dv],gv={key:1,class:"no-data"},vv={__name:"shop",props:{storeList:{type:Array,default:()=>[]},priceKey:{type:Object,default:()=>({})},loading:{type:Boolean,default:()=>!1}},emits:["getStoreList","changeItem","loadMore"],setup(K,{expose:xn,emit:o}){const T=S(null),k=o,en=S(""),x=()=>{k("loadMore",{store_name_code:en.value})},q=y=>{if(y.is_used==0)return $r.error("该商品已被平台关闭");if(y.stock==0)return $r.warning("该商品无库存");k("changeItem",y)},cn=Yg.throttle(()=>{let y={store_name:en.value};k("getStoreList",y,!0)},300);xn({name:en,inputBlur:()=>{var y;(y=T.value)==null||y.blur()}});const Q=S(!1),Z=()=>{Q.value=!0},wn=()=>{Q.value=!1},Y=()=>{var y;(y=T.value)==null||y.focus()};return Bt(()=>{lu(()=>{var y;(y=T.value)==null||y.focus(),Z()}),re.on("shift",Y)}),Ut(()=>{re.off("shift",Y)}),(y,ln)=>{const O=nn("el-input"),M=nn("Search"),tn=nn("el-icon"),G=nn("el-button"),un=nn("el-image"),sn=nn("el-space"),V=nn("el-empty"),B=$t("loading"),An=$t("infinite-scroll");return $(),X("div",Xg,[v("div",{class:Pr(["header-nav",{"input-focus":Q.value}])},[Jg,v("div",Qg,[W(O,{modelValue:en.value,"onUpdate:modelValue":ln[0]||(ln[0]=I=>en.value=I),placeholder:" 搜索商品名称/条形码或点击聚焦扫码, 按回车(Enter)搜索",clearable:"",ref_key:"codeRef",ref:T,onFocus:Z,onBlur:wn,onKeyup:qo(Or(cn),["enter"]),onClear:Or(cn)},null,8,["modelValue","onKeyup","onClear"])]),v("div",{class:"nav-item-btn",onClick:ln[1]||(ln[1]=(...I)=>Or(cn)&&Or(cn)(...I))},[W(G,{class:"btn",type:"primary"},{default:pn(()=>[W(tn,null,{default:pn(()=>[W(M)]),_:1})]),_:1})])],2),fu(($(),X("div",jg,[K.storeList.length?($(),We(sn,{key:0,wrap:"",size:14},{default:pn(()=>[($(!0),X(Ft,null,Wt(K.storeList,(I,fn)=>($(),X("div",{class:"shop-item",key:fn,onClick:bn=>q(I)},[W(un,{loading:"lazy",src:I.image},null,8,["src"]),v("div",ev,N(I.store_name),1),K.priceKey.off_activity==1?($(),X("div",tv,[rv,on(" ¥"),v("span",null,N(I[K.priceKey.price]),1),I.unit_name?($(),X("span",iv,"/"+N(I.unit_name),1)):te("",!0)])):te("",!0),K.priceKey.off_activity==1?($(),X("div",uv,[sv,on(),v("span",ov,"¥"+N(I[K.priceKey.op_price])+" /"+N(I.unit_name),1)])):($(),X("div",lv,[on(" ¥"),v("span",null,N(I[K.priceKey.op_price]),1),v("span",fv,"/"+N(I.unit_name),1)])),I.stock==0?($(),X("div",av,hv)):te("",!0),I.is_used==0?($(),X("div",_v,pv)):te("",!0)],8,nv))),128))]),_:1})):te("",!0),K.storeList.length?te("",!0):($(),X("div",gv,[W(V,{"image-size":200,description:"没有找到对应商品"})]))])),[[B,K.loading],[An,x]])])}}},mv=lt(vv,[["__scopeId","data-v-7d75d07a"]]),Vo=K=>(au("data-v-6c040b11"),K=K(),cu(),K),wv={class:"shop"},yv={class:"shop-info"},xv={class:"shop-info-left"},Av={class:"shop-info-right"},Iv={class:"shop-info-right-top"},Cv={key:0,class:"shop-info-right-price"},Lv=Vo(()=>v("span",{class:"unit-name"},"活动价:",-1)),Rv={key:0,class:"unit-name"},Sv={key:1,class:"shop-info-right-price"},bv=Vo(()=>v("span",{class:"unit-name"},"原价: ",-1)),Ev={class:"unit-name del"},Tv={key:2,class:"shop-info-right-price"},Ov={class:"unit-name"},Pv={class:"shop-sku"},$v={class:"title"},Fv={class:"sku"},Wv={class:"dialog-footer"},Bv={__name:"pupop",props:{priceKey:{type:Object,default:()=>({})}},emits:["changeItem"],setup(K,{expose:xn,emit:o}){const T=S(!1),k=S(null),en=Y=>{T.value=Y},x=S({}),q=S(!1),cn=S("add"),hn=(Y,y="add")=>{cn.value=y,x.value=JSON.parse(JSON.stringify(Y))},Q=o,Z=()=>{x.value.cart_num||(x.value.cart_num=x.value.batch>0?x.value.batch:1),Q("changeItem",x.value),T.value=!1};xn({show:en,setForm:hn});const wn=()=>{T.value&&Z()};return Bt(()=>{re.on("enter",wn)}),Ut(()=>{re.off("enter",wn)}),(Y,y)=>{const ln=nn("el-image"),O=nn("el-input-number"),M=nn("el-button"),tn=nn("el-dialog"),G=$t("loading");return $(),We(tn,{modelValue:T.value,"onUpdate:modelValue":y[1]||(y[1]=un=>T.value=un),title:"购买数量",width:"650",onOpened:y[2]||(y[2]=un=>k.value.focus())},Dp({default:pn(()=>[fu(($(),X("div",wv,[v("div",yv,[v("div",xv,[W(ln,{loading:"lazy",src:x.value.image},null,8,["src"])]),v("div",Av,[v("div",Iv,N(x.value.store_name),1),v("div",null,[K.priceKey.off_activity==1?($(),X("div",Cv,[Lv,on(" ¥"),v("span",null,N(x.value[K.priceKey.price]),1),x.value.unit_name?($(),X("span",Rv,"/"+N(x.value.unit_name),1)):te("",!0)])):te("",!0),K.priceKey.off_activity==1?($(),X("div",Sv,[bv,on(),v("span",Ev,"¥"+N(x.value[K.priceKey.op_price])+" /"+N(x.value.unit_name),1)])):($(),X("div",Tv,[on(" ¥"),v("span",null,N(x.value[K.priceKey.op_price]),1),v("span",Ov,"/"+N(x.value.unit_name),1)]))])])]),v("div",Pv,[v("div",$v,"购买数量 ( "+N(x.value.unit_name)+" )",1),v("div",Fv,[W(O,{ref_key:"inputRef",ref:k,modelValue:x.value.cart_num,"onUpdate:modelValue":y[0]||(y[0]=un=>x.value.cart_num=un),placeholder:`请输入数量(默认为${+x.value.batch>0?x.value.batch:"1"})`,min:+x.value.batch>0?+x.value.batch:1,"step-strictly":"",step:1,style:{width:"20rem"},size:"large"},null,8,["modelValue","placeholder","min"])])])])),[[G,q.value]])]),_:2},[cn.value!="add"&&x.value.attr&&x.value.attr.length==1?void 0:{name:"footer",fn:pn(()=>[v("div",Wv,[W(M,{class:"ok-btn",type:"primary",onClick:Z},{default:pn(()=>[on(" 确定 (Enter) ")]),_:1})])]),key:"0"}]),1032,["modelValue"])}}},Uv=lt(Bv,[["__scopeId","data-v-6c040b11"]]),Mv=["onClick","onMousemove"],Dv=["onMousemove"],Nv={class:"title"},Kv={class:"list"},Gv=["onClick"],zv={__name:"classify",emits:["getStoreList"],setup(K,{emit:xn}){const o=xn,T=S([]),k=S([]),en=S([]),x=S(-1),q=S(-1),cn=S(-1),hn=S(-1),Q=S(!1),Z=Wr();(()=>{ou({pid:0,page_no:1,page_size:30,level:1,store_id:Z.userInfo.store_id}).then(O=>{T.value=O.data.lists,x.value=-1})})();const Y=O=>{ou({pid:O,page_no:1,page_size:30,level:2,store_id:Z.userInfo.store_id}).then(M=>{k.value=M.data.lists})},y=O=>{ou({pid:O,page_no:1,page_size:30,level:3,store_id:Z.userInfo.store_id}).then(M=>{en.value=M.data.lists})},ln=(O=-1,M=1)=>{hn.value=O,Q.value=!0;let tn="";console.log(O,M),M==1?(x.value=O,q.value=-1,cn.value=-1,O!=-1&&(tn=T.value[O].id),Y(tn),o("getStoreList",{top_cate_id:tn,two_cate_id:null},!0)):M==2&&(q.value=O,cn.value=-1,O!=-1&&(tn=k.value[O].id),y(tn),o("getStoreList",{two_cate_id:tn},!0))};return(O,M)=>{const tn=nn("el-popover");return $(),X("div",{class:"classify",onMouseout:M[2]||(M[2]=G=>Q.value?Q.value=!1:Q.value=!0)},[v("div",{class:Pr(["itemP",{"itemP-active":x.value==-1}]),onClick:M[0]||(M[0]=G=>ln(-1))},N("全部"),2),($(!0),X(Ft,null,Wt(T.value,(G,un)=>($(),We(tn,{placement:"left",width:"20rem",trigger:"click",key:un,visible:un==x.value&&hn.value==un},{reference:pn(()=>[v("div",{class:Pr(["itemP",{"itemP-active":un==x.value}]),onClick:sn=>ln(un),onMousemove:sn=>hn.value=un},N(G.name),43,Mv)]),default:pn(()=>[v("div",{class:"active-card",onMouseout:M[1]||(M[1]=sn=>hn.value=-1),onMousemove:sn=>hn.value=un},[v("div",Nv,N(G.name),1),v("div",Kv,[($(!0),X(Ft,null,Wt(k.value,(sn,V)=>($(),X("div",{class:Pr({"list-active":V==q.value}),link:"",type:"primary",key:sn.id,onClick:B=>ln(V,2)},N(sn.name),11,Gv))),128))])],40,Dv)]),_:2},1032,["visible"]))),128))],32)}}},Hv=lt(zv,[["__scopeId","data-v-4d5623b0"]]),kv={class:"my-card"},e0={__name:"index",setup(K){const xn=S(null),o=S(null),T=S(null),k=S(null),en=S([]),x=Np({off_activity:"",op_price:"",price:""}),q=Wr(),cn=Kp(),hn=S({page_no:1,page_size:30}),Q=S(!1),Z=(B={},An=!1)=>{var I;hn.value={...hn.value,...B},An&&(en.value=[],hn.value.page_no=1,wn.value=!1),Q.value=!0,zp({...hn.value,store_id:(I=q.userInfo)==null?void 0:I.store_id}).then(fn=>{var bn,Kn;Q.value=!1;for(let $n in fn.data.extend)x[$n]=fn.data.extend[$n];((Kn=(bn=fn.data)==null?void 0:bn.lists)==null?void 0:Kn.length){wn.value||Z(B)};function y(B){return/^\d+$/.test(B)}const ln=(B,An="")=>{console.log(B,An);let I={product_id:B.product_id,cart_num:B.cart_num};ko(I).then(fn=>{o.value.getList()})},O=(B,An)=>{xn.value.setForm(B,"add"),xn.value.show(!0)},M=B=>{xn.value.setForm(B,"edit"),xn.value.show(!0)},tn=S({}),G=()=>{var I,fn;let B=o.value.list.map(bn=>bn.id),An={cart_id:B,uid:((fn=(I=o.value)==null?void 0:I.userInfo)==null?void 0:fn.uid)||""};o.value.discounts>0&&(An.deduction_price=o.value.discounts.toFixed(2),An.pay_type="micropay"),Up(An).then(bn=>{var Kn,$n,ae;tn.value=bn.data.order,k.value.setForm({data:bn.data.order,cart_id:B,uid:(($n=(Kn=o.value)==null?void 0:Kn.userInfo)==null?void 0:$n.uid)||"",is_storage:(ae=o.value)!=null&&ae.is_storage?1:0})})},un=()=>{G(),k.value.drawer=!0},sn=(B=null)=>{setTimeout(()=>{o.value.resetView()})},V=()=>{cn.name=="saleHome"&&(!k.value.drawer&&o.value.list.length>0?un():k.value.beforeClose())};return Bt(()=>{Z(),re.on("F9",V)}),Ut(()=>{re.off("F9",V)}),(B,An)=>($(),X("div",kv,[W(Vg,{ref_key:"orderRef",ref:o,onGoPay:un,onEditPupop:M},null,512),W(Ho),W(mv,{ref_key:"shopRef",ref:T,style:{flex:"1"},storeList:en.value,priceKey:x,loading:Q.value,onGetStoreList:Z,onChangeItem:O,onLoadMore:Y},null,8,["storeList","priceKey","loading"]),W(Uv,{ref_key:"pupopRef",ref:xn,priceKey:x,onChangeItem:ln},null,8,["priceKey"]),W(Ho),W(Hv,{ref:"classifyRef",onGetStoreList:Z},null,512),W(Hp,{ref_key:"payRef",ref:k,onPaySuccess:sn},null,512)]))}};export{e0 as default}; diff --git a/build/assets/index-D7GQBsjU.css b/build/assets/index-zrGTTzRW.css similarity index 81% rename from build/assets/index-D7GQBsjU.css rename to build/assets/index-zrGTTzRW.css index c25aab7..4b085b0 100644 --- a/build/assets/index-D7GQBsjU.css +++ b/build/assets/index-zrGTTzRW.css @@ -1 +1 @@ -@charset "UTF-8";.dialog-footer .ok-btn[data-v-924edcc0]{width:100%;height:2.5rem;border-radius:2.5rem}.price[data-v-924edcc0]{border-top:.0625rem solid #eee;padding-top:1rem}.price .flex[data-v-924edcc0]{display:flex}.check-user-list[data-v-fb07bcea]{border-radius:1.2rem;height:70vh;background-color:#fff;width:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.check-user-list .header-nav[data-v-fb07bcea]{display:flex;justify-content:space-between;padding:1rem}.check-user-list .header-nav span[data-v-fb07bcea]{color:#ff4a00}.check-user-list .header-nav .nav-item[data-v-fb07bcea]{font-weight:700}.check-user-list .header-input[data-v-fb07bcea]{padding:1rem;padding-top:0;border-bottom:.0625rem solid #eee}.check-user-list .order-lists[data-v-fb07bcea]{flex:1;overflow-y:auto;display:flex;flex-wrap:wrap;justify-content:flex-start}.check-user-list .order-lists .item[data-v-fb07bcea]{width:45%;height:6rem;border-radius:.5rem;cursor:pointer;box-sizing:border-box;padding:1rem;margin:.5rem;background-color:#f5f5f5;display:flex}.check-user-list .order-lists .item .avatar[data-v-fb07bcea]{height:4rem;width:4rem;border-radius:50%;margin-right:1rem;flex-shrink:0}.check-user-list .order-lists .item .flex-between[data-v-fb07bcea]{display:flex;justify-content:space-between;align-items:center}.check-user-list .order-lists .item .flex[data-v-fb07bcea]{display:flex;flex-wrap:wrap}.check-user-list .order-lists .item .bold[data-v-fb07bcea]{font-weight:700}.check-user-list .order-lists .item .r-1[data-v-fb07bcea]{margin-right:1rem}.check-user-list .order-lists .item .bottom>div[data-v-fb07bcea]{flex:1}.check-user-list .order-lists .item .red[data-v-fb07bcea]{color:#ff4a00}.check-user-list .order-lists .item-active[data-v-fb07bcea]{background-color:#efefef}.check-user-list .load-end[data-v-fb07bcea]{text-align:center;padding:1rem;color:#333;font-size:.8rem;width:100%;height:100%}.my-order[data-v-6a6b7337]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .user-nav .user-info[data-v-6a6b7337]{padding:1rem;margin:1rem;margin-bottom:0;border:.125rem solid #f70;background-color:#ff77001a;border-radius:.5rem;display:flex}.my-order .user-nav .user-info .avatar[data-v-6a6b7337]{width:3rem;height:3rem;flex-shrink:0}.my-order .user-nav .user-info .info[data-v-6a6b7337]{flex:1;margin-left:1rem;color:#666}.my-order .user-nav .user-info .info .flex-bewteen[data-v-6a6b7337]{display:flex;justify-content:space-between}.my-order .user-nav .user-info .info .change-user[data-v-6a6b7337]{font-size:1rem}.my-order .header-nav[data-v-6a6b7337]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem;border-bottom:.0625rem solid #eee}.my-order .header-nav span[data-v-6a6b7337]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-6a6b7337]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .order-list[data-v-6a6b7337]{flex:1;overflow-y:auto;padding-bottom:10rem}.my-order .order-list .order-item[data-v-6a6b7337]{display:flex;padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-list .order-item .order-item-img[data-v-6a6b7337]{width:5rem;height:5rem;border-radius:.5rem}.my-order .order-list .order-item .order-item-info[data-v-6a6b7337]{flex:1;box-sizing:border-box;padding-left:.75rem;display:flex;flex-direction:column;justify-content:space-between}.my-order .order-list .order-item .order-item-info>div[data-v-6a6b7337]{display:flex;align-items:center;justify-content:space-between}.my-order .order-list .order-item .order-item-info .order-item-title .title[data-v-6a6b7337]{width:18rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.my-order .order-list .order-item .order-item-info .order-item-title .delete[data-v-6a6b7337]{color:#1890ff;cursor:pointer}.my-order .order-list .order-item .order-item-info .order-item-sku[data-v-6a6b7337]{cursor:pointer;font-size:.8rem;color:#999}.my-order .order-footer[data-v-6a6b7337]{position:absolute;bottom:0;left:0;z-index:20;width:100%;box-shadow:0 -.0625rem .625rem #eee;background-color:#fff}.my-order .order-footer .order-total[data-v-6a6b7337]{height:2.5rem;padding:1rem 2rem;display:flex;justify-content:space-between;border-bottom:.0625rem solid #eee;align-items:center}.my-order .order-footer .order-total .price[data-v-6a6b7337]{display:flex;align-items:center}.my-order .order-footer .order-total .price .total-item[data-v-6a6b7337]{padding-right:1.5rem}.my-order .order-footer .order-total .price .total-item span[data-v-6a6b7337]{color:#f5222d}.my-order .order-footer .order-total .update-price .btn[data-v-6a6b7337]{border-radius:3rem}.my-order .order-footer .order-btn[data-v-6a6b7337]{height:3.2rem;padding:1rem 1.5rem}.my-order .order-footer .order-btn .btn[data-v-6a6b7337]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}.my-order[data-v-7d75d07a]{height:100%;box-sizing:border-box;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .header-nav[data-v-7d75d07a]{border-radius:.8rem;background-color:#fff;display:flex;justify-content:space-between;overflow:hidden;width:auto;border:.0625rem solid rgba(0,0,0,0)}.my-order .header-nav .nav-item-label[data-v-7d75d07a]{width:7rem;height:3rem;box-sizing:border-box;text-align:center;line-height:3rem}.my-order .header-nav .nav-item-input[data-v-7d75d07a]{flex:1}.my-order .header-nav .nav-item-input .el-input[data-v-7d75d07a]{width:100%;height:100%}.my-order .header-nav .nav-item-input[data-v-7d75d07a] .el-input__wrapper{border:none!important;box-shadow:none!important;text-align:center}.my-order .header-nav .nav-item-btn[data-v-7d75d07a]{width:5rem}.my-order .header-nav .nav-item-btn .btn[data-v-7d75d07a]{width:100%;height:100%;border-radius:0;font-size:1.6rem}.my-order .input-focus[data-v-7d75d07a]{border:.0625rem solid #1890ff}.my-order .shop-list[data-v-7d75d07a]{flex:1;width:auto;overflow-y:auto;box-sizing:border-box;padding-top:1.25rem}.my-order .shop-list .shop-item[data-v-7d75d07a]{width:11.5rem;height:16rem;cursor:pointer;background-color:#fff;border-radius:1rem;padding:.7rem;display:flex;justify-content:space-between;flex-direction:column;position:relative;overflow:hidden}.my-order .shop-list .shop-item .el-image[data-v-7d75d07a]{border-radius:.5rem;width:11.5rem;height:11.5rem}.my-order .shop-list .shop-item .shop-name[data-v-7d75d07a]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;margin-top:.5rem}.my-order .shop-list .shop-item .shop-price[data-v-7d75d07a]{font-size:.8rem;color:#f5222d}.my-order .shop-list .shop-item .shop-price span[data-v-7d75d07a]{font-size:1.2rem;margin-left:.187rem}.my-order .shop-list .shop-item .shop-price .unit-name[data-v-7d75d07a]{color:#777;font-size:.9rem}.my-order .shop-list .shop-item .shop-price .del[data-v-7d75d07a]{text-decoration:line-through}.my-order .shop-list .shop-item[data-v-7d75d07a]:hover{background-color:#1890ff;color:#fff}.my-order .shop-list .shop-item:hover .shop-price[data-v-7d75d07a],.my-order .shop-list .shop-item:hover .unit-name[data-v-7d75d07a]{color:#fff}.my-order .shop-list .shop-item .no-stock[data-v-7d75d07a]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0003;display:flex;justify-content:center;align-items:center}.my-order .shop-list .shop-item .no-stock div[data-v-7d75d07a]{background-color:#4e4e4e;color:#fff;border-radius:50%;width:5rem;height:5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-footer .ok-btn[data-v-6c040b11]{width:100%;height:2.5rem;border-radius:2.5rem}.shop[data-v-6c040b11]{border-top:.0625rem solid #eee;padding-top:1rem}.shop .shop-info[data-v-6c040b11]{display:flex}.shop .shop-info .shop-info-left[data-v-6c040b11]{flex-shrink:0;margin-right:.8rem;height:8rem;width:8rem;overflow:hidden;border-radius:.5rem}.shop .shop-info .shop-info-right[data-v-6c040b11]{display:flex;flex-direction:column;justify-content:space-between}.shop .shop-info .shop-info-right .shop-info-right-top[data-v-6c040b11]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2;font-size:1.1rem}.shop .shop-info .shop-info-right .shop-info-right-center[data-v-6c040b11]{font-size:.8rem}.shop .shop-info .shop-info-right .shop-info-right-price[data-v-6c040b11]{color:#ff4a00;font-size:1.2rem;font-weight:700}.shop .shop-info .shop-info-right .shop-info-right-price span[data-v-6c040b11]{font-size:1.4rem;margin-left:.2rem}.shop .shop-info .shop-info-right .shop-info-right-price .unit-name[data-v-6c040b11]{font-size:.9rem;color:#999;font-weight:400}.shop .shop-info .shop-info-right .shop-info-right-price .del[data-v-6c040b11]{text-decoration:line-through}.shop .shop-sku[data-v-6c040b11]{display:flex;align-items:center;justify-content:space-between;margin:1rem 0}.classify[data-v-4d5623b0]{height:100%;width:8rem;background-color:#fff;border-radius:1.2rem;font-size:1rem;color:#333;overflow-y:scroll}.classify .itemP[data-v-4d5623b0]{width:4rem;margin:1rem;padding:.5rem 1rem;text-align:center;border-radius:3rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.classify .itemP-active[data-v-4d5623b0]{background-color:#1890ff;color:#fff}.active-card .title[data-v-4d5623b0]{font-size:1.1rem;font-weight:700;color:#333}.active-card .list[data-v-4d5623b0]{display:flex;flex-wrap:wrap}.active-card .list div[data-v-4d5623b0]{margin-right:1rem;margin-top:.5rem;cursor:pointer;color:#333}.active-card .list .list-active[data-v-4d5623b0]{color:#1890ff}[data-v-4d5623b0]::-webkit-scrollbar{display:none}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1;margin:1.25rem 0}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999} +@charset "UTF-8";.dialog-footer .ok-btn[data-v-924edcc0]{width:100%;height:2.5rem;border-radius:2.5rem}.price[data-v-924edcc0]{border-top:.0625rem solid #eee;padding-top:1rem}.price .flex[data-v-924edcc0]{display:flex}.check-user-list[data-v-fb07bcea]{border-radius:1.2rem;height:70vh;background-color:#fff;width:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.check-user-list .header-nav[data-v-fb07bcea]{display:flex;justify-content:space-between;padding:1rem}.check-user-list .header-nav span[data-v-fb07bcea]{color:#ff4a00}.check-user-list .header-nav .nav-item[data-v-fb07bcea]{font-weight:700}.check-user-list .header-input[data-v-fb07bcea]{padding:1rem;padding-top:0;border-bottom:.0625rem solid #eee}.check-user-list .order-lists[data-v-fb07bcea]{flex:1;overflow-y:auto;display:flex;flex-wrap:wrap;justify-content:flex-start}.check-user-list .order-lists .item[data-v-fb07bcea]{width:45%;height:6rem;border-radius:.5rem;cursor:pointer;box-sizing:border-box;padding:1rem;margin:.5rem;background-color:#f5f5f5;display:flex}.check-user-list .order-lists .item .avatar[data-v-fb07bcea]{height:4rem;width:4rem;border-radius:50%;margin-right:1rem;flex-shrink:0}.check-user-list .order-lists .item .flex-between[data-v-fb07bcea]{display:flex;justify-content:space-between;align-items:center}.check-user-list .order-lists .item .flex[data-v-fb07bcea]{display:flex;flex-wrap:wrap}.check-user-list .order-lists .item .bold[data-v-fb07bcea]{font-weight:700}.check-user-list .order-lists .item .r-1[data-v-fb07bcea]{margin-right:1rem}.check-user-list .order-lists .item .bottom>div[data-v-fb07bcea]{flex:1}.check-user-list .order-lists .item .red[data-v-fb07bcea]{color:#ff4a00}.check-user-list .order-lists .item-active[data-v-fb07bcea]{background-color:#efefef}.check-user-list .load-end[data-v-fb07bcea]{text-align:center;padding:1rem;color:#333;font-size:.8rem;width:100%;height:100%}.my-order[data-v-cb057293]{border-radius:1.2rem;height:100%;background-color:#fff;width:30rem;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .user-nav .user-info[data-v-cb057293]{padding:1rem;margin:1rem;margin-bottom:0;border:.125rem solid #f70;background-color:#ff77001a;border-radius:.5rem;display:flex}.my-order .user-nav .user-info .avatar[data-v-cb057293]{width:3rem;height:3rem;flex-shrink:0}.my-order .user-nav .user-info .info[data-v-cb057293]{flex:1;margin-left:1rem;color:#666}.my-order .user-nav .user-info .info .flex-bewteen[data-v-cb057293]{display:flex;justify-content:space-between}.my-order .user-nav .user-info .info .change-user[data-v-cb057293]{font-size:1rem}.my-order .header-nav[data-v-cb057293]{display:flex;justify-content:space-between;padding:1rem;height:1.5rem;border-bottom:.0625rem solid #eee}.my-order .header-nav span[data-v-cb057293]{color:#ff4a00}.my-order .header-nav .nav-item-clear[data-v-cb057293]{display:flex;align-items:center;font-size:.8rem;cursor:pointer}.my-order .order-list[data-v-cb057293]{flex:1;overflow-y:auto;padding-bottom:10rem}.my-order .order-list .order-item[data-v-cb057293]{display:flex;padding:1rem;border-bottom:.0625rem solid #eee}.my-order .order-list .order-item .order-item-img[data-v-cb057293]{width:5rem;height:5rem;border-radius:.5rem}.my-order .order-list .order-item .order-item-info[data-v-cb057293]{flex:1;box-sizing:border-box;padding-left:.75rem;display:flex;flex-direction:column;justify-content:space-between}.my-order .order-list .order-item .order-item-info>div[data-v-cb057293]{display:flex;align-items:center;justify-content:space-between}.my-order .order-list .order-item .order-item-info .order-item-title .title[data-v-cb057293]{width:18rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.my-order .order-list .order-item .order-item-info .order-item-title .delete[data-v-cb057293]{color:#1890ff;cursor:pointer}.my-order .order-list .order-item .order-item-info .order-item-sku[data-v-cb057293]{cursor:pointer;font-size:.8rem;color:#999}.my-order .order-footer[data-v-cb057293]{position:absolute;bottom:0;left:0;z-index:20;width:100%;box-shadow:0 -.0625rem .625rem #eee;background-color:#fff}.my-order .order-footer .order-total[data-v-cb057293]{height:3.5rem;padding:1rem 2rem;display:flex;justify-content:space-between;border-bottom:.0625rem solid #eee;align-items:center}.my-order .order-footer .order-total .price[data-v-cb057293]{display:flex;align-items:center}.my-order .order-footer .order-total .price .total-item[data-v-cb057293]{padding-right:1.5rem}.my-order .order-footer .order-total .price .total-item span[data-v-cb057293]{color:#f5222d}.my-order .order-footer .order-total .update-price .btn[data-v-cb057293]{border-radius:3rem}.my-order .order-footer .order-btn[data-v-cb057293]{height:3.2rem;padding:1rem 1.5rem}.my-order .order-footer .order-btn .btn[data-v-cb057293]{width:100%;height:100%;font-size:1.2rem;border-radius:3rem}.my-order[data-v-7d75d07a]{height:100%;box-sizing:border-box;position:relative;overflow:hidden;display:flex;flex-direction:column}.my-order .header-nav[data-v-7d75d07a]{border-radius:.8rem;background-color:#fff;display:flex;justify-content:space-between;overflow:hidden;width:auto;border:.0625rem solid rgba(0,0,0,0)}.my-order .header-nav .nav-item-label[data-v-7d75d07a]{width:7rem;height:3rem;box-sizing:border-box;text-align:center;line-height:3rem}.my-order .header-nav .nav-item-input[data-v-7d75d07a]{flex:1}.my-order .header-nav .nav-item-input .el-input[data-v-7d75d07a]{width:100%;height:100%}.my-order .header-nav .nav-item-input[data-v-7d75d07a] .el-input__wrapper{border:none!important;box-shadow:none!important;text-align:center}.my-order .header-nav .nav-item-btn[data-v-7d75d07a]{width:5rem}.my-order .header-nav .nav-item-btn .btn[data-v-7d75d07a]{width:100%;height:100%;border-radius:0;font-size:1.6rem}.my-order .input-focus[data-v-7d75d07a]{border:.0625rem solid #1890ff}.my-order .shop-list[data-v-7d75d07a]{flex:1;width:auto;overflow-y:auto;box-sizing:border-box;padding-top:1.25rem}.my-order .shop-list .shop-item[data-v-7d75d07a]{width:11.5rem;height:16rem;cursor:pointer;background-color:#fff;border-radius:1rem;padding:.7rem;display:flex;justify-content:space-between;flex-direction:column;position:relative;overflow:hidden}.my-order .shop-list .shop-item .el-image[data-v-7d75d07a]{border-radius:.5rem;width:11.5rem;height:11.5rem}.my-order .shop-list .shop-item .shop-name[data-v-7d75d07a]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;margin-top:.5rem}.my-order .shop-list .shop-item .shop-price[data-v-7d75d07a]{font-size:.8rem;color:#f5222d}.my-order .shop-list .shop-item .shop-price span[data-v-7d75d07a]{font-size:1.2rem;margin-left:.187rem}.my-order .shop-list .shop-item .shop-price .unit-name[data-v-7d75d07a]{color:#777;font-size:.9rem}.my-order .shop-list .shop-item .shop-price .del[data-v-7d75d07a]{text-decoration:line-through}.my-order .shop-list .shop-item[data-v-7d75d07a]:hover{background-color:#1890ff;color:#fff}.my-order .shop-list .shop-item:hover .shop-price[data-v-7d75d07a],.my-order .shop-list .shop-item:hover .unit-name[data-v-7d75d07a]{color:#fff}.my-order .shop-list .shop-item .no-stock[data-v-7d75d07a]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0003;display:flex;justify-content:center;align-items:center}.my-order .shop-list .shop-item .no-stock div[data-v-7d75d07a]{background-color:#4e4e4e;color:#fff;border-radius:50%;width:5rem;height:5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-footer .ok-btn[data-v-6c040b11]{width:100%;height:2.5rem;border-radius:2.5rem}.shop[data-v-6c040b11]{border-top:.0625rem solid #eee;padding-top:1rem}.shop .shop-info[data-v-6c040b11]{display:flex}.shop .shop-info .shop-info-left[data-v-6c040b11]{flex-shrink:0;margin-right:.8rem;height:8rem;width:8rem;overflow:hidden;border-radius:.5rem}.shop .shop-info .shop-info-right[data-v-6c040b11]{display:flex;flex-direction:column;justify-content:space-between}.shop .shop-info .shop-info-right .shop-info-right-top[data-v-6c040b11]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2;font-size:1.1rem}.shop .shop-info .shop-info-right .shop-info-right-center[data-v-6c040b11]{font-size:.8rem}.shop .shop-info .shop-info-right .shop-info-right-price[data-v-6c040b11]{color:#ff4a00;font-size:1.2rem;font-weight:700}.shop .shop-info .shop-info-right .shop-info-right-price span[data-v-6c040b11]{font-size:1.4rem;margin-left:.2rem}.shop .shop-info .shop-info-right .shop-info-right-price .unit-name[data-v-6c040b11]{font-size:.9rem;color:#999;font-weight:400}.shop .shop-info .shop-info-right .shop-info-right-price .del[data-v-6c040b11]{text-decoration:line-through}.shop .shop-sku[data-v-6c040b11]{display:flex;align-items:center;justify-content:space-between;margin:1rem 0}.classify[data-v-4d5623b0]{height:100%;width:8rem;background-color:#fff;border-radius:1.2rem;font-size:1rem;color:#333;overflow-y:scroll}.classify .itemP[data-v-4d5623b0]{width:4rem;margin:1rem;padding:.5rem 1rem;text-align:center;border-radius:3rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.classify .itemP-active[data-v-4d5623b0]{background-color:#1890ff;color:#fff}.active-card .title[data-v-4d5623b0]{font-size:1.1rem;font-weight:700;color:#333}.active-card .list[data-v-4d5623b0]{display:flex;flex-wrap:wrap}.active-card .list div[data-v-4d5623b0]{margin-right:1rem;margin-top:.5rem;cursor:pointer;color:#333}.active-card .list .list-active[data-v-4d5623b0]{color:#1890ff}[data-v-4d5623b0]::-webkit-scrollbar{display:none}.my-card{display:flex}::-webkit-scrollbar{width:.315rem}::-webkit-scrollbar-track{background-color:#f1f1f1;margin:1.25rem 0}::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:.315rem}::-webkit-scrollbar-thumb:hover{background-color:#999} diff --git a/build/assets/indexCount-xluBJzuO.js b/build/assets/indexCount-5PH9xZfJ.js similarity index 86% rename from build/assets/indexCount-xluBJzuO.js rename to build/assets/indexCount-5PH9xZfJ.js index 5f294cc..c6bc268 100644 --- a/build/assets/indexCount-xluBJzuO.js +++ b/build/assets/indexCount-5PH9xZfJ.js @@ -1 +1 @@ -import{f as i}from"./merchant-CYZ4pJwa.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-B8EEu-LB.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-D2Gq3I4N.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-DslPK7Nc.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}; diff --git a/build/assets/merchant-CYZ4pJwa.js b/build/assets/merchant-D2Gq3I4N.js similarity index 87% rename from build/assets/merchant-CYZ4pJwa.js rename to build/assets/merchant-D2Gq3I4N.js index cdae6b1..0388c19 100644 --- a/build/assets/merchant-CYZ4pJwa.js +++ b/build/assets/merchant-D2Gq3I4N.js @@ -1 +1 @@ -import{H as a}from"./index-B8EEu-LB.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-DslPK7Nc.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}; diff --git a/build/assets/padding-CBqAITKo.js b/build/assets/padding-CQ0n6974.js similarity index 65% rename from build/assets/padding-CBqAITKo.js rename to build/assets/padding-CQ0n6974.js index ee2d81b..c4f4a02 100644 --- a/build/assets/padding-CBqAITKo.js +++ b/build/assets/padding-CQ0n6974.js @@ -1 +1 @@ -import{_ as e,c as t,k as c}from"./index-B8EEu-LB.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-DslPK7Nc.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}; diff --git a/build/assets/pay-Bm_PmHdm.css b/build/assets/pay-Bm_PmHdm.css deleted file mode 100644 index 4d1fe65..0000000 --- a/build/assets/pay-Bm_PmHdm.css +++ /dev/null @@ -1 +0,0 @@ -.dra-body[data-v-d3c8ffa2]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-d3c8ffa2]{width:30rem;display:flex}.dra-body .header>div[data-v-d3c8ffa2]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-d3c8ffa2]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-d3c8ffa2]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-d3c8ffa2]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-d3c8ffa2]{width:100%;height:3rem;font-size:1.2rem}.dra-body .card1 .tips[data-v-d3c8ffa2]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.dra-body .card3 .codes[data-v-d3c8ffa2]{width:38rem;display:flex;align-items:center}.dra-body .card3 .codes .code-input[data-v-d3c8ffa2]{flex:1;height:3rem;font-size:1.2rem}.dra-body .card3 .codes .get-code-btn[data-v-d3c8ffa2]{height:3rem;margin-left:1rem}.dra-body .card3 .code-pay[data-v-d3c8ffa2]{margin-top:4rem;width:100%;height:3rem;border-radius:3rem}.cancel-btn[data-v-d3c8ffa2]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-d3c8ffa2]{width:100%;overflow-x:hidden}.counter[data-v-d3c8ffa2]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-d3c8ffa2]{height:3rem;padding:0 1.25rem;border:.0625rem solid #1890ff;box-shadow:0 0 .18rem #1890ff;border-radius:.5rem;background-color:#fff;font-size:1.62rem;line-height:3rem;color:#333}.counter .balance[data-v-d3c8ffa2]{width:100%;box-sizing:border-box;padding:1.12rem 0 1.12rem .625rem;text-align:start;font-size:.95rem;color:#303133;display:flex;justify-content:space-between}.counter .balance .money[data-v-d3c8ffa2]{color:#ff4a00}.counter .balance .tips[data-v-d3c8ffa2]{font-size:.8rem;color:#999}.counter .keypad[data-v-d3c8ffa2]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-d3c8ffa2]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-d3c8ffa2]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-d3c8ffa2]{height:3.875rem;width:8.125rem;margin:0!important;border:0;border-radius:.5rem;font-weight:500;font-size:1.75rem!important;line-height:3.87rem;color:#1890ff}.counter .keypad .el-button[data-v-d3c8ffa2]:focus{box-shadow:none}.counter .keypad .enter[data-v-d3c8ffa2]{grid-row-end:span 4;height:8.37rem;line-height:8.37rem;background-color:#1890ff;font-weight:500;font-size:1.35rem!important;color:#fff;position:relative}.counter .keypad .enter-disable[data-v-d3c8ffa2]{background-color:#ccc} diff --git a/build/assets/pay-DJzT1N1_.js b/build/assets/pay-DJzT1N1_.js deleted file mode 100644 index 92107f8..0000000 --- a/build/assets/pay-DJzT1N1_.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as _e,r as o,u as fe,G as ye,o as me,m,a as he,b as B,h as ge,c as p,d as Q,w as _,e as s,z as j,k as V,g as h,t as P,p as X,j as ke,f as g,i as Y,F as be,l as we,n as D,E as u,q as Ce,s as xe}from"./index-B8EEu-LB.js";import{e as U,f as Ve,g as $e,h as Pe}from"./store-BHLkswxT.js";/* empty css */const $=A=>(Ce("data-v-d3c8ffa2"),A=A(),xe(),A),Se=$(()=>s("h4",null,"选择支付方式",-1)),Ee={class:"dra-body"},Fe={class:"header"},ze={key:0,style:{display:"inline-block","margin-right":"20px"}},Be={style:{display:"inline-block","margin-right":"20px"}},je=$(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"原价:",-1)),Ae={style:{color:"#f5222d","padding-bottom":"2rem"}},De={style:{"font-size":"1.6rem"}},Le={style:{display:"inline-block"}},Re=$(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"活动折扣: ",-1)),Te={style:{color:"#f5222d","padding-bottom":"2rem"}},Ne={style:{"font-size":"1.6rem"}},Ue={style:{display:"inline-block"}},Ie=$(()=>s("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),Oe={style:{color:"#f5222d","padding-bottom":"2rem"}},Ke={style:{"font-size":"1.6rem"}},Me={key:0,"element-loading-text":"支付中",class:"card1"},qe=$(()=>s("div",{class:"tips"},null,-1)),Ge={key:1,class:"card2"},We={class:"drawer-body"},He={class:"counter"},Je={class:"received"},Qe={key:0},Xe={key:1,style:{"font-size":"1rem",color:"#999"}},Ye={key:0,class:"balance"},Ze={class:"money"},ea=$(()=>s("div",{class:"tips"},"按回车(Enter)确认支付",-1)),aa={key:1,class:"balance"},sa=$(()=>s("div",null,"不够找零, 请支付更多金额",-1)),ta=$(()=>s("div",{class:"tips"},"按下小键盘输入金额",-1)),la=[sa,ta],oa={class:"keypad"},na={class:"left"},ia={class:"right"},ca={key:2,class:"card3"},ua={class:"codes"},da={style:{width:"100%",display:"flex","justify-content":"center"}},ra={__name:"pay",emits:["paySuccess"],setup(A,{expose:Z,emit:ee}){const v=o(!1),l=o(1),i=o(""),k=o("");fe(),o(0);const S=a=>{Pe({id:a}).then(e=>{m.emit("letPrintReceipt",e.data)})},ae=()=>{y()},se=()=>{D(()=>{setTimeout(()=>{var a;w.value=!1,i.value="",I.value=!0,(a=k.value)==null||a.focus(),f(l.value)},300)})},f=a=>{l.value=a,l.value==2?window.addEventListener("keydown",T):(window.removeEventListener("keydown",T),D(()=>{var e;i.value="",(e=k.value)==null||e.focus()}))},c=o({}),F=o([]),b=o(""),L=o(!1),te=a=>{c.value=a.data,F.value=a.cart_id,b.value=a.uid,console.log("选择了用户==",b.value||"游客"),L.value=a.isRePay||!1},le=a=>{c.value.pay_price=a.price,ie.value=a.order_id},oe=ee,I=o(!1),ne=o(["1","2","3","4","5","6","7","8","9","0","00","."]),O=/^(10|11|12|13|14|15)\d{16}$/,K=/^(25|26|27|28|29|30)\d{14,22}$/,ie=o(""),ce=()=>{if(w.value=!0,k.value.blur(),L.value)M();else{let a;if(O.test(i.value))a="9";else if(K.test(i.value))a="13";else return w.value=!1,i.value="",k.value.focus(),console.log("=====",22),u.error("请输入正确的支付码");U({key:c.value.key,cart_id:F.value,pay_type:a,auth_code:i.value,uid:b.value}).then(e=>{e.data.out_trade_no&&e.msg=="支付成功"?(v.value=!1,u({message:"支付成功",type:"success"}),y(e.data),S(e.data.id)):e.msg=="用户支付中"&&e.code==1&&(u.warning(e.msg),m.on("pay_success",t=>{u({message:"支付成功",type:"success"}),S(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y(t)}))}).catch(e=>{w.value=!1,D(()=>{var t;(t=k.value)==null||t.focus()})})}},M=()=>{let a=17;if(l.value==1)if(O.test(i.value))a="9";else if(K.test(i.value))a="13";else return w.value=!1,i.value="",k.value.focus(),u.error("请输入正确的支付码");Ve({order_id:c.value.order_id,pay_type:a,auth_code:i.value,uid:b.value}).then(e=>{var t;(t=e.msg)!=null&&t.includes("成功")?(v.value=!1,u({message:"支付成功",type:"success"}),S(e.data.id),y()):e.msg=="用户支付中"&&e.code==1&&(u.warning(e.msg),m.on("pay_success",x=>{u({message:"支付成功",type:"success"}),S(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y(x)}))}).catch(e=>{i.value="",w.value=!1,D(()=>{var t;(t=k.value)==null||t.focus()})})};o(0);const y=a=>{var e;try{window.removeEventListener("keydown",T),I.value=!1,w.value=!1,i.value="",d.value="",C.value=[],(e=k.value)==null||e.blur(),oe("paySuccess",a),v.value=!1}catch{}},w=o(!1);Z({drawer:v,setForm:te,setRePay:le,beforeClose:y});const C=o([]),d=o(""),z=ye(()=>+d.value>0?(+d.value-c.value.pay_price).toFixed(2):-1),q=o(!1),R=a=>{a===-1?C.value=[]:C.value.pop(),d.value=C.value.length?C.value.join(""):0},r=a=>{q.value===!1&&(d.value="",q.value=!0);let e=String(d.value).indexOf(".")+1,t=String(d.value).length-e;console.log(e,t),(e===0||t<2)&&(C.value.join("")<=9999999&&C.value.push(a),d.value=C.value.join("")>99999999?99999999:C.value.join(""))},G=()=>{if(z.value===""||z.value===null||z.value===void 0||+d.value<+c.value.pay_price)return u.error("收款金额应该大于等于应收金额");L.value?M():U({cart_id:F.value,pay_type:"17",uid:b.value}).then(a=>{v.value=!1,u({message:a.msg,type:"success"}),S(a.data.id),f(1),y()}).catch(a=>{w.value=!1})},T=a=>{let t=(a||window.event).keyCode;if(t==37)return f(2);if(t==120)return m.emit("F9");if(t==27)return y();switch(a.stopPropagation(),a.preventDefault(),t){case 96:case 48:r(0);break;case 97:case 49:r(1);break;case 98:case 50:r(2);break;case 99:case 51:r(3);break;case 100:case 52:r(4);break;case 101:case 53:r(5);break;case 102:case 54:r(6);break;case 103:case 55:r(7);break;case 104:case 56:r(8);break;case 105:case 57:r(9);break;case 110:r(".");break;case 190:r(".");break;case 8:R();break;case 13:G();break}},ue=()=>{if(!b.value)return u.error("请先选择用户");let a=1;l.value==4&&(a=2),$e({cart_id:F.value,uid:b.value,type:a}).then(e=>{u({message:"发送成功",type:"success"})})},N=o(""),W=()=>{if(!b.value)return u.error("请先选择用户");let a=18;l.value==4&&(a=19),U({pay_type:a,sms_code:N.value,cart_id:F.value,uid:b.value}).then(e=>{v.value=!1,u({message:e.msg,type:"success"}),S(e.data.id),f(1),y()})},E=o(!1),H=()=>{if(!(!v.value||E.value&&i.value.length>0)&&l.value!=1)return f(l.value-1)},J=()=>{if(!(!v.value||E.value&&i.value.length>0)&&l.value!=4)return f(l.value+1)};return me(()=>{m.on("left",H),m.on("right",J)}),he(()=>{m.off("left",H),m.off("right",J)}),(a,e)=>{const t=B("el-input"),x=B("el-button"),de=B("Delete"),re=B("el-icon"),ve=B("el-drawer"),pe=ge("loading");return p(),Q(ve,{size:"60rem",modelValue:v.value,"onUpdate:modelValue":e[11]||(e[11]=n=>v.value=n),direction:"rtl",onOpen:se,"before-close":y},{header:_(()=>[Se]),default:_(()=>[s("div",Ee,[s("div",Fe,[s("div",{class:j(["left",{active:l.value==1}]),onClick:e[0]||(e[0]=n=>f(1))}," 微信/支付宝 ",2),s("div",{class:j(["center",{active:l.value==2}]),onClick:e[1]||(e[1]=n=>f(2))}," 现金收款 ",2),s("div",{class:j(["center",{active:l.value==3}]),style:{"border-left":"none"},onClick:e[2]||(e[2]=n=>f(3))}," 采购款 ",2),s("div",{class:j(["right",{active:l.value==4}]),onClick:e[3]||(e[3]=n=>f(4))}," 礼品券兑换 ",2)]),s("div",null,[c.value.activities==1&&l.value!=4?(p(),V("div",ze,[s("div",Be,[je,s("div",Ae,[h(" ¥"),s("span",De,P(c.value.total_price),1)])]),s("div",Le,[Re,s("div",Te,[h(P(c.value.activity)+"¥",1),s("span",Ne,P(c.value.activity_price),1)])])])):X("",!0),s("div",Ue,[Ie,s("div",Oe,[h(" ¥"),s("span",Ke,P(l.value==4?c.value.total_price:c.value.pay_price),1)])])]),l.value==1?ke((p(),V("div",Me,[g(t,{ref_key:"codeRef",ref:k,modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=n=>i.value=n),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:Y(ce,["enter"]),onFocus:e[5]||(e[5]=n=>E.value=!0),onBlur:e[6]||(e[6]=n=>E.value=!1)},null,8,["modelValue"]),qe])),[[pe,w.value]]):l.value==2?(p(),V("div",Ge,[s("div",We,[s("div",He,[s("div",Je,[d.value?(p(),V("span",Qe,P(d.value),1)):(p(),V("span",Xe,"按下键盘输入客户支付金额"))]),z.value>=0?(p(),V("div",Ye,[s("div",null,[h(" 需找零(元):"),s("span",Ze,"¥"+P(z.value),1)]),ea])):(p(),V("div",aa,la)),s("div",oa,[s("div",na,[(p(!0),V(be,null,we(ne.value,n=>(p(),Q(x,{key:n,onClick:va=>r(n)},{default:_(()=>[h(P(n),1)]),_:2},1032,["onClick"]))),128))]),s("div",ia,[g(x,{onClick:R},{default:_(()=>[g(re,null,{default:_(()=>[g(de)]),_:1})]),_:1}),g(x,{onClick:e[7]||(e[7]=n=>R(-1))},{default:_(()=>[h("C")]),_:1}),g(x,{class:j(["enter",{"enter-disable":+d.value<+c.value.pay_price}]),disabled:+d.value<+c.value.pay_price,onClick:G},{default:_(()=>[h(" 确认 ")]),_:1},8,["class","disabled"])])])])])])):l.value==3||l.value==4?(p(),V("div",ca,[s("div",ua,[g(t,{modelValue:N.value,"onUpdate:modelValue":e[8]||(e[8]=n=>N.value=n),autofocus:"",class:"code-input",placeholder:"请输入验证码",onKeyup:Y(W,["enter"]),onFocus:e[9]||(e[9]=n=>E.value=!0),onBlur:e[10]||(e[10]=n=>E.value=!1)},null,8,["modelValue"]),g(x,{type:"primary",onClick:ue,class:"get-code-btn"},{default:_(()=>[h("获取验证码")]),_:1})]),g(x,{type:"primary",onClick:W,class:"code-pay"},{default:_(()=>[h("确认支付")]),_:1})])):X("",!0)])]),footer:_(()=>[s("div",da,[g(x,{class:"cancel-btn",onClick:ae},{default:_(()=>[h("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},ya=_e(ra,[["__scopeId","data-v-d3c8ffa2"]]);export{ya as p}; diff --git a/build/assets/pay-Dn2JkHh_.js b/build/assets/pay-Dn2JkHh_.js new file mode 100644 index 0000000..d2f9c97 --- /dev/null +++ b/build/assets/pay-Dn2JkHh_.js @@ -0,0 +1 @@ +import{_ as fe,r as o,u as ye,G as me,o as ge,m,a as he,b as j,h as ke,c as _,d as X,w as p,e as a,z as A,k as V,g,t as P,p as Y,j as be,f as h,i as Z,F as we,l as Ce,n as L,E as u,q as xe,s as Ve}from"./index-DslPK7Nc.js";import{e as I,f as $e,g as Pe,h as Se}from"./store-BUqDvNxu.js";/* empty css */const $=D=>(xe("data-v-45d4774f"),D=D(),Ve(),D),Ee=$(()=>a("h4",null,"选择支付方式",-1)),Fe={class:"dra-body"},ze={class:"header"},Be={key:0,style:{display:"inline-block","margin-right":"20px"}},je={style:{display:"inline-block","margin-right":"20px"}},Ae=$(()=>a("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"原价:",-1)),De={style:{color:"#f5222d","padding-bottom":"2rem"}},Le={style:{"font-size":"1.6rem"}},Re={style:{display:"inline-block"}},Te=$(()=>a("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"活动折扣: ",-1)),Ne={style:{color:"#f5222d","padding-bottom":"2rem"}},Ue={style:{"font-size":"1.6rem"}},Ie={style:{display:"inline-block"}},Oe=$(()=>a("div",{style:{color:"#999",padding:"2rem 0 0.3rem 0"}},"应收金额(元):",-1)),Ke={style:{color:"#f5222d","padding-bottom":"2rem"}},Me={style:{"font-size":"1.6rem"}},qe={key:0,"element-loading-text":"支付中",class:"card1"},Ge=$(()=>a("div",{class:"tips"},null,-1)),We={key:1,class:"card2"},He={class:"drawer-body"},Je={class:"counter"},Qe={class:"received"},Xe={key:0},Ye={key:1,style:{"font-size":"1rem",color:"#999"}},Ze={key:0,class:"balance"},es={class:"money"},ss=$(()=>a("div",{class:"tips"},"按回车(Enter)确认支付",-1)),as={key:1,class:"balance"},ts=$(()=>a("div",null,"不够找零, 请支付更多金额",-1)),ls=$(()=>a("div",{class:"tips"},"按下小键盘输入金额",-1)),os=[ts,ls],ns={class:"keypad"},is={class:"left"},cs={class:"right"},us={key:2,class:"card3"},ds={class:"codes"},rs={style:{width:"100%",display:"flex","justify-content":"center"}},vs={__name:"pay",emits:["paySuccess"],setup(D,{expose:ee,emit:se}){const v=o(!1),l=o(1),i=o(""),k=o("");ye(),o(0);const S=s=>{Se({id:s}).then(e=>{m.emit("letPrintReceipt",e.data)})},ae=()=>{y()},te=()=>{L(()=>{setTimeout(()=>{var s;w.value=!1,i.value="",O.value=!0,(s=k.value)==null||s.focus(),f(l.value)},300)})},f=s=>{l.value=s,l.value==2?window.addEventListener("keydown",N):(window.removeEventListener("keydown",N),L(()=>{var e;i.value="",(e=k.value)==null||e.focus()}))},c=o({}),z=o([]),b=o(""),R=o(!1);let E=0;const le=s=>{c.value=s.data,z.value=s.cart_id,b.value=s.uid,E=s.is_storage||0,console.log("选择了用户==",b.value||"游客"),R.value=s.isRePay||!1},oe=s=>{c.value.pay_price=s.price,ce.value=s.order_id,E=s.is_storage||0},ne=se,O=o(!1),ie=o(["1","2","3","4","5","6","7","8","9","0","00","."]),K=/^(10|11|12|13|14|15)\d{16}$/,M=/^(25|26|27|28|29|30)\d{14,22}$/,ce=o(""),ue=()=>{if(w.value=!0,k.value.blur(),R.value)q();else{let s;if(K.test(i.value))s="9";else if(M.test(i.value))s="13";else return w.value=!1,i.value="",k.value.focus(),console.log("=====",22),u.error("请输入正确的支付码");I({key:c.value.key,cart_id:z.value,pay_type:s,is_storage:E,auth_code:i.value,uid:b.value}).then(e=>{e.data.out_trade_no&&e.msg=="支付成功"?(v.value=!1,u({message:"支付成功",type:"success"}),y(e.data),S(e.data.id)):e.msg=="用户支付中"&&e.code==1&&(u.warning(e.msg),m.on("pay_success",t=>{u({message:"支付成功",type:"success"}),S(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y(t)}))}).catch(e=>{w.value=!1,L(()=>{var t;(t=k.value)==null||t.focus()})})}},q=()=>{let s=17;if(l.value==1)if(K.test(i.value))s="9";else if(M.test(i.value))s="13";else return w.value=!1,i.value="",k.value.focus(),u.error("请输入正确的支付码");$e({order_id:c.value.order_id,pay_type:s,is_storage:E,auth_code:i.value,uid:b.value}).then(e=>{var t;(t=e.msg)!=null&&t.includes("成功")?(v.value=!1,u({message:"支付成功",type:"success"}),S(e.data.id),y()):e.msg=="用户支付中"&&e.code==1&&(u.warning(e.msg),m.on("pay_success",x=>{u({message:"支付成功",type:"success"}),S(e.data.id),setTimeout(()=>{m.off("pay_success")},200),v.value=!1,y(x)}))}).catch(e=>{i.value="",w.value=!1,L(()=>{var t;(t=k.value)==null||t.focus()})})};o(0);const y=s=>{var e;try{window.removeEventListener("keydown",N),O.value=!1,w.value=!1,i.value="",d.value="",C.value=[],(e=k.value)==null||e.blur(),ne("paySuccess",s),v.value=!1}catch{}},w=o(!1);ee({drawer:v,setForm:le,setRePay:oe,beforeClose:y});const C=o([]),d=o(""),B=me(()=>+d.value>0?(+d.value-c.value.pay_price).toFixed(2):-1),G=o(!1),T=s=>{s===-1?C.value=[]:C.value.pop(),d.value=C.value.length?C.value.join(""):0},r=s=>{G.value===!1&&(d.value="",G.value=!0);let e=String(d.value).indexOf(".")+1,t=String(d.value).length-e;console.log(e,t),(e===0||t<2)&&(C.value.join("")<=9999999&&C.value.push(s),d.value=C.value.join("")>99999999?99999999:C.value.join(""))},W=()=>{if(B.value===""||B.value===null||B.value===void 0||+d.value<+c.value.pay_price)return u.error("收款金额应该大于等于应收金额");R.value?q():I({cart_id:z.value,pay_type:"17",is_storage:E,uid:b.value}).then(s=>{v.value=!1,u({message:s.msg,type:"success"}),S(s.data.id),f(1),y()}).catch(s=>{w.value=!1})},N=s=>{let t=(s||window.event).keyCode;if(t==37)return f(2);if(t==120)return m.emit("F9");if(t==27)return y();switch(s.stopPropagation(),s.preventDefault(),t){case 96:case 48:r(0);break;case 97:case 49:r(1);break;case 98:case 50:r(2);break;case 99:case 51:r(3);break;case 100:case 52:r(4);break;case 101:case 53:r(5);break;case 102:case 54:r(6);break;case 103:case 55:r(7);break;case 104:case 56:r(8);break;case 105:case 57:r(9);break;case 110:r(".");break;case 190:r(".");break;case 8:T();break;case 13:W();break}},de=()=>{if(!b.value)return u.error("请先选择用户");let s=1;l.value==4&&(s=2),Pe({cart_id:z.value,uid:b.value,type:s}).then(e=>{u({message:"发送成功",type:"success"})})},U=o(""),H=()=>{if(!b.value)return u.error("请先选择用户");let s=18;l.value==4&&(s=19),I({pay_type:s,is_storage:E,sms_code:U.value,cart_id:z.value,uid:b.value}).then(e=>{v.value=!1,u({message:e.msg,type:"success"}),S(e.data.id),f(1),y()})},F=o(!1),J=()=>{if(!(!v.value||F.value&&i.value.length>0)&&l.value!=1)return f(l.value-1)},Q=()=>{if(!(!v.value||F.value&&i.value.length>0)&&l.value!=4)return f(l.value+1)};return ge(()=>{m.on("left",J),m.on("right",Q)}),he(()=>{m.off("left",J),m.off("right",Q)}),(s,e)=>{const t=j("el-input"),x=j("el-button"),re=j("Delete"),ve=j("el-icon"),_e=j("el-drawer"),pe=ke("loading");return _(),X(_e,{size:"60rem",modelValue:v.value,"onUpdate:modelValue":e[11]||(e[11]=n=>v.value=n),direction:"rtl",onOpen:te,"before-close":y},{header:p(()=>[Ee]),default:p(()=>[a("div",Fe,[a("div",ze,[a("div",{class:A(["left",{active:l.value==1}]),onClick:e[0]||(e[0]=n=>f(1))}," 微信/支付宝 ",2),a("div",{class:A(["center",{active:l.value==2}]),onClick:e[1]||(e[1]=n=>f(2))}," 现金收款 ",2),a("div",{class:A(["center",{active:l.value==3}]),style:{"border-left":"none"},onClick:e[2]||(e[2]=n=>f(3))}," 采购款 ",2),a("div",{class:A(["right",{active:l.value==4}]),onClick:e[3]||(e[3]=n=>f(4))}," 礼品券兑换 ",2)]),a("div",null,[c.value.activities==1&&l.value!=4?(_(),V("div",Be,[a("div",je,[Ae,a("div",De,[g(" ¥"),a("span",Le,P(c.value.total_price),1)])]),a("div",Re,[Te,a("div",Ne,[g(P(c.value.activity)+"¥",1),a("span",Ue,P(c.value.activity_price),1)])])])):Y("",!0),a("div",Ie,[Oe,a("div",Ke,[g(" ¥"),a("span",Me,P(l.value==4?c.value.total_price:c.value.pay_price),1)])])]),l.value==1?be((_(),V("div",qe,[h(t,{ref_key:"codeRef",ref:k,modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=n=>i.value=n),autofocus:"",class:"code-input",placeholder:"请点击输入框聚焦扫码或输入编码号",onKeyup:Z(ue,["enter"]),onFocus:e[5]||(e[5]=n=>F.value=!0),onBlur:e[6]||(e[6]=n=>F.value=!1)},null,8,["modelValue"]),Ge])),[[pe,w.value]]):l.value==2?(_(),V("div",We,[a("div",He,[a("div",Je,[a("div",Qe,[d.value?(_(),V("span",Xe,P(d.value),1)):(_(),V("span",Ye,"按下键盘输入客户支付金额"))]),B.value>=0?(_(),V("div",Ze,[a("div",null,[g(" 需找零(元):"),a("span",es,"¥"+P(B.value),1)]),ss])):(_(),V("div",as,os)),a("div",ns,[a("div",is,[(_(!0),V(we,null,Ce(ie.value,n=>(_(),X(x,{key:n,onClick:_s=>r(n)},{default:p(()=>[g(P(n),1)]),_:2},1032,["onClick"]))),128))]),a("div",cs,[h(x,{onClick:T},{default:p(()=>[h(ve,null,{default:p(()=>[h(re)]),_:1})]),_:1}),h(x,{onClick:e[7]||(e[7]=n=>T(-1))},{default:p(()=>[g("C")]),_:1}),h(x,{class:A(["enter",{"enter-disable":+d.value<+c.value.pay_price}]),disabled:+d.value<+c.value.pay_price,onClick:W},{default:p(()=>[g(" 确认 ")]),_:1},8,["class","disabled"])])])])])])):l.value==3||l.value==4?(_(),V("div",us,[a("div",ds,[h(t,{modelValue:U.value,"onUpdate:modelValue":e[8]||(e[8]=n=>U.value=n),autofocus:"",class:"code-input",placeholder:"请输入验证码",onKeyup:Z(H,["enter"]),onFocus:e[9]||(e[9]=n=>F.value=!0),onBlur:e[10]||(e[10]=n=>F.value=!1)},null,8,["modelValue"]),h(x,{type:"primary",onClick:de,class:"get-code-btn"},{default:p(()=>[g("获取验证码")]),_:1})]),h(x,{type:"primary",onClick:H,class:"code-pay"},{default:p(()=>[g("确认支付")]),_:1})])):Y("",!0)])]),footer:p(()=>[a("div",rs,[h(x,{class:"cancel-btn",onClick:ae},{default:p(()=>[g("取消收款")]),_:1})])]),_:1},8,["modelValue"])}}},ms=fe(vs,[["__scopeId","data-v-45d4774f"]]);export{ms as p}; diff --git a/build/assets/pay-OHBr3Zal.css b/build/assets/pay-OHBr3Zal.css new file mode 100644 index 0000000..619233e --- /dev/null +++ b/build/assets/pay-OHBr3Zal.css @@ -0,0 +1 @@ +.dra-body[data-v-45d4774f]{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.dra-body .header[data-v-45d4774f]{width:30rem;display:flex}.dra-body .header>div[data-v-45d4774f]{flex:1;border:.0625rem solid #ccc;text-align:center;padding:.6rem 0;cursor:pointer}.dra-body .header .left[data-v-45d4774f]{border-right:none;border-radius:5rem 0 0 5rem}.dra-body .header .right[data-v-45d4774f]{border-left:none;border-radius:0 5rem 5rem 0}.dra-body .header .active[data-v-45d4774f]{background-color:#1890ff;color:#fff;transition:.3s;border-color:#1890ff}.dra-body .card1 .code-input[data-v-45d4774f]{width:100%;height:3rem;font-size:1.2rem}.dra-body .card1 .tips[data-v-45d4774f]{width:38rem;height:16rem;background:url(./pay-De0xbdxm.png);background-size:100% 100%;background-repeat:no-repeat}.dra-body .card3 .codes[data-v-45d4774f]{width:38rem;display:flex;align-items:center}.dra-body .card3 .codes .code-input[data-v-45d4774f]{flex:1;height:3rem;font-size:1.2rem}.dra-body .card3 .codes .get-code-btn[data-v-45d4774f]{height:3rem;margin-left:1rem}.dra-body .card3 .code-pay[data-v-45d4774f]{margin-top:4rem;width:100%;height:3rem;border-radius:3rem}.cancel-btn[data-v-45d4774f]{width:60%;border-color:#1890ff;color:#1890ff;border-radius:5rem;height:3rem;font-size:1.2rem}.drawer-body[data-v-45d4774f]{width:100%;overflow-x:hidden}.counter[data-v-45d4774f]{padding:1.25rem;border-radius:1.25rem;background-color:#f3f9ff}.counter .received[data-v-45d4774f]{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-45d4774f]{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-45d4774f]{color:#ff4a00}.counter .balance .tips[data-v-45d4774f]{font-size:.8rem;color:#999}.counter .keypad[data-v-45d4774f]{display:grid;grid-template-columns:auto auto auto auto;grid-gap:.625rem}.counter .keypad .left[data-v-45d4774f]{grid-column-end:span 3;display:grid;grid-template-columns:auto auto auto;grid-gap:.625rem}.counter .keypad .right[data-v-45d4774f]{display:grid;grid-template-columns:auto;grid-gap:.625rem}.counter .keypad .el-button[data-v-45d4774f]{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-45d4774f]:focus{box-shadow:none}.counter .keypad .enter[data-v-45d4774f]{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-45d4774f]{background-color:#ccc} diff --git a/build/assets/shop-Cwb0_dzb.js b/build/assets/shop-B66-JAoZ.js similarity index 68% rename from build/assets/shop-Cwb0_dzb.js rename to build/assets/shop-B66-JAoZ.js index bbb3989..bb83851 100644 --- a/build/assets/shop-Cwb0_dzb.js +++ b/build/assets/shop-B66-JAoZ.js @@ -1 +1 @@ -import{H as s}from"./index-B8EEu-LB.js";import{r}from"./axiosAPI-B5dawX3v.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}; +import{H as s}from"./index-DslPK7Nc.js";import{r}from"./axiosAPI-DYpcg3Yc.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}; diff --git a/build/assets/store-BHLkswxT.js b/build/assets/store-BHLkswxT.js deleted file mode 100644 index 19a7099..0000000 --- a/build/assets/store-BHLkswxT.js +++ /dev/null @@ -1 +0,0 @@ -import{H as e}from"./index-B8EEu-LB.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}; diff --git a/build/assets/store-BUqDvNxu.js b/build/assets/store-BUqDvNxu.js new file mode 100644 index 0000000..7ca25b6 --- /dev/null +++ b/build/assets/store-BUqDvNxu.js @@ -0,0 +1 @@ +import{H as e}from"./index-DslPK7Nc.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 u(r){return e.post("/store_order/StoreOrder/pay",r)}function c(r){return e.get("/store_order/StoreOrder/lists",{params:r})}function p(r){return e.get("/store_order/storeOrder/detail",{params:r})}function d(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 _(r){return e.get("/store_order/StoreOrder/print",{params:r})}function A(r){return e.get("/user_product_storage/UserProductStorage/lists",{params:r})}function S(r){return e.post("/user_product_storage/UserProductStorage/supply",r)}export{s as a,o as b,i as c,p as d,n as e,u as f,O as g,_ as h,d as i,S as j,a as o,c as s,A as u,f as w}; diff --git a/build/assets/test-CwFTindV.js b/build/assets/test-C1w-f_el.js similarity index 99% rename from build/assets/test-CwFTindV.js rename to build/assets/test-C1w-f_el.js index cbb3a2a..8e2df77 100644 --- a/build/assets/test-CwFTindV.js +++ b/build/assets/test-C1w-f_el.js @@ -1,4 +1,4 @@ -import{r as O,b as S,c as w,k as C,e as g,f as T,w as A,F as x,E as I,g as L}from"./index-B8EEu-LB.js";var D={exports:{}};(function(j,M){(function(a,e){j.exports=e()})(window,function(){return function(h){var a={};function e(o){if(a[o])return a[o].exports;var d=a[o]={i:o,l:!1,exports:{}};return h[o].call(d.exports,d,d.exports,e),d.l=!0,d.exports}return e.m=h,e.c=a,e.d=function(o,d,f){e.o(o,d)||Object.defineProperty(o,d,{enumerable:!0,get:f})},e.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,d){if(d&1&&(o=e(o)),d&8||d&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),d&2&&typeof o!="string")for(var b in o)e.d(f,b,(function(i){return o[i]}).bind(null,b));return f},e.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(d,"a",d),d},e.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},e.p="",e(e.s=0)}({"./src/index.js":function(h,a,e){e.r(a),e("./src/sass/index.scss");var o=e("./src/js/init.js"),d=o.default.init;typeof window<"u"&&(window.printJS=d),a.default=d},"./src/js/browser.js":function(h,a,e){e.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(h,a,e){e.r(a),e.d(a,"addWrapper",function(){return b}),e.d(a,"capitalizePrint",function(){return i}),e.d(a,"collectStyles",function(){return l}),e.d(a,"addHeader",function(){return n}),e.d(a,"cleanUp",function(){return u}),e.d(a,"isRawHTML",function(){return p});var o=e("./src/js/modal.js"),d=e("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,s){var c="font-family:"+s.font+" !important; font-size: "+s.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,s){for(var c=document.defaultView||window,E="",y=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return s.test(t)}},"./src/js/html.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(n){return typeof n}:f=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f(l)}a.default={print:function(r,n){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),d.default.send(r,n)}};function b(l,r){for(var n=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),p=0;p"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(v){y.srcdoc+=''})),y.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(v){t.onError(v)}finally{t.showModal&&d.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,y);break;case"image":l.default.print(t,y);break;case"html":b.default.print(t,y);break;case"raw-html":i.default.print(t,y);break;case"json":r.default.print(t,y);break}}}},"./src/js/json.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(n){return{field:f(n)==="object"?n.field:n,displayName:f(n)==="object"?n.displayName:n,columnSize:f(n)==="object"&&n.columnSize?n.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),d.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,n='';i.repeatTableHeader&&(n+=""),n+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";n+="",i.repeatTableHeader&&(n+=""),n+="";for(var p=0;p";for(var t=0;t1)for(var E=0;E'+s+""}n+=""}return n+="
",n}},"./src/js/modal.js":function(h,a,e){e.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var n=document.createElement("span");n.setAttribute("class","printSpinner"),l.appendChild(n);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js"),d=e("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var n=new window.XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("error",function(){Object(d.cleanUp)(i),i.onError(n.statusText,n)}),n.addEventListener("load",function(){if([200,201].indexOf(n.status)===-1){Object(d.cleanUp)(i),i.onError(n.statusText,n);return}f(i,l,n.response)}),n.open("GET",i.printable,!0),n.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(h,a,e){e.r(a);var o=e("./src/js/browser.js"),d=e("./src/js/functions.js"),f={send:function(n,u){document.getElementsByTagName("body")[0].appendChild(u);var p=document.getElementById(n.frameId);p.onload=function(){if(n.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(p,n)},1e3):b(p,n);return}var t=p.contentWindow||p.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(n.printableElement),n.type!=="pdf"&&n.style){var s=document.createElement("style");s.innerHTML=n.style,t.head.appendChild(s)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(p,n)}):b(p,n)}}};function b(r,n){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){n.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(d.cleanUp)(n)}}function i(r){var n=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(n)}function l(r){return new Promise(function(n){var u=function p(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(p,500):n()};u()})}a.default=f},"./src/js/raw-html.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(h,a,e){},0:function(h,a,e){h.exports=e("./src/index.js")}}).default})})(D);const B=g("h2",null,"小票标题",-1),U=g("p",null,"商品名称: 商品1",-1),R=g("p",null,"价格: ¥10.00",-1),W=g("p",null,"数量: 1",-1),H=g("p",null,"-------------------",-1),N=g("p",null,"总计: ¥10.00",-1),K=g("p",null,"-------------------",-1),z=[B,U,R,W,H,N,K],F={__name:"test",setup(j){const M=O(null),h=()=>{uni.getEnv(e=>{e.h5?I.error("请使用APP打印小票"):a()})},a=()=>{let e="";e+=`******************************** +import{r as O,b as S,c as w,k as C,e as g,f as T,w as A,F as x,E as I,g as L}from"./index-DslPK7Nc.js";var D={exports:{}};(function(j,M){(function(a,e){j.exports=e()})(window,function(){return function(h){var a={};function e(o){if(a[o])return a[o].exports;var d=a[o]={i:o,l:!1,exports:{}};return h[o].call(d.exports,d,d.exports,e),d.l=!0,d.exports}return e.m=h,e.c=a,e.d=function(o,d,f){e.o(o,d)||Object.defineProperty(o,d,{enumerable:!0,get:f})},e.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,d){if(d&1&&(o=e(o)),d&8||d&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),d&2&&typeof o!="string")for(var b in o)e.d(f,b,(function(i){return o[i]}).bind(null,b));return f},e.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(d,"a",d),d},e.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},e.p="",e(e.s=0)}({"./src/index.js":function(h,a,e){e.r(a),e("./src/sass/index.scss");var o=e("./src/js/init.js"),d=o.default.init;typeof window<"u"&&(window.printJS=d),a.default=d},"./src/js/browser.js":function(h,a,e){e.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(h,a,e){e.r(a),e.d(a,"addWrapper",function(){return b}),e.d(a,"capitalizePrint",function(){return i}),e.d(a,"collectStyles",function(){return l}),e.d(a,"addHeader",function(){return n}),e.d(a,"cleanUp",function(){return u}),e.d(a,"isRawHTML",function(){return p});var o=e("./src/js/modal.js"),d=e("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,s){var c="font-family:"+s.font+" !important; font-size: "+s.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,s){for(var c=document.defaultView||window,E="",y=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return s.test(t)}},"./src/js/html.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(n){return typeof n}:f=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f(l)}a.default={print:function(r,n){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),d.default.send(r,n)}};function b(l,r){for(var n=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),p=0;p"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(v){y.srcdoc+=''})),y.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(v){t.onError(v)}finally{t.showModal&&d.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,y);break;case"image":l.default.print(t,y);break;case"html":b.default.print(t,y);break;case"raw-html":i.default.print(t,y);break;case"json":r.default.print(t,y);break}}}},"./src/js/json.js":function(h,a,e){e.r(a);var o=e("./src/js/functions.js"),d=e("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(n){return{field:f(n)==="object"?n.field:n,displayName:f(n)==="object"?n.displayName:n,columnSize:f(n)==="object"&&n.columnSize?n.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),d.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,n='';i.repeatTableHeader&&(n+=""),n+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";n+="",i.repeatTableHeader&&(n+=""),n+="";for(var p=0;p";for(var t=0;t1)for(var E=0;E'+s+""}n+=""}return n+="
",n}},"./src/js/modal.js":function(h,a,e){e.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var n=document.createElement("span");n.setAttribute("class","printSpinner"),l.appendChild(n);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js"),d=e("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var n=new window.XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("error",function(){Object(d.cleanUp)(i),i.onError(n.statusText,n)}),n.addEventListener("load",function(){if([200,201].indexOf(n.status)===-1){Object(d.cleanUp)(i),i.onError(n.statusText,n);return}f(i,l,n.response)}),n.open("GET",i.printable,!0),n.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(h,a,e){e.r(a);var o=e("./src/js/browser.js"),d=e("./src/js/functions.js"),f={send:function(n,u){document.getElementsByTagName("body")[0].appendChild(u);var p=document.getElementById(n.frameId);p.onload=function(){if(n.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(p,n)},1e3):b(p,n);return}var t=p.contentWindow||p.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(n.printableElement),n.type!=="pdf"&&n.style){var s=document.createElement("style");s.innerHTML=n.style,t.head.appendChild(s)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(p,n)}):b(p,n)}}};function b(r,n){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){n.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(d.cleanUp)(n)}}function i(r){var n=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(n)}function l(r){return new Promise(function(n){var u=function p(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(p,500):n()};u()})}a.default=f},"./src/js/raw-html.js":function(h,a,e){e.r(a);var o=e("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(h,a,e){},0:function(h,a,e){h.exports=e("./src/index.js")}}).default})})(D);const B=g("h2",null,"小票标题",-1),U=g("p",null,"商品名称: 商品1",-1),R=g("p",null,"价格: ¥10.00",-1),W=g("p",null,"数量: 1",-1),H=g("p",null,"-------------------",-1),N=g("p",null,"总计: ¥10.00",-1),K=g("p",null,"-------------------",-1),z=[B,U,R,W,H,N,K],F={__name:"test",setup(j){const M=O(null),h=()=>{uni.getEnv(e=>{e.h5?I.error("请使用APP打印小票"):a()})},a=()=>{let e="";e+=`******************************** `,e+=`泸优采-小票 `,e+=`单号: CG171565043141139102 `,e+=`测试商品1 * 1 1.00元 diff --git a/build/assets/user-H5zoLVp6.js b/build/assets/user-jp6MVT4O.js similarity index 92% rename from build/assets/user-H5zoLVp6.js rename to build/assets/user-jp6MVT4O.js index 832757e..e178060 100644 --- a/build/assets/user-H5zoLVp6.js +++ b/build/assets/user-jp6MVT4O.js @@ -1 +1 @@ -import{H as e}from"./index-B8EEu-LB.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}; +import{H as e}from"./index-DslPK7Nc.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}; diff --git a/build/index.html b/build/index.html index 14c69e4..b7a1e8d 100644 --- a/build/index.html +++ b/build/index.html @@ -56,7 +56,7 @@ } } - +