|
- import"./index.4cb63fa6.js";import{d as X,B as Z,r as g,x as ee,o as ae,c as h,e as o,f as _,g as b,h as a,i as e,j as l,t as n,n as le,G as N,k as D,u as te,F as y,H as k,q as de}from"./index.e8b71da7.js";import{d as ie}from"./projectCollectionEnter.f2131d92.js";import{d as M,a as ne}from"./performanceApprove.d95f75d9.js";import{t as ue}from"./indicatorTemplate.a390f46e.js";const se={class:"footerPage indexConfigApproveDetail"},re={class:"module-box"},oe={class:"flex items-center"},pe={class:"module-box"},ce={class:"flex items-center"},_e={key:0,class:"footer"},fe={class:"flex justify-center"},me=X({name:"indexConfigApproveDetail"}),ke=Object.assign(me,{setup(ve){const{proxy:I}=de(),{operationTypeOptions:J}=Z.dictStore.globalDicts||{},j=g([]),q=g(!1),R=()=>{I.$messageBox.confirm("\u662F\u5426\u786E\u8BA4\u5BA1\u6838\u901A\u8FC7?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await M({id:V.query.id*1,auditStatus:2}),I.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),O()})},S=g(!1),w=g(),$=g(),E=()=>{S.value=!0,w.value={auditMessage:""}},A=async m=>{!m||m.validate(async s=>{s&&(await M({id:V.query.id*1,auditStatus:3,...w.value}),I.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),O(),S.value=!1)})},V=ee(),c=g({}),i=g({}),O=async()=>{const m=await ne(V.query.id);c.value={...m.data},i.value=m.data.data?JSON.parse(m.data.data):{}},U=g(),P=async()=>{const m=await ue();U.value=m.data};return ae(async()=>{j.value=(await ie()).data,P(),O()}),(m,s)=>{var L;const t=h("el-form-item"),d=h("el-col"),v=h("el-row"),F=h("el-form"),T=h("el-card"),Y=h("el-collapse-item"),z=h("el-collapse"),C=h("el-button"),G=h("el-input"),H=h("el-dialog");return o(),_(y,null,[b("div",se,[a(T,{header:"\u5BA1\u6838\u4FE1\u606F",class:"mb-16 search",shadow:"never"},{default:e(()=>[a(F,{"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(v,{gutter:24},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u914D\u7F6E\u4EBA\u5458"},{default:e(()=>[l(n(c.value.createBy||"-"),1)]),_:1})]),_:1}),a(d,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u72B6\u6001"},{default:e(()=>[b("span",{class:le(`${c.value.auditStatus===1?"text-warning":c.value.auditStatus===2?"text-success":"text-danger"}`)},n(c.value.auditStatusName||"-"),3)]),_:1})]),_:1}),c.value.auditStatus!==1&&c.value.auditMessage?(o(),N(d,{key:0,span:12},{default:e(()=>[a(t,{label:"\u9A73\u56DE\u539F\u56E0"},{default:e(()=>[l(n(c.value.auditMessage||"-"),1)]),_:1})]),_:1})):D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u64CD\u4F5C"},{default:e(()=>[l(n(te(J)[c.value.operationType]||"-"),1)]),_:1})]),_:1}),c.value.auditStatus!==1?(o(),N(d,{key:1,span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u4EBA\u5458"},{default:e(()=>[l(n(c.value.auditBy||"-"),1)]),_:1})]),_:1})):D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4"},{default:e(()=>[l(n(c.value.createOn||"-"),1)]),_:1})]),_:1}),c.value.auditStatus!==1?(o(),N(d,{key:2,span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u65F6\u95F4"},{default:e(()=>[l(n(c.value.auditOn||"-"),1)]),_:1})]),_:1})):D("",!0)]),_:1})]),_:1})]),_:1}),a(T,{header:"\u57FA\u672C\u4FE1\u606F",shadow:"never",class:"mb-16 search"},{default:e(()=>[a(F,{model:c.value,"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(v,{gutter:24},{default:e(()=>[a(d,{span:24},{default:e(()=>[a(t,{label:"\u6A21\u677F\u540D\u79F0"},{default:e(()=>[l(n(i.value.name),1)]),_:1})]),_:1}),a(d,{span:24},{default:e(()=>[D("",!0)]),_:1}),a(d,{span:24},{default:e(()=>[a(t,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:e(()=>[l(n(i.value.projectYear),1)]),_:1})]),_:1}),a(d,{span:24},{default:e(()=>[a(t,{label:"\u6307\u6807\u6A21\u677F\u7C7B\u578B"},{default:e(()=>{var f,x;return[l(n(((x=(f=U.value)==null?void 0:f.find(u=>u.id===i.value.templateType))==null?void 0:x.name)||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(T,{header:"\u8BC4\u4EF7\u6307\u6807\u4FE1\u606F",shadow:"never"},{default:e(()=>[a(F,{ref:"formRef1","label-suffix":"\uFF1A",model:i.value},{default:e(()=>{var f;return[(o(!0),_(y,null,k(i.value.templateDetails,(x,u)=>(o(),_("div",{key:u},[b("div",re,[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u4E00\u7EA7\u6307\u6807"},{default:e(()=>[l(n(i.value.templateDetails[u].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(x.children,(B,r)=>(o(),_("div",{key:r,class:"ml-8 pl-16 sub-item"},[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u4E8C\u7EA7\u6307\u6807"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(B.children,(K,p)=>(o(),_("div",{key:p,class:"pl-24 mb-16"},[a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u4E09\u7EA7\u6307\u6807"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].children[p].name),1)]),_:2},1024)]),_:2},1024),a(d,{span:8},{default:e(()=>[a(t,{label:"\u6307\u6807\u5206\u503C"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].children[p].indexScore),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u6307\u6807\u7EC6\u5219"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].children[p].indexDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[a(t,{label:"\u8BC4\u5206\u7EC6\u5219"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].children[p].gradeDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[b("div",oe,[a(t,{label:"\u662F\u5426\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].children[p].isUploadSupportFile&&JSON.parse(i.value.templateDetails[u].children[r].children[p].isUploadSupportFile)?"\u662F":"\u5426"),1)]),_:2},1024)])]),_:2},1024),D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.templateDetails[u].children[r].children[p].supportMaterial),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128)),(f=i.value.additionalIndexDetails)!=null&&f.length?(o(),N(z,{key:0},{default:e(()=>[a(Y,null,{title:e(()=>s[5]||(s[5]=[b("div",{class:"collapse-title"},"\u9644\u52A0\u6307\u6807",-1)])),default:e(()=>[(o(!0),_(y,null,k(i.value.additionalIndexDetails,(x,u)=>(o(),_("div",{key:u},[b("div",pe,[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u4E00\u7EA7\u6307\u6807"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(x.children,(B,r)=>(o(),_("div",{key:r,class:"ml-8 pl-16 sub-item"},[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u4E8C\u7EA7\u6307\u6807"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(B.children,(K,p)=>(o(),_("div",{key:p,class:"pl-24 mb-16"},[a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u4E09\u7EA7\u6307\u6807"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].children[p].name),1)]),_:2},1024)]),_:2},1024),a(d,{span:8},{default:e(()=>[a(t,{label:"\u6307\u6807\u5206\u503C"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].children[p].indexScore),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"\u6307\u6807\u7EC6\u5219"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].children[p].indexDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[a(t,{label:"\u8BC4\u5206\u7EC6\u5219"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].children[p].gradeDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[b("div",ce,[a(t,{label:"\u662F\u5426\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].children[p].isUploadSupportFile&&JSON.parse(i.value.additionalIndexDetails[u].children[r].children[p].isUploadSupportFile)?"\u662F":"\u5426"),1)]),_:2},1024)])]),_:2},1024),D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.additionalIndexDetails[u].children[r].children[p].supportMaterial),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128))]),_:1})]),_:1})):D("",!0)]}),_:1},8,["model"])]),_:1}),((L=c.value)==null?void 0:L.auditStatus)===1&&m.$route.name!=="templateDetail"?(o(),_("div",_e,[a(C,{onClick:s[0]||(s[0]=f=>m.$router.go(-1))},{default:e(()=>s[6]||(s[6]=[l(" \u8FD4\u56DE ")])),_:1}),a(C,{type:"primary",loading:q.value,onClick:R},{default:e(()=>s[7]||(s[7]=[l(" \u5BA1\u6838\u901A\u8FC7 ")])),_:1},8,["loading"]),a(C,{type:"danger",onClick:E},{default:e(()=>s[8]||(s[8]=[l(" \u9A73\u56DE ")])),_:1})])):D("",!0)]),a(H,{modelValue:S.value,"onUpdate:modelValue":s[3]||(s[3]=f=>S.value=f),title:"\u9A73\u56DE",onClose:s[4]||(s[4]=f=>S.value=!1)},{footer:e(()=>[b("div",fe,[a(C,{type:"primary",onClick:s[2]||(s[2]=f=>A($.value))},{default:e(()=>s[9]||(s[9]=[l(" \u786E\u8BA4 ")])),_:1})])]),default:e(()=>[a(F,{ref_key:"auditFormRef",ref:$,model:w.value},{default:e(()=>[a(t,{label:"\u9A73\u56DE\u539F\u56E0",prop:"auditMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:e(()=>[a(G,{modelValue:w.value.auditMessage,"onUpdate:modelValue":s[1]||(s[1]=f=>w.value.auditMessage=f),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u9A73\u56DE\u539F\u56E0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{ke as default};
|