-
1、数据进入【待减员】规则:①员工的人事状态属性从在职变成非在职,且在【在缴员工】里;②【在缴员工】里档案维护了缴纳终止月且小于等于当前月;③个税扣缴义务人发生调整;④某员工分权时在原个税扣缴义务人下处于【在缴员工】里但又将该员工添加到其他的个税扣缴义务人下的情况;
+ {/*④某员工分权时在原个税扣缴义务人下处于【在缴员工】里但又将该员工添加到其他的个税扣缴义务人下的情况;*/}
+
1、数据进入【待减员】规则:①员工的人事状态属性从在职变成非在职,且在【在缴员工】里;②【在缴员工】里档案维护了缴纳终止月且小于等于当前月;③个税扣缴义务人发生调整;
2、【待减员】为是否不再缴纳的待办状态,数据是从【在缴员工】中复制的,若不处理列表中的待办数据,也不影响社保福利核算;【待减员】维护的数据和【在缴员工】数据是同步的;
3、点击【减员】前先维护最后缴纳月,所有有起始缴纳月的福利项的最后缴纳月都小于等于当前月且无未归档的核算数据的档案才能减员成功,减员成功后数据进入【停缴员工】;
{/*
4、数据进入【待减员】规则的第四种情况下,若还需要在当前个税扣缴义务人下进行缴纳的话,当前该员工的【待减员】数据进行【删除待办】操作即可;若不在该个税扣缴义务人下继续缴纳,维护好最后缴纳月后进行【减员】操作,员工进入【停缴员工】;
*/}
@@ -500,7 +501,7 @@ export default class Archives extends React.Component {
default:
dom =
1、不需要缴纳社保福利的员工,保存在【停缴员工】;
-
2、【停缴员工】点击取消停缴,数据会回退到上次的位置(从【待减员】减员到停缴员工的,点击停缴返回到【在缴员工】,不返回到【待减员】);
+ {/*
2、【停缴员工】点击取消停缴,数据会回退到上次的位置(从【待减员】减员到停缴员工的,点击停缴返回到【在缴员工】,不返回到【待减员】);
*/}
{/*
3、若员工的社保福利从一个个税扣缴义务人下转到另一个个税扣缴义务人下去缴纳,则在转后的个税扣缴义务人的【待增员】中进行增员操作成功后,员工进入待【在缴员工】,而在原个税扣缴义务人下的【停缴员工】中,该员工数据将会被删除;是否开启分权员工的档案数据都只保存一份;
*/}
;
break;
From 003b3d6144da0600a2110aa912f1a8064d0b07c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Wed, 26 Apr 2023 17:27:32 +0800
Subject: [PATCH 15/16] =?UTF-8?q?=E4=BA=A7=E5=93=81-=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E7=A4=BE=E4=BF=9D=E7=A6=8F=E5=88=A9=E5=8F=B0=E8=B4=A6=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E7=9A=84=E5=90=88=E8=AE=A1=E8=A1=8C=E6=B8=B2=E6=9F=93?=
=?UTF-8?q?=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../fieldManagement/components/fieldSlide.js | 2 +-
.../pages/payroll/payrollDetail/index.js | 26 +++-------
.../standingBookDetail/components/normal.js | 48 +++--------------
.../components/regEditDetial.js | 2 +-
.../standingBookDetail/components/regList.js | 51 +++++--------------
pc4mobx/hrmSalary/pages/taxAgent/index.js | 9 ++--
6 files changed, 32 insertions(+), 106 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldSlide.js b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldSlide.js
index 9e4370ca..efbe1f47 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldSlide.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldSlide.js
@@ -162,7 +162,7 @@ class FieldSlide extends Component {
this.setState({
name: "",
useInEmployeeSalary: "1",
- useDefault: "0",
+ useDefault: "1",
sharedType: "0",
taxAgentIds: "",
dataType: "number",
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
index 6c0a5a3f..03ff17c6 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
@@ -5,8 +5,7 @@ import { Button, Spin } from "antd";
import { getQueryString } from "../../../util/url";
import { removePropertyCondition } from "../../../util/response";
import { getSearchs } from "../../../util";
-import { getPayrollDetailList, getPayrollDetailSa, getPayrollInfo, salaryBillSendSum } from "../../../apis/payroll";
-import { sysConfCodeRule } from "../../../apis/ruleconfig";
+import { getPayrollDetailList, getPayrollDetailSa, getPayrollInfo } from "../../../apis/payroll";
import "./index.less";
@inject("payrollStore")
@@ -17,8 +16,7 @@ export default class PayrollDetail extends React.Component {
this.state = {
salarySendDetailBaseInfo: {}, loading: false,
condition: [], dataSource: [], columns: [],
- pageInfo: { current: 1, pageSize: 10, total: 0 },
- salaryBillSendSum: {}, showSum: false
+ pageInfo: { current: 1, pageSize: 10, total: 0 }
};
}
@@ -54,16 +52,11 @@ export default class PayrollDetail extends React.Component {
}
}
if (type === "init") {
- const { status, data: sysData } = await this.sysConfCodeRule();
- const { data: { sumRow } } = await this.salaryBillSendSum();
- const salaryBillSendSum = _.reduce(_.keys(sumRow), (pre, cur) => (_.assign(pre, { [`${cur}_salaryItem`]: sumRow[cur] })), {});
- this.setState({ showSum: status && sysData === "1", salaryBillSendSum });
childFrameObj.contentWindow.postMessage(JSON.stringify({
dataSource,
columns,
pageInfo,
- showSum: status && sysData === "1",
- salaryBillSendSum
+ sumpayload: { salarySendId: getQueryString("id") }
}), "*");
this.getPayrollDetailList({ child: type });
}
@@ -110,25 +103,18 @@ export default class PayrollDetail extends React.Component {
})),
pageInfo: { ...pageInfo, current, pageSize, total }
}, () => {
- const { pageInfo, dataSource, columns, salaryBillSendSum, showSum } = this.state;
+ const { pageInfo, dataSource, columns } = this.state;
(child === "PAGEINFO" || child === "init") &&
childFrameObj.contentWindow.postMessage(JSON.stringify({
dataSource,
columns,
- pageInfo, showSum,
- salaryBillSendSum
+ pageInfo,
+ sumpayload: { salarySendId: getQueryString("id") }
}), "*");
});
}
}).catch(() => this.setState({ loading: false }));
};
- salaryBillSendSum = () => {
- const salarySendId = getQueryString("id");
- return salaryBillSendSum({ salarySendId });
- };
- sysConfCodeRule = () => {
- return sysConfCodeRule({ code: "OPEN_ACCT_RESULT_SUM" });
- };
handleExportAll = () => {
const salarySendId = getQueryString("id");
const url = `${window.location.origin}/api/bs/hrmsalary/salaryBill/send/exportDetailList?salarySendId=${salarySendId}`;
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
index 40f9fc83..f0a6cf0e 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
@@ -13,12 +13,7 @@ import { getQueryString } from "../../../../util/url";
import ProgressModal from "../../../../components/progressModal";
import AcctResultImportModal from "../../../calculateDetail/acctResult/importModal/acctResultImportModal";
import AdjustmentSlide from "./adjustmentSlide";
-import {
- getCalculateProgress,
- siaccountDetailCommonListSum,
- siaccountDetailSupplementaryListSum
-} from "../../../../apis/calculate";
-import { sysConfCodeRule } from "../../../../apis/ruleconfig";
+import { getCalculateProgress } from "../../../../apis/calculate";
import RegEditDetial from "./regEditDetial";
import SupplementarySlide from "./supplementarySlide";
import _ from "lodash";
@@ -80,15 +75,7 @@ export default class NormalIndex extends Component {
handleReceive = async ({ data }) => {
const { type, payload: { id, params } = {} } = data;
if (type === "init") {
- const { selectedKey } = this.props;
- const { status, data: sysData } = await this.sysConfCodeRule();
- const { data: { sumRow: siaccountSum } } = status && sysData === "1" && selectedKey === "1" ?
- await this.siaccountDetailCommonListSum() :
- status && sysData === "1" ? await this.siaccountDetailSupplementaryListSum() : { data: { sumRow: {} } };
- this.setState({
- showSum: status && sysData === "1",
- siaccountSum: (status && sysData === "1") ? siaccountSum : {}
- }, () => this.postMessageToChild());
+ this.postMessageToChild();
} else if (type === "turn") {
if (id === "PAGEINFO") {
const { pageNum: current, size: pageSize } = params;
@@ -111,21 +98,6 @@ export default class NormalIndex extends Component {
}
}
};
- sysConfCodeRule = () => {
- return sysConfCodeRule({ code: "OPEN_ACCT_RESULT_SUM" });
- };
- siaccountDetailCommonListSum = () => {
- const { searchValue: userName } = this.state;
- const billMonth = getQueryString("billMonth");
- const paymentOrganization = getQueryString("paymentOrganization");
- return siaccountDetailCommonListSum({ billMonth, paymentOrganization, userName });
- };
- siaccountDetailSupplementaryListSum = () => {
- const { searchValue: userName } = this.state;
- const billMonth = getQueryString("billMonth");
- const paymentOrganization = getQueryString("paymentOrganization");
- return siaccountDetailSupplementaryListSum({ billMonth, paymentOrganization, userName });
- };
componentWillUnmount() {
if (this.timer) {
@@ -152,20 +124,22 @@ export default class NormalIndex extends Component {
}
postMessageToChild = () => {
+ const billMonth = getQueryString("billMonth");
+ const paymentOrganization = getQueryString("paymentOrganization");
const childFrameObj = document.getElementById("atdTable");
- const { current, pageSize, tableData, selectedRowKeys, showSum, siaccountSum } = this.state;
+ const { current, pageSize, tableData, selectedRowKeys, showSum, siaccountSum, searchValue: userName } = this.state;
const { list: dataSource, total, columns } = tableData;
const pageInfo = { current, pageSize, total };
childFrameObj.contentWindow.postMessage(JSON.stringify({
dataSource, columns, pageInfo,
- selectedRowKeys, showSum, siaccountSum,
+ selectedRowKeys, selectedKey: this.props.selectedKey,
+ sumpayload: { billMonth, paymentOrganization, userName },
showOperates: !getQueryString("type")
}), "*");
};
handleSearch(value) {
const { billMonth, selectedKey, paymentOrganization } = this.props;
- const { current } = this.state;
selectedKey === "1"
? this.getNormalList({
billMonth,
@@ -256,27 +230,19 @@ export default class NormalIndex extends Component {
}
};
getNormalList = async (payload = {}) => {
- const { status, data: sysData } = await this.sysConfCodeRule();
- const { data: { sumRow: siaccountSum } } = status && sysData === "1" ? await this.siaccountDetailCommonListSum() : { data: { sumRow: {} } };
const { getNormalList } = this.props.standingBookStore;
getNormalList({ ...payload }).then(({ list, columns = [], total }) => {
this.setState({
- showSum: status && sysData === "1",
- siaccountSum,
tableData: { list, total, columns }
}, () => this.postMessageToChild());
});
};
getSupplementaryList = async (payload = {}) => {
- const { status, data: sysData } = await this.sysConfCodeRule();
- const { data: { sumRow: siaccountSum } } = status && sysData === "1" ? await this.siaccountDetailSupplementaryListSum() : { data: { sumRow: {} } };
const { getSupplementaryList } = this.props.standingBookStore;
getSupplementaryList({
...payload
}).then(({ list, columns = [], total }) => {
this.setState({
- showSum: status && sysData === "1",
- siaccountSum,
tableData: { list, columns, total }
}, () => this.postMessageToChild());
});
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
index 87f373f4..e904adb9 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
@@ -270,7 +270,7 @@ class RegEditDetial extends Component {
}
}
- onClose={onCancel}
+ onClose={() => onCancel()}
showMask={true}
/>
);
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js
index 65f8b835..32168268 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js
@@ -8,8 +8,6 @@ import React, { Component } from "react";
import { Spin } from "antd";
import { getQueryString } from "../../../../util/url";
import * as API from "../../../../apis/standingBook";
-import { sysConfCodeRule } from "../../../../apis/ruleconfig";
-import { siaccountDetailBalanceListSum, siaccountDetailRecessionListSum } from "../../../../apis/calculate";
import "./index.less";
const APIFox = {
@@ -27,8 +25,7 @@ class RegList extends Component {
loading: {
query: false
},
- showSum: false,
- siaccountSum: {},
+ datalistPayload: {},
pageInfo: {
current: 1,
pageSize: 10,
@@ -43,17 +40,10 @@ class RegList extends Component {
}
handleReceive = async ({ data }) => {
- const { type: listType, onEdit, onChangeRowkey } = this.props;
+ const { onEdit, onChangeRowkey } = this.props;
const { type, payload: { id, params } = {} } = data;
if (type === "init") {
- const { status, data: sysData } = await this.sysConfCodeRule();
- const { data: { sumRow: siaccountSum } } = status && sysData === "1" && listType === "regression" ?
- await this.siaccountDetailRecessionListSum() :
- status && sysData === "1" ? await this.siaccountDetailBalanceListSum() : { data: { sumRow: {} } };
- this.setState({
- showSum: status && sysData === "1",
- siaccountSum: (status && sysData === "1") ? siaccountSum : {}
- }, () => this.postMessageToChild());
+ this.postMessageToChild();
} else if (type === "turn") {
if (id === "PAGEINFO") {
const { pageNum: current, size: pageSize } = params;
@@ -68,31 +58,19 @@ class RegList extends Component {
}
};
postMessageToChild = () => {
+ const paymentStatus = "3";
+ const creator = Number(getQueryString("creator"));
+ const billMonth = getQueryString("billMonth");
+ const paymentOrganization = getQueryString("paymentOrganization");
const childFrameObj = document.getElementById("atdTable");
- const { pageInfo, dataSource, columns, selectedRowKeys, showSum, siaccountSum } = this.state;
+ const { pageInfo, dataSource, columns, selectedRowKeys, datalistPayload } = this.state;
childFrameObj.contentWindow.postMessage(JSON.stringify({
dataSource, columns, pageInfo,
- selectedRowKeys, showSum, siaccountSum,
+ selectedRowKeys, selectedKey: this.props.type,
+ sumpayload: { billMonth, paymentOrganization, creator, paymentStatus, ...datalistPayload },
showOperates: !getQueryString("type")
}), "*");
};
- sysConfCodeRule = () => {
- return sysConfCodeRule({ code: "OPEN_ACCT_RESULT_SUM" });
- };
- siaccountDetailRecessionListSum = (module = {}) => {
- const paymentStatus = "3";
- const creator = Number(getQueryString("creator"));
- const billMonth = getQueryString("billMonth");
- const paymentOrganization = getQueryString("paymentOrganization");
- return siaccountDetailRecessionListSum({ creator, paymentStatus, billMonth, paymentOrganization, ...module });
- };
- siaccountDetailBalanceListSum = (module = {}) => {
- const paymentStatus = "3";
- const creator = Number(getQueryString("creator"));
- const billMonth = getQueryString("billMonth");
- const paymentOrganization = getQueryString("paymentOrganization");
- return siaccountDetailBalanceListSum({ creator, paymentStatus, billMonth, paymentOrganization, ...module });
- };
componentWillReceiveProps(nextProps, nextContext) {
if (nextProps.visible !== this.props.visible) {
@@ -107,12 +85,8 @@ class RegList extends Component {
handleResetSelectRowKeys = (selectedRowKeys) => {
this.setState({ selectedRowKeys });
};
- recessionList = async (module) => {
+ recessionList = (module) => {
const { type } = this.props;
- const { status: sysStatus, data: sysData } = await this.sysConfCodeRule();
- const { data: { sumRow: siaccountSum } } = sysStatus && sysData === "1" && type === "regression" ?
- await this.siaccountDetailRecessionListSum({ ...module }) :
- sysStatus && sysData === "1" ? await this.siaccountDetailBalanceListSum({ ...module }) : { data: { sumRow: {} } };
const { loading, pageInfo } = this.state;
const billMonth = getQueryString("billMonth");
const paymentOrganization = getQueryString("paymentOrganization");
@@ -134,8 +108,7 @@ class RegList extends Component {
pageInfo: { ...pageInfo, current, pageSize, total },
dataSource,
columns,
- showSum: sysStatus && sysData === "1",
- siaccountSum
+ datalistPayload: module
}, () => this.postMessageToChild());
}
}).catch(() => {
diff --git a/pc4mobx/hrmSalary/pages/taxAgent/index.js b/pc4mobx/hrmSalary/pages/taxAgent/index.js
index 5f320709..6576e595 100644
--- a/pc4mobx/hrmSalary/pages/taxAgent/index.js
+++ b/pc4mobx/hrmSalary/pages/taxAgent/index.js
@@ -1,6 +1,6 @@
import React from "react";
import { inject, observer } from "mobx-react";
-import { Button, Col, message, Modal, Row, Switch, Dropdown, Menu } from "antd";
+import { Button, Col, Dropdown, Menu, message, Modal, Row, Switch } from "antd";
import { WeaFormItem, WeaInputSearch, WeaSearchGroup, WeaTable, WeaTop } from "ecCom";
import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
import EditModal from "./editModal";
@@ -303,7 +303,8 @@ export default class TaxAgent extends React.Component {
columns,
doInit,
hasRight,
- getTaxAgentList
+ getTaxAgentList,
+ showOperateBtn
} = taxAgentStore;
if (!hasRight && !loading) {
@@ -369,7 +370,7 @@ export default class TaxAgent extends React.Component {
}>