/* empty css             *//* empty css                   */import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-e74be938.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-8edf6ccf.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-445e6bad.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-d550ec92.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,Z as c,l as h,ar as f,aC as v,a6 as b,aa as y,ab as x,a2 as Y,_ as g}from"./index-41bf27b7.js";/* empty css                  */import"./index-2a89b0c2.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:T,search:k,reset:O,loading:V}=r("jiesuanManage/jiesuan/list"),C=e=>{if(T.value.createTime){const a=f(e);T.value.jiesuan_date_start_at=a[0],T.value.jiesuan_date_end_at=a[1]}else delete T.value.jiesuan_date_start_at,delete T.value.jiesuan_date_end_at},S=()=>{O()},U=i((()=>{var e;return null==(e=D.value)?void 0:e.data}));return g.primary&&(g.primary,T.value.company_uid=g.primary.company_uid),p((()=>{k()})),(s,r)=>{const l=v,i=b,p=t,f=a,g=y,D=x,O=e,q=Y;return n(),m("div",null,[u(f,{search:d(k),reset:S},{body:_((()=>[u(i,{label:"结算时间"},{default:_((()=>[u(l,{"unlink-panels":"",clearable:"",onChange:C,format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:d(T).createTime,"onUpdate:modelValue":r[0]||(r[0]=e=>d(T).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(T)}},null,8,["title_obj","extro_params"])])),_:1},8,["search"]),j("div",M,[c((n(),h(D,{data:d(U),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"])),[[q,d(V)]]),u(O)])])}}}),[["__scopeId","data-v-b24a2714"]]);export{D as default};
