提交 9a313e7a authored 作者: 钟是志's avatar 钟是志

36229 家庭经济困难--无法批量审核

上级 3ea62640
...@@ -32,7 +32,9 @@ class AuditPage extends Component { ...@@ -32,7 +32,9 @@ class AuditPage extends Component {
function handleClick(onShow) { function handleClick(onShow) {
const taskName = selectRows[0].taskName; const taskName = selectRows[0].taskName;
const differentTask = selectRows.slice(1).find((i) => i.taskName !== taskName); const differentTask = selectRows
.slice(1)
.find((i) => i.taskDefinitionKey !== selectRows[0].taskDefinitionKey);
if (differentTask) { if (differentTask) {
return ModalInfo( return ModalInfo(
<div> <div>
...@@ -135,20 +137,21 @@ class AuditPage extends Component { ...@@ -135,20 +137,21 @@ class AuditPage extends Component {
beforeSearchData: (data) => { beforeSearchData: (data) => {
let searcherKeyValue = {}; let searcherKeyValue = {};
for (let item of searchCondition) { for (let item of searchCondition) {
if (typeof data[item.key] !== 'undefined' if (
&& item.key !== 'taskDefKey' typeof data[item.key] !== 'undefined' &&
&& item.key !== 'process_status' item.key !== 'taskDefKey' &&
) { item.key !== 'process_status'
) {
searcherKeyValue[item.base52] = data[item.key]; searcherKeyValue[item.base52] = data[item.key];
} }
} }
if (searcherKeyValue && Object.keys(searcherKeyValue).length) { if (searcherKeyValue && Object.keys(searcherKeyValue).length) {
data.searcherKeyValue = JSON.stringify(searcherKeyValue); data.searcherKeyValue = JSON.stringify(searcherKeyValue);
} }
if (data.process_status) { if (data.process_status) {
data.formStatusId = data.process_status; data.formStatusId = data.process_status;
delete data.process_status; delete data.process_status;
} }
return data; return data;
}, },
condition: searchCondition.filter((g) => { condition: searchCondition.filter((g) => {
...@@ -178,12 +181,12 @@ class AuditPage extends Component { ...@@ -178,12 +181,12 @@ class AuditPage extends Component {
}; };
componentDidMount() { componentDidMount() {
if(this.props.setRefInfo){ if (this.props.setRefInfo) {
this.props.setRefInfo('AuditPage', this); this.props.setRefInfo('AuditPage', this);
} }
} }
render() { render() {
const { workId, dataBaseId, addFields, searchCondition } = this.props; const { workId, dataBaseId, addFields, searchCondition } = this.props;
return ( return (
<PageHeaderWrapper title=""> <PageHeaderWrapper title="">
...@@ -196,8 +199,8 @@ class AuditPage extends Component { ...@@ -196,8 +199,8 @@ class AuditPage extends Component {
addFields={addFields} addFields={addFields}
locationState={this.context.locationState} locationState={this.context.locationState}
pageSearch={this.handleSearchSet({})} pageSearch={this.handleSearchSet({})}
setRefInfo={this.props.setRefInfo} setRefInfo={this.props.setRefInfo}
keepAliveData={this.props.keepAliveData} keepAliveData={this.props.keepAliveData}
/> />
</PageHeaderWrapper> </PageHeaderWrapper>
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论