This commit is contained in:
weipengfei 2024-06-21 14:12:06 +08:00
parent 5ddb7a6c12
commit e135f6f7b9
21 changed files with 28 additions and 28 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

@ -1 +1 @@
import{G as a}from"./index-C4rRmnc5.js";function i(){return a.get("/merchant/Merchant/amount_account")}function r(n){return a.get("/merchant/Merchant/taking_lists",{params:n})}function c(){return a.get("/merchant/Merchant/taking_info")}function e(n){return a.post("/merchant/Merchant/withdraw",n)}function o(n){return a.get("/financial/FinancialRecord/lists",{params:n})}function s(n){return a.get("/financial/FinancialRecord/api_lists",{params:n})}export{i as a,c as b,e as c,r as d,s as e,o as f}; import{G as a}from"./index-DcwaEiyg.js";function i(){return a.get("/merchant/Merchant/amount_account")}function r(n){return a.get("/merchant/Merchant/taking_lists",{params:n})}function c(){return a.get("/merchant/Merchant/taking_info")}function e(n){return a.post("/merchant/Merchant/withdraw",n)}function o(n){return a.get("/financial/FinancialRecord/lists",{params:n})}function s(n){return a.get("/financial/FinancialRecord/api_lists",{params:n})}export{i as a,c as b,e as c,r as d,s as e,o as f};

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

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

2
dist/index.html vendored
View File

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

View File

@ -107,7 +107,7 @@ onUnmounted(() => {
:infinite-scroll-immediate="false" :infinite-scroll-immediate="false"
style="overflow: auto" style="overflow: auto"
> >
<el-space wrap v-if="storeList.length"> <el-space wrap v-if="storeList.length" :size="14">
<div <div
class="shop-item" class="shop-item"
v-for="(item, index) in storeList" v-for="(item, index) in storeList"
@ -200,14 +200,13 @@ onUnmounted(() => {
overflow-y: auto; overflow-y: auto;
box-sizing: border-box; box-sizing: border-box;
padding-top: 1.25rem; padding-top: 1.25rem;
.shop-item { .shop-item {
width: 11rem; width: 11.5rem;
height: 16rem; height: 16rem;
cursor: pointer; cursor: pointer;
background-color: #fff; background-color: #fff;
border-radius: 1rem; border-radius: 1rem;
padding: 0.5rem; padding: 0.7rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-direction: column; flex-direction: column;
@ -216,8 +215,8 @@ onUnmounted(() => {
.el-image { .el-image {
border-radius: 0.5rem; border-radius: 0.5rem;
width: 11rem; width: 11.5rem;
height: 11rem; height: 11.5rem;
} }
.shop-name { .shop-name {
@ -274,6 +273,7 @@ onUnmounted(() => {
} }
} }
} }
} }
} }
</style> </style>