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