/* empty css             *//* empty css                   */import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-66f33117.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                  *//* empty css                     */import{_ as a}from"./search.vue_vue_type_script_setup_true_lang-72910575.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-f44eaf81.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-07470d8e.js";import{d as l,p as i,x as p,o as n,c as m,a as u,w as _,f as d,e as j,X as c,l as h,P as f,aF as v,a4 as b,a8 as x,a9 as y,a0 as g,_ as Y}from"./index-0ffeeea6.js";/* empty css                      *//* empty css                  */import"./index-44ccf907.js";import"./exportExcel-331c8441.js";/* empty css                 *//* empty css                   */const w={"时间":"jiesuan_date","日充值总额":"charge_money","当日退款":"tuikuan_money","分成比例":"share_rate","日结算总额":"jiesuan_money"},M={class:"table-default"},D=Y(l({__name:"index",props:{primary:Object},setup(l){const Y=l;s().startOf("month").format("YYYY-MM-DD"),s().endOf("month").format("YYYY-MM-DD");const{data:D,query:k,search:T,reset:O,loading:V}=r("jiesuanManage/jiesuan/list"),q=e=>{if(k.value.createTime){const a=f(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},E=()=>{O()},F=i((()=>{var e;return null==(e=D.value)?void 0:e.data}));return Y.primary&&(Y.primary,k.value.company_uid=Y.primary.company_uid),p((()=>{T()})),(s,r)=>{const l=v,i=b,p=t,f=a,Y=x,D=y,O=e,I=g;return n(),m("div",null,[u(f,{search:d(T),reset:E},{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(p,{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((n(),h(D,{data:d(F),class:"mt-3"},{default:_((()=>[u(Y,{prop:"jiesuan_date",label:"时间","min-width":"200px"}),u(Y,{prop:"charge_money","show-overflow-tooltip":"",label:"日充值总额","min-width":"200px"}),u(Y,{prop:"tuikuan_money",label:"当日退款","show-overflow-tooltip":""}),u(Y,{prop:"share_rate",label:"分成比例","show-overflow-tooltip":""}),u(Y,{prop:"jiesuan_money",label:"日结算总额","show-overflow-tooltip":"","min-width":"200px"})])),_:1},8,["data"])),[[I,d(V)]]),u(O)])])}}}),[["__scopeId","data-v-b24a2714"]]);export{D as default};
