import{d as j}from"./salary-C6c2q2dc.js";import k from"./pay-Dyjz2CIo.js";import{r as l,C as x,D as N,x as q,e as r,E as A,o as u,J as m,h as p,k as F,G as L,f as a,m as R,y as f,i as E,K as G,B as J}from"./index-C1_1_QXk.js";import"./salary-CA4jeSd5.js";const K={class:"app-container"},T=J({name:"Post"}),W=Object.assign(T,{props:["data","addVisible"],emits:["changeVisible","tableData"],setup(g,{emit:_}){l([]);const d=l([]);l(!1);const n=l(!0);l(!0);const b=l(0);l("");const v=l(!1),V=l({});l([]),l();const s=g,h=_,y=x({form:{},queryParams:{page:1,limit:1e3,id_no:s.data.id_no,project_id:s.data.pro_id,state:"pass"}}),{queryParams:C,form:U,rules:z}=N(y);function w(){n.value=!0,j(C.value).then(e=>{d.value=e.data,b.value=e.count,n.value=!1})}w();function D(e){if(e.state==="new")return"待审核";if(e.state==="pass")return"审批通过";if(e.state==="notpass")return"审批未通过"}function O(e){return e.salary_status==="1"?"已发薪":"未发薪"}const i=q({get:()=>s.addVisible,set:e=>h("changeVisible",e)});return(e,c)=>{const t=r("el-table-column"),B=r("el-table"),P=r("el-dialog"),S=A("loading");return u(),m(P,{title:"打卡天数",modelValue:E(i),"onUpdate:modelValue":c[0]||(c[0]=o=>G(i)?i.value=o:null),width:"1300px",onOpen:e.dialogOpen,onClose:e.dialogClose,"custom-class":"dialogClass"},{default:p(()=>[F("div",K,[L((u(),m(B,{data:d.value},{default:p(()=>[a(t,{label:"招聘厂商",align:"center",prop:"manufacturer"}),a(t,{label:"所属项目",align:"left",prop:"project"}),a(t,{label:"申请人",align:"center",prop:"name"}),a(t,{label:"证件号码",align:"left",prop:"id_no",width:"180"}),a(t,{label:"预支工资",align:"center",prop:"money"}),a(t,{label:"申请时间",align:"left",prop:"create_time",width:"180"}),a(t,{label:"审批人",align:"center",prop:"user"}),a(t,{label:"审核状态",align:"center",prop:"state",formatter:D}),a(t,{label:"发薪状态",align:"center",prop:"salaryStatus",formatter:O}),a(t,{label:"发薪时间",align:"left",prop:"paid_time",width:"180"}),a(t,{label:"审批意见",align:"left"},{default:p(({row:o})=>[R(f(o.cause_name)+f(o.opinion),1)]),_:1})]),_:1},8,["data"])),[[S,n.value]]),a(k,{addVisible:v.value,row:V.value,onChangeVisible:e.openpayDig},null,8,["addVisible","row","onChangeVisible"])])]),_:1},8,["modelValue","onOpen","onClose"])}}});export{W as default};
