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

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

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