import{C as h}from"./client-4a746040.js";import w from"./detail-1461fcf5.js";import{H as n,e as v,_ as C,i as D,ah as r,o as x,c as k,V as t,P as p,S as y,T as z}from"./@vue-6dabbe94.js";import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-a6ee13d3.js";import"./pinia-b6f74250.js";import"./vue-router-c1461dfc.js";import"./vue-i18n-b3581196.js";import"./@intlify-ea47d1db.js";import"./source-map-7d7e1c08.js";import"./vue-b1ba6f14.js";import"./js-cookie-edb2da2a.js";import"./@element-plus-64e6e14a.js";import"./nprogress-08a53ce8.js";import"./axios-4a70c6fc.js";import"./qs-c5b6dbf2.js";import"./side-channel-394f276c.js";import"./get-intrinsic-bd2830fd.js";import"./has-symbols-e8f3ca0e.js";import"./has-proto-f7d0b240.js";import"./function-bind-22e7ee79.js";import"./has-26d28e02.js";import"./call-bind-e5c1c8b0.js";import"./object-inspect-8fd4bade.js";import"./element-plus-91d6d961.js";import"./lodash-es-9851428c.js";import"./@vueuse-e129c873.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-f6fdf7b4.js";import"./async-validator-dee29e8b.js";import"./memoize-one-297ddbcb.js";import"./escape-html-b8998962.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-880a26aa.js";import"./mitt-f7ef348c.js";import"./vue-grid-layout-ec2a62c3.js";import"./qrcodejs2-fixes-aebf80af.js";const N={class:"list-adapt-container"},B=n({name:"orderManager"}),R=n({...B,setup(T){const m=h(),i=v(),e=C({fit:"fill",queryParams:{},showSearch:!0,tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),l=()=>{m.getOrderList(e.tableData.param).then(o=>{e.tableData.data=o.data.records,e.tableData.total=o.data.total})};D(()=>{l()});const s=o=>{i.value.openDialog(o.id)},c=o=>{e.tableData.param.pageSize=o,l()},_=o=>{e.tableData.param.pageNum=o,l()};return(o,V)=>{const a=r("el-table-column"),d=r("el-button"),u=r("el-table"),f=r("el-pagination"),b=r("el-card");return x(),k("div",N,[t(b,{shadow:"hover"},{default:p(()=>[t(u,{data:e.tableData.data,stripe:"",style:{width:"100%"}},{default:p(()=>[t(a,{prop:"id",label:"ID","show-overflow-tooltip":""}),t(a,{prop:"orderSn",label:"订单编号","show-overflow-tooltip":""}),t(a,{prop:"title",label:"商品","show-overflow-tooltip":""}),t(a,{prop:"totalAmount",label:"金额","show-overflow-tooltip":""}),y("",!0),t(a,{prop:"statusStr",label:"状态","show-overflow-tooltip":""}),t(a,{prop:"created",label:"创建时间","show-overflow-tooltip":""}),t(a,{prop:"path",label:"操作",width:"90"},{default:p(g=>[t(d,{size:"small",text:"",type:"primary",onClick:A=>s(g.row)},{default:p(()=>[z("详情")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),t(f,{style:{"text-align":"right"},background:"",onSizeChange:c,onCurrentChange:_,"page-sizes":[10,20,30],"current-page":e.tableData.param.pageNum,"page-size":e.tableData.param.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},null,8,["current-page","page-size","total"])]),_:1}),t(w,{ref_key:"detailRef",ref:i,onReloadTable:l},null,512)])}}});const ht=S(R,[["__scopeId","data-v-c5014ec4"]]);export{ht as default};
