From 204613099aa2fc5787a6751b9e520e51b21c00df Mon Sep 17 00:00:00 2001 From: liyongshun <971387674@qq.com> Date: Mon, 6 Jun 2022 14:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=BC=96=E5=8F=B7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/branchNumSetting/index.js | 2 +- .../components/branchNumSetting/index.less | 23 ++- .../components/deptNumberSet/index.js | 154 ++++++++++++++++++ pc4mobx/organization/index.js | 8 +- pc4mobx/organization/public/i18n.js | 2 + pc4mobx/organization/style/index.less | 20 +-- 6 files changed, 194 insertions(+), 15 deletions(-) create mode 100644 pc4mobx/organization/components/deptNumberSet/index.js diff --git a/pc4mobx/organization/components/branchNumSetting/index.js b/pc4mobx/organization/components/branchNumSetting/index.js index 05f4148..960e39c 100644 --- a/pc4mobx/organization/components/branchNumSetting/index.js +++ b/pc4mobx/organization/components/branchNumSetting/index.js @@ -2,7 +2,7 @@ * Author: 黎永顺 * Description: 分部编号设置 * Date: 2022-05-17 14:30:57 - * LastEditTime: 2022-05-30 10:23:18 + * LastEditTime: 2022-06-06 09:42:23 */ import React, { Component, Fragment } from "react"; import { Button } from "antd"; diff --git a/pc4mobx/organization/components/branchNumSetting/index.less b/pc4mobx/organization/components/branchNumSetting/index.less index 7ae8a45..727212b 100644 --- a/pc4mobx/organization/components/branchNumSetting/index.less +++ b/pc4mobx/organization/components/branchNumSetting/index.less @@ -1,9 +1,11 @@ -.branch-wapper { +.branch-wapper, +.dept-number-set { height: 100%; display: flex; flex-direction: column; - .branch-content { + .branch-content, + .dept-content { flex: 1; overflow: hidden auto; @@ -16,6 +18,23 @@ background: #f7fbfe; } + .codeNumbering { + .codeNumbering-operateWapper { + display: flex; + align-items: center; + + .wea-select { + width: inherit !important; + margin-left: 8px; + } + + .wea-helpful-tip { + margin-left: 8px; + margin-top: 3px; + } + } + } + .numberComposition { .preview { margin-top: 20px; diff --git a/pc4mobx/organization/components/deptNumberSet/index.js b/pc4mobx/organization/components/deptNumberSet/index.js new file mode 100644 index 0000000..17ce04c --- /dev/null +++ b/pc4mobx/organization/components/deptNumberSet/index.js @@ -0,0 +1,154 @@ +/* + * Author: 黎永顺 + * Description: 部门编号设 + * Date: 2022-06-06 09:37:39 + * LastEditTime: 2022-06-06 10:26:35 + */ +import React, { Component, Fragment } from "react"; +import { Button } from "antd"; +import { + WeaTop, + WeaFormItem, + WeaCheckbox, + WeaSearchGroup, + WeaSelect, + WeaHelpfulTip, +} from "ecCom"; +import StartReservedNumberSet from "../branchNumSetting/components/startReservedNumberSet"; +import NumberComposition from "../branchNumSetting/components/numberComposition"; +import { i18n } from "../../public/i18n"; +import "../branchNumSetting/index.less"; + +export default class DeptNumberSet extends Component { + constructor() { + super(); + this.state = { + checkVal: "0", + isSingle: "0", //是否单独流水 + singleDate: "month", //日期单独流水 + }; + } + + /** + * name:提示文本 + * return {*} + */ + helpContent = () => { + return ( +
开启后,可根据设置的部门编号规则自动生成部门编号,涉及场景如下:
+1.手动新建和手动编辑部门时可选择重新生成编号和选择预留部门编号;
+2.导入人员-添加时,新创建的部门可自动生成部门编号;
+3.组织结构导入-添加新部门且部门编号列为空时可自动生成部门编号;
+【注意】开启前请先确认部门编号字段已启用!
+