- 申报月份:
+ 纳税年度:
{
- this.setState({monthValue: v})
- let params = {}
- if(taxAgentId == "All") {
- params.taxAgentId = ""
+ this.setState({ monthValue: v });
+ let params = {};
+ if (taxAgentId == "All") {
+ params.taxAgentId = "";
} else {
- params.taxAgentId = taxAgentId
+ params.taxAgentId = taxAgentId;
}
- if(v != null && v != "") {
- params.taxYearMonth = [v]
+ if (v != null && v != "") {
+ params.year = v;
}
- getTableDatas(params)
+ getTableDatas(params);
}}
/>
@@ -114,38 +114,34 @@ export default class CumSituation extends React.Component {
个税扣缴义务人:
- {
- this.state.inited && {
- let params = {}
- if(v == "All") {
- params.taxAgentId = ""
+ let params = {};
+ if (v == "All") {
+ params.taxAgentId = "";
} else {
- params.taxAgentId = v
+ params.taxAgentId = v;
}
- if(monthValue != null && monthValue != "") {
- params.taxYearMonth = [monthValue]
+ if (monthValue != null && monthValue != "") {
+ params.year = monthValue;
}
- getTableDatas(params)
- this.setState({taxAgentId: v})
+ getTableDatas(params);
+ this.setState({ taxAgentId: v });
}}
- />
- }
+ />}
- )
+ );
}
-
renderFormComponent() {
const { modalParam } = this.state;
- const {
- taxAgentStore: { taxAgentOption },
- } = this.props;
+ const { taxAgentStore: { taxAgentOption } } = this.props;
return (
@@ -157,23 +153,22 @@ export default class CumSituation extends React.Component {
- this.setState({ modalParam: { taxYearMonth: value } })
- }
+ onChange={value =>
+ this.setState({ modalParam: { taxYearMonth: value } })}
/>
);
}
- onEdit = (record) => {
+ onEdit = record => {
const {
cumSituationStore: {
slideVisiable,
setSlideVisiable,
getCumDeductDetailList,
- setCurrentRecord,
- },
+ setCurrentRecord
+ }
} = this.props;
setSlideVisiable(true);
setCurrentRecord(record);
@@ -181,12 +176,12 @@ export default class CumSituation extends React.Component {
};
// 增加编辑功能,重写columns绑定事件
- getColumns = (columns) => {
+ getColumns = columns => {
let newColumns = [];
if (!columns) {
return [];
}
- newColumns = columns.map((column) => {
+ newColumns = columns.map(column => {
let newColumn = column;
newColumn.render = (text, record, index) => {
//前端元素转义
@@ -229,7 +224,6 @@ export default class CumSituation extends React.Component {
setStep(0);
}
-
onOperatesClick = (record, index, operate, flag) => {
switch (operate.index.toString()) {
case "0": // 查看明细
@@ -239,9 +233,7 @@ export default class CumSituation extends React.Component {
};
showColumn = () => {
- const {
- cumSituationStore: { tableStore },
- } = this.props;
+ const { cumSituationStore: { tableStore } } = this.props;
tableStore.setColSetVisible(true);
tableStore.tableColSet(true);
};
@@ -249,34 +241,35 @@ export default class CumSituation extends React.Component {
// 导入参数初始化
handleInitImport = () => {
const {
- cumSituationStore: { setSlideDataSource, setImportResult },
+ cumSituationStore: { setSlideDataSource, setImportResult }
} = this.props;
setSlideDataSource([]);
setImportResult({});
};
- onSelectChange = (val) => {
+ onSelectChange = val => {
this.setState({
- selectedKey: val,
+ selectedKey: val
});
};
// 搜索
handleSearch() {
- const { cumSituationStore:{getTableDatas} } = this.props;
+ const { cumSituationStore: { getTableDatas } } = this.props;
const { monthValue, taxAgentId } = this.state;
- let params = {}
- if(monthValue != null && monthValue !== "") {
- params.taxYearMonth = [monthValue]
+ let params = {};
+ if (monthValue != null && monthValue !== "") {
+ params.year = monthValue;
}
- if(taxAgentId != null && taxAgentId !== "" && taxAgentId !== "All") {
- params.taxAgentId = taxAgentId
+ if (taxAgentId != null && taxAgentId !== "" && taxAgentId !== "All") {
+ params.taxAgentId = taxAgentId;
}
- getTableDatas(params)
+ getTableDatas(params);
}
render() {
- const { cumSituationStore, taxAgentStore, slideSelectedKey } = this.props;
+ const { cumSituationStore, taxAgentStore } = this.props;
+ const { slideSelectedKey } = this.state;
const {
loading,
dataSource,
@@ -291,7 +284,7 @@ export default class CumSituation extends React.Component {
doSearch,
setShowSearchAd,
previewImport,
- importFile,
+ importFile
} = cumSituationStore;
const { taxAgentOption, showOperateBtn } = taxAgentStore;
const {
@@ -304,7 +297,7 @@ export default class CumSituation extends React.Component {
setStep,
slideDataSource,
importResult,
- setPageObj,
+ setPageObj
} = cumSituationStore;
const selectedRowKeys = toJS(tableStore.selectedRowKeys) || [];
const { modalParam, monthValue, taxAgentId } = this.state;
@@ -329,7 +322,7 @@ export default class CumSituation extends React.Component {
favouritetype: 1,
objid: 0,
link: "wui/index.html#/ns_demo03/index",
- importantlevel: 1,
+ importantlevel: 1
};
const adBtn = [
// 高级搜索内部按钮
@@ -341,13 +334,13 @@ export default class CumSituation extends React.Component {
,
,
+
];
const topTab = [];
const renderSearchOperationItem = () => {
- return
;
+ return
;
};
const handleButtonClick = () => {
@@ -357,10 +350,8 @@ export default class CumSituation extends React.Component {
// exportCumSituationList();
const { selectedKey } = this.state;
const url = `${window.location
- .origin}/api/bs/hrmsalary/addUpSituation/export?ids=${selectedKey.join(
- ","
- )}&declareMonth=${this.state.monthValue}&taxAgentId=${this.state
- .taxAgentId == "All"
+ .origin}/api/bs/hrmsalary/addUpSituation/export?ids=&year=${this
+ .state.monthValue}&taxAgentId=${this.state.taxAgentId == "All"
? ""
: this.state.taxAgentId}`;
window.open(url, "_self");
@@ -375,7 +366,7 @@ export default class CumSituation extends React.Component {
const url = `${window.location
.origin}/api/bs/hrmsalary/addUpSituation/export?ids=${selectedKey.join(
","
- )}&declareMonth=${this.state.monthValue}&taxAgentId=${this.state
+ )}&year=${this.state.monthValue}&taxAgentId=${this.state
.taxAgentId == "All"
? ""
: this.state.taxAgentId}`;
@@ -387,9 +378,7 @@ export default class CumSituation extends React.Component {
};
const handleBtnImport = () => {
- const {
- cumSituationStore: { setModalVisiable, setStep },
- } = this.props;
+ const { cumSituationStore: { setModalVisiable, setStep } } = this.props;
setStep(0);
setModalVisiable(true);
};
@@ -411,12 +400,12 @@ export default class CumSituation extends React.Component {
}
type="ghost">
导出全部
- ,
+
];
const handleExportAllDetailClick = () => {
const {
- cumSituationStore: { exportCumSituationDetailList, currentRecord },
+ cumSituationStore: { exportCumSituationDetailList, currentRecord }
} = this.props;
exportCumSituationDetailList(currentRecord.id);
};
@@ -427,7 +416,7 @@ export default class CumSituation extends React.Component {
return;
}
const {
- cumSituationStore: { exportCumSituationDetailList, currentRecord },
+ cumSituationStore: { exportCumSituationDetailList, currentRecord }
} = this.props;
exportCumSituationDetailList(
currentRecord.id,
@@ -452,7 +441,7 @@ export default class CumSituation extends React.Component {
const pagination = {
total: pageObj.total,
- showTotal: (total) => `共 ${total} 条`,
+ showTotal: total => `共 ${total} 条`,
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"],
onShowSizeChange(current, pageSize) {
@@ -460,8 +449,8 @@ export default class CumSituation extends React.Component {
getTableDatas({
current,
pageSize,
- taxAgentId:taxAgentId==='All' ? '' : taxAgentId,
- declareMonth: monthValue && [monthValue],
+ taxAgentId: taxAgentId === "All" ? "" : taxAgentId,
+ year: monthValue
});
},
onChange(current) {
@@ -469,47 +458,45 @@ export default class CumSituation extends React.Component {
getTableDatas({
current,
pageSize: pageObj.pageSize,
- taxAgentId:taxAgentId==='All' ? '' : taxAgentId,
- declareMonth: monthValue && [monthValue],
+ taxAgentId: taxAgentId === "All" ? "" : taxAgentId,
+ year: monthValue
});
- },
+ }
};
const rowSelection = {
selectedRowKeys: this.state.selectedKey,
- onChange: this.onSelectChange,
+ onChange: this.onSelectChange
};
- const newColumns = _.map([...columns], (item) => {
+ const newColumns = _.map([...columns], item => {
if (item.dataIndex === "username") {
return {
...item,
width: 100,
fixed: "left",
- render: (text, record) => (
+ render: (text, record) =>
- ),
};
} else if (item.dataIndex === "taxAgentName") {
return {
...item,
width: 180,
- fixed: "left",
+ fixed: "left"
};
} else if (item.dataIndex === "operate") {
return {
...item,
width: 100,
fixed: "right",
- render: (text, record) => (
+ render: (text, record) =>
- ),
};
} else {
return { ...item, width: 150 };
@@ -518,9 +505,7 @@ export default class CumSituation extends React.Component {
return (
-
+
} // 左侧图标
@@ -533,7 +518,7 @@ export default class CumSituation extends React.Component {
setShowSearchAd(bool)} //高级搜索面板受控
+ setShowSearchAd={bool => setShowSearchAd(bool)} //高级搜索面板受控
searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据
buttonsAd={adBtn} // 高级搜索内部按钮
onSearch={() => this.handleSearch()} // 点搜索按钮时的回调
@@ -553,7 +538,7 @@ export default class CumSituation extends React.Component {
/>
- {modalVisiable && (
+ {modalVisiable &&
{
this.handleInitImport();
@@ -570,10 +555,10 @@ export default class CumSituation extends React.Component {
}}
slideDataSource={slideDataSource}
importResult={importResult}
- previewImport={(params) => {
+ previewImport={params => {
previewImport(params);
}}
- importFile={(params) => {
+ importFile={params => {
importFile(params);
}}
renderFormComponent={() => this.renderFormComponent()}
@@ -581,9 +566,8 @@ export default class CumSituation extends React.Component {
onCancel={() => {
this.handleCancel();
}}
- />
- )}
- {slideVisiable && (
+ />}
+ {slideVisiable &&
- this.setState({ slideSelectedKey: val })
- }
+ onChangeSlideSelectKey={val =>
+ this.setState({ slideSelectedKey: val })}
/>
}
onClose={() => setSlideVisiable(false)}
showMask={true}
closeMaskOnClick={() => setSlideVisiable(false)}
- />
- )}
+ />}
);
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js
index 58983992..786c3c26 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js
@@ -261,7 +261,7 @@ export default class OtherDeduct extends React.Component {
}
render() {
- const { otherDeductStore, taxAgentStore, slideSelectedKey } = this.props;
+ const { otherDeductStore, taxAgentStore } = this.props;
const {
loading,
dataSource,
@@ -292,7 +292,7 @@ export default class OtherDeduct extends React.Component {
setPageObj
} = otherDeductStore;
const selectedRowKeys = toJS(tableStore.selectedRowKeys) || [];
- const { modalParam, monthValue, taxAgentId } = this.state;
+ const { modalParam, monthValue, taxAgentId, slideSelectedKey } = this.state;
const detailSelectedRowKeys = toJS(slideTableStore.selectedRowKeys) || [];
if (!hasRight && !loading) {
@@ -341,10 +341,8 @@ export default class OtherDeduct extends React.Component {
// exportOtherDeductList();
const { selectedKey } = this.state;
const url = `${window.location
- .origin}/api/bs/hrmsalary/otherDeduction/export?ids=${selectedKey.join(
- ","
- )}&declareMonth=${this.state.monthValue}&taxAgentId=${this.state
- .taxAgentId == "All"
+ .origin}/api/bs/hrmsalary/otherDeduction/export?ids=&declareMonth=${this
+ .state.monthValue}&taxAgentId=${this.state.taxAgentId == "All"
? ""
: this.state.taxAgentId}`;
window.open(url, "_self");
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index c1657903..2adf2243 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -133,8 +133,8 @@ export default class PayrollGrant extends React.Component {
);
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollGrantModal.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollGrantModal.js
index e9ce0752..0184797c 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollGrantModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollGrantModal.js
@@ -153,6 +153,7 @@ export default class payrollGrantModal extends React.Component {
{
this.props.onCancel();
}}>
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollWithdrawModal.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollWithdrawModal.js
index 7a2cba87..4a45bae4 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollWithdrawModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollWithdrawModal.js
@@ -154,6 +154,7 @@ export default class PayrollWithdrawModal extends React.Component {
{
this.props.onCancel();
}}>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js
index 15db873f..b170375b 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js
@@ -87,7 +87,8 @@ export default class AccumulationFundForm extends React.Component {
公积金方案名称:
-