From 33e50095857fda60a5389d77eddd4713cf882f50 Mon Sep 17 00:00:00 2001 From: MustangDeng <670124965@qq.com> Date: Tue, 24 May 2022 15:39:09 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/components/groupCard/index.less | 1 - .../hrmSalary/pages/calculateDetail/index.js | 2 +- .../pages/calculateDetail/salaryDetail.js | 3 +- .../pages/calculateDetail/userSure.js | 4 +- .../dataAcquisition/cumDeduct/columns.js | 10 ++ .../dataAcquisition/cumSituation/columns.js | 11 ++ .../hrmSalary/pages/ledger/addUserModal.js | 3 + .../pages/salaryItem/customSalaryItemSlide.js | 2 +- .../archives/accumulationFundForm.js | 11 +- .../socialSecurityBenefits/archives/index.js | 10 +- .../archives/otherForm.js | 11 +- .../archives/socialSecurityForm.js | 11 +- pc4mobx/hrmSalary/stores/archives.js | 2 +- pc4mobx/hrmSalary/stores/cumDeduct.js | 2 + pc4mobx/hrmSalary/stores/cumSituation.js | 5 +- pc4mobx/hrmSalary/stores/otherDeduct.js | 5 +- pc4mobx/hrmSalary/util/index.js | 43 ----- pc4mobx/hrmSalary/util/index2.js | 150 ++++++++++++++++++ 18 files changed, 220 insertions(+), 66 deletions(-) create mode 100644 pc4mobx/hrmSalary/util/index2.js diff --git a/pc4mobx/hrmSalary/components/groupCard/index.less b/pc4mobx/hrmSalary/components/groupCard/index.less index f8003ceb..a4076edd 100644 --- a/pc4mobx/hrmSalary/components/groupCard/index.less +++ b/pc4mobx/hrmSalary/components/groupCard/index.less @@ -16,7 +16,6 @@ height: 16px; line-height: 16px; border-radius: 5px; - background-color: #eee; } } .contentWrapper { diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/index.js b/pc4mobx/hrmSalary/pages/calculateDetail/index.js index 7e2b3ab6..ee30c5fa 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/index.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/index.js @@ -179,7 +179,7 @@ export default class CalculateDetail extends React.Component { }} onCancel={() => this.setState({ acctResultImportVisiable: false, - fieldData: {} + fieldData: {} })} id={this.id} /> diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js index d37bdcf9..b419d14d 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js @@ -79,11 +79,12 @@ export default class SalaryDetail extends React.Component { columns.push({ title: '操作', key: "cz", + width: '100px', render: (text, record) => { return {this.handleEdit(record)}}>编辑 } }) - console.log("columns: " , columns) + console.log("columns: ", columns); return columns; } diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/userSure.js b/pc4mobx/hrmSalary/pages/calculateDetail/userSure.js index 62d9e5d3..bf86091e 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/userSure.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/userSure.js @@ -133,7 +133,7 @@ export default class UserSure extends React.Component { // 核算人员范围分页 handleUserListPageChange(value) { const { calculateStore: {acctemployeeList}} = this.props; - acctemployeeList({acctemployeeList: this.id, employeeName: this.state.userListSearchValue, current: value}) + acctemployeeList({salaryAcctRecordId: this.id, employeeName: this.state.userListSearchValue, current: value}) } // 环比减少人员分页 @@ -146,7 +146,7 @@ export default class UserSure extends React.Component { handleUserListSearch(value) { const { calculateStore: {acctemployeeList, reducedemployeeList}} = this.props; if(this.state.selectedKey == 0) { - acctemployeeList({acctemployeeList: this.id, employeeName: value, current: 1}) + acctemployeeList({salaryAcctRecordId: this.id, employeeName: value, current: 1}) } else { reducedemployeeList({salaryAcctRecordId: this.id, employeeName: value, current: 1}) } diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js index 30d36254..df2c591c 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js @@ -127,6 +127,16 @@ export const modalColumns = [ title: "累计赡养老人", dataIndex: 'addUpSupportElderly', key: 'addUpSupportElderly', + }, + { + title: "累计婴幼儿照护", + dataIndex: 'addUpInfantCare', + key: 'addUpInfantCare', + }, + { + title: "累计大病医疗", + dataIndex: 'addUpIllnessMedical', + key: 'addUpIllnessMedical' } ] diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/columns.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/columns.js index edd6fb53..47a6fb4f 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/columns.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/columns.js @@ -172,7 +172,18 @@ export const modalColumns = [ title: "累计已预扣预缴税额", dataIndex: 'addUpAdvanceTax', key: 'addUpAdvanceTax', + }, + { + title: "累计婴幼儿照护", + dataIndex: 'addUpInfantCare', + key: 'addUpInfantCare', + }, + { + title: "累计大病医疗", + dataIndex: 'addUpIllnessMedical', + key: 'addUpIllnessMedical', } + ] export const dataSource = []; diff --git a/pc4mobx/hrmSalary/pages/ledger/addUserModal.js b/pc4mobx/hrmSalary/pages/ledger/addUserModal.js index 5d9f9614..2e74c9a8 100644 --- a/pc4mobx/hrmSalary/pages/ledger/addUserModal.js +++ b/pc4mobx/hrmSalary/pages/ledger/addUserModal.js @@ -84,6 +84,7 @@ export default class AddUserModal extends React.Component { this.state.selectedKey == "EMPLOYEE" && { this.setState({ids}) @@ -94,6 +95,7 @@ export default class AddUserModal extends React.Component { this.state.selectedKey == "DEPT" && { this.setState({ids}) @@ -104,6 +106,7 @@ export default class AddUserModal extends React.Component { this.state.selectedKey == "POSITION" && { this.setState({ids}) diff --git a/pc4mobx/hrmSalary/pages/salaryItem/customSalaryItemSlide.js b/pc4mobx/hrmSalary/pages/salaryItem/customSalaryItemSlide.js index b1a2091e..745ee7fb 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/customSalaryItemSlide.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/customSalaryItemSlide.js @@ -117,7 +117,7 @@ export default class CustomSalaryItemSlide extends React.Component { { ( valueType == 2 || valueType == 3 ) && - 公式 + {valueType == 2 ? "公式" : "SQL"}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js index c0b33901..15db873f 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js @@ -1,7 +1,7 @@ import React from 'react' import { inject, observer } from 'mobx-react'; import { Row, Col, Select } from 'antd' -import { WeaDatePicker, WeaInput } from 'ecCom' +import { WeaDatePicker, WeaInput, WeaCheckbox } from 'ecCom' import GroupCard from '../../../components/groupCard' import "./index.less" @@ -60,6 +60,9 @@ export default class AccumulationFundForm extends React.Component { } return (
+
+ {this.handleFormChange({nonPayment: value})}} /> +
公积金起始缴纳月: @@ -84,7 +87,7 @@ export default class AccumulationFundForm extends React.Component { 公积金方案名称: - { this.handleFormChange({fundSchemeId: value}) this.handleFetchPaymentForm(value); }}> @@ -111,7 +114,7 @@ export default class AccumulationFundForm extends React.Component { 公积金缴纳组织: - this.handleFormChange({paymentOrganization: value})}> { items && items[0].items &&items[0].items[1] && items[0].items[1].options.map(item => ( @@ -121,7 +124,7 @@ export default class AccumulationFundForm extends React.Component { 公积金个人实际承担方: - { this.handleFormChange({underTake: value}) }}> { diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js index bf419ea2..b8eb29e0 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js @@ -275,9 +275,15 @@ export default class Archives extends React.Component { this.handleEditSlideSave()} + customOperate={ +
+ { + selectedTab != 0 && + } +
+ } subItemChange={ (item) => {this.setState({selectedTab: item.key})} } diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js index 02feb7de..0ef4be98 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js @@ -1,7 +1,7 @@ import React from 'react' import { inject, observer } from 'mobx-react'; import { Row, Col, Select } from 'antd' -import { WeaDatePicker, WeaInput } from "ecCom"; +import { WeaDatePicker, WeaInput, WeaCheckbox } from "ecCom"; import GroupCard from '../../../components/groupCard' import "./index.less" const { Option } = Select @@ -67,6 +67,9 @@ export default class OtherForm extends React.Component { return (
+
+ {this.handleFormChange({nonPayment: value})}} /> +
其他福利起始缴纳月: @@ -89,7 +92,7 @@ export default class OtherForm extends React.Component { 其他福利方案名称: - { this.handleFormChange({otherName: value}) this.handleFetchPaymentForm(value); }}> @@ -104,7 +107,7 @@ export default class OtherForm extends React.Component { 社保缴纳组织: - this.handleFormChange({paymentOrganization: value})}> { items && items[0].items &&items[0].items[1] && items[0].items[1].options.map(item => ( @@ -115,7 +118,7 @@ export default class OtherForm extends React.Component { 社保个人实际承担方: - this.handleFormChange({underTake: value})}> { items && items[0].items &&items[0].items[2] && items[0].items[2].options.map(item => ( diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js index 563b90db..575b171b 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js @@ -1,7 +1,7 @@ import React from 'react' import GroupCard from '../../../components/groupCard' import { Row, Col, Select } from 'antd'; -import { WeaDatePicker, WeaInput } from 'ecCom'; +import { WeaDatePicker, WeaInput, WeaCheckbox } from 'ecCom'; import { inject, observer } from 'mobx-react'; import "./index.less" import ItemMangeFormModal from '../../dataAcquisition/attendance/itemMangeFormModal'; @@ -63,6 +63,9 @@ export default class SocialSecurityForm extends React.Component { return (
+
+ {this.handleFormChange({nonPayment: value})}} /> +
社保起始缴纳月: @@ -85,7 +88,7 @@ export default class SocialSecurityForm extends React.Component { 社保方案名称: - { this.handleFormChange({socialName: value}) this.handleFetchPaymentForm(value) }}> @@ -105,7 +108,7 @@ export default class SocialSecurityForm extends React.Component { 社保缴纳组织: - this.handleFormChange({paymentOrganization: value})}> { items && items[0].items &&items[0].items[1] && items[0].items[1].options.map(item => ( @@ -115,7 +118,7 @@ export default class SocialSecurityForm extends React.Component { 社保个人实际承担方: -