No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

index.45d4ac84.js 9.4KB

1
  1. import"./index.1476e65f.js";import{d as X,D as Z,r as g,z as ee,o as ae,c as h,e as o,f as p,g as D,h as a,i as e,j as l,t as n,n as le,I,k as b,u as te,F as y,J as k,x as de}from"./index.8d65dd27.js";import{d as ie}from"./projectCollectionEnter.a7fbe5f9.js";import{d as L,a as ne}from"./performanceApprove.11a1bb2d.js";import{t as se}from"./indicatorTemplate.6a45107e.js";const ue={class:"footerPage indexConfigApproveDetail"},oe={class:"module-box"},re={class:"flex items-center"},ce=D("div",{class:"collapse-title"},"\u9644\u52A0\u6307\u6807",-1),pe={class:"module-box"},_e={class:"flex items-center"},fe={key:0,class:"footer"},me={class:"flex justify-center"},ve=X({name:"indexConfigApproveDetail"}),Se=Object.assign(ve,{setup(he){const{proxy:N}=de(),{operationTypeOptions:M}=Z.dictStore.globalDicts||{},j=g([]),R=g(!1),q=()=>{N.$messageBox.confirm("\u662F\u5426\u786E\u8BA4\u5BA1\u6838\u901A\u8FC7?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await L({id:V.query.id*1,auditStatus:2}),N.$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 _=>{_&&(await L({id:V.query.id*1,auditStatus:3,...w.value}),N.$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 se();U.value=m.data};return ae(async()=>{j.value=(await ie()).data,P(),O()}),(m,_)=>{var J;const t=h("el-form-item"),d=h("el-col"),v=h("el-row"),F=h("el-form"),T=h("el-card"),z=h("el-collapse-item"),Y=h("el-collapse"),C=h("el-button"),G=h("el-input"),H=h("el-dialog");return o(),p(y,null,[D("div",ue,[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(()=>[D("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(),I(d,{key:0,span:12},{default:e(()=>[a(t,{label:"\u9A73\u56DE\u539F\u56E0"},{default:e(()=>[l(n(c.value.auditMessage||"-"),1)]),_:1})]),_:1})):b("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u64CD\u4F5C"},{default:e(()=>[l(n(te(M)[c.value.operationType]||"-"),1)]),_:1})]),_:1}),c.value.auditStatus!==1?(o(),I(d,{key:1,span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u4EBA\u5458"},{default:e(()=>[l(n(c.value.auditBy||"-"),1)]),_:1})]),_:1})):b("",!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(),I(d,{key:2,span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u65F6\u95F4"},{default:e(()=>[l(n(c.value.auditOn||"-"),1)]),_:1})]),_:1})):b("",!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(()=>[b("",!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(s=>s.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),p(y,null,k(i.value.templateDetails,(x,s)=>(o(),p("div",{key:s},[D("div",oe,[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[s].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),p(y,null,k(x.children,(B,u)=>(o(),p("div",{key:u,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[s].children[u].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),p(y,null,k(B.children,(K,r)=>(o(),p("div",{key:r,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[s].children[u].children[r].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[s].children[u].children[r].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[s].children[u].children[r].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[s].children[u].children[r].gradeDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[D("div",re,[a(t,{label:"\u662F\u5426\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.templateDetails[s].children[u].children[r].isUploadSupportFile&&JSON.parse(i.value.templateDetails[s].children[u].children[r].isUploadSupportFile)?"\u662F":"\u5426"),1)]),_:2},1024)])]),_:2},1024),b("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.templateDetails[s].children[u].children[r].supportMaterial),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128)),(f=i.value.additionalIndexDetails)!=null&&f.length?(o(),I(Y,{key:0},{default:e(()=>[a(z,null,{title:e(()=>[ce]),default:e(()=>[(o(!0),p(y,null,k(i.value.additionalIndexDetails,(x,s)=>(o(),p("div",{key:s},[D("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[s].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),p(y,null,k(x.children,(B,u)=>(o(),p("div",{key:u,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[s].children[u].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),p(y,null,k(B.children,(K,r)=>(o(),p("div",{key:r,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[s].children[u].children[r].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[s].children[u].children[r].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[s].children[u].children[r].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[s].children[u].children[r].gradeDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[D("div",_e,[a(t,{label:"\u662F\u5426\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[u].children[r].isUploadSupportFile&&JSON.parse(i.value.additionalIndexDetails[s].children[u].children[r].isUploadSupportFile)?"\u662F":"\u5426"),1)]),_:2},1024)])]),_:2},1024),b("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"\u4F50\u8BC1\u6750\u6599"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[u].children[r].supportMaterial),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128))]),_:1})]),_:1})):b("",!0)]}),_:1},8,["model"])]),_:1}),((J=c.value)==null?void 0:J.auditStatus)===1&&m.$route.name!=="templateDetail"?(o(),p("div",fe,[a(C,{onClick:_[0]||(_[0]=f=>m.$router.go(-1))},{default:e(()=>[l(" \u8FD4\u56DE ")]),_:1}),a(C,{type:"primary",loading:R.value,onClick:q},{default:e(()=>[l(" \u5BA1\u6838\u901A\u8FC7 ")]),_:1},8,["loading"]),a(C,{type:"danger",onClick:E},{default:e(()=>[l(" \u9A73\u56DE ")]),_:1})])):b("",!0)]),a(H,{modelValue:S.value,"onUpdate:modelValue":_[3]||(_[3]=f=>S.value=f),title:"\u9A73\u56DE",onClose:_[4]||(_[4]=f=>S.value=!1)},{footer:e(()=>[D("div",me,[a(C,{type:"primary",onClick:_[2]||(_[2]=f=>A($.value))},{default:e(()=>[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":_[1]||(_[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{Se as default};