往期累计情况页面查询丢失日期的bug修改
This commit is contained in:
parent
b0604f854c
commit
0a3e2f8b02
|
|
@ -76,7 +76,7 @@ export default class Attendance extends React.Component {
|
|||
|
||||
componentWillMount() {
|
||||
const { attendanceStore: { doInit, getLedgerList } } = this.props;
|
||||
doInit();
|
||||
doInit(this.listSearch);
|
||||
getLedgerList().then(() => {
|
||||
this.setState({
|
||||
inited: true
|
||||
|
|
@ -192,7 +192,7 @@ export default class Attendance extends React.Component {
|
|||
]).then(({ status, errormsg }) => {
|
||||
if (status) {
|
||||
message.success("删除成功");
|
||||
doInit({});
|
||||
doInit(this.listSearch);
|
||||
} else {
|
||||
message.error(errormsg || "删除失败");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ export default class SalarySendList extends React.Component {
|
|||
this.pageInfo = { current: 1, pageSize: 10 };
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
componentDidMount() {
|
||||
const { payrollStore: { getPayrollList } } = this.props;
|
||||
getPayrollList();
|
||||
getPayrollList(this.searchParams);
|
||||
}
|
||||
|
||||
// 发放回调
|
||||
|
|
|
|||
|
|
@ -41,20 +41,10 @@ export default class Payroll extends React.Component {
|
|||
endDate: moment(new Date()).startOf("month").format("YYYY-MM")
|
||||
};
|
||||
this.recordId = "";
|
||||
this.salaryYearMonth = [];
|
||||
this.salaryYearMonth = [moment(new Date()).startOf("year").format("YYYY-MM"), moment(new Date()).startOf("month").format("YYYY-MM")];
|
||||
this.listPageInfo = { current: 1, pageSize: 10 };
|
||||
}
|
||||
|
||||
// 更新模板
|
||||
handleUpdateTemplate(record) {
|
||||
this.setState({
|
||||
selectedKey: "1",
|
||||
editSlideVisible: true,
|
||||
templateCurrentId: record.templateId
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
// 工资单模板-新建表单变化监听
|
||||
handleBaseInfoChange = (request) => {
|
||||
const { payrollStore: { setTemplateBaseData } } = this.props;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { observable, action, toJS } from "mobx";
|
||||
import { action, observable, toJS } from "mobx";
|
||||
import { message } from "antd";
|
||||
import { WeaForm, WeaTableNew } from "comsMobx";
|
||||
|
||||
|
|
@ -125,10 +125,10 @@ export class AttendanceStore {
|
|||
|
||||
// 初始化操作
|
||||
@action
|
||||
doInit = () => {
|
||||
doInit = (params = {}) => {
|
||||
// this.getCondition();
|
||||
// this.getTableDatas();
|
||||
this.getAttendanceList({});
|
||||
this.getAttendanceList(params);
|
||||
// this.getAttendanceFieldSettingList({sourceType:'IMPORT'})
|
||||
};
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ export class AttendanceStore {
|
|||
|
||||
@action
|
||||
saveAttendanceField = params => {
|
||||
return new Promise((resolve,reject)=>{
|
||||
return new Promise((resolve, reject) => {
|
||||
API.saveAttendanceField(params).then(res => {
|
||||
if (res.status) {
|
||||
message.success("保存成功");
|
||||
|
|
@ -206,7 +206,7 @@ export class AttendanceStore {
|
|||
reject();
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
@action
|
||||
|
|
|
|||
Loading…
Reference in New Issue