import{_ as Q,r as c,C as T,D as A,e as r,E as w,o as p,c as I,G as d,H as V,f as e,h as o,i,F as G,I as H,J as m,m as _,B as J,v as O}from"./index-C1_1_QXk.js";import{b as z}from"./salaryadvancebill-DGfSaVoe.js";import{p as K}from"./salary-C6c2q2dc.js";const W={class:"app-container"},X=J({name:"Post"}),Z=Object.assign(X,{setup(ee){const{proxy:f}=O(),h=c([]),k=c([]),v=c(!0),j=c(!0),g=c(0);c(1),K().then(n=>{h.value=[{value:"",label:"请选择"},...n.data.map(l=>({value:l.pro_id,label:l.project,id:l.pro_id}))]});const P=T({form:{},queryParams:{page:1,limit:10}}),{queryParams:a,form:le}=A(P);function b(){v.value=!0,z(a.value).then(n=>{k.value=n.data,g.value=n.count,v.value=!1})}function D(){a.value.page=1,a.value.limit=10,b()}function B(){a.value={},D()}function S(n){f.$router.push("/system/salaryadvance/details?proId="+n.proId+"&belongDate="+n.belongDate)}function C(n,l){l!=="single"?f.download("/djl-salary/advance/salary/bill/export",{...a.value},"预支工资账单导出.xlsx"):f.download("/djl-salary/advance/salary/bill/export",{proId:n.proId,belongDate:n.belongDate,exportType:l},"预支工资账单导出.xlsx")}return b(),(n,l)=>{const q=r("el-option"),L=r("el-select"),y=r("el-form-item"),U=r("el-date-picker"),u=r("el-button"),Y=r("el-form"),$=r("el-col"),E=r("el-row"),s=r("el-table-column"),F=r("el-table"),R=r("pagination"),x=w("hasPermi"),M=w("loading");return p(),I("div",W,[d(e(Y,{model:i(a),ref:"queryRef",inline:!0},{default:o(()=>[e(y,{label:"项目名称",prop:"proId"},{default:o(()=>[e(L,{modelValue:i(a).proId,"onUpdate:modelValue":l[0]||(l[0]=t=>i(a).proId=t),placeholder:"请选择",style:{width:"300px"}},{default:o(()=>[(p(!0),I(G,null,H(h.value,t=>(p(),m(q,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"账单年月",prop:"belongDate"},{default:o(()=>[e(U,{modelValue:i(a).belongDate,"onUpdate:modelValue":l[1]||(l[1]=t=>i(a).belongDate=t),type:"month",placeholder:"账单年月","value-format":"YYYY-MM"},null,8,["modelValue"])]),_:1}),e(y,null,{default:o(()=>[e(u,{type:"primary",icon:"Search",onClick:D},{default:o(()=>[_("搜索")]),_:1}),e(u,{icon:"Refresh",onClick:B},{default:o(()=>[_("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[V,j.value]]),e(E,{gutter:10,class:"mb8"},{default:o(()=>[e($,{span:1.5},{default:o(()=>[d((p(),m(u,{type:"primary",plain:"",onClick:l[2]||(l[2]=t=>C("","")),icon:"download"},{default:o(()=>[_("导出")]),_:1})),[[x,["person:export"]]])]),_:1})]),_:1}),d((p(),m(F,{data:k.value},{default:o(()=>[e(s,{label:"项目",align:"left",prop:"project",width:"280"}),e(s,{label:"日期",align:"center",prop:"belongDate"}),e(s,{label:"总金额",align:"center",prop:"totalAmount"}),e(s,{label:"手续费",align:"center",prop:"serviceFee"}),e(s,{label:"总笔数",align:"center",prop:"totalTimes"}),e(s,{label:"总人数",align:"center",prop:"totalPerson"}),e(s,{label:"操作",width:"200",align:"center","class-name":"small-padding fixed-width",fixed:"right"},{default:o(({row:t})=>[d((p(),m(u,{link:"",type:"primary",icon:"Edit",onClick:N=>S(t)},{default:o(()=>[_("明细")]),_:2},1032,["onClick"])),[[x,["person:quit"]]]),d((p(),m(u,{link:"",type:"primary",icon:"Delete",onClick:N=>C(t,"single")},{default:o(()=>[_("导出")]),_:2},1032,["onClick"])),[[x,["person:edit:policy"]]])]),_:1})]),_:1},8,["data"])),[[M,v.value]]),d(e(R,{total:g.value,page:i(a).page,"onUpdate:page":l[3]||(l[3]=t=>i(a).page=t),limit:i(a).limit,"onUpdate:limit":l[4]||(l[4]=t=>i(a).limit=t),onPagination:b},null,8,["total","page","limit"]),[[V,g.value>0]])])}}}),ne=Q(Z,[["__scopeId","data-v-f611516f"]]);export{ne as default};
