From 194e575e252942bb8c32404330e15e474509309e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Tue, 27 Feb 2024 16:33:50 +0800 Subject: [PATCH] hotfix/2.10.1.2402.01 --- pc4mobx/hrmSalary/index.js | 9 +- .../pages/payrollFiles/config/index.js | 71 ++++++++------ .../pages/payrollFiles/salaryFiles.js | 7 ++ .../welfareArchive/config.js | 96 +++++++++++-------- .../welfareArchive/index.js | 18 ++-- 5 files changed, 118 insertions(+), 83 deletions(-) diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js index e1fc1ff9..8935c086 100644 --- a/pc4mobx/hrmSalary/index.js +++ b/pc4mobx/hrmSalary/index.js @@ -6,15 +6,12 @@ import SalaryAdjustmentRecords from "./pages/salaryAdjustmentRecords"; import MySalaryMobile from "./pages/mySalaryMobile"; import MySalary from "./pages/mySalaryBenefits"; import Programme from "./pages/socialSecurityBenefits/welfarePlan"; -import Programme_old from "./pages/socialSecurityBenefits/programme"; // import Archivess from "./pages/socialSecurityBenefits/archives"; import Archives from "./pages/socialSecurityBenefits/welfareArchive"; //社保福利档案重构页面 -import StandingBookDemo from "./pages/socialSecurityBenefits/standingBook"; -import StandingBook from "./pages/socialSecurityBenefits/standingBook/standingBook";//社保福利台账重构页面 +import StandingBook from "./pages/socialSecurityBenefits/standingBook/standingBook"; //社保福利台账重构页面 import StandingBookDetail from "./pages/socialSecurityBenefits/standingBookDetail"; import StandingBookOfflineComparison from "./pages/socialSecurityBenefits/standingBookOfflineComparison"; import SalaryItem from "./pages/salaryItem"; -import PayrollFiles from "./pages/payrollFiles"; import SalaryFiles from "./pages/payrollFiles/salaryFiles"; import CumDeduct from "./pages/dataAcquisition/cumDeduct"; import OtherDeduct from "./pages/dataAcquisition/otherDeduct"; @@ -130,10 +127,7 @@ const Routes = ( path="socialSecurityBenefits" component={SocialSecurityBenefits}> - - {/**/} - - onSalaryOpts("ALL-GO-TO-FIXED")}> - {getLabel(543304, "全部设为发薪人员")} - ); + showOperateBtn && reqBtns.splice(1, 0, onSalaryOpts("ALL-GO-TO-FIXED")} + overlay={ onSalaryOpts(key)}> + {getLabel(543305, "批量设为发薪员工")} + {getLabel(543186, "批量删除待办")} + }>{getLabel(543304, "全部设为发薪人员")}); break; case "suspend": !showOperateBtn && reqBtns.shift(); + showOperateBtn && reqBtns.splice(1, 0, onSalaryOpts("FULL-SALARY-SUSPENSION")} + overlay={ onSalaryOpts(key)}> + {getLabel(543724, "批量停薪")} + {getLabel(543186, "批量删除待办")} + }>{getLabel(543326, "全部停薪")}); break; case "fixed": case "ext": @@ -104,16 +119,16 @@ export const renderDropMenuDatas = (selectedKey, showOperateBtn) => { switch (selectedKey) { case "pending": menus = [ - { - key: "ADD-TO-SALARYPAYMENT", - icon: , - content: getLabel(543305, "批量设为发薪员工") - }, - { - key: "DEL-PENDITNG-TO-DO", - icon: , - content: getLabel(543186, "批量删除待办") - }, + // { + // key: "ADD-TO-SALARYPAYMENT", + // icon: , + // content: getLabel(543305, "批量设为发薪员工") + // }, + // { + // key: "DEL-PENDITNG-TO-DO", + // icon: , + // content: getLabel(543186, "批量删除待办") + // }, { key: "exportAll", icon: , @@ -144,21 +159,21 @@ export const renderDropMenuDatas = (selectedKey, showOperateBtn) => { break; case "suspend": menus = [ - { - key: "FULL-SALARY-SUSPENSION", - icon: , - content: getLabel(543326, "全部停薪") - }, - { - key: "SALARY-SUSPENSION", - icon: , - content: getLabel(543724, "批量停薪") - }, - { - key: "DEL-SUSPEND-TO-DO", - icon: , - content: getLabel(543186, "批量删除待办") - }, + // { + // key: "FULL-SALARY-SUSPENSION", + // icon: , + // content: getLabel(543326, "全部停薪") + // }, + // { + // key: "SALARY-SUSPENSION", + // icon: , + // content: getLabel(543724, "批量停薪") + // }, + // { + // key: "DEL-SUSPEND-TO-DO", + // icon: , + // content: getLabel(543186, "批量删除待办") + // }, { key: "exportAll", icon: , diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js index fdea15e6..8ef3c6df 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js @@ -117,6 +117,13 @@ class SalaryFiles extends Component { } handleSalaryOpts && handleSalaryOpts(_.camelCase(type), selectedRowKeys); break; + case "ADD-TO-SALARYPAYMENT": + case "DEL-PENDITNG-TO-DO": + case "FULL-SALARY-SUSPENSION": + case "SALARY-SUSPENSION": + case "DEL-SUSPEND-TO-DO": + this.onDropMenuClick(type); + break; default: break; } diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js index 580f695b..f7b4d542 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js @@ -9,7 +9,7 @@ import { WeaTools } from "ecCom"; import { WeaSwitch } from "comsMobx"; -import { Button } from "antd"; +import { Button, Dropdown, Menu } from "antd"; import AdvanceInputBtn from "./components/advanceInputBtn"; import { CancelHelpfulDiv, HelpfulDiv } from "./components/welfareTip"; @@ -148,21 +148,21 @@ export const renderDropMenuDatas = (selectedKey, getLabel, showOperateBtn) => { switch (selectedKey) { case "1": menus = [ - { - key: "fullStaffIncrease", - icon: , - content: getLabel(543185, "全量增员") - }, - { - key: "batchStaffIncrease", - icon: , - content: getLabel(543187, "批量增员") - }, - { - key: "batchDeleteTodolist", - icon: , - content: getLabel(543186, "批量删除待办") - }, + // { + // key: "fullStaffIncrease", + // icon: , + // content: getLabel(543185, "全量增员") + // }, + // { + // key: "batchStaffIncrease", + // icon: , + // content: getLabel(543187, "批量增员") + // }, + // { + // key: "batchDeleteTodolist", + // icon: , + // content: getLabel(543186, "批量删除待办") + // }, { key: "exportAll", icon: , @@ -193,21 +193,21 @@ export const renderDropMenuDatas = (selectedKey, getLabel, showOperateBtn) => { break; case "3": menus = [ - { - key: "fullReduction", - icon: , - content: getLabel(543189, "全量减员") - }, - { - key: "batchReduction", - icon: , - content: getLabel(543188, "批量减员") - }, - { - key: "batchDeleteTodolistStayDel", - icon: , - content: getLabel(543186, "批量删除待办") - }, + // { + // key: "fullReduction", + // icon: , + // content: getLabel(543189, "全量减员") + // }, + // { + // key: "batchReduction", + // icon: , + // content: getLabel(543188, "批量减员") + // }, + // { + // key: "batchDeleteTodolistStayDel", + // icon: , + // content: getLabel(543186, "批量删除待办") + // }, { key: "exportAll", icon: , @@ -223,11 +223,11 @@ export const renderDropMenuDatas = (selectedKey, getLabel, showOperateBtn) => { break; case "4,5": menus = [ - { - key: "batchCancellationOfSuspended", - icon: , - content: getLabel(543190, "批量取消停缴") - }, + // { + // key: "batchCancellationOfSuspended", + // icon: , + // content: getLabel(543190, "批量取消停缴") + // }, { key: "exportAll", icon: , @@ -247,14 +247,23 @@ export const renderDropMenuDatas = (selectedKey, getLabel, showOperateBtn) => { } return menus; }; -export const renderReqBtns = (selectedKey, getLabel, onOpenAdvanceSearch, onAdvanceSearch, onImport, showOperateBtn) => { +export const renderReqBtns = (selectedKey, getLabel, onOpenAdvanceSearch, onAdvanceSearch, onDropMenuClick, showOperateBtn) => { let reqBtns = showOperateBtn ? [ - , + , ] : []; if (showOperateBtn) { switch (selectedKey) { case "1": + showOperateBtn && reqBtns.splice(1, 0, onDropMenuClick("fullStaffIncrease")} + overlay={ onDropMenuClick(key)}> + {getLabel(543187, "批量增员")} + {getLabel(543186, "批量删除待办")} + }>{getLabel(543185, "全量增员")}); reqBtns.unshift( onDropMenuClick("fullReduction")} + overlay={ onDropMenuClick(key)}> + {getLabel(543188, "批量减员")} + {getLabel(543186, "批量删除待办")} + }>{getLabel(543189, "全量减员")}); reqBtns.unshift( onDropMenuClick("batchCancellationOfSuspended")}>{getLabel(543190, "批量取消停缴")}); reqBtns.unshift( this.setState({ showSearchAd: true }); handleAdvanceSearch = () => this.setState({ isQuery: !this.state.isQuery }); - handleImport = () => { - this.setState({ - welfareImpDialog: { - ...this.state.welfareImpDialog, visible: true, - runStatuses: this.state.selectedKey - } - }); - }; onDropMenuClick = (key) => { switch (key) { + case "import": + this.setState({ + welfareImpDialog: { + ...this.state.welfareImpDialog, visible: true, + runStatuses: this.state.selectedKey + } + }); + break; case "fullStaffIncrease": case "fullReduction": this.handleFullOptions(key); @@ -138,7 +138,7 @@ class Index extends Component { title={getLabel(538001, "社保福利档案")} buttonSpace={10} icon={} iconBgcolor="#F14A2D" showDropIcon onDropMenuClick={this.onDropMenuClick} dropMenuDatas={renderDropMenuDatas(selectedKey, getLabel, showOperateBtn)} - buttons={renderReqBtns(selectedKey, getLabel, this.handleOpenAdvanceSearch, this.handleAdvanceSearch, this.handleImport, showOperateBtn)} + buttons={renderReqBtns(selectedKey, getLabel, this.handleOpenAdvanceSearch, this.handleAdvanceSearch, this.onDropMenuClick, showOperateBtn)} replaceTab={