Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

3 місяці тому
1
  1. import{d as B,x as U,y as R,r as g,o as T,c as r,e as i,f as b,h as s,i as l,g as n,t as u,j as m,G as y,k as j,Z as x,q as O}from"./index.a2494fc2.js";import{d as A,s as G}from"./applicationEvaluate.8cfeda0d.js";const L={class:"footerPage"},P={class:"card-header"},Z={class:"flex justify-between items-center"},z={class:"flex-1"},E={class:"font-bold"},F={class:"mt-8 search"},H={key:1},J={key:1},K={key:1},Q={class:"footer"},W=B({name:"applicationMark"}),ae=Object.assign(W,{setup(X){const f=U(),h=R(),{proxy:C}=O(),v=[{type:"index",label:"\u5E8F\u53F7",width:60},{label:"\u6307\u6807\u540D\u79F0",key:"indexName",prop:"indexName",width:120},{label:"\u5355\u4F4D",key:"unit",prop:"unit",width:80,render:e=>x("span",e.unit||"-")},{label:"\u6307\u6807\u5B9A\u4E49",key:"indexDef",prop:"indexDef",render:e=>x("span",e.indexDef||"-")},{label:"\u5206\u503C",key:"indexScore",prop:"indexScore",width:80},{label:"\u5F97\u5206",key:"appraisalScore",slot:"appraisalScore",width:100}],N=[{type:"index",label:"\u5E8F\u53F7",width:60},{label:"\u6307\u6807\u540D\u79F0",key:"businessIndicatorName",prop:"businessIndicatorName",width:100},{label:"\u6307\u6807\u63CF\u8FF0",key:"businessIndicatorDescription",prop:"businessIndicatorDescription",render:e=>x("span",e.businessIndicatorDescription||"-")},{label:"\u8BBE\u8BA1\u4F9D\u636E",key:"indexDesignBasis",prop:"indexDesignBasis",render:e=>x("span",e.indexDesignBasis||"-")},{label:"\u8BA1\u7B97\u65B9\u6CD5",key:"indexCalculationMethod",prop:"indexCalculationMethod",render:e=>x("span",e.indexCalculationMethod||"-")},{label:"\u5206\u503C",key:"score",prop:"score",width:80},{label:"\u5F97\u5206",key:"appraisalScore",slot:"appraisalScore",width:100}],t=g({commonIndexDetails:[],auxIndexDetails:[],businessIndexDetails:[]}),S=g(),M=async()=>{const e=await A(f.query.appId,f.query.appraisalId);t.value={...e.data,commonIndexDetails:e.data.commonIndexDetails||[],auxIndexDetails:e.data.auxIndexDetails||[],businessIndexDetails:e.data.businessIndexDetails||[]}},$=g(!1),q=async e=>{!e||await e.validate(async(o,d)=>{if(o){$.value=!0;const _=[...t.value.commonIndexDetails,...t.value.auxIndexDetails,...t.value.businessIndexDetails].map(p=>({indexId:p.id,score:p.appraisalScore,indexType:p.indexType})),D={applicationId:f.query.appId,appraisalId:f.query.appraisalId,appAppraisalInfoList:_};await G(D),C.$message.success("\u63D0\u4EA4\u6210\u529F"),h.go(-1)}else console.log(t.value),console.log(d)})};return T(()=>{M()}),(e,o)=>{const d=r("el-form-item"),_=r("el-col"),D=r("el-row"),p=r("el-form"),I=r("el-button"),V=r("el-card"),k=r("el-input-number"),w=r("table-list");return i(),b("div",L,[s(V,{class:"mb-16"},{default:l(()=>[n("div",P,[n("div",Z,[n("div",z,[n("p",E,u(t.value.applicationName),1),n("div",F,[s(p,{"label-suffix":":"},{default:l(()=>[s(D,{gutter:24},{default:l(()=>[s(_,{span:6},{default:l(()=>[s(d,{label:"\u5EFA\u8BBE\u5355\u4F4D"},{default:l(()=>[m(u(t.value.buildOrgName),1)]),_:1})]),_:1}),s(_,{span:6},{default:l(()=>[s(d,{label:"\u5E94\u7528\u72B6\u6001"},{default:l(()=>[m(u(t.value.applicationStatus),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),e.$route.name==="applicationMarkDetail"?(i(),y(I,{key:0,type:"primary",icon:"Download"},{default:l(()=>o[2]||(o[2]=[m("\u4E0B\u8F7D\u5206\u6790\u62A5\u544A")])),_:1})):j("",!0)])])]),_:1}),s(V,null,{header:l(()=>o[3]||(o[3]=[m("\u5E94\u7528\u6307\u6807")])),default:l(()=>[s(p,{ref_key:"formRef",ref:S,model:t.value,"scroll-to-error":""},{default:l(()=>[o[4]||(o[4]=n("p",{class:"mb-8"},"\u901A\u7528\u6307\u6807",-1)),s(w,{column:v,data:t.value.commonIndexDetails,pagination:!1,class:"mb-16"},{appraisalScore:l(({scope:a})=>[e.$route.name==="applicationMark"&&a.$index>=0?(i(),y(d,{key:0,prop:`commonIndexDetails[${a.$index}].appraisalScore`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],style:{"margin-bottom":"0"}},{default:l(()=>[s(k,{modelValue:a.row.appraisalScore,"onUpdate:modelValue":c=>a.row.appraisalScore=c,min:0,max:a.row.indexScore,placeholder:"\u8BF7\u8F93\u5165",precision:2,controls:!1},null,8,["modelValue","onUpdate:modelValue","max"])]),_:2},1032,["prop"])):(i(),b("span",H,u(a.row.appraisalScore),1))]),_:1},8,["data"]),o[5]||(o[5]=n("p",{class:"mb-8"},"\u8F85\u52A9\u6307\u6807",-1)),s(w,{column:v,data:t.value.auxIndexDetails,pagination:!1,class:"mb-16"},{appraisalScore:l(({scope:a})=>[e.$route.name==="applicationMark"&&a.$index>=0?(i(),y(d,{key:0,style:{"margin-bottom":"0"},prop:`auxIndexDetails[${a.$index}].appraisalScore`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[s(k,{modelValue:a.row.appraisalScore,"onUpdate:modelValue":c=>a.row.appraisalScore=c,min:0,max:a.row.indexScore,placeholder:"\u8BF7\u8F93\u5165",precision:2,controls:!1},null,8,["modelValue","onUpdate:modelValue","max"])]),_:2},1032,["prop"])):(i(),b("span",J,u(a.row.appraisalScore),1))]),_:1},8,["data"]),o[6]||(o[6]=n("p",{class:"mb-8"},"\u4E1A\u52A1\u6307\u6807",-1)),s(w,{column:N,data:t.value.businessIndexDetails,pagination:!1},{appraisalScore:l(({scope:a})=>[e.$route.name==="applicationMark"&&a.$index>=0?(i(),y(d,{key:0,style:{"margin-bottom":"0"},prop:`businessIndexDetails[${a.$index}].appraisalScore`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[s(k,{modelValue:a.row.appraisalScore,"onUpdate:modelValue":c=>a.row.appraisalScore=c,min:1e-6,max:a.row.score,placeholder:"\u8BF7\u8F93\u5165",precision:2,controls:!1},null,8,["modelValue","onUpdate:modelValue","max"])]),_:2},1032,["prop"])):(i(),b("span",K,u(a.row.appraisalScore),1))]),_:1},8,["data"])]),_:1},8,["model"])]),_:1}),n("div",Q,[s(I,{type:"primary",loading:$.value,onClick:o[0]||(o[0]=a=>q(S.value))},{default:l(()=>o[7]||(o[7]=[m(" \u63D0\u4EA4 ")])),_:1},8,["loading"]),s(I,{onClick:o[1]||(o[1]=a=>e.$router.go(-1))},{default:l(()=>o[8]||(o[8]=[m("\u8FD4\u56DE")])),_:1})])])}}});export{ae as default};