From c10e6fb3ee9a7a6fb6cf09bf7b3e02106372357c Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Fri, 25 Oct 2024 11:46:00 +0800 Subject: [PATCH 01/60] =?UTF-8?q?feature/2.16.1.2410.01-=E6=AC=A1=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/pages/ruleConfig/conditions.js | 18 ++++++++++++++++++ pc4mobx/hrmSalary/pages/ruleConfig/form.js | 10 ++++++++-- pc4mobx/hrmSalary/pages/ruleConfig/index.less | 13 +++++++++++++ .../hrmSalary/pages/ruleConfig/ruleConfig.js | 4 +++- 4 files changed, 42 insertions(+), 3 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js index bb22f65e..783b0cb5 100644 --- a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js +++ b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js @@ -59,6 +59,24 @@ export const conditions = [ lanId: 543358, defaultshow: true }, + { + items: [ + { + conditionType: "SWITCH", + domkey: ["openSecondaryAccount"], + fieldcol: 10, + label: "启用主次账号", + tip: "启用后,若有次账号相关档案,则此功能不能关闭。", + tipLanId: 111, + lanId: 111, + labelcol: 8, + viewAttr: 2 + } + ], + title: "主次身份", + lanId: 111, + defaultshow: true + }, { items: [ { diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/form.js b/pc4mobx/hrmSalary/pages/ruleConfig/form.js index 9b17f248..09a946f8 100644 --- a/pc4mobx/hrmSalary/pages/ruleConfig/form.js +++ b/pc4mobx/hrmSalary/pages/ruleConfig/form.js @@ -1,8 +1,9 @@ import React from "react"; -import { WeaFormItem, WeaSearchGroup, WeaTools } from "ecCom"; +import { WeaFormItem, WeaHelpfulTip, WeaLocaleProvider, WeaSearchGroup, WeaTools } from "ecCom"; import { WeaSwitch } from "comsMobx"; const getKey = WeaTools.getKey; +const getLabel = WeaLocaleProvider.getLabel; export const renderRuleForm = (form, condition, onChange) => { const { isFormInit } = form; @@ -14,7 +15,12 @@ export const renderRuleForm = (form, condition, onChange) => { items.push({ com: ( + {fields.label} + {fields.tip && } + } + labelCol={{ span: `${fields.labelcol}` }} wrapperCol={{ span: `${fields.fieldcol}` }} error={form.getError(fields)} tipPosition="bottom">