25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
11KB

  1. import{d as Z,D as q,G as ee,r as h,L as S,c,e as u,I as m,i as l,h as e,u as V,f,F as _,J as b,j as y,t as D,V as le,k as ae,g as E,x as se}from"./index.d340e473.js";import{b as te}from"./index.cf3ded3c.js";const oe=E("p",{class:"text-12 text-danger",style:{"line-height":"1.4"}},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9996\u6B21\u5EFA\u8BBE\u9879\u76EE\u8BF7\u5148\u53BBIRS\u5E73\u53F0\u6CE8\u518C\u540E\u518D\u5173\u8054\u5E94\u7528",-1),ue=Z({name:"appBasicInfo"}),ie=Object.assign(ue,{props:{data:{type:Object,default:null},drawerVisible:{type:Boolean,default:!1},isFirst:{type:Number,default:void 0},coreBusiness:{type:Array,default:()=>[]}},setup(R,{expose:G}){const{publisher:$,insuranceLevel:k,applicationType:T,accountAppNameOption:O,domainBrainAccountOptions:F}=q.dictStore.globalDicts||{},L=ee(q.userStore).userInfo||{},{proxy:M}=se(),d=R,a=h({coreBusinessList:[{}]}),C=h(),j={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"}],applicationType:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E94\u7528\u7C7B\u578B"}],publishSide:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u5E03\u7AEF"}],applicationSummary:[{required:!0,message:"\u8BF7\u586B\u5199\u5E94\u7528\u7B80\u4ECB"}],secrecyGrade:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B49\u4FDD\u7EA7\u522B"}],passwordGrade:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BC6\u7801\u6D4B\u8BC4\u7EA7\u522B"}],accountAppName:[{required:!0,message:"\u8BF7\u9009\u62E9"}],domainBrainAccount:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},z=p=>{C.value.validate(o=>{p(o)})},J=()=>{C.value.clearValidate()},w=h([]),P=async()=>{const p=await te({areaCode:L.value.regionCode});w.value=p.data},H=p=>{a.value.relatedExistsApplicationCode=p.applicationCode},K=()=>{var p,o,v;if(((p=d.coreBusiness)==null?void 0:p.length)<=((o=a.value.coreBusinessList)==null?void 0:o.length)){M.$message.warning(`\u6700\u591A\u6DFB\u52A0${((v=d.coreBusiness)==null?void 0:v.length)||1}\u4E2A\u6838\u5FC3\u4E1A\u52A1`);return}a.value.coreBusinessList.push({})},Q=p=>{a.value.coreBusinessList.splice(p,1)};return S(()=>d.drawerVisible,p=>{var o;p&&(a.value={...d.data,coreBusinessList:(o=d.data.coreBusinessList)!=null&&o.length?d.data.coreBusinessList:[{}]},P())},{immediate:!0}),S(()=>d.data,p=>{var o;a.value={...d.data,coreBusinessList:(o=d.data.coreBusinessList)!=null&&o.length?d.data.coreBusinessList:[{}]}},{immediate:!0,deep:!0}),G({validForm:z,formData:a,clearValidate:J}),(p,o)=>{const v=c("el-option"),B=c("el-select"),r=c("el-form-item"),n=c("el-col"),g=c("el-input"),U=c("el-radio"),N=c("el-radio-group"),W=c("el-input-number"),A=c("el-row"),I=c("el-button"),X=c("el-form");return u(),m(X,{ref_key:"formRef",ref:C,model:a.value,rules:j,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:l(()=>[e(A,{gutter:20},{default:l(()=>[d.isFirst===0&&V(L).regionCode==="331123"||V(L).regionCode!=="331123"?(u(),f(_,{key:0},[e(n,{span:12},{default:l(()=>[e(r,{label:"\u5173\u8054IRS\u5DF2\u6CE8\u518C\u5E94\u7528",prop:"relatedExistsApplication"},{default:l(()=>[e(B,{modelValue:a.value.relatedExistsApplication,"onUpdate:modelValue":o[0]||(o[0]=s=>a.value.relatedExistsApplication=s),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"applicationCode",onChange:H},{default:l(()=>[(u(!0),f(_,null,b(w.value,(s,t)=>(u(),m(v,{key:t,label:s.applicationName,value:{applicationCode:s.applicationCode,applicationName:s.applicationName}},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),oe]),_:1})]),_:1}),e(n,{span:12},{default:l(()=>[e(r,{label:"IRS\u5E94\u7528\u7F16\u7801",prop:"relatedExistsApplicationCode"},{default:l(()=>[e(g,{modelValue:a.value.relatedExistsApplicationCode,"onUpdate:modelValue":o[1]||(o[1]=s=>a.value.relatedExistsApplicationCode=s),disabled:""},null,8,["modelValue"])]),_:1})]),_:1})],64)):(u(),m(n,{key:1,span:12},{default:l(()=>[e(r,{label:"\u5E94\u7528\u540D\u79F0",prop:"applicationName"},{default:l(()=>[e(g,{modelValue:a.value.applicationName,"onUpdate:modelValue":o[2]||(o[2]=s=>a.value.applicationName=s),placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1})),e(n,{span:12},{default:l(()=>[e(r,{label:"\u5E94\u7528\u7C7B\u578B",prop:"applicationType"},{default:l(()=>[e(B,{modelValue:a.value.applicationType,"onUpdate:modelValue":o[3]||(o[3]=s=>a.value.applicationType=s),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),f(_,null,b(V(T),(s,t)=>(u(),m(v,{key:t,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:l(()=>[e(r,{label:"\u53D1\u5E03\u7AEF",prop:"publishSide"},{default:l(()=>[e(B,{modelValue:a.value.publishSide,"onUpdate:modelValue":o[4]||(o[4]=s=>a.value.publishSide=s),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),f(_,null,b(V($),(s,t)=>(u(),m(v,{key:t,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:24},{default:l(()=>[e(r,{label:"\u5E94\u7528\u7B80\u4ECB",prop:"applicationSummary"},{default:l(()=>[e(g,{modelValue:a.value.applicationSummary,"onUpdate:modelValue":o[5]||(o[5]=s=>a.value.applicationSummary=s),autosize:{minRows:2,maxRows:4},maxlength:"2000",type:"textarea",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:l(()=>[e(r,{label:"\u4E00\u672C\u8D26\u91CD\u5927\u5E94\u7528\u540D\u79F0"},{default:l(()=>[e(B,{modelValue:a.value.accountAppName,"onUpdate:modelValue":o[6]||(o[6]=s=>a.value.accountAppName=s),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:""},{default:l(()=>[(u(!0),f(_,null,b(V(O),(s,t)=>(u(),m(v,{key:t,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:l(()=>[e(r,{label:"\u9886\u57DF\u201C\u5927\u8111\u201D\u4E00\u672C\u8D26"},{default:l(()=>[e(B,{modelValue:a.value.domainBrainAccount,"onUpdate:modelValue":o[7]||(o[7]=s=>a.value.domainBrainAccount=s),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),f(_,null,b(V(F),(s,t)=>(u(),m(v,{key:t,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:24},{default:l(()=>[e(r,{label:"\u7B49\u4FDD\u7EA7\u522B",prop:"secrecyGrade"},{default:l(()=>[e(N,{modelValue:a.value.secrecyGrade,"onUpdate:modelValue":o[8]||(o[8]=s=>a.value.secrecyGrade=s)},{default:l(()=>[(u(!0),f(_,null,b(V(k),(s,t)=>(u(),m(U,{key:t,label:t*1},{default:l(()=>[y(D(s),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:24},{default:l(()=>[e(r,{label:"\u5BC6\u7801\u6D4B\u8BC4\u7EA7\u522B",prop:"passwordGrade"},{default:l(()=>[e(N,{modelValue:a.value.passwordGrade,"onUpdate:modelValue":o[9]||(o[9]=s=>a.value.passwordGrade=s)},{default:l(()=>[(u(!0),f(_,null,b(V(k),(s,t)=>(u(),m(U,{key:t,label:t*1},{default:l(()=>[y(D(s),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),(u(!0),f(_,null,b(a.value.coreBusinessList,(s,t)=>{var x;return u(),f("div",{key:t,class:"py-24 pr-60 mb-16 relative",style:{background:"rgb(245, 248, 250)"}},[e(A,null,{default:l(()=>[e(n,{span:12},{default:l(()=>[e(r,{label:"\u6838\u5FC3\u4E1A\u52A1",prop:`coreBusinessList[${t}].coreBusiness`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:l(()=>[e(B,{modelValue:a.value.coreBusinessList[t].coreBusiness,"onUpdate:modelValue":i=>a.value.coreBusinessList[t].coreBusiness=i,placeholder:"\u8BF7\u9009\u62E9\u6838\u5FC3\u4E1A\u52A1",class:"w-full"},{default:l(()=>[(u(!0),f(_,null,b(d.coreBusiness,(i,Y)=>(u(),m(v,{key:Y,label:i.matterName,value:i.matterName},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(n,{span:12},{default:l(()=>[e(r,{label:"\u5206\u503C",prop:`coreBusinessList[${t}].score`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(W,{modelValue:a.value.coreBusinessList[t].score,"onUpdate:modelValue":i=>a.value.coreBusinessList[t].score=i,class:"input-amount f",placeholder:"\u8BF7\u586B\u5199",min:.01,max:10,precision:2,controls:!1,onMousewheel:o[10]||(o[10]=le(()=>{},["prevent"]))},{suffix:l(()=>[y("\u5206")]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(n,{span:12},{default:l(()=>[e(r,{label:"\u4E1A\u52A1\u6307\u6807\u540D\u79F0",prop:`coreBusinessList[${t}].businessIndicatorName`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[t].businessIndicatorName,"onUpdate:modelValue":i=>a.value.coreBusinessList[t].businessIndicatorName=i,maxlength:50,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(n,{span:12},{default:l(()=>[e(r,{label:"\u4E1A\u52A1\u6307\u6807\u63CF\u8FF0",prop:`coreBusinessList[${t}].businessIndicatorDescription`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[t].businessIndicatorDescription,"onUpdate:modelValue":i=>a.value.coreBusinessList[t].businessIndicatorDescription=i,maxlength:50,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(n,{span:12},{default:l(()=>[e(r,{label:"\u6307\u6807\u8BBE\u8BA1\u4F9D\u636E",prop:`coreBusinessList[${t}].indexDesignBasis`,style:{"margin-bottom":"0"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[t].indexDesignBasis,"onUpdate:modelValue":i=>a.value.coreBusinessList[t].indexDesignBasis=i,maxlength:50,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(n,{span:12},{default:l(()=>[e(r,{label:"\u6307\u6807\u8BA1\u7B97\u65B9\u6CD5",prop:`coreBusinessList[${t}].indexCalculationMethod`,style:{"margin-bottom":"0"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[t].indexCalculationMethod,"onUpdate:modelValue":i=>a.value.coreBusinessList[t].indexCalculationMethod=i,maxlength:50,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024),((x=a.value.coreBusinessList)==null?void 0:x.length)>1?(u(),m(I,{key:0,type:"danger",link:"",plain:"",class:"absolute top-10 right-8",onClick:i=>Q(t)},{default:l(()=>[y("\u5220\u9664")]),_:2},1032,["onClick"])):ae("",!0)])}),128)),E("p",null,[e(I,{type:"primary",size:"small",icon:"Plus",plain:"",class:"ml-80 block",onClick:K},{default:l(()=>[y("\u6DFB\u52A0\u6838\u5FC3\u4E1A\u52A1")]),_:1})])]),_:1})]),_:1},8,["model"])}}});export{ie as default};