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 {