From 8d2643926f9ef29d6aa7f34761c22aaa6e41771c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Wed, 31 May 2023 17:11:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81-=E7=A4=BE=E4=BF=9D=E7=A6=8F?=
=?UTF-8?q?=E5=88=A9=E6=A1=A3=E6=A1=88=E3=80=81=E8=96=AA=E8=B5=84=E6=A1=A3?=
=?UTF-8?q?=E6=A1=88=E3=80=81=E8=96=AA=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=8F=B7=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../standingBookDetail/components/normal.js | 185 ++++++++++++------
1 file changed, 129 insertions(+), 56 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
index fcfcfcc8..9d5d987c 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
@@ -7,7 +7,7 @@
import React, { Component } from "react";
import { Button, Icon, message, Modal, Spin, Tooltip } from "antd";
import { inject, observer } from "mobx-react";
-import { WeaInputSearch, WeaTab } from "ecCom";
+import { WeaInputSearch, WeaTab, WeaSearchGroup, WeaInput, WeaFormItem } from "ecCom";
import { calcPageNo } from "../../../../util";
import { getQueryString } from "../../../../util/url";
import ProgressModal from "../../../../components/progressModal";
@@ -43,6 +43,7 @@ export default class NormalIndex extends Component {
total: 0
},
searchValue: "",
+ workcode: "",
progressVisible: false,
progress: 0,
fieldData: {}, //选中的表单头信息
@@ -440,13 +441,19 @@ export default class NormalIndex extends Component {
});
};
getSearchs=()=> {
- let group = [];
- return group;
+ return
+
+ this.setState({ workcode: v })}
+ />
+
+ ;
}
render() {
const { remarks, billMonth, selectedKey, paymentOrganization, standingBookStore } = this.props;
- const { addProps, adjustSlide, importParams, returnEditPersonSlide, showSearchAd } = this.state;
+ const { addProps, adjustSlide, importParams, returnEditPersonSlide, showSearchAd, searchValue } = this.state;
const { loading } = standingBookStore;
return (
@@ -476,7 +483,125 @@ export default class NormalIndex extends Component {
datas={[]} selectedKey="" advanceHeight={200} searchsAd={this.getSearchs()}
searchType={["base", "advanced"]} showSearchAd={showSearchAd}
setShowSearchAd={bool => this.setState({ showSearchAd: bool })}
+ onSearchChange={searchValue => this.setState({ searchValue })}
+ buttons={
+ (this.props.type !== "detail" && this.props.selectedKey == "3") ? [
+
+
+ ,
+
+
+ ,
+
+
+
+ ] : (selectedKey === "1" && this.props.type !== "detail") ? [
+
,
+
,
+
+
+
+ ] : selectedKey === "1" ? [
+
,
+
+
+
+ ] : this.props.type !== "detail" ? [
+
+ this.setState({ importParams: { ...importParams, visible: true } })}
+ />
+ ,
+
+
+
+ ] : []
+ }
/>
+
{
+ this.setState({
+ addProps: {
+ ...addProps,
+ visible: false
+ }
+ }, () => {
+ isRefresh && this.getSupplementaryList({
+ billMonth,
+ current: this.state.current,
+ paymentOrganization
+ });
+ });
+ }}
+ />
+ {/*核算进度条*/}
+ {
+ this.setState({ progressVisible: false, progress: 0 });
+ }}
+ progress={this.state.progress}
+ />
+ {/*导入弹框*/}
+ {
+ importParams.visible &&
+ {
+ this.setState({
+ fieldData
+ });
+ }}
+ onCancel={() => {
+ this.setState({ importParams: { ...importParams, visible: false }, fieldData: {} }, () => {
+ const { billMonth, selectedKey, paymentOrganization } = this.props;
+ const { current } = this.state;
+ selectedKey === "1"
+ ? this.getNormalList({ billMonth, current, paymentOrganization })
+ : this.getSupplementaryList({ billMonth, current, paymentOrganization });
+ });
+ }}
+ isStandingBook
+ standingBookTabKey={selectedKey}
+ />
+ }
{/**/}
{/* {this.props.type !== "detail" && this.props.selectedKey == "3"*/}
{/* ?
*/}
@@ -492,24 +617,6 @@ export default class NormalIndex extends Component {
{/* */}
{/* */}
{/* :
}*/}
- {/*
{*/}
- {/* this.setState({*/}
- {/* addProps: {*/}
- {/* ...addProps,*/}
- {/* visible: false*/}
- {/* }*/}
- {/* }, () => {*/}
- {/* isRefresh && this.getSupplementaryList({*/}
- {/* billMonth,*/}
- {/* current: this.state.current,*/}
- {/* paymentOrganization*/}
- {/* });*/}
- {/* });*/}
- {/* }}*/}
- {/* />*/}
{/* {*/}
{/* selectedKey === "1" && this.props.type !== "detail" &&*/}
{/* */}
@@ -534,15 +641,6 @@ export default class NormalIndex extends Component {
{/* }}>线下对比*/}
{/* */}
{/* }*/}
- {/* /!*核算进度条*!/*/}
- {/* {*/}
- {/* this.setState({ progressVisible: false, progress: 0 });*/}
- {/* }}*/}
- {/* progress={this.state.progress}*/}
- {/* />*/}
{/* {*/}
{/* this.props.type !== "detail" &&*/}
{/* */}
@@ -553,31 +651,6 @@ export default class NormalIndex extends Component {
{/* />*/}
{/* */}
{/* }*/}
- {/* /!*导入弹框*!/*/}
- {/* {*/}
- {/* importParams.visible &&*/}
- {/* {*/}
- {/* this.setState({*/}
- {/* fieldData*/}
- {/* });*/}
- {/* }}*/}
- {/* onCancel={() => {*/}
- {/* this.setState({ importParams: { ...importParams, visible: false }, fieldData: {} }, () => {*/}
- {/* const { billMonth, selectedKey, paymentOrganization } = this.props;*/}
- {/* const { current } = this.state;*/}
- {/* selectedKey === "1"*/}
- {/* ? this.getNormalList({ billMonth, current, paymentOrganization })*/}
- {/* : this.getSupplementaryList({ billMonth, current, paymentOrganization });*/}
- {/* });*/}
- {/* }}*/}
- {/* isStandingBook*/}
- {/* standingBookTabKey={selectedKey}*/}
- {/* />*/}
- {/* }*/}
-
{/* */}
{/*