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,B as Be,r as R,b as fe,J as se,c as P,e as b,f as S,h as i,i as t,T as ne,G as v,F as k,H as te,k as _,g as y,j as g,t as G,u as d}from"./index.0018c8ef.js";import Ae from"./relatedProjectDialog.8a078849.js";import Fe from"./projectContentDialog.23c94150.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.60337e0f.js";import"./renewalProjectCapitalDeclare.6453f8ba.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=Ce({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=Be.dictStore.uploadUrl,re=R(),s=R({beseExpectedResults:[]}),ue=R({}),ce=[{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=R([{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=>{s.value.baseProjBasis=u.map(a=>a)},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=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)},xe=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,L,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("\uFF1B").map((x,l)=>{var e,o;return{baseProjId:x,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:((O=u.apply)==null?void 0:O.baseProjAmountOri)&&((E=(D=u.apply)==null?void 0:D.baseProjAmountOri)==null?void 0:E.split("\uFF1B")),baseProjBasis:(A=(w=(T=u.apply)==null?void 0:T.baseProjBasis)==null?void 0:w.split("\uFF1B"))==null?void 0:A.map((x,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(Le=>Le.value===x))==null?void 0:c.title,fileList:(C=u.apply)!=null&&C.baseProjBasisFile?oe(JSON.parse(e)[l]):[],value:x}}),beseExpectedResults:((Z=u.apply)==null?void 0:Z.beseExpectedResults)&&JSON.parse((ee=u.apply)==null?void 0:ee.beseExpectedResults)||[],baseProjApplyFile:(L=u.apply)!=null&&L.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("\uFF1B"))!=null&&q.length){const x=(J=(H=u.apply)==null?void 0:H.baseProjBasis)==null?void 0:J.split("\uFF1B");B.value&&B.value.forEach(l=>{var e,o;x.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:"\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"}]},(a=re.value)==null||a.clearValidate()},{deep:!0}),se(()=>s.value.baseProjSetYear,u=>{xe("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"),L=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,x;return[i(f,{span:8},{default:t(()=>[i(m,{label:"\u53D1\u6539\u7F16\u7801",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:"\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(j,{modelValue:s.value.setProjCodeFinan,"onUpdate:modelValue":a[1]||(a[1]=e=>s.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(h,{modelValue:s.value.baseProjTime,"onUpdate:modelValue":a[2]||(a[2]=e=>s.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(h,{modelValue:s.value.baseProjSetYear,"onUpdate:modelValue":a[3]||(a[3]=e=>s.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(O,{modelValue:s.value.baseProjTotalAmount,"onUpdate:modelValue":a[4]||(a[4]=e=>s.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: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:"\u7533\u62A5\u5E74\u5EA6\u9884\u7B97",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:"\u8BF7\u586B\u5199",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:"\u7533\u62A5\u5E74\u5EA6\u9884\u7B97"},{default:t(()=>{var l;return[i(O,{modelValue:s.value.baseProjDeclAmount,"onUpdate:modelValue":a[8]||(a[8]=e=>s.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:a[9]||(a[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(E,{modelValue:s.value.baseProjConsClass,"onUpdate:modelValue":a[10]||(a[10]=e=>s.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(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?void 0:$.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:"\u8D2F\u901A\u5C42\u7EA7",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:"\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(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:"\u8D2F\u901A\u5C42\u7EA7"},{default:t(()=>{var o;return[i(E,{modelValue:s.value.baseLowestLevel,"onUpdate:modelValue":a[12]||(a[12]=p=>s.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(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:"\u5386\u5E74\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a[31]||(a[31]=y("span",{class:"text-[#666666]"},"\u662F\u5426\u7F3A\u5931\uFF1A",-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:"\u5386\u5E74\u9879\u76EE\u540D\u79F0",prop:"baseHistorProjs"},{default:t(()=>{var l;return[a[30]||(a[30]=y("span",{class:"text-[#666666]"},"\u662F\u5426\u7F3A\u5931\uFF1A",-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("\u5173\u8054\u5386\u5E74\u9879\u76EE")])),_: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?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})):_("",!0),i(f,{span:24},{default:t(()=>[i(m,{label:"\u9884\u7B97\u6765\u6E90",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:"\u9884\u7B97\u6765\u6E90\u8BF4\u660E",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:"\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(j,{modelValue:s.value.baseBasisAmountOri,"onUpdate:modelValue":a[17]||(a[17]=o=>s.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(A,{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})=>[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:"\u8BF7\u8F93\u5165",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:"\u8BF7\u4E0A\u4F20"},prop:`baseProjBasis[${s.value.baseProjBasis.findIndex(o=>o.value===e.row.value)}].fileList`},{default:t(()=>[i(L,{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?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(()=>a[32]||(a[32]=[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",Ee,"\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(j,{modelValue:s.value.baseBasisEstablish,"onUpdate:modelValue":a[18]||(a[18]=e=>s.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(j,{modelValue:s.value.baseProjIntro,"onUpdate:modelValue":a[19]||(a[19]=e=>s.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(()=>[s.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(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?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,Ne),y("a",{class:"text-danger",onClick:p=>be(e.$index)},"\u5220\u9664",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("\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(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?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,Ue),y("a",{class:"text-danger",onClick:p=>be(e.$index)},"\u5220\u9664",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("\u6DFB\u52A0")])),_: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:"\u9879\u76EE\u7533\u62A5\u4E66"},{default:t(()=>[i(L,{"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?void 0:e.baseProjApplyFile)&&!!((p=JSON.parse((o=n.value)==null?void 0:o.baseProjApplyFile))!=null&&p.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",$e,"\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(()=>a[35]||(a[35]=[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})):s.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(L,{"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?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(()=>a[36]||(a[36]=[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})):_("",!0)]}),_:1}),((M=r.basicInfoData)==null?void 0:M.baseProjType)==="01"||((x=r.basicInfoData)==null?void 0:x.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(L,{"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?void 0:l.baseResearchReportFile)&&!!((o=JSON.parse((e=n.value)==null?void 0:e.baseResearchReportFile))!=null&&o.length)&&r.isSupplemented)}},{tip:t(()=>[y("div",He,"\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(()=>a[37]||(a[37]=[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})):_("",!0),i(f,{span:8},{default:t(()=>[i(m,{label:"\u5176\u4ED6\u9644\u4EF6"},{default:t(()=>[i(L,{"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?void 0:l.baseProjOtherFile)&&!!((o=JSON.parse((e=n.value)==null?void 0:e.baseProjOtherFile))!=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.baseProjOtherFile)&&r.isSupplemented},{default:t(()=>a[38]||(a[38]=[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(j,{modelValue:s.value.baseProjRemark,"onUpdate:modelValue":a[26]||(a[26]=e=>s.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(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};