import{r as i,A as Q,B as A,c as u,C as G,d as s,e as y,D as w,E as Y,i as a,f as e,h as o,G as f,I as T,F as P,J as L,m,y as q,L as z,v as H}from"./index-DpL4X0aS.js";import{p as K,m as W,r as X}from"./recruit-Cmt0aZlD.js";const Z={class:"app-container"},$=T({name:"Post"}),oe=Object.assign($,{setup(ee){const{proxy:N}=H(),h=i([]);i(!1);const b=i(!1),j=i(!0),v=i(0);i("");const V=i([]),k=i([]);i("");const B=Q({accurateParam:{},queryParams:{page:1,limit:10,type:6,query:"exact"}}),{queryParams:d,form:le,accurateParam:n}=A(B);K().then(c=>{V.value=[{value:"",label:"请选择"},...c.data.map(t=>({value:t.id,label:t.name,id:t.id}))]}),W().then(c=>{k.value=[{value:"",label:"请选择"},...c.map(t=>(t=JSON.parse(t),{value:t.id,label:t.name,id:t.id}))]});function x(){b.value=!0;var c=d.value;c.accurate=JSON.stringify(n.value),X(d.value).then(t=>{h.value=t.data,v.value=t.count,b.value=!1})}function U(){d.value.page=1,d.value.limit=10,x()}function M(){N.resetForm("queryRef"),U()}return(c,t)=>{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"),R=u("el-form"),r=u("el-table-column"),F=u("router-link"),J=u("el-tag"),O=u("el-table"),E=u("pagination"),I=G("loading");return s(),y("div",Z,[w(e(R,{model:a(n),ref:"queryRef",inline:!0},{default:o(()=>[e(p,{label:"项目名称",prop:"pro_id"},{default:o(()=>[e(g,{filterable:"",modelValue:a(n).pro_id,"onUpdate:modelValue":t[0]||(t[0]=l=>a(n).pro_id=l),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(s(!0),y(P,null,L(a(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:a(n).manufacturer_id,"onUpdate:modelValue":t[1]||(t[1]=l=>a(n).manufacturer_id=l),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(s(!0),y(P,null,L(a(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:a(n).name,"onUpdate:modelValue":t[2]||(t[2]=l=>a(n).name=l),placeholder:"请输入姓名",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(p,{label:"证件号码",prop:"idno"},{default:o(()=>[e(C,{modelValue:a(n).idno,"onUpdate:modelValue":t[3]||(t[3]=l=>a(n).idno=l),placeholder:"请输入证件号码",clearable:"",style:{width:"200px"}},null,8,["modelValue"])]),_:1}),e(p,{label:"入职状态",prop:"state"},{default:o(()=>[e(g,{modelValue:a(n).state,"onUpdate:modelValue":t[4]||(t[4]=l=>a(n).state=l),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[e(_,{label:"入职",value:"bycar"}),e(_,{label:"其它",value:"other"})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"起始日期",prop:"start_time"},{default:o(()=>[e(D,{modelValue:a(n).start_time,"onUpdate:modelValue":t[5]||(t[5]=l=>a(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:a(n).end_time,"onUpdate:modelValue":t[6]||(t[6]=l=>a(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:M},{default:o(()=>[m("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[Y,a(j)]]),w((s(),f(O,{data:a(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(F,{to:"/channel/entry/details?id="+l.row.id,class:"router-link-exact-active"},{default:o(()=>[m(q(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(q(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(J,{key:0,type:"success"},{default:o(()=>[m("入职")]),_:1})):z("",!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"])),[[I,a(b)]]),w(e(E,{total:a(v),page:a(d).page,"onUpdate:page":t[7]||(t[7]=l=>a(d).page=l),limit:a(d).limit,"onUpdate:limit":t[8]||(t[8]=l=>a(d).limit=l),onPagination:x},null,8,["total","page","limit"]),[[Y,a(v)>0]])])}}});export{oe as default};
