|
- import{E as Ce,r as R,a as fe,B as se,b as P,c as b,d as S,f as i,h as t,N as ne,L as v,F as k,H as te,j as _,e as y,i as g,t as G,u as d,k as Be}from"./index-dd5fae99.js";import Ae from"./relatedProjectDialog-55f5f96f.js";import Fe from"./projectContentDialog-4e6a46f0.js";import{r as oe,h as K,i as z,f as Q,b as V,c as W,e as ie}from"./uploadAction-3962500e.js";import"./renewalProjectCapitalDeclare-e1231fa5.js";const Re={class:"text-right w-full mb-8"},Oe=["onClick"],De={key:1},Ee={key:1,class:"text-info cursor-not-allowed"},Ne=["onClick"],Ye=["onClick"],Ie={class:"text-right w-full mt-8"},Ue=["onClick"],he=["onClick"],Te={class:"text-right w-full mt-8"},$e={class:"el-upload__tip"},qe={class:"el-upload__tip"},He={class:"el-upload__tip"},Je={class:"el-upload__tip"},Me=Be({name:"projectCollectionEnterBasicInfo"}),We=Object.assign(Me,{props:{detail:{type:Object},basicInfoData:{type:Object},dictionaryList:{type:Array,default:()=>[]},isSupplemented:{type:Boolean,default:!1}},emits:["getProYear"],setup(r,{expose:ve,emit:je}){const N=r,Y=Ce.dictStore.uploadUrl,re=R(),s=R({beseExpectedResults:[]}),ue=R({}),ce=[{label:"序号",type:"index",width:60},{label:"项目名称",prop:"baseProjName",key:"baseProjName"},{label:"预算年度",prop:"baseProjSetYear",key:"baseProjSetYear"},{label:"操作",slot:"action",key:"action"}],Pe=[{type:"selection"},{label:"依据项",key:"title",prop:"title"},{label:"依据文件名",slot:"fileName"},{label:"文件(支持word、pdf格式)",slot:"action",width:300}],ye=[{label:"依据项",key:"title",prop:"title"},{label:"依据文件名",slot:"fileName"},{label:"文件(支持word、pdf格式)",slot:"action",width:300}],B=R([{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:[]}]),Se=u=>{s.value.baseProjBasis=u.map(a=>a)},pe=[{label:"项目主要内容",prop:"mainContent",key:"mainContent"},{label:"业务对象",prop:"businessObject",key:"businessObject"},{label:"操作",slot:"action",key:"action"}],I=fe({visible:!1}),we=()=>{I.visible=!0,I.data=s.value.baseHistorProjs},ge=u=>{s.value.baseHistorProjs=u.map(a=>({baseProjName:a.projectName,baseProjSetYear:a.projectYear,baseProjId:a.id}))},ke=u=>{s.value.baseHistorProjs.splice(u,1)},U=fe({visible:!1,data:void 0}),de=R(),X=(u,a)=>{U.data=u,U.visible=!0,de.value=a},Ve=u=>{de.value===void 0?s.value.beseExpectedResults.push(u):s.value.beseExpectedResults[de.value]=u},be=u=>{s.value.beseExpectedResults.splice(u,1)},Le=je,me=R(),n=R();return ve({formRef:re,formData:s}),se(()=>N.dictionaryList,u=>{var a;u&&(B.value=[],(a=N.dictionaryList)==null||a.filter(j=>j.type==="PROJECT_BASIS").forEach(j=>{B.value.push({title:j.label,fileName:"",fileList:[],value:j.value})}))}),se(()=>N.detail,u=>{var a,j,m,f,h,O,D,E,T,w,A,Z,ee,x,le,ae,F,$,q,H,J;if(u){N.isSupplemented&&(n.value=u.apply),s.value={...u.apply,baseProjTime:(a=u.apply)!=null&&a.baseProjStartTime?[(j=u.apply)==null?void 0:j.baseProjStartTime.slice(0,10),(m=u.apply)==null?void 0:m.baseProjEndTime.slice(0,10)]:[],baseHistorProjs:((h=(f=u.apply)==null?void 0:f.baseHistorProjId)==null?void 0:h.split(";").map((L,l)=>{var e,o;return{baseProjId:L,baseProjName:(e=u.apply)==null?void 0:e.baseHistorProjName.split(";")[l],baseProjSetYear:(o=u.apply)==null?void 0:o.baseHistorProjYear.split(";")[l]}}))||[],baseProjAmountOri:((O=u.apply)==null?void 0:O.baseProjAmountOri)&&((E=(D=u.apply)==null?void 0:D.baseProjAmountOri)==null?void 0:E.split(";")),baseProjBasis:(A=(w=(T=u.apply)==null?void 0:T.baseProjBasis)==null?void 0:w.split(";"))==null?void 0:A.map((L,l)=>{var o,p,c,C;const e=`[${(o=u.apply)==null?void 0:o.baseProjBasisFile.replace(/}];/g,"}],")}]`;return{title:(c=(p=B.value)==null?void 0:p.find(xe=>xe.value===L))==null?void 0:c.title,fileList:(C=u.apply)!=null&&C.baseProjBasisFile?oe(JSON.parse(e)[l]):[],value:L}}),beseExpectedResults:((Z=u.apply)==null?void 0:Z.beseExpectedResults)&&JSON.parse((ee=u.apply)==null?void 0:ee.beseExpectedResults)||[],baseProjApplyFile:(x=u.apply)!=null&&x.baseProjApplyFile?oe(JSON.parse(u.apply.baseProjApplyFile)):[],baseResearchReportFile:(le=u.apply)!=null&&le.baseResearchReportFile?oe(JSON.parse(u.apply.baseResearchReportFile)):[],baseProjOtherFile:(ae=u.apply)!=null&&ae.baseProjOtherFile?oe(JSON.parse(u.apply.baseProjOtherFile)):[]};const M=s.value.baseProjBasis?JSON.parse(JSON.stringify(s.value.baseProjBasis)):[];if((q=($=(F=u.apply)==null?void 0:F.baseProjBasis)==null?void 0:$.split(";"))!=null&&q.length){const L=(J=(H=u.apply)==null?void 0:H.baseProjBasis)==null?void 0:J.split(";");B.value&&B.value.forEach(l=>{var e,o;L.includes(l.value)&&(l.fileList=(e=M.find(p=>p.value===l.value))==null?void 0:e.fileList,l.fileName=(o=M.find(p=>p.value===l.value))==null?void 0:o.fileName,me.value.toggleRowSelect(l,!0))})}console.log(B.value)}}),se(()=>N.basicInfoData,u=>{var a;u.baseProjIsConfidentiality==="02"?ue.value={}:ue.value={baseProjTime:[{required:!0,message:"请选择项目起止时间"}],baseProjSetYear:[{required:!0,message:"请选择预算年度"}],baseProjDeclAmount:[{required:!0,message:"请填写申报年度预算"}],baseProjTotalAmount:[{required:!0,message:"请填写项目总投资"}],baseProjConsClass:[{required:!0,message:"请选择建设层级"}],baseLowestLevel:[{required:!0,message:"请选择贯通层级"}],baseProjAmountOri:[{required:!0,message:"请选择预算来源"}],baseBasisAmountOri:[{required:!0,message:"请填写预算来源说明"}],baseProjBasis:[{required:!0,message:"请选择立项依据"}],baseBasisEstablish:[{required:!0,message:"请填写立项依据说明"}],baseProjIntro:[{required:!0,message:"请填写项目概述"}],beseExpectedResults:[{required:!0,message:"请至少添加一个项目内容与预期成效"}],baseProjApplyFile:[{required:!0,message:"请上传"}],baseResearchReportFile:[{required:!0,message:"请上传"}],baseHistorProjs:[{required:!0,message:"请关联项目",type:"array"}]},(a=re.value)==null||a.clearValidate()},{deep:!0}),se(()=>s.value.baseProjSetYear,u=>{Le("getProYear",u)}),(u,a)=>{const j=P("el-input"),m=P("el-form-item"),f=P("el-col"),h=P("el-date-picker"),O=P("el-input-number"),D=P("el-option"),E=P("el-select"),T=P("el-switch"),w=P("el-button"),A=P("table-list"),Z=P("el-checkbox"),ee=P("el-checkbox-group"),x=P("el-upload"),le=P("el-row"),ae=P("el-form");return b(),S(k,null,[i(ae,{ref_key:"formRef",ref:re,model:s.value,rules:ue.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:t(()=>[i(le,{gutter:40},{default:t(()=>{var F,$,q,H,J,M,L;return[i(f,{span:8},{default:t(()=>[i(m,{label:"发改编码",prop:"baseDevelopCode"},{default:t(()=>{var l;return[i(j,{modelValue:s.value.baseDevelopCode,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value.baseDevelopCode=e),placeholder:"请填写",disabled:((l=n.value)==null?void 0:l.baseDevelopCode)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:8},{default:t(()=>[i(m,{label:"财政编码",prop:"setProjCodeFinan"},{default:t(()=>{var l;return[i(j,{modelValue:s.value.setProjCodeFinan,"onUpdate:modelValue":a[1]||(a[1]=e=>s.value.setProjCodeFinan=e),placeholder:"请填写",disabled:((l=n.value)==null?void 0:l.setProjCodeFinan)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:8},{default:t(()=>[i(m,{label:"项目起止时间",prop:"baseProjTime"},{default:t(()=>{var l;return[i(h,{modelValue:s.value.baseProjTime,"onUpdate:modelValue":a[2]||(a[2]=e=>s.value.baseProjTime=e),type:"daterange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",disabled:((l=n.value)==null?void 0:l.baseProjStartTime)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:8},{default:t(()=>[i(m,{label:"预算年度",prop:"baseProjSetYear"},{default:t(()=>{var l;return[i(h,{modelValue:s.value.baseProjSetYear,"onUpdate:modelValue":a[3]||(a[3]=e=>s.value.baseProjSetYear=e),type:"year",placeholder:"请选择",format:"YYYY","value-format":"YYYY",disabled:((l=n.value)==null?void 0:l.baseProjSetYear)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:8},{default:t(()=>[i(m,{label:"项目总投资",prop:"baseProjTotalAmount"},{default:t(()=>{var l;return[i(O,{modelValue:s.value.baseProjTotalAmount,"onUpdate:modelValue":a[4]||(a[4]=e=>s.value.baseProjTotalAmount=e),placeholder:"请填写",min:1e-6,controls:!1,class:"input-amount",disabled:((l=n.value)==null?void 0:l.baseProjTotalAmount)&&r.isSupplemented,onMousewheel:a[5]||(a[5]=ne(()=>{},["prevent"]))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:8},{default:t(()=>[s.value.baseProjSetYear*1>=2023?(b(),v(m,{key:"baseProjDeclAmount1",label:"申报年度预算",prop:"baseProjDeclAmount"},{default:t(()=>{var l;return[i(O,{modelValue:s.value.baseProjDeclAmount,"onUpdate:modelValue":a[6]||(a[6]=e=>s.value.baseProjDeclAmount=e),placeholder:"请填写",min:1e-6,controls:!1,class:"input-amount",disabled:((l=n.value)==null?void 0:l.baseProjDeclAmount)&&r.isSupplemented,onMousewheel:a[7]||(a[7]=ne(()=>{},["prevent"]))},null,8,["modelValue","disabled"])]}),_:1})):(b(),v(m,{key:"baseProjDeclAmount2",label:"申报年度预算"},{default:t(()=>{var l;return[i(O,{modelValue:s.value.baseProjDeclAmount,"onUpdate:modelValue":a[8]||(a[8]=e=>s.value.baseProjDeclAmount=e),placeholder:"请填写",min:1e-6,controls:!1,class:"input-amount",disabled:((l=n.value)==null?void 0:l.baseProjDeclAmount)&&r.isSupplemented,onMousewheel:a[9]||(a[9]=ne(()=>{},["prevent"]))},null,8,["modelValue","disabled"])]}),_:1}))]),_:1}),i(f,{span:8},{default:t(()=>[i(m,{label:"建设层级",prop:"baseProjConsClass"},{default:t(()=>{var l;return[i(E,{modelValue:s.value.baseProjConsClass,"onUpdate:modelValue":a[10]||(a[10]=e=>s.value.baseProjConsClass=e),placeholder:"请选择",class:"w-full",disabled:((l=n.value)==null?void 0:l.baseProjConsClass)&&r.isSupplemented},{default:t(()=>{var e;return[(b(!0),S(k,null,te((e=r.dictionaryList)==null?void 0:e.filter(o=>o.type==="BUILD_LEVEL"),(o,p)=>(b(),v(D,{key:p,label:o.label,value:o.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),($=(F=r.basicInfoData)==null?void 0:F.baseConstructionType)!=null&&$.includes("03")&&!((H=(q=r.basicInfoData)==null?void 0:q.baseConstructionType)!=null&&H.includes("01"))?_("",!0):(b(),v(f,{key:0,span:8},{default:t(()=>{var l,e;return[(e=(l=r.basicInfoData)==null?void 0:l.baseConstructionType)!=null&&e.includes("01")?(b(),v(m,{key:0,label:"贯通层级",prop:"baseLowestLevel"},{default:t(()=>{var o;return[i(E,{modelValue:s.value.baseLowestLevel,"onUpdate:modelValue":a[11]||(a[11]=p=>s.value.baseLowestLevel=p),placeholder:"请选择",class:"w-full",disabled:((o=n.value)==null?void 0:o.baseLowestLevel)&&r.isSupplemented},{default:t(()=>{var p;return[(b(!0),S(k,null,te((p=r.dictionaryList)==null?void 0:p.filter(c=>c.type==="LINK_UP_LEVEL"),(c,C)=>(b(),v(D,{key:C,label:c.label,value:c.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})):(b(),v(m,{key:1,label:"贯通层级"},{default:t(()=>{var o;return[i(E,{modelValue:s.value.baseLowestLevel,"onUpdate:modelValue":a[12]||(a[12]=p=>s.value.baseLowestLevel=p),placeholder:"请选择",class:"w-full",disabled:((o=n.value)==null?void 0:o.baseLowestLevel)&&r.isSupplemented},{default:t(()=>{var p;return[(b(!0),S(k,null,te((p=r.dictionaryList)==null?void 0:p.filter(c=>c.type==="LINK_UP_LEVEL"),(c,C)=>(b(),v(D,{key:C,label:c.label,value:c.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1}))]}),_:1})),((J=r.basicInfoData)==null?void 0:J.baseProjType)!=="01"?(b(),v(f,{key:1,span:24},{default:t(()=>[s.value.missing?(b(),v(m,{key:"baseHistorProjs2",label:"历年项目名称"},{default:t(()=>[a[31]||(a[31]=y("span",{class:"text-[#666666]"},"是否缺失:",-1)),i(T,{modelValue:s.value.missing,"onUpdate:modelValue":a[14]||(a[14]=l=>s.value.missing=l),disabled:r.isSupplemented},null,8,["modelValue","disabled"])]),_:1})):(b(),v(m,{key:"baseHistorProjs1",label:"历年项目名称",prop:"baseHistorProjs"},{default:t(()=>{var l;return[a[30]||(a[30]=y("span",{class:"text-[#666666]"},"是否缺失:",-1)),i(T,{modelValue:s.value.missing,"onUpdate:modelValue":a[13]||(a[13]=e=>s.value.missing=e),disabled:r.isSupplemented},null,8,["modelValue","disabled"]),s.value.missing?_("",!0):(b(),S(k,{key:0},[y("p",Re,[i(w,{type:"primary",disabled:((l=n.value)==null?void 0:l.baseHistorProjId)&&r.isSupplemented,onClick:we},{default:t(()=>a[29]||(a[29]=[g("关联历年项目")])),_:1},8,["disabled"])]),i(A,{pagination:!1,style:{width:"100%"},column:ce,data:s.value.baseHistorProjs,"empty-temp":!1},{action:t(({scope:e})=>{var o;return[(o=n.value)!=null&&o.baseHistorProjId&&r.isSupplemented?(b(),S("span",De,"-")):(b(),S("a",{key:0,class:"text-danger",onClick:p=>ke(e.$index)},"删除",8,Oe))]}),_:1},8,["data"])],64))]}),_:1}))]),_:1})):_("",!0),i(f,{span:24},{default:t(()=>[i(m,{label:"预算来源",prop:"baseProjAmountOri"},{default:t(()=>{var l;return[i(ee,{modelValue:s.value.baseProjAmountOri,"onUpdate:modelValue":a[15]||(a[15]=e=>s.value.baseProjAmountOri=e),disabled:((l=n.value)==null?void 0:l.baseProjAmountOri)&&r.isSupplemented},{default:t(()=>{var e;return[(b(!0),S(k,null,te((e=r.dictionaryList)==null?void 0:e.filter(o=>o.type==="BUDGET_SOURCE"),(o,p)=>(b(),v(Z,{key:p,label:o.value},{default:t(()=>[g(G(o.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:24},{default:t(()=>{var l;return[(l=s.value.baseProjAmountOri)!=null&&l.includes("00")?(b(),v(m,{key:0,label:"预算来源说明",prop:"baseBasisAmountOri"},{default:t(()=>{var e;return[i(j,{modelValue:s.value.baseBasisAmountOri,"onUpdate:modelValue":a[16]||(a[16]=o=>s.value.baseBasisAmountOri=o),type:"textarea","show-word-limit":"",placeholder:"请填写",maxlength:150,disabled:((e=n.value)==null?void 0:e.baseBasisAmountOri)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})):(b(),v(m,{key:1,label:"预算来源说明"},{default:t(()=>{var e;return[i(j,{modelValue:s.value.baseBasisAmountOri,"onUpdate:modelValue":a[17]||(a[17]=o=>s.value.baseBasisAmountOri=o),type:"textarea","show-word-limit":"",placeholder:"请填写",maxlength:150,disabled:((e=n.value)==null?void 0:e.baseBasisAmountOri)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1}))]}),_:1}),i(f,{span:24},{default:t(()=>[i(m,{label:"立项依据",prop:"baseProjBasis"},{default:t(()=>{var l;return[i(A,{ref_key:"tableListRef",ref:me,pagination:!1,style:{width:"100%"},column:(l=n.value)!=null&&l.baseProjBasis&&r.isSupplemented?ye:Pe,data:B.value,onSelectionChange:Se},{fileName:t(({scope:e})=>[s.value.baseProjBasis&&s.value.baseProjBasis.map(o=>o.value).includes(e.row.value)?(b(),v(m,{key:0},{default:t(()=>{var o,p,c;return[i(j,{value:(c=(p=(o=s.value.baseProjBasis[s.value.baseProjBasis.findIndex(C=>C.value===e.row.value)])==null?void 0:o.fileList)==null?void 0:p[0])==null?void 0:c.name,placeholder:"请输入",maxlength:50,disabled:!0},null,8,["value"])]}),_:2},1024)):(b(),v(j,{key:1,disabled:!0}))]),action:t(({scope:e})=>[s.value.baseProjBasis&&s.value.baseProjBasis.map(o=>o.value).includes(e.row.value)?(b(),v(m,{key:0,class:"basicUploadItem",rules:{required:!0,message:"请上传"},prop:`baseProjBasis[${s.value.baseProjBasis.findIndex(o=>o.value===e.row.value)}].fileList`},{default:t(()=>[i(x,{ref:"materialUploadRef","file-list":s.value.baseProjBasis[s.value.baseProjBasis.findIndex(o=>o.value===e.row.value)].fileList,"onUpdate:fileList":o=>s.value.baseProjBasis[s.value.baseProjBasis.findIndex(p=>p.value===e.row.value)].fileList=o,class:"flex items-center flex-col w-full",action:d(Y),"on-success":o=>d(K)(o,s.value.baseProjBasis[s.value.baseProjBasis.findIndex(p=>p.value===e.row.value)].fileList,!0),"on-error":d(z),"before-upload":o=>d(Q)(o,{types:d(V)}),accept:d(V).map(o=>`.${o}`).join(","),limit:1,"on-preview":d(W),"before-remove":()=>{var o;return!((o=n.value)!=null&&o.baseProjBasis&&r.isSupplemented)}},{trigger:t(()=>{var o;return[y("div",null,[i(w,{link:"",disabled:((o=n.value)==null?void 0:o.baseProjBasis)&&r.isSupplemented,type:"primary"},{default:t(()=>a[32]||(a[32]=[g("上传")])),_:1},8,["disabled"])])]}),_:2},1032,["file-list","onUpdate:fileList","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:2},1032,["prop"])):(b(),S("span",Ee,"上传"))]),_:1},8,["column","data"])]}),_:1})]),_:1}),i(f,{span:24},{default:t(()=>[i(m,{label:"立项依据说明",prop:"baseBasisEstablish"},{default:t(()=>{var l;return[i(j,{modelValue:s.value.baseBasisEstablish,"onUpdate:modelValue":a[18]||(a[18]=e=>s.value.baseBasisEstablish=e),type:"textarea","show-word-limit":"",placeholder:"请填写",maxlength:150,disabled:((l=n.value)==null?void 0:l.baseBasisEstablish)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:24},{default:t(()=>[i(m,{label:"项目概述",prop:"baseProjIntro"},{default:t(()=>{var l;return[i(j,{modelValue:s.value.baseProjIntro,"onUpdate:modelValue":a[19]||(a[19]=e=>s.value.baseProjIntro=e),type:"textarea","show-word-limit":"",placeholder:"请填写",maxlength:2e3,disabled:((l=n.value)==null?void 0:l.baseProjIntro)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:24},{default:t(()=>[s.value.baseProjSetYear*1>=2023?(b(),v(m,{key:0,label:"项目内容与预期成效",prop:"beseExpectedResults"},{default:t(()=>{var l;return[i(A,{pagination:!1,style:{width:"100%"},column:pe,data:s.value.beseExpectedResults,"empty-temp":!1},{action:t(({scope:e})=>{var o;return[(o=n.value)!=null&&o.beseExpectedResults&&r.isSupplemented?(b(),S(k,{key:0},[g("-")],64)):(b(),S(k,{key:1},[y("a",{onClick:p=>X(e.row,e.$index)},"编辑",8,Ne),y("a",{class:"text-danger",onClick:p=>be(e.$index)},"删除",8,Ye)],64))]}),_:1},8,["data"]),y("p",Ie,[i(w,{type:"primary",class:"w-full",plain:"",icon:"Plus",disabled:((l=n.value)==null?void 0:l.beseExpectedResults)&&r.isSupplemented,onClick:a[20]||(a[20]=()=>X())},{default:t(()=>a[33]||(a[33]=[g("添加")])),_:1},8,["disabled"])])]}),_:1})):(b(),v(m,{key:1,label:"项目内容与预期成效"},{default:t(()=>{var l;return[i(A,{pagination:!1,style:{width:"100%"},column:pe,data:s.value.beseExpectedResults,"empty-temp":!1},{action:t(({scope:e})=>{var o;return[(o=n.value)!=null&&o.beseExpectedResults&&r.isSupplemented?(b(),S(k,{key:0},[g("-")],64)):(b(),S(k,{key:1},[y("a",{onClick:p=>X(e.row,e.$index)},"编辑",8,Ue),y("a",{class:"text-danger",onClick:p=>be(e.$index)},"删除",8,he)],64))]}),_:1},8,["data"]),y("p",Te,[i(w,{type:"primary",class:"w-full",plain:"",icon:"Plus",disabled:((l=n.value)==null?void 0:l.beseExpectedResults)&&r.isSupplemented,onClick:a[21]||(a[21]=()=>X())},{default:t(()=>a[34]||(a[34]=[g("添加")])),_:1},8,["disabled"])])]}),_:1}))]),_:1}),i(f,{span:8},{default:t(()=>{var l;return[s.value.baseProjSetYear*1<2023?(b(),v(m,{key:0,label:"项目申报书"},{default:t(()=>[i(x,{"file-list":s.value.baseProjApplyFile,"onUpdate:fileList":a[22]||(a[22]=e=>s.value.baseProjApplyFile=e),class:"w-full",action:d(Y),"on-success":e=>d(K)(e,s.value.baseProjApplyFile),"on-error":d(z),"before-upload":e=>d(Q)(e,{types:d(V)}),accept:d(V).map(e=>`.${e}`).join(","),limit:1,"on-preview":d(W),"before-remove":()=>{var e,o,p;return!((e=n.value)!=null&&e.baseProjApplyFile&&((p=JSON.parse((o=n.value)==null?void 0:o.baseProjApplyFile))!=null&&p.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",$e,"支持"+G(d(ie))+"文件",1)]),default:t(()=>{var e;return[i(w,{type:"primary",class:"mr-4",plain:"",disabled:((e=n.value)==null?void 0:e.baseProjApplyFile)&&r.isSupplemented},{default:t(()=>a[35]||(a[35]=[g("上传文件")])),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})):s.value.baseProjSetYear*1>=2023&&["01","02","04","05"].includes((l=r.basicInfoData)==null?void 0:l.baseProjType)?(b(),v(m,{key:1,label:"项目申报书",prop:"baseProjApplyFile"},{default:t(()=>[i(x,{"file-list":s.value.baseProjApplyFile,"onUpdate:fileList":a[23]||(a[23]=e=>s.value.baseProjApplyFile=e),class:"w-full",action:d(Y),"on-success":e=>d(K)(e,s.value.baseProjApplyFile),"on-error":d(z),"before-upload":e=>d(Q)(e,{types:d(V)}),accept:d(V).map(e=>`.${e}`).join(","),limit:1,"on-preview":d(W),"before-remove":()=>{var e,o,p;return!((e=n.value)!=null&&e.baseProjApplyFile&&((p=JSON.parse((o=n.value)==null?void 0:o.baseProjApplyFile))!=null&&p.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",qe,"支持"+G(d(ie))+"文件",1)]),default:t(()=>{var e;return[i(w,{type:"primary",class:"mr-4",plain:"",disabled:((e=n.value)==null?void 0:e.baseProjApplyFile)&&r.isSupplemented},{default:t(()=>a[36]||(a[36]=[g("上传文件")])),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})):_("",!0)]}),_:1}),((M=r.basicInfoData)==null?void 0:M.baseProjType)==="01"||((L=r.basicInfoData)==null?void 0:L.baseProjType)==="02"?(b(),v(f,{key:2,span:8},{default:t(()=>[i(m,{label:"可行性研究报告",prop:"baseResearchReportFile"},{default:t(()=>[i(x,{"file-list":s.value.baseResearchReportFile,"onUpdate:fileList":a[24]||(a[24]=l=>s.value.baseResearchReportFile=l),class:"w-full",action:d(Y),"on-success":l=>d(K)(l,s.value.baseResearchReportFile),"on-error":d(z),"before-upload":l=>d(Q)(l,{types:d(V)}),accept:d(V).map(l=>`.${l}`).join(","),limit:1,"on-preview":d(W),"before-remove":()=>{var l,e,o;return!((l=n.value)!=null&&l.baseResearchReportFile&&((o=JSON.parse((e=n.value)==null?void 0:e.baseResearchReportFile))!=null&&o.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",He,"支持"+G(d(ie))+"文件",1)]),default:t(()=>{var l;return[i(w,{type:"primary",class:"mr-4",plain:"",disabled:((l=n.value)==null?void 0:l.baseResearchReportFile)&&r.isSupplemented},{default:t(()=>a[37]||(a[37]=[g("上传文件")])),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})]),_:1})):_("",!0),i(f,{span:8},{default:t(()=>[i(m,{label:"其他附件"},{default:t(()=>[i(x,{"file-list":s.value.baseProjOtherFile,"onUpdate:fileList":a[25]||(a[25]=l=>s.value.baseProjOtherFile=l),class:"w-full",action:d(Y),"on-success":l=>d(K)(l,s.value.baseProjOtherFile),"on-error":d(z),"before-upload":l=>d(Q)(l,{types:d(V)}),accept:d(V).map(l=>`.${l}`).join(","),multiple:"","on-preview":d(W),"before-remove":()=>{var l,e,o;return!((l=n.value)!=null&&l.baseProjOtherFile&&((o=JSON.parse((e=n.value)==null?void 0:e.baseProjOtherFile))!=null&&o.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",Je,"支持"+G(d(ie))+"文件",1)]),default:t(()=>{var l;return[i(w,{type:"primary",class:"mr-4",plain:"",disabled:((l=n.value)==null?void 0:l.baseProjOtherFile)&&r.isSupplemented},{default:t(()=>a[38]||(a[38]=[g("上传文件")])),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})]),_:1}),i(f,{span:24},{default:t(()=>[i(m,{label:"备注"},{default:t(()=>{var l;return[i(j,{modelValue:s.value.baseProjRemark,"onUpdate:modelValue":a[26]||(a[26]=e=>s.value.baseProjRemark=e),type:"textarea",placeholder:"请输入",disabled:((l=n.value)==null?void 0:l.baseProjRemark)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1})]}),_:1})]),_:1},8,["model","rules"]),i(Ae,{visible:I.visible,data:I.data,onGetProjectList:ge,onClose:a[27]||(a[27]=F=>I.visible=!1)},null,8,["visible","data"]),i(Fe,{visible:U.visible,data:U.data,onSetContent:Ve,onClose:a[28]||(a[28]=F=>U.visible=!1)},null,8,["visible","data"])],64)}}});export{We as default};
|