|
- 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>
- <html lang="en">
- <head>
- <meta charset="UTF-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <title>\u7EE9\u6548\u4E13\u5BB6\u8BC4\u4EF7\u610F\u89C1</title>
- <style>
- html, body, p, div, span {
- padding: 0;
- margin: 0;
- }
- .pdfHtml {
- text-align: left;
- 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" style="text-align: center;font-weight: bold">${e.projectName||""}\u7EE9\u6548\u4E13\u5BB6\u8BC4\u4EF7\u610F\u89C1</p>
- <div class="my-content">
- <div class="indent2">${e.meetingInfo||""}</div>
- <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u4E00\u3001\u9879\u76EE\u6982\u51B5</p>
- <div class="indent2">
- <div style="margin-bottom: 8px">
- <span class="label">\u9879\u76EE\u540D\u79F0\uFF1A</span>
- <span class="value">${e.projectName||""}</span>
- </div>
- <div style="margin-bottom: 8px">
- <span class="label">\u9879\u76EE\u7C7B\u578B\uFF1A</span>
- <span class="value">${e.projectTypeName||""}</span>
- </div>
- <div style="margin-bottom: 8px">
- <span class="label">\u5EFA\u8BBE\u5355\u4F4D\uFF1A</span>
- <span class="value">${e.buildOrgName||""}</span>
- </div>
- <div style="margin-bottom: 8px">
- <span class="label">\u9879\u76EE\u57FA\u672C\u60C5\u51B5\uFF1A</span>
- <span class="value">${e.projectBasicSituation||""}</span>
- </div>
- </div>
- <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u4E8C\u3001\u5EFA\u8BBE\u5355\u4F4D\u81EA\u8BC4</p>
- <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>
- <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>
- <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>
- <p style="margin-top: 8px;font-weight: bold;margin-bottom: 8px;text-indent: 2em;">\u56DB\u3001\u4E13\u5BB6\u7EFC\u5408\u8BC4\u4EF7</p>
- <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>
- <p>\u5E76\u63D0\u51FA\u5982\u4E0B\u610F\u89C1\uFF1A</p>
- <div class="indent2">
- ${e.reformAdvices.map((i,x)=>`<p style="text-indent: 2em;">${x+1}\u3001${i.reformAdvice||""}\uFF1B</p>`).join("")}
- </div>
- <p style="margin-top: 30px" class="indent2">\u4E13\u5BB6\u7EC4\u7B7E\u5B57\uFF1A ${o?o.map(i=>`<img src="${i}" class="signImg"/>`):""}</p>
- <p style="text-align: right;margin-top: 30px">
- <span>\u5E74</span>
- <span>\u6708</span>
- <span>\u65E5</span>
- </p>
- </div>
- </div>
- </div>
- </body>
- </html>
- `}),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};
|