Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
27KB

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