var F=Object.defineProperty,R=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var x=(s,t,e)=>t in s?F(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,I=(s,t)=>{for(var e in t||(t={}))A.call(t,e)&&x(s,e,t[e]);if(g)for(var e of g(t))O.call(t,e)&&x(s,e,t[e]);return s},S=(s,t)=>R(s,j(t));var v=(s,t,e)=>new Promise((y,u)=>{var _=a=>{try{d(e.next(a))}catch(l){u(l)}},w=a=>{try{d(e.throw(a))}catch(l){u(l)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(_,w);d((e=e.apply(s,t)).next())});import{_ as C,d as M,r as J,N as K,P,f as N,g as c,K as V,m as b,l as B,h as f,G as T,i as G,t as L,L as U}from"./index.9fabe127.js";import{A as $}from"./index.15f81060.js";const q={key:1},z={key:0},H={key:1},Q=M({name:"selfScoreDetailDialog"}),W=Object.assign(Q,{props:{visible:{type:Boolean,default:!1},data:{type:Object}},emits:["close"],setup(s,{emit:t}){const e=s,y=t,u=[{label:"\u4E00\u7EA7\u6307\u6807",key:"oneName",prop:"oneName"},{label:"\u4E8C\u7EA7\u6307\u6807",key:"twoName",prop:"twoName"},{label:"\u4E09\u7EA7\u6307\u6807",key:"name",prop:"name"},{label:"\u6307\u6807\u7EC6\u5219",key:"indexDetail",prop:"indexDetail"},{label:"\u8BC4\u5206\u7EC6\u5219",key:"gradeDetail",prop:"gradeDetail"},{label:"\u4F50\u8BC1\u6750\u6599",key:"supportMaterial",prop:"supportMaterial"},{label:"\u6307\u6807\u5206\u503C",key:"indexScore",prop:"indexScore",width:85},{label:"\u81EA\u8BC4\u4F9D\u636E",key:"selfBasis",slot:"selfBasis",width:200},{label:"\u81EA\u8BC4\u5F97\u5206",key:"selfScore",slot:"selfScore",width:85}],_=({row:a,column:l,rowIndex:r,columnIndex:m})=>{if(m===0)return a.isFirstOne?{rowspan:a.oneRows,colspan:1}:{rowspan:0,colspan:0};if(m===1)return a.isFirstTwo?{rowspan:a.twoRows,colspan:1}:{rowspan:0,colspan:0}},w=J([]),d=a=>{const l=[];return a.forEach((r,m)=>{let o=0;r.children.forEach((i,h)=>{let p=0;i.children.forEach((n,k)=>{var D;l.push(S(I({oneId:r.templateId,oneName:r.name,twoId:i.templateId,twoName:i.name,isFirstOne:o===0,isFirstTwo:p===0,appraisalType1List:((D=n.selfAppraisalScoreInfo)==null?void 0:D.filter(E=>E.appraisalType===1))||[],oneRows:o,twoRows:p},n),{threeId:n.templateId})),o++,p++}),l.forEach(n=>{n.twoId===i.templateId&&(n.twoRows=p)})}),l.forEach(i=>{i.oneId===r.templateId&&(i.oneRows=o)})}),l};return K(()=>e.visible,a=>v(this,null,function*(){if(a){yield P();const l=d(e.data.templateDetails),r=d(e.data.additionalIndexDetails);w.value=[...l,...r]}})),(a,l)=>{const r=N("table-list"),m=N("el-dialog");return c(),V(m,{"model-value":s.visible,title:"\u81EA\u8BC4\u4FEE\u6539\u8BE6\u60C5",width:"80%","destroy-on-close":"",onClose:l[0]||(l[0]=o=>y("close"))},{default:b(()=>[B(r,{stripe:!1,border:!0,pagination:!1,data:w.value,"span-method":_,column:u},{selfBasis:b(({scope:o})=>{var i,h,p;return[(i=o.row.appraisalType1List)!=null&&i.length?(c(),f(T,{key:0},[G("p",null,L(o.row.appraisalType1List[0].appraisalBasis||"-"),1),(c(!0),f(T,null,U(((p=(h=o.row.appraisalType1List)==null?void 0:h[0])==null?void 0:p.appraisalBasisAppendix)&&JSON.parse(o.row.appraisalType1List[0].appraisalBasisAppendix),(n,k)=>(c(),f("p",{key:k,class:"mb-4"},[B($,{"file-name":n.originalFileName,"file-id":n.id},null,8,["file-name","file-id"])]))),128))],64)):(c(),f("span",q,"-"))]}),selfScore:b(({scope:o})=>{var i;return[(i=o.row.appraisalType1List)!=null&&i.length?(c(),f("div",z,L(o.row.appraisalType1List[0].appraisalScore),1)):(c(),f("span",H,"-"))]}),_:1},8,["data"])]),_:1},8,["model-value"])}}}),ee=C(W,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/unitSelfEvaluation/scoreDetail/components/selfScoreDetailDialog.vue"]]);export{ee as default};
