import{_ as N,r as s,C as Q,D as G,e as i,E as x,o as p,c as j,G as u,H as w,i as t,f as a,h as o,F as H,I as J,J as g,m as _,y as O,B as T,v as z}from"./index-C1_1_QXk.js";import{p as A,e as K}from"./salary-C6c2q2dc.js";const M={class:"app-container"},W=T({name:"Post"}),X=Object.assign(W,{setup(Y){const{proxy:y}=z(),b=s([]),h=s([]);s(!1);const m=s(!0),D=s(!0),f=s(0);s("");const P=Q({form:{},queryParams:{page:1,limit:10,pro_id:""}}),{queryParams:l,form:Z,rules:ee}=G(P);A().then(n=>{b.value=[{value:"",label:"请选择"},...n.data.map(r=>({value:r.id,label:r.project,id:r.id}))]});function v(){m.value=!0,K(l.value).then(n=>{h.value=n.data,f.value=n.count,m.value=!1})}function k(){l.value.page=1,l.value.limit=10,v()}function S(){l.value={},k()}function V(n){y.download("/djl-salary/reviewadvancesalaryapply/download",{project_id:n.pro_id},n.project+"-预支工资.xlsx")}function B(n){y.$router.push("salary/advance/main?pro_id="+n.pro_id)}return v(),(n,r)=>{const I=i("el-option"),L=i("el-select"),C=i("el-form-item"),d=i("el-button"),q=i("el-form"),c=i("el-table-column"),R=i("el-table"),U=i("pagination"),$=x("hasPermi"),E=x("loading");return p(),j("div",M,[u(a(q,{model:t(l),ref:"queryRef",inline:!0},{default:o(()=>[a(C,{label:"项目",prop:"projectId"},{default:o(()=>[a(L,{modelValue:t(l).pro_id,"onUpdate:modelValue":r[0]||(r[0]=e=>t(l).pro_id=e),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(p(!0),j(H,null,J(t(b),e=>(p(),g(I,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(C,null,{default:o(()=>[a(d,{type:"primary",icon:"Search",onClick:k},{default:o(()=>[_("搜索")]),_:1}),a(d,{icon:"Refresh",onClick:S},{default:o(()=>[_("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[w,t(D)]]),u((p(),g(R,{data:t(h)},{default:o(()=>[a(c,{label:"所属项目",align:"left",prop:"project"},{default:o(({row:e})=>[a(d,{link:"",type:"primary",onClick:F=>B(e)},{default:o(()=>[_(O(e.project),1)]),_:2},1032,["onClick"])]),_:1}),a(c,{label:"申请人次",align:"center",prop:"apply"}),a(c,{label:"通过人次",align:"center",prop:"pass"}),a(c,{label:"不通过人次",align:"center",prop:"not_pass"}),a(c,{label:"发放人次",align:"center",prop:"payoff"}),a(c,{label:"操作",width:"180",align:"center","class-name":"small-padding fixed-width"},{default:o(({row:e})=>[u((p(),g(d,{link:"",type:"primary",onClick:F=>V(e),icon:"Download"},{default:o(()=>[_("下载报盘")]),_:2},1032,["onClick"])),[[$,["manufacturer:edit"]]])]),_:1})]),_:1},8,["data"])),[[E,t(m)]]),u(a(U,{total:t(f),page:t(l).page,"onUpdate:page":r[1]||(r[1]=e=>t(l).page=e),limit:t(l).limit,"onUpdate:limit":r[2]||(r[2]=e=>t(l).limit=e),onPagination:v},null,8,["total","page","limit"]),[[w,t(f)>0]])])}}}),le=N(X,[["__scopeId","data-v-9d530ac0"]]);export{le as default};
