No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

137 líneas
11KB

  1. var R=Object.defineProperty;var V=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var N=(e,n,o)=>n in e?R(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,$=(e,n)=>{for(var o in n||(n={}))E.call(n,o)&&N(e,o,n[o]);if(V)for(var o of V(n))q.call(n,o)&&N(e,o,n[o]);return e};var _=(e,n,o)=>new Promise((m,l)=>{var i=p=>{try{y(o.next(p))}catch(h){l(h)}},x=p=>{try{y(o.throw(p))}catch(h){l(h)}},y=p=>p.done?m(p.value):Promise.resolve(p.value).then(i,x);y((o=o.apply(e,n)).next())});import{C as z,_ as F,d as H,r as O,L as M,c as s,e as k,I as L,j as a,i as t,g as c,t as g,h as J,k as b,ak as K}from"./index.eb58a47a.js";const Y=e=>_(void 0,null,function*(){const n=yield z({fileId:e});return new Promise(o=>{var m=new FileReader;m.readAsDataURL(n),m.onload=function(l){o(l.target.result)}})}),G=e=>_(void 0,null,function*(){var l;const n=((l=e==null?void 0:e.signImgs)==null?void 0:l.map(i=>_(void 0,null,function*(){return yield Y(i.fileId)})))||void 0,o=n&&(yield Promise.all(n));return`<!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  6. <title>\u7EE9\u6548\u4E13\u5BB6\u8BC4\u4EF7\u610F\u89C1</title>
  7. <style>
  8. html, body, p, div, span {
  9. padding: 0;
  10. margin: 0;
  11. }
  12. .pdfHtml {
  13. text-align: left;
  14. color: #000000;
  15. font-family: SimSun;
  16. }
  17. .title{
  18. font-weight: bold;
  19. font-size: 32px;
  20. font-family: SimSun;
  21. margin-bottom: 30px;
  22. }
  23. .top{
  24. text-align: left;
  25. margin-bottom: 30px;
  26. }
  27. .bold{
  28. font-weight: bold;
  29. }
  30. .text-center{
  31. text-align: center;
  32. }
  33. .text-left{
  34. text-align: left;
  35. }
  36. .mlTit{
  37. display: flex;align-items: center;
  38. margin-bottom: 16px;
  39. }
  40. .dashLine{
  41. flex:1;display: inline-block;border-bottom: 3px dashed;height: 1px
  42. }
  43. .twoMl{
  44. padding-left: 24px;
  45. }
  46. .oneTit{
  47. font-weight: bold;
  48. margin-bottom: 8px;
  49. margin-top: 12px;
  50. }
  51. .twoTit{
  52. padding-left: 24px;
  53. margin-bottom: 8px;
  54. }
  55. .content{
  56. padding-left: 24px;
  57. }
  58. table {
  59. width: 100%;
  60. font-size: 16px;
  61. line-height: 1.5;
  62. border-collapse: collapse;
  63. table-layout: fixed;
  64. word-break: break-all;
  65. word-wrap: break-word;
  66. text-align: left;
  67. border: 1px solid #000000;
  68. line-height: 1.5;
  69. font-weight: normal;
  70. }
  71. tr > td {
  72. padding: 8px 2px;
  73. border: 1px solid #000000;
  74. border-collapse: collapse;
  75. text-align: center;
  76. font-weight: normal;
  77. }
  78. tr > th {
  79. padding: 8px 2px;
  80. border: 1px solid #000000;
  81. border-collapse: collapse;
  82. text-align: center;
  83. font-weight: normal;
  84. }
  85. .indent2{
  86. text-indent: 2em;
  87. }
  88. </style>
  89. </head>
  90. <body>
  91. <div class="pdfHtml">
  92. <div class="pageOne page text-left">
  93. <p class="title" style="text-align: center;font-weight: bold">${e.projectName||""}\u7EE9\u6548\u4E13\u5BB6\u8BC4\u4EF7\u610F\u89C1</p>
  94. <div class="my-content">
  95. <div class="indent2">${e.meetingInfo||""}</div>
  96. <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u4E00\u3001\u9879\u76EE\u6982\u51B5</p>
  97. <div class="indent2">
  98. <div style="margin-bottom: 8px">
  99. <span class="label">\u9879\u76EE\u540D\u79F0\uFF1A</span>
  100. <span class="value">${e.projectName||""}</span>
  101. </div>
  102. <div style="margin-bottom: 8px">
  103. <span class="label">\u9879\u76EE\u7C7B\u578B\uFF1A</span>
  104. <span class="value">${e.projectTypeName||""}</span>
  105. </div>
  106. <div style="margin-bottom: 8px">
  107. <span class="label">\u5EFA\u8BBE\u5355\u4F4D\uFF1A</span>
  108. <span class="value">${e.buildOrgName||""}</span>
  109. </div>
  110. <div style="margin-bottom: 8px">
  111. <span class="label">\u9879\u76EE\u57FA\u672C\u60C5\u51B5\uFF1A</span>
  112. <span class="value">${e.projectBasicSituation||""}</span>
  113. </div>
  114. </div>
  115. <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u4E8C\u3001\u5EFA\u8BBE\u5355\u4F4D\u81EA\u8BC4</p>
  116. <p class="value" style="text-indent: 2em;">\u5F97\u5206${e.selfAppraisalTotalScore}\uFF0C\u661F\u7EA7\u4E3A${e.selfAppraisalTotalScore>=90?"\u2605\u2605\u2605\u2605\u2605":e.selfAppraisalTotalScore>=80?"\u2605\u2605\u2605\u2605":e.selfAppraisalTotalScore>=70?"\u2605\u2605\u2605":e.selfAppraisalTotalScore>=60?"\u2605\u2605":"\u2605"}\u3002</p>
  117. <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u4E09\u3001\u7B2C\u4E09\u65B9\u4E13\u4E1A\u673A\u6784\u8BC4\u4EF7</p>
  118. <p class="value" style="text-indent: 2em;">\u5F97\u5206${e.reAppraisalTotalScore}\uFF0C\u661F\u7EA7\u4E3A${e.reAppraisalTotalScore>=90?"\u2605\u2605\u2605\u2605\u2605":e.reAppraisalTotalScore>=80?"\u2605\u2605\u2605\u2605":e.reAppraisalTotalScore>=70?"\u2605\u2605\u2605":e.selfAppraisalTotalScore>=60?"\u2605\u2605":"\u2605"}\u3002</p>
  119. <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u56DB\u3001\u4E13\u5BB6\u7EFC\u5408\u8BC4\u4EF7</p>
  120. <div class="indent2">${e.evaluate}\u4E13\u5BB6\u7EC4\u8FDB\u884C\u8BA8\u8BBA\u5E76\u5BF9\u9879\u76EE\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u8BC4\u4EF7\u661F\u7EA7\u4E3A\u201C${e.starLevel===5?"\u2605\u2605\u2605\u2605\u2605":e.starLevel===4?"\u2605\u2605\u2605\u2605":e.starLevel===3?"\u2605\u2605\u2605":e.starLevel===2?"\u2605\u2605":e.starLevel===1?"\u2605":""}\u201D\u3002</div>
  121. <p>\u5E76\u63D0\u51FA\u5982\u4E0B\u610F\u89C1\uFF1A</p>
  122. <div class="indent2">
  123. ${e.reformAdvices.map((i,x)=>`<p style="text-indent: 2em;">${x+1}\u3001${i.reformAdvice||""}\uFF1B</p>`).join("")}
  124. </div>
  125. <p style="margin-top: 30px" class="indent2">\u4E13\u5BB6\u7EC4\u7B7E\u5B57\uFF1A ${o?o.map(i=>`<img src="${i}" class="signImg"/>`):""}</p>
  126. <p style="text-align: right;margin-top: 30px">
  127. <span>\u5E74</span>
  128. <span>\u6708</span>
  129. <span>\u65E5</span>
  130. </p>
  131. </div>
  132. </div>
  133. </div>
  134. </body>
  135. </html>
  136. `}),Q=c("div",{class:"collapse-title"},"\u4F1A\u8BAE\u4FE1\u606F",-1),W={class:"mb-16 text-14"},X=c("div",{class:"collapse-title"},"\u9879\u76EE\u6982\u51B5",-1),Z=c("div",{class:"collapse-title"},"\u5EFA\u8BBE\u5355\u4F4D\u81EA\u8BC4",-1),ee={class:"flex items-center mb-16 text-14"},le=c("div",{class:"collapse-title"},"\u7B2C\u4E09\u65B9\u673A\u6784\u8BC4\u4EF7",-1),te={class:"flex items-center mb-16 text-14"},ae=c("div",{class:"collapse-title"},"\u4E13\u5BB6\u7EFC\u5408\u8BC4\u4EF7",-1),oe=H({name:"expertOpinion"}),ne=Object.assign(oe,{props:{data:{type:Object}},emits:["submitOpinion"],setup(e,{expose:n,emit:o}){const m=e,l=O({}),i=O(),x={evaluate:[{required:!0,message:"\u8BF7\u8F93\u5165"}],starLevel:[{required:!0,message:"\u8BF7\u9009\u62E9"}],reformAdvices:[{required:!0,message:"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A",type:"array"}]},y=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u6574\u6539\u5EFA\u8BAE",slot:"reformAdvice",key:"reformAdvice"}],p=()=>{l.value.reformAdvices.push({})},h=o;return n({getPdf:()=>_(this,null,function*(){const w=yield G(l.value),r=yield K({content:w,fileName:`${l.value.projectName}\u7EE9\u6548\u4E13\u5BB6\u610F\u89C1.pdf`}),u=$({},l.value);h("submitOpinion",r.data,`${l.value.projectName}\u7EE9\u6548\u4E13\u5BB6\u610F\u89C1.pdf`,JSON.stringify(u))}),formRef:i}),M(()=>m.data,w=>_(this,null,function*(){w&&(l.value=$({},w))}),{immediate:!0}),(w,r)=>{const u=s("el-collapse-item"),f=s("el-form-item"),v=s("el-col"),A=s("el-input"),T=s("el-row"),j=s("el-rate"),S=s("el-option"),I=s("el-select"),C=s("el-button"),P=s("table-list"),U=s("el-collapse"),B=s("el-form");return k(),L(B,{ref_key:"formRef",ref:i,model:l.value,rules:x,"label-suffix":":"},{default:a(()=>[t(U,null,{default:a(()=>[l.value.meetingInfo?(k(),L(u,{key:0,name:"1"},{title:a(()=>[Q]),default:a(()=>[c("div",W,g(l.value.meetingInfo),1)]),_:1})):J("v-if",!0),t(u,{name:"2"},{title:a(()=>[X]),default:a(()=>[t(T,null,{default:a(()=>[t(v,{span:24},{default:a(()=>[t(f,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[b(g(l.value.projectName),1)]),_:1})]),_:1}),t(v,{span:24},{default:a(()=>[t(f,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[b(g(l.value.projectTypeName),1)]),_:1})]),_:1}),t(v,{span:24},{default:a(()=>[t(f,{label:"\u5EFA\u8BBE\u5355\u4F4D"},{default:a(()=>[b(g(l.value.buildOrgName),1)]),_:1})]),_:1}),t(v,{span:24},{default:a(()=>[t(f,{label:"\u5EFA\u8BBE\u60C5\u51B5",prop:"projectBasicSituation"},{default:a(()=>[t(A,{modelValue:l.value.projectBasicSituation,"onUpdate:modelValue":r[0]||(r[0]=d=>l.value.projectBasicSituation=d),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),t(u,{name:"3"},{title:a(()=>[Z]),default:a(()=>[c("p",ee,[b(" \u5F97\u5206"+g(l.value.selfAppraisalTotalScore)+"\uFF0C\u661F\u7EA7\u4E3A ",1),t(j,{disabled:"","model-value":l.value.selfAppraisalTotalScore>=90?5:l.value.selfAppraisalTotalScore>=80?4:l.value.selfAppraisalTotalScore>=70?3:l.value.selfAppraisalTotalScore>=60?2:1},null,8,["model-value"])])]),_:1}),t(u,{name:"4"},{title:a(()=>[le]),default:a(()=>[c("p",te,[b(" \u5F97\u5206"+g(l.value.reAppraisalTotalScore)+"\uFF0C\u661F\u7EA7\u4E3A ",1),t(j,{disabled:"","model-value":l.value.reAppraisalTotalScore>=90?5:l.value.reAppraisalTotalScore>=80?4:l.value.reAppraisalTotalScore>=70?3:l.value.reAppraisalTotalScore>=60?2:1},null,8,["model-value"])])]),_:1}),t(u,{name:"5"},{title:a(()=>[ae]),default:a(()=>[t(T,null,{default:a(()=>[t(v,{span:24},{default:a(()=>[t(f,{label:"\u4E13\u5BB6\u7EFC\u5408\u8BC4\u4EF7",prop:"evaluate"},{default:a(()=>[t(A,{modelValue:l.value.evaluate,"onUpdate:modelValue":r[1]||(r[1]=d=>l.value.evaluate=d),type:"textarea",rows:4,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),t(v,{span:24},{default:a(()=>[t(f,{label:"\u8BC4\u4EF7\u661F\u7EA7",prop:"starLevel"},{default:a(()=>[t(I,{modelValue:l.value.starLevel,"onUpdate:modelValue":r[2]||(r[2]=d=>l.value.starLevel=d)},{default:a(()=>[t(S,{label:"\u4E00",value:1}),t(S,{label:"\u4E8C",value:2}),t(S,{label:"\u4E09",value:3}),t(S,{label:"\u56DB",value:4}),t(S,{label:"\u4E94",value:5})]),_:1},8,["modelValue"]),t(j,{"model-value":l.value.starLevel,disabled:""},null,8,["model-value"])]),_:1})]),_:1})]),_:1}),t(T,null,{default:a(()=>[t(v,{span:24},{default:a(()=>[t(C,{type:"primary",icon:"Plus",plain:"",class:"w-full mb-8",onClick:p},{default:a(()=>[b("\u65B0\u589E\u5EFA\u8BAE")]),_:1}),t(f,{prop:"reformAdvices",label:"\u4E13\u5BB6\u610F\u89C1"},{default:a(()=>[t(P,{data:l.value.reformAdvices,column:y,pagination:!1,"empty-temp":!1,class:"w-full"},{reformAdvice:a(({scope:d})=>[t(A,{modelValue:d.row.reformAdvice,"onUpdate:modelValue":D=>d.row.reformAdvice=D,placeholder:"\u8BF7\u586B\u5199",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}}),se=F(ne,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/performanceEvaluation/unitSelfEvaluation/scoreDetail/components/expertOpinion.vue"]]),de=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));export{se as E,de as e,G as g};