|
- import{d as Qe,x as Ze,B as ce,C as el,r as V,b as $,o as ll,J as K,c as y,e as d,f as k,h as t,i as r,j as m,G as f,g as O,k as T,F as L,H as A,t as H,u as N,T as Q,L as al,X as tl}from"./index.88314652.js";import{h as rl,i as ol,f as sl,c as Pe,b as il,r as ul}from"./uploadAction.a771741b.js";import{c as nl}from"./index.52f0c4e2.js";import{_ as dl}from"./index.ce78f549.js";import pl from"./userDialog.a43047d4.js";import ml from"./relatedProjectDialog.1f9b88c5.js";import bl from"./projectContentDialog.4a315de8.js";import{a as fl}from"./indicatorTemplate.d39a8306.js";import{u as je}from"./validate.e0f99e8b.js";import"./unitManage.f0f6d1ad.js";import"./renewalProjectCapitalDeclare.923464d2.js";const gl={class:"text-right w-full mb-8"},vl=["onClick"],yl=["onClick"],Cl={class:"text-right w-full mb-8"},cl=["onClick"],Pl=["onClick"],jl={key:1,class:"text-info cursor-not-allowed"},Vl=["onClick"],hl=["onClick"],kl={class:"text-right w-full mt-8"},Ol={class:"flex"},wl={class:"dialog-footer"},Tl=Qe({name:"basicInfo"}),$l=Object.assign(Tl,{props:{detailData:{type:Object,default:()=>({})},dictionaryList:{type:Array,default:()=>[]},declareAmount:{type:Number}},emits:["changeIsFirst","getBasicInfoData","reuseItem","changeProjectTypeResetForm"],setup(v,{expose:Ve,emit:he}){const J=v,ke=Ze(),Oe=ce.dictStore.uploadUrl,Z=el(ce.userStore).userInfo||{},a=V({baseProjIsConfidentiality:"01",buildOrgName:Z.value.empPosUnitName,beseExpectedResults:[],projectType:"01"}),ee=V(),le=(l,e,i)=>{if(e==="")return i(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"));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("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"))},ae=(l,e,i)=>{e||i(),a.value.responsibleMan===a.value.contactName&&a.value.responsibleManMobile===a.value.contactPhone?i("\u9879\u76EE\u8D1F\u8D23\u4EBA\u4E0E\u9879\u76EE\u8054\u7CFB\u4EBA\u4E0D\u80FD\u76F8\u540C"):i()},te=(l,e,i)=>{e||i(),/^\d+(\.\d{1,6})?$/.test(e)?e*1>=1e8?i("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u5C0F\u4E8E100000000"):i():i("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u6700\u591A\u4FDD\u7559\u516D\u4F4D\u5C0F\u6570")},we={baseProjIsConfidentiality:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u6D89\u5BC6",trigger:"change"}],projectName:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0",trigger:"blur"}],baseConstructionType:[{required:!0,message:"\u8BF7\u9009\u62E9\u5185\u5BB9\u7C7B\u522B",trigger:"change"}],projectType:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u7C7B\u578B",trigger:"change"}],isFirst:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u9996\u6B21\u65B0\u5EFA",trigger:"change"}],isTemporaryAugment:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E3A\u4E34\u65F6\u589E\u8865",trigger:"change"}],responsibleMan:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA",trigger:"blur"},{validator:ae}],responsibleManMobile:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",trigger:"blur"},{validator:le,trigger:"blur"}],contactName:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8054\u7CFB\u4EBA",trigger:"blur"},{validator:ae}],contactPhone:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u8054\u7CFB\u4EBA\u624B\u673A\u53F7",trigger:"blur"},{validator:le,trigger:"blur"}],buildOrgName:[{required:!0,message:"\u8BF7\u8F93\u5165\u5EFA\u8BBE\u5355\u4F4D",trigger:"blur"}],orgCreditCode:je(),superOrg:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E3B\u7BA1\u5355\u4F4D:",trigger:"change"}],superOrgCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E3B\u7BA1\u5355\u4F4D:",trigger:"change"}],superOrgCreditCode:je(),baseProvManDeprtType:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7C7B\u578B:",trigger:"change"}],higherSuperOrg:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D",trigger:"change"}],higherSuperOrgCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D",trigger:"change"}],buildDuration:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u8D77\u6B62\u5E74\u9650",trigger:"change"}],buildLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u5C42\u7EA7",trigger:"change"}],lowestLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D2F\u901A\u5C42\u7EA7",trigger:"change"}],baseProjBasis:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ACB\u9879\u4F9D\u636E",trigger:"change"}],baseBasisEstablish:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ACB\u9879\u4F9D\u636E\u8BF4\u660E"}],developCode:[{required:!0,message:"\u8BF7\u586B\u5199\u53D1\u6539\u7F16\u7801",trigger:"blur"}],financialCode:[{required:!0,message:"\u8BF7\u586B\u5199\u8D22\u653F\u7F16\u7801",trigger:"blur"}],isCloud:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E0A\u4E91",trigger:"change"}],cloudType:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E91\u7C7B\u578B",trigger:"change"}],projectOverview:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u6982\u8FF0",trigger:"blur"}],baseHistorProjs:[{required:!0,message:"\u8BF7\u81F3\u5C11\u5173\u8054\u4E00\u4E2A\u5386\u5E74\u9879\u76EE"}],beseExpectedResults:[{required:!0,message:"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548"}],projectYear:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u5E74\u5EA6"}],declareAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u62A5\u91D1\u989D",trigger:"blur"},{validator:te,trigger:"blur"}],annualPlanAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D",trigger:"blur"},{validator:te,trigger:"blur"}]},S=V([{id:1,title:"\u56FD\u5BB6\u90E8\u59D4\u53CA\u7701\u5E02\u4E0B\u8FBE\u4EFB\u52A1\u3001\u76F8\u5173\u6587\u4EF6\u660E\u786E\u5EFA\u8BBE\u65F6\u95F4",fileName:"",fileList:[]},{id:2,title:"\u672C\u7EA7\u53CA\u4E0A\u7EA7\u9886\u5BFC\u6279\u793A",fileName:"",fileList:[]},{id:3,title:"\u91CD\u5927\u4EFB\u52A1",fileName:"",fileList:[]},{id:4,title:"\u91CD\u5927\u5171\u6027\u95EE\u9898",fileName:"",fileList:[]},{id:5,title:"\u91CD\u5927\u51B3\u7B56",fileName:"",fileList:[]},{id:6,title:"\u666E\u60E0\u6027\u60E0\u4F01\u5229\u6C11",fileName:"",fileList:[]},{id:7,title:"\u5176\u4ED6",fileName:"",fileList:[]}]),Te=[{type:"selection"},{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",slot:"fileName"},{label:"\u6587\u4EF6\uFF08\u652F\u6301pdf\u3001word\uFF09",slot:"action",width:300}],q=V(),Le=l=>{a.value.baseProjBasis=l.map(e=>e)},Ne=l=>{ee.value.validate(e=>{l(e)})},Se=l=>{var e,i;try{return((i=(e=l==null?void 0:l.baseProjBasis)==null?void 0:e.split("\uFF1B"))==null?void 0:i.map((u,n)=>{var C,c,P;const g=`[${(C=l.baseProjBasisFile)==null?void 0:C.replace(/}];/g,"}],")}]`;return{title:(P=(c=S.value)==null?void 0:c.find(j=>j.value===u))==null?void 0:P.title,fileList:l!=null&&l.baseProjBasisFile?ul(JSON.parse(g)[n]):[],value:u}}))||[]}catch{return[]}},De=l=>{var u,n,g,C,c;const e=Se(l);a.value={baseProjIsConfidentiality:"01",projectName:l.projectName,projectType:l.projectType?l.projectType:"01",isFirst:l.isFirst,baseConstructionType:((u=l==null?void 0:l.baseConstructionType)==null?void 0:u.split("\uFF1B"))||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:e,baseBasisEstablish:l.baseBasisEstablish||"",developCode:l.developCode,financialCode:l.financialCode,projectOverview:l.projectOverview,projectIntroduction:l.projectIntroduction,baseHistorProjs:((n=l==null?void 0:l.baseHistorProjId)==null?void 0:n.split("\uFF1B").map((P,j)=>({baseProjId:P,baseProjName:l==null?void 0:l.baseHistorProjName.split("\uFF1B")[j],baseProjSetYear:l==null?void 0:l.baseHistorProjYear.split("\uFF1B")[j]})))||[],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 i=[];try{i=a.value.baseProjBasis?JSON.parse(JSON.stringify(a.value.baseProjBasis)):[]}catch{i=[]}if((C=(g=l==null?void 0:l.baseProjBasis)==null?void 0:g.split("\uFF1B"))!=null&&C.length){const P=(c=l==null?void 0:l.baseProjBasis)==null?void 0:c.split("\uFF1B");S.value&&S.value.forEach(j=>{var F,D;P.includes(j.value)&&(j.fileList=(F=i.find(I=>I.value===j.value))==null?void 0:F.fileList,j.fileName=(D=i.find(I=>I.value===j.value))==null?void 0:D.fileName,q.value.toggleRowSelect(j,!0))})}},x=he,xe=l=>{x("changeIsFirst",l)},b=$({unitVisible:!1,data:void 0,title:void 0,type:void 0,params:void 0}),Be=()=>{b.unitVisible=!0,b.title="\u4E3B\u7BA1\u5355\u4F4D",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}]:[]},_e=()=>{b.unitVisible=!1},Ue=l=>{b.title==="\u4E3B\u7BA1\u5355\u4F4D"?(a.value.superOrgCode=(l==null?void 0:l[0].key)||void 0,a.value.superOrg=(l==null?void 0:l[0].title)||void 0,oe("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)},Ye=()=>{b.title="\u4E0A\u7EA7\u6761\u7EBF\u4E3B\u7BA1\u5355\u4F4D",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}]:[]},B=V(!1),_=$({businessStripName:void 0}),Ie=async()=>{E(),B.value=!0,await al(),q.value.setRadio(a.value.higherSuperOrgCode||"")},Me=[{type:"radio",key:"businessStripCode",width:"60"},{label:"\u5355\u4F4D\u540D\u79F0",key:"businessStripName",prop:"businessStripName",minWidth:"150",showOverflowTooltip:!0},{label:"\u5355\u4F4D\u7F16\u7801",key:"businessStripCode",prop:"businessStripCode",minWidth:"150",showOverflowTooltip:!0}],re=V(),E=async()=>{const l=await nl({..._});re.value=l.data},$e=()=>{_.businessStripName=void 0,E()},G=V(),qe=l=>{G.value=l},Ee=()=>{B.value=!1,a.value.higherSuperOrgCode=G.value.businessStripCode,a.value.higherSuperOrg=G.value.businessStripName},z=V({}),oe=async(l,e)=>{const i=await tl(e||Z.value.empPosUnitCode);i.data&&i.data.unifiedSocialCreditCode&&(z.value[l]=!!i.data.unifiedSocialCreditCode,a.value[l]=i.data.unifiedSocialCreditCode||a.value[l])},R=$({visible:!1,params:{}}),se=V(),ie=V(),ue=(l,e)=>{R.visible=!0,se.value=l,ie.value=e},Re=l=>{a.value[se.value]=l.name,a.value[ie.value]=l.phoneNo},Fe=(l,e)=>{a.value.higherSuperOrgCode="",a.value.higherSuperOrg=""},ne=[{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"}],U=$({visible:!1}),de=()=>{U.visible=!0,U.data=a.value.baseHistorProjs},Ae=l=>{a.value.baseHistorProjs=l.map(e=>({baseProjName:e.projectName,baseProjSetYear:e.projectYear,baseProjId:e.id}))},pe=l=>{a.value.baseHistorProjs.splice(l,1)},He=[{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"}],Y=$({visible:!1,data:void 0}),W=V(),me=(l,e)=>{Y.data=l,Y.visible=!0,W.value=e},Je=l=>{W.value===void 0?a.value.beseExpectedResults.push(l):a.value.beseExpectedResults[W.value]=l},Ge=l=>{a.value.beseExpectedResults.splice(l,1)},ze=V(),We=async()=>{var e;const l=await fl({pageNumber:1,pageSize:1e4});ze.value=((e=l==null?void 0:l.data)==null?void 0:e.records)||[]};ll(()=>{We(),oe("orgCreditCode")}),K(()=>J.declareAmount,l=>{}),Ve({validForm:Ne,formData:a,setFormData:De}),K(()=>J.dictionaryList,l=>{var e;l&&(S.value=[],(e=J.dictionaryList)==null||e.filter(i=>i.type==="PROJECT_BASIS").forEach(i=>{S.value.push({title:i.label,fileName:"",fileList:[],value:i.value})}))}),K(()=>a.value,l=>{x("getBasicInfoData",a.value)},{deep:!0});const X=V(!1);function Xe(){console.log(X.value),X.value&&x("changeProjectTypeResetForm",a.value)}return(l,e)=>{const i=y("el-input"),u=y("el-form-item"),n=y("el-col"),g=y("el-radio"),C=y("el-radio-group"),c=y("el-button"),P=y("table-list"),j=y("el-checkbox"),F=y("el-checkbox-group"),D=y("el-date-picker"),I=y("el-upload"),be=y("el-input-number"),fe=y("el-row"),ge=y("el-form"),Ke=y("el-dialog");return d(),k(L,null,[t(ge,{ref_key:"formRef",ref:ee,model:a.value,rules:we,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:r(()=>[t(fe,{gutter:40},{default:r(()=>{var w,ve,ye,Ce;return[t(n,{span:24},{default:r(()=>[t(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"projectName"},{default:r(()=>[t(i,{modelValue:a.value.projectName,"onUpdate:modelValue":e[0]||(e[0]=o=>a.value.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"\u9879\u76EE\u7C7B\u578B",prop:"projectType"},{default:r(()=>{var o;return[t(C,{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=v.detailData)==null?void 0:o.status),onChange:Xe},{default:r(()=>[t(g,{label:"01"},{default:r(()=>e[40]||(e[40]=[m("\u9996\u6B21\u5EFA\u8BBE")])),_:1}),t(g,{label:"02"},{default:r(()=>e[41]||(e[41]=[m("\u8FED\u4EE3\u5347\u7EA7")])),_:1}),t(g,{label:"03"},{default:r(()=>e[42]||(e[42]=[m("\u7ED3\u8F6C\u5EFA\u8BBE")])),_:1}),t(g,{label:"04"},{default:r(()=>e[43]||(e[43]=[m("\u65B0\u8FD0\u7EF4")])),_:1}),t(g,{label:"05"},{default:r(()=>e[44]||(e[44]=[m("\u7EED\u8FD0\u7EF4")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[a.value.projectType!=="01"?(d(),f(u,{key:0,label:"\u5386\u5E74\u9879\u76EE\u540D\u79F0",prop:"baseHistorProjs"},{default:r(()=>[O("p",gl,[t(c,{type:"primary",onClick:de},{default:r(()=>e[45]||(e[45]=[m("\u5173\u8054\u5386\u5E74\u9879\u76EE")])),_:1})]),t(P,{pagination:!1,style:{width:"100%"},column:ne,data:a.value.baseHistorProjs,"empty-temp":!1},{action:r(({scope:o})=>[a.value.projectType==="03"?(d(),k("a",{key:0,class:"text-primary",onClick:s=>{x("reuseItem",a.value.baseHistorProjs[o.$index]),X.value=!0}},"\u590D\u7528\u4FE1\u606F",8,vl)):T("",!0),O("a",{class:"text-danger",onClick:s=>pe(o.$index)},"\u5220\u9664",8,yl)]),_:1},8,["data"])]),_:1})):(d(),f(u,{key:1,label:"\u5386\u5E74\u9879\u76EE\u540D\u79F0"},{default:r(()=>[O("p",Cl,[t(c,{type:"primary",onClick:de},{default:r(()=>e[46]||(e[46]=[m("\u5173\u8054\u5386\u5E74\u9879\u76EE")])),_:1})]),t(P,{pagination:!1,style:{width:"100%"},column:ne,data:a.value.baseHistorProjs,"empty-temp":!1},{action:r(({scope:o})=>[a.value.projectType==="03"?(d(),k("a",{key:0,class:"text-primary",onClick:s=>x("reuseItem",a.value.baseHistorProjs[o.$index])},"\u590D\u7528\u4FE1\u606F",8,cl)):T("",!0),O("a",{class:"text-danger",onClick:s=>pe(o.$index)},"\u5220\u9664",8,Pl)]),_:1},8,["data"])]),_:1}))]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u5185\u5BB9\u7C7B\u522B",prop:"baseConstructionType"},{default:r(()=>[t(F,{modelValue:a.value.baseConstructionType,"onUpdate:modelValue":e[2]||(e[2]=o=>a.value.baseConstructionType=o)},{default:r(()=>{var o;return[(d(!0),k(L,null,A((o=v.dictionaryList)==null?void 0:o.filter(s=>s.type==="CONTENT_TYPE"),(s,p)=>(d(),f(j,{key:p,label:s.value},{default:r(()=>[m(H(s.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1}),a.value.baseProjIsConfidentiality==="01"?(d(),k(L,{key:0},[t(n,{span:12},{default:r(()=>[t(u,{label:"\u662F\u5426\u9996\u6B21\u65B0\u5EFA",prop:"isFirst"},{default:r(()=>{var o;return[t(C,{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=v.detailData)==null?void 0:o.status),onChange:xe},{default:r(()=>[t(g,{label:1},{default:r(()=>e[47]||(e[47]=[m("\u662F")])),_:1}),t(g,{label:0},{default:r(()=>e[48]||(e[48]=[m("\u5426")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),N(ke).name!="planEdit"?(d(),f(n,{key:0,span:24},{default:r(()=>[t(u,{label:"\u662F\u5426\u4E34\u65F6\u589E\u8865",prop:"isTemporaryAugment"},{default:r(()=>{var o;return[t(C,{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=v.detailData)==null?void 0:o.status)},{default:r(()=>[t(g,{label:1},{default:r(()=>e[49]||(e[49]=[m("\u662F")])),_:1}),t(g,{label:0},{default:r(()=>e[50]||(e[50]=[m("\u5426")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})):T("",!0)],64)):T("",!0),t(n,{span:12},{default:r(()=>[t(u,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",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:"\u8BF7\u9009\u62E9\uFF0C\u6E29\u99A8\u63D0\u793A\uFF1A\u9879\u76EE\u8D1F\u8D23\u4EBA\u8BF7\u586B\u5199\u9886\u5BFC\u4FE1\u606F",onClick:e[6]||(e[6]=o=>ue("responsibleMan","responsibleManMobile"))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",prop:"responsibleManMobile"},{default:r(()=>[t(i,{modelValue:a.value.responsibleManMobile,"onUpdate:modelValue":e[7]||(e[7]=o=>a.value.responsibleManMobile=o),maxlength:"11",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u9879\u76EE\u8054\u7CFB\u4EBA",prop:"contactName"},{default:r(()=>[t(i,{modelValue:a.value.contactName,"onUpdate:modelValue":e[8]||(e[8]=o=>a.value.contactName=o),maxlength:"50",placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:e[9]||(e[9]=o=>ue("contactName","contactPhone"))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u9879\u76EE\u8054\u7CFB\u4EBA\u624B\u673A\u53F7",prop:"contactPhone"},{default:r(()=>[t(i,{modelValue:a.value.contactPhone,"onUpdate:modelValue":e[10]||(e[10]=o=>a.value.contactPhone=o),maxlength:"11",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u5EFA\u8BBE\u5355\u4F4D",prop:"buildOrgName"},{default:r(()=>[t(i,{modelValue:a.value.buildOrgName,"onUpdate:modelValue":e[11]||(e[11]=o=>a.value.buildOrgName=o),placeholder:"\u8BF7\u8F93\u5165",disabled:!0},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u5EFA\u8BBE\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",prop:"orgCreditCode"},{default:r(()=>[t(i,{modelValue:a.value.orgCreditCode,"onUpdate:modelValue":e[12]||(e[12]=o=>a.value.orgCreditCode=o),maxlength:"18",placeholder:"\u8BF7\u8F93\u5165",disabled:z.value.orgCreditCode},null,8,["modelValue","disabled"])]),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7C7B\u578B",prop:"baseProvManDeprtType"},{default:r(()=>{var o;return[t(C,{modelValue:a.value.baseProvManDeprtType,"onUpdate:modelValue":e[13]||(e[13]=s=>a.value.baseProvManDeprtType=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status),onChange:Fe},{default:r(()=>[t(g,{label:"1"},{default:r(()=>e[51]||(e[51]=[m("\u7701\u7EA7")])),_:1}),t(g,{label:"2"},{default:r(()=>e[52]||(e[52]=[m("\u975E\u7701\u7EA7")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D",prop:"higherSuperOrg"},{default:r(()=>{var o;return[l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status)?(d(),f(i,{key:0,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[14]||(e[14]=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[15]||(e[15]=s=>a.value.higherSuperOrg=s),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:Ie},null,8,["modelValue"])):(d(),f(i,{key:2,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[16]||(e[16]=s=>a.value.higherSuperOrg=s),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:Ye},null,8,["modelValue"]))]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u672C\u7EA7\u4E3B\u7BA1\u5355\u4F4D",prop:"superOrg"},{default:r(()=>{var o,s;return[l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status)?(d(),f(i,{key:0,modelValue:a.value.superOrg,"onUpdate:modelValue":e[17]||(e[17]=p=>a.value.superOrg=p),disabled:""},null,8,["modelValue"])):(d(),f(i,{key:1,modelValue:a.value.superOrg,"onUpdate:modelValue":e[18]||(e[18]=p=>a.value.superOrg=p),placeholder:"\u8BF7\u9009\u62E9",readonly:"",disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((s=v.detailData)==null?void 0:s.status),onClick:Be},null,8,["modelValue","disabled"]))]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u672C\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801",prop:"superOrgCreditCode"},{default:r(()=>{var o;return[t(i,{modelValue:a.value.superOrgCreditCode,"onUpdate:modelValue":e[19]||(e[19]=s=>a.value.superOrgCreditCode=s),placeholder:"\u8BF7\u586B\u5199",disabled:z.value.superOrgCreditCode||l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status)},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),a.value.baseProjIsConfidentiality==="01"?(d(),k(L,{key:1},[t(n,{span:24},{default:r(()=>[t(u,{label:"\u5EFA\u8BBE\u5C42\u7EA7",prop:"buildLevel"},{default:r(()=>[t(C,{modelValue:a.value.buildLevel,"onUpdate:modelValue":e[20]||(e[20]=o=>a.value.buildLevel=o)},{default:r(()=>{var o;return[(d(!0),k(L,null,A((o=v.dictionaryList)==null?void 0:o.filter(s=>s.type==="BUILD_LEVEL"),(s,p)=>(d(),f(g,{key:p,label:s.value},{default:r(()=>[m(H(s.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1}),((ve=(w=a.value)==null?void 0:w.baseConstructionType)==null?void 0:ve.includes("03"))&&!((Ce=(ye=a.value)==null?void 0:ye.baseConstructionType)!=null&&Ce.includes("01"))?T("",!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:"\u8D2F\u901A\u5C42\u7EA7",prop:"lowestLevel"},{default:r(()=>[t(C,{modelValue:a.value.lowestLevel,"onUpdate:modelValue":e[21]||(e[21]=p=>a.value.lowestLevel=p)},{default:r(()=>{var p;return[(d(!0),k(L,null,A((p=v.dictionaryList)==null?void 0:p.filter(h=>h.type==="BUILD_LEVEL"),(h,M)=>(d(),f(g,{key:M,label:h.value},{default:r(()=>[m(H(h.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})):(d(),f(u,{key:1,label:"\u8D2F\u901A\u5C42\u7EA7"},{default:r(()=>[t(C,{modelValue:a.value.lowestLevel,"onUpdate:modelValue":e[22]||(e[22]=p=>a.value.lowestLevel=p)},{default:r(()=>{var p;return[(d(!0),k(L,null,A((p=v.dictionaryList)==null?void 0:p.filter(h=>h.type==="BUILD_LEVEL"),(h,M)=>(d(),f(g,{key:M,label:h.value},{default:r(()=>[m(H(h.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1}))]}),_:1})),t(n,{span:12},{default:r(()=>[t(u,{label:"\u9884\u7B97\u5E74\u5EA6",prop:"projectYear"},{default:r(()=>{var o;return[t(D,{modelValue:a.value.projectYear,"onUpdate:modelValue":e[23]||(e[23]=s=>a.value.projectYear=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status),type:"year",placeholder:"\u8BF7\u9009\u62E9",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:"\u5EFA\u8BBE\u8D77\u6B62\u5E74\u9650",prop:"buildDuration"},{default:r(()=>[t(D,{modelValue:a.value.buildDuration,"onUpdate:modelValue":e[24]||(e[24]=o=>a.value.buildDuration=o),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"},null,8,["modelValue"])]),_:1})]),_:1})):T("",!0),t(n,{span:24},{default:r(()=>[t(u,{label:"\u7ACB\u9879\u4F9D\u636E\u6750\u6599",prop:"baseProjBasis"},{default:r(()=>[t(P,{ref_key:"tableListRef",ref:q,pagination:!1,style:{width:"100%"},column:Te,data:S.value,onSelectionChange:Le},{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,h;return[t(i,{value:(h=(p=(s=a.value.baseProjBasis[a.value.baseProjBasis.findIndex(M=>M.value===o.row.value)])==null?void 0:s.fileList)==null?void 0:p[0])==null?void 0:h.name,placeholder:"\u8BF7\u8F93\u5165",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:"\u8BF7\u4E0A\u4F20"},prop:`baseProjBasis[${a.value.baseProjBasis.findIndex(s=>s.value===o.row.value)}].fileList`},{default:r(()=>[t(I,{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:N(Oe),"on-success":s=>N(rl)(s,a.value.baseProjBasis[a.value.baseProjBasis.findIndex(p=>p.value===o.row.value)].fileList,!1),"on-error":N(ol),"before-upload":s=>N(sl)(s,{types:N(Pe)}),accept:N(Pe).map(s=>`.${s}`).join(","),"on-preview":N(il)},{trigger:r(()=>e[53]||(e[53]=[O("div",null,[O("a",null,"\u4E0A\u4F20")],-1)])),_:2},1032,["file-list","onUpdate:fileList","action","on-success","on-error","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(d(),k("span",jl,"\u4E0A\u4F20"))]),_:1},8,["data"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"\u7ACB\u9879\u4F9D\u636E\u8BF4\u660E",prop:"baseBasisEstablish"},{default:r(()=>[t(i,{modelValue:a.value.baseBasisEstablish,"onUpdate:modelValue":e[25]||(e[25]=o=>a.value.baseBasisEstablish=o),type:"textarea","show-word-limit":"",placeholder:"\u8BF7\u586B\u5199",maxlength:150},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"\u9879\u76EE\u6982\u8FF0",prop:"projectOverview"},{default:r(()=>[t(i,{modelValue:a.value.projectOverview,"onUpdate:modelValue":e[26]||(e[26]=o=>a.value.projectOverview=o),rows:4,type:"textarea",placeholder:"\u8BF7\u8F93\u5165","show-word-limit":"",maxlength:"2000"},null,8,["modelValue"])]),_:1})]),_:1}),l.$route.name==="declarePlan"||[10012,10016,10013].includes(v.detailData.status)?(d(),f(n,{key:2,span:24},{default:r(()=>[t(u,{label:"\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548",prop:"beseExpectedResults"},{default:r(()=>[t(P,{pagination:!1,style:{width:"100%"},column:He,data:a.value.beseExpectedResults,"empty-temp":!1},{action:r(({scope:o})=>[O("a",{onClick:s=>me(o.row,o.$index)},"\u7F16\u8F91",8,Vl),O("a",{class:"text-danger",onClick:s=>Ge(o.$index)},"\u5220\u9664",8,hl)]),_:1},8,["data"]),O("p",kl,[t(c,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:e[27]||(e[27]=()=>me())},{default:r(()=>e[54]||(e[54]=[m("\u6DFB\u52A0 ")])),_:1})])]),_:1})]),_:1})):T("",!0)],64)):T("",!0),a.value.baseProjIsConfidentiality==="02"?(d(),k(L,{key:2},[t(n,{span:12},{default:r(()=>[t(u,{label:"\u9884\u7B97\u5E74\u5EA6",prop:"projectYear"},{default:r(()=>{var o;return[t(D,{modelValue:a.value.projectYear,"onUpdate:modelValue":e[28]||(e[28]=s=>a.value.projectYear=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u7533\u62A5\u91D1\u989D",prop:"declareAmount"},{default:r(()=>[t(be,{modelValue:a.value.declareAmount,"onUpdate:modelValue":e[29]||(e[29]=o=>a.value.declareAmount=o),placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[30]||(e[30]=Q(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D",prop:"annualPlanAmount"},{default:r(()=>[t(be,{modelValue:a.value.annualPlanAmount,"onUpdate:modelValue":e[31]||(e[31]=o=>a.value.annualPlanAmount=o),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[32]||(e[32]=Q(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})],64)):T("",!0)]}),_:1})]),_:1},8,["model"]),t(dl,{visible:b.unitVisible,"show-checkbox":!1,"default-data":b.data,title:b.title,type:b.type,"default-props":b.defaultProps,params:b.params,onClose:_e,onGetSelectUnit:Ue},null,8,["visible","default-data","title","type","default-props","params"]),t(Ke,{"model-value":B.value,title:"\u4E0A\u7EA7\u6761\u7EBF\u4E3B\u7BA1\u5355\u4F4D",width:"60%",onClose:e[36]||(e[36]=w=>B.value=!1)},{footer:r(()=>[O("span",wl,[t(c,{onClick:e[35]||(e[35]=w=>B.value=!1)},{default:r(()=>e[57]||(e[57]=[m("\u5173\u95ED")])),_:1}),t(c,{type:"primary",onClick:Ee},{default:r(()=>e[58]||(e[58]=[m(" \u63D0\u4EA4 ")])),_:1})])]),default:r(()=>[t(ge,{model:_,size:"small","label-suffix":":",onSubmit:e[34]||(e[34]=Q(()=>{},["stop","prevent"]))},{default:r(()=>[t(fe,{gutter:16,class:"mb-16"},{default:r(()=>[t(n,{span:8},{default:r(()=>[t(u,{label:"\u5355\u4F4D\u540D\u79F0"},{default:r(()=>[t(i,{modelValue:_.businessStripName,"onUpdate:modelValue":e[33]||(e[33]=w=>_.businessStripName=w),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:16},{default:r(()=>[t(u,{class:"btn"},{default:r(()=>[O("div",Ol,[t(c,{type:"primary",onClick:E},{default:r(()=>e[55]||(e[55]=[m("\u67E5\u8BE2 ")])),_:1}),t(c,{onClick:$e},{default:r(()=>e[56]||(e[56]=[m("\u91CD\u7F6E ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(P,{ref_key:"tableListRef",ref:q,column:Me,data:re.value,pagination:!1,style:{height:"600px",overflow:"auto"},onGetTableData:E,onRadioChange:qe},null,8,["data"])]),_:1},8,["model-value"]),t(pl,{visible:R.visible,params:R.params,onClose:e[37]||(e[37]=w=>R.visible=!1),onGetUserData:Re},null,8,["visible","params"]),t(ml,{visible:U.visible,data:U.data,onGetProjectList:Ae,onClose:e[38]||(e[38]=w=>U.visible=!1)},null,8,["visible","data"]),t(bl,{visible:Y.visible,data:Y.data,onSetContent:Je,onClose:e[39]||(e[39]=w=>Y.visible=!1)},null,8,["visible","data"])],64)}}});export{$l as default};
|