You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
16KB

  1. import{d as se,B as x,C as pe,r as N,J as ne,c as v,e as u,G as d,i as l,h as a,j as m,k as _,f as b,F as V,H as c,u as p,g as I,t as T}from"./index.2dada31c.js";import{h as E,f as z,c as S,b as D,e as M}from"./uploadAction.a9f1fcc6.js";import{b as de,i as re}from"./index.101b6644.js";const me={class:"el-upload__tip"},fe={class:"el-upload__tip"},ve=se({name:"appBasicInfo"}),_e=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:H,domainBrainAccountOptions:J}=x.dictStore.globalDicts||{},w=x.dictStore.uploadUrl,Q=pe(x.userStore).userInfo||{},C=L,o=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(t=>{r(t)})},Z=()=>{U.value.clearValidate()},B=N([]),h=async()=>{const r=await de({areaCode:Q.value.regionCode});B.value=r.data},F=N([]),ee=async()=>{const r=await re();F.value=r.data},le=r=>{o.value.relatedExistsApplicationCode=r.applicationCode},ae=r=>{o.value.pilotTasksCode=r.taskCode,o.value.importantTaskName=r.importantTaskName,o.value.importantTaskCode=r.importantTaskCode,o.value.subSceneApplicationName=r.subSceneApplicationName},te=()=>{o.value.isFirst===1?(o.value.relatedExistsApplication=void 0,o.value.relatedExistsApplicationCode=void 0):o.value.applicationName=void 0};return ne(()=>C.drawerVisible,r=>{r&&(o.value={...C.data,isFirst:C.data.isFirst||void 0},h(),ee())},{immediate:!0}),P({validForm:Y,formData:o,clearValidate:Z}),(r,t)=>{const f=v("el-radio"),A=v("el-radio-group"),i=v("el-form-item"),s=v("el-col"),k=v("el-option"),y=v("el-select"),g=v("el-input"),q=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:o.value,rules:X,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:l(()=>[a(ue,{gutter:20},{default:l(()=>[C.isInnovateWholeProvinceShare?_("",!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(A,{modelValue:o.value.isFirst,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value.isFirst=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>t[27]||(t[27]=[m("\u662F")])),_:1}),a(f,{label:2},{default:l(()=>t[28]||(t[28]=[m("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})),o.value.isFirst===2||C.isInnovateWholeProvinceShare?(u(),b(V,{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:o.value.relatedExistsApplication,"onUpdate:modelValue":t[1]||(t[1]=e=>o.value.relatedExistsApplication=e),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"applicationCode",onChange:le},{default:l(()=>[(u(!0),b(V,null,c(B.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(g,{modelValue:o.value.relatedExistsApplicationCode,"onUpdate:modelValue":t[2]||(t[2]=e=>o.value.relatedExistsApplicationCode=e),disabled:""},null,8,["modelValue"])]),_:1})]),_:1})],64)):_("",!0),C.isInnovateWholeProvinceShare?(u(),b(V,{key:2},[a(s,{span:12},{default:l(()=>[a(i,{label:"\u8BD5\u70B9\u4EFB\u52A1\u540D\u79F0",prop:"pilotTasksName"},{default:l(()=>[a(y,{modelValue:o.value.pilotTasksName,"onUpdate:modelValue":t[3]||(t[3]=e=>o.value.pilotTasksName=e),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"taskCode",onChange:ae},{default:l(()=>[(u(!0),b(V,null,c(F.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(g,{modelValue:o.value.pilotTasksCode,"onUpdate:modelValue":t[4]||(t[4]=e=>o.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(g,{modelValue:o.value.importantTaskName,"onUpdate:modelValue":t[5]||(t[5]=e=>o.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(g,{modelValue:o.value.importantTaskCode,"onUpdate:modelValue":t[6]||(t[6]=e=>o.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(g,{modelValue:o.value.subSceneApplicationName,"onUpdate:modelValue":t[7]||(t[7]=e=>o.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":o.value.experimentsFile,"onUpdate:fileList":t[8]||(t[8]=e=>o.value.experimentsFile=e),class:"upload-demo",action:p(w),multiple:"","on-success":e=>p(E)(e,o.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(q,{plain:"",type:"primary"},{default:l(()=>t[29]||(t[29]=[m("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1})],64)):_("",!0),o.value.isFirst===1&&!C.isInnovateWholeProvinceShare?(u(),d(s,{key:3,span:12},{default:l(()=>[a(i,{label:"\u5E94\u7528\u540D\u79F0",prop:"applicationName"},{default:l(()=>[a(g,{modelValue:o.value.applicationName,"onUpdate:modelValue":t[9]||(t[9]=e=>o.value.applicationName=e),placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1})):_("",!0),a(s,{span:12},{default:l(()=>[a(i,{label:"\u5E94\u7528\u7C7B\u578B",prop:"applicationType"},{default:l(()=>[a(y,{modelValue:o.value.applicationType,"onUpdate:modelValue":t[10]||(t[10]=e=>o.value.applicationType=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),b(V,null,c(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(A,{modelValue:o.value.buildLevel,"onUpdate:modelValue":t[11]||(t[11]=e=>o.value.buildLevel=e)},{default:l(()=>[(u(!0),b(V,null,c(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(A,{modelValue:o.value.isUniteBuild,"onUpdate:modelValue":t[12]||(t[12]=e=>o.value.isUniteBuild=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>t[30]||(t[30]=[m("\u662F")])),_:1}),a(f,{label:0},{default:l(()=>t[31]||(t[31]=[m("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[o.value.isUniteBuild===1?(u(),d(i,{key:0,label:"\u7EDF\u5EFA\u7C7B\u578B",prop:"unionBuildKind"},{default:l(()=>[a(A,{modelValue:o.value.unionBuildKind,"onUpdate:modelValue":t[13]||(t[13]=e=>o.value.unionBuildKind=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>t[32]||(t[32]=[m("\u5168\u7701\u7EDF\u5EFA")])),_:1}),a(f,{label:2},{default:l(()=>t[33]||(t[33]=[m("\u5168\u5E02\u7EDF\u5EFA")])),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0)]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u662F\u5426\u6570\u6539\u7CFB\u7EDF",prop:"isDigitalModification"},{default:l(()=>[a(A,{modelValue:o.value.isDigitalModification,"onUpdate:modelValue":t[14]||(t[14]=e=>o.value.isDigitalModification=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>t[34]||(t[34]=[m("\u662F")])),_:1}),a(f,{label:0},{default:l(()=>t[35]||(t[35]=[m("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[o.value.isDigitalModification===1?(u(),d(i,{key:0,label:"\u6570\u6539\u7CFB\u7EDF",prop:"digitalModification"},{default:l(()=>[a(y,{modelValue:o.value.digitalModification,"onUpdate:modelValue":t[15]||(t[15]=e=>o.value.digitalModification=e),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),b(V,null,c(p(H),(e,n)=>(u(),d(k,{key:n,label:e,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):_("",!0)]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u4E1A\u52A1\u9886\u57DF",prop:"bizDomain"},{default:l(()=>[a(y,{modelValue:o.value.bizDomain,"onUpdate:modelValue":t[16]||(t[16]=e=>o.value.bizDomain=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),b(V,null,c(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:o.value.publishSide,"onUpdate:modelValue":t[17]||(t[17]=e=>o.value.publishSide=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),b(V,null,c(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(A,{modelValue:o.value.isAccountAppName,"onUpdate:modelValue":t[18]||(t[18]=e=>o.value.isAccountAppName=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>t[36]||(t[36]=[m("\u662F")])),_:1}),a(f,{label:0},{default:l(()=>t[37]||(t[37]=[m("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:12},{default:l(()=>[o.value.isAccountAppName===1?(u(),d(i,{key:0,label:"S2\u4E00\u672C\u8D26\u540D\u79F0",prop:"accountAppName"},{default:l(()=>[a(y,{modelValue:o.value.accountAppName,"onUpdate:modelValue":t[19]||(t[19]=e=>o.value.accountAppName=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:""},{default:l(()=>[(u(!0),b(V,null,c(p(O),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):_("",!0)]),_:1}),a(s,{span:16},{default:l(()=>[o.value.isAccountAppName===1&&o.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:o.value.domainBrainAccount,"onUpdate:modelValue":t[20]||(t[20]=e=>o.value.domainBrainAccount=e),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),b(V,null,c(p(J),(e,n)=>(u(),d(k,{key:n,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):_("",!0)]),_:1}),a(s,{span:12},{default:l(()=>[a(i,{label:"\u662F\u5426\u4E1A\u52A1\u534F\u540C",prop:"isBizCooperate"},{default:l(()=>[a(A,{modelValue:o.value.isBizCooperate,"onUpdate:modelValue":t[21]||(t[21]=e=>o.value.isBizCooperate=e)},{default:l(()=>[a(f,{label:1},{default:l(()=>t[38]||(t[38]=[m("\u662F")])),_:1}),a(f,{label:0},{default:l(()=>t[39]||(t[39]=[m("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(s,{span:24},{default:l(()=>[o.value.isBizCooperate===1?(u(),d(i,{key:0,label:"\u4E1A\u52A1\u534F\u540C\u63CF\u8FF0",prop:"bizCooperateInfo"},{default:l(()=>[a(g,{modelValue:o.value.bizCooperateInfo,"onUpdate:modelValue":t[22]||(t[22]=e=>o.value.bizCooperateInfo=e),autosize:{minRows:2,maxRows:4},maxlength:"2000",type:"textarea",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})):_("",!0)]),_:1}),a(s,{span:16},{default:l(()=>[a(i,{label:"\u4F7F\u7528\u8303\u56F4",prop:"usesRangeRemark"},{default:l(()=>[a(oe,{modelValue:o.value.usesRangeRemark,"onUpdate:modelValue":t[23]||(t[23]=e=>o.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(g,{modelValue:o.value.applicationSummary,"onUpdate:modelValue":t[24]||(t[24]=e=>o.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(g,{modelValue:o.value.applicationRemark,"onUpdate:modelValue":t[25]||(t[25]=e=>o.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":o.value.applicationEstimateFile,"onUpdate:fileList":t[26]||(t[26]=e=>o.value.applicationEstimateFile=e),class:"upload-demo",action:p(w),multiple:"","on-success":e=>p(E)(e,o.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(q,{plain:"",type:"primary"},{default:l(()=>t[40]||(t[40]=[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{_e as default};