var G=Object.defineProperty,Q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var q=(a,o,n)=>o in a?G(a,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[o]=n,D=(a,o)=>{for(var n in o||(o={}))X.call(o,n)&&q(a,n,o[n]);if(P)for(var n of P(o))Z.call(o,n)&&q(a,n,o[n]);return a},R=(a,o)=>Q(a,W(o));var k=(a,o,n)=>new Promise(($,d)=>{var t=f=>{try{h(n.next(f))}catch(T){d(T)}},x=f=>{try{h(n.throw(f))}catch(T){d(T)}},h=f=>f.done?$(f.value):Promise.resolve(f.value).then(t,x);h((n=n.apply(a,o)).next())});import{F as ee,_ as le,d as ae,H as te,r as z,N as se,f as v,g as M,K as E,m as l,l as e,p as b,t as S,i as u,k as j,j as L,al as oe}from"./index.9fabe127.js";import{j as pe,h as ne,i as ie,b as de,f as re}from"./uploadAction.3a8ed42d.js";const g=a=>{var o="";return(a==null?void 0:a.length)===0?"":(o=a==null?void 0:a.replace(/&/g,"&amp;"),o=o.replace(/</g,"&lt;"),o=o.replace(/>/g,"&gt;"),o=o.replace(/\'/g,"&apos;"),o=o.replace(/\"/g,"&quot;"),o)},ce=(a,o)=>k(void 0,null,function*(){const n=yield ee({fileId:a});return new Promise(($,d)=>{var t=new FileReader;t.readAsDataURL(n),t.onload=function(x){$(x.target.result)}})}),ue=(a,o,n)=>k(void 0,null,function*(){var h,f,T;const $=yield ce((h=a.resultFile[0].response)==null?void 0:h.data.id);console.log(o),console.log(n);const d=o!=null&&o.length?o.map((s,y)=>`<tr>
    ${y===0?`<td rowspan="${o.length}">\u9879\u76EE\u7EF4\u5EA6</td>`:""}
    ${s.isFirstOne?`<td rowspan="${s.oneRows}">${g(s.oneName)}</td>`:""}
     ${s.isFirstTwo?`<td rowspan="${s.twoRows}">${g(s.twoName)}</td>`:""}
    <td>${g(s.name)}</td>
    <td style="text-align: left">${g(s.indexDetail)}</td>
    <td style="text-align: left">${g(s.gradeDetail)}</td>
    <td>${s.indexScore}</td>
    <td>${s.appraisalType1List[0].appraisalScore}</td>
    <td>${s.appraisalType2List[0].appraisalScore}</td>
    <td>${g(s.supportMaterial)}</td>
  </tr>`).join(""):"",t=n!=null&&n.length?n.map((s,y)=>`<tr>
 ${y===0?`<td rowspan="${n.length}">\u9644\u52A0\u9879</td>`:""}
    ${s.isFirstOne?`<td rowspan="${s.oneRows}">${g(s.oneName)}</td>`:""}
     ${s.isFirstTwo?`<td rowspan="${s.twoRows}">${g(s.twoName)}</td>`:""}
    <td>${s.name}</td>
    <td style="text-align: left">${g(s.indexDetail)}</td>
    <td style="text-align: left">${g(s.gradeDetail)}</td>
    <td>${s.indexScore}</td>
    <td>${s.appraisalType1List[0].appraisalScore}</td>
    <td>${s.appraisalType2List[0].appraisalScore}</td>
    <td>${g(s.supportMaterial)}</td>
  </tr>`).join(""):"",x=`<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>\u7EE9\u6548\u8BC4\u4EF7\u62A5\u544A</title>
  <style>
    html, body, p, div, span {
      padding: 0;
      margin: 0;
    }
    .pdfHtml {
      text-align: center;
      color: #000000;
      font-family: SimSun;
    }
    .title{
      font-weight: bold;
      font-size: 32px;
      font-family: SimSun;
      margin-bottom: 100px;
    }
    .page{
      min-height: 1020px;
    }
    .pageOne{
      height: 1020px;
    }
    .pageTwo{
      height: 1010px;
    }
    .pageThree{
    }
    .top{
      text-align: left;
      margin-bottom: 30px;
    }
    .bold{
      font-weight: bold;
    }
    .text-center{
      text-align: center;
    }
    .text-left{
      text-align: left;
    }
    .mlTit{
      display: flex;align-items: center;
      margin-bottom: 16px;
    }
    .dashLine{
      flex:1;display: inline-block;border-bottom: 3px dashed;height: 1px
    }
    .twoMl{
      padding-left: 24px;
    }
    .oneTit{
      font-weight: bold;
      margin-bottom: 8px;
      margin-top: 8px;
    }
    .twoTit{
      padding-left: 24px;
      margin-bottom: 8px;
      margin-top: 8px;
    }
    .content{
      padding-left: 24px;
    }
    table {
      width: 100%;
      font-size: 16px;
      line-height: 1.5;
      border-collapse: collapse;
      table-layout: fixed;
      word-break: break-all;
      word-wrap: break-word;
      text-align: left;
      border: 1px solid #000000;
      line-height: 1.5;
      font-weight: normal;
    }
    tr > td {
      padding: 8px 2px;
      border: 1px solid #000000;
      border-collapse: collapse;
      text-align: center;
      font-weight: normal;
    }
    tr > th {
      padding: 8px 2px;
      border: 1px solid #000000;
      border-collapse: collapse;
      text-align: center;
      font-weight: normal;
    }
    @page{
        size: 210mm 297mm; /* A4 \u5BBD\u5EA6 */
        marks:cross;
        @bottom-center {
            content:  counter(page) "/" counter(pages) ;
        }
    }
  </style>
</head>
<body>
<div class="pdfHtml">
  <div class="pageOne page">
    <p class="title">${a.projectName||""}\u7EE9\u6548\u8BC4\u4EF7\u62A5\u544A</p>
    <div class="top">
      <div style="margin-bottom: 16px">
        <span class="label">\u9879\u76EE\u540D\u79F0\uFF1A</span>
        <span class="value">${a.projectName||""}</span>
      </div>
      <div style="margin-bottom: 16px">
        <span class="label">\u8BC4\u4EF7\u7C7B\u578B\uFF1A</span>
        <span class="value" style="vertical-align: middle">
       <span  style="vertical-align: middle">\u4E8B\u4E2D\u8BC4\u4EF7</span>
       <span style="vertical-align: middle;display:inline-block;border: 1px solid #333333;width: 12px;height:12px;${a.evaluationType==="\u4E8B\u4E2D\u8BC4\u4EF7"?"background: #333333":""}"></span>
       <span  style="vertical-align: middle;margin-left: 10px">\u4E8B\u540E\u8BC4\u4EF7</span>
       <span style="vertical-align: middle;display:inline-block;border: 1px solid #333333;width: 12px;height:12px;${a.evaluationType==="\u4E8B\u540E\u8BC4\u4EF7"?"background: #333333":""}"></span>
      </span>
      </div>
      <div style="margin-bottom: 16px">
        <span class="label">\u8BC4\u4EF7\u65B9\u5F0F\uFF1A</span>
        <span class="value" style="vertical-align: middle">
        <span  style="vertical-align: middle">\u90E8\u95E8\u62BD\u8BC4</span>
        <span style="vertical-align: middle;display:inline-block;border: 1px solid #333333;width: 12px;height:12px;background: #333333"></span>
      </span>
      </div>
      <div style="margin-bottom: 16px">
        <span class="label">\u8BC4\u4EF7\u673A\u6784\uFF1A</span>
        <span class="value">
        <span  style="vertical-align: middle">\u7B2C\u4E09\u65B9\u4E13\u4E1A\u673A\u6784</span>
        <span style="vertical-align: middle;display:inline-block;border: 1px solid #333333;width: 12px;height:12px;background: #333333"></span>
      </span>
      </div>
      <div style="margin-bottom: 16px;text-align: right">
        <span class="label">\u7F16\u5236\u5355\u4F4D\uFF1A</span>
        <span class="value">${a.organization||""}</span>
      </div>
      <div style="text-align: right">${new Date().getFullYear()}\u5E74${new Date().getMonth()+1}\u6708</div>
    </div>
    <p style="text-align: center;font-size: 18px">\u9879\u76EE\u7EE9\u6548\u5C0F\u7EC4\u6210\u5458\u540D\u5355</p>
    <div style="text-align: left">
      <div style="margin-bottom: 16px">
        <span class="label">\u7EC4\u957F\uFF1A</span>
        <span class="value">${a.reAppraisalLeader}</span>
      </div>
      <div style="margin-bottom: 16px">
        <span class="label">\u7EC4\u5458\uFF1A</span>
        <span class="value">${a.reAppraisalUsers}</span>
      </div>
    </div>
  </div>
  <div class="pageTwo page">
    <p class="text-center bold" style="font-size: 24px;margin-bottom: 10px">\u76EE\u5F55</p>
    <div class="mlTit">
      <span class="bold">\u4E00\u3001\u9879\u76EE\u6982\u51B5</span>
      <span>........................................................................</span>
      <span>1</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E00)\u3001\u9879\u76EE\u57FA\u672C\u60C5\u51B5</span>
      <span>...............................................................</span>
      <span>1</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E8C)\u3001\u5EFA\u8BBE\u76EE\u6807\u548C\u5185\u5BB9</span>
      <span>.............................................................</span>
      <span>1</span>
    </div>
    <div class="mlTit">
      <span class="bold">\u4E8C\u3001\u9879\u76EE\u7EE9\u6548\u8BC4\u4EF7\u5206\u6790</span>
      <span>................................................................</span>
      <span>2</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E00)\u3001\u7EE9\u6548\u8BC4\u4EF7\u65B9\u6CD5</span>
      <span>...............................................................</span>
      <span>2</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E8C)\u3001\u7EE9\u6548\u8BC4\u4EF7\u5B9E\u65BD\u8FC7\u7A0B</span>
      <span>...........................................................</span>
      <span>2</span>
    </div>
    <div class="mlTit">
      <span class="bold">\u4E09\u3001\u7EE9\u6548\u8BC4\u4EF7\u7ED3\u8BBA</span>
      <span>....................................................................</span>
      <span>3</span>
    </div>
    <div class="mlTit">
      <span class="bold">\u56DB\u3001\u7EE9\u6548\u8BC4\u4EF7\u7EF4\u5EA6\u5206\u6790</span>
      <span>................................................................</span>
      <span>3</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E00)\u3001\u9879\u76EE\u7EF4\u5EA6\u5206\u6790</span>
      <span>...............................................................</span>
      <span>3</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E8C)\u3001\u5E94\u7528\u7EF4\u5EA6\u5206\u6790</span>
      <span>...............................................................</span>
      <span>4</span>
    </div>
    <div class="mlTit">
      <span class="bold">\u4E94\u3001\u9879\u76EE\u6210\u6548</span>
      <span>........................................................................</span>
      <span>4</span>
    </div>
    <div class="mlTit">
      <span class="bold">\u516D\u3001\u5B58\u5728\u95EE\u9898\u53CA\u539F\u56E0\u5206\u6790</span>
      <span>..............................................................</span>
      <span>5</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E00)\u3001\u7528\u6237\u6D3B\u8DC3\u6709\u5F85\u8FDB\u4E00\u6B65\u63D0\u5347</span>
      <span>.....................................................</span>
      <span>5</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E8C)\u3001\u6570\u636E\u8D44\u6E90\u5171\u4EAB\u6709\u5F85\u8FDB\u4E00\u6B65\u4F18\u5316</span>
      <span>.................................................</span>
      <span>5</span>
    </div>
    <div class="mlTit">
      <span class="bold">\u4E03\u3001\u6574\u6539\u5EFA\u8BAE</span>
      <span>........................................................................</span>
      <span>6</span>
    </div>
    <div class="mlTit twoMl">
      <span>(\u4E00)\u3001\u52A0\u5F3A\u4E1A\u52A1\u8C03\u7814\uFF0C\u8FDB\u4E00\u6B65\u660E\u786E\u7CFB\u7EDF\u540E\u7EED\u8FD0\u884C</span>
      <span>.......................................</span>
      <span>6</span>
    </div>
  </div>
  <div class="pageThree page" style="text-align: left">
    <p class="oneTit">\u4E00\u3001\u9879\u76EE\u6982\u51B5</p>
    <p class="twoTit">\uFF08\u4E00\uFF09\u9879\u76EE\u57FA\u672C\u60C5\u51B5</p>
    <div class="content">
    <div style="margin-bottom: 16px">
      <span class="label">\u9879\u76EE\u540D\u79F0\uFF1A</span>
      <span class="value">${a.projectName||""}</span>
    </div>
    <div style="margin-bottom: 16px">
      <span class="label">\u9879\u76EE\u7C7B\u578B\uFF1A</span>
      <span class="value">${a.projectTypeName||""}</span>
    </div>
    <div style="margin-bottom: 16px">
      <span class="label">\u5EFA\u8BBE\u5355\u4F4D\uFF1A</span>
      <span class="value">${a.buildOrgName||""}</span>
    </div>
    <div style="margin-bottom: 16px">
      <span class="label">\u9879\u76EE\u57FA\u672C\u60C5\u51B5\uFF1A</span>
      <span class="value">${a.projectBasicSituation||""}</span>
    </div>
    </div>
    <p class="twoTit">\uFF08\u4E8C\uFF09\u5EFA\u8BBE\u76EE\u6807\u548C\u5185\u5BB9</p>
    <div class="content">
      <div style="margin-bottom: 16px">
        <span class="label">1.\u5EFA\u8BBE\u76EE\u6807</span>
        <p class="value">${a.projectIntroduction||""}</p>
      </div>
      <div style="margin-bottom: 16px">
        <span class="label">2.\u5EFA\u8BBE\u5185\u5BB9</span>
        <p class="value">${a.constructContent||""}</p>
      </div>
    </div>
    <p class="oneTit">\u4E00\u3001\u9879\u76EE\u7EE9\u6548\u8BC4\u4EF7\u5206\u6790</p>
    <p class="twoTit">\uFF08\u4E00\uFF09\u7EE9\u6548\u8BC4\u4EF7\u65B9\u6CD5</p>
    <div class="content">
      <p style="text-indent:2em">\u7EE9\u6548\u8BC4\u4EF7\u6307\u6807\u603B\u5206\u503C\u4E3A100\u5206\uFF08\u4E0D\u542B\u9644\u52A0\u5206\uFF09\uFF0C\u8BC4\u4EF7\u7ED3\u679C\u5C06\u6309\u4E94\u661F\u8BC4\u4EF7\u6CD5\u8FDB\u884C\u5206\u7EA7\u8BC4\u4EF7\uFF0C\u5B9A\u661F\u89C4\u5219\u5982\u4E0B\uFF1A</p>
      <table>
        <thead>
          <tr>
            <th>\u661F\u7EA7</th>
            <th>\u8BC4\u4EF7\u5F97\u5206</th>
            <th>\u5907\u6CE8</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>\u2605\u2605\u2605\u2605\u2605</td>
            <td>\u226590\u5206</td>
            <td></td>
          </tr>
          <tr>
            <td>\u2605\u2605\u2605\u2605</td>
            <td>\u226580\u5206\u4E14\uFF1C90\u5206</td>
            <td></td>
          </tr>
          <tr>
            <td>\u2605\u2605\u2605</td>
            <td>\u226570\u5206\u4E14\uFF1C80\u5206</td>
            <td></td>
          </tr>
          <tr>
            <td>\u2605\u2605</td>
            <td>\u226560\u5206\u4E14\uFF1C70\u5206</td>
            <td></td>
          </tr>
          <tr>
            <td>\u2605</td>
            <td>\uFF1C60\u5206</td>
            <td></td>
          </tr>
        </tbody>
      </table>
    </div>
    <p class="twoTit">\uFF08\u4E8C\uFF09\u7EE9\u6548\u8BC4\u4EF7\u5B9E\u65BD\u8FC7\u7A0B</p>
    <div class="content">
      <div style="margin-bottom: 16px">
        <span class="label">1.\u5EFA\u8BBE\u5355\u4F4D\u81EA\u8BC4</span>
        <p class="value">\u5F97\u5206${a.selfAppraisalTotalScore}\uFF0C\u661F\u7EA7\u4E3A${a.selfAppraisalTotalScore>=90?"\u2605\u2605\u2605\u2605\u2605":a.selfAppraisalTotalScore>=80?"\u2605\u2605\u2605\u2605":a.selfAppraisalTotalScore>=70?"\u2605\u2605\u2605":a.selfAppraisalTotalScore>=60?"\u2605\u2605":"\u2605"}</p>
      </div>
      <div style="margin-bottom: 16px">
        <span class="label">2.\u7B2C\u4E09\u65B9\u8BC4\u4EF7</span>
        <p class="value">\u5F97\u5206${a.reAppraisalTotalScore}\uFF0C\u661F\u7EA7\u4E3A${a.reAppraisalTotalScore>=90?"\u2605\u2605\u2605\u2605\u2605":a.reAppraisalTotalScore>=80?"\u2605\u2605\u2605\u2605":a.reAppraisalTotalScore>=70?"\u2605\u2605\u2605":a.reAppraisalTotalScore>=60?"\u2605\u2605":"\u2605"}</p>
      </div>
    </div>
    <p class="oneTit">\u4E09\u3001\u7EE9\u6548\u8BC4\u4EF7\u7ED3\u8BBA</p>
    <div style="height: 150px;border: 1px solid #eeeeee">
        <img  src="${$}" style="width: 100%;height:100%"/>
    </div>
    <p class="text-center" style="margin: 10px 0">\u9879\u76EE\u7EE9\u6548\u8BC4\u4EF7\u5F97\u5206\u793A\u610F\u56FE</p>
    <p class="oneTit">\u56DB\u3001\u7EE9\u6548\u8BC4\u4EF7\u7EF4\u5EA6\u5206\u6790</p>
    <p class="twoTit">\uFF08\u4E00\uFF09\u9879\u76EE\u7EF4\u5EA6\u5206\u6790</p>
    <div class="content" style="text-indent:2em">${a.projectAnalysis||""}</div>
    <p class="twoTit">\uFF08\u4E8C\uFF09\u5E94\u7528\u7EF4\u5EA6\u5206\u6790</p>
    <div class="content" style="text-indent:2em">${a.appAnalysis||""}</div>
    <p class="oneTit">\u4E94\u3001\u9879\u76EE\u6210\u6548</p>
    <div class="content" style="text-indent:2em">${a.projectEffectiveness||""}</div>
    <p class="oneTit">\u516D\u3001\u5B58\u5728\u95EE\u9898\u53CA\u539F\u56E0\u5206\u6790</p>
    <div class="content" style="text-indent:2em">
    ${((f=a.problems)==null?void 0:f.map((s,y)=>`<p>${y+1}. \u9879\u76EE\u5B58\u5728${s.problem||""}\uFF08\u95EE\u9898\uFF09\uFF0C\u539F\u56E0\u4E3A${s.reason||""}\uFF08\u539F\u56E0\u5206\u6790\uFF09</p>`).join(""))||""}
    </div>
    <p class="oneTit">\u4E03\u3001\u6574\u6539\u5EFA\u8BAE</p>
     <div class="content" style="text-indent:2em">
    ${((T=a.reformAdvices)==null?void 0:T.map((s,y)=>`<p>${y+1}. ${s.reformAdvice||""}\uFF08\u5EFA\u8BAE\uFF09</p>`).join(""))||""}
    </div>
  </div>
  <div class="pageFour page" style="margin-top:100px">
    <p style="text-align: left;margin-bottom: 10px" class="bold">\u9644\u4EF6\uFF1A</p>
    <table>
    <thead>
    <tr><th colspan="10">${a.projectName}\u590D\u8BC4\u5F97\u5206\u8868</th></tr>
    <tr>
      <th>\u8BC4\u4EF7\u7EF4\u5EA6</th>
      <th>\u4E00\u7EA7\u6307\u6807</th>
      <th>\u4E8C\u7EA7\u6307\u6807</th>
      <th>\u4E09\u7EA7\u6307\u6807</th>
      <th>\u6307\u6807\u7EC6\u5219</th>
      <th>\u8BC4\u4EF7\u7EC6\u5219</th>
      <th>\u5206\u503C</th>
      <th>\u81EA\u8BC4\u5F97\u5206</th>
      <th>\u590D\u8BC4\u5F97\u5206</th>
      <th>\u4F50\u8BC1\u6750\u6599</th>
    </tr>
    </thead>
    <tbody>
        ${d}
        ${t}
        <tr>
      <td colspan="7" style="text-align: center" class="bold">\u5408\u8BA1</td>
      <td  class="bold">${a.selfAppraisalTotalScore}</td>
      <td  class="bold">${a.reAppraisalTotalScore}</td>
      <td></td>
    </tr>
        <tr>
      <td colspan="7" style="text-align: center"  class="bold">\u661F\u7EA7</td>
      <td  class="bold">${a.selfAppraisalTotalScore>=90?"\u2605\u2605\u2605\u2605\u2605":a.selfAppraisalTotalScore>=80?"\u2605\u2605\u2605\u2605":a.selfAppraisalTotalScore>=70?"\u2605\u2605\u2605":a.selfAppraisalTotalScore>=60?"\u2605\u2605":"\u2605"}</td>
      <td class="bold">${a.reAppraisalTotalScore>=90?"\u2605\u2605\u2605\u2605\u2605":a.reAppraisalTotalScore>=80?"\u2605\u2605\u2605\u2605":a.reAppraisalTotalScore>=70?"\u2605\u2605\u2605":a.reAppraisalTotalScore>=60?"\u2605\u2605":"\u2605"}</td>
      <td></td>
    </tr>
    </tbody>
  </table>
  </div>
