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