import{B as p,r as k,l as C,a7 as D,d as x,a as d,o as a,c as r,f as i,F as w,g as b,i as _,p as f,t as l,e as P,h as F,_ as R}from"./index-8184dd63-1780045603901v=1.0.0.js";const q=t=>p.post("/organUnit/review/add",t,{headers:{noLoading:!0}}),z=t=>p.post("/organUnit/review/review",t,{headers:{noLoading:!0}}),H=t=>p.post("/areaSubmit/baseReport/reviewList",t,{headers:{noLoading:!0}}),A=t=>p.post("/organUnit/review/record",t,{headers:{noLoading:!0}}),O=t=>p.post("/areaSubmit/baseReport/reviewData",t,{headers:{noLoading:!0}}),T=t=>{const g=k(!1),u=k([]),h=k(!1),o=k(""),v=C(()=>(n,c)=>{let e=!1,s=c.status;switch(n){case"edit":(s==1||s==4)&&(e=!0);break;case"checkProgress":s!=1&&(e=!0);break;case"submit":s==1&&(e=!0);break;case"del":s!=3&&s!=5&&(e=!0);break}return e}),y=C(()=>(n,c)=>{let e=!1,s=c.status;switch(n){case"edit":(s==1||s==4)&&(e=!0);break;case"checkProgress":s!=1&&(e=!0);break;case"check":s==2&&(e=!0);break;case"del":s!=3&&s!=5&&(e=!0);break}return e});return{progressVisible:g,progressList:u,getSubmitDisabled:v,getCheckDisabled:y,auditVisible:h,reviewId:o,handleCheck:async(n,c)=>{let s=await A({resource_code:t,resource_id:n});u.value=s.data,o.value=c,await D(),h.value=!0},handleCheckProgress:async n=>{let e=await A({resource_code:t,resource_id:n});u.value=e.data,await D(),g.value=!0}}},S={key:0,class:"progress-container"},j={class:"timeline-container"},B={class:"time-left"},V={class:"time-center"},N={key:1,class:"round"},U={class:"time-right"},E=x({name:"AuditProgress"}),I=x({...E,props:{progressList:{type:Array,required:!0,default:()=>[]}},setup(t){const g=t,u=o=>o.organ_unit_name.length+o.des.length>50,h=(o,v)=>v==0?[3,4,5].indexOf(o.status)==-1:!0;return(o,v)=>{const y=d("SuccessFilled"),m=d("CircleCloseFilled"),L=d("el-icon"),n=d("el-tooltip"),c=d("el-empty");return g.progressList.length?(a(),r("div",S,[i("div",j,[i("div",B,[(a(!0),r(w,null,b(t.progressList,(e,s)=>(a(),r("span",{key:s,class:f([e.status=="4"?"danger":"primary"])},l(e.status_str),3))),128))]),i("div",V,[(a(!0),r(w,null,b(t.progressList,(e,s)=>(a(),r("div",{key:s},[e.status=="3"||e.status=="4"?(a(),_(L,{key:0,color:e.status=="3"?"#67c23a":"#f57575",class:"icon"},{default:P(()=>[e.status=="3"?(a(),_(y,{key:0})):(a(),_(m,{key:1}))]),_:2},1032,["color"])):(a(),r("span",N)),h(e,s)?(a(),r("span",{key:2,class:f(["line",e.status!="1"?"active":""])},null,2)):F("v-if",!0)]))),128))]),i("div",U,[(a(!0),r(w,null,b(t.progressList,(e,s)=>(a(),r("div",{key:s},[u(e)?(a(),_(n,{key:0,placement:"top",class:"max-width","popper-class":"popper",content:`${e.organ_unit_name}: ${e.des}`},{default:P(()=>[i("span",{class:f([s==t.progressList.length-1?"active":""])},l(e.organ_unit_name)+": "+l(e.des),3)]),_:2},1032,["content"])):(a(),r("span",{key:1,class:f([s==t.progressList.length-1?"active":""])},l(e.organ_unit_name)+": "+l(e.des),3)),i("span",null,l(e.review_time),1)]))),128))])])])):(a(),_(c,{key:1,description:"\u6682\u65E0"}))}}});const G=R(I,[["__scopeId","data-v-ff16a8d2"],["__file","D:/desktop/yunNan/vue-area-submit/src/components/CheckDialog/AuditProgress.vue"]]);export{G as A,O as a,q as b,H as g,z as r,T as u};
