cashier-mer/dist/assets/index-D5NEcNPc.js

2 lines
1.6 KiB
JavaScript
Raw Normal View History

2024-04-06 10:25:19 +08:00
import{e as V}from"./store-CYL2ip_b.js";import{_ as k,u as w,r as e,a as r,o as l,f as c,b as t,d as s,w as u,e as I,F as L,g as B,t as h,p as D,l as E}from"./index-8CB-e1T6.js";const N=o=>(D("data-v-22435ac1"),o=o(),E(),o),C={class:"my-order"},F={class:"header-nav"},G=N(()=>t("div",{class:"nav-item"}," 订单列表 ",-1)),O={class:"nav-item-clear"},U={class:"header-input"},$={class:"order-list"},A={class:"top"},R={class:"sn"},T={class:"create-time"},j={__name:"order",setup(o){const a=w();e([]);const d=e(""),p=e(1);e(null);const i=e({page:1,limit:20}),v=e(!1),y=e(0),m=e([]);return(()=>{v.value=!0,p.value==1&&(i.value.paid=null),p.value==2&&(i.value.paid=0),V(a.userInfo.service.mer_id,i.value).then(_=>{m.value=_.data.list,y.value=_.data.count,v.value=!1})})(),(_,f)=>{const g=r("Delete"),x=r("el-icon"),P=r("el-button"),b=r("el-input");return l(),c("div",C,[t("div",F,[G,t("div",O,[s(x,null,{default:u(()=>[s(g)]),_:1})])]),t("div",U,[s(b,{modelValue:d.value,"onUpdate:modelValue":f[0]||(f[0]=n=>d.value=n),placeholder:"请输入订单编号"},{append:u(()=>[s(P,{type:"primary",style:{"background-color":"#1890ff",color:"#fff","border-radius":"0 5px 5px 0"}},{default:u(()=>[I("搜索")]),_:1})]),_:1},8,["modelValue"])]),t("div",$,[(l(!0),c(L,null,B(m.value,(n,S)=>(l(),c("div",{class:"item",key:S},[t("div",A,[t("div",R,"单号: "+h(n.order_sn),1),t("div",T,h(n.create_time),1)])]))),128))])])}}},q=k(j,[["__scopeId","data-v-22435ac1"]]),z={class:"my-card"},M={__name:"index",setup(o){return(a,d)=>(l(),c("div",z,[s(q,{ref:"orderRef",onGoPay:a.goPay,onEditPupop:a.editPupop},null,8,["onGoPay","onEditPupop"])]))}};export{M as default};