import{r as i,A as E,B as I,c as u,C as Q,d as m,e as g,D as w,E as C,i as t,f as e,h as o,G as h,I as A,F as P,J as q,m as _,y as L,v as G}from"./index-C3yUBfpY.js";import{p as T,m as z,r as H}from"./recruit-CbyI786x.js";const K={class:"app-container"},W=A({name:"Post"}),le=Object.assign(W,{setup(X){const{proxy:j}=G(),y=i([]);i(!1);const f=i(!1),B=i(!0),b=i(0);i("");const V=i([]),x=i([]);i("");const M=E({accurateParam:{},queryParams:{page:1,limit:10,type:6,query:"exact"}}),{queryParams:d,form:Z,accurateParam:n}=I(M);T().then(s=>{V.value=[{value:"",label:"请选择"},...s.data.map(l=>({value:l.id,label:l.name,id:l.id}))]}),z().then(s=>{x.value=[{value:"",label:"请选择"},...s.map(l=>(l=JSON.parse(l),{value:l.id,label:l.name,id:l.id}))]});function k(){f.value=!0;var s=d.value;s.accurate=JSON.stringify(n.value),H(d.value).then(l=>{y.value=l.data,b.value=l.count,f.value=!1})}function U(){d.value.page=1,d.value.limit=10,k()}function N(){j.resetForm("queryRef"),U()}return(s,l)=>{const c=u("el-option"),v=u("el-select"),p=u("el-form-item"),D=u("el-input"),S=u("el-date-picker"),Y=u("el-button"),R=u("el-form"),r=u("el-table-column"),F=u("el-table"),J=u("pagination"),O=Q("loading");return m(),g("div",K,[w(e(R,{model:t(n),ref:"queryRef",inline:!0},{default:o(()=>[e(p,{label:"项目名称",prop:"pro_id"},{default:o(()=>[e(v,{modelValue:t(n).pro_id,"onUpdate:modelValue":l[0]||(l[0]=a=>t(n).pro_id=a),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(m(!0),g(P,null,q(t(V),a=>(m(),h(c,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"招聘厂商",prop:"manufacturer_id"},{default:o(()=>[e(v,{modelValue:t(n).manufacturer_id,"onUpdate:modelValue":l[1]||(l[1]=a=>t(n).manufacturer_id=a),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(m(!0),g(P,null,q(t(x),a=>(m(),h(c,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"姓名",prop:"name"},{default:o(()=>[e(D,{modelValue:t(n).name,"onUpdate:modelValue":l[2]||(l[2]=a=>t(n).name=a),placeholder:"请输入姓名",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(p,{label:"证件号码",prop:"idno"},{default:o(()=>[e(D,{modelValue:t(n).idno,"onUpdate:modelValue":l[3]||(l[3]=a=>t(n).idno=a),placeholder:"请输入证件号码",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(p,{label:"面试状态",prop:"state"},{default:o(()=>[e(v,{modelValue:t(n).state,"onUpdate:modelValue":l[4]||(l[4]=a=>t(n).state=a),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[e(c,{label:"面试",value:"bycar"}),e(c,{label:"其它",value:"other"})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"起始日期",prop:"start_time"},{default:o(()=>[e(S,{modelValue:t(n).start_time,"onUpdate:modelValue":l[5]||(l[5]=a=>t(n).start_time=a),type:"date","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),e(p,{label:"结束日期",prop:"end_time"},{default:o(()=>[e(S,{modelValue:t(n).end_time,"onUpdate:modelValue":l[6]||(l[6]=a=>t(n).end_time=a),type:"date","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),e(p,null,{default:o(()=>[e(Y,{type:"primary",icon:"Search",onClick:U},{default:o(()=>[_("搜索")]),_:1}),e(Y,{icon:"Refresh",onClick:N},{default:o(()=>[_("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[C,t(B)]]),w((m(),h(F,{data:t(y)},{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",width:"100"}),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:a})=>[_(L(a.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:a})=>[_(L(a.statevalues=="6"?"面试":"其他"),1)]),_: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"])),[[O,t(f)]]),w(e(J,{total:t(b),page:t(d).page,"onUpdate:page":l[7]||(l[7]=a=>t(d).page=a),limit:t(d).limit,"onUpdate:limit":l[8]||(l[8]=a=>t(d).limit=a),onPagination:k},null,8,["total","page","limit"]),[[C,t(b)>0]])])}}});export{le as default};
