Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

index.317b6327.js 27KB

3 miesięcy temu
1
  1. import{n as ke,s as Te,o as Ne,p as qe,q as Se,j as Ye,a as Ee}from"./indicatorTemplate.b913f726.js";import{d as ye,r as b,L as Pe,N as se,c as h,e as p,I as Y,i as l,g as _,h as e,j as R,t as ue,f as y,F as M,J,D as Me,z as Re,A as ze,b as Oe,o as Je,k as f,u as Ae,x as Ke}from"./index.d340e473.js";import{t as Ge}from"./tagsManage.f98f8bc4.js";import{d as He}from"./projectCollectionEnter.b0eea7b8.js";import"./uploadAction.95992a5e.js";import{a as Qe}from"./performanceApprove.a7042b48.js";const We={class:"unitBox"},Xe={class:"left"},Ze=_("div",{class:"title"},"\u5217\u8868",-1),el={class:"content"},ll={class:"right"},al={class:"title"},tl={class:"content"},nl={class:"dialog-footer"},ol=ye({name:"indexTree"}),dl=Object.assign(ol,{props:{visible:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultData:Array,params:{type:Object,default:()=>{}},title:{type:String,default:"\u4E00\u7EA7\u6307\u6807"},defaultExpandedkeys:{type:Array,default:()=>[]},defaultProps:{type:Object,default:()=>({children:"projectIndexes",label:"name",value:"indexId",isLeaf:"isLeaf"})}},emits:["close","getSelectData"],setup(q,{emit:ae}){const I=q,F=ae,V=()=>{F("close"),o.value=""},Z=()=>{F("getSelectData",$.value),V()},A=b(""),o=b(""),C=b();Pe(()=>I.visible,w=>{w&&se(async()=>{I.defaultData&&I.defaultData.length?$.value=[...I.defaultData]:(A.value=void 0,$.value=[]),await le()})});const ce=async()=>{await le(A.value),se(()=>{C.value&&C.value.filter(A.value)})},N=b(!1),K=(w,j)=>(w,!0),$=b([]),pe=(w,{checkedKeys:j,checkedNodes:U})=>{I.showCheckbox?j.includes(w[I.defaultProps.value])?$.value.push(w):$.value=$.value.filter(E=>E[I.defaultProps.value]!==w[I.defaultProps.value]):$.value=[w]},me=(w,j)=>{$.value.splice(w,1),se(()=>{I.showCheckbox?C.value&&C.value.setChecked(j,!1):C.value&&C.value.setCurrentKey(null)})},ee=b(),le=async w=>{ee.value=[];const j=await ke({...I.params,name:w||void 0}),U=W(j.data.filter(E=>{var G;return(G=E.projectIndexes)==null?void 0:G.length}));ee.value=U,se(()=>{I.showCheckbox?$.value&&$.value.length?C.value&&C.value.setCheckedNodes($.value):C.value&&C.value.setCheckedKeys([]):$.value&&$.value.length?C.value&&C.value.setCurrentKey($.value[0].indexId):C.value&&C.value.setCurrentKey(null)})},W=w=>{const j=[];return w.forEach(U=>{var E;j.push({...U,name:U.name||U.indexName,disabled:!U.indexLevel,indexId:U.id,projectIndexes:((E=U.projectIndexes)==null?void 0:E.length)&&W(U.projectIndexes)||void 0})}),j};return(w,j)=>{const U=h("el-button"),E=h("el-input"),G=h("el-tree"),te=h("el-scrollbar"),ne=h("el-tag"),oe=h("el-dialog");return p(),Y(oe,{"model-value":I.visible,title:`\u9009\u62E9${q.title}`,width:"80%","destroy-on-close":"","before-close":V},{footer:l(()=>[_("span",nl,[e(U,{type:"primary",onClick:Z},{default:l(()=>[R("\u63D0\u4EA4")]),_:1}),e(U,{onClick:V},{default:l(()=>[R("\u5173\u95ED")]),_:1})])]),default:l(()=>[_("div",We,[_("div",Xe,[Ze,_("div",el,[e(E,{modelValue:A.value,"onUpdate:modelValue":j[0]||(j[0]=z=>A.value=z),class:"mb-16",placeholder:"\u6309\u540D\u79F0\u641C\u7D22"},{append:l(()=>[e(U,{icon:"Search",onClick:ce})]),_:1},8,["modelValue"]),e(te,null,{default:l(()=>[e(G,{ref_key:"treeRef",ref:C,data:ee.value,class:"filter-tree","node-key":q.defaultProps.value,"default-checked-keys":I.defaultData&&I.defaultData.length&&I.defaultData.map(z=>z[q.defaultProps.value])||[],"current-node-key":I.defaultData&&I.defaultData.length&&I.defaultData[0][q.defaultProps.value]||void 0,"expand-on-click-node":!0,props:q.defaultProps,"show-checkbox":q.showCheckbox,"check-on-click-node":!q.showCheckbox,"check-strictly":"","highlight-current":!q.showCheckbox,"filter-node-method":K,"default-expand-all":N.value,"default-expanded-keys":q.defaultExpandedkeys,onCheck:pe},null,8,["data","node-key","default-checked-keys","current-node-key","props","show-checkbox","check-on-click-node","highlight-current","default-expand-all","default-expanded-keys"])]),_:1})])]),_("div",ll,[_("div",al,"\u5DF2\u9009"+ue(q.title),1),_("div",tl,[(p(!0),y(M,null,J($.value,(z,O)=>(p(),Y(ne,{key:z.key,closable:"",onClose:P=>me(O,z.id,z.type)},{default:l(()=>[R(ue(z.name),1)]),_:2},1032,["onClose"]))),128))])])])]),_:1},8,["model-value","title"])}}});const il={class:"editTemplate footerPage"},rl={class:"module-box"},sl={class:"flex items-center flexRight h-full"},ul=["onClick"],cl={class:"flex items-center flexRight h-full"},pl=["onClick"],ml=["onClick"],fl={class:"flex items-center flexRight h-full"},hl=["onClick"],_l=["onClick"],vl={class:"flex items-center"};const xl=_("div",{class:"collapse-title"},"\u9644\u52A0\u6307\u6807",-1),Dl={class:"module-box"},gl={class:"flex items-center flexRight h-full"},kl=["onClick"],yl={class:"flex items-center flexRight h-full"},Il=["onClick"],bl=["onClick"],Vl={class:"flex items-center flexRight h-full"},Cl=["onClick"],$l=["onClick"],wl={class:"flex items-center"};const Ul={class:"text-center"},Bl={class:"footer"},Ll=ye({name:"editTemplate"}),Xl=Object.assign(Ll,{setup(q){const{proxy:ae}=Ke(),I=Me.dictStore.uploadUrl,F=Re(),V=b({projectYears:[{projectYear:""}]}),Z=b(),A={name:[{required:!0,message:"\u8BF7\u8F93\u5165"}],projectType:[{required:!0,message:"\u8BF7\u9009\u62E9"}],projectYear:[{required:!0,message:"\u8BF7\u9009\u62E9"}],amountRange:[{required:!0,message:"\u8BF7\u9009\u62E9"}],projectTagIds:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"change"}],constructType:[{required:!0,message:"\u8BF7\u9009\u62E9"}],templateType:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},o=b({templateDetails:[{indexId:void 0,name:"",type:1,children:[{name:"",type:2,children:[{isUploadSupportFile:!0,indexId:void 0,name:"",type:3,indexScore:void 0,indexDetail:"",gradeDetail:"",supportMaterial:""}]}]}],additionalIndexDetails:[]}),C=b(),ce={},N=b(0),K=b(0),$=()=>{N.value===0?Z.value.validate(n=>{n&&N.value++}):C.value.validate(async n=>{if(n){const t=le();if(K.value=0,t.templateDetails.forEach(s=>{s.children.forEach(k=>{k.children.forEach(x=>{K.value+=x.indexScore})})}),K.value=ee(K.value.toFixed(3),2),K.value!==100){ae.$message.warning("\u9664\u9644\u52A0\u6307\u6807\u5916\u7684\u6307\u6807\u603B\u5206\u5FC5\u987B\u7B49\u4E8E100\u5206");return}await Te(t),N.value++}})},pe=ze(),me=async()=>{const n=le();await Ne(n),ae.$message.success("\u6682\u5B58\u6210\u529F"),pe.go(-1)},ee=(n,t)=>{const s=n+"";return n=s.substr(0,s.indexOf(".")+(t+1)),n*1},le=()=>{var n,t,s;return{...V.value,id:F.query.id||void 0,auditId:((n=oe.value)==null?void 0:n.auditStatus)===3?F.query.auditId*1:void 0,projectYear:V.value.projectYears.map(k=>k.projectYear).join(","),projectYears:void 0,regionCode:F.query.regionCode,...o.value,templateDetails:((t=o.value.templateDetails)==null?void 0:t.length)&&W(o.value.templateDetails)||[],additionalIndexDetails:((s=o.value.additionalIndexDetails)==null?void 0:s.length)&&W(o.value.additionalIndexDetails)||[]}},W=n=>{const t=[];return n.forEach(s=>{var k,x;t.push({...s,indexListData:void 0,indexId:((k=s.indexId)==null?void 0:k.length)>1?s.indexId[s.indexId.length-1]:s.indexId,children:(x=s.children)!=null&&x.length?W(s.children):[]})}),t},w=()=>{N.value--},j=n=>{o.value[n].push({name:"",type:1,indexListData:P.value[1],children:[{name:"",type:2,indexListData:P.value[2],children:[{type:3,indexListData:n==="additionalIndexDetails"?P.value[4]:P.value[3],isUploadSupportFile:!0}]}]})},U=(n,t)=>{o.value[n].splice(t,1)},E=(n,t)=>{o.value[n][t].children.push({name:"",type:2,indexListData:P.value[2],children:[{type:3,indexListData:n==="additionalIndexDetails"?P.value[4]:P.value[3],isUploadSupportFile:!0}]})},G=(n,t,s)=>{o.value[n][t].children.splice(s,1)},te=(n,t,s)=>{o.value[n][t].children[s].children.push({name:"",type:3,indexListData:n==="additionalIndexDetails"?P.value[4]:P.value[3],isUploadSupportFile:!0})},ne=(n,t,s,k)=>{o.value[n][t].children[s].children.splice(k,1)},oe=b(),z=async()=>{var n,t,s,k,x,g,v,u,de,ie;if(F.query.auditStatus==="3"){const m=await Qe(F.query.auditId),T=((n=m.data)==null?void 0:n.templateDetail)||{};V.value={id:T.id,name:T.name,templateType:T.templateType,regionCode:T.regionCode,projectYears:(t=T.projectYear.toString())==null?void 0:t.split(",").map(fe=>({projectYear:fe}))},o.value={templateDetails:O(T.templateDetails),additionalIndexDetails:O(T==null?void 0:T.additionalIndexDetails)||[]},oe.value=m.data}else if(F.query.draftId){const m=await qe(F.query.draftId);V.value={draftId:m.data.draftId,name:m.data.name,templateType:m.data.templateType,regionCode:m.data.regionCode,projectYears:((k=(s=m.data.projectYear)==null?void 0:s.toString())==null?void 0:k.split(",").map(T=>({projectYear:T})))||[{projectYear:""}]},o.value={templateDetails:((x=m.data.templateDetails)==null?void 0:x.length)&&O(m.data.templateDetails)||[],additionalIndexDetails:((v=(g=m.data)==null?void 0:g.additionalIndexDetails)==null?void 0:v.length)&&O((u=m.data)==null?void 0:u.additionalIndexDetails)||[]}}else{const m=await Se(F.query.id);V.value={id:m.data.id,name:m.data.name,templateType:m.data.templateType,regionCode:m.data.regionCode,projectYears:(de=m.data.projectYear.toString())==null?void 0:de.split(",").map(T=>({projectYear:T}))},o.value={templateDetails:O(m.data.templateDetails),additionalIndexDetails:O((ie=m.data)==null?void 0:ie.additionalIndexDetails)||[]}}},O=n=>{const t=[];return n.forEach(s=>{var k;t.push({...s,isUploadSupportFile:s.type===3?s.isUploadSupportFile&&JSON.parse(s.isUploadSupportFile):void 0,children:(k=s.children)!=null&&k.length?O(s.children):[]})}),t},P=b({}),he=b(!1),Fl=async(n,t,s,k)=>{let x;t==="3"&&(x=k);const g=await ke({name:n,indexLevel:t,additional:x});s.indexListData=g.data.filter(v=>{var u;return(u=v.projectIndexes)==null?void 0:u.length}).map(v=>({...v,projectIndexes:v.projectIndexes.map(u=>({...u,name:u.indexName}))})),console.log(s)},jl=async n=>{he.value=!0;const t=await Ye({pageNumber:1,pageSize:1e4,indexName:n});P.value=t.data.records,he.value=!1},Tl=(n,t,s)=>{var k;if(n!=null&&n.length){const x=((k=t.indexListData.find(g=>g.id===n[0]))==null?void 0:k.projectIndexes.find(g=>g.id===n[1]))||{};t.name=(x==null?void 0:x.indexName)||t.name,s===3&&(t.indexScore=x.indexScore,t.indexDetail=x.indexDetail,t.gradeDetail=x.gradeDetail,t.supportMaterial=x.supportMaterial,t.additional=x.additional||!1)}},_e=b(!1),Ie=b([]),be=async n=>{_e.value=!0;const t=await Ge(F.query.regionCode,{pageNumber:1,pageSize:1e4,name:n});Ie.value=t.data.records,_e.value=!1},Ve=b([]),Ce=()=>{V.value.projectYears.push({})},$e=n=>{V.value.projectYears.splice(n,1)},B=Oe({visible:!1,params:void 0,data:void 0,title:""}),we=()=>{B.visible=!1},Ue=n=>{const t=JSON.parse(JSON.stringify(n[0]));B.data.name=t.name,B.data.indexId=t.indexId,t.indexLevel===3&&(B.data.indexScore=t.indexScore,B.data.indexDetail=t.indexDetail,B.data.gradeDetail=t.gradeDetail,B.data.supportMaterial=t.supportMaterial,B.data.additional=t.additional||!1)},X=(n,t,s)=>{B.visible=!0,B.params={indexLevel:n,additional:n==="3"?s:void 0},B.title=n==="1"?"\u4E00\u7EA7\u6307\u6807":n==="2"?"\u4E8C\u7EA7\u6307\u6807":"\u4E09\u7EA7\u6307\u6807",B.data=t,B.defalutData=t!=null&&t.indexId?[t]:[]},ve=b(),Be=async()=>{var t;const n=await Ee({pageNumber:1,pageSize:1e4});ve.value=((t=n==null?void 0:n.data)==null?void 0:t.records)||[]};return Je(async()=>{Ve.value=(await He()).data,Be(),await be(),Z.value.resetFields(),(F.query.auditId||F.query.draftId)&&z()}),(n,t)=>{const s=h("el-step"),k=h("el-steps"),x=h("el-card"),g=h("el-input"),v=h("el-form-item"),u=h("el-col"),de=h("el-radio"),ie=h("el-radio-group"),m=h("el-row"),T=h("el-date-picker"),fe=h("CirclePlus"),S=h("el-icon"),H=h("Delete"),Nl=h("el-option"),ql=h("el-select"),xe=h("el-form"),Sl=h("el-cascader"),re=h("Plus"),De=h("el-input-number"),ge=h("el-switch"),Q=h("el-button"),Yl=h("el-upload"),Le=h("el-collapse-item"),Fe=h("el-collapse"),je=h("el-result");return p(),y(M,null,[_("div",il,[e(x,{shadow:"never",class:"mb-16"},{default:l(()=>[e(k,{"align-center":"",active:N.value,class:"custom-steps"},{default:l(()=>[e(s,{title:"\u57FA\u672C\u4FE1\u606F"}),e(s,{title:"\u8BC4\u4EF7\u6307\u6807"}),e(s,{title:"\u5B8C\u6210"})]),_:1},8,["active"])]),_:1}),N.value===0?(p(),Y(x,{key:0,shadow:"never"},{default:l(()=>[e(xe,{ref_key:"formRef",ref:Z,"label-suffix":"\uFF1A",model:V.value,rules:A,"label-width":"130"},{default:l(()=>[e(m,null,{default:l(()=>[e(u,{span:24},{default:l(()=>[e(v,{label:"\u6A21\u677F\u540D\u79F0",prop:"name"},{default:l(()=>[e(g,{modelValue:V.value.name,"onUpdate:modelValue":t[0]||(t[0]=D=>V.value.name=D),maxlength:100,placeholder:"\u8BF7\u8F93\u5165\u8003\u6838\u6A21\u677F\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),f("",!0)]),_:1}),(p(!0),y(M,null,J(V.value.projectYears,(D,a)=>(p(),Y(m,{key:a},{default:l(()=>[e(u,{span:12,class:"flex items-center mb-16"},{default:l(()=>{var c;return[e(v,{label:a===0?"\u9884\u7B97\u5E74\u5EA6":"",prop:`projectYears[${a}].projectYear`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],class:"flex-1",style:{"margin-bottom":"0"}},{default:l(()=>[e(T,{modelValue:D.projectYear,"onUpdate:modelValue":d=>D.projectYear=d,type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label","prop"]),a===0?(p(),Y(S,{key:0,class:"flex-shrink-0 ml-4 cursor-pointer",style:{color:"#0967FD","font-size":"20px"},onClick:Ce},{default:l(()=>[e(fe)]),_:1})):f("",!0),((c=V.value.projectYears)==null?void 0:c.length)>1?(p(),Y(S,{key:1,class:"flex-shrink-0 ml-4 cursor-pointer",style:{color:"#ff3b30","font-size":"20px"},onClick:d=>$e(a)},{default:l(()=>[e(H)]),_:2},1032,["onClick"])):f("",!0)]}),_:2},1024)]),_:2},1024))),128)),e(m,null,{default:l(()=>[e(u,{span:24},{default:l(()=>[e(v,{label:"\u6307\u6807\u6A21\u677F\u7C7B\u578B",prop:"templateType"},{default:l(()=>[e(ie,{modelValue:V.value.templateType,"onUpdate:modelValue":t[2]||(t[2]=D=>V.value.templateType=D)},{default:l(()=>[(p(!0),y(M,null,J(ve.value,(D,a)=>(p(),Y(de,{key:a,label:D.id},{default:l(()=>[R(ue(D.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),f("",!0),f("",!0),f("",!0)]),_:1},8,["model"])]),_:1})):f("",!0),N.value===1?(p(),Y(x,{key:1,shadow:"never"},{default:l(()=>[e(xe,{ref_key:"formRef1",ref:C,"label-suffix":"\uFF1A",model:o.value,rules:ce},{default:l(()=>[(p(!0),y(M,null,J(o.value.templateDetails,(D,a)=>(p(),y("div",{key:a},[_("div",rl,[e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(v,{label:"\u4E00\u7EA7\u6307\u6807",prop:`templateDetails[${a}].indexId`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[f("",!0),f("",!0),e(g,{modelValue:o.value.templateDetails[a].name,"onUpdate:modelValue":c=>o.value.templateDetails[a].name=c,readonly:"",onClick:c=>X("1",o.value.templateDetails[a])},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:2},1032,["prop"])]),_:2},1024),o.value.templateDetails.length>1?(p(),Y(u,{key:0,span:12},{default:l(()=>[_("div",sl,[_("p",{class:"add-icon del",onClick:c=>U("templateDetails",a)},[e(S,{style:{color:"rgb(255,59,48)","font-size":"14px"}},{default:l(()=>[e(H)]),_:1})],8,ul)])]),_:2},1024)):f("",!0)]),_:2},1024),(p(!0),y(M,null,J(D.children,(c,d)=>(p(),y("div",{key:d,class:"ml-8 pl-16 sub-item"},[e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(v,{label:"\u4E8C\u7EA7\u6307\u6807",prop:`templateDetails[${a}].children[${d}].indexId`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[f("",!0),f("",!0),e(g,{modelValue:o.value.templateDetails[a].children[d].name,"onUpdate:modelValue":i=>o.value.templateDetails[a].children[d].name=i,readonly:"",onClick:i=>X("2",o.value.templateDetails[a].children[d])},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[_("div",cl,[_("p",{class:"add-icon mr-4",onClick:L=>E("templateDetails",a)},[e(S,{class:"addIcon"},{default:l(()=>[e(re)]),_:1})],8,pl),D.children.length>1?(p(),y("p",{key:0,class:"add-icon del",onClick:L=>G("templateDetails",a,d)},[e(S,{style:{color:"rgb(255,59,48)","font-size":"14px"}},{default:l(()=>[e(H)]),_:1})],8,ml)):f("",!0)])]),_:2},1024)]),_:2},1024),(p(!0),y(M,null,J(c.children,(L,i)=>(p(),y("div",{key:i,class:"pl-24"},[e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(v,{label:"\u4E09\u7EA7\u6307\u6807",prop:`templateDetails[${a}].children[${d}].children[${i}].indexId`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[f("",!0),f("",!0),e(g,{modelValue:o.value.templateDetails[a].children[d].children[i].name,"onUpdate:modelValue":r=>o.value.templateDetails[a].children[d].children[i].name=r,readonly:"",onClick:r=>X("3",o.value.templateDetails[a].children[d].children[i],!1)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:8},{default:l(()=>[e(v,{label:"\u6307\u6807\u5206\u503C",prop:`templateDetails[${a}].children[${d}].children[${i}].indexScore`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(De,{modelValue:o.value.templateDetails[a].children[d].children[i].indexScore,"onUpdate:modelValue":r=>o.value.templateDetails[a].children[d].children[i].indexScore=r,placeholder:"\u8BF7\u8F93\u5165",min:o.value.templateDetails[a].children[d].children[i].additional?void 0:0,max:100,precision:2},null,8,["modelValue","onUpdate:modelValue","min"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:4},{default:l(()=>[_("div",fl,[_("p",{class:"add-icon mr-4",onClick:r=>te("templateDetails",a,d)},[e(S,{class:"addIcon"},{default:l(()=>[e(re)]),_:1})],8,hl),c.children.length>1?(p(),y("p",{key:0,class:"add-icon del",onClick:r=>ne("templateDetails",a,d,i)},[e(S,{style:{color:"rgb(255,59,48)","font-size":"14px"}},{default:l(()=>[e(H)]),_:1})],8,_l)):f("",!0)])]),_:2},1024)]),_:2},1024),e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12,class:"mb-16"},{default:l(()=>[e(v,{label:"\u6307\u6807\u7EC6\u5219",prop:`templateDetails[${a}].children[${d}].children[${i}].indexDetail`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(g,{modelValue:o.value.templateDetails[a].children[d].children[i].indexDetail,"onUpdate:modelValue":r=>o.value.templateDetails[a].children[d].children[i].indexDetail=r,placeholder:"\u8BF7\u586B\u5199",maxlength:1e3,"show-word-limit":"",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[e(v,{label:"\u8BC4\u5206\u7EC6\u5219",prop:`templateDetails[${a}].children[${d}].children[${i}].gradeDetail`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(g,{modelValue:o.value.templateDetails[a].children[d].children[i].gradeDetail,"onUpdate:modelValue":r=>o.value.templateDetails[a].children[d].children[i].gradeDetail=r,placeholder:"\u8BF7\u586B\u5199",maxlength:1e3,"show-word-limit":"",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[_("div",vl,[e(v,{label:"\u662F\u5426\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599"},{default:l(()=>[e(ge,{modelValue:o.value.templateDetails[a].children[d].children[i].isUploadSupportFile,"onUpdate:modelValue":r=>o.value.templateDetails[a].children[d].children[i].isUploadSupportFile=r},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024),(o.value.templateDetails[a].children[d].children[i].isUploadSupportFile,f("",!0)),e(u,{span:12},{default:l(()=>[e(v,{label:"\u4F50\u8BC1\u6750\u6599",prop:`templateDetails[${a}].children[${d}].children[${i}].supportMaterial`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(g,{modelValue:o.value.templateDetails[a].children[d].children[i].supportMaterial,"onUpdate:modelValue":r=>o.value.templateDetails[a].children[d].children[i].supportMaterial=r,placeholder:"\u8BF7\u586B\u5199",maxlength:1e3,"show-word-limit":"",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128)),e(Q,{type:"primary",plain:"",icon:"Plus",size:"small",class:"w-full mb-16",onClick:t[6]||(t[6]=D=>j("templateDetails"))},{default:l(()=>[R("\u6DFB\u52A0\u4E00\u7EA7\u6307\u6807")]),_:1}),e(Fe,null,{default:l(()=>[e(Le,null,{title:l(()=>[xl]),default:l(()=>[(p(!0),y(M,null,J(o.value.additionalIndexDetails,(D,a)=>(p(),y("div",{key:a},[_("div",Dl,[e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(v,{label:"\u4E00\u7EA7\u6307\u6807",prop:`additionalIndexDetails[${a}].indexId`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[f("",!0),f("",!0),e(g,{modelValue:o.value.additionalIndexDetails[a].name,"onUpdate:modelValue":c=>o.value.additionalIndexDetails[a].name=c,readonly:"",onClick:c=>X("1",o.value.additionalIndexDetails[a])},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[_("div",gl,[_("p",{class:"add-icon del",onClick:c=>U("additionalIndexDetails",a)},[e(S,{style:{color:"rgb(255,59,48)","font-size":"14px"}},{default:l(()=>[e(H)]),_:1})],8,kl)])]),_:2},1024)]),_:2},1024),(p(!0),y(M,null,J(D.children,(c,d)=>(p(),y("div",{key:d,class:"ml-8 pl-16 sub-item"},[e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(v,{label:"\u4E8C\u7EA7\u6307\u6807",prop:`additionalIndexDetails[${a}].children[${d}].indexId`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[f("",!0),f("",!0),e(g,{modelValue:o.value.additionalIndexDetails[a].children[d].name,"onUpdate:modelValue":L=>o.value.additionalIndexDetails[a].children[d].name=L,readonly:"",onClick:L=>X("2",o.value.additionalIndexDetails[a].children[d])},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[_("div",yl,[_("p",{class:"add-icon mr-4",onClick:L=>E("additionalIndexDetails",a)},[e(S,{class:"addIcon"},{default:l(()=>[e(re)]),_:1})],8,Il),D.children.length>1?(p(),y("p",{key:0,class:"add-icon del",onClick:L=>G("additionalIndexDetails",a,d)},[e(S,{style:{color:"rgb(255,59,48)","font-size":"14px"}},{default:l(()=>[e(H)]),_:1})],8,bl)):f("",!0)])]),_:2},1024)]),_:2},1024),(p(!0),y(M,null,J(c.children,(L,i)=>(p(),y("div",{key:i,class:"pl-24"},[e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12},{default:l(()=>[e(v,{label:"\u4E09\u7EA7\u6307\u6807",prop:`additionalIndexDetails[${a}].children[${d}].children[${i}].indexId`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[f("",!0),f("",!0),e(g,{modelValue:o.value.additionalIndexDetails[a].children[d].children[i].name,"onUpdate:modelValue":r=>o.value.additionalIndexDetails[a].children[d].children[i].name=r,readonly:"",onClick:r=>X("3",o.value.additionalIndexDetails[a].children[d].children[i],!0)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:8},{default:l(()=>[e(v,{label:"\u6307\u6807\u5206\u503C",prop:`additionalIndexDetails[${a}].children[${d}].children[${i}].indexScore`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(De,{modelValue:o.value.additionalIndexDetails[a].children[d].children[i].indexScore,"onUpdate:modelValue":r=>o.value.additionalIndexDetails[a].children[d].children[i].indexScore=r,placeholder:"\u8BF7\u8F93\u5165",min:o.value.additionalIndexDetails[a].children[d].children[i].additional?void 0:-100,max:100,precision:2},null,8,["modelValue","onUpdate:modelValue","min"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:4},{default:l(()=>[_("div",Vl,[_("p",{class:"add-icon mr-4",onClick:r=>te("additionalIndexDetails",a,d)},[e(S,{class:"addIcon"},{default:l(()=>[e(re)]),_:1})],8,Cl),c.children.length>1?(p(),y("p",{key:0,class:"add-icon del",onClick:r=>ne("additionalIndexDetails",a,d,i)},[e(S,{style:{color:"rgb(255,59,48)","font-size":"14px"}},{default:l(()=>[e(H)]),_:1})],8,$l)):f("",!0)])]),_:2},1024)]),_:2},1024),e(m,{class:"mb-16",gutter:16},{default:l(()=>[e(u,{span:12,class:"mb-16"},{default:l(()=>[e(v,{label:"\u6307\u6807\u7EC6\u5219",prop:`additionalIndexDetails[${a}].children[${d}].children[${i}].indexDetail`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(g,{modelValue:o.value.additionalIndexDetails[a].children[d].children[i].indexDetail,"onUpdate:modelValue":r=>o.value.additionalIndexDetails[a].children[d].children[i].indexDetail=r,placeholder:"\u8BF7\u586B\u5199",maxlength:1e3,"show-word-limit":"",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[e(v,{label:"\u8BC4\u5206\u7EC6\u5219",prop:`additionalIndexDetails[${a}].children[${d}].children[${i}].gradeDetail`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(g,{modelValue:o.value.additionalIndexDetails[a].children[d].children[i].gradeDetail,"onUpdate:modelValue":r=>o.value.additionalIndexDetails[a].children[d].children[i].gradeDetail=r,placeholder:"\u8BF7\u586B\u5199",maxlength:1e3,"show-word-limit":"",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(u,{span:12},{default:l(()=>[_("div",wl,[e(v,{label:"\u662F\u5426\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599"},{default:l(()=>[e(ge,{modelValue:o.value.additionalIndexDetails[a].children[d].children[i].isUploadSupportFile,"onUpdate:modelValue":r=>o.value.additionalIndexDetails[a].children[d].children[i].isUploadSupportFile=r},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024),f("",!0),e(u,{span:12},{default:l(()=>[e(v,{label:"\u4F50\u8BC1\u6750\u6599",prop:`additionalIndexDetails[${a}].children[${d}].children[${i}].supportMaterial`,rules:{required:!0,message:"\u8BF7\u8F93\u5165"}},{default:l(()=>[e(g,{modelValue:o.value.additionalIndexDetails[a].children[d].children[i].supportMaterial,"onUpdate:modelValue":r=>o.value.additionalIndexDetails[a].children[d].children[i].supportMaterial=r,placeholder:"\u8BF7\u586B\u5199",maxlength:1e3,"show-word-limit":"",type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128)),e(Q,{type:"primary",plain:"",icon:"Plus",size:"small",class:"w-full mb-16",onClick:t[7]||(t[7]=D=>j("additionalIndexDetails"))},{default:l(()=>[R("\u6DFB\u52A0\u4E00\u7EA7\u6307\u6807")]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})):f("",!0),N.value===2?(p(),Y(x,{key:2},{default:l(()=>[e(je,{icon:"success",title:"\u65B0\u5EFA\u6210\u529F"}),_("p",Ul,[e(Q,{onClick:t[8]||(t[8]=D=>n.$router.go(-1))},{default:l(()=>[R(" \u8FD4\u56DE ")]),_:1})])]),_:1})):f("",!0),_("div",Bl,[e(Q,{onClick:t[9]||(t[9]=D=>n.$router.go(-1))},{default:l(()=>[R(" \u8FD4\u56DE ")]),_:1}),!n.$route.query.id&&!n.$route.query.draftId||Ae(F).query.draftId?(p(),Y(Q,{key:0,type:"primary",plain:"",onClick:me},{default:l(()=>[R(" \u6682\u5B58 ")]),_:1})):f("",!0),N.value<2?(p(),y(M,{key:1},[N.value===1?(p(),Y(Q,{key:0,type:"primary",plain:"",onClick:w},{default:l(()=>[R("\u4E0A\u4E00\u6B65 ")]),_:1})):f("",!0),e(Q,{type:"primary",onClick:$},{default:l(()=>[R(ue(N.value===1?"\u63D0\u4EA4":"\u4E0B\u4E00\u6B65"),1)]),_:1})],64)):f("",!0)])]),e(dl,{params:B.params,visible:B.visible,"show-checkbox":!1,"default-data":B.defalutData,title:B.title,onClose:we,onGetSelectData:Ue},null,8,["params","visible","default-data","title"])],64)}}});export{Xl as default};