import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-a66505b9.js";import{_ as a}from"./search.vue_vue_type_script_setup_true_lang-bbdf4bb9.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-b2a1f77e.js";import{s}from"./shortcuts-ef19d5bc.js";import{u as r}from"./useGetList-4b13a7ea.js";import{h as o}from"./moment-b265113e.js";import{d as l,m as i,p as n,r as u,K as p,o as _,c as m,a as d,w as c,f as j,e as h,J as f,j as v,Y as y,_ as Y}from"./index-018fb6dd.js";import"./index-765bf96c.js";import"./exportExcel-331c8441.js";/* empty css             *//* empty css                   */const b={"时间":"jiesuan_date","日充值总额":"charge_money","当日退款":"tuikuan_money","分成比例":"share_rate","日结算总额":"jiesuan_money"},x={class:"table-default"},g=Y(l({__name:"index",props:{primary:Object},setup(l){const Y=l;o().startOf("month").format("YYYY-MM-DD"),o().endOf("month").format("YYYY-MM-DD");const{data:g,query:w,search:M,reset:D,loading:T}=r("jiesuanManage/jiesuan/list"),k=e=>{if(w.value.createTime){const a=y(e);w.value.jiesuan_date_start_at=a[0],w.value.jiesuan_date_end_at=a[1]}else delete w.value.jiesuan_date_start_at,delete w.value.jiesuan_date_end_at},O=()=>{D()},V=i((()=>{var e;return null==(e=g.value)?void 0:e.data}));return Y.primary&&(Y.primary,w.value.company_uid=Y.primary.company_uid),n((()=>{M()})),(r,o)=>{const l=u("el-date-picker"),i=u("el-form-item"),n=t,y=a,Y=u("el-table-column"),g=u("el-table"),D=e,E=p("loading");return _(),m("div",null,[d(y,{search:j(M),reset:O},{body:c((()=>[d(i,{label:"结算时间"},{default:c((()=>[d(l,{"unlink-panels":"",clearable:"",onChange:k,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:j(w).createTime,"onUpdate:modelValue":o[0]||(o[0]=e=>j(w).createTime=e),type:"daterange",shortcuts:j(s),"range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue","shortcuts"])])),_:1})])),extra_button:c((()=>[d(n,{api:"jiesuanManage/jiesuan/list",sheet_name:"结算明细",title_obj:j(b),extro_params:{is_export:1,...j(w)}},null,8,["title_obj","extro_params"])])),_:1},8,["search"]),h("div",x,[f((_(),v(g,{data:j(V),class:"mt-3"},{default:c((()=>[d(Y,{prop:"jiesuan_date",label:"时间","min-width":"200px"}),d(Y,{prop:"charge_money","show-overflow-tooltip":"",label:"日充值总额","min-width":"200px"}),d(Y,{prop:"tuikuan_money",label:"当日退款","show-overflow-tooltip":""}),d(Y,{prop:"share_rate",label:"分成比例","show-overflow-tooltip":""}),d(Y,{prop:"jiesuan_money",label:"日结算总额","show-overflow-tooltip":"","min-width":"200px"})])),_:1},8,["data"])),[[E,j(T)]]),d(D)])])}}}),[["__scopeId","data-v-b24a2714"]]);export{g as default};
