import{h as he,f as ge,c as G,b as ye}from"./uploadAction.95992a5e.js";import{d as Ce,D as xe,z as Ae,A as Re,r as b,b as we,o as Ve,N as Ie,c as f,e as v,f as k,g as u,h as l,i as e,I as R,F as U,J as W,j as n,t as d,k as O,u as C,x as ke}from"./index.d340e473.js";import{i as F}from"./index.f55de596.js";import{s as Ue}from"./finalInspectionDeclare.c5f88bb8.js";import{p as Ne}from"./projectStore.d1b5c8dd.js";import De from"./projectContentDialog.55ca7e73.js";const $e={class:"uploadInitfinalAcceptanceMaterials footerPage"},Me=u("div",{class:"collapse-title"},"\u5173\u8054\u7684\u5E94\u7528\u4FE1\u606F",-1),Ee={class:"pb-24"},He={class:"pl-24"},Le={class:"font-semibold text-14 mb-16"},Se={class:"text-primary"},Oe=u("p",{class:"font-semibold text-14"},"\u8D44\u6E90\u6982\u89C8",-1),Fe={class:"p-16"},je=u("p",{class:"mb-8"},"\u4E91\u8D44\u6E90\u4F7F\u7528\u60C5\u51B5",-1),qe=u("p",{class:"mb-8"},"\u6570\u636E\u4F7F\u7528\u60C5\u51B5",-1),Be=u("p",{class:"mb-31"},null,-1),Pe=u("p",{class:"mb-8"},"\u7EC4\u4EF6\u4F7F\u7528\u60C5\u51B5",-1),Je=u("p",{class:"mb-31"},null,-1),ze=u("p",{class:"mb-8"},"\u4EA7\u751F\u6570\u636E",-1),Te=u("p",{class:"mb-31"},null,-1),Ge=u("p",{class:"mb-8"},"\u8BD5\u8FD0\u884C\u62A5\u544A",-1);const We=u("div",{class:"collapse-title"},"\u5B9E\u65BD\u4FE1\u606F",-1),Ke=["onClick"],Qe=["onClick"],Xe={class:"text-right w-full mt-8"},Ye={class:"collapse-title"},Ze={class:"footer"},ea=Ce({name:"declarationFinal"}),ra=Object.assign(ea,{setup(aa){const K=xe.dictStore.uploadUrl,N=Ae(),{proxy:Q}=ke(),j=Re(),q=["1","2","3","4","5","6","7"],B=b(),p=b({finalAcceptanceMaterials:[{title:"\u9A8C\u6536\u6750\u6599",data:[{name:"\u7528\u6237\u4F7F\u7528\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"IRS\u5E94\u7528\u8BD5\u8FD0\u884C\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u4FE1\u606F\u5B89\u5168\u7B49\u7EA7\u4FDD\u62A4\u6D4B\u8BD5\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u9879\u76EE\u603B\u7ED3\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u5EFA\u8BBE\u6838\u67E5\u8868",isHave:!0,files:[],reason:""},{name:"\u5176\u4ED6\u9644\u4EF6",isHave:!0,files:[],reason:""}]}]}),X=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u6750\u6599\u540D\u79F0",key:"name",prop:"name"},{label:"\u662F\u5426\u6709\u6750\u6599",key:"isHave",slot:"isHave",width:100},{label:"\u9644\u4EF6/\u8BF4\u660E\uFF08\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf\uFF09",key:"files",slot:"files"}],x=b([{name:"\u5E94\u75281",status:"\u8FD0\u884C\u4E2D",memoryRate:11,cpuRate:33,cpRate:44},{name:"\u5E94\u75282",status:"\u8FD0\u884C\u4E2D",memoryRate:68,cpuRate:43,cpRate:30}]),i=b({});let D,$,M;const Y=b(),Z=b(),ee=b(),E=(o,r,h)=>{const s=[r,"rgba(0, 0, 0, 0.1)"];return{legend:{show:!1},graphic:[{type:"text",left:"center",top:"48%",style:{text:`${o}%`,fill:"#333333",fontSize:16,fontWeight:"bold",fontFamily:"DINAlternate-Bold, DINAlternate"}},{type:"text",left:"center",bottom:"0",style:{text:`${h}`,fill:"#333333",fontSize:12}}],series:[{type:"pie",radius:["58%","75%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[{value:o},{value:100-o}],itemStyle:{color:function(c){return s[c.dataIndex]}},labelLine:{show:!1}}]}},ae=()=>{D||(D=F(Y.value));const o=E(i.value.memoryRate,"#5ADE92","\u8FD1\u4E09\u4E2A\u6708\u5185\u5B58\u5E73\u5747\u4F7F\u7528\u7387");D.setOption(o)},te=()=>{$||($=F(Z.value));const o=E(i.value.cpuRate,"#0967FD","\u8FD1\u4E09\u4E2A\u6708CPU\u5E73\u5747\u4F7F\u7528\u7387");$.setOption(o)},le=()=>{M||(M=F(ee.value));const o=E(i.value.cpRate,"#ffae00","\u8FD1\u4E09\u4E2A\u6708\u78C1\u76D8\u5E73\u5747\u4F7F\u7528\u7387");M.setOption(o)},se=()=>{ae(),te(),le()},H=b(0),oe=o=>{H.value=o,i.value=x.value[o],se()},w=b(!1),ne=async o=>{!o||o.validate(async(r,h)=>{if(r){w.value=!0;const s={id:N.query.id,isCompletedLogCollection:p.value.isCompletedLogCollection,finalAcceptanceMaterials:JSON.stringify(p.value.finalAcceptanceMaterials),beseExpectedResults:p.value.beseExpectedResults&&JSON.stringify(p.value.beseExpectedResults)||void 0};try{await Ue(N.name==="declarationFinal"?1:2,{projectInfo:s}),w.value=!1,Q.$message.success("\u63D0\u4EA4\u6210\u529F"),j.go(-1)}catch{w.value=!1}}else console.log(h)})},ie=async()=>{var r,h;const o=await Ne(N.query.id);p.value={isCompletedLogCollection:o.data.isCompletedLogCollection,finalAcceptanceMaterials:o.data.finalAcceptanceMaterials?JSON.parse(o.data.finalAcceptanceMaterials):p.value.finalAcceptanceMaterials,beseExpectedResults:o.data.beseExpectedResults&&JSON.parse(o.data.beseExpectedResults)||o.data.beseExpectedResults&&JSON.parse(o.data.beseExpectedResults)},p.value.finalAcceptanceMaterials=p.value.finalAcceptanceMaterials.map(s=>({...s,data:s.data.map(c=>({...c,isHave:["\u8F6F\u4EF6\u7C7B\u7CFB\u7EDF\u5F00\u53D1\u3001\u90E8\u7F72\u7B49\u5B8C\u6210\u60C5\u51B5\u5BF9\u7167\u8868","\u4FE1\u606F\u5B89\u5168\u7B49\u7EA7\u4FDD\u62A4\u6D4B\u8BC4\u62A5\u544A","\u7528\u6237\u4F7F\u7528\u62A5\u544A","IRS\u5E94\u7528\u8BD5\u8FD0\u884C\u62A5\u544A","\u7EC8\u9A8C\u610F\u89C1"].includes(c.name)?!0:c.isHave,required:!0}))})),(r=o.data.projectApplications)!=null&&r.length&&(o.data.projectApplications.map(s=>s.secrecyGrade).includes(3)||o.data.projectApplications.map(s=>s.secrecyGrade).includes(4)||o.data.projectApplications.map(s=>s.secrecyGrade).includes(5))&&(p.value.finalAcceptanceMaterials=p.value.finalAcceptanceMaterials.map(s=>({...s,data:s.data.map(c=>({...c,isHave:["\u5546\u4E1A\u5BC6\u7801\u5E94\u7528\u8BC4\u4F30\u62A5\u544A"].includes(c.name)?!0:c.isHave,required:["\u5546\u4E1A\u5BC6\u7801\u5E94\u7528\u8BC4\u4F30\u62A5\u544A"].includes(c.name)?!0:c.required}))}))),x.value=((h=o.data.projectApplications)==null?void 0:h.map((s,c)=>({name:s.applicationName||s.relatedExistsApplication,status:"\u8FD0\u884C\u4E2D",finalIrsApps:o.data.finalIrsApps[c]})))||[],i.value=x.value[0]},re=[{label:"\u9879\u76EE\u4E3B\u8981\u5185\u5BB9",prop:"mainContent",key:"mainContent"},{label:"\u4E1A\u52A1\u5BF9\u8C61",prop:"businessObject",key:"businessObject"},{label:"\u64CD\u4F5C",slot:"action",key:"action"}],A=we({visible:!1,data:void 0}),L=b(),P=(o,r)=>{A.data=o,A.visible=!0,L.value=r},ce=o=>{L.value===void 0?p.value.beseExpectedResults.push(o):p.value.beseExpectedResults[L.value]=o},ue=o=>{p.value.beseExpectedResults.splice(o,1)};return Ve(async()=>{await Ie(),ie()}),(o,r)=>{const h=f("el-tab-pane"),s=f("el-descriptions-item"),c=f("el-descriptions"),g=f("el-col"),J=f("el-row"),de=f("el-tabs"),S=f("el-collapse-item"),z=f("el-radio"),pe=f("el-radio-group"),V=f("el-form-item"),T=f("table-list"),I=f("el-button"),fe=f("el-switch"),me=f("el-upload"),_e=f("el-input"),be=f("el-collapse"),ve=f("el-form");return v(),k(U,null,[u("div",$e,[l(ve,{ref_key:"formRef",ref:B,model:p.value,"label-position":"right","label-width":"90px","label-suffix":":","scroll-to-error":"",class:"table-form"},{default:e(()=>[l(be,{modelValue:q,"onUpdate:modelValue":r[3]||(r[3]=y=>q=y)},{default:e(()=>{var y;return[(y=x.value)!=null&&y.length?(v(),R(S,{key:0,name:"1",class:"mb-16"},{title:e(()=>[Me]),default:e(()=>[u("div",Ee,[l(de,{modelValue:H.value,"onUpdate:modelValue":r[0]||(r[0]=a=>H.value=a),"tab-position":"left",onTabChange:oe},{default:e(()=>[(v(!0),k(U,null,W(x.value,(a,t)=>(v(),R(h,{key:t,label:a.name,name:t},null,8,["label","name"]))),128)),u("div",He,[u("p",Le,[n("\u5E94\u7528\u72B6\u6001\uFF1A"),u("span",Se,d(i.value.status),1)]),Oe,u("div",Fe,[l(J,{class:"mb-16"},{default:e(()=>[l(g,{span:12},{default:e(()=>[je,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u4E91\u8D44\u6E90\u5B9E\u4F8B\u4F7F\u7528\u6570"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.cloudResourceUsage.instancesNum),1)]}),_:1}),l(s,{label:"\u4E91\u8D44\u6E90\u4EA7\u54C1"},{default:e(()=>[n(" \u6682\u65E0 ")]),_:1}),l(s,{label:"\u4E91\u8D44\u6E90\u5229\u7528\u7387"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.cloudResourceUsage.utilizationRate),1)]}),_:1})]),_:1})]),_:1})]),_:1}),l(J,{gutter:24},{default:e(()=>[l(g,{span:12,class:"mb-16"},{default:e(()=>[qe,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u6570\u636E\u5171\u4EAB\u7533\u8BF7\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.dataUsage.sharedApplicationVolume),1)]}),_:1}),l(s,{label:"\u6570\u636E\u5171\u4EAB\u4F7F\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.dataUsage.sharedUsage),1)]}),_:1})]),_:1})]),_:1}),l(g,{span:12,class:"mb-16"},{default:e(()=>[Be,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u534F\u540C\u63A5\u53E3\u8C03\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.dataUsage.collaborativeInterfaceCallVolume),1)]}),_:1}),l(s,{label:"\u6570\u636E\u5171\u4EAB\u8C03\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.dataUsage.sharedInterfaceCallVolume),1)]}),_:1})]),_:1})]),_:1}),l(g,{span:12,class:"mb-16"},{default:e(()=>[Pe,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u7EC4\u4EF6\u7533\u8BF7\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.componentUsage.applicationVolume),1)]}),_:1}),l(s,{label:"\u7EC4\u4EF6\u8C03\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.componentUsage.callVolume),1)]}),_:1}),l(s,{label:"\u7EC4\u4EF6\u4F7F\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.componentUsage.useVolume),1)]}),_:1})]),_:1})]),_:1}),l(g,{span:12,class:"mb-16"},{default:e(()=>[Je,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u7EDF\u4E00\u7EC4\u4EF6\u8C03\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.componentUsage.unifyCallolVolume),1)]}),_:1}),l(s,{label:"\u4F7F\u7528\u7EC4\u4EF6"},{default:e(()=>[n(" \u6682\u65E0 ")]),_:1}),l(s,{label:"\u4F7F\u7528\u5F3A\u5236\u7C7B\u7EC4\u4EF6"},{default:e(()=>[n(" \u6682\u65E0 ")]),_:1})]),_:1})]),_:1}),l(g,{span:12,class:"mb-16"},{default:e(()=>[ze,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u4EA7\u751F\u6570\u636E\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.generateData.volume),1)]}),_:1}),l(s,{label:"\u4EA7\u751F\u6570\u636E\u5171\u4EAB\u4F7F\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.generateData.sharedUseVolume),1)]}),_:1}),l(s,{label:"\u6570\u636E\u63A5\u53E3\u88AB\u8C03\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.generateData.dataInterfaceCallsVolume),1)]}),_:1}),l(s,{label:"\u4F7F\u7528\u6279\u91CF\u6570\u636E"},{default:e(()=>[n(" \u6682\u65E0 ")]),_:1})]),_:1})]),_:1}),l(g,{span:12,class:"mb-16"},{default:e(()=>[Te,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u4EA7\u751F\u6570\u636E\u5171\u4EAB\u7533\u8BF7\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.generateData.sharedApplicationVolume),1)]}),_:1}),l(s,{label:"\u4EA7\u751F\u6570\u636E\u5BA1\u6279\u901A\u8FC7\u7387"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.generateData.approvalPassRate),1)]}),_:1}),l(s,{label:"\u534F\u540C\u63A5\u53E3\u88AB\u8C03\u7528\u91CF"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.generateData.collaborativeInterfaceCallVolume),1)]}),_:1}),l(s,{label:"\u4F7F\u7528\u5171\u4EAB\u63A5\u53E3"},{default:e(()=>[n(" \u6682\u65E0 ")]),_:1})]),_:1})]),_:1}),l(g,{span:12},{default:e(()=>[Ge,l(c,{column:1,border:""},{default:e(()=>[l(s,{label:"\u8BD5\u8FD0\u884C\u62A5\u544A\u901A\u8FC7\u7387"},{default:e(()=>{var a,t;return[n(d((t=(a=i.value)==null?void 0:a.finalIrsApps)==null?void 0:t.operationReport.passRate),1)]}),_:1})]),_:1})]),_:1})]),_:1})]),O("",!0)])]),_:1},8,["modelValue"])])]),_:1})):O("",!0),l(S,{name:"7",class:"mb-16"},{title:e(()=>[We]),default:e(()=>[l(V,{label:"\u662F\u5426\u5B8C\u6210\u65E5\u5FD7\u6570\u636E\u5F52\u96C6","label-width":"170",prop:"isCompletedLogCollection",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:e(()=>[l(pe,{modelValue:p.value.isCompletedLogCollection,"onUpdate:modelValue":r[1]||(r[1]=a=>p.value.isCompletedLogCollection=a)},{default:e(()=>[l(z,{label:!0},{default:e(()=>[n("\u662F")]),_:1}),l(z,{label:!1},{default:e(()=>[n("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(V,{label:"\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548","label-width":"170",prop:"beseExpectedResults",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:e(()=>[l(T,{pagination:!1,style:{width:"100%"},column:re,data:p.value.beseExpectedResults,"empty-temp":!1},{action:e(({scope:a})=>[u("a",{onClick:t=>P(a.row,a.$index)},"\u7F16\u8F91",8,Ke),u("a",{class:"text-danger",onClick:t=>ue(a.$index)},"\u5220\u9664",8,Qe)]),_:1},8,["data"]),u("p",Xe,[l(I,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:r[2]||(r[2]=()=>P())},{default:e(()=>[n("\u6DFB\u52A0")]),_:1})])]),_:1})]),_:1}),(v(!0),k(U,null,W(p.value.finalAcceptanceMaterials,(a,t)=>(v(),R(S,{key:t,name:t+2+"",class:"mb-16"},{title:e(()=>[u("div",Ye,d(a.title),1)]),default:e(()=>[l(T,{ref_for:!0,ref:"tableListRef",column:X,data:a.data,pagination:!1,"empty-temp":!1},{isHave:e(({scope:m})=>[l(fe,{modelValue:m.row.isHave,"onUpdate:modelValue":_=>m.row.isHave=_,disabled:m.row.required},null,8,["modelValue","onUpdate:modelValue","disabled"])]),files:e(({scope:m})=>[m.$index>=0?(v(),k(U,{key:0},[m.row.isHave?(v(),R(V,{key:0,prop:`finalAcceptanceMaterials[${t}].data[${m.$index}].files`,rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],"label-width":"0",style:{"margin-bottom":"0"},class:"uploadFormItem"},{default:e(()=>[l(me,{"file-list":m.row.files,"onUpdate:fileList":_=>m.row.files=_,class:"w-full table-upload",action:C(K),"on-success":_=>C(he)(_,m.row.files),"before-upload":_=>C(ge)(_,{types:C(G)}),accept:C(G).map(_=>`.${_}`).join(","),"on-preview":C(ye)},{default:e(()=>[l(I,{type:"primary",plain:"",size:"small"},{default:e(()=>[n("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:2},1032,["file-list","onUpdate:fileList","action","on-success","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(v(),R(V,{key:1,prop:`finalAcceptanceMaterials[${t}].data[${m.$index}].reason`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],"label-width":"0",style:{"margin-bottom":"0"}},{default:e(()=>[l(_e,{modelValue:m.row.reason,"onUpdate:modelValue":_=>m.row.reason=_,placeholder:"\u8BF7\u586B\u5199\u7F3A\u5C11\u8BE5\u6750\u6599\u7684\u539F\u56E0",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]))],64)):O("",!0)]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]}),_:1})]),_:1},8,["model"]),u("div",Ze,[l(I,{onClick:r[4]||(r[4]=y=>C(j).go(-1))},{default:e(()=>[n(" \u8FD4\u56DE ")]),_:1}),l(I,{type:"primary",loading:w.value,onClick:r[5]||(r[5]=y=>ne(B.value))},{default:e(()=>[n(" \u63D0\u4EA4 ")]),_:1},8,["loading"])])]),l(De,{visible:A.visible,data:A.data,onSetContent:ce,onClose:r[6]||(r[6]=y=>A.visible=!1)},null,8,["visible","data"])],64)}}});export{ra as default};