|
- import{d as se,D as x,G as pe,r as N,L as ne,c as v,e as u,I as d,i as l,h as a,j as m,k as V,f as c,F as b,J as g,u as p,g as I,t as T}from"./index.ce13ff81.js";import{h as E,f as z,c as S,b as D,e as M}from"./uploadAction.f62a56f0.js";import{b as de,i as re}from"./index.95212f4a.js";const me={class:"el-upload__tip"},fe={class:"el-upload__tip"},ve=se({name:"appBasicInfo"}),Ve=Object.assign(ve,{props:{data:{type:Object,default:null},drawerVisible:{type:Boolean,default:!1},isInnovateWholeProvinceShare:{type:Boolean,default:!1}},setup(L,{expose:P}){const{accountAppNameOption:O,constructionLevel:j,applicationType:W,businessField:K,publisher:$,useScope:G,digitalModifySystem:J,domainBrainAccountOptions:H}=x.dictStore.globalDicts||{},w=x.dictStore.uploadUrl,Q=pe(x.userStore).userInfo||{},A=L,t=N({experimentsFile:[]}),U=N(),X={isFirst:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E3A\u9996\u6B21\u5EFA\u8BBE"}],applicationName:[{required:!0,message:"\u8BF7\u586B\u5199\u5E94\u7528\u540D\u79F0"}],relatedExistsApplication:[{required:!0,message:"\u8BF7\u9009\u62E9IRS\u6CE8\u518C\u5E94\u7528"}],relatedExistsApplicationCode:[{required:!0,message:"\u8BF7\u9009\u62E9IRS\u5E94\u7528\u7F16\u7801"}],pilotTasksName:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u70B9\u4EFB\u52A1\u540D\u79F0"}],pilotTasksCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u70B9\u4EFB\u52A1\u7F16\u53F7"}],importantTaskName:[{required:!0,message:"\u6240\u5C5E\u91CD\u5927\u5E94\u7528\u540D\u79F0"}],importantTaskCode:[{required:!0,message:"\u6240\u5C5E\u91CD\u5927\u5E94\u7528\u7F16\u7801"}],subSceneApplicationName:[{required:!0,message:"\u6240\u5C5E\u5B50\u573A\u666F\u5E94\u7528\u540D\u79F0"}],experimentsFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BD5\u70B9\u6587\u4EF6"}],applicationType:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E94\u7528\u7C7B\u578B"}],buildLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u5C42\u7EA7",trigger:"change"}],isUniteBuild:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E3A\u7EDF\u5EFA\u5E94\u7528"}],unionBuildKind:[{required:!0,message:"\u8BF7\u9009\u62E9\u7EDF\u5EFA\u7C7B\u578B"}],isDigitalModification:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E3A\u6570\u6539\u7CFB\u7EDF"}],digitalModification:[{required:!0,message:"\u8BF7\u9009\u62E9\u6570\u6539\u7CFB\u7EDF"}],bizDomain:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u9886\u57DF"}],publishSide:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u5E03\u7AEF"}],isAccountAppName:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426S2\u4E00\u672C\u8D26\u540D\u79F0"}],accountAppName:[{required:!0,message:"\u8BF7\u9009\u62E9S2\u4E00\u672C\u8D26\u540D\u79F0"}],domainBrainAccount:[{required:!0,message:"\u8BF7\u9009\u62E9\u9886\u57DF\u201C\u5927\u8111\u201D\u4E00\u672C\u8D26"}],isBizCooperate:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4E3A\u4E1A\u52A1\u534F\u540C"}],bizCooperateInfo:[{required:!0,message:"\u8BF7\u586B\u5199\u4E1A\u52A1\u534F\u540C\u63CF\u8FF0"}],usesRangeRemark:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F7F\u7528\u8303\u56F4"}],applicationSummary:[{required:!0,message:"\u8BF7\u586B\u5199\u5E94\u7528\u7B80\u4ECB"}],applicationRemark:[{required:!0,message:"\u8BF7\u586B\u5199\u5E94\u7528\u5907\u6CE8"}],applicationEstimateFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u603B\u6295\u8D44\u6D4B\u7B97\u660E\u7EC6"}]},Y=r=>{U.value.validate(o=>{r(o)})},Z=()=>{U.value.clearValidate()},F=N([]),h=async()=>{const r=await de({areaCode:Q.value.regionCode});F.value=r.data},q=N([]),ee=async()=>{const r=await re();q.value=r.data},le=r=>{t.value.relatedExistsApplicationCode=r.applicationCode},ae=r=>{t.value.pilotTasksCode=r.taskCode,t.value.importantTaskName=r.importantTaskName,t.value.importantTaskCode=r.importantTaskCode,t.value.subSceneApplicationName=r.subSceneApplicationName},te=()=>{t.value.isFirst===1?(t.value.relatedExistsApplication=void 0,t.value.relatedExistsApplicationCode=void 0):t.value.applicationName=void 0};return ne(()=>A.drawerVisible,r=>{r&&(t.value={...A.data,isFirst:A.data.isFirst||void 0},h(),ee())},{immediate:!0}),P({validForm:Y,formData:t,clearValidate:Z}),(r,o)=>{const f=v("el-radio"),C=v("el-radio-group"),i=v("el-form-item"),s=v("el-col"),k=v("el-option"),y=v("el-select"),_=v("el-input"),B=v("el-button"),R=v("el-upload"),oe=v("el-cascader"),ue=v("el-row"),ie=v("el-form");return u(),d(ie,{ref_key:"formRef",ref:U,model:t.value,rules:X,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:l(()=>[a(ue,{gutter:20},{default:l(()=>[A.isInnovateWholeProvinceShare?V("",!0):(u(),d(s,{key:0,span:12},{default:l(()=>[a(i,{label:"\u662F\u5426\u521D\u6B21\u5EFA\u8BBE",prop:"isFirst",onChange:te},{default:l(()=>[a(C,{modelValue:t.value.isFirst,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value.isFirst=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>[m("\u662F")]),_:1}),a(f,{label:2},{default:l(()=>[m("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})),t.value.isFirst===2||A.isInnovateWholeProvinceShare?(u(),c(b,{key:1},[a(s,{span:12},{default:l(()=>[a(i,{label:"\u5173\u8054IRS\u5DF2\u6CE8\u518C\u5E94\u7528",prop:"relatedExistsApplication"},{default:l(()=>[a(y,{modelValue:t.value.relatedExistsApplication,"onUpdate:modelValue":o[1]||(o[1]=e=>t.value.relatedExistsApplication=e),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"applicationCode",onChange:le},{default:l(()=>[(u(!0),c(b,null,g(F.value,(e,n)=>(u(),d(k,{key:n,label:e.applicationName,value:{applicationCode:e.applicationCode,applicationName:e.applicationName}},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"IRS\u5E94\u7528\u7F16\u7801",prop:"relatedExistsApplicationCode"},{default:l(()=>[a(_,{modelValue:t.value.relatedExistsApplicationCode,"onUpdate:modelValue":o[2]||(o[2]=e=>t.value.relatedExistsApplicationCode=e),disabled:""},null,8,["modelValue"])]),_:1})]),_:1})],64)):V("",!0),A.isInnovateWholeProvinceShare?(u(),c(b,{key:2},[a(s,{span:12},{default:l(()=>[a(i,{label:"\u8BD5\u70B9\u4EFB\u52A1\u540D\u79F0",prop:"pilotTasksName"},{default:l(()=>[a(y,{modelValue:t.value.pilotTasksName,"onUpdate:modelValue":o[3]||(o[3]=e=>t.value.pilotTasksName=e),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"taskCode",onChange:ae},{default:l(()=>[(u(!0),c(b,null,g(q.value,(e,n)=>(u(),d(k,{key:n,label:e.taskName,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u8BD5\u70B9\u4EFB\u52A1\u7F16\u53F7",prop:"pilotTasksCode"},{default:l(()=>[a(_,{modelValue:t.value.pilotTasksCode,"onUpdate:modelValue":o[4]||(o[4]=e=>t.value.pilotTasksCode=e),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u6240\u5C5E\u91CD\u5927\u5E94\u7528\u540D\u79F0",prop:"importantTaskName"},{default:l(()=>[a(_,{modelValue:t.value.importantTaskName,"onUpdate:modelValue":o[5]||(o[5]=e=>t.value.importantTaskName=e),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u6240\u5C5E\u91CD\u5927\u5E94\u7528\u7F16\u7801",prop:"importantTaskCode"},{default:l(()=>[a(_,{modelValue:t.value.importantTaskCode,"onUpdate:modelValue":o[6]||(o[6]=e=>t.value.importantTaskCode=e),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u6240\u5C5E\u5B50\u573A\u666F\u5E94\u7528\u540D\u79F0",prop:"subSceneApplicationName"},{default:l(()=>[a(_,{modelValue:t.value.subSceneApplicationName,"onUpdate:modelValue":o[7]||(o[7]=e=>t.value.subSceneApplicationName=e),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u8BD5\u70B9\u6587\u4EF6",prop:"experimentsFile"},{default:l(()=>[a(R,{ref:"preliminaryPlanRef","file-list":t.value.experimentsFile,"onUpdate:fileList":o[8]||(o[8]=e=>t.value.experimentsFile=e),class:"upload-demo",action:p(w),multiple:"","on-success":e=>p(E)(e,t.value.experimentsFile,!0),"before-upload":e=>p(z)(e,{types:p(S)}),accept:p(S).map(e=>`.${e}`).join(","),limit:1,"on-preview":p(D)},{tip:l(()=>[I("div",me," \u652F\u6301"+T(p(M))+"\u6587\u4EF6 ",1)]),default:l(()=>[a(B,{plain:"",type:"primary"},{default:l(()=>[m("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1})],64)):V("",!0),t.value.isFirst===1&&!A.isInnovateWholeProvinceShare?(u(),d(s,{key:3,span:12},{default:l(()=>[a(i,{label:"\u5E94\u7528\u540D\u79F0",prop:"applicationName"},{default:l(()=>[a(_,{modelValue:t.value.applicationName,"onUpdate:modelValue":o[9]||(o[9]=e=>t.value.applicationName=e),placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1})):V("",!0),a(s,{span:12},{default:l(()=>[a(i,{label:"\u5E94\u7528\u7C7B\u578B",prop:"applicationType"},{default:l(()=>[a(y,{modelValue:t.value.applicationType,"onUpdate:modelValue":o[10]||(o[10]=e=>t.value.applicationType=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),c(b,null,g(p(W),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:24},{default:l(()=>[a(i,{label:"\u5EFA\u8BBE\u5C42\u7EA7",prop:"buildLevel"},{default:l(()=>[a(C,{modelValue:t.value.buildLevel,"onUpdate:modelValue":o[11]||(o[11]=e=>t.value.buildLevel=e)},{default:l(()=>[(u(!0),c(b,null,g(p(j),(e,n)=>(u(),d(f,{key:n,label:n*1},{default:l(()=>[m(T(e),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u662F\u5426\u7EDF\u5EFA\u5E94\u7528",prop:"isUniteBuild"},{default:l(()=>[a(C,{modelValue:t.value.isUniteBuild,"onUpdate:modelValue":o[12]||(o[12]=e=>t.value.isUniteBuild=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>[m("\u662F")]),_:1}),a(f,{label:0},{default:l(()=>[m("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[t.value.isUniteBuild===1?(u(),d(i,{key:0,label:"\u7EDF\u5EFA\u7C7B\u578B",prop:"unionBuildKind"},{default:l(()=>[a(C,{modelValue:t.value.unionBuildKind,"onUpdate:modelValue":o[13]||(o[13]=e=>t.value.unionBuildKind=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>[m("\u5168\u7701\u7EDF\u5EFA")]),_:1}),a(f,{label:2},{default:l(()=>[m("\u5168\u5E02\u7EDF\u5EFA")]),_:1})]),_:1},8,["modelValue"])]),_:1})):V("",!0)]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u662F\u5426\u6570\u6539\u7CFB\u7EDF",prop:"isDigitalModification"},{default:l(()=>[a(C,{modelValue:t.value.isDigitalModification,"onUpdate:modelValue":o[14]||(o[14]=e=>t.value.isDigitalModification=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>[m("\u662F")]),_:1}),a(f,{label:0},{default:l(()=>[m("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[t.value.isDigitalModification===1?(u(),d(i,{key:0,label:"\u6570\u6539\u7CFB\u7EDF",prop:"digitalModification"},{default:l(()=>[a(y,{modelValue:t.value.digitalModification,"onUpdate:modelValue":o[15]||(o[15]=e=>t.value.digitalModification=e),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),c(b,null,g(p(J),(e,n)=>(u(),d(k,{key:n,label:e,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):V("",!0)]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u4E1A\u52A1\u9886\u57DF",prop:"bizDomain"},{default:l(()=>[a(y,{modelValue:t.value.bizDomain,"onUpdate:modelValue":o[16]||(o[16]=e=>t.value.bizDomain=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),c(b,null,g(p(K),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u53D1\u5E03\u7AEF",prop:"publishSide"},{default:l(()=>[a(y,{modelValue:t.value.publishSide,"onUpdate:modelValue":o[17]||(o[17]=e=>t.value.publishSide=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),c(b,null,g(p($),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u662F\u5426S2\u4E00\u672C\u8D26\u540D\u79F0",prop:"isAccountAppName"},{default:l(()=>[a(C,{modelValue:t.value.isAccountAppName,"onUpdate:modelValue":o[18]||(o[18]=e=>t.value.isAccountAppName=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>[m("\u662F")]),_:1}),a(f,{label:0},{default:l(()=>[m("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[t.value.isAccountAppName===1?(u(),d(i,{key:0,label:"S2\u4E00\u672C\u8D26\u540D\u79F0",prop:"accountAppName"},{default:l(()=>[a(y,{modelValue:t.value.accountAppName,"onUpdate:modelValue":o[19]||(o[19]=e=>t.value.accountAppName=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:""},{default:l(()=>[(u(!0),c(b,null,g(p(O),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):V("",!0)]),_:1}),a(s,{span:16},{default:l(()=>[t.value.isAccountAppName===1&&t.value.isDigitalModification===1?(u(),d(i,{key:0,label:"\u9886\u57DF\u201C\u5927\u8111\u201D\u4E00\u672C\u8D26",prop:"domainBrainAccount"},{default:l(()=>[a(y,{modelValue:t.value.domainBrainAccount,"onUpdate:modelValue":o[20]||(o[20]=e=>t.value.domainBrainAccount=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),c(b,null,g(p(H),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):V("",!0)]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u662F\u5426\u4E1A\u52A1\u534F\u540C",prop:"isBizCooperate"},{default:l(()=>[a(C,{modelValue:t.value.isBizCooperate,"onUpdate:modelValue":o[21]||(o[21]=e=>t.value.isBizCooperate=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>[m("\u662F")]),_:1}),a(f,{label:0},{default:l(()=>[m("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:24},{default:l(()=>[t.value.isBizCooperate===1?(u(),d(i,{key:0,label:"\u4E1A\u52A1\u534F\u540C\u63CF\u8FF0",prop:"bizCooperateInfo"},{default:l(()=>[a(_,{modelValue:t.value.bizCooperateInfo,"onUpdate:modelValue":o[22]||(o[22]=e=>t.value.bizCooperateInfo=e),autosize:{minRows:2,maxRows:4},maxlength:"2000",type:"textarea",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})):V("",!0)]),_:1}),a(s,{span:16},{default:l(()=>[a(i,{label:"\u4F7F\u7528\u8303\u56F4",prop:"usesRangeRemark"},{default:l(()=>[a(oe,{modelValue:t.value.usesRangeRemark,"onUpdate:modelValue":o[23]||(o[23]=e=>t.value.usesRangeRemark=e),options:p(G),class:"w-full"},null,8,["modelValue","options"])]),_:1})]),_:1}),a(s,{span:24},{default:l(()=>[a(i,{label:"\u5E94\u7528\u7B80\u4ECB",prop:"applicationSummary"},{default:l(()=>[a(_,{modelValue:t.value.applicationSummary,"onUpdate:modelValue":o[24]||(o[24]=e=>t.value.applicationSummary=e),autosize:{minRows:2,maxRows:4},maxlength:"2000",type:"textarea",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:24},{default:l(()=>[a(i,{label:"\u5E94\u7528\u5907\u6CE8",prop:"applicationRemark"},{default:l(()=>[a(_,{modelValue:t.value.applicationRemark,"onUpdate:modelValue":o[25]||(o[25]=e=>t.value.applicationRemark=e),autosize:{minRows:2,maxRows:4},maxlength:"2000",type:"textarea",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),a(s,{span:24},{default:l(()=>[a(i,{label:"\u5E94\u7528\u603B\u6295\u8D44\u6D4B\u7B97\u660E\u7EC6",prop:"applicationEstimateFile"},{default:l(()=>[a(R,{"file-list":t.value.applicationEstimateFile,"onUpdate:fileList":o[26]||(o[26]=e=>t.value.applicationEstimateFile=e),class:"upload-demo",action:p(w),multiple:"","on-success":e=>p(E)(e,t.value.applicationEstimateFile,!1),"before-upload":e=>p(z)(e,{types:p(S)}),accept:p(S).map(e=>`.${e}`).join(","),limit:10,"on-preview":p(D)},{tip:l(()=>[I("div",fe," \u652F\u6301"+T(p(M))+"\u6587\u4EF6 ",1)]),default:l(()=>[a(B,{plain:"",type:"primary"},{default:l(()=>[m("\u9009\u62E9\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{Ve as default};
|