選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
13KB

  1. import{h as Z,f as ee,c as j,b as ae}from"./uploadAction.73f0a357.js";import{d as te,D as le,z as se,A as ne,r as H,b as oe,o as re,c as u,e as p,f as b,g as m,h as t,i as e,F as I,J as q,I as w,k as D,j as f,t as ie,u as v,x as ue}from"./index.0660698f.js";import{p as ce,s as de}from"./initialInspectionRecord.92904236.js";import pe from"./actualPerformanceIndicatorsDialog.ba1b6682.js";import{p as me}from"./projectStore.df1fbf49.js";const fe={class:"uploadInitpreliminaryInspectionMaterials footerPage"},ve=m("div",{class:"collapse-title"},"\u9A8C\u6536\u4EBA\u5458\u4FE1\u606F",-1),_e={class:"p-24"},ye=["onClick"],be=m("div",{class:"collapse-title"},"\u5B9E\u65BD\u4FE1\u606F",-1),ge=["onClick"],He=["onClick"],Ie={class:"text-right w-full mt-8"},we={class:"collapse-title"},Pe={class:"footer"},he=te({name:"uploadInitpreliminaryInspectionMaterials"}),Ne=Object.assign(he,{setup(ke){const S=le.dictStore.uploadUrl,C=se(),{proxy:L}=ue(),V=ne(),$=["1","2","3","4","5","6","7"],x=H(),l=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:""}]}]}),J=()=>{l.value.acceptancePersons.push({})},O=a=>{l.value.acceptancePersons.splice(a,1)},F=[{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 s,o;const a=await ce(C.query.id);a.data&&(l.value={...a.data,acceptancePersons:a.data.acceptancePersons?a.data.acceptancePersons:[{personName:"",unit:""}],actualPerformanceIndicators:a.data.actualPerformanceIndicators&&((s=JSON.parse(a.data.actualPerformanceIndicators))==null?void 0:s.length)?JSON.parse(a.data.actualPerformanceIndicators):l.value.actualPerformanceIndicators,preliminaryInspectionMaterials:a.data.preliminaryInspectionMaterials&&((o=JSON.parse(a.data.preliminaryInspectionMaterials))==null?void 0:o.length)?JSON.parse(a.data.preliminaryInspectionMaterials):l.value.preliminaryInspectionMaterials})},g=H(!1),A=async a=>{!a||a.validate(async(s,o)=>{if(s){g.value=!0;const c={...l.value,actualPerformanceIndicators:l.value.actualPerformanceIndicators&&JSON.stringify(l.value.actualPerformanceIndicators),preliminaryInspectionMaterials:JSON.stringify(l.value.preliminaryInspectionMaterials)};try{await de(c),g.value=!1,L.$message.success("\u63D0\u4EA4\u6210\u529F"),V.go(-1)}catch{g.value=!1}}else console.log(o)})},B=[{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(),M=(a,s)=>{_.data=a,_.visible=!0,P.value=s},z=a=>{P.value===void 0?l.value.actualPerformanceIndicators=[...l.value.actualPerformanceIndicators,...a]:l.value.actualPerformanceIndicators[P.value]=a[0]},G=a=>{l.value.actualPerformanceIndicators.splice(a,1)},T=async()=>{var s;const a=await me(C.query.id);(s=a.data.projectApplications)!=null&&s.length&&(a.data.projectApplications.map(o=>o.secrecyGrade).includes(3)||a.data.projectApplications.map(o=>o.secrecyGrade).includes(4)||a.data.projectApplications.map(o=>o.secrecyGrade).includes(5))&&(l.value.preliminaryInspectionMaterials=l.value.preliminaryInspectionMaterials.map(o=>({...o,data:o.data.map(c=>({...c,required:c.name==="\u5546\u4E1A\u5BC6\u7801\u5E94\u7528\u8BC4\u4F30\u62A5\u544A"?!0:c.required}))})))};return re(()=>{R(),T()}),(a,s)=>{const o=u("el-input"),c=u("el-form-item"),h=u("el-col"),E=u("el-row"),y=u("el-button"),k=u("el-collapse-item"),N=u("el-radio"),K=u("el-radio-group"),U=u("table-list"),Q=u("el-switch"),W=u("el-upload"),X=u("el-collapse"),Y=u("el-form");return p(),b(I,null,[m("div",fe,[t(Y,{ref_key:"formRef",ref:x,model:l.value,"label-position":"right","label-width":"90px","label-suffix":":","scroll-to-error":"",class:"table-form"},{default:e(()=>[t(X,{modelValue:$,"onUpdate:modelValue":s[2]||(s[2]=n=>$=n)},{default:e(()=>[t(k,{name:"1",class:"mb-16"},{title:e(()=>[ve]),default:e(()=>[m("div",_e,[(p(!0),b(I,null,q(l.value.acceptancePersons,(n,d)=>(p(),w(E,{key:d,gutter:40},{default:e(()=>{var r;return[t(h,{span:12},{default:e(()=>[t(c,{label:"\u9A8C\u6536\u4EBA\u5458",prop:`acceptancePersons[${d}].personName`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:e(()=>[t(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),t(h,{span:12},{default:e(()=>[t(c,{label:"\u6240\u5728\u5355\u4F4D",prop:`acceptancePersons[${d}].unit`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:e(()=>[t(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=l.value.acceptancePersons)==null?void 0:r.length)>1?(p(),b("a",{key:0,class:"text-danger absolute top-4",style:{right:"-12px"},onClick:i=>O(d)},"\u5220\u9664",8,ye)):D("",!0)]}),_:2},1024))),128)),t(y,{type:"primary",plain:"",icon:"Plus",size:"small",onClick:J},{default:e(()=>[f("\u589E\u52A0")]),_:1})])]),_:1}),t(k,{name:"7",class:"mb-16"},{title:e(()=>[be]),default:e(()=>[t(c,{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(()=>[t(K,{modelValue:l.value.isCompletedLogCollection,"onUpdate:modelValue":s[0]||(s[0]=n=>l.value.isCompletedLogCollection=n)},{default:e(()=>[t(N,{label:!0},{default:e(()=>[f("\u662F")]),_:1}),t(N,{label:!1},{default:e(()=>[f("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807","label-width":"170",prop:"actualPerformanceIndicators",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:e(()=>[t(U,{pagination:!1,style:{width:"100%"},column:B,data:l.value.actualPerformanceIndicators,"empty-temp":!1},{action:e(({scope:n})=>[m("a",{onClick:d=>M(n.row,n.$index)},"\u7F16\u8F91",8,ge),m("a",{class:"text-danger",onClick:d=>G(n.$index)},"\u5220\u9664",8,He)]),_:1},8,["data"]),m("p",Ie,[t(y,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:s[1]||(s[1]=()=>M())},{default:e(()=>[f("\u6DFB\u52A0")]),_:1})])]),_:1})]),_:1}),(p(!0),b(I,null,q(l.value.preliminaryInspectionMaterials,(n,d)=>(p(),w(k,{key:d,name:d+2+"",class:"mb-16"},{title:e(()=>[m("div",we,ie(n.title),1)]),default:e(()=>[t(U,{ref_for:!0,ref:"tableListRef",column:F,data:n.data,pagination:!1,"empty-temp":!1},{isHave:e(({scope:r})=>[t(Q,{modelValue:r.row.isHave,"onUpdate:modelValue":i=>r.row.isHave=i,disabled:r.row.required},null,8,["modelValue","onUpdate:modelValue","disabled"])]),files:e(({scope:r})=>[r.$index>=0?(p(),b(I,{key:0},[r.row.isHave?(p(),w(c,{key:0,prop:`preliminaryInspectionMaterials[${d}].data[${r.$index}].files`,rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],"label-width":"0",style:{"margin-bottom":"0"},class:"uploadFormItem"},{default:e(()=>[t(W,{"file-list":r.row.files,"onUpdate:fileList":i=>r.row.files=i,class:"w-full table-upload",action:v(S),"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:e(()=>[t(y,{type:"primary",plain:"",size:"small"},{default:e(()=>[f("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:2},1032,["file-list","onUpdate:fileList","action","on-success","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(p(),w(c,{key:1,prop:`preliminaryInspectionMaterials[${d}].data[${r.$index}].reason`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],"label-width":"0",style:{"margin-bottom":"0"}},{default:e(()=>[t(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)):D("",!0)]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})]),_:1},8,["model"]),m("div",Pe,[t(y,{onClick:s[3]||(s[3]=n=>v(V).go(-1))},{default:e(()=>[f(" \u8FD4\u56DE ")]),_:1}),t(y,{type:"primary",loading:g.value,onClick:s[4]||(s[4]=n=>A(x.value))},{default:e(()=>[f(" \u63D0\u4EA4 ")]),_:1},8,["loading"])])]),t(pe,{visible:_.visible,data:_.data,onSetContent:z,onClose:s[5]||(s[5]=n=>_.visible=!1)},null,8,["visible","data"])],64)}}});export{Ne as default};