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