{
(showOperateBtn || showSalaryItemBtn) &&
-
新增
+
handleMenuClick({ key: "1" })}
+ style={{ marginRight: "10px" }}>{getLabel(111, "新增系统薪资项")}
}
{
(showOperateBtn || showSalaryItemBtn) &&
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js
index 84bcb6ff..e4e94622 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js
@@ -1,3 +1,10 @@
+import { WeaSwitch } from "comsMobx";
+import { Button } from "antd";
+import { WeaFormItem, WeaLocaleProvider, WeaSearchGroup, WeaTools } from "ecCom";
+
+const getKey = WeaTools.getKey;
+const getLabel = WeaLocaleProvider.getLabel;
+
export const tabCondition = [
{
color: "#000000",
@@ -33,5 +40,99 @@ export const tabCondition = [
showcount: true,
title: "非系统人员",
viewcondition: "ext"
- },
+ }
];
+export const logConditions = [
+ {
+ items: [
+ {
+ colSpan: 1,
+ conditionType: "BROWSER",
+ browserConditionParam: {
+ completeParams: {},
+ conditionDataParams: {},
+ dataParams: {},
+ destDataParams: {},
+ hasAddBtn: false,
+ hasAdvanceSerach: true,
+ idSeparator: ",",
+ isAutoComplete: 1,
+ isDetail: 0,
+ isMultCheckbox: false,
+ isSingle: true,
+ linkUrl: "/hrm/resource/HrmResource.jsp?id=",
+ pageSize: 10,
+ quickSearchName: "",
+ replaceDatas: [],
+ title: "",
+ type: "1"
+ },
+ domkey: ["employeeId"],
+ fieldcol: 17,
+ label: "对象",
+ lanId: 106,
+ labelcol: 7,
+ value: ""
+ },
+ {
+ colSpan: 1,
+ conditionType: "BROWSER",
+ browserConditionParam: {
+ completeParams: {},
+ conditionDataParams: {},
+ dataParams: {},
+ destDataParams: {},
+ hasAddBtn: false,
+ hasAdvanceSerach: true,
+ idSeparator: ",",
+ isAutoComplete: 1,
+ isDetail: 0,
+ isMultCheckbox: false,
+ isSingle: true,
+ linkUrl: "/hrm/resource/HrmResource.jsp?id=",
+ pageSize: 10,
+ quickSearchName: "",
+ replaceDatas: [],
+ title: "",
+ type: "1"
+ },
+ domkey: ["operator"],
+ fieldcol: 17,
+ label: "操作人",
+ lanId: 111,
+ labelcol: 7,
+ value: ""
+ }
+ ],
+ defaultshow: true
+ }
+];
+export const getLogSearchsForm = (form, condition, onSearch = () => void (0)) => {
+ const { isFormInit } = form;
+ const formParams = form.getFormParams();
+ let group = [];
+ isFormInit && condition && condition.map(c => {
+ let items = [];
+ c.items.map(fields => {
+ items.push({
+ com: (
+
+
+ {
+ getKey(fields) === "operator" &&
+
+ }
+ ),
+ colSpan: 1
+ });
+ });
+ group.push(
+
);
+ });
+ return group;
+};
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
index 66ce8099..e676e5c4 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
@@ -17,6 +17,7 @@ import UnifiedTable from "../../../components/UnifiedTable";
import { convertToUrlString, getURLParameters } from "../../../util/url";
import { salaryArchiveDelete } from "../../../apis/payrollFiles";
import ImportDialog from "../../../components/importDialog";
+import OperateLogDialog from "./operateLogDialog";
import "./index.less";
import { sysinfo } from "../../../apis/ruleconfig";
@@ -66,7 +67,8 @@ export default class Archives extends React.Component {
link: "", importResult: {}, imageId: "",
previewUrl: "/api/bs/hrmsalary/scheme/preview"
},
- extEmpsWitch: "1" //非系统人员开关, 1: 开启, 0:关闭
+ extEmpsWitch: "1", //非系统人员开关, 1: 开启, 0:关闭
+ logDialog: { visible: false }
};
this.record = {};
}
@@ -627,7 +629,8 @@ export default class Archives extends React.Component {
tabCount,
loading,
importDialog,
- extEmpsWitch
+ extEmpsWitch,
+ logDialog
} = this.state;
const {
form, condition, showSearchAd, setShowSearchAd,
@@ -814,10 +817,15 @@ export default class Archives extends React.Component {
return (
} // 左侧图标
- iconBgcolor="#F14A2D" // 左侧图标背景色
- showDropIcon={false} // 是否显示下拉按钮
+ title="社保福利档案" icon={} iconBgcolor="#F14A2D" showDropIcon={true}
+ dropMenuDatas={[
+ {
+ key: "log",
+ icon: ,
+ content: getLabel(111, "操作日志"),
+ onClick: key => this.setState({ logDialog: { ...logDialog, visible: true } })
+ }
+ ]}
>
+ {/*操作日志*/}
+
this.setState({ logDialog: { ...logDialog, visible: false } })}
+ />
{
this.state.editSlideVisible &&
({
+ ...it, items: _.map(it.items, o => ({ ...o, label: getLabel(o.lanId, o.label) }))
+ }))
+ }, () => logForm.initFormFields(this.state.conditions));
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.getAdjustHistoryList();
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) {
+ this.setState({
+ dataSource: [], columns: [], pageInfo: { current: 0, pageSize: 10, total: 0 },
+ loading: false
+ });
+ }
+ }
+
+ getAdjustHistoryList = (extra = {}) => {
+ const { pageInfo } = this.state;
+ const { archivesStore: { logForm } } = this.props;
+ const payload = { ...pageInfo, ...logForm.getFormParams(), ...extra };
+ this.setState({ loading: true });
+ getAdjustHistoryList(payload).then(({ status, data }) => {
+ this.setState({ loading: false });
+ if (status) {
+ const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize, total },
+ dataSource, columns: _.map(columns, it => {
+ if (it.dataIndex === "operateTime") {
+ return { ...it, render: (text) => ({moment(text).format("YYYY-MM-DD")}) };
+ }
+ return { ...it };
+ })
+ });
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
+
+ render() {
+ const { loading, dataSource, columns, pageInfo, conditions } = this.state;
+ const { archivesStore: { logForm } } = this.props;
+ const pagination = {
+ ...pageInfo,
+ showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
+ showQuickJumper: true,
+ showSizeChanger: true,
+ pageSizeOptions: ["10", "20", "50", "100"],
+ onShowSizeChange: (current, pageSize) => {
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize }
+ }, () => this.getAdjustHistoryList());
+ },
+ onChange: current => {
+ this.setState({
+ pageInfo: { ...pageInfo, current }
+ }, () => this.getAdjustHistoryList());
+ }
+ };
+ const scrollHeight = this.logRef ? this.logRef.state.height - 210 : 606.6;
+ return (
+ this.logRef = dom} className="logDialog" initLoadCss
+ style={{
+ width: 1150,
+ height: 606.6,
+ minHeight: 200,
+ minWidth: 380,
+ maxHeight: "90%",
+ maxWidth: "90%",
+ overflow: "hidden",
+ transform: "translate(0px, 0px)"
+ }}
+ >
+
+ {getLogSearchsForm(logForm, conditions, () => this.getAdjustHistoryList({ current: 1 }))}
+
+
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
index c3673fae..6359eee7 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
@@ -434,8 +434,8 @@ export default class Programme extends React.Component {
visible={this.state.slideVisiable}
top={0}
measureT="%"
- width={800}
- measureX="px"
+ width={100}
+ measureX="%"
height={100}
measureY="%"
direction={"right"}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
index ea62431c..634e6b30 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
@@ -19,7 +19,7 @@ class InputPaymentAmount extends Component {
render: (text, record) => {
return (
this.handleChangeBaseItem(record, val, type, "per")}
/>
);
@@ -30,7 +30,7 @@ class InputPaymentAmount extends Component {
render: (text, record) => {
return (
this.handleChangeBaseItem(record, val, type, "com")}
/>
);
diff --git a/pc4mobx/hrmSalary/stores/archives.js b/pc4mobx/hrmSalary/stores/archives.js
index 383e585d..096a5ab7 100644
--- a/pc4mobx/hrmSalary/stores/archives.js
+++ b/pc4mobx/hrmSalary/stores/archives.js
@@ -8,6 +8,13 @@ import * as API from "../apis/welfareArchive"; // 引入API接口文件
const { TableStore } = WeaTableNew;
export class ArchivesStore {
+ @observable logForm = new WeaForm(); // 社保福利档案重构-日志查询条件log
+
+
+
+
+
+
@observable tableStore = new TableStore(
// {dataHandle: (datas) => {
// return dataSource;
diff --git a/pc4mobx/hrmSalary/stores/attendanceStore.js b/pc4mobx/hrmSalary/stores/attendanceStore.js
index 451cb234..f309619e 100644
--- a/pc4mobx/hrmSalary/stores/attendanceStore.js
+++ b/pc4mobx/hrmSalary/stores/attendanceStore.js
@@ -14,6 +14,9 @@ export class AttendanceStore {
@observable shareForm = new WeaForm();
@observable shareLogForm = new WeaForm();
@observable sharePerForm = new WeaForm();
+ @observable extensionForm = new WeaForm(); //扩展属性
+ @action("报表查看-扩展属性表单初始化")
+ initExtensionForm = () => this.extensionForm = new WeaForm();
@action("报表查看-分享报表表单初始化")
initShareForm = () => this.shareForm = new WeaForm();
diff --git a/pc4mobx/hrmSalary/stores/cumDeduct.js b/pc4mobx/hrmSalary/stores/cumDeduct.js
index 34306f2e..220a0043 100644
--- a/pc4mobx/hrmSalary/stores/cumDeduct.js
+++ b/pc4mobx/hrmSalary/stores/cumDeduct.js
@@ -14,6 +14,7 @@ export class CumDeductStore {
@observable slideTableStore = new TableStore();
@observable form = new WeaForm(); // new 一个form
@observable addForm = new WeaForm(); // 新增form
+ @action initAddForm = () => this.addForm = new WeaForm(); // 初始化新增form
@observable condition = []; // 存储后台得到的form数据
@observable hasRight = true; // 判断用户是有权限查看当前页面: 没有权限渲染无权限页面,有权限渲染数据
@observable showSearchAd = false; // 高级搜索面板显示
@@ -113,7 +114,7 @@ export class CumDeductStore {
...requestParams,
current: this.pageObj.current,
pageSize: this.pageObj.pageSize,
- ...params,
+ ...params
};
API.getCumDeductList(requestParams).then(
action(({ status, data, errormsg }) => {
diff --git a/pc4mobx/hrmSalary/stores/cumSituation.js b/pc4mobx/hrmSalary/stores/cumSituation.js
index 082c6d3b..6936613c 100644
--- a/pc4mobx/hrmSalary/stores/cumSituation.js
+++ b/pc4mobx/hrmSalary/stores/cumSituation.js
@@ -12,6 +12,7 @@ export class CumSituationStore {
@observable slideTableStore = new TableStore();
@observable form = new WeaForm(); // new 一个form
@observable addForm = new WeaForm(); // 新增form
+ @action initAddForm = () => this.addForm = new WeaForm();
@observable condition = []; // 存储后台得到的form数据
@observable hasRight = true; // 判断用户是有权限查看当前页面: 没有权限渲染无权限页面,有权限渲染数据
@observable showSearchAd = false; // 高级搜索面板显示
diff --git a/pc4mobx/hrmSalary/stores/otherDeduct.js b/pc4mobx/hrmSalary/stores/otherDeduct.js
index 2f413560..18ce76d6 100644
--- a/pc4mobx/hrmSalary/stores/otherDeduct.js
+++ b/pc4mobx/hrmSalary/stores/otherDeduct.js
@@ -1,4 +1,4 @@
-import { observable, action, toJS } from "mobx";
+import { action, observable } from "mobx";
import { message } from "antd";
import { WeaForm, WeaTableNew } from "comsMobx";
import { removePropertyCondition } from "../util/response";
@@ -12,6 +12,7 @@ export class OtherDeductStore {
@observable slideTableStore = new TableStore();
@observable form = new WeaForm(); // new 一个form
@observable addForm = new WeaForm(); // 新增form
+ @action initAddForm = () => this.addForm = new WeaForm();
@observable condition = []; // 存储后台得到的form数据
@observable hasRight = true; // 判断用户是有权限查看当前页面: 没有权限渲染无权限页面,有权限渲染数据
@observable showSearchAd = false; // 高级搜索面板显示
@@ -115,13 +116,13 @@ export class OtherDeductStore {
this.setPageObj({
total,
current,
- pageSize,
+ pageSize
});
} else {
this.setDataSource([]);
this.setPageObj({
...this.pageObj,
- total: 0,
+ total: 0
});
message.error(errormsg || "接口调用失败!");
}
@@ -184,23 +185,23 @@ export class OtherDeductStore {
this.setSlidePageObj({
total,
current,
- pageSize,
+ pageSize
});
} else {
this.setSlideTableDataSource([]);
this.setSlidePageObj({
...this.slidePageObj,
- total: 0,
+ total: 0
});
message.error(errormsg || "接口调用失败!");
}
- this.slideLoading = false
+ this.slideLoading = false;
}
);
};
// 导出明细
- @action exportOtherDeductDetailList = (id, ids = "", taxAgentId="") => {
+ @action exportOtherDeductDetailList = (id, ids = "", taxAgentId = "") => {
API.exportOtherDeductDetailList(id, ids, taxAgentId);
};
}
diff --git a/pc4mobx/hrmSalary/stores/specialAdd.js b/pc4mobx/hrmSalary/stores/specialAdd.js
index 6167156d..bcd298ab 100644
--- a/pc4mobx/hrmSalary/stores/specialAdd.js
+++ b/pc4mobx/hrmSalary/stores/specialAdd.js
@@ -1,7 +1,8 @@
-import { observable, action, toJS } from 'mobx';
-import { WeaForm } from 'comsMobx';
+import { action, observable } from "mobx";
+import { WeaForm } from "comsMobx";
export class SpecialAddStore {
@observable advanceForm = new WeaForm();
@observable addForm = new WeaForm();
+ @action initAddForm = () => this.addForm = new WeaForm();
}
diff --git a/pc4mobx/hrmSalary/util/index.js b/pc4mobx/hrmSalary/util/index.js
index 18ff50e2..5040d1dc 100644
--- a/pc4mobx/hrmSalary/util/index.js
+++ b/pc4mobx/hrmSalary/util/index.js
@@ -51,7 +51,7 @@ export const getSearchs = (form, condition, col, isCenter, onChange = () => void
});
group.push(
{
}
};
export const getDomkes = (conditions) => {
- return _.map(conditions[0].items, it => it.domkey[0]);
+ return _.reduce(conditions, (pre, cur) => ([...pre, ..._.map(cur.items, o => o.domkey[0])]), []);
};
export const padding0 = (num, length) => {