- {_.map(toJS(product), (item, index) => {
- const { id, title, subTitle, products } = item;
- return (
-
- {/*
{title}
-
{subTitle}
*/}
-
+
+
}
+ iconBgcolor="#217346"
+ buttons={btns}
+ showDropIcon={true}
+ dropMenuDatas={dropMenuDatas}
+ />
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ serialenable: checkVal,
+ },
+ })
+ }
+ />
+
+
+ {/* 内容区 */}
+ {serialenable === "1" && (
+
+
+
+
+
- );
- })}
- {/*
-
- 演示
-
- 脚本
-
- */}
+ {!_.isEmpty(options) && (
+
+
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ enable: isSingle,
+ },
+ },
+ })
+ }
+ />
+ {dateSerial.enable == "1" && (
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ key,
+ },
+ },
+ })
+ }
+ />
+ )}
+
+
+
+
+
+
+ )}
+
+
+ (this.numberSetRef = dom)}
+ onSet={this.handleSetNumber}
+ startNumberInfo={startNumberInfo}
+ onChange={this.handleChangeTable}
+ onSaveStartNumber={this.handleSubmitStartNumber}
+ />
+
+
+
+ )}
- {/* 弹框 */}
- {dialogParams.visible && (
-
{
- this.resizeWidthHeight();
- this.setState({
- dialogParams: {
- ...this.state.dialogParams,
- visible: false,
- productId: "",
- },
- });
- }}
- visible={dialogParams.visible}
- style={{ width: dialogWidth }}>
-
-
- )}
);
}
}
-
-ecodeSDK.exp(ProductIndex);
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..4a384a2
--- /dev/null
+++ b/pc4mobx/organization/components/deptNumberSet/index.js
@@ -0,0 +1,312 @@
+/*
+ * Author: 黎永顺
+ * Description: 部门编号设置
+ * Date: 2022-06-06 09:37:39
+ * LastEditTime: 2022-06-07 17:44:30
+ */
+import React, { Component, Fragment } from "react";
+import { inject, observer } from "mobx-react";
+import { Button, message } 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 moment from 'moment';
+import "../branchNumSetting/index.less";
+
+@inject("numberSet")
+@observer
+export default class DeptNumberSet extends Component {
+ constructor() {
+ super();
+ this.state = {
+ options: [],
+ loading: false,
+ dataSource: [],
+ startNumberInfo: {
+ columns: [],
+ dataSource: [],
+ },
+ subCompanyInfo: {
+ details: [],
+ serialenable: "0",
+ dateSerial: {
+ enable: "0",
+ key: "",
+ },
+ },
+ };
+ }
+
+ componentDidMount() {
+ this.getCodeSetting();
+ }
+
+ getCodeSetting = () => {
+ const { numberSet } = this.props;
+ numberSet
+ .getCodeSetting({ serialtype: "DEPARTMENT" })
+ .then(({ api_status, details, serialenable, dateSerial = {} }) => {
+ if (api_status && !_.isEmpty(details)) {
+ this.setState({
+ subCompanyInfo: { details, serialenable, dateSerial },
+ });
+ }
+ });
+ };
+
+ handleSubmit = () => {
+ const { numberSet } = this.props;
+ const { dataSource, subCompanyInfo } = this.state;
+ const { serialenable, dateSerial } = subCompanyInfo;
+ const details = _.map(dataSource, (it, showorder) => {
+ const { numField, value: rulevalue } = it;
+ return {
+ ruletype: _.upperCase(numField),
+ rulevalue,
+ showorder,
+ };
+ });
+ const payload = {
+ datas: JSON.stringify({
+ serialenable,
+ details,
+ dateSerial,
+ serialtype: "DEPARTMENT",
+ }),
+ };
+ this.setState({ loading: true });
+ numberSet.saveOrUpdateCodeSetting(payload).then(({ api_status }) => {
+ this.setState({ loading: false });
+ if (api_status) {
+ message.success("保存成功");
+ }
+ });
+ };
+
+ handleChangeCode = (data) => {
+ const tmpV = _.filter(
+ data,
+ (it) =>
+ it.numField === "year" ||
+ it.numField === "month" ||
+ it.numField === "day"
+ );
+ this.setState({
+ dataSource: _.cloneDeep(data),
+ options: _.map(tmpV, (it) => {
+ const { numFieldName: showname, numField: key } = it;
+ return { key: _.upperCase(key), showname };
+ }),
+ });
+ };
+
+ handleSetNumber = (type) => {
+ this.handleSubmit();
+ const { numberSet } = this.props;
+ if (type === "start") {
+ const payload = {
+ coderuleid: 2,
+ type: "",
+ dateStart: moment().format("YYYY"),
+ dateEnd: moment().format("YYYY"),
+ subCompanyId: "",
+ deptId: "",
+ jobtitlesId: "",
+ };
+ numberSet
+ .getStartNumForm(payload)
+ .then(({ api_status, columns, dataSource }) => {
+ if (api_status) {
+ this.setState({
+ startNumberInfo: { columns, dataSource },
+ });
+ }
+ });
+ }
+ };
+ handleChangeTable = (newColumns, datas) => {
+ this.setState({
+ startNumberInfo: {
+ ...this.state.startNumberInfo,
+ columns: newColumns,
+ dataSource: datas,
+ },
+ });
+ };
+
+ handleSubmitStartNumber = () => {
+ const { numberSet } = this.props;
+ const payload = {
+ datas: JSON.stringify({
+ coderuleid: 2,
+ ...this.state.startNumberInfo,
+ }),
+ };
+ numberSet.saveStartNum(payload).then(({ api_status }) => {
+ if (api_status) {
+ message.success("保存成功");
+ this.numberSetRef.handleClose();
+ }
+ });
+ };
+
+ /**
+ * name:提示文本
+ * return {*}
+ */
+ helpContent = () => {
+ return (
+
+
开启后,可根据设置的部门编号规则自动生成部门编号,涉及场景如下:
+
1.手动新建和手动编辑部门时可选择重新生成编号和选择预留部门编号;
+
2.导入人员-添加时,新创建的部门可自动生成部门编号;
+
3.组织结构导入-添加新部门且部门编号列为空时可自动生成部门编号;
+
【注意】开启前请先确认部门编号字段已启用!
+
+ );
+ };
+ render() {
+ const { options, subCompanyInfo, loading, startNumberInfo } = this.state;
+ const { details, serialenable, dateSerial } = subCompanyInfo;
+ const btns = [
+
,
+ ];
+ const dropMenuDatas = [
+ {
+ key: "save",
+ disabled: false,
+ icon:
,
+ content: "保存",
+ onClick: (key) => this.handleSubmit(),
+ },
+ ];
+ return (
+
+
}
+ iconBgcolor="#217346"
+ buttons={btns}
+ showDropIcon={true}
+ dropMenuDatas={dropMenuDatas}
+ />
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ serialenable: checkVal,
+ },
+ })
+ }
+ />
+
+
+ {/* 内容区 */}
+ {serialenable === "1" && (
+
+
+
+
+
+
+ {!_.isEmpty(options) && (
+
+
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ enable: isSingle,
+ },
+ },
+ })
+ }
+ />
+ {dateSerial.enable == "1" && (
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ key,
+ },
+ },
+ })
+ }
+ />
+ )}
+
+
+
+
+
+
+ )}
+
+
+ (this.numberSetRef = dom)}
+ onSet={this.handleSetNumber}
+ startNumberInfo={startNumberInfo}
+ onChange={this.handleChangeTable}
+ onSaveStartNumber={this.handleSubmitStartNumber}
+ />
+
+
+
+ )}
+
+
+ );
+ }
+}
diff --git a/pc4mobx/organization/components/postNumberSet/index.js b/pc4mobx/organization/components/postNumberSet/index.js
new file mode 100644
index 0000000..9164bb2
--- /dev/null
+++ b/pc4mobx/organization/components/postNumberSet/index.js
@@ -0,0 +1,312 @@
+/*
+ * Author: 黎永顺
+ * Description: 岗位编号设置
+ * Date: 2022-06-06 09:37:39
+ * LastEditTime: 2022-06-07 17:49:19
+ */
+import React, { Component, Fragment } from "react";
+import { inject, observer } from "mobx-react";
+import { Button, message } 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 moment from "moment";
+import "../branchNumSetting/index.less";
+
+@inject("numberSet")
+@observer
+export default class PostNumberSet extends Component {
+ constructor() {
+ super();
+ this.state = {
+ options: [],
+ loading: false,
+ dataSource: [],
+ startNumberInfo: {
+ columns: [],
+ dataSource: [],
+ },
+ subCompanyInfo: {
+ details: [],
+ serialenable: "0",
+ dateSerial: {
+ enable: "0",
+ key: "",
+ },
+ },
+ };
+ }
+
+ componentDidMount() {
+ this.getCodeSetting();
+ }
+
+ getCodeSetting = () => {
+ const { numberSet } = this.props;
+ numberSet
+ .getCodeSetting({ serialtype: "JOBTITLES" })
+ .then(({ api_status, details, serialenable, dateSerial = {} }) => {
+ if (api_status && !_.isEmpty(details)) {
+ this.setState({
+ subCompanyInfo: { details, serialenable, dateSerial },
+ });
+ }
+ });
+ };
+
+ handleSubmit = () => {
+ const { numberSet } = this.props;
+ const { dataSource, subCompanyInfo } = this.state;
+ const { serialenable, dateSerial } = subCompanyInfo;
+ const details = _.map(dataSource, (it, showorder) => {
+ const { numField, value: rulevalue } = it;
+ return {
+ ruletype: _.upperCase(numField),
+ rulevalue,
+ showorder,
+ };
+ });
+ const payload = {
+ datas: JSON.stringify({
+ serialenable,
+ details,
+ dateSerial,
+ serialtype: "JOBTITLES",
+ }),
+ };
+ this.setState({ loading: true });
+ numberSet.saveOrUpdateCodeSetting(payload).then(({ api_status }) => {
+ this.setState({ loading: false });
+ if (api_status) {
+ message.success("保存成功");
+ }
+ });
+ };
+
+ handleChangeCode = (data) => {
+ const tmpV = _.filter(
+ data,
+ (it) =>
+ it.numField === "year" ||
+ it.numField === "month" ||
+ it.numField === "day"
+ );
+ this.setState({
+ dataSource: _.cloneDeep(data),
+ options: _.map(tmpV, (it) => {
+ const { numFieldName: showname, numField: key } = it;
+ return { key: _.upperCase(key), showname };
+ }),
+ });
+ };
+
+ handleSetNumber = (type) => {
+ this.handleSubmit();
+ const { numberSet } = this.props;
+ if (type === "start") {
+ const payload = {
+ coderuleid: 3,
+ type: "",
+ dateStart: moment().format("YYYY"),
+ dateEnd: moment().format("YYYY"),
+ subCompanyId: "",
+ deptId: "",
+ jobtitlesId: "",
+ };
+ numberSet
+ .getStartNumForm(payload)
+ .then(({ api_status, columns, dataSource }) => {
+ if (api_status) {
+ this.setState({
+ startNumberInfo: { columns, dataSource },
+ });
+ }
+ });
+ }
+ };
+ handleChangeTable = (newColumns, datas) => {
+ this.setState({
+ startNumberInfo: {
+ ...this.state.startNumberInfo,
+ columns: newColumns,
+ dataSource: datas,
+ },
+ });
+ };
+
+ handleSubmitStartNumber = () => {
+ const { numberSet } = this.props;
+ const payload = {
+ datas: JSON.stringify({
+ coderuleid: 3,
+ ...this.state.startNumberInfo,
+ }),
+ };
+ numberSet.saveStartNum(payload).then(({ api_status }) => {
+ if (api_status) {
+ message.success("保存成功");
+ this.numberSetRef.handleClose();
+ }
+ });
+ };
+
+ /**
+ * name:提示文本
+ * return {*}
+ */
+ helpContent = () => {
+ return (
+
+
开启后,可根据设置的部门编号规则自动生成部门编号,涉及场景如下:
+
1.手动新建和手动编辑部门时可选择重新生成编号和选择预留部门编号;
+
2.导入人员-添加时,新创建的部门可自动生成部门编号;
+
3.组织结构导入-添加新部门且部门编号列为空时可自动生成部门编号;
+
【注意】开启前请先确认部门编号字段已启用!
+
+ );
+ };
+ render() {
+ const { options, subCompanyInfo, loading, startNumberInfo } = this.state;
+ const { details, serialenable, dateSerial } = subCompanyInfo;
+ const btns = [
+
,
+ ];
+ const dropMenuDatas = [
+ {
+ key: "save",
+ disabled: false,
+ icon:
,
+ content: "保存",
+ onClick: (key) => this.handleSubmit(),
+ },
+ ];
+ return (
+
+
}
+ iconBgcolor="#217346"
+ buttons={btns}
+ showDropIcon={true}
+ dropMenuDatas={dropMenuDatas}
+ />
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ serialenable: checkVal,
+ },
+ })
+ }
+ />
+
+
+ {/* 内容区 */}
+ {serialenable === "1" && (
+
+
+
+
+
+
+ {!_.isEmpty(options) && (
+
+
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ enable: isSingle,
+ },
+ },
+ })
+ }
+ />
+ {dateSerial.enable == "1" && (
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ key,
+ },
+ },
+ })
+ }
+ />
+ )}
+
+
+
+
+
+
+ )}
+
+
+ (this.numberSetRef = dom)}
+ onSet={this.handleSetNumber}
+ startNumberInfo={startNumberInfo}
+ onChange={this.handleChangeTable}
+ onSaveStartNumber={this.handleSubmitStartNumber}
+ />
+
+
+
+ )}
+
+
+ );
+ }
+}
diff --git a/pc4mobx/organization/components/resourceNumberSet/index.js b/pc4mobx/organization/components/resourceNumberSet/index.js
new file mode 100644
index 0000000..702528b
--- /dev/null
+++ b/pc4mobx/organization/components/resourceNumberSet/index.js
@@ -0,0 +1,312 @@
+/*
+ * Author: 黎永顺
+ * Description: 岗位编号设置
+ * Date: 2022-06-06 09:37:39
+ * LastEditTime: 2022-06-07 17:56:42
+ */
+import React, { Component, Fragment } from "react";
+import { inject, observer } from "mobx-react";
+import { Button, message } 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 moment from "moment";
+import "../branchNumSetting/index.less";
+
+@inject("numberSet")
+@observer
+export default class ResourceNumberSet extends Component {
+ constructor() {
+ super();
+ this.state = {
+ options: [],
+ loading: false,
+ dataSource: [],
+ startNumberInfo: {
+ columns: [],
+ dataSource: [],
+ },
+ subCompanyInfo: {
+ details: [],
+ serialenable: "0",
+ dateSerial: {
+ enable: "0",
+ key: "",
+ },
+ },
+ };
+ }
+
+ componentDidMount() {
+ this.getCodeSetting();
+ }
+
+ getCodeSetting = () => {
+ const { numberSet } = this.props;
+ numberSet
+ .getCodeSetting({ serialtype: "USER" })
+ .then(({ api_status, details, serialenable, dateSerial = {} }) => {
+ if (api_status && !_.isEmpty(details)) {
+ this.setState({
+ subCompanyInfo: { details, serialenable, dateSerial },
+ });
+ }
+ });
+ };
+
+ handleSubmit = () => {
+ const { numberSet } = this.props;
+ const { dataSource, subCompanyInfo } = this.state;
+ const { serialenable, dateSerial } = subCompanyInfo;
+ const details = _.map(dataSource, (it, showorder) => {
+ const { numField, value: rulevalue } = it;
+ return {
+ ruletype: _.upperCase(numField),
+ rulevalue,
+ showorder,
+ };
+ });
+ const payload = {
+ datas: JSON.stringify({
+ serialenable,
+ details,
+ dateSerial,
+ serialtype: "USER",
+ }),
+ };
+ this.setState({ loading: true });
+ numberSet.saveOrUpdateCodeSetting(payload).then(({ api_status }) => {
+ this.setState({ loading: false });
+ if (api_status) {
+ message.success("保存成功");
+ }
+ });
+ };
+
+ handleChangeCode = (data) => {
+ const tmpV = _.filter(
+ data,
+ (it) =>
+ it.numField === "year" ||
+ it.numField === "month" ||
+ it.numField === "day"
+ );
+ this.setState({
+ dataSource: _.cloneDeep(data),
+ options: _.map(tmpV, (it) => {
+ const { numFieldName: showname, numField: key } = it;
+ return { key: _.upperCase(key), showname };
+ }),
+ });
+ };
+
+ handleSetNumber = (type) => {
+ this.handleSubmit();
+ const { numberSet } = this.props;
+ if (type === "start") {
+ const payload = {
+ coderuleid: 4,
+ type: "",
+ dateStart: moment().format("YYYY"),
+ dateEnd: moment().format("YYYY"),
+ subCompanyId: "",
+ deptId: "",
+ jobtitlesId: "",
+ };
+ numberSet
+ .getStartNumForm(payload)
+ .then(({ api_status, columns, dataSource }) => {
+ if (api_status) {
+ this.setState({
+ startNumberInfo: { columns, dataSource },
+ });
+ }
+ });
+ }
+ };
+ handleChangeTable = (newColumns, datas) => {
+ this.setState({
+ startNumberInfo: {
+ ...this.state.startNumberInfo,
+ columns: newColumns,
+ dataSource: datas,
+ },
+ });
+ };
+
+ handleSubmitStartNumber = () => {
+ const { numberSet } = this.props;
+ const payload = {
+ datas: JSON.stringify({
+ coderuleid: 4,
+ ...this.state.startNumberInfo,
+ }),
+ };
+ numberSet.saveStartNum(payload).then(({ api_status }) => {
+ if (api_status) {
+ message.success("保存成功");
+ this.numberSetRef.handleClose();
+ }
+ });
+ };
+
+ /**
+ * name:提示文本
+ * return {*}
+ */
+ helpContent = () => {
+ return (
+
+
开启后,可根据设置的部门编号规则自动生成部门编号,涉及场景如下:
+
1.手动新建和手动编辑部门时可选择重新生成编号和选择预留部门编号;
+
2.导入人员-添加时,新创建的部门可自动生成部门编号;
+
3.组织结构导入-添加新部门且部门编号列为空时可自动生成部门编号;
+
【注意】开启前请先确认部门编号字段已启用!
+
+ );
+ };
+ render() {
+ const { options, subCompanyInfo, loading, startNumberInfo } = this.state;
+ const { details, serialenable, dateSerial } = subCompanyInfo;
+ const btns = [
+
,
+ ];
+ const dropMenuDatas = [
+ {
+ key: "save",
+ disabled: false,
+ icon:
,
+ content: "保存",
+ onClick: (key) => this.handleSubmit(),
+ },
+ ];
+ return (
+
+
}
+ iconBgcolor="#217346"
+ buttons={btns}
+ showDropIcon={true}
+ dropMenuDatas={dropMenuDatas}
+ />
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ serialenable: checkVal,
+ },
+ })
+ }
+ />
+
+
+ {/* 内容区 */}
+ {serialenable === "1" && (
+
+
+
+
+
+
+ {!_.isEmpty(options) && (
+
+
+
+
+
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ enable: isSingle,
+ },
+ },
+ })
+ }
+ />
+ {dateSerial.enable == "1" && (
+
+ this.setState({
+ subCompanyInfo: {
+ ...subCompanyInfo,
+ dateSerial: {
+ ...dateSerial,
+ key,
+ },
+ },
+ })
+ }
+ />
+ )}
+
+
+
+
+
+
+ )}
+
+
+ (this.numberSetRef = dom)}
+ onSet={this.handleSetNumber}
+ startNumberInfo={startNumberInfo}
+ onChange={this.handleChangeTable}
+ onSaveStartNumber={this.handleSubmitStartNumber}
+ />
+
+
+
+ )}
+
+
+ );
+ }
+}
diff --git a/pc4mobx/organization/index.js b/pc4mobx/organization/index.js
index 4ed6499..db4a266 100644
--- a/pc4mobx/organization/index.js
+++ b/pc4mobx/organization/index.js
@@ -12,6 +12,9 @@ import Group from "./components/group/Group";
import OfficeManage from "./components/office/officeManage";
import CompanyExtend from "./components/company/CompanyExtend";
import BranchNumSetting from "./components/branchNumSetting";
+import DeptNumberSet from "./components/deptNumberSet";
+import PostNumberSet from "./components/postNumberSet";
+import ResourceNumberSet from "./components/resourceNumberSet";
import Company from "./components/company/company";
import StaffScheme from "./components/staff/StaffScheme";
import Staff from "./components/staff/Staff";
@@ -56,9 +59,20 @@ const Routes = (
path="branchNumSetting"
component={BranchNumSetting}
/>
+
+
+
-
+
diff --git a/pc4mobx/organization/public/i18n.js b/pc4mobx/organization/public/i18n.js
index 32a40a1..dc077a5 100644
--- a/pc4mobx/organization/public/i18n.js
+++ b/pc4mobx/organization/public/i18n.js
@@ -129,6 +129,9 @@ export const i18n = {
editOfficeName: () => getLabel(386247, '编辑职务信息'),
newOfficeClassifyName: () => getLabel(386246, '新建职务分类信息'),
branchNumSetting: () => getLabel(386246, '分部编号设置'),
+ deptNumSetting: () => getLabel(386246, '部门编号设置'),
+ postNumSetting: () => getLabel(386246, '岗位编号设置'),
+ userNumSetting: () => getLabel(386246, '人员编号设置'),
companyName: () => getLabel(385937, '分部'),
staffSchemeName: () => getLabel(385936, '编制方案'),
newStaffScheme: () => getLabel(386246, '新建编制方案'),
diff --git a/pc4mobx/organization/stores/index.js b/pc4mobx/organization/stores/index.js
index ca257b8..d42be77 100644
--- a/pc4mobx/organization/stores/index.js
+++ b/pc4mobx/organization/stores/index.js
@@ -6,15 +6,15 @@ import { JobGradeStore } from "./jobgrade";
import { OfficeManageStore } from "./officeManage";
import { SequenceStore } from "./sequence";
import { GroupStore } from "./group";
-import {CompanyExtendStore} from "./companyextend";
-import {CompanyStore} from "./company";
-import {DepartmentStore} from "./department";
-import {DepartmentExtendStore} from "./departmentextend";
-import {StaffSchemeStore} from "./staffscheme";
-import {StaffStore} from "./staff";
-import {JobStore} from "./job";
-import {JobExtendStore} from "./jobextend";
-
+import { CompanyExtendStore } from "./companyextend";
+import { CompanyStore } from "./company";
+import { DepartmentStore } from "./department";
+import { DepartmentExtendStore } from "./departmentextend";
+import { StaffSchemeStore } from "./staffscheme";
+import { StaffStore } from "./staff";
+import { JobStore } from "./job";
+import { JobExtendStore } from "./jobextend";
+import { NumberSetStore } from "./numberSet";
module.exports = {
simpleOrgStore: new SimpleOrgStore(),
@@ -33,4 +33,5 @@ module.exports = {
staff: new StaffStore(),
job: new JobStore(),
jobExtend: new JobExtendStore(),
+ numberSet: new NumberSetStore(),
};
diff --git a/pc4mobx/organization/stores/numberSet.js b/pc4mobx/organization/stores/numberSet.js
new file mode 100644
index 0000000..55917a5
--- /dev/null
+++ b/pc4mobx/organization/stores/numberSet.js
@@ -0,0 +1,30 @@
+/*
+ * Author: 黎永顺
+ * Description: 编号设置
+ * Date: 2022-06-07 09:54:46
+ * LastEditTime: 2022-06-07 17:00:49
+ */
+import { observable, action } from "mobx";
+import * as mobx from "mobx";
+import * as API from "../apis/numberSet"; // 引入API接口文件
+
+export class NumberSetStore {
+ @action
+ getCodeSetting(params) {
+ return API.getCodeSetting(params);
+ }
+
+ @action
+ saveOrUpdateCodeSetting(params) {
+ return API.saveOrUpdateCodeSetting(params);
+ }
+
+ @action
+ getStartNumForm(params) {
+ return API.getStartNumForm(params);
+ }
+ @action
+ saveStartNum(params) {
+ return API.saveStartNum(params);
+ }
+}
diff --git a/pc4mobx/organization/style/index.less b/pc4mobx/organization/style/index.less
index 2915a1e..f661c00 100644
--- a/pc4mobx/organization/style/index.less
+++ b/pc4mobx/organization/style/index.less
@@ -1,16 +1,16 @@
-
-
// loading 效果
.wea-demo-loading {
height: 100%;
text-align: center;
+
>div {
position: absolute;
top: 50%;
}
}
-html,body {
+html,
+body {
height: 100%;
margin: 0;
padding: 0;
@@ -22,7 +22,9 @@ body {
color: #333333;
}
-#container, body, html {
+#container,
+body,
+html {
height: 100%;
overflow: scroll !important
}
@@ -40,7 +42,7 @@ body {
height: 100%;
}
-.quickOperate{
+.quickOperate {
position: fixed;
width: 45px;
height: 250px;
@@ -48,7 +50,7 @@ body {
top: 20px;
// border: 1px solid #8b4513;
- img{
+ img {
cursor: pointer;
width: 30px;
height: 30px;
@@ -60,8 +62,4 @@ body {
display: block;
margin-top: 10px;
}
-}
-
-
-
-
+}
\ No newline at end of file