|
- import{d as Ke,x as Qe,B as Ce,C as Ze,r as c,b as R,o as el,J as le,c as y,e as d,f as j,h as t,i as r,j as m,G as f,g as V,k as T,F as D,H as z,t as W,u as x,T as ce,L as ll,X as al}from"./index.ffeaed1d.js";import{h as tl,i as rl,f as ol,c as Pe,b as sl,r as il}from"./uploadAction.89deb152.js";import{c as ul}from"./index.d3607374.js";import{_ as nl}from"./index.b920e3e1.js";import dl from"./userDialog.e6d5bfd4.js";import pl from"./relatedProjectDialog.9ec641e2.js";import ml from"./projectContentDialog.b84a212b.js";import{a as bl}from"./indicatorTemplate.c2e4af96.js";import{u as je}from"./validate.e0f99e8b.js";import"./unitManage.4601baf2.js";import"./renewalProjectCapitalDeclare.3717d516.js";const fl={class:"text-right w-full mb-8"},gl=["onClick"],vl=["onClick"],yl={class:"text-right w-full mb-8"},Cl=["onClick"],cl=["onClick"],Pl={key:1,class:"text-info cursor-not-allowed"},jl=["onClick"],Vl=["onClick"],kl={class:"text-right w-full mt-8"},Ol={class:"flex"},hl={class:"dialog-footer"},wl=Ke({name:"basicInfo"}),Yl=Object.assign(wl,{props:{detailData:{type:Object,default:()=>({})},dictionaryList:{type:Array,default:()=>[]},declareAmount:{type:Number}},emits:["changeIsFirst","getBasicInfoData","reuseItem","changeProjectTypeResetForm"],setup(v,{expose:Ve,emit:ke}){const X=v,Oe=Qe(),he=Ce.dictStore.uploadUrl,ae=Ze(Ce.userStore).userInfo||{},a=c({baseProjIsConfidentiality:"01",buildOrgName:ae.value.empPosUnitName,beseExpectedResults:[],projectType:"01"}),te=c(),re=(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"))},oe=(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()},se=(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:oe}],responsibleManMobile:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",trigger:"blur"},{validator:re,trigger:"blur"}],contactName:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8054\u7CFB\u4EBA",trigger:"blur"},{validator:oe}],contactPhone:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u8054\u7CFB\u4EBA\u624B\u673A\u53F7",trigger:"blur"},{validator:re,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:se,trigger:"blur"}],annualPlanAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D",trigger:"blur"},{validator:se,trigger:"blur"}]},U=c([{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}],F=c(),Ne=l=>{a.value.baseProjBasis=l.map(e=>e)},Le=l=>{te.value.validate(e=>{l(e)})},Se=l=>{var i,u,n,g,k,O,N;a.value={baseProjIsConfidentiality:l.baseProjIsConfidentiality||"01",projectName:l.projectName,projectType:l.projectType?l.projectType:"01",isFirst:l.isFirst,baseConstructionType:((i=l==null?void 0:l.baseConstructionType)==null?void 0:i.split("\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:((n=(u=l==null?void 0:l.baseProjBasis)==null?void 0:u.split("\uFF1B"))==null?void 0:n.map((L,C)=>{var B,h,q;const S=`[${(B=l.baseProjBasisFile)==null?void 0:B.replace(/}];/g,"}],")}]`;return{title:(q=(h=U.value)==null?void 0:h.find(G=>G.value===L))==null?void 0:q.title,fileList:l!=null&&l.baseProjBasisFile?il(JSON.parse(S)[C]):[],value:L}}))||[],baseBasisEstablish:l.baseBasisEstablish||"",developCode:l.developCode,financialCode:l.financialCode,projectOverview:l.projectOverview,projectIntroduction:l.projectIntroduction,baseHistorProjs:((g=l==null?void 0:l.baseHistorProjId)==null?void 0:g.split("\uFF1B").map((L,C)=>({baseProjId:L,baseProjName:l==null?void 0:l.baseHistorProjName.split("\uFF1B")[C],baseProjSetYear:l==null?void 0:l.baseHistorProjYear.split("\uFF1B")[C]})))||[],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};const e=a.value.baseProjBasis?JSON.parse(JSON.stringify(a.value.baseProjBasis)):[];if((O=(k=l==null?void 0:l.baseProjBasis)==null?void 0:k.split("\uFF1B"))!=null&&O.length){const L=(N=l==null?void 0:l.baseProjBasis)==null?void 0:N.split("\uFF1B");U.value&&U.value.forEach(C=>{var S,B;L.includes(C.value)&&(C.fileList=(S=e.find(h=>h.value===C.value))==null?void 0:S.fileList,C.fileName=(B=e.find(h=>h.value===C.value))==null?void 0:B.fileName,F.value.toggleRowSelect(C,!0))})}},_=ke,De=l=>{_("changeIsFirst",l)},b=R({unitVisible:!1,data:void 0,title:void 0,type:void 0,params:void 0}),xe=()=>{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}]:[]},Be=()=>{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,ue("superOrgCreditCode",l==null?void 0:l[0].key)):(a.value.higherSuperOrgCode=(l==null?void 0:l[0].key)||void 0,a.value.higherSuperOrg=(l==null?void 0:l[0].title)||void 0)},_e=()=>{b.title="\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}]:[]},M=c(!1),I=R({businessStripName:void 0}),Me=async()=>{A(),M.value=!0,await ll(),F.value.setRadio(a.value.higherSuperOrgCode||"")},Ie=[{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}],ie=c(),A=async()=>{const l=await ul({...I});ie.value=l.data},Ye=()=>{I.businessStripName=void 0,A()},K=c(),$e=l=>{K.value=l},qe=()=>{M.value=!1,a.value.higherSuperOrgCode=K.value.businessStripCode,a.value.higherSuperOrg=K.value.businessStripName},Q=c({}),ue=async(l,e)=>{const i=await al(e||ae.value.empPosUnitCode);i.data&&i.data.unifiedSocialCreditCode&&(Q.value[l]=!!i.data.unifiedSocialCreditCode,a.value[l]=i.data.unifiedSocialCreditCode||a.value[l])},H=R({visible:!1,params:{}}),ne=c(),de=c(),J=(l,e)=>{H.visible=!0,ne.value=l,de.value=e},Ee=l=>{a.value[ne.value]=l.name,a.value[de.value]=l.phoneNo},Re=(l,e)=>{a.value.higherSuperOrgCode="",a.value.higherSuperOrg=""},pe=[{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"}],Y=R({visible:!1}),me=()=>{Y.visible=!0,Y.data=a.value.baseHistorProjs},Fe=l=>{a.value.baseHistorProjs=l.map(e=>({baseProjName:e.projectName,baseProjSetYear:e.projectYear,baseProjId:e.id}))},be=l=>{a.value.baseHistorProjs.splice(l,1)},Ae=[{label:"\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"}],$=R({visible:!1,data:void 0}),Z=c(),fe=(l,e)=>{$.data=l,$.visible=!0,Z.value=e},He=l=>{Z.value===void 0?a.value.beseExpectedResults.push(l):a.value.beseExpectedResults[Z.value]=l},Je=l=>{a.value.beseExpectedResults.splice(l,1)},Ge=c(),ze=async()=>{var e;const l=await bl({pageNumber:1,pageSize:1e4});Ge.value=((e=l==null?void 0:l.data)==null?void 0:e.records)||[]};el(()=>{ze(),ue("orgCreditCode")}),le(()=>X.declareAmount,l=>{}),Ve({validForm:Le,formData:a,setFormData:Se}),le(()=>X.dictionaryList,l=>{var e;l&&(U.value=[],(e=X.dictionaryList)==null||e.filter(i=>i.type==="PROJECT_BASIS").forEach(i=>{U.value.push({title:i.label,fileName:"",fileList:[],value:i.value})}))}),le(()=>a.value,l=>{_("getBasicInfoData",a.value)},{deep:!0});const ee=c(!1);function We(){console.log(ee.value),ee.value&&_("changeProjectTypeResetForm",a.value)}return(l,e)=>{const i=y("el-input"),u=y("el-form-item"),n=y("el-col"),g=y("el-radio"),k=y("el-radio-group"),O=y("el-button"),N=y("table-list"),L=y("el-checkbox"),C=y("el-checkbox-group"),S=y("el-date-picker"),B=y("el-upload"),h=y("el-input-number"),q=y("el-row"),G=y("el-form"),Xe=y("el-dialog");return d(),j(D,null,[t(G,{ref_key:"formRef",ref:te,model:a.value,rules:we,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:r(()=>[t(q,{gutter:40},{default:r(()=>{var w,ge,ve,ye;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(k,{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:We},{default:r(()=>[t(g,{label:"01"},{default:r(()=>e[41]||(e[41]=[m("\u9996\u6B21\u5EFA\u8BBE")])),_:1}),t(g,{label:"02"},{default:r(()=>e[42]||(e[42]=[m("\u8FED\u4EE3\u5347\u7EA7")])),_:1}),t(g,{label:"03"},{default:r(()=>e[43]||(e[43]=[m("\u7ED3\u8F6C\u5EFA\u8BBE")])),_:1}),t(g,{label:"04"},{default:r(()=>e[44]||(e[44]=[m("\u65B0\u8FD0\u7EF4")])),_:1}),t(g,{label:"05"},{default:r(()=>e[45]||(e[45]=[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(()=>[V("p",fl,[t(O,{type:"primary",onClick:me},{default:r(()=>e[46]||(e[46]=[m("\u5173\u8054\u5386\u5E74\u9879\u76EE")])),_:1})]),t(N,{pagination:!1,style:{width:"100%"},column:pe,data:a.value.baseHistorProjs,"empty-temp":!1},{action:r(({scope:o})=>[a.value.projectType==="03"?(d(),j("a",{key:0,class:"text-primary",onClick:s=>{_("reuseItem",a.value.baseHistorProjs[o.$index]),ee.value=!0}},"\u590D\u7528\u4FE1\u606F",8,gl)):T("",!0),V("a",{class:"text-danger",onClick:s=>be(o.$index)},"\u5220\u9664",8,vl)]),_:1},8,["data"])]),_:1})):(d(),f(u,{key:1,label:"\u5386\u5E74\u9879\u76EE\u540D\u79F0"},{default:r(()=>[V("p",yl,[t(O,{type:"primary",onClick:me},{default:r(()=>e[47]||(e[47]=[m("\u5173\u8054\u5386\u5E74\u9879\u76EE")])),_:1})]),t(N,{pagination:!1,style:{width:"100%"},column:pe,data:a.value.baseHistorProjs,"empty-temp":!1},{action:r(({scope:o})=>[a.value.projectType==="03"?(d(),j("a",{key:0,class:"text-primary",onClick:s=>_("reuseItem",a.value.baseHistorProjs[o.$index])},"\u590D\u7528\u4FE1\u606F",8,Cl)):T("",!0),V("a",{class:"text-danger",onClick:s=>be(o.$index)},"\u5220\u9664",8,cl)]),_:1},8,["data"])]),_:1}))]),_:1}),t(n,{span:12},{default:r(()=>[t(u,{label:"\u5185\u5BB9\u7C7B\u522B",prop:"baseConstructionType"},{default:r(()=>[t(C,{modelValue:a.value.baseConstructionType,"onUpdate:modelValue":e[2]||(e[2]=o=>a.value.baseConstructionType=o)},{default:r(()=>{var o;return[(d(!0),j(D,null,z((o=v.dictionaryList)==null?void 0:o.filter(s=>s.type==="CONTENT_TYPE"),(s,p)=>(d(),f(L,{key:p,label:s.value},{default:r(()=>[m(W(s.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1}),a.value.baseProjIsConfidentiality==="01"?(d(),j(D,{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(k,{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:De},{default:r(()=>[t(g,{label:1},{default:r(()=>e[48]||(e[48]=[m("\u662F")])),_:1}),t(g,{label:0},{default:r(()=>e[49]||(e[49]=[m("\u5426")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),x(Oe).name!="planEdit"?(d(),f(n,{key:0,span:12},{default:r(()=>[t(u,{label:"\u662F\u5426\u4E34\u65F6\u589E\u8865",prop:"isTemporaryAugment"},{default:r(()=>{var o;return[t(k,{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[50]||(e[50]=[m("\u662F")])),_:1}),t(g,{label:0},{default:r(()=>e[51]||(e[51]=[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=>J("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",readonly:"",onClick:e[8]||(e[8]=o=>J("responsibleMan","responsibleManMobile"))},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[9]||(e[9]=o=>a.value.contactName=o),maxlength:"50",placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:e[10]||(e[10]=o=>J("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[11]||(e[11]=o=>a.value.contactPhone=o),maxlength:"11",placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:e[12]||(e[12]=o=>J("contactName","contactPhone"))},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[13]||(e[13]=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[14]||(e[14]=o=>a.value.orgCreditCode=o),maxlength:"18",placeholder:"\u8BF7\u8F93\u5165",disabled:Q.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(k,{modelValue:a.value.baseProvManDeprtType,"onUpdate:modelValue":e[15]||(e[15]=s=>a.value.baseProvManDeprtType=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=v.detailData)==null?void 0:o.status),onChange:Re},{default:r(()=>[t(g,{label:"1"},{default:r(()=>e[52]||(e[52]=[m("\u7701\u7EA7")])),_:1}),t(g,{label:"2"},{default:r(()=>e[53]||(e[53]=[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[16]||(e[16]=s=>a.value.higherSuperOrg=s),disabled:""},null,8,["modelValue"])):a.value.baseProvManDeprtType==="1"?(d(),f(i,{key:1,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[17]||(e[17]=s=>a.value.higherSuperOrg=s),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:Me},null,8,["modelValue"])):(d(),f(i,{key:2,modelValue:a.value.higherSuperOrg,"onUpdate:modelValue":e[18]||(e[18]=s=>a.value.higherSuperOrg=s),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:_e},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[19]||(e[19]=p=>a.value.superOrg=p),disabled:""},null,8,["modelValue"])):(d(),f(i,{key:1,modelValue:a.value.superOrg,"onUpdate:modelValue":e[20]||(e[20]=p=>a.value.superOrg=p),placeholder:"\u8BF7\u9009\u62E9",readonly:"",disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((s=v.detailData)==null?void 0:s.status),onClick:xe},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[21]||(e[21]=s=>a.value.superOrgCreditCode=s),placeholder:"\u8BF7\u586B\u5199",disabled:Q.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(),j(D,{key:1},[t(n,{span:24},{default:r(()=>[t(u,{label:"\u5EFA\u8BBE\u5C42\u7EA7",prop:"buildLevel"},{default:r(()=>[t(k,{modelValue:a.value.buildLevel,"onUpdate:modelValue":e[22]||(e[22]=o=>a.value.buildLevel=o)},{default:r(()=>{var o;return[(d(!0),j(D,null,z((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(W(s.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1}),((ge=(w=a.value)==null?void 0:w.baseConstructionType)==null?void 0:ge.includes("03"))&&!((ye=(ve=a.value)==null?void 0:ve.baseConstructionType)!=null&&ye.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(k,{modelValue:a.value.lowestLevel,"onUpdate:modelValue":e[23]||(e[23]=p=>a.value.lowestLevel=p)},{default:r(()=>{var p;return[(d(!0),j(D,null,z((p=v.dictionaryList)==null?void 0:p.filter(P=>P.type==="BUILD_LEVEL"),(P,E)=>(d(),f(g,{key:E,label:P.value},{default:r(()=>[m(W(P.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue"])]),_:1})):(d(),f(u,{key:1,label:"\u8D2F\u901A\u5C42\u7EA7"},{default:r(()=>[t(k,{modelValue:a.value.lowestLevel,"onUpdate:modelValue":e[24]||(e[24]=p=>a.value.lowestLevel=p)},{default:r(()=>{var p;return[(d(!0),j(D,null,z((p=v.dictionaryList)==null?void 0:p.filter(P=>P.type==="BUILD_LEVEL"),(P,E)=>(d(),f(g,{key:E,label:P.value},{default:r(()=>[m(W(P.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(S,{modelValue:a.value.projectYear,"onUpdate:modelValue":e[25]||(e[25]=s=>a.value.projectYear=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=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(S,{modelValue:a.value.buildDuration,"onUpdate:modelValue":e[26]||(e[26]=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(N,{ref_key:"tableListRef",ref:F,pagination:!1,style:{width:"100%"},column:Te,data:U.value,onSelectionChange:Ne},{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,P;return[t(i,{value:(P=(p=(s=a.value.baseProjBasis[a.value.baseProjBasis.findIndex(E=>E.value===o.row.value)])==null?void 0:s.fileList)==null?void 0:p[0])==null?void 0:P.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(B,{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:x(he),"on-success":s=>x(tl)(s,a.value.baseProjBasis[a.value.baseProjBasis.findIndex(p=>p.value===o.row.value)].fileList,!0),"on-error":x(rl),"before-upload":s=>x(ol)(s,{types:x(Pe)}),limit:1,accept:x(Pe).map(s=>`.${s}`).join(","),"on-preview":x(sl)},{trigger:r(()=>e[54]||(e[54]=[V("div",null,[V("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(),j("span",Pl,"\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[27]||(e[27]=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[28]||(e[28]=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(N,{pagination:!1,style:{width:"100%"},column:Ae,data:a.value.beseExpectedResults,"empty-temp":!1},{action:r(({scope:o})=>[V("a",{onClick:s=>fe(o.row,o.$index)},"\u7F16\u8F91",8,jl),V("a",{class:"text-danger",onClick:s=>Je(o.$index)},"\u5220\u9664",8,Vl)]),_:1},8,["data"]),V("p",kl,[t(O,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:e[29]||(e[29]=()=>fe())},{default:r(()=>e[55]||(e[55]=[m("\u6DFB\u52A0 ")])),_:1})])]),_:1})]),_:1})):T("",!0)],64)):T("",!0),a.value.baseProjIsConfidentiality==="02"?(d(),j(D,{key:2},[t(n,{span:12},{default:r(()=>[t(u,{label:"\u9884\u7B97\u5E74\u5EA6",prop:"projectYear"},{default:r(()=>{var o;return[t(S,{modelValue:a.value.projectYear,"onUpdate:modelValue":e[30]||(e[30]=s=>a.value.projectYear=s),disabled:l.$route.name==="declarePlan"||[10012,10013,10016].includes((o=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(h,{modelValue:a.value.declareAmount,"onUpdate:modelValue":e[31]||(e[31]=o=>a.value.declareAmount=o),placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[32]||(e[32]=ce(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:24},{default:r(()=>[t(u,{label:"\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D",prop:"annualPlanAmount"},{default:r(()=>[t(h,{modelValue:a.value.annualPlanAmount,"onUpdate:modelValue":e[33]||(e[33]=o=>a.value.annualPlanAmount=o),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[34]||(e[34]=ce(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})],64)):T("",!0)]}),_:1})]),_:1},8,["model"]),t(nl,{visible:b.unitVisible,"show-checkbox":!1,"default-data":b.data,title:b.title,type:b.type,"default-props":b.defaultProps,params:b.params,onClose:Be,onGetSelectUnit:Ue},null,8,["visible","default-data","title","type","default-props","params"]),t(Xe,{"model-value":M.value,title:"\u4E0A\u7EA7\u6761\u7EBF\u4E3B\u7BA1\u5355\u4F4D",width:"60%",onClose:e[37]||(e[37]=w=>M.value=!1)},{footer:r(()=>[V("span",hl,[t(O,{onClick:e[36]||(e[36]=w=>M.value=!1)},{default:r(()=>e[58]||(e[58]=[m("\u5173\u95ED")])),_:1}),t(O,{type:"primary",onClick:qe},{default:r(()=>e[59]||(e[59]=[m(" \u63D0\u4EA4 ")])),_:1})])]),default:r(()=>[t(G,{model:I,size:"small","label-suffix":":"},{default:r(()=>[t(q,{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:I.businessStripName,"onUpdate:modelValue":e[35]||(e[35]=w=>I.businessStripName=w),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(n,{span:16},{default:r(()=>[t(u,{class:"btn"},{default:r(()=>[V("div",Ol,[t(O,{type:"primary",onClick:A},{default:r(()=>e[56]||(e[56]=[m("\u67E5\u8BE2 ")])),_:1}),t(O,{onClick:Ye},{default:r(()=>e[57]||(e[57]=[m("\u91CD\u7F6E ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(N,{ref_key:"tableListRef",ref:F,column:Ie,data:ie.value,pagination:!1,style:{height:"600px",overflow:"auto"},onGetTableData:A,onRadioChange:$e},null,8,["data"])]),_:1},8,["model-value"]),t(dl,{visible:H.visible,params:H.params,onClose:e[38]||(e[38]=w=>H.visible=!1),onGetUserData:Ee},null,8,["visible","params"]),t(pl,{visible:Y.visible,data:Y.data,onGetProjectList:Fe,onClose:e[39]||(e[39]=w=>Y.visible=!1)},null,8,["visible","data"]),t(ml,{visible:$.visible,data:$.data,onSetContent:He,onClose:e[40]||(e[40]=w=>$.visible=!1)},null,8,["visible","data"])],64)}}});export{Yl as default};
|