You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
6.5KB

  1. import{d as H,r as c,D as Y,z as G,o as K,c as r,e as _,f as N,h as e,i as a,g as m,t as d,j as t,u as Q,I as w,k as I,w as S,v as V,F as W,J as X,N as Z}from"./index.5bb861d3.js";import ee from"./markScore.7f4d9f6b.js";import{d as ae}from"./projectReform.19caa923.js";import{p as le}from"./projectStore.b7c79eaf.js";import{_ as te}from"./index.3f9c5e64.js";import{g as oe}from"./uploadAction.60610a95.js";import se from"./sureScore.618ed14d.js";import{s as ie}from"./reformCheck.7b038d5b.js";import"./unitSelfEvaluation.5681c264.js";import"./index.dea5e324.js";const re={class:"footerPage"},ne={class:"card-header"},ue={class:"flex justify-between items-center"},de={class:"flex-1"},pe={class:"font-bold"},ce={class:"mt-8 search"},fe=m("p",{class:"font-bold mb-16"},"\u5BA1\u6838",-1),_e={class:"footer"},me=H({name:"reformCheckHandle"}),Ie=Object.assign(me,{setup(ve){const s=c(0),{statusOptions:P}=Y.dictStore.globalDicts||{},v=G(),y=c({}),B=c(),h=c(),g=c(!1),A=c([]),T=()=>{s.value===0?B.value.validate(i=>{i&&s.value++}):s.value===1?h.value.formRef.validate(async i=>{if(i){const o=C(h.value.form.templateDetails,[]),n=C(h.value.form.additionalIndexDetails,[]);A.value=[...o,...n],await Z(),s.value++}}):s.value===2?E():s.value++},E=async()=>{g.value=!0;const i={appraisalId:v.query.appraisalId*1,appraisalProjectId:v.query.projectId*1,appraisalProjectCode:v.query.projectCode,...y.value,appraisalInfoList:A.value};try{await ie(i),s.value++,g.value=!1}catch{g.value=!1}},C=(i,o)=>{const n="selfAppraisalScoreInfo4";return i.forEach(u=>{var k;u.children&&u.children.length>0?C(u.children,o):o.push({projectTemplateDetailId:u.templateId,score:u[n].appraisalScore,appraisalBasis:u[n].appraisalBasis,appraisalBasisAppendix:((k=u[n].appraisalBasisAppendix)==null?void 0:k.length)&&JSON.stringify(oe(u[n].appraisalBasisAppendix))||void 0})}),o},p=c({}),F=async()=>{const i=await ae(v.query.appraisalId,v.query.projectCode);p.value=i.data},b=c({}),L=async()=>{const i=await le(v.query.projectId);b.value=i.data};return K(()=>{L(),F()}),(i,o)=>{const n=r("el-form-item"),u=r("el-col"),k=r("el-row"),$=r("el-form"),D=r("el-button"),x=r("el-card"),R=r("el-step"),J=r("el-steps"),f=r("el-descriptions-item"),O=r("el-descriptions"),q=r("el-radio"),M=r("el-radio-group"),U=r("el-input"),z=r("el-result");return _(),N("div",re,[e(x,{class:"mb-16"},{default:a(()=>[m("div",ne,[m("div",ue,[m("div",de,[m("p",pe,d(b.value.projectName),1),m("div",ce,[e($,{"label-suffix":":"},{default:a(()=>[e(k,{gutter:24},{default:a(()=>[e(u,{span:6},{default:a(()=>[e(n,{label:"\u7533\u62A5\u5355\u4F4D"},{default:a(()=>[t(d(b.value.buildOrgName),1)]),_:1})]),_:1}),e(u,{span:6},{default:a(()=>[e(n,{label:"\u9879\u76EE\u72B6\u6001"},{default:a(()=>{var l;return[t(d(((l=Q(P)[b.value.status])==null?void 0:l.name)||"-"),1)]}),_:1})]),_:1}),e(u,{span:6},{default:a(()=>[e(n,{label:"\u6279\u590D\u91D1\u989D"},{default:a(()=>[t(d(b.value.approvalAmount)+"\u4E07\u5143",1)]),_:1})]),_:1}),e(u,{span:6},{default:a(()=>[e(n,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[t(d(b.value.projectYear),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),i.$route.name==="applicationMarkDetail"?(_(),w(D,{key:0,type:"primary",icon:"Download"},{default:a(()=>[t("\u4E0B\u8F7D\u5206\u6790\u62A5\u544A")]),_:1})):I("",!0)])])]),_:1}),e(x,{class:"mb-16"},{default:a(()=>[e(J,{active:s.value},{default:a(()=>[e(R,{title:"\u5BA1\u6838\u6574\u6539\u60C5\u51B5"}),e(R,{title:"\u6838\u67E5\u6253\u5206"}),e(R,{title:"\u786E\u8BA4\u6253\u5206"}),e(R,{title:"\u5B8C\u6210"})]),_:1},8,["active"])]),_:1}),S(e(x,null,{header:a(()=>[t("\u5BA1\u6838\u6574\u6539\u60C5\u51B5")]),default:a(()=>[e(O,{title:"\u6574\u6539\u610F\u89C1",column:2,border:"",class:"mb-16"},{default:a(()=>[e(f,{span:"2",label:"\u6574\u6539\u610F\u89C1"},{default:a(()=>{var l;return[t(d((l=p.value)==null?void 0:l.rectifyOpinion),1)]}),_:1}),e(f,{label:"\u63D0\u4EA4\u4EBA"},{default:a(()=>{var l;return[t(d((l=p.value.rectifyResSubEmployee)==null?void 0:l.username),1)]}),_:1}),e(f,{label:"\u63D0\u4EA4\u65F6\u95F4"},{default:a(()=>{var l;return[t(d((l=p.value)==null?void 0:l.rectifyResSubTime),1)]}),_:1})]),_:1}),e(O,{title:"\u6574\u6539\u60C5\u51B5",column:2,border:"",class:"mb-16"},{default:a(()=>[e(f,{span:"2",label:"\u6574\u6539\u7ED3\u679C\u8BF4\u660E"},{default:a(()=>{var l;return[t(d((l=p.value)==null?void 0:l.rectifyResult),1)]}),_:1}),e(f,{label:"\u76F8\u5173\u6750\u6599",span:"2"},{default:a(()=>[(_(!0),N(W,null,X(p.value.rectifyResultAppendix&&JSON.parse(p.value.rectifyResultAppendix),(l,j)=>(_(),N("p",{key:j,class:"mb-4"},[e(te,{"file-name":l.originalFileName,"file-id":l.id},null,8,["file-name","file-id"])]))),128))]),_:1}),e(f,{label:"\u63D0\u4EA4\u4EBA"},{default:a(()=>{var l,j;return[t(d((j=(l=p.value)==null?void 0:l.rectifySubmitEmployee)==null?void 0:j.username),1)]}),_:1}),e(f,{label:"\u63D0\u4EA4\u65F6\u95F4"},{default:a(()=>{var l;return[t(d((l=p.value)==null?void 0:l.rectifySubmitTime),1)]}),_:1})]),_:1}),fe,e($,{ref_key:"formRef1",ref:B,model:y.value,"label-suffix":":","label-width":"100"},{default:a(()=>[e(n,{label:"\u5BA1\u6838\u7ED3\u679C",prop:"rectifyAuditResult",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:a(()=>[e(M,{modelValue:y.value.rectifyAuditResult,"onUpdate:modelValue":o[0]||(o[0]=l=>y.value.rectifyAuditResult=l)},{default:a(()=>[e(q,{label:1},{default:a(()=>[t("\u901A\u8FC7")]),_:1}),e(q,{label:2},{default:a(()=>[t("\u4E0D\u901A\u8FC7")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u5BA1\u6838\u610F\u89C1"},{default:a(()=>[e(U,{modelValue:y.value.rectifyAuditOpinion,"onUpdate:modelValue":o[1]||(o[1]=l=>y.value.rectifyAuditOpinion=l),type:"textarea","show-word-limit":"",maxlength:500,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512),[[V,s.value===0]]),S(e(ee,{ref_key:"formRef2",ref:h},null,512),[[V,s.value===1]]),s.value===2?(_(),w(se,{key:0,"appraisal-info-list":A.value},null,8,["appraisal-info-list"])):I("",!0),S(e(x,null,{default:a(()=>[e(z,{icon:"success",title:"\u6838\u67E5\u5B8C\u6210"},{extra:a(()=>[e(D,{onClick:o[2]||(o[2]=l=>i.$router.go(-1))},{default:a(()=>[t("\u8FD4\u56DE\u5217\u8868")]),_:1})]),_:1})]),_:1},512),[[V,s.value===3]]),m("div",_e,[s.value>0&&s.value<3?(_(),w(D,{key:0,type:"primary",plain:"",loading:g.value,onClick:o[3]||(o[3]=l=>s.value--)},{default:a(()=>[t("\u4E0A\u4E00\u6B65")]),_:1},8,["loading"])):I("",!0),s.value<3?(_(),w(D,{key:1,type:"primary",loading:g.value,onClick:T},{default:a(()=>[t("\u4E0B\u4E00\u6B65")]),_:1},8,["loading"])):I("",!0),e(D,{onClick:o[4]||(o[4]=l=>i.$router.go(-1))},{default:a(()=>[t("\u8FD4\u56DE")]),_:1})])])}}});export{Ie as default};