import{_ as R,r as i,C as E,D as N,e as r,E as Q,o as m,c as k,G as g,H as C,f as l,h as n,i as o,l as j,F as $,I as G,J as Y,m as c,y as U,B as H,v as J}from"./index-C1_1_QXk.js";import{p as O,c as T}from"./attendance-Di9IcRbk.js";const z={class:"app-container"},A=H({name:"Post"}),W=Object.assign(A,{setup(X){const{proxy:w}=J(),y=i([]),h=i([]),_=i(!0),D=i(!0),f=i(0);i(1),O().then(d=>{y.value=[{value:"",label:"请选择"},...d.data.map(a=>({value:a.pro_id,label:a.project,id:a.pro_id}))]});const K=E({form:{},queryParams:{page:1,limit:10,flag:"exact"}}),{queryParams:t,form:Z}=N(K);function v(){_.value=!0,T(t.value).then(d=>{h.value=d.data,f.value=d.count,_.value=!1})}function s(){t.value.page=1,t.value.limit=10,t.value.flag="exact",v()}function S(){t.value={},s()}function B(d){w.$router.push("/attendance/details?pro_id="+d.pro_id+"&id_no="+d.id_no+"&month="+d.month+"&channel_id="+d.channel_id+"&name="+d.name)}return v(),(d,a)=>{const V=r("el-input"),p=r("el-form-item"),L=r("el-option"),M=r("el-select"),x=r("el-date-picker"),b=r("el-button"),P=r("el-form"),u=r("el-table-column"),q=r("el-table"),F=r("pagination"),I=Q("loading");return m(),k("div",z,[g(l(P,{model:o(t),ref:"queryRef",inline:!0},{default:n(()=>[l(p,{label:"姓名",prop:"name"},{default:n(()=>[l(V,{modelValue:o(t).name,"onUpdate:modelValue":a[0]||(a[0]=e=>o(t).name=e),placeholder:"请输入姓名",clearable:"",style:{width:"300px"},onKeyup:j(s,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),l(p,{label:"项目名称",prop:"projectid"},{default:n(()=>[l(M,{modelValue:o(t).projectid,"onUpdate:modelValue":a[1]||(a[1]=e=>o(t).projectid=e),placeholder:"请选择",style:{width:"300px"}},{default:n(()=>[(m(!0),k($,null,G(y.value,e=>(m(),Y(L,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"证件号码",prop:"idno"},{default:n(()=>[l(V,{modelValue:o(t).idno,"onUpdate:modelValue":a[2]||(a[2]=e=>o(t).idno=e),placeholder:"请输入证件号码",clearable:"",style:{width:"300px"},onKeyup:j(s,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),l(p,{label:"开始日期",prop:"startdate"},{default:n(()=>[l(x,{modelValue:o(t).startdate,"onUpdate:modelValue":a[3]||(a[3]=e=>o(t).startdate=e),type:"month",placeholder:"开始日期","value-format":"YYYY-MM"},null,8,["modelValue"])]),_:1}),l(p,{label:"结束日期",prop:"enddate"},{default:n(()=>[l(x,{modelValue:o(t).enddate,"onUpdate:modelValue":a[4]||(a[4]=e=>o(t).enddate=e),type:"month",placeholder:"结束日期","value-format":"YYYY-MM"},null,8,["modelValue"])]),_:1}),l(p,null,{default:n(()=>[l(b,{type:"primary",icon:"Search",onClick:s},{default:n(()=>[c("搜索")]),_:1}),l(b,{icon:"Refresh",onClick:S},{default:n(()=>[c("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[C,D.value]]),g((m(),Y(q,{data:h.value},{default:n(()=>[l(u,{label:"项目名称",align:"left",prop:"project",width:"280"}),l(u,{label:"招聘厂商",align:"left",prop:"manufacturer",width:"280"}),l(u,{label:"姓名",align:"center",prop:"name"},{default:n(({row:e})=>[l(b,{link:"",type:"primary",onClick:ee=>B(e)},{default:n(()=>[c(U(e.name),1)]),_:2},1032,["onClick"])]),_:1}),l(u,{label:"证件号码",align:"left",prop:"id_no"}),l(u,{label:"打卡月份",align:"left",prop:"month"}),l(u,{label:"出勤时间（天）",align:"center",prop:"amount_day"},{default:n(({row:e})=>[c(U(parseFloat(e.amount_day)),1)]),_:1})]),_:1},8,["data"])),[[I,_.value]]),g(l(F,{total:f.value,page:o(t).page,"onUpdate:page":a[5]||(a[5]=e=>o(t).page=e),limit:o(t).limit,"onUpdate:limit":a[6]||(a[6]=e=>o(t).limit=e),onPagination:v},null,8,["total","page","limit"]),[[C,f.value>0]])])}}}),ae=R(W,[["__scopeId","data-v-4d6b4a36"]]);export{ae as default};
