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.

2 line
25KB

  1. import{d as Ce,D as Be,r as F,b as fe,L as se,c as P,e as b,f as S,h as i,i as t,V as ne,I as v,F as k,J as te,k as M,g as y,j as g,t as G,u as d}from"./index.d340e473.js";import he from"./relatedProjectDialog.066d533b.js";import Ae from"./projectContentDialog.55ca7e73.js";import{r as oe,h as K,i as z,f as Q,c as V,b as W,e as ie}from"./uploadAction.95992a5e.js";import"./renewalProjectCapitalDeclare.425372f7.js";const Fe=y("span",{class:"text-[#666666]"},"\u662F\u5426\u7F3A\u5931\uFF1A",-1),Re={class:"text-right w-full mb-8"},Oe=["onClick"],De={key:1},Ee=y("span",{class:"text-[#666666]"},"\u662F\u5426\u7F3A\u5931\uFF1A",-1),Ne={key:1,class:"text-info cursor-not-allowed"},Ie=["onClick"],Ye=["onClick"],Ue={class:"text-right w-full mt-8"},_e=["onClick"],Te=["onClick"],$e={class:"text-right w-full mt-8"},qe={class:"el-upload__tip"},He={class:"el-upload__tip"},Je={class:"el-upload__tip"},Me={class:"el-upload__tip"},Ge=Ce({name:"projectCollectionEnterBasicInfo"}),Ze=Object.assign(Ge,{props:{detail:{type:Object},basicInfoData:{type:Object},dictionaryList:{type:Array,default:()=>[]},isSupplemented:{type:Boolean,default:!1}},emits:["getProYear"],setup(r,{expose:ve,emit:ce}){const E=r,N=Be.dictStore.uploadUrl,re=F(),a=F({beseExpectedResults:[]}),ue=F({}),je=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u9879\u76EE\u540D\u79F0",prop:"baseProjName",key:"baseProjName"},{label:"\u9884\u7B97\u5E74\u5EA6",prop:"baseProjSetYear",key:"baseProjSetYear"},{label:"\u64CD\u4F5C",slot:"action",key:"action"}],Pe=[{type:"selection"},{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",slot:"fileName"},{label:"\u6587\u4EF6\uFF08\u652F\u6301word\u3001pdf\u683C\u5F0F\uFF09",slot:"action",width:300}],ye=[{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",slot:"fileName"},{label:"\u6587\u4EF6\uFF08\u652F\u6301word\u3001pdf\u683C\u5F0F\uFF09",slot:"action",width:300}],B=F([{id:1,title:"\u653F\u7B56\u3001\u6CD5\u89C4",fileName:"",fileList:[]},{id:2,title:"\u89C4\u5212\u6216\u51B3\u7B56\u90E8\u7F72",fileName:"",fileList:[]},{id:3,title:"\u4E0A\u7EA7\u4E0B\u8FBE\u4EFB\u52A1",fileName:"",fileList:[]},{id:4,title:"\u9886\u5BFC\u6279\u793A",fileName:"",fileList:[]},{id:5,title:"\u5355\u4F4D\u6838\u5FC3\u4E1A\u52A1\u6216\u5355\u4F4D\u804C\u80FD",fileName:"",fileList:[]},{id:6,title:"\u5176\u4ED6",fileName:"",fileList:[]}]),Se=u=>{a.value.baseProjBasis=u.map(s=>s)},pe=[{label:"\u9879\u76EE\u4E3B\u8981\u5185\u5BB9",prop:"mainContent",key:"mainContent"},{label:"\u4E1A\u52A1\u5BF9\u8C61",prop:"businessObject",key:"businessObject"},{label:"\u64CD\u4F5C",slot:"action",key:"action"}],I=fe({visible:!1}),we=()=>{I.visible=!0,I.data=a.value.baseHistorProjs},ge=u=>{a.value.baseHistorProjs=u.map(s=>({baseProjName:s.projectName,baseProjSetYear:s.projectYear,baseProjId:s.id}))},ke=u=>{a.value.baseHistorProjs.splice(u,1)},Y=fe({visible:!1,data:void 0}),de=F(),X=(u,s)=>{Y.data=u,Y.visible=!0,de.value=s},Ve=u=>{de.value===void 0?a.value.beseExpectedResults.push(u):a.value.beseExpectedResults[de.value]=u},be=u=>{a.value.beseExpectedResults.splice(u,1)},Le=ce,me=F(),n=F();return ve({formRef:re,formData:a}),se(()=>E.dictionaryList,u=>{var s;u&&(B.value=[],(s=E.dictionaryList)==null||s.filter(c=>c.type==="PROJECT_BASIS").forEach(c=>{B.value.push({title:c.label,fileName:"",fileList:[],value:c.value})}))}),se(()=>E.detail,u=>{var s,c,m,f,U,R,O,D,_,w,h,Z,ee,x,le,ae,A,T,$,q,H;if(u){E.isSupplemented&&(n.value=u.apply),a.value={...u.apply,baseProjTime:(s=u.apply)!=null&&s.baseProjStartTime?[(c=u.apply)==null?void 0:c.baseProjStartTime.slice(0,10),(m=u.apply)==null?void 0:m.baseProjEndTime.slice(0,10)]:[],baseHistorProjs:((U=(f=u.apply)==null?void 0:f.baseHistorProjId)==null?void 0:U.split("\uFF1B").map((L,l)=>{var e,o;return{baseProjId:L,baseProjName:(e=u.apply)==null?void 0:e.baseHistorProjName.split("\uFF1B")[l],baseProjSetYear:(o=u.apply)==null?void 0:o.baseHistorProjYear.split("\uFF1B")[l]}}))||[],baseProjAmountOri:((R=u.apply)==null?void 0:R.baseProjAmountOri)&&((D=(O=u.apply)==null?void 0:O.baseProjAmountOri)==null?void 0:D.split("\uFF1B")),baseProjBasis:(h=(w=(_=u.apply)==null?void 0:_.baseProjBasis)==null?void 0:w.split("\uFF1B"))==null?void 0:h.map((L,l)=>{var o,p,j,C;const e=`[${(o=u.apply)==null?void 0:o.baseProjBasisFile.replace(/}];/g,"}],")}]`;return{title:(j=(p=B.value)==null?void 0:p.find(xe=>xe.value===L))==null?void 0:j.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 J=a.value.baseProjBasis?JSON.parse(JSON.stringify(a.value.baseProjBasis)):[];if(($=(T=(A=u.apply)==null?void 0:A.baseProjBasis)==null?void 0:T.split("\uFF1B"))!=null&&$.length){const L=(H=(q=u.apply)==null?void 0:q.baseProjBasis)==null?void 0:H.split("\uFF1B");B.value&&B.value.forEach(l=>{var e,o;L.includes(l.value)&&(l.fileList=(e=J.find(p=>p.value===l.value))==null?void 0:e.fileList,l.fileName=(o=J.find(p=>p.value===l.value))==null?void 0:o.fileName,me.value.toggleRowSelect(l,!0))})}console.log(B.value)}}),se(()=>E.basicInfoData,u=>{var s;u.baseProjIsConfidentiality==="02"?ue.value={}:ue.value={baseProjTime:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8D77\u6B62\u65F6\u95F4"}],baseProjSetYear:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u5E74\u5EA6"}],baseProjDeclAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u7533\u62A5\u5E74\u5EA6\u9884\u7B97"}],baseProjTotalAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u603B\u6295\u8D44"}],baseProjConsClass:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u5C42\u7EA7"}],baseLowestLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D2F\u901A\u5C42\u7EA7"}],baseProjAmountOri:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u6765\u6E90"}],baseBasisAmountOri:[{required:!0,message:"\u8BF7\u586B\u5199\u9884\u7B97\u6765\u6E90\u8BF4\u660E"}],baseProjBasis:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ACB\u9879\u4F9D\u636E"}],baseBasisEstablish:[{required:!0,message:"\u8BF7\u586B\u5199\u7ACB\u9879\u4F9D\u636E\u8BF4\u660E"}],baseProjIntro:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u6982\u8FF0"}],beseExpectedResults:[{required:!0,message:"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548"}],baseProjApplyFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],baseResearchReportFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],baseHistorProjs:[{required:!0,message:"\u8BF7\u5173\u8054\u9879\u76EE",type:"array"}]},(s=re.value)==null||s.clearValidate()},{deep:!0}),se(()=>a.value.baseProjSetYear,u=>{Le("getProYear",u)}),(u,s)=>{const c=P("el-input"),m=P("el-form-item"),f=P("el-col"),U=P("el-date-picker"),R=P("el-input-number"),O=P("el-option"),D=P("el-select"),_=P("el-switch"),w=P("el-button"),h=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:a.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 A,T,$,q,H,J,L;return[i(f,{span:8},{default:t(()=>[i(m,{label:"\u53D1\u6539\u7F16\u7801",prop:"baseDevelopCode"},{default:t(()=>{var l;return[i(c,{modelValue:a.value.baseDevelopCode,"onUpdate:modelValue":s[0]||(s[0]=e=>a.value.baseDevelopCode=e),placeholder:"\u8BF7\u586B\u5199",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:"\u8D22\u653F\u7F16\u7801",prop:"setProjCodeFinan"},{default:t(()=>{var l;return[i(c,{modelValue:a.value.setProjCodeFinan,"onUpdate:modelValue":s[1]||(s[1]=e=>a.value.setProjCodeFinan=e),placeholder:"\u8BF7\u586B\u5199",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:"\u9879\u76EE\u8D77\u6B62\u65F6\u95F4",prop:"baseProjTime"},{default:t(()=>{var l;return[i(U,{modelValue:a.value.baseProjTime,"onUpdate:modelValue":s[2]||(s[2]=e=>a.value.baseProjTime=e),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",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:"\u9884\u7B97\u5E74\u5EA6",prop:"baseProjSetYear"},{default:t(()=>{var l;return[i(U,{modelValue:a.value.baseProjSetYear,"onUpdate:modelValue":s[3]||(s[3]=e=>a.value.baseProjSetYear=e),type:"year",placeholder:"\u8BF7\u9009\u62E9",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:"\u9879\u76EE\u603B\u6295\u8D44",prop:"baseProjTotalAmount"},{default:t(()=>{var l;return[i(R,{modelValue:a.value.baseProjTotalAmount,"onUpdate:modelValue":s[4]||(s[4]=e=>a.value.baseProjTotalAmount=e),placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,class:"input-amount",disabled:((l=n.value)==null?void 0:l.baseProjTotalAmount)&&r.isSupplemented,onMousewheel:s[5]||(s[5]=ne(()=>{},["prevent"]))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),i(f,{span:8},{default:t(()=>[a.value.baseProjSetYear*1>=2023?(b(),v(m,{key:"baseProjDeclAmount1",label:"\u7533\u62A5\u5E74\u5EA6\u9884\u7B97",prop:"baseProjDeclAmount"},{default:t(()=>{var l;return[i(R,{modelValue:a.value.baseProjDeclAmount,"onUpdate:modelValue":s[6]||(s[6]=e=>a.value.baseProjDeclAmount=e),placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,class:"input-amount",disabled:((l=n.value)==null?void 0:l.baseProjDeclAmount)&&r.isSupplemented,onMousewheel:s[7]||(s[7]=ne(()=>{},["prevent"]))},null,8,["modelValue","disabled"])]}),_:1})):(b(),v(m,{key:"baseProjDeclAmount2",label:"\u7533\u62A5\u5E74\u5EA6\u9884\u7B97"},{default:t(()=>{var l;return[i(R,{modelValue:a.value.baseProjDeclAmount,"onUpdate:modelValue":s[8]||(s[8]=e=>a.value.baseProjDeclAmount=e),placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,class:"input-amount",disabled:((l=n.value)==null?void 0:l.baseProjDeclAmount)&&r.isSupplemented,onMousewheel:s[9]||(s[9]=ne(()=>{},["prevent"]))},null,8,["modelValue","disabled"])]}),_:1}))]),_:1}),i(f,{span:8},{default:t(()=>[i(m,{label:"\u5EFA\u8BBE\u5C42\u7EA7",prop:"baseProjConsClass"},{default:t(()=>{var l;return[i(D,{modelValue:a.value.baseProjConsClass,"onUpdate:modelValue":s[10]||(s[10]=e=>a.value.baseProjConsClass=e),placeholder:"\u8BF7\u9009\u62E9",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(O,{key:p,label:o.label,value:o.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),((T=(A=r.basicInfoData)==null?void 0:A.baseConstructionType)==null?void 0:T.includes("03"))&&!((q=($=r.basicInfoData)==null?void 0:$.baseConstructionType)!=null&&q.includes("01"))?M("",!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:"\u8D2F\u901A\u5C42\u7EA7",prop:"baseLowestLevel"},{default:t(()=>{var o;return[i(D,{modelValue:a.value.baseLowestLevel,"onUpdate:modelValue":s[11]||(s[11]=p=>a.value.baseLowestLevel=p),placeholder:"\u8BF7\u9009\u62E9",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(j=>j.type==="LINK_UP_LEVEL"),(j,C)=>(b(),v(O,{key:C,label:j.label,value:j.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})):(b(),v(m,{key:1,label:"\u8D2F\u901A\u5C42\u7EA7"},{default:t(()=>{var o;return[i(D,{modelValue:a.value.baseLowestLevel,"onUpdate:modelValue":s[12]||(s[12]=p=>a.value.baseLowestLevel=p),placeholder:"\u8BF7\u9009\u62E9",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(j=>j.type==="LINK_UP_LEVEL"),(j,C)=>(b(),v(O,{key:C,label:j.label,value:j.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1}))]}),_:1})),((H=r.basicInfoData)==null?void 0:H.baseProjType)!=="01"?(b(),v(f,{key:1,span:24},{default:t(()=>[a.value.missing?(b(),v(m,{key:"baseHistorProjs2",label:"\u5386\u5E74\u9879\u76EE\u540D\u79F0"},{default:t(()=>[Ee,i(_,{modelValue:a.value.missing,"onUpdate:modelValue":s[14]||(s[14]=l=>a.value.missing=l),disabled:r.isSupplemented},null,8,["modelValue","disabled"])]),_:1})):(b(),v(m,{key:"baseHistorProjs1",label:"\u5386\u5E74\u9879\u76EE\u540D\u79F0",prop:"baseHistorProjs"},{default:t(()=>{var l;return[Fe,i(_,{modelValue:a.value.missing,"onUpdate:modelValue":s[13]||(s[13]=e=>a.value.missing=e),disabled:r.isSupplemented},null,8,["modelValue","disabled"]),a.value.missing?M("",!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(()=>[g("\u5173\u8054\u5386\u5E74\u9879\u76EE")]),_:1},8,["disabled"])]),i(h,{pagination:!1,style:{width:"100%"},column:je,data:a.value.baseHistorProjs,"empty-temp":!1},{action:t(({scope:e})=>{var o;return[((o=n.value)==null?void 0:o.baseHistorProjId)&&r.isSupplemented?(b(),S("span",De,"-")):(b(),S("a",{key:0,class:"text-danger",onClick:p=>ke(e.$index)},"\u5220\u9664",8,Oe))]}),_:1},8,["data"])],64))]}),_:1}))]),_:1})):M("",!0),i(f,{span:24},{default:t(()=>[i(m,{label:"\u9884\u7B97\u6765\u6E90",prop:"baseProjAmountOri"},{default:t(()=>{var l;return[i(ee,{modelValue:a.value.baseProjAmountOri,"onUpdate:modelValue":s[15]||(s[15]=e=>a.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=a.value.baseProjAmountOri)!=null&&l.includes("00")?(b(),v(m,{key:0,label:"\u9884\u7B97\u6765\u6E90\u8BF4\u660E",prop:"baseBasisAmountOri"},{default:t(()=>{var e;return[i(c,{modelValue:a.value.baseBasisAmountOri,"onUpdate:modelValue":s[16]||(s[16]=o=>a.value.baseBasisAmountOri=o),type:"textarea","show-word-limit":"",placeholder:"\u8BF7\u586B\u5199",maxlength:150,disabled:((e=n.value)==null?void 0:e.baseBasisAmountOri)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})):(b(),v(m,{key:1,label:"\u9884\u7B97\u6765\u6E90\u8BF4\u660E"},{default:t(()=>{var e;return[i(c,{modelValue:a.value.baseBasisAmountOri,"onUpdate:modelValue":s[17]||(s[17]=o=>a.value.baseBasisAmountOri=o),type:"textarea","show-word-limit":"",placeholder:"\u8BF7\u586B\u5199",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:"\u7ACB\u9879\u4F9D\u636E",prop:"baseProjBasis"},{default:t(()=>{var l;return[i(h,{ref_key:"tableListRef",ref:me,pagination:!1,style:{width:"100%"},column:((l=n.value)==null?void 0:l.baseProjBasis)&&r.isSupplemented?ye:Pe,data:B.value,onSelectionChange:Se},{fileName:t(({scope:e})=>[a.value.baseProjBasis&&a.value.baseProjBasis.map(o=>o.value).includes(e.row.value)?(b(),v(m,{key:0},{default:t(()=>{var o,p,j;return[i(c,{value:(j=(p=(o=a.value.baseProjBasis[a.value.baseProjBasis.findIndex(C=>C.value===e.row.value)])==null?void 0:o.fileList)==null?void 0:p[0])==null?void 0:j.name,placeholder:"\u8BF7\u8F93\u5165",maxlength:50,disabled:!0},null,8,["value"])]}),_:2},1024)):(b(),v(c,{key:1,disabled:!0}))]),action:t(({scope:e})=>[a.value.baseProjBasis&&a.value.baseProjBasis.map(o=>o.value).includes(e.row.value)?(b(),v(m,{key:0,class:"basicUploadItem",rules:{required:!0,message:"\u8BF7\u4E0A\u4F20"},prop:`baseProjBasis[${a.value.baseProjBasis.findIndex(o=>o.value===e.row.value)}].fileList`},{default:t(()=>[i(x,{ref:"materialUploadRef","file-list":a.value.baseProjBasis[a.value.baseProjBasis.findIndex(o=>o.value===e.row.value)].fileList,"onUpdate:fileList":o=>a.value.baseProjBasis[a.value.baseProjBasis.findIndex(p=>p.value===e.row.value)].fileList=o,class:"flex items-center flex-col w-full",action:d(N),"on-success":o=>d(K)(o,a.value.baseProjBasis[a.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?void 0: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(()=>[g("\u4E0A\u4F20")]),_: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",Ne,"\u4E0A\u4F20"))]),_:1},8,["column","data"])]}),_:1})]),_:1}),i(f,{span:24},{default:t(()=>[i(m,{label:"\u7ACB\u9879\u4F9D\u636E\u8BF4\u660E",prop:"baseBasisEstablish"},{default:t(()=>{var l;return[i(c,{modelValue:a.value.baseBasisEstablish,"onUpdate:modelValue":s[18]||(s[18]=e=>a.value.baseBasisEstablish=e),type:"textarea","show-word-limit":"",placeholder:"\u8BF7\u586B\u5199",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:"\u9879\u76EE\u6982\u8FF0",prop:"baseProjIntro"},{default:t(()=>{var l;return[i(c,{modelValue:a.value.baseProjIntro,"onUpdate:modelValue":s[19]||(s[19]=e=>a.value.baseProjIntro=e),type:"textarea","show-word-limit":"",placeholder:"\u8BF7\u586B\u5199",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(()=>[a.value.baseProjSetYear*1>=2023?(b(),v(m,{key:0,label:"\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548",prop:"beseExpectedResults"},{default:t(()=>{var l;return[i(h,{pagination:!1,style:{width:"100%"},column:pe,data:a.value.beseExpectedResults,"empty-temp":!1},{action:t(({scope:e})=>{var o;return[((o=n.value)==null?void 0: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)},"\u7F16\u8F91",8,Ie),y("a",{class:"text-danger",onClick:p=>be(e.$index)},"\u5220\u9664",8,Ye)],64))]}),_:1},8,["data"]),y("p",Ue,[i(w,{type:"primary",class:"w-full",plain:"",icon:"Plus",disabled:((l=n.value)==null?void 0:l.beseExpectedResults)&&r.isSupplemented,onClick:s[20]||(s[20]=()=>X())},{default:t(()=>[g("\u6DFB\u52A0")]),_:1},8,["disabled"])])]}),_:1})):(b(),v(m,{key:1,label:"\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548"},{default:t(()=>{var l;return[i(h,{pagination:!1,style:{width:"100%"},column:pe,data:a.value.beseExpectedResults,"empty-temp":!1},{action:t(({scope:e})=>{var o;return[((o=n.value)==null?void 0: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)},"\u7F16\u8F91",8,_e),y("a",{class:"text-danger",onClick:p=>be(e.$index)},"\u5220\u9664",8,Te)],64))]}),_:1},8,["data"]),y("p",$e,[i(w,{type:"primary",class:"w-full",plain:"",icon:"Plus",disabled:((l=n.value)==null?void 0:l.beseExpectedResults)&&r.isSupplemented,onClick:s[21]||(s[21]=()=>X())},{default:t(()=>[g("\u6DFB\u52A0")]),_:1},8,["disabled"])])]}),_:1}))]),_:1}),i(f,{span:8},{default:t(()=>{var l;return[a.value.baseProjSetYear*1<2023?(b(),v(m,{key:0,label:"\u9879\u76EE\u7533\u62A5\u4E66"},{default:t(()=>[i(x,{"file-list":a.value.baseProjApplyFile,"onUpdate:fileList":s[22]||(s[22]=e=>a.value.baseProjApplyFile=e),class:"w-full",action:d(N),"on-success":e=>d(K)(e,a.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?void 0:e.baseProjApplyFile)&&!!((p=JSON.parse((o=n.value)==null?void 0:o.baseProjApplyFile))!=null&&p.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",qe,"\u652F\u6301"+G(d(ie))+"\u6587\u4EF6",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(()=>[g("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})):a.value.baseProjSetYear*1>=2023&&["01","02","04","05"].includes((l=r.basicInfoData)==null?void 0:l.baseProjType)?(b(),v(m,{key:1,label:"\u9879\u76EE\u7533\u62A5\u4E66",prop:"baseProjApplyFile"},{default:t(()=>[i(x,{"file-list":a.value.baseProjApplyFile,"onUpdate:fileList":s[23]||(s[23]=e=>a.value.baseProjApplyFile=e),class:"w-full",action:d(N),"on-success":e=>d(K)(e,a.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?void 0:e.baseProjApplyFile)&&!!((p=JSON.parse((o=n.value)==null?void 0:o.baseProjApplyFile))!=null&&p.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",He,"\u652F\u6301"+G(d(ie))+"\u6587\u4EF6",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(()=>[g("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})):M("",!0)]}),_:1}),((J=r.basicInfoData)==null?void 0:J.baseProjType)==="01"||((L=r.basicInfoData)==null?void 0:L.baseProjType)==="02"?(b(),v(f,{key:2,span:8},{default:t(()=>[i(m,{label:"\u53EF\u884C\u6027\u7814\u7A76\u62A5\u544A",prop:"baseResearchReportFile"},{default:t(()=>[i(x,{"file-list":a.value.baseResearchReportFile,"onUpdate:fileList":s[24]||(s[24]=l=>a.value.baseResearchReportFile=l),class:"w-full",action:d(N),"on-success":l=>d(K)(l,a.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?void 0:l.baseResearchReportFile)&&!!((o=JSON.parse((e=n.value)==null?void 0:e.baseResearchReportFile))!=null&&o.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",Je,"\u652F\u6301"+G(d(ie))+"\u6587\u4EF6",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(()=>[g("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})]),_:1})):M("",!0),i(f,{span:8},{default:t(()=>[i(m,{label:"\u5176\u4ED6\u9644\u4EF6"},{default:t(()=>[i(x,{"file-list":a.value.baseProjOtherFile,"onUpdate:fileList":s[25]||(s[25]=l=>a.value.baseProjOtherFile=l),class:"w-full",action:d(N),"on-success":l=>d(K)(l,a.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?void 0:l.baseProjOtherFile)&&!!((o=JSON.parse((e=n.value)==null?void 0:e.baseProjOtherFile))!=null&&o.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",Me,"\u652F\u6301"+G(d(ie))+"\u6587\u4EF6",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(()=>[g("\u4E0A\u4F20\u6587\u4EF6")]),_: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:"\u5907\u6CE8"},{default:t(()=>{var l;return[i(c,{modelValue:a.value.baseProjRemark,"onUpdate:modelValue":s[26]||(s[26]=e=>a.value.baseProjRemark=e),type:"textarea",placeholder:"\u8BF7\u8F93\u5165",disabled:((l=n.value)==null?void 0:l.baseProjRemark)&&r.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1})]}),_:1})]),_:1},8,["model","rules"]),i(he,{visible:I.visible,data:I.data,onGetProjectList:ge,onClose:s[27]||(s[27]=A=>I.visible=!1)},null,8,["visible","data"]),i(Ae,{visible:Y.visible,data:Y.data,onSetContent:Ve,onClose:s[28]||(s[28]=A=>Y.visible=!1)},null,8,["visible","data"])],64)}}});export{Ze as default};