InstitutionDetail.bH3606LN.js 4.8 KB

1
  1. import{ae as e,af as t,U as a,V as s,g as i,ad as l}from"./element-plus.ea_38_Np.js";import{p as n,r as o,s as r,t as u,C as p,I as d,_ as m}from"./index.CAsHN19g.js";import j from"./RuleList.BsogWvBr.js";import _ from"./QuotaList.Dx0cKEnp.js";import{M as f,aD as c,aL as v,u as b,I as y,bJ as h,H as I,bb as g,bk as w,aU as x,q}from"./@vue.DbmRtknU.js";import"./lodash-es.DaM9m3L-.js";import"./async-validator.j0i5Y79Y.js";import"./@popperjs.DxtSUbXb.js";import"./@ctrl.BEgk5vdO.js";import"./dayjs.DCWbrgJ0.js";import"./memoize-one.BAtLgO95.js";import"./normalize-wheel-es.TzhA1irr.js";import"./@floating-ui.8vigAAFV.js";import"./pinia.BlfmsheH.js";import"./@vueuse.Dnsd2JKX.js";import"./vue-i18n.DXLOBfKS.js";import"./@intlify.DPMNdUn_.js";import"./nprogress.BTjJXJ-u.js";import"./codemirror.CYSLATvI.js";import"./diff-match-patch.DkK4wJpa.js";import"./vue-web-terminal.D-rog7dz.js";import"./vue.MGxsMDTR.js";/* empty css */import"./vue-router.yxIMtaxH.js";import"./axios.Da-QW0H8.js";import"./qs.BQjOrGHM.js";import"./side-channel.4q28KFJj.js";import"./es-errors.DTEWvbA_.js";import"./object-inspect.DvQZIv3_.js";import"./side-channel-list.Do0-XmF5.js";import"./side-channel-map.DNHQ53lO.js";import"./get-intrinsic.Bbe5x-9b.js";import"./es-object-atoms.CyiuHMUS.js";import"./math-intrinsics.pM-JTNwN.js";import"./gopd.BudZp56J.js";import"./es-define-property.F0aoeP8o.js";import"./has-symbols.BcO-SUVM.js";import"./get-proto.Cb_fpw-j.js";import"./dunder-proto.WEH3rgQR.js";import"./call-bind-apply-helpers.DJjIjCF_.js";import"./function-bind.DrnB-baK.js";import"./hasown.BXcyoiLU.js";import"./call-bound.22gFUC2Q.js";import"./side-channel-weakmap.DpSeWE6i.js";import"./pinia-plugin-persistedstate.COWkwNh5.js";import"./time.PBG2ZM_I.js";const D={class:"institution-detail"},L=m(f({__name:"InstitutionDetail",props:{institutionId:{}},setup(m){const f=m,L=x("basic"),V=x({status:"",created_time:"",updated_time:""});function k(e){if(!e)return"-";const t=p.find(t=>t.value===e);return t?t.label:e}const z=n(),C=q(()=>{var e;return null==(e=z.getCurrentEnterprise)?void 0:e.enterprise_id});return c(()=>{!async function(){if(!f.institutionId)return;const e=await d.detailInstitution(f.institutionId,C.value);e.data.data&&(V.value=e.data.data)}()}),(n,p)=>{const d=s,m=i,c=a,x=l,q=t,z=e;return v(),b("div",D,[y(z,{modelValue:L.value,"onUpdate:modelValue":p[0]||(p[0]=e=>L.value=e),class:"detail-tabs"},{default:h(()=>[y(q,{label:"基本信息",name:"basic"},{default:h(()=>[y(c,{column:3,border:""},{default:h(()=>[y(d,{label:"制度ID",span:2},{default:h(()=>[I(g(V.value.institution_id||"-"),1)]),_:1}),y(d,{label:"状态",span:1},{default:h(()=>[y(m,{type:w(o)[V.value.status]},{default:h(()=>[I(g(w(r)[V.value.status]||V.value.status),1)]),_:1},8,["type"])]),_:1}),y(d,{label:"企业ID",span:2},{default:h(()=>[I(g(V.value.enterprise_id||"-"),1)]),_:1}),y(d,{label:"外部业务编号",span:1},{default:h(()=>[I(g(V.value.outer_source_id||"-"),1)]),_:1}),y(d,{label:"制度名称",span:3},{default:h(()=>[I(g(V.value.name||V.value.institution_name||"-"),1)]),_:1}),y(d,{label:"费用类型",span:1},{default:h(()=>[I(g(w(u)[V.value.expense_type]||V.value.expense_type||"-"),1)]),_:1}),y(d,{label:"是否启用",span:2},{default:h(()=>[I(g("1"===V.value.effective?"启用":"停用"),1)]),_:1}),y(d,{label:"生效开始时间",span:1},{default:h(()=>[I(g(V.value.effective_start_date||"-"),1)]),_:1}),y(d,{label:"生效结束时间",span:2},{default:h(()=>[I(g(V.value.effective_end_date||"-"),1)]),_:1}),y(d,{label:"额度发放方式",span:1},{default:h(()=>[I(g("period"===V.value.grant_mode?"按固定周期":"-"),1)]),_:1}),y(d,{label:"适用员工范围",span:2},{default:h(()=>{return[I(g((e=V.value.applicable_scope,e?{department:"按部门",employee:"按员工",all:"全体员工",none:"暂不设置"}[e]||e:"-")),1)];var e}),_:1}),y(d,{label:"费控咨询模式",span:3},{default:h(()=>[I(g(k(V.value.consult_mode)),1)]),_:1}),y(d,{label:"制度描述",span:3},{default:h(()=>[I(g(V.value.institution_desc||"-"),1)]),_:1})]),_:1}),y(x,{"content-position":"left"},{default:h(()=>[...p[1]||(p[1]=[I("时间信息",-1)])]),_:1}),y(c,{column:3,border:""},{default:h(()=>[y(d,{label:"创建时间",span:1},{default:h(()=>[I(g(V.value.created_time||"-"),1)]),_:1}),y(d,{label:"更新时间",span:2},{default:h(()=>[I(g(V.value.updated_time||"-"),1)]),_:1})]),_:1})]),_:1}),y(q,{label:"使用规则",name:"rule"},{default:h(()=>[y(j,{"institution-id":f.institutionId,readonly:""},null,8,["institution-id"])]),_:1}),y(q,{label:"额度管理",name:"quota"},{default:h(()=>[y(_,{"institution-id":f.institutionId,"grant-mode":V.value.grant_mode||"period","enterprise-id":V.value.enterprise_id,readonly:""},null,8,["institution-id","grant-mode","enterprise-id"])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-9ba2f644"]]);export{L as default};