import{_ as S,r as l,C as G,D as H,e as a,E as P,o as f,c as J,f as e,h as n,G as g,J as V,m as k,H as O,i as c,k as W,B as z,v as F}from"./index-C1_1_QXk.js";import{a as K}from"./attendance-Di9IcRbk.js";import M from"./edit-CJZwcCtV.js";const Q={class:"app-container"},X={class:"block"},Y=z({name:"Post"}),Z=Object.assign(Y,{setup(ee){const{proxy:i}=F(),v=l([]),u=l(!0);l(!0);const d=l(0),b=l(""),m=l(!1),h=l(!1);l(1);let C=i.$route.query.pro_id||"",$=i.$route.query.id_no||"",y=i.$route.query.month||"";i.$route.query.channel_id,i.$route.query.name;const q=G({form:{},queryParams:{page:1,limit:10,projectid:C,idno:$,month:y}}),{queryParams:p,form:te}=H(q);function _(){u.value=!0,K(p.value).then(o=>{v.value=o.data,d.value=o.count,u.value=!1})}function B(){w(!0)}function w(o){h.value=o}function D(o){if(!o.photoPath)return i.$modal.msgWarning("没有打卡照片");m.value=!0,b.value=o.photoPath}return _(),(o,s)=>{const x=a("el-button"),N=a("el-col"),E=a("el-row"),t=a("el-table-column"),I=a("el-table"),T=a("pagination"),j=a("el-image"),U=a("el-form"),A=a("el-dialog"),L=P("hasPermi"),R=P("loading");return f(),J("div",Q,[e(E,{gutter:10,class:"mb8"},{default:n(()=>[e(N,{span:1.5},{default:n(()=>[g((f(),V(x,{type:"primary",plain:"",onClick:B,icon:"Plus"},{default:n(()=>[k("补签")]),_:1})),[[L,["attendance:edit"]]])]),_:1})]),_:1}),g((f(),V(I,{data:v.value},{default:n(()=>[e(t,{label:"项目名称",align:"left",prop:"project",width:"280"}),e(t,{label:"姓名",align:"center",prop:"name"}),e(t,{label:"证件号码",align:"left",prop:"idNo",width:"180"}),e(t,{label:"首次打卡时间",align:"left",prop:"createTime"}),e(t,{label:"末次打卡时间",align:"left",prop:"updateTime"}),e(t,{label:"打卡次数",align:"left",prop:"amount"}),e(t,{label:"出勤时间（天）",align:"center",prop:"amountDay"}),e(t,{label:"坐标",align:"center",prop:"place",width:"280"}),e(t,{label:"照片",align:"center",prop:""},{default:n(({row:r})=>[e(x,{link:"",type:"primary",onClick:ae=>D(r)},{default:n(()=>[k("查看")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[R,u.value]]),g(e(T,{total:d.value,page:c(p).page,"onUpdate:page":s[0]||(s[0]=r=>c(p).page=r),limit:c(p).limit,"onUpdate:limit":s[1]||(s[1]=r=>c(p).limit=r),onPagination:_},null,8,["total","page","limit"]),[[O,d.value>0]]),e(A,{modelValue:m.value,"onUpdate:modelValue":s[2]||(s[2]=r=>m.value=r),width:"590px","append-to-body":""},{default:n(()=>[e(U,{ref:"postRef","label-width":"100px"},{default:n(()=>[W("div",X,[e(j,{src:b.value,style:{width:"550px",height:"350px"}},null,8,["src"])])]),_:1},512)]),_:1},8,["modelValue"]),e(M,{addVisible:h.value,data:c(i).$route.query,month:c(y),onChangeVisible:w,onTableData:_},null,8,["addVisible","data","month"])])}}}),ie=S(Z,[["__scopeId","data-v-b6c78968"]]);export{ie as default};
