From 78b12043aa45568b2b2b960f1e00605a3fa6f693 Mon Sep 17 00:00:00 2001
From: liyongshun <971387674@qq.com>
Date: Tue, 21 Jun 2022 14:27:16 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=93=8D=E4=BD=9C=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E6=9D=83=E9=99=90=E7=9A=84=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/calculate/index.js | 33 +-
pc4mobx/hrmSalary/pages/declare/index.js | 22 +-
.../hrmSalary/pages/ledger/copyFormModal.js | 57 +++-
pc4mobx/hrmSalary/pages/ledger/index.js | 19 +-
.../hrmSalary/pages/payroll/SalarySendList.js | 295 ++++++++++--------
pc4mobx/hrmSalary/pages/payroll/index.js | 12 +-
.../pages/payroll/templateSettingList.js | 180 ++++++-----
7 files changed, 357 insertions(+), 261 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/index.js b/pc4mobx/hrmSalary/pages/calculate/index.js
index 782396f0..03b53fb1 100644
--- a/pc4mobx/hrmSalary/pages/calculate/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/index.js
@@ -26,7 +26,7 @@ import CustomPaginationTable from "../../components/customPaginationTable";
const { RangePicker } = DatePicker;
-@inject("calculateStore")
+@inject("calculateStore", "taxAgentStore")
@observer
export default class Calculate extends React.Component {
constructor(props) {
@@ -111,7 +111,7 @@ export default class Calculate extends React.Component {
handleDeleteItem(record) {
Modal.confirm({
title: "信息确认",
- content: "确认删除",
+ content: "确认删除本条数据吗?",
onOk: () => {
const { calculateStore: { deleteSalaryacct } } = this.props;
deleteSalaryacct([record.id]).then(() => {
@@ -148,10 +148,10 @@ export default class Calculate extends React.Component {
// 获取列表
getColumns() {
- const { calculateStore: { salaryListColumns } } = this.props;
+ const { calculateStore: { salaryListColumns }, taxAgentStore: { showOperateBtn } } = this.props;
let columns = [...salaryListColumns];
columns.map(item => {
- if (item.title == "操作") {
+ if (item.title == "操作" && showOperateBtn ) {
item.render = (text, record) => {
const accountBtn = _.filter(record.operate, it => it.text == "核算");
const notAccountBtn = _.filter(record.operate, it => it.text != "核算");
@@ -205,7 +205,7 @@ export default class Calculate extends React.Component {
)}
}>
-
+
);
}
@@ -242,7 +242,7 @@ export default class Calculate extends React.Component {
}
render() {
- const { calculateStore } = this.props;
+ const { calculateStore, taxAgentStore: { showOperateBtn } } = this.props;
const {
salaryListDataSource,
salaryListColumns,
@@ -303,15 +303,18 @@ export default class Calculate extends React.Component {
const { startDate, endDate } = this.state;
return (
-
+ {
+ showOperateBtn &&
+
+ }
this.handleRangePickerChange(value)}
/>
-
-
+ {
+ showOperateBtn &&
+
+ }
);
};
diff --git a/pc4mobx/hrmSalary/pages/ledger/copyFormModal.js b/pc4mobx/hrmSalary/pages/ledger/copyFormModal.js
index 231feb79..c9954361 100644
--- a/pc4mobx/hrmSalary/pages/ledger/copyFormModal.js
+++ b/pc4mobx/hrmSalary/pages/ledger/copyFormModal.js
@@ -1,6 +1,12 @@
+/*
+ * Author: 黎永顺
+ * Description:
+ * Date: 2022-06-20 13:53:14
+ * LastEditTime: 2022-06-21 13:30:00
+ */
import React from "react";
import { Modal, Button, Row, Col } from "antd";
-import { WeaInput, WeaSelect } from "ecCom";
+import { WeaInput, WeaSelect, WeaError } from "ecCom";
export default class CopyFormModal extends React.Component {
constructor(props) {
@@ -23,6 +29,14 @@ export default class CopyFormModal extends React.Component {