Merge branch 'hotfix/2.9.42309.01' into release/2.9.42309.01
This commit is contained in:
commit
b52afbb7c8
|
|
@ -8,6 +8,7 @@ import React, { Component } from "react";
|
||||||
import { WeaBrowser, WeaDialog, WeaFormItem, WeaSearchGroup, WeaSelect } from "ecCom";
|
import { WeaBrowser, WeaDialog, WeaFormItem, WeaSearchGroup, WeaSelect } from "ecCom";
|
||||||
import { Button, message, Modal } from "antd";
|
import { Button, message, Modal } from "antd";
|
||||||
import { getTaxAgentRangeForm } from "../../apis/taxAgent";
|
import { getTaxAgentRangeForm } from "../../apis/taxAgent";
|
||||||
|
import { commonEnumList } from "../../apis/ruleconfig";
|
||||||
import { SelectWithAll } from "../../pages/socialSecurityBenefits/standingBookDetail/components/regAddEmployee";
|
import { SelectWithAll } from "../../pages/socialSecurityBenefits/standingBookDetail/components/regAddEmployee";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
|
|
||||||
|
|
@ -31,41 +32,74 @@ class PersonalScopeModal extends Component {
|
||||||
if (isTaxgent) {
|
if (isTaxgent) {
|
||||||
this.getTaxAgentRangeForm();
|
this.getTaxAgentRangeForm();
|
||||||
} else {
|
} else {
|
||||||
const employeeStatus = [
|
this.commonEnumList();
|
||||||
{ key: "TRIAL", showname: "试用" },
|
// const employeeStatus = [
|
||||||
{ key: "FORMAL", showname: "正式" },
|
// { key: "TRIAL", showname: "试用" },
|
||||||
{ key: "TEMPORARY", showname: "临时" },
|
// { key: "FORMAL", showname: "正式" },
|
||||||
{ key: "DELAY", showname: "试用延期" },
|
// { key: "TEMPORARY", showname: "临时" },
|
||||||
{ key: "FIRE", showname: "解雇" },
|
// { key: "DELAY", showname: "试用延期" },
|
||||||
{ key: "DEPARTURE", showname: "离职" },
|
// { key: "FIRE", showname: "解雇" },
|
||||||
{ key: "RETIRED", showname: "退休" }
|
// { key: "DEPARTURE", showname: "离职" },
|
||||||
];
|
// { key: "RETIRED", showname: "退休" }
|
||||||
const targetTypeList = [
|
// ];
|
||||||
{
|
// const targetTypeList = [
|
||||||
key: "EMPLOYEE",
|
// {
|
||||||
showname: "人员",
|
// key: "EMPLOYEE",
|
||||||
selected: false
|
// showname: "人员",
|
||||||
},
|
// selected: false
|
||||||
{
|
// },
|
||||||
key: "SUBCOMPANY",
|
// {
|
||||||
showname: "分部",
|
// key: "SUBCOMPANY",
|
||||||
selected: false
|
// showname: "分部",
|
||||||
},
|
// selected: false
|
||||||
{
|
// },
|
||||||
key: "DEPT",
|
// {
|
||||||
showname: "部门",
|
// key: "DEPT",
|
||||||
selected: false
|
// showname: "部门",
|
||||||
},
|
// selected: false
|
||||||
{
|
// },
|
||||||
key: "POSITION",
|
// {
|
||||||
showname: "岗位",
|
// key: "POSITION",
|
||||||
selected: false
|
// showname: "岗位",
|
||||||
}
|
// selected: false
|
||||||
];
|
// }
|
||||||
this.setState({ targetTypeList, employeeStatus });
|
// ];
|
||||||
|
// this.setState({ targetTypeList, employeeStatus });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
commonEnumList = () => {
|
||||||
|
commonEnumList({ enumClass: "com.engine.salary.enums.UserStatusEnum" }).then(({ status, data }) => {
|
||||||
|
if (status) {
|
||||||
|
const targetTypeList = [
|
||||||
|
{
|
||||||
|
key: "EMPLOYEE",
|
||||||
|
showname: "人员",
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "SUBCOMPANY",
|
||||||
|
showname: "分部",
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "DEPT",
|
||||||
|
showname: "部门",
|
||||||
|
selected: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "POSITION",
|
||||||
|
showname: "岗位",
|
||||||
|
selected: false
|
||||||
|
}
|
||||||
|
];
|
||||||
|
this.setState({
|
||||||
|
targetTypeList,
|
||||||
|
employeeStatus: _.map(_.filter(data, o => o.value !== 7), it => ({ key: it.enum, showname: it.defaultLabel }))
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
getTaxAgentRangeForm = () => {
|
getTaxAgentRangeForm = () => {
|
||||||
getTaxAgentRangeForm().then(({ status, data }) => {
|
getTaxAgentRangeForm().then(({ status, data }) => {
|
||||||
if (status) {
|
if (status) {
|
||||||
|
|
@ -91,7 +125,7 @@ class PersonalScopeModal extends Component {
|
||||||
employeeStatus: status.split(","),
|
employeeStatus: status.split(","),
|
||||||
includeType,
|
includeType,
|
||||||
targetParams: _.map(targetTypeIds.split(","), it => ({ targetType, targetId: it })),
|
targetParams: _.map(targetTypeIds.split(","), it => ({ targetType, targetId: it })),
|
||||||
[saveKeyVal["key"]]: saveKeyVal["value"],
|
[saveKeyVal["key"]]: saveKeyVal["value"]
|
||||||
};
|
};
|
||||||
this.setState({ loading: true });
|
this.setState({ loading: true });
|
||||||
APISaveFox["save"](payload).then(({ status, errormsg }) => {
|
APISaveFox["save"](payload).then(({ status, errormsg }) => {
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,7 @@ class LedgerAssociatedPersonnel extends Component {
|
||||||
<PersonalScopeModal
|
<PersonalScopeModal
|
||||||
{...personalAddModal}
|
{...personalAddModal}
|
||||||
APISaveFox={APISaveFox}
|
APISaveFox={APISaveFox}
|
||||||
// isTaxgent={false}
|
isTaxgent={false}
|
||||||
saveKeyVal={{ key: "salarySobId", value: editId || saveSalarySobId }}
|
saveKeyVal={{ key: "salarySobId", value: editId || saveSalarySobId }}
|
||||||
onSuccess={() => this.personalScopeTableRef.getPersonalScopeList()}
|
onSuccess={() => this.personalScopeTableRef.getPersonalScopeList()}
|
||||||
onCancel={() =>
|
onCancel={() =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue