Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
11KB

  1. import{d as Z,B as x,C as ee,r as k,J as S,c as m,e as u,G as c,i as l,h as e,u as V,f,F as v,H as b,g as E,j as y,t as R,T as le,k as ae,q as se}from"./index.a2494fc2.js";import{b as te}from"./index.7c249f3d.js";const oe=Z({name:"appBasicInfo"}),ne=Object.assign(oe,{props:{data:{type:Object,default:null},drawerVisible:{type:Boolean,default:!1},isFirst:{type:Number,default:void 0},coreBusiness:{type:Array,default:()=>[]}},setup(D,{expose:G}){const{publisher:$,insuranceLevel:w,applicationType:T,accountAppNameOption:O,domainBrainAccountOptions:F}=x.dictStore.globalDicts||{},L=ee(x.userStore).userInfo||{},{proxy:M}=se(),d=D,a=k({coreBusinessList:[{}]}),C=k(),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(s=>{p(s)})},H=()=>{C.value.clearValidate()},U=k([]),J=async()=>{const p=await te({areaCode:L.value.regionCode});U.value=p.data},P=p=>{a.value.relatedExistsApplicationCode=p.applicationCode},K=()=>{var p,s,_;if(((p=d.coreBusiness)==null?void 0:p.length)<=((s=a.value.coreBusinessList)==null?void 0:s.length)){M.$message.warning(`\u6700\u591A\u6DFB\u52A0${((_=d.coreBusiness)==null?void 0:_.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 s;p&&(a.value={...d.data,coreBusinessList:(s=d.data.coreBusinessList)!=null&&s.length?d.data.coreBusinessList:[{}]},J())},{immediate:!0}),S(()=>d.data,p=>{var s;a.value={...d.data,coreBusinessList:(s=d.data.coreBusinessList)!=null&&s.length?d.data.coreBusinessList:[{}]}},{immediate:!0,deep:!0}),G({validForm:z,formData:a,clearValidate:H}),(p,s)=>{const _=m("el-option"),B=m("el-select"),r=m("el-form-item"),n=m("el-col"),g=m("el-input"),N=m("el-radio"),A=m("el-radio-group"),W=m("el-input-number"),q=m("el-row"),I=m("el-button"),X=m("el-form");return u(),c(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(q,{gutter:20},{default:l(()=>[d.isFirst===0&&V(L).regionCode==="331123"||V(L).regionCode!=="331123"?(u(),f(v,{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":s[0]||(s[0]=t=>a.value.relatedExistsApplication=t),class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"applicationCode",onChange:P},{default:l(()=>[(u(!0),f(v,null,b(U.value,(t,o)=>(u(),c(_,{key:o,label:t.applicationName,value:{applicationCode:t.applicationCode,applicationName:t.applicationName}},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s[11]||(s[11]=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))]),_: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":s[1]||(s[1]=t=>a.value.relatedExistsApplicationCode=t),disabled:""},null,8,["modelValue"])]),_:1})]),_:1})],64)):(u(),c(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":s[2]||(s[2]=t=>a.value.applicationName=t),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":s[3]||(s[3]=t=>a.value.applicationType=t),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),f(v,null,b(V(T),(t,o)=>(u(),c(_,{key:o,label:t,value:t},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":s[4]||(s[4]=t=>a.value.publishSide=t),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),f(v,null,b(V($),(t,o)=>(u(),c(_,{key:o,label:t,value:t},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":s[5]||(s[5]=t=>a.value.applicationSummary=t),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":s[6]||(s[6]=t=>a.value.accountAppName=t),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:""},{default:l(()=>[(u(!0),f(v,null,b(V(O),(t,o)=>(u(),c(_,{key:o,label:t,value:t},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":s[7]||(s[7]=t=>a.value.domainBrainAccount=t),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[(u(!0),f(v,null,b(V(F),(t,o)=>(u(),c(_,{key:o,label:t,value:t},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(A,{modelValue:a.value.secrecyGrade,"onUpdate:modelValue":s[8]||(s[8]=t=>a.value.secrecyGrade=t)},{default:l(()=>[(u(!0),f(v,null,b(V(w),(t,o)=>(u(),c(N,{key:o,label:o*1},{default:l(()=>[y(R(t),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(A,{modelValue:a.value.passwordGrade,"onUpdate:modelValue":s[9]||(s[9]=t=>a.value.passwordGrade=t)},{default:l(()=>[(u(!0),f(v,null,b(V(w),(t,o)=>(u(),c(N,{key:o,label:o*1},{default:l(()=>[y(R(t),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),(u(!0),f(v,null,b(a.value.coreBusinessList,(t,o)=>{var h;return u(),f("div",{key:o,class:"py-24 pr-60 mb-16 relative",style:{background:"rgb(245, 248, 250)"}},[e(q,null,{default:l(()=>[e(n,{span:12},{default:l(()=>[e(r,{label:"\u6838\u5FC3\u4E1A\u52A1",prop:`coreBusinessList[${o}].coreBusiness`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]},{default:l(()=>[e(B,{modelValue:a.value.coreBusinessList[o].coreBusiness,"onUpdate:modelValue":i=>a.value.coreBusinessList[o].coreBusiness=i,placeholder:"\u8BF7\u9009\u62E9\u6838\u5FC3\u4E1A\u52A1",class:"w-full"},{default:l(()=>[(u(!0),f(v,null,b(d.coreBusiness,(i,Y)=>(u(),c(_,{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[${o}].score`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(W,{modelValue:a.value.coreBusinessList[o].score,"onUpdate:modelValue":i=>a.value.coreBusinessList[o].score=i,class:"input-amount f",placeholder:"\u8BF7\u586B\u5199",min:.01,max:10,precision:2,controls:!1,onMousewheel:s[10]||(s[10]=le(()=>{},["prevent"]))},{suffix:l(()=>s[12]||(s[12]=[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[${o}].businessIndicatorName`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[o].businessIndicatorName,"onUpdate:modelValue":i=>a.value.coreBusinessList[o].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[${o}].businessIndicatorDescription`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[o].businessIndicatorDescription,"onUpdate:modelValue":i=>a.value.coreBusinessList[o].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[${o}].indexDesignBasis`,style:{"margin-bottom":"0"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[o].indexDesignBasis,"onUpdate:modelValue":i=>a.value.coreBusinessList[o].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[${o}].indexCalculationMethod`,style:{"margin-bottom":"0"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:l(()=>[e(g,{modelValue:a.value.coreBusinessList[o].indexCalculationMethod,"onUpdate:modelValue":i=>a.value.coreBusinessList[o].indexCalculationMethod=i,maxlength:50,placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024),((h=a.value.coreBusinessList)==null?void 0:h.length)>1?(u(),c(I,{key:0,type:"danger",link:"",plain:"",class:"absolute top-10 right-8",onClick:i=>Q(o)},{default:l(()=>s[13]||(s[13]=[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(()=>s[14]||(s[14]=[y("\u6DFB\u52A0\u6838\u5FC3\u4E1A\u52A1")])),_:1})])]),_:1})]),_:1},8,["model"])}}});export{ne as default};