From 9fbf1e988e26a94e11e680f333561dda4b712879 Mon Sep 17 00:00:00 2001 From: MustangDeng <670124965@qq.com> Date: Mon, 25 Apr 2022 17:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/components/customTable/index.js | 20 +++++++++++++++++++ pc4mobx/hrmSalary/pages/calculate/index.js | 3 ++- .../pages/dataAcquisition/attendance/index.js | 7 +++++-- pc4mobx/hrmSalary/pages/declare/index.js | 16 +++++++++++---- pc4mobx/hrmSalary/pages/mySalary/index.js | 3 ++- .../hrmSalary/pages/payroll/SalarySendList.js | 7 +++++-- pc4mobx/hrmSalary/pages/salaryFile/index.js | 4 +++- pc4mobx/hrmSalary/pages/salaryItem/index.js | 4 +++- .../socialSecurityBenefits/archives/index.js | 8 +++----- .../socialSecurityBenefits/programme/index.js | 17 +++------------- pc4mobx/hrmSalary/stores/calculate.js | 2 ++ pc4mobx/hrmSalary/stores/declare.js | 2 ++ pc4mobx/hrmSalary/stores/payroll.js | 2 ++ 13 files changed, 64 insertions(+), 31 deletions(-) create mode 100644 pc4mobx/hrmSalary/components/customTable/index.js diff --git a/pc4mobx/hrmSalary/components/customTable/index.js b/pc4mobx/hrmSalary/components/customTable/index.js new file mode 100644 index 00000000..cef3295f --- /dev/null +++ b/pc4mobx/hrmSalary/components/customTable/index.js @@ -0,0 +1,20 @@ +import React from 'react' +import { WeaTable } from 'ecCom' +import { Spin } from 'antd' + +export default class CustomTable extends React.Component { + render() { + return ( +
+ { + this.props.loading ? +
+ +
+ : + + } +
+ ) + } +} \ No newline at end of file diff --git a/pc4mobx/hrmSalary/pages/calculate/index.js b/pc4mobx/hrmSalary/pages/calculate/index.js index db62ffbd..39eab4e9 100644 --- a/pc4mobx/hrmSalary/pages/calculate/index.js +++ b/pc4mobx/hrmSalary/pages/calculate/index.js @@ -13,6 +13,7 @@ import ContentWrapper from '../../components/contentWrapper'; import { columns, dataSource } from './columns'; import moment from 'moment'; import BaseFormModal from './baseFormModal' +import CustomTable from '../../components/customTable' const { RangePicker } = DatePicker; @@ -226,7 +227,7 @@ export default class Calculate extends React.Component { onChange={(v) => { }} /> - + { diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js index 4b543262..ac07039b 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js @@ -23,6 +23,7 @@ import EditSlideContent from './editSlideContent'; import TwoColContent from '../../../components/twoColContent' import TipLabel from '../../../components/TipLabel' import ItemMangeFormModal from './itemMangeFormModal' +import CustomTable from '../../../components/customTable'; const { RangePicker } = DatePicker; const { Option } = Select @@ -495,7 +496,8 @@ export default class Attendance extends React.Component { // onOperatesClick={this.onOperatesClick.bind(this)} /> */} - - { @@ -41,7 +42,13 @@ export default class Declare extends React.Component { } componentWillMount() { - this.handleSearch() + const { declareStore : {getDeclareList} } = this.props; + this.searchParams = { + fromSalaryMonthStr: this.state.startDate, + endSalaryMonthStr: this.state.endDate, + current: 1 + } + getDeclareList(this.searchParams) } // 日期区间改变事件 @@ -130,6 +137,7 @@ export default class Declare extends React.Component { return
this.handleRangePickerChange(value)} />