import{r as i,A as E,B as I,c as u,C as Q,d as s,e as y,D as w,E as Y,i as t,f as e,h as o,G as _,I as A,F as P,J as L,m as f,y as G,L as T,v as z}from"./index-CyJm5I3b.js";import{p as H,m as K,r as W}from"./recruit-eJnxMJwn.js";const X={class:"app-container"},Z=A({name:"Post"}),te=Object.assign(Z,{setup($){const{proxy:q}=z(),h=i([]);i(!1);const b=i(!1),N=i(!0),v=i(0);i("");const V=i([]),x=i([]);i("");const j=E({accurateParam:{},queryParams:{page:1,limit:10,type:3,query:"exact"}}),{queryParams:d,form:ee,accurateParam:n}=I(j);H().then(c=>{V.value=[{value:"",label:"请选择"},...c.data.map(l=>({value:l.id,label:l.name,id:l.id}))]}),K().then(c=>{x.value=[{value:"",label:"请选择"},...c.map(l=>(l=JSON.parse(l),{value:l.id,label:l.name,id:l.id}))]});function k(){b.value=!0;var c=d.value;c.accurate=JSON.stringify(n.value),W(d.value).then(l=>{h.value=l.data,v.value=l.count,b.value=!1})}function U(){d.value.page=1,d.value.limit=10,k()}function B(){q.resetForm("queryRef"),U()}return(c,l)=>{const m=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"),M=u("el-form"),r=u("el-table-column"),R=u("el-tag"),F=u("el-table"),J=u("pagination"),O=Q("loading");return s(),y("div",X,[w(e(M,{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":l[0]||(l[0]=a=>t(n).pro_id=a),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(s(!0),y(P,null,L(t(V),a=>(s(),_(m,{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(g,{filterable:"",modelValue:t(n).manufacturer_id,"onUpdate:modelValue":l[1]||(l[1]=a=>t(n).manufacturer_id=a),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[(s(!0),y(P,null,L(t(x),a=>(s(),_(m,{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(C,{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(C,{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(g,{modelValue:t(n).state,"onUpdate:modelValue":l[4]||(l[4]=a=>t(n).state=a),placeholder:"请选择",style:{width:"240px"}},{default:o(()=>[e(m,{label:"到站",value:"bycar"}),e(m,{label:"其它",value:"other"})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"起始日期",prop:"start_time"},{default:o(()=>[e(D,{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(D,{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(S,{type:"primary",icon:"Search",onClick:U},{default:o(()=>[f("搜索")]),_:1}),e(S,{icon:"Refresh",onClick:B},{default:o(()=>[f("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[Y,t(N)]]),w((s(),_(F,{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",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})=>[f(G(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})=>[a.statevalues=="3"?(s(),_(R,{key:0,type:"success"},{default:o(()=>[f("接站")]),_:1})):T("",!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"])),[[O,t(b)]]),w(e(J,{total:t(v),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"]),[[Y,t(v)>0]])])}}});export{te as default};
