/* empty css             *//* empty css                   */import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-e601cfd0.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                     */import{_ as a}from"./search.vue_vue_type_script_setup_true_lang-8a36466d.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-5656f935.js";/* empty css                     */import{h as s}from"./moment-19b77ecd.js";/* empty css                 *//* empty css                  */import{s as o}from"./shortcuts-45ce8eab.js";import{u as r}from"./useGetList-33a80877.js";import{d as l,n as i,z as n,o as p,c as m,a as u,w as _,f as d,e as j,Z as c,l as h,aq as v,av as f,a6 as b,aa as y,ab as x,a2 as Y,_ as g}from"./index-545c1a76.js";/* empty css                  */import"./index-b347df0b.js";import"./exportExcel-331c8441.js";/* empty css                   */const w={"时间":"jiesuan_date","日充值总额":"charge_money","当日退款":"tuikuan_money","分成比例":"share_rate","日结算总额":"jiesuan_money"},M={class:"table-default"},D=g(l({__name:"index",props:{primary:Object},setup(l){const g=l;s().startOf("month").format("YYYY-MM-DD"),s().endOf("month").format("YYYY-MM-DD");const{data:D,query:k,search:O,reset:T,loading:V}=r("jiesuanManage/jiesuan/list"),q=e=>{if(k.value.createTime){const a=v(e);k.value.jiesuan_date_start_at=a[0],k.value.jiesuan_date_end_at=a[1]}else delete k.value.jiesuan_date_start_at,delete k.value.jiesuan_date_end_at},z=()=>{T()},C=i((()=>{var e;return null==(e=D.value)?void 0:e.data}));return g.primary&&(g.primary,k.value.company_uid=g.primary.company_uid),n((()=>{O()})),(s,r)=>{const l=f,i=b,n=t,v=a,g=y,D=x,T=e,I=Y;return p(),m("div",null,[u(v,{search:d(O),reset:z},{body:_((()=>[u(i,{label:"结算时间"},{default:_((()=>[u(l,{"unlink-panels":"",clearable:"",onChange:q,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:d(k).createTime,"onUpdate:modelValue":r[0]||(r[0]=e=>d(k).createTime=e),type:"daterange",shortcuts:d(o),"range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue","shortcuts"])])),_:1})])),extra_button:_((()=>[u(n,{api:"jiesuanManage/jiesuan/list",sheet_name:"结算明细",title_obj:d(w),extro_params:{is_export:1,...d(k)}},null,8,["title_obj","extro_params"])])),_:1},8,["search"]),j("div",M,[c((p(),h(D,{data:d(C),class:"mt-3"},{default:_((()=>[u(g,{prop:"jiesuan_date",label:"时间","min-width":"200px"}),u(g,{prop:"charge_money","show-overflow-tooltip":"",label:"日充值总额","min-width":"200px"}),u(g,{prop:"tuikuan_money",label:"当日退款","show-overflow-tooltip":""}),u(g,{prop:"share_rate",label:"分成比例","show-overflow-tooltip":""}),u(g,{prop:"jiesuan_money",label:"日结算总额","show-overflow-tooltip":"","min-width":"200px"})])),_:1},8,["data"])),[[I,d(V)]]),u(T)])])}}}),[["__scopeId","data-v-b24a2714"]]);export{D as default};
