/* empty css             *//* empty css                   */import{_ as e}from"./index.vue_vue_type_script_setup_true_lang-bc7fd1e2.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-946854ba.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-de431829.js";/* empty css                     */import{h as s}from"./moment-5c1f5c63.js";/* empty css                 *//* empty css                  */import{s as o}from"./shortcuts-be0c90a7.js";import{u as r}from"./useGetList-927e47a1.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,W as c,l as h,aq as f,aE as v,a3 as b,a7 as y,a8 as Y,$ as g,_ as x}from"./index-2b50ecca.js";/* empty css                      *//* empty css                  */import"./index-a921dba7.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=x(l({__name:"index",props:{primary:Object},setup(l){const x=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},C=()=>{O()},E=i((()=>{var e;return null==(e=D.value)?void 0:e.data}));return x.primary&&(x.primary,k.value.company_uid=x.primary.company_uid),p((()=>{T()})),(s,r)=>{const l=v,i=b,p=t,f=a,x=y,D=Y,O=e,W=g;return n(),m("div",null,[u(f,{search:d(T),reset:C},{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(E),class:"mt-3"},{default:_((()=>[u(x,{prop:"jiesuan_date",label:"时间","min-width":"200px"}),u(x,{prop:"charge_money","show-overflow-tooltip":"",label:"日充值总额","min-width":"200px"}),u(x,{prop:"tuikuan_money",label:"当日退款","show-overflow-tooltip":""}),u(x,{prop:"share_rate",label:"分成比例","show-overflow-tooltip":""}),u(x,{prop:"jiesuan_money",label:"日结算总额","show-overflow-tooltip":"","min-width":"200px"})])),_:1},8,["data"])),[[W,d(V)]]),u(O)])])}}}),[["__scopeId","data-v-861264ad"]]);export{D as default};
