You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

basicInfo-b37196c1.js 28KB

1 maand geleden
1
  1. import{x as Qe,E as Ce,G as Xe,r as P,a as q,o as Ze,B as le,b as c,c as d,d as V,f as t,h as r,i as m,L as f,e as k,j as N,F as L,H as z,t as W,u as S,N as ce,k as el,C as ll,Y as al}from"./index-dd5fae99.js";import{h as tl,i as rl,f as ol,b as Pe,c as sl,r as il}from"./uploadAction-3962500e.js";import{c as ul}from"./index-b6aa4cff.js";import{_ as nl}from"./index-4950cfb0.js";import dl from"./userDialog-d5cb489c.js";import pl from"./relatedProjectDialog-55f5f96f.js";import ml from"./projectContentDialog-4e6a46f0.js";import{a as bl}from"./indicatorTemplate-ca1642c9.js";import{u as je}from"./validate-15f0b27c.js";import"./unitManage-104cfe86.js";import"./renewalProjectCapitalDeclare-e1231fa5.js";const fl={class:"text-right w-full mb-8"},gl=["onClick"],vl=["onClick"],yl={class:"text-right w-full mb-8"},Cl=["onClick"],cl=["onClick"],Pl={key:1,class:"text-info cursor-not-allowed"},jl=["onClick"],Vl=["onClick"],kl={class:"text-right w-full mt-8"},Ol={class:"flex"},hl={class:"dialog-footer"},wl=el({name:"basicInfo"}),$l=Object.assign(wl,{props:{detailData:{type:Object,default:()=>({})},dictionaryList:{type:Array,default:()=>[]},declareAmount:{type:Number}},emits:["changeIsFirst","getBasicInfoData","reuseItem","changeProjectTypeResetForm"],setup(y,{expose:Ve,emit:ke}){const K=y,Oe=Qe(),he=Ce.dictStore.uploadUrl,ae=Xe(Ce.userStore).userInfo||{},a=P({baseProjIsConfidentiality:"01",buildOrgName:ae.value.empPosUnitName,beseExpectedResults:[],projectType:"01"}),te=P(),re=(l,e,i)=>{if(e==="")return i(new Error("请输入正确的手机号"));if(/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(e))i();else return i(new Error("请输入正确的手机号"))},oe=(l,e,i)=>{e||i(),a.value.responsibleMan===a.value.contactName&&a.value.responsibleManMobile===a.value.contactPhone?i("项目负责人与项目联系人不能相同"):i()},se=(l,e,i)=>{e||i(),/^\d+(\.\d{1,6})?$/.test(e)?e*1>=1e8?i("请输入正确格式,小于100000000"):i():i("请输入正确格式,最多保留六位小数")},we={baseProjIsConfidentiality:[{required:!0,message:"请选择是否涉密",trigger:"change"}],projectName:[{required:!0,message:"请输入项目名称",trigger:"blur"}],baseConstructionType:[{required:!0,message:"请选择内容类别",trigger:"change"}],projectType:[{required:!0,message:"请选择项目类型",trigger:"change"}],isFirst:[{required:!0,message:"请选择是否首次新建",trigger:"change"}],isTemporaryAugment:[{required:!0,message:"请选择是否为临时增补",trigger:"change"}],responsibleMan:[{required:!0,message:"请选择项目负责人",trigger:"blur"},{validator:oe}],responsibleManMobile:[{required:!0,message:"请输入项目负责人手机号",trigger:"blur"},{validator:re,trigger:"blur"}],contactName:[{required:!0,message:"请选择项目联系人",trigger:"blur"},{validator:oe}],contactPhone:[{required:!0,message:"请输入项目联系人手机号",trigger:"blur"},{validator:re,trigger:"blur"}],buildOrgName:[{required:!0,message:"请输入建设单位",trigger:"blur"}],orgCreditCode:je(),superOrg:[{required:!0,message:"请选择主管单位:",trigger:"change"}],superOrgCode:[{required:!0,message:"请选择主管单位:",trigger:"change"}],superOrgCreditCode:je(),baseProvManDeprtType:[{required:!0,message:"请选择上级主管单位类型:",trigger:"change"}],higherSuperOrg:[{required:!0,message:"请选择上级主管单位",trigger:"change"}],higherSuperOrgCode:[{required:!0,message:"请选择上级主管单位",trigger:"change"}],buildDuration:[{required:!0,message:"请选择建设起止年限",trigger:"change"}],buildLevel:[{required:!0,message:"请选择建设层级",trigger:"change"}],lowestLevel:[{required:!0,message:"请选择贯通层级",trigger:"change"}],baseProjBasis:[{required:!0,message:"请选择立项依据",trigger:"change"}],baseBasisEstablish:[{required:!0,message:"请输入立项依据说明"}],developCode:[{required:!0,message:"请填写发改编码",trigger:"blur"}],financialCode:[{required:!0,message:"请填写财政编码",trigger:"blur"}],isCloud:[{required:!0,message:"请选择是否上云",trigger:"change"}],cloudType:[{required:!0,message:"请选择云类型",trigger:"change"}],projectOverview:[{required:!0,message:"请输入项目概述",trigger:"blur"}],baseHistorProjs:[{required:!0,message:"请至少关联一个历年项目"}],beseExpectedResults:[{required:!0,message:"请至少添加一个项目内容与预期成效"}],projectYear:[{required:!0,message:"请选择预算年度"}],declareAmount:[{required:!0,message:"请输入申报金额",trigger:"blur"},{validator:se,trigger:"blur"}],annualPlanAmount:[{required:!0,message:"请输入年度支付金额",trigger:"blur"},{validator:se,trigger:"blur"}]},D=P([{id:1,title:"国家部委及省市下达任务、相关文件明确建设时间",fileName:"",fileList:[]},{id:2,title:"本级及上级领导批示",fileName:"",fileList:[]},{id:3,title:"重大任务",fileName:"",fileList:[]},{id:4,title:"重大共性问题",fileName:"",fileList:[]},{id:5,title:"重大决策",fileName:"",fileList:[]},{id:6,title:"普惠性惠企利民",fileName:"",fileList:[]},{id:7,title:"其他",fileName:"",fileList:[]}]),Ne=[{type:"selection"},{label:"依据项",key:"title",prop:"title"},{label:"依据文件名",slot:"fileName"},{label:"文件(支持pdf、word)",slot:"action",width:300}],R=P(),Te=l=>{a.value.baseProjBasis=l.map(e=>e)},Le=l=>{te.value.validate(e=>{l(e)})},Se=l=>{var i,u,n,v,O;a.value={baseProjIsConfidentiality:"01",projectName:l.projectName,projectType:l.projectType?l.projectType:"01",isFirst:l.isFirst,baseConstructionType:((i=l==null?void 0:l.baseConstructionType)==null?void 0:i.split(";"))||void 0,isTemporaryAugment:l.isTemporaryAugment,responsibleMan:l.responsibleMan,responsibleManMobile:l.responsibleManMobile,contactName:l.contactName,contactPhone:l.contactPhone,buildOrgName:l.buildOrgName,orgCreditCode:l.orgCreditCode,superOrgCode:l.superOrgCode,superOrg:l.superOrg,superOrgCreditCode:l.superOrgCreditCode||"",baseProvManDeprtType:(l==null?void 0:l.baseProvManDeprtType)+""||"",higherSuperOrgCode:l.higherSuperOrgCode,higherSuperOrg:l.higherSuperOrg,buildDuration:l.beginTime&&l.endTime?[l.beginTime,l.endTime]:[],buildLevel:l.buildLevel,lowestLevel:l.lowestLevel,buildBasis:void 0,baseProjBasis:()=>{var C,g;try{return((g=(C=l==null?void 0:l.baseProjBasis)==null?void 0:C.split(";"))==null?void 0:g.map((T,x)=>{var G,$,I;const h=`[${(G=l.baseProjBasisFile)==null?void 0:G.replace(/}];/g,"}],")}]`;return{title:(I=($=D.value)==null?void 0:$.find(J=>J.value===T))==null?void 0:I.title,fileList:l!=null&&l.baseProjBasisFile?il(JSON.parse(h)[x]):[],value:T}}))||[]}catch{return[]}},baseBasisEstablish:l.baseBasisEstablish||"",developCode:l.developCode,financialCode:l.financialCode,projectOverview:l.projectOverview,projectIntroduction:l.projectIntroduction,baseHistorProjs:((u=l==null?void 0:l.baseHistorProjId)==null?void 0:u.split(";").map((C,g)=>({baseProjId:C,baseProjName:l==null?void 0:l.baseHistorProjName.split(";")[g],baseProjSetYear:l==null?void 0:l.baseHistorProjYear.split(";")[g]})))||[],beseExpectedResults:(l==null?void 0:l.beseExpectedResults)&&JSON.parse(l==null?void 0:l.beseExpectedResults)||[],projectYear:l.projectYear?l.projectYear+"":null,declareAmount:l.declareAmount,annualPlanAmount:l.annualPlanAmount};let e=[];try{e=a.value.baseProjBasis?JSON.parse(JSON.stringify(a.value.baseProjBasis)):[]}catch{e=[]}if((v=(n=l==null?void 0:l.baseProjBasis)==null?void 0:n.split(";"))!=null&&v.length){const C=(O=l==null?void 0:l.baseProjBasis)==null?void 0:O.split(";");D.value&&D.value.forEach(g=>{var T,x;C.includes(g.value)&&(g.fileList=(T=e.find(h=>h.value===g.value))==null?void 0:T.fileList,g.fileName=(x=e.find(h=>h.value===g.value))==null?void 0:x.fileName,R.value.toggleRowSelect(g,!0))})}},B=ke,De=l=>{B("changeIsFirst",l)},b=q({unitVisible:!1,data:void 0,title:void 0,type:void 0,params:void 0}),xe=()=>{b.unitVisible=!0,b.title="主管单位",b.type="UNIT",b.showCheckbox=!0,b.defaultProps={children:"children",label:"title",value:"key",isLeaf:"isLeaf"},b.params={onlyUnit:!0},b.data=a.value.superOrgCode?[{key:a.value.superOrgCode,title:a.value.superOrg}]:[]},Be=()=>{b.unitVisible=!1},Ue=l=>{b.title==="主管单位"?(a.value.superOrgCode=(l==null?void 0:l[0].key)||void 0,a.value.superOrg=(l==null?void 0:l[0].title)||void 0,ue("superOrgCreditCode",l==null?void 0:l[0].key)):(a.value.higherSuperOrgCode=(l==null?void 0:l[0].key)||void 0,a.value.higherSuperOrg=(l==null?void 0:l[0].title)||void 0)},_e=()=>{b.title="上级条线主管单位",b.type="UNIT",b.defaultProps={children:"children",label:"title",value:"key",isLeaf:"isLeaf"},b.unitVisible=!0,b.data=a.value.higherSuperOrgCode?[{key:a.value.higherSuperOrgCode,title:a.value.higherSuperOrg}]:[]},U=P(!1),_=q({businessStripName:void 0}),Me=async()=>{F(),U.value=!0,await ll(),R.value.setRadio(a.value.higherSuperOrgCode||"")},Ye=[{type:"radio",key:"businessStripCode",width:"60"},{label:"单位名称",key:"businessStripName",prop:"businessStripName",minWidth:"150",showOverflowTooltip:!0},{label:"单位编码",key:"businessStripCode",prop:"businessStripCode",minWidth:"150",showOverflowTooltip:!0}],ie=P(),F=async()=>{const l=await ul({..._});ie.value=l.data},$e=()=>{_.businessStripName=void 0,F()},Q=P(),Ie=l=>{Q.value=l},Ee=()=>{U.value=!1,a.value.higherSuperOrgCode=Q.value.businessStripCode,a.value.higherSuperOrg=Q.value.businessStripName},X=P({}),ue=async(l,e)=>{const i=await al(e||ae.value.empPosUnitCode);i.data&&i.data.unifiedSocialCreditCode&&(X.value[l]=!!i.data.unifiedSocialCreditCode,a.value[l]=i.data.unifiedSocialCreditCode||a.value[l])},A=q({visible:!1,params:{}}),ne=P(),de=P(),H=(l,e)=>{A.visible=!0,ne.value=l,de.value=e},qe=l=>{a.value[ne.value]=l.name,a.value[de.value]=l.phoneNo},Re=(l,e)=>{a.value.higherSuperOrgCode="",a.value.higherSuperOrg=""},pe=[{label:"序号",type:"index",width:60},{label:"项目名称",prop:"baseProjName",key:"baseProjName"},{label:"预算年度",prop:"baseProjSetYear",key:"baseProjSetYear"},{label:"操作",slot:"action",key:"action"}],M=q({visible:!1}),me=()=>{M.visible=!0,M.data=a.value.baseHistorProjs},Fe=l=>{a.value.baseHistorProjs=l.map(e=>({baseProjName:e.projectName,baseProjSetYear:e.projectYear,baseProjId:e.id}))},be=l=>{a.value.baseHistorProjs.splice(l,1)},Ae=[{label:"项目主要内容",prop:"mainContent",key:"mainContent"},{label:"业务对象",prop:"businessObject",key:"businessObject"},{label:"操作",slot:"action",key:"action"}],Y=q({visible:!1,data:void 0}),Z=P(),fe=(l,e)=>{Y.data=l,Y.visible=!0,Z.value=e},He=l=>{Z.value===void 0?a.value.beseExpectedResults.push(l):a.value.beseExpectedResults[Z.value]=l},Ge=l=>{a.value.beseExpectedResults.splice(l,1)},Je=P(),ze=async()=>{var e;const l=await bl({pageNumber:1,pageSize:1e4});Je.value=((e=l==null?void 0:l.data)==null?void 0:e.records)||[]};Ze(()=>{ze(),ue("orgCreditCode")}),le(()=>K.declareAmount,l=>{}),Ve({validForm:Le,formData:a,setFormData:Se}),le(()=>K.dictionaryList,l=>{var e;l&&(D.value=[],(e=K.dictionaryList)==null||e.filter(i=>i.type==="PROJECT_BASIS").forEach(i=>{D.value.push({title:i.label,fileName:"",fileList:[],value:i.value})}))}),le(()=>a.value,l=>{B("getBasicInfoData",a.value)},{deep:!0});const ee=P(!1);function We(){console.log(ee.value),ee.value&&B("changeProjectTypeResetForm",a.value)}return(l,e)=>{const i=c("el-input"),u=c("el-form-item"),n=c("el-col"),v=c("el-radio"),O=c("el-radio-group"),C=c("el-button"),g=c("table-list"),T=c("el-checkbox"),x=c("el-checkbox-group"),h=c("el-date-picker"),G=c("el-upload"),$=c("el-input-number"),I=c("el-row"),J=c("el-form"),Ke=c("el-dialog");return d(),V(L,null,[t(J,{ref_key:"formRef",ref:te,model:a.value,rules:we,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:r(()=>[t(I,{gutter:40},{default:r(()=>{var w,ge,ve,ye;return[t(n,{span:24},{default:r(()=>[t(u,{label:"项目名称",prop:"projectName"},{default:r(()=>[t(i,{modelValue:a.value.projectName,"onUpdate:modelValue":e[0]||(e[0]=o=>a.value.projectName=o),maxlength:"50",placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"项目类型",prop:"projectType"},{default:r(()=>{var o;return[t(O,{modelValue:a.value.projectType,"onUpdate:modelValue":e[1]||(e[1]=s=>a.value.projectType=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status),onChange:We},{default:r(()=>[t(v,{label:"01"},{default:r(()=>e[41]||(e[41]=[m("首次建设")])),_:1}),t(v,{label:"02"},{default:r(()=>e[42]||(e[42]=[m("迭代升级")])),_:1}),t(v,{label:"03"},{default:r(()=>e[43]||(e[43]=[m("结转建设")])),_:1}),t(v,{label:"04"},{default:r(()=>e[44]||(e[44]=[m("新运维")])),_:1}),t(v,{label:"05"},{default:r(()=>e[45]||(e[45]=[m("续运维")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[a.value.projectType!=="01"?(d(),f(u,{key:0,label:"历年项目名称",prop:"baseHistorProjs"},{default:r(()=>[k("p",fl,[t(C,{type:"primary",onClick:me},{default:r(()=>e[46]||(e[46]=[m("关联历年项目")])),_:1})]),t(g,{pagination:!1,style:{width:"100%"},column:pe,data:a.value.baseHistorProjs,"empty-temp":!1},{action:r(({scope:o})=>[a.value.projectType==="03"?(d(),V("a",{key:0,class:"text-primary",onClick:s=>{B("reuseItem",a.value.baseHistorProjs[o.$index]),ee.value=!0}},"复用信息",8,gl)):N("",!0),k("a",{class:"text-danger",onClick:s=>be(o.$index)},"删除",8,vl)]),_:1},8,["data"])]),_:1})):(d(),f(u,{key:1,label:"历年项目名称"},{default:r(()=>[k("p",yl,[t(C,{type:"primary",onClick:me},{default:r(()=>e[47]||(e[47]=[m("关联历年项目")])),_:1})]),t(g,{pagination:!1,style:{width:"100%"},column:pe,data:a.value.baseHistorProjs,"empty-temp":!1},{action:r(({scope:o})=>[a.value.projectType==="03"?(d(),V("a",{key:0,class:"text-primary",onClick:s=>B("reuseItem",a.value.baseHistorProjs[o.$index])},"复用信息",8,Cl)):N("",!0),k("a",{class:"text-danger",onClick:s=>be(o.$index)},"删除",8,cl)]),_:1},8,["data"])]),_:1}))]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"内容类别",prop:"baseConstructionType"},{default:r(()=>[t(x,{modelValue:a.value.baseConstructionType,"onUpdate:modelValue":e[2]||(e[2]=o=>a.value.baseConstructionType=o)},{default:r(()=>{var o;return[(d(!0),V(L,null,z((o=y.dictionaryList)==null?void 0:o.filter(s=>s.type==="CONTENT_TYPE"),(s,p)=>(d(),f(T,{key:p,label:s.value},{default:r(()=>[m(W(s.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1}),a.value.baseProjIsConfidentiality==="01"?(d(),V(L,{key:0},[t(n,{span:12},{default:r(()=>[t(u,{label:"是否首次新建",prop:"isFirst"},{default:r(()=>{var o;return[t(O,{modelValue:a.value.isFirst,"onUpdate:modelValue":e[3]||(e[3]=s=>a.value.isFirst=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status),onChange:De},{default:r(()=>[t(v,{label:1},{default:r(()=>e[48]||(e[48]=[m("是")])),_:1}),t(v,{label:0},{default:r(()=>e[49]||(e[49]=[m("否")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),S(Oe).name!="planEdit"?(d(),f(n,{key:0,span:12},{default:r(()=>[t(u,{label:"是否临时增补",prop:"isTemporaryAugment"},{default:r(()=>{var o;return[t(O,{modelValue:a.value.isTemporaryAugment,"onUpdate:modelValue":e[4]||(e[4]=s=>a.value.isTemporaryAugment=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status)},{default:r(()=>[t(v,{label:1},{default:r(()=>e[50]||(e[50]=[m("是")])),_:1}),t(v,{label:0},{default:r(()=>e[51]||(e[51]=[m("否")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})):N("",!0)],64)):N("",!0),t(n,{span:12},{default:r(()=>[t(u,{label:"项目负责人",prop:"responsibleMan"},{default:r(()=>[t(i,{modelValue:a.value.responsibleMan,"onUpdate:modelValue":e[5]||(e[5]=o=>a.value.responsibleMan=o),maxlength:"50",readonly:"",placeholder:"请选择,温馨提示:项目负责人请填写领导信息",onClick:e[6]||(e[6]=o=>H("responsibleMan","responsibleManMobile"))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"项目负责人手机号",prop:"responsibleManMobile"},{default:r(()=>[t(i,{modelValue:a.value.responsibleManMobile,"onUpdate:modelValue":e[7]||(e[7]=o=>a.value.responsibleManMobile=o),maxlength:"11",placeholder:"请选择",readonly:"",onClick:e[8]||(e[8]=o=>H("responsibleMan","responsibleManMobile"))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"项目联系人",prop:"contactName"},{default:r(()=>[t(i,{modelValue:a.value.contactName,"onUpdate:modelValue":e[9]||(e[9]=o=>a.value.contactName=o),maxlength:"50",placeholder:"请选择",readonly:"",onClick:e[10]||(e[10]=o=>H("contactName","contactPhone"))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"项目联系人手机号",prop:"contactPhone"},{default:r(()=>[t(i,{modelValue:a.value.contactPhone,"onUpdate:modelValue":e[11]||(e[11]=o=>a.value.contactPhone=o),maxlength:"11",placeholder:"请选择",readonly:"",onClick:e[12]||(e[12]=o=>H("contactName","contactPhone"))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"建设单位",prop:"buildOrgName"},{default:r(()=>[t(i,{modelValue:a.value.buildOrgName,"onUpdate:modelValue":e[13]||(e[13]=o=>a.value.buildOrgName=o),placeholder:"请输入",disabled:!0},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"建设单位统一信用代码",prop:"orgCreditCode"},{default:r(()=>[t(i,{modelValue:a.value.orgCreditCode,"onUpdate:modelValue":e[14]||(e[14]=o=>a.value.orgCreditCode=o),maxlength:"18",placeholder:"请输入",disabled:X.value.orgCreditCode},null,8,["modelValue","disabled"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"上级主管单位类型",prop:"baseProvManDeprtType"},{default:r(()=>{var o;return[t(O,{modelValue:a.value.baseProvManDeprtType,"onUpdate:modelValue":e[15]||(e[15]=s=>a.value.baseProvManDeprtType=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status),onChange:Re},{default:r(()=>[t(v,{label:"1"},{default:r(()=>e[52]||(e[52]=[m("省级")])),_:1}),t(v,{label:"2"},{default:r(()=>e[53]||(e[53]=[m("非省级")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"上级主管单位",prop:"higherSuperOrg"},{default:r(()=>{var o;return[l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status)?(d(),f(i,{key:0,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[16]||(e[16]=s=>a.value.higherSuperOrg=s),disabled:""},null,8,["modelValue"])):a.value.baseProvManDeprtType==="1"?(d(),f(i,{key:1,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[17]||(e[17]=s=>a.value.higherSuperOrg=s),placeholder:"请选择",readonly:"",onClick:Me},null,8,["modelValue"])):(d(),f(i,{key:2,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[18]||(e[18]=s=>a.value.higherSuperOrg=s),placeholder:"请选择",readonly:"",onClick:_e},null,8,["modelValue"]))]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"本级主管单位",prop:"superOrg"},{default:r(()=>{var o,s;return[l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status)?(d(),f(i,{key:0,modelValue:a.value.superOrg,"onUpdate:modelValue":e[19]||(e[19]=p=>a.value.superOrg=p),disabled:""},null,8,["modelValue"])):(d(),f(i,{key:1,modelValue:a.value.superOrg,"onUpdate:modelValue":e[20]||(e[20]=p=>a.value.superOrg=p),placeholder:"请选择",readonly:"",disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((s=y.detailData)==null?void 0:s.status),onClick:xe},null,8,["modelValue","disabled"]))]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"本级主管单位统一社会信用代码",prop:"superOrgCreditCode"},{default:r(()=>{var o;return[t(i,{modelValue:a.value.superOrgCreditCode,"onUpdate:modelValue":e[21]||(e[21]=s=>a.value.superOrgCreditCode=s),placeholder:"请填写",disabled:X.value.superOrgCreditCode||l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status)},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),a.value.baseProjIsConfidentiality==="01"?(d(),V(L,{key:1},[t(n,{span:24},{default:r(()=>[t(u,{label:"建设层级",prop:"buildLevel"},{default:r(()=>[t(O,{modelValue:a.value.buildLevel,"onUpdate:modelValue":e[22]||(e[22]=o=>a.value.buildLevel=o)},{default:r(()=>{var o;return[(d(!0),V(L,null,z((o=y.dictionaryList)==null?void 0:o.filter(s=>s.type==="BUILD_LEVEL"),(s,p)=>(d(),f(v,{key:p,label:s.value},{default:r(()=>[m(W(s.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1}),(ge=(w=a.value)==null?void 0:w.baseConstructionType)!=null&&ge.includes("03")&&!((ye=(ve=a.value)==null?void 0:ve.baseConstructionType)!=null&&ye.includes("01"))?N("",!0):(d(),f(n,{key:0,span:24},{default:r(()=>{var o,s;return[(s=(o=a.value)==null?void 0:o.baseConstructionType)!=null&&s.includes("01")?(d(),f(u,{key:0,label:"贯通层级",prop:"lowestLevel"},{default:r(()=>[t(O,{modelValue:a.value.lowestLevel,"onUpdate:modelValue":e[23]||(e[23]=p=>a.value.lowestLevel=p)},{default:r(()=>{var p;return[(d(!0),V(L,null,z((p=y.dictionaryList)==null?void 0:p.filter(j=>j.type==="BUILD_LEVEL"),(j,E)=>(d(),f(v,{key:E,label:j.value},{default:r(()=>[m(W(j.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})):(d(),f(u,{key:1,label:"贯通层级"},{default:r(()=>[t(O,{modelValue:a.value.lowestLevel,"onUpdate:modelValue":e[24]||(e[24]=p=>a.value.lowestLevel=p)},{default:r(()=>{var p;return[(d(!0),V(L,null,z((p=y.dictionaryList)==null?void 0:p.filter(j=>j.type==="BUILD_LEVEL"),(j,E)=>(d(),f(v,{key:E,label:j.value},{default:r(()=>[m(W(j.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1}))]}),_:1})),t(n,{span:12},{default:r(()=>[t(u,{label:"预算年度",prop:"projectYear"},{default:r(()=>{var o;return[t(h,{modelValue:a.value.projectYear,"onUpdate:modelValue":e[25]||(e[25]=s=>a.value.projectYear=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status),type:"year",placeholder:"请选择",format:"YYYY","value-format":"YYYY"},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),a.value.baseProjIsConfidentiality==="01"?(d(),f(n,{key:1,span:12},{default:r(()=>[t(u,{label:"建设起止年限",prop:"buildDuration"},{default:r(()=>[t(h,{modelValue:a.value.buildDuration,"onUpdate:modelValue":e[26]||(e[26]=o=>a.value.buildDuration=o),type:"daterange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1})):N("",!0),t(n,{span:24},{default:r(()=>[t(u,{label:"立项依据材料",prop:"baseProjBasis"},{default:r(()=>[t(g,{ref_key:"tableListRef",ref:R,pagination:!1,style:{width:"100%"},column:Ne,data:D.value,onSelectionChange:Te},{fileName:r(({scope:o})=>[a.value.baseProjBasis&&a.value.baseProjBasis.map(s=>s.value).includes(o.row.value)?(d(),f(u,{key:0},{default:r(()=>{var s,p,j;return[t(i,{value:(j=(p=(s=a.value.baseProjBasis[a.value.baseProjBasis.findIndex(E=>E.value===o.row.value)])==null?void 0:s.fileList)==null?void 0:p[0])==null?void 0:j.name,placeholder:"请输入",maxlength:50,disabled:!0},null,8,["value"])]}),_:2},1024)):(d(),f(i,{key:1,disabled:!0}))]),action:r(({scope:o})=>[a.value.baseProjBasis&&a.value.baseProjBasis.map(s=>s.value).includes(o.row.value)?(d(),f(u,{key:0,class:"basicUploadItem",rules:{required:!0,message:"请上传"},prop:`baseProjBasis[${a.value.baseProjBasis.findIndex(s=>s.value===o.row.value)}].fileList`},{default:r(()=>[t(G,{ref:"materialUploadRef","file-list":a.value.baseProjBasis[a.value.baseProjBasis.findIndex(s=>s.value===o.row.value)].fileList,"onUpdate:fileList":s=>a.value.baseProjBasis[a.value.baseProjBasis.findIndex(p=>p.value===o.row.value)].fileList=s,class:"flex items-center flex-col w-full",action:S(he),"on-success":s=>S(tl)(s,a.value.baseProjBasis[a.value.baseProjBasis.findIndex(p=>p.value===o.row.value)].fileList,!0),"on-error":S(rl),"before-upload":s=>S(ol)(s,{types:S(Pe)}),limit:1,accept:S(Pe).map(s=>`.${s}`).join(","),"on-preview":S(sl)},{trigger:r(()=>e[54]||(e[54]=[k("div",null,[k("a",null,"上传")],-1)])),_:2},1032,["file-list","onUpdate:fileList","action","on-success","on-error","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(d(),V("span",Pl,"上传"))]),_:1},8,["data"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"立项依据说明",prop:"baseBasisEstablish"},{default:r(()=>[t(i,{modelValue:a.value.baseBasisEstablish,"onUpdate:modelValue":e[27]||(e[27]=o=>a.value.baseBasisEstablish=o),type:"textarea","show-word-limit":"",placeholder:"请填写",maxlength:150},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"项目概述",prop:"projectOverview"},{default:r(()=>[t(i,{modelValue:a.value.projectOverview,"onUpdate:modelValue":e[28]||(e[28]=o=>a.value.projectOverview=o),rows:4,type:"textarea",placeholder:"请输入","show-word-limit":"",maxlength:"2000"},null,8,["modelValue"])]),_:1})]),_:1}),l.$route.name==="declarePlan"||[10012,10016,10013].includes(y.detailData.status)?(d(),f(n,{key:2,span:24},{default:r(()=>[t(u,{label:"项目内容与预期成效",prop:"beseExpectedResults"},{default:r(()=>[t(g,{pagination:!1,style:{width:"100%"},column:Ae,data:a.value.beseExpectedResults,"empty-temp":!1},{action:r(({scope:o})=>[k("a",{onClick:s=>fe(o.row,o.$index)},"编辑",8,jl),k("a",{class:"text-danger",onClick:s=>Ge(o.$index)},"删除",8,Vl)]),_:1},8,["data"]),k("p",kl,[t(C,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:e[29]||(e[29]=()=>fe())},{default:r(()=>e[55]||(e[55]=[m("添加 ")])),_:1})])]),_:1})]),_:1})):N("",!0)],64)):N("",!0),a.value.baseProjIsConfidentiality==="02"?(d(),V(L,{key:2},[t(n,{span:12},{default:r(()=>[t(u,{label:"预算年度",prop:"projectYear"},{default:r(()=>{var o;return[t(h,{modelValue:a.value.projectYear,"onUpdate:modelValue":e[30]||(e[30]=s=>a.value.projectYear=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=y.detailData)==null?void 0:o.status),type:"year",placeholder:"请选择",format:"YYYY","value-format":"YYYY"},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"申报金额",prop:"declareAmount"},{default:r(()=>[t($,{modelValue:a.value.declareAmount,"onUpdate:modelValue":e[31]||(e[31]=o=>a.value.declareAmount=o),placeholder:"请填写",min:1e-6,controls:!1,onMousewheel:e[32]||(e[32]=ce(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"年度支付金额",prop:"annualPlanAmount"},{default:r(()=>[t($,{modelValue:a.value.annualPlanAmount,"onUpdate:modelValue":e[33]||(e[33]=o=>a.value.annualPlanAmount=o),placeholder:"请填写",min:0,controls:!1,onMousewheel:e[34]||(e[34]=ce(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})],64)):N("",!0)]}),_:1})]),_:1},8,["model"]),t(nl,{visible:b.unitVisible,"show-checkbox":!1,"default-data":b.data,title:b.title,type:b.type,"default-props":b.defaultProps,params:b.params,onClose:Be,onGetSelectUnit:Ue},null,8,["visible","default-data","title","type","default-props","params"]),t(Ke,{"model-value":U.value,title:"上级条线主管单位",width:"60%",onClose:e[37]||(e[37]=w=>U.value=!1)},{footer:r(()=>[k("span",hl,[t(C,{onClick:e[36]||(e[36]=w=>U.value=!1)},{default:r(()=>e[58]||(e[58]=[m("关闭")])),_:1}),t(C,{type:"primary",onClick:Ee},{default:r(()=>e[59]||(e[59]=[m(" 提交 ")])),_:1})])]),default:r(()=>[t(J,{model:_,size:"small","label-suffix":":"},{default:r(()=>[t(I,{gutter:16,class:"mb-16"},{default:r(()=>[t(n,{span:8},{default:r(()=>[t(u,{label:"单位名称"},{default:r(()=>[t(i,{modelValue:_.businessStripName,"onUpdate:modelValue":e[35]||(e[35]=w=>_.businessStripName=w),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:16},{default:r(()=>[t(u,{class:"btn"},{default:r(()=>[k("div",Ol,[t(C,{type:"primary",onClick:F},{default:r(()=>e[56]||(e[56]=[m("查询 ")])),_:1}),t(C,{onClick:$e},{default:r(()=>e[57]||(e[57]=[m("重置 ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(g,{ref_key:"tableListRef",ref:R,column:Ye,data:ie.value,pagination:!1,style:{height:"600px",overflow:"auto"},onGetTableData:F,onRadioChange:Ie},null,8,["data"])]),_:1},8,["model-value"]),t(dl,{visible:A.visible,params:A.params,onClose:e[38]||(e[38]=w=>A.visible=!1),onGetUserData:qe},null,8,["visible","params"]),t(pl,{visible:M.visible,data:M.data,onGetProjectList:Fe,onClose:e[39]||(e[39]=w=>M.visible=!1)},null,8,["visible","data"]),t(ml,{visible:Y.visible,data:Y.data,onSetContent:He,onClose:e[40]||(e[40]=w=>Y.visible=!1)},null,8,["visible","data"])],64)}}});export{$l as default};