var P=Object.defineProperty,V=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var w=(e,l,t)=>l in e?P(e,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[l]=t,g=(e,l)=>{for(var t in l||(l={}))L.call(l,t)&&w(e,t,l[t]);if(y)for(var t of y(l))M.call(l,t)&&w(e,t,l[t]);return e},x=(e,l)=>V(e,D(l));var v=(e,l,t)=>new Promise((s,o)=>{var _=a=>{try{c(t.next(a))}catch(p){o(p)}},b=a=>{try{c(t.throw(a))}catch(p){o(p)}},c=a=>a.done?s(a.value):Promise.resolve(a.value).then(_,b);c((t=t.apply(e,l)).next())});import{_ as U,d as z,r as A,N as B,f as n,g as E,K as H,m as i,l as r,p as F,i as J,al as K}from"./index.9fabe127.js";const R=e=>v(void 0,null,function*(){return`<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>\u6574\u6539\u6E05\u5355</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: 30px;
    }
    .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: 12px;
    }
    .twoTit{
      padding-left: 24px;
      margin-bottom: 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;
    }
    .indent2{
      text-indent: 2em;
    }
  </style>
</head>
<body>
<div class="pdfHtml">
  <div class="pageOne page text-left">
    <p class="title text-center">${e.projectName||""}\u7EE9\u6548\u8BC4\u4EF7\u6574\u6539\u6E05\u5355</p>
   <table>
     <tbody>
      <tr>
        <td>\u9879\u76EE\u540D\u79F0</td>
        <td colspan="3" style="text-align: left"><p  style="padding-left: 12px">${e.projectName||""}</p></td>
      </tr>
      <tr>
        <td>\u7EFC\u5408\u610F\u89C1</td>
        <td colspan="3" style="text-align: left">
            ${e.advice.map((t,s)=>`<p style="padding-left: 12px">${s+1}.${t||""}\uFF1B</p>`).join("")}<div  style="min-height: 100px"></div>
        </td>
      </tr>
      <tr>
        <td>\u7ECF\u529E\u4EBA</td>
        <td>${e.userName||""}</td>
          <td>\u4E0B\u53D1\u65F6\u95F4</td>
          <td>${e.startTime?`${e.startTime.getFullYear()}\u5E74${e.startTime.getMonth()+1}\u6708${e.startTime.getDate()}\u65E5`:""}</td>
      </tr>
     </tbody>
   </table>
</div>
</div>
</body>
</html>
`}),Y=J("div",{class:"collapse-title"},"\u7EFC\u5408\u610F\u89C1",-1),q=z({name:"expertOpinion"}),G=Object.assign(q,{props:{data:{type:Object}},emits:["submitOpinion"],setup(e,{expose:l,emit:t}){const s=e,o=A({}),_=A(),b={reformAdvices:[{required:!0,message:"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A",type:"array"}]},c=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u6574\u6539\u5EFA\u8BAE",slot:"reformAdvice",key:"reformAdvice"}],a=()=>{o.value.reformAdvices.push({})},p=t;return l({getPdf:()=>v(this,null,function*(){const d=yield R(x(g({},o.value),{advice:o.value.reformAdvices.map(u=>u.reformAdvice)})),m=yield K({content:d,fileName:`${o.value.projectName}\u7EE9\u6548\u6574\u6539\u6E05\u5355.pdf`}),f=x(g({},o.value),{advice:o.value.reformAdvices.map(u=>u.reformAdvice),reformAdvices:void 0});p("submitOpinion",m.data,`${o.value.projectName}\u7EE9\u6548\u6574\u6539\u6E05\u5355.pdf`,JSON.stringify(f))}),formRef:_}),B(()=>s.data,d=>v(this,null,function*(){var m;d&&(o.value=x(g({},d),{reformAdvices:((m=d.advice)==null?void 0:m.map(f=>({reformAdvice:f})))||[],advice:void 0}))}),{immediate:!0}),(d,m)=>{const f=n("el-button"),u=n("el-input"),k=n("table-list"),N=n("el-form-item"),$=n("el-col"),j=n("el-row"),T=n("el-collapse-item"),C=n("el-collapse"),O=n("el-form");return E(),H(O,{ref_key:"formRef",ref:_,model:o.value,rules:b,"label-suffix":":"},{default:i(()=>[r(C,null,{default:i(()=>[r(T,{name:"5"},{title:i(()=>[Y]),default:i(()=>[r(j,null,{default:i(()=>[r($,{span:24},{default:i(()=>[r(f,{type:"primary",icon:"Plus",plain:"",class:"w-full mb-8",onClick:a},{default:i(()=>[F("\u65B0\u589E\u5EFA\u8BAE")]),_:1}),r(N,{prop:"reformAdvices"},{default:i(()=>[r(k,{data:o.value.reformAdvices,column:c,pagination:!1,"empty-temp":!1,class:"w-full"},{reformAdvice:i(({scope:h})=>[r(u,{modelValue:h.row.reformAdvice,"onUpdate:modelValue":S=>h.row.reformAdvice=S,placeholder:"\u8BF7\u586B\u5199",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}}),I=U(G,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/unitSelfEvaluation/scoreDetail/components/checkList.vue"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as C,Z as c,R as g};
