import{r as i,A,B as G,c as u,C as T,d as s,e as y,D as w,E as P,i as t,f as e,h as o,G as f,I as z,F as L,J as q,m,y as N,L as j,v as H}from"./index-CR7iy6Pf.js";import{p as K,m as W,r as X}from"./recruit-DFKds3RD.js";const Z={class:"app-container"},$=z({name:"Post"}),oe=Object.assign($,{setup(ee){const{proxy:B}=H(),h=i([]);i(!1);const b=i(!1),M=i(!0),v=i(0);i("");const V=i([]),k=i([]);i("");const R=A({accurateParam:{},queryParams:{page:1,limit:10,type:6,query:"exact"}}),{queryParams:d,form:le,accurateParam:n}=G(R);K().then(c=>{V.value=[{value:"",label:"请选择"},...c.data.map(a=>({value:a.id,label:a.name,id:a.id}))]}),W().then(c=>{k.value=[{value:"",label:"请选择"},...c.map(a=>(a=JSON.parse(a),{value:a.id,label:a.name,id:a.id}))]});function x(){b.value=!0;var c=d.value;c.accurate=JSON.stringify(n.value),X(d.value).then(a=>{h.value=a.data,v.value=a.count,b.value=!1})}function U(){d.value.page=1,d.value.limit=10,x()}function F(){B.resetForm("queryRef"),U()}return(c,a)=>{const _=u("el-option"),g=u("el-select"),p=u("el-form-item"),C=u("el-input"),D=u("el-date-picker"),S=u("el-button"),J=u("el-form"),r=u("el-table-column"),O=u("router-link"),Y=u("el-tag"),E=u("el-table"),I=u("pagination"),Q=T("loading");return s(),y("div",Z,[w(e(J,{model:t(n),ref:"queryRef",inline:!0},{default:o(()=>[e(p,{label:"项目名称",prop:"pro_id"},{default:o(()=>[e(g,{filterable:"",modelValue:t(n).pro_id,"onUpdate:modelValue":a[0]||(a[0]=l=>t(n).pro_id=l),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(s(!0),y(L,null,q(t(V),l=>(s(),f(_,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"招聘厂商",prop:"manufacturer_id"},{default:o(()=>[e(g,{filterable:"",modelValue:t(n).manufacturer_id,"onUpdate:modelValue":a[1]||(a[1]=l=>t(n).manufacturer_id=l),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(s(!0),y(L,null,q(t(k),l=>(s(),f(_,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"姓名",prop:"name"},{default:o(()=>[e(C,{modelValue:t(n).name,"onUpdate:modelValue":a[2]||(a[2]=l=>t(n).name=l),placeholder:"请输入姓名",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(p,{label:"证件号码",prop:"idno"},{default:o(()=>[e(C,{modelValue:t(n).idno,"onUpdate:modelValue":a[3]||(a[3]=l=>t(n).idno=l),placeholder:"请输入证件号码",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(p,{label:"入职状态",prop:"state"},{default:o(()=>[e(g,{modelValue:t(n).state,"onUpdate:modelValue":a[4]||(a[4]=l=>t(n).state=l),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[e(_,{label:"入职",value:"bycar"}),e(_,{label:"其它",value:"other"}),e(_,{label:"放弃",value:"waive"})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"起始日期",prop:"start_time"},{default:o(()=>[e(D,{modelValue:t(n).start_time,"onUpdate:modelValue":a[5]||(a[5]=l=>t(n).start_time=l),type:"date","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),e(p,{label:"结束日期",prop:"end_time"},{default:o(()=>[e(D,{modelValue:t(n).end_time,"onUpdate:modelValue":a[6]||(a[6]=l=>t(n).end_time=l),type:"date","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),e(p,null,{default:o(()=>[e(S,{type:"primary",icon:"Search",onClick:U},{default:o(()=>[m("搜索")]),_:1}),e(S,{icon:"Refresh",onClick:F},{default:o(()=>[m("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[P,t(M)]]),w((s(),f(E,{data:t(h)},{default:o(()=>[e(r,{label:"项目名称",align:"center",prop:"project",width:"240"}),e(r,{label:"招聘厂商",align:"center",prop:"manufacturer",width:"200"}),e(r,{label:"所属渠道",align:"center",prop:"channel",width:"200"}),e(r,{label:"姓名",align:"center",prop:"name"},{default:o(l=>[e(O,{to:"/channel/entry/details?id="+l.row.id,class:"router-link-exact-active"},{default:o(()=>[m(N(l.row.name),1)]),_:2},1032,["to"])]),_:1}),e(r,{label:"证件号码",align:"center",prop:"id_no",width:"200"}),e(r,{label:"联系电话",align:"center",prop:"phone_number",width:"150"}),e(r,{label:"性别",align:"center",width:"50"},{default:o(({row:l})=>[m(N(l.sex=="1"?"男":"女"),1)]),_:1}),e(r,{label:"年龄",align:"center",prop:"age",width:"50"}),e(r,{label:"籍贯",align:"center",prop:"register",width:"120","show-overflow-tooltip":""}),e(r,{label:"报备时间",align:"center",prop:"create_time",width:"200"}),e(r,{label:"入职状态",align:"center",width:"80"},{default:o(({row:l})=>[l.statevalues=="6"?(s(),f(Y,{key:0,type:"success"},{default:o(()=>[m("入职")]),_:1})):j("",!0),l.statevalues=="8"?(s(),f(Y,{key:1},{default:o(()=>[m("放弃")]),_:1})):j("",!0)]),_:1}),e(r,{label:"入职时间",align:"center",prop:"operation_time",width:"200"}),e(r,{label:"紧急联系人",align:"center",prop:"contacts",width:"120"}),e(r,{label:"紧急联系人电话",align:"center",prop:"contact_number",width:"120"})]),_:1},8,["data"])),[[Q,t(b)]]),w(e(I,{total:t(v),page:t(d).page,"onUpdate:page":a[7]||(a[7]=l=>t(d).page=l),limit:t(d).limit,"onUpdate:limit":a[8]||(a[8]=l=>t(d).limit=l),onPagination:x},null,8,["total","page","limit"]),[[P,t(v)>0]])])}}});export{oe as default};