</div>
</body>
</html>
`;return new Promise((s,y)=>{s(x)})}),me=u("div",{class:"collapse-title"},"\u7EE9\u6548\u8BC4\u4EF7\u4FE1\u606F",-1),ve=u("p",{class:"font-bold text-14"},"\u7EE9\u6548\u8BC4\u4EF7\u5C0F\u7EC4\u6210\u5458\u540D\u5355",-1),fe=u("div",{class:"collapse-title"},"\u9879\u76EE\u57FA\u672C\u60C5\u51B5",-1),be=u("p",{class:"font-bold text-14"},"\u5EFA\u8BBE\u76EE\u6807\u548C\u5185\u5BB9",-1),ge=u("div",{class:"collapse-title"},"\u9879\u76EE\u7EE9\u6548\u8BC4\u4EF7\u5206\u6790",-1),ye=u("p",{class:"font-bold text-14"},"\u5EFA\u8BBE\u5355\u4F4D\u81EA\u8BC4",-1),_e={class:"flex items-center"},xe=u("p",{class:"font-bold mt-16 text-14"},"\u7B2C\u4E09\u65B9\u673A\u6784\u8BC4\u4EF7",-1),he={class:"flex items-center"},Te=u("div",{class:"collapse-title"},"\u7EE9\u6548\u8BC4\u4EF7\u7ED3\u8BBA",-1),we=u("div",{class:"el-upload__tip"},"\u652F\u6301.png\u3001.jpg\u3001.jpeg\u7B49\u56FE\u7247\u6587\u4EF6",-1),$e=u("div",{class:"collapse-title"},"\u7EE9\u6548\u8BC4\u4EF7\u7EF4\u5EA6\u5206\u6790",-1),Ae=u("div",{class:"collapse-title"},"\u9879\u76EE\u6210\u6548",-1),Se=u("div",{class:"collapse-title"},"\u5B58\u5728\u95EE\u9898\u53CA\u539F\u56E0\u5206\u6790",-1),je=u("div",{class:"collapse-title"},"\u6574\u6539\u5EFA\u8BAE",-1),Ve=ae({name:"performanceEvaluationReport"}),ke=Object.assign(Ve,{props:{data:{type:Object},reportTemplateData:{type:Object},disabled:{type:Boolean,default:!1}},emits:["submitReport"],setup(a,{expose:o,emit:n}){const $=te.dictStore.uploadUrl,d=a,t=z({evaluationType:"\u4E8B\u540E\u8BC4\u4EF7"}),x=z(),h={evaluationType:[{required:!0,message:"\u8BF7\u9009\u62E9"}],organization:[{required:!0,message:"\u8BF7\u8F93\u5165"}],projectBasicSituation:[{required:!0,message:"\u8BF7\u8F93\u5165"}],resultFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],projectEffectiveness:[{required:!0,message:"\u8BF7\u8F93\u5165"}],projectAnalysis:[{required:!0,message:"\u8BF7\u8F93\u5165"}],appAnalysis:[{required:!0,message:"\u8BF7\u8F93\u5165"}],problems:[{required:!0,message:"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A",type:"array"}],reformAdvices:[{required:!0,message:"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A",type:"array"}]},f=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u5B58\u5728\u95EE\u9898",slot:"problem",key:"problem"},{label:"\u539F\u56E0\u5206\u6790",slot:"reason",key:"reason"}],T=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u6574\u6539\u5EFA\u8BAE",slot:"reformAdvice",key:"reformAdvice"}],s=()=>{t.value.problems.push({})},y=()=>{t.value.reformAdvices.push({})},I=n,H=()=>k(this,null,function*(){var r,m;const A=(r=d.reportTemplateData)==null?void 0:r.templateDetails,i=(m=d.reportTemplateData)==null?void 0:m.additionalIndexDetails,N=yield ue(t.value,A,i),U=yield oe({content:N,fileName:`${t.value.projectName}\u7EE9\u6548\u8BC4\u4EF7\u62A5\u544A.pdf`}),c=R(D({},t.value),{templateDetails:A,additionalIndexDetails:i});I("submitReport",U.data,`${t.value.projectName}\u7EE9\u6548\u8BC4\u4EF7\u62A5\u544A.pdf`,JSON.stringify(c))}),C=["1","2","3","4","5","6","7","8"];return o({getPdf:H,formRef:x,formData:t}),se(()=>d.data,A=>k(this,null,function*(){A&&(t.value=R(D({},A),{evaluationType:A.evaluationType||"\u4E8B\u540E\u8BC4\u4EF7"}))}),{immediate:!0}),(A,i)=>{const N=v("el-option"),U=v("el-select"),c=v("el-form-item"),r=v("el-col"),m=v("el-input"),_=v("el-row"),w=v("el-collapse-item"),B=v("el-rate"),F=v("el-button"),J=v("el-upload"),O=v("table-list"),K=v("el-collapse"),Y=v("el-form");return M(),E(Y,{ref_key:"formRef",ref:x,model:t.value,rules:h,"label-suffix":":"},{default:l(()=>[e(K,{modelValue:C,"onUpdate:modelValue":i[9]||(i[9]=p=>C=p)},{default:l(()=>[e(w,{name:"1"},{title:l(()=>[me]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[e(c,{label:"\u8BC4\u4EF7\u7C7B\u578B",prop:"evaluationType"},{default:l(()=>[e(U,{modelValue:t.value.evaluationType,"onUpdate:modelValue":i[0]||(i[0]=p=>t.value.evaluationType=p),disabled:d.disabled},{default:l(()=>[e(N,{label:"\u4E8B\u4E2D\u8BC4\u4EF7",value:"\u4E8B\u4E2D\u8BC4\u4EF7"}),e(N,{label:"\u4E8B\u540E\u8BC4\u4EF7",value:"\u4E8B\u540E\u8BC4\u4EF7"})]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u8BC4\u4EF7\u65B9\u5F0F"},{default:l(()=>[b(" \u90E8\u95E8\u62BD\u8BC4 ")]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u8BC4\u4EF7\u673A\u6784"},{default:l(()=>[b(" \u7B2C\u4E09\u65B9\u4E13\u4E1A\u673A\u6784 ")]),_:1})]),_:1}),e(r,{span:8},{default:l(()=>[e(c,{label:"\u7F16\u5236\u5355\u4F4D",prop:"organization"},{default:l(()=>[e(m,{modelValue:t.value.organization,"onUpdate:modelValue":i[1]||(i[1]=p=>t.value.organization=p),placeholder:"\u8BF7\u8F93\u5165",disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(_,null,{default:l(()=>[ve,e(r,{span:24},{default:l(()=>[e(c,{label:"\u7EC4\u957F"},{default:l(()=>[b(S(t.value.reAppraisalLeader),1)]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u6210\u5458"},{default:l(()=>[b(S(t.value.reAppraisalUsers),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(w,{name:"2"},{title:l(()=>[fe]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[e(c,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[b(S(t.value.projectName),1)]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[b(S(t.value.projectTypeName),1)]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u5EFA\u8BBE\u5355\u4F4D"},{default:l(()=>[b(S(t.value.buildOrgName),1)]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u9879\u76EE\u57FA\u672C\u60C5\u51B5",prop:"projectBasicSituation"},{default:l(()=>[e(m,{modelValue:t.value.projectBasicSituation,"onUpdate:modelValue":i[2]||(i[2]=p=>t.value.projectBasicSituation=p),type:"textarea",rows:4,disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),be,e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[e(c,{label:"\u5EFA\u8BBE\u76EE\u6807"},{default:l(()=>[e(m,{modelValue:t.value.projectIntroduction,"onUpdate:modelValue":i[3]||(i[3]=p=>t.value.projectIntroduction=p),type:"textarea",rows:4,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u5EFA\u8BBE\u5185\u5BB9"},{default:l(()=>[e(m,{modelValue:t.value.constructContent,"onUpdate:modelValue":i[4]||(i[4]=p=>t.value.constructContent=p),type:"textarea",rows:4,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1}),e(w,{name:"3"},{title:l(()=>[ge]),default:l(()=>[ye,u("p",_e,[b(" \u5F97\u5206"+S(t.value.selfAppraisalTotalScore)+"\uFF0C\u661F\u7EA7\u4E3A ",1),e(B,{disabled:"","model-value":t.value.selfAppraisalTotalScore>=90?5:t.value.selfAppraisalTotalScore>=80?4:t.value.selfAppraisalTotalScore>=70?3:t.value.selfAppraisalTotalScore>=60?2:1},null,8,["model-value"])]),xe,u("p",he,[b(" \u5F97\u5206"+S(t.value.reAppraisalTotalScore)+"\uFF0C\u661F\u7EA7\u4E3A ",1),e(B,{disabled:"","model-value":t.value.reAppraisalTotalScore>=90?5:t.value.reAppraisalTotalScore>=80?4:t.value.reAppraisalTotalScore>=70?3:t.value.reAppraisalTotalScore>=60?2:1},null,8,["model-value"])])]),_:1}),e(w,{name:"4"},{title:l(()=>[Te]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[e(c,{label:"\u7EE9\u6548\u8BC4\u4EF7\u7ED3\u8BBA",prop:"resultFile"},{default:l(()=>[e(J,{"file-list":t.value.resultFile,"onUpdate:fileList":i[5]||(i[5]=p=>t.value.resultFile=p),class:"w-full",action:j($),"on-exceed":j(pe),limit:1,"on-success":p=>j(ne)(p,t.value.resultFile,!0),"on-error":j(ie),"on-preview":j(de),"before-upload":p=>j(re)(p,{types:["png","jpeg","jpg"]}),accept:".jpg,.png,.jpeg"},{tip:l(()=>[we]),default:l(()=>[e(F,{type:"primary"},{default:l(()=>[b("\u4E0A\u4F20\u9644\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-exceed","on-success","on-error","on-preview","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1}),e(w,{name:"5"},{title:l(()=>[$e]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[e(c,{label:"\u9879\u76EE\u7EF4\u5EA6\u5206\u6790",prop:"projectAnalysis"},{default:l(()=>[e(m,{modelValue:t.value.projectAnalysis,"onUpdate:modelValue":i[6]||(i[6]=p=>t.value.projectAnalysis=p),type:"textarea",rows:4,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(c,{label:"\u5E94\u7528\u7EF4\u5EA6\u5206\u6790",prop:"appAnalysis"},{default:l(()=>[e(m,{modelValue:t.value.appAnalysis,"onUpdate:modelValue":i[7]||(i[7]=p=>t.value.appAnalysis=p),type:"textarea",rows:4,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1}),e(w,{name:"6"},{title:l(()=>[Ae]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[e(c,{label:"\u9879\u76EE\u6210\u6548",prop:"projectEffectiveness"},{default:l(()=>[e(m,{modelValue:t.value.projectEffectiveness,"onUpdate:modelValue":i[8]||(i[8]=p=>t.value.projectEffectiveness=p),type:"textarea",rows:4,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1}),e(w,{name:"7"},{title:l(()=>[Se]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[d.disabled?L("v-if",!0):(M(),E(F,{key:0,type:"primary",icon:"Plus",plain:"",class:"w-full mb-8",onClick:s},{default:l(()=>[b("\u65B0\u589E\u95EE\u9898")]),_:1})),e(c,{prop:"problems"},{default:l(()=>[e(O,{data:t.value.problems,column:f,pagination:!1,"empty-temp":!1,class:"w-full"},{problem:l(({scope:p})=>[e(m,{modelValue:p.row.problem,"onUpdate:modelValue":V=>p.row.problem=V,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled,type:"textarea"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),reason:l(({scope:p})=>[e(m,{modelValue:p.row.reason,"onUpdate:modelValue":V=>p.row.reason=V,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled,type:"textarea"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1}),e(w,{name:"8"},{title:l(()=>[je]),default:l(()=>[e(_,null,{default:l(()=>[e(r,{span:24},{default:l(()=>[d.disabled?L("v-if",!0):(M(),E(F,{key:0,type:"primary",icon:"Plus",plain:"",class:"w-full mb-8",onClick:y},{default:l(()=>[b("\u65B0\u589E\u5EFA\u8BAE")]),_:1})),e(c,{prop:"reformAdvices"},{default:l(()=>[e(O,{data:t.value.reformAdvices,column:T,pagination:!1,"empty-temp":!1,class:"w-full"},{reformAdvice:l(({scope:p})=>[e(m,{modelValue:p.row.reformAdvice,"onUpdate:modelValue":V=>p.row.reformAdvice=V,placeholder:"\u8BF7\u586B\u5199",disabled:d.disabled,type:"textarea"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}}),De=le(ke,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/unitSelfEvaluation/giveScore/components/performanceEvaluationReport.vue"]]);export{De as default};
