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{h as Z,f as ee,c as j,b as ae}from"./uploadAction.15178e83.js";import{d as te,B as le,x as se,y as ne,r as H,b as oe,o as re,c as u,e as m,f as b,g as c,h as l,i as a,F as I,H as S,G as w,k as h,j as f,t as ie,u as v,q as ue}from"./index.1cbb0c88.js";import{p as de,s as pe}from"./initialInspectionRecord.bce4905e.js";import me from"./actualPerformanceIndicatorsDialog.47412a64.js";import{p as ce}from"./projectStore.ce813280.js";const fe={class:"uploadInitpreliminaryInspectionMaterials footerPage"},ve={class:"p-24"},_e=["onClick"],ye=["onClick"],be=["onClick"],ge={class:"text-right w-full mt-8"},He={class:"collapse-title"},Ie={class:"footer"},we=te({name:"uploadInitpreliminaryInspectionMaterials"}),Me=Object.assign(we,{setup(Pe){const D=le.dictStore.uploadUrl,V=se(),{proxy:L}=ue(),$=ne(),x=["1","2","3","4","5","6","7"],M=H(),s=H({acceptancePersons:[{personName:"",unit:""}],actualPerformanceIndicators:[],preliminaryInspectionMaterials:[{title:"\u4E00\u3001\u9879\u76EE\u524D\u671F\u6750\u6599",data:[{name:"\u4FE1\u606F\u5316\u9879\u76EE\u7ACB\u9879\u6279\u590D\u6587\u4EF6",isHave:!0,files:[],reason:""},{name:"\u5E02\u653F\u5E9C\u91C7\u8D2D\u8BA1\u5212\u8868",isHave:!0,files:[],reason:""},{name:"\u91C7\u8D2D\u9700\u6C42",isHave:!0,files:[],reason:""},{name:"\u4E2D\u6807\u901A\u77E5\u4E66",isHave:!0,files:[],reason:""},{name:"\u6280\u672F\uFF08\u8F6F\u4EF6\u3001\u7CFB\u7EDF\u7B49\uFF09\u5F00\u53D1\u5408\u540C\uFF08\u534F\u8BAE\uFF09",isHave:!0,files:[],reason:""},{name:"\u8BBE\u5907\u91C7\u8D2D\u5408\u540C\uFF08\u534F\u8BAE\uFF09\u542B\u91C7\u8D2D\u5185\u5BB9\u6E05\u5355\u3001\u4EE5\u53CA\u5408\u540C\u4E0A\u89C4\u5B9A\u4EA4\u4ED8\u7684\u6240\u6709\u6587\u6863",isHave:!0,files:[],reason:""},{name:"\u7B2C\u4E09\u65B9\u76D1\u7406\u5408\u540C\uFF08\u534F\u8BAE\uFF09",isHave:!0,files:[],reason:""},{name:"\u5176\u4ED6\u524D\u671F\u8D44\u6599\uFF08\u542B\u4E2D\u6807\u5355\u4F4D\u8425\u4E1A\u6267\u7167\u3001\u5DE5\u7A0B\u76F8\u5173\u8D44\u8D28\u7B49\uFF09",isHave:!0,files:[],reason:""}]},{title:"\u4E8C\u3001\u9879\u76EE\u5F00\u5DE5\u8D44\u6599",data:[{name:"\u5DE5\u7A0B\u5F00\u5DE5\u62A5\u544A\u5355\uFF08\u5DE5\u7A0B\u540D\u79F0\u3001\u5EFA\u8BBE\u5355\u4F4D\u3001\u627F\u5EFA\u5355\u4F4D\u3001\u65BD\u5DE5\u5355\u4F4D\u3001\u8BA1\u5212\u5F00\u5DE5\u548C\u5B8C\u5DE5\u65E5\u671F\u3001\u5DE5\u7A0B\u5B9E\u65BD\u4E3B\u8981\u5185\u5BB9\u3001\u5EFA\u8BBE\u5355\u4F4D\u5BA1\u6279\u610F\u89C1\u53CA\u76D6\u7AE0\u65E5\u671F\uFF0C\u627F\u5EFA\u5355\u4F4D\u3001\u65BD\u5DE5\u5355\u4F4D\u76D6\u7AE0\u65E5\u671F\uFF09",isHave:!0,files:[],reason:""},{name:"\u8F6F\u4EF6\u7C7B\u7CFB\u7EDF\u5F00\u53D1\u3001\u90E8\u7F72\u7B49\u529F\u80FD\u4ECB\u7ECD",isHave:!0,files:[],reason:""},{name:"\u9690\u853D\u5DE5\u7A0B\u7C7B\u8BBE\u8BA1\u56FE\u3001\u6750\u6599\u9009\u6750\u3001\u65BD\u5DE5\u8BA1\u5212\u7B49\uFF08\u53EF\u53E6\u4F5C\u56FE\u518C\uFF09",isHave:!0,files:[],reason:""},{name:"\u8D2D\u7F6E\u5230\u4F4D\u7684\u8BBE\u5907\u4EA7\u54C1\u8BC1\u4E66\u3001\u5F00\u7BB1\u8BC1\u660E\u3001\u5E8F\u5217\u53F7\u7B49\uFF08\u53EF\u53E6\u9644\u6210\u518C\uFF09",isHave:!0,files:[],reason:""},{name:"\u9879\u76EE\u7EC4\u540D\u5355\u53CA\u4EBA\u5458\u4ECB\u7ECD\u8D44\u6599",isHave:!0,files:[],reason:""}]},{title:"\u4E09\u3001\u9879\u76EE\u5B9E\u65BD\u8FC7\u7A0B\u8D44\u6599",data:[{name:"\u8BBE\u5907\u5B89\u88C5\u65F6\u95F4\u3001\u4F4D\u7F6E\u4E00\u89C8\u8868\u7B49",isHave:!0,files:[],reason:""},{name:"\u8F6F\u4EF6\u7C7B\u7CFB\u7EDF\u5F00\u53D1\u3001\u90E8\u7F72\u7B49\u5B8C\u6210\u60C5\u51B5\u5BF9\u7167\u8868",isHave:!0,files:[],reason:""},{name:"\u5386\u6B21\u591A\u65B9\u8BA8\u8BBA\u4F1A\u8BAE\u8BB0\u5F55\u8868\u3001\u9879\u76EE\u53D8\u66F4\u5355\u7B49\u539F\u59CB\u51ED\u8BC1",isHave:!0,files:[],reason:""},{name:"\u4FE1\u606F\u5B89\u5168\u7B49\u7EA7\u4FDD\u62A4\u6D4B\u8BC4\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u5546\u4E1A\u5BC6\u7801\u5E94\u7528\u8BC4\u4F30\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u8D22\u52A1\u5BA1\u8BA1\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u53D8\u66F4\u7533\u8BF7\u5355",isHave:!0,files:[],reason:""},{name:"\u53D8\u66F4\u6279\u590D\u6587\u4EF6",isHave:!0,files:[],reason:""}]},{title:"\u56DB\u3001\u9879\u76EE\u8BD5\u8FD0\u884C\u8D44\u6599",data:[{name:"\u8BD5\u8FD0\u884C\u62A5\u544A\u53CA\u6574\u6539\u60C5\u51B5\uFF08\u5EFA\u8BBE\u5355\u4F4D\uFF09",isHave:!0,files:[],reason:""},{name:"\u8BD5\u8FD0\u884C\u60C5\u51B5\u4E1A\u4E3B\u5355\u4F4D\u610F\u89C1\uFF08\u9886\u5BFC\u7B7E\u5B57\u3001\u5355\u4F4D\u76D6\u7AE0\uFF09",isHave:!0,files:[],reason:""},{name:"\u5386\u6B21\u5DE1\u68C0\u6D41\u7A0B\u53CA\u8BB0\u5F55\u8868\u7B49\u539F\u59CB\u51ED\u8BC1",isHave:!0,files:[],reason:""},{name:"\u7528\u6237\u4F7F\u7528\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"IRS\u5E94\u7528\u8BD5\u8FD0\u884C\u62A5\u544A",isHave:!0,files:[],reason:""}]},{title:"\u4E94\u3001\u9879\u76EE\u5B8C\u5DE5\u8D44\u6599",data:[{name:"\u5DE5\u7A0B\u7C7B\u7AE3\u5DE5\u62A5\u544A\uFF08\u5EFA\u8BBE\u5355\u4F4D\uFF09",isHave:!0,files:[],reason:""},{name:"\u5B8C\u5DE5\u6574\u4F53\u8FD0\u884C\u60C5\u51B5\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u76D1\u7406\u603B\u7ED3\u62A5\u544A",isHave:!0,files:[],reason:""},{name:"\u7B2C\u4E09\u65B9\u9879\u76EE\u8BC4\u6D4B\u62A5\u544A\uFF08\u53E6\u518C\uFF09",isHave:!0,files:[],reason:""},{name:"\u4E1A\u4E3B\u5355\u4F4D\u7EC4\u7EC7\u7684\u521D\u9A8C\u4E13\u5BB6\u610F\u89C1\u53CA\u540D\u5355\uFF0C\u6574\u6539\u60C5\u51B5",isHave:!0,files:[],reason:""},{name:"\u5404\u7C7B\u7CFB\u7EDF\u3001\u573A\u5730\u3001\u8BBE\u5907\u4F7F\u7528\u7684\u7BA1\u7406\u624B\u518C\u3001\u64CD\u4F5C\u624B\u518C\u3001\u7EF4\u62A4\u624B\u518C\uFF08\u53EF\u53E6\u518C\uFF09",isHave:!0,files:[],reason:""},{name:"\u552E\u540E\u670D\u52A1\u627F\u8BFA\u7B49\uFF08\u5EFA\u8BBE\u5355\u4F4D\uFF09",isHave:!0,files:[],reason:""},{name:"\u7EC8\u9A8C\u610F\u89C1",isHave:!0,files:[],reason:""}]}]}),O=()=>{s.value.acceptancePersons.push({})},F=t=>{s.value.acceptancePersons.splice(t,1)},J=[{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"}],R=async()=>{var e,o;const t=await de(V.query.id);t.data&&(s.value={...t.data,acceptancePersons:t.data.acceptancePersons?t.data.acceptancePersons:[{personName:"",unit:""}],actualPerformanceIndicators:t.data.actualPerformanceIndicators&&((e=JSON.parse(t.data.actualPerformanceIndicators))==null?void 0:e.length)?JSON.parse(t.data.actualPerformanceIndicators):s.value.actualPerformanceIndicators,preliminaryInspectionMaterials:t.data.preliminaryInspectionMaterials&&((o=JSON.parse(t.data.preliminaryInspectionMaterials))==null?void 0:o.length)?JSON.parse(t.data.preliminaryInspectionMaterials):s.value.preliminaryInspectionMaterials})},g=H(!1),B=async t=>{!t||t.validate(async(e,o)=>{if(e){g.value=!0;const d={...s.value,actualPerformanceIndicators:s.value.actualPerformanceIndicators&&JSON.stringify(s.value.actualPerformanceIndicators),preliminaryInspectionMaterials:JSON.stringify(s.value.preliminaryInspectionMaterials)};try{await pe(d),g.value=!1,L.$message.success("\u63D0\u4EA4\u6210\u529F"),$.go(-1)}catch{g.value=!1}}else console.log(o)})},A=[{label:"\u6838\u5FC3\u4E1A\u52A1",prop:"businessName",key:"businessName"},{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",prop:"name",key:"name"},{label:"\u6570\u503C",prop:"nums",key:"nums"},{label:"\u5355\u4F4D",prop:"unit",key:"unit"},{label:"\u64CD\u4F5C",slot:"action",key:"action"}],_=oe({visible:!1,data:void 0}),P=H(),N=(t,e)=>{_.data=t,_.visible=!0,P.value=e},G=t=>{P.value===void 0?s.value.actualPerformanceIndicators=[...s.value.actualPerformanceIndicators,...t]:s.value.actualPerformanceIndicators[P.value]=t[0]},z=t=>{s.value.actualPerformanceIndicators.splice(t,1)},T=async()=>{var e;const t=await ce(V.query.id);(e=t.data.projectApplications)!=null&&e.length&&(t.data.projectApplications.map(o=>o.secrecyGrade).includes(3)||t.data.projectApplications.map(o=>o.secrecyGrade).includes(4)||t.data.projectApplications.map(o=>o.secrecyGrade).includes(5))&&(s.value.preliminaryInspectionMaterials=s.value.preliminaryInspectionMaterials.map(o=>({...o,data:o.data.map(d=>({...d,required:d.name==="\u5546\u4E1A\u5BC6\u7801\u5E94\u7528\u8BC4\u4F30\u62A5\u544A"?!0:d.required}))})))};return re(()=>{R(),T()}),(t,e)=>{const o=u("el-input"),d=u("el-form-item"),k=u("el-col"),E=u("el-row"),y=u("el-button"),C=u("el-collapse-item"),U=u("el-radio"),K=u("el-radio-group"),q=u("table-list"),Q=u("el-switch"),W=u("el-upload"),X=u("el-collapse"),Y=u("el-form");return m(),b(I,null,[c("div",fe,[l(Y,{ref_key:"formRef",ref:M,model:s.value,"label-position":"right","label-width":"90px","label-suffix":":","scroll-to-error":"",class:"table-form"},{default:a(()=>[l(X,{modelValue:x,"onUpdate:modelValue":e[2]||(e[2]=n=>x=n)},{default:a(()=>[l(C,{name:"1",class:"mb-16"},{title:a(()=>e[6]||(e[6]=[c("div",{class:"collapse-title"},"\u9A8C\u6536\u4EBA\u5458\u4FE1\u606F",-1)])),default:a(()=>[c("div",ve,[(m(!0),b(I,null,S(s.value.acceptancePersons,(n,p)=>(m(),w(E,{key:p,gutter:40},{default:a(()=>{var r;return[l(k,{span:12},{default:a(()=>[l(d,{label:"\u9A8C\u6536\u4EBA\u5458",prop:`acceptancePersons[${p}].personName`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:a(()=>[l(o,{modelValue:n.personName,"onUpdate:modelValue":i=>n.personName=i,placeholder:"\u8BF7\u586B\u5199\u59D3\u540D",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),l(k,{span:12},{default:a(()=>[l(d,{label:"\u6240\u5728\u5355\u4F4D",prop:`acceptancePersons[${p}].unit`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:a(()=>[l(o,{modelValue:n.unit,"onUpdate:modelValue":i=>n.unit=i,placeholder:"\u8BF7\u586B\u5199\u5355\u4F4D",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),((r=s.value.acceptancePersons)==null?void 0:r.length)>1?(m(),b("a",{key:0,class:"text-danger absolute top-4",style:{right:"-12px"},onClick:i=>F(p)},"\u5220\u9664",8,_e)):h("",!0)]}),_:2},1024))),128)),l(y,{type:"primary",plain:"",icon:"Plus",size:"small",onClick:O},{default:a(()=>e[7]||(e[7]=[f("\u589E\u52A0")])),_:1})])]),_:1}),l(C,{name:"7",class:"mb-16"},{title:a(()=>e[8]||(e[8]=[c("div",{class:"collapse-title"},"\u5B9E\u65BD\u4FE1\u606F",-1)])),default:a(()=>[l(d,{label:"\u662F\u5426\u5B8C\u6210\u65E5\u5FD7\u6570\u636E\u5F52\u96C6","label-width":"170",prop:"isCompletedLogCollection",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:a(()=>[l(K,{modelValue:s.value.isCompletedLogCollection,"onUpdate:modelValue":e[0]||(e[0]=n=>s.value.isCompletedLogCollection=n)},{default:a(()=>[l(U,{label:!0},{default:a(()=>e[9]||(e[9]=[f("\u662F")])),_:1}),l(U,{label:!1},{default:a(()=>e[10]||(e[10]=[f("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1}),l(d,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807","label-width":"170",prop:"actualPerformanceIndicators",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:a(()=>[l(q,{pagination:!1,style:{width:"100%"},column:A,data:s.value.actualPerformanceIndicators,"empty-temp":!1},{action:a(({scope:n})=>[c("a",{onClick:p=>N(n.row,n.$index)},"\u7F16\u8F91",8,ye),c("a",{class:"text-danger",onClick:p=>z(n.$index)},"\u5220\u9664",8,be)]),_:1},8,["data"]),c("p",ge,[l(y,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:e[1]||(e[1]=()=>N())},{default:a(()=>e[11]||(e[11]=[f("\u6DFB\u52A0")])),_:1})])]),_:1})]),_:1}),(m(!0),b(I,null,S(s.value.preliminaryInspectionMaterials,(n,p)=>(m(),w(C,{key:p,name:p+2+"",class:"mb-16"},{title:a(()=>[c("div",He,ie(n.title),1)]),default:a(()=>[l(q,{ref_for:!0,ref:"tableListRef",column:J,data:n.data,pagination:!1,"empty-temp":!1},{isHave:a(({scope:r})=>[l(Q,{modelValue:r.row.isHave,"onUpdate:modelValue":i=>r.row.isHave=i,disabled:r.row.required},null,8,["modelValue","onUpdate:modelValue","disabled"])]),files:a(({scope:r})=>[r.$index>=0?(m(),b(I,{key:0},[r.row.isHave?(m(),w(d,{key:0,prop:`preliminaryInspectionMaterials[${p}].data[${r.$index}].files`,rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],"label-width":"0",style:{"margin-bottom":"0"},class:"uploadFormItem"},{default:a(()=>[l(W,{"file-list":r.row.files,"onUpdate:fileList":i=>r.row.files=i,class:"w-full table-upload",action:v(D),"on-success":i=>v(Z)(i,r.row.files),"before-upload":i=>v(ee)(i,{types:v(j)}),accept:v(j).map(i=>`.${i}`).join(","),"on-preview":v(ae)},{default:a(()=>[l(y,{type:"primary",plain:"",size:"small"},{default:a(()=>e[12]||(e[12]=[f("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:2},1032,["file-list","onUpdate:fileList","action","on-success","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(m(),w(d,{key:1,prop:`preliminaryInspectionMaterials[${p}].data[${r.$index}].reason`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],"label-width":"0",style:{"margin-bottom":"0"}},{default:a(()=>[l(o,{modelValue:r.row.reason,"onUpdate:modelValue":i=>r.row.reason=i,placeholder:"\u8BF7\u586B\u5199\u7F3A\u5C11\u8BE5\u6750\u6599\u7684\u539F\u56E0",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]))],64)):h("",!0)]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})]),_:1},8,["model"]),c("div",Ie,[l(y,{onClick:e[3]||(e[3]=n=>v($).go(-1))},{default:a(()=>e[13]||(e[13]=[f(" \u8FD4\u56DE ")])),_:1}),l(y,{type:"primary",loading:g.value,onClick:e[4]||(e[4]=n=>B(M.value))},{default:a(()=>e[14]||(e[14]=[f(" \u63D0\u4EA4 ")])),_:1},8,["loading"])])]),l(me,{visible:_.visible,data:_.data,onSetContent:G,onClose:e[5]||(e[5]=n=>_.visible=!1)},null,8,["visible","data"])],64)}}});export{Me as default};