同步代码

This commit is contained in:
wjn 2024-05-08 16:57:31 +08:00
parent d7c66b0cc5
commit 8798d40cad
3 changed files with 3 additions and 7 deletions

View File

@ -104,10 +104,6 @@ class SE005ReportEdit extends React.Component {
}
onApprove = ()=>{
const { ALL,data } = this.state;
const canApprove = !ALL && data && data.SURVEY && data.SURVEY.length == 1 && data.SURVEY[0].STATUS == 3 && data.SURVEY[0].LAUNCH_USER_ID == this.props.login.user.ID
if (!canApprove){
return;
}
let json = {
Parameter1: data.SURVEY[0].ID,
Parameter2: this.props.data.TaskID,
@ -153,7 +149,7 @@ class SE005ReportEdit extends React.Component {
const count = data && data.ROWS && data.ROWS.length > 0 && data.ROWS[0].length || 1;
const SPAN = Math.floor(24 / count) || 1;
const TITLE_SPAN = Math.max(24 - count * SPAN,0) + SPAN;
const canApprove = !ALL && data && data.SURVEY && data.SURVEY.length == 1 && data.SURVEY[0].STATUS == 3 && data.SURVEY[0].LAUNCH_USER_ID == this.props.login.user.ID
const canApprove = this.props.data.tableKey == "1"
return <div>
<div style={{ padding: '10px' }}>

View File

@ -194,7 +194,7 @@ class SE015ShowPrint extends React.Component {
/>
<Button style={{ marginLeft: '8px' }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
{
(data && data.STATUS === EduCardStatus['审阅中']) && this.props.data.tableKey != undefined && this.props.data.tableKey == "1" ?
(data && data.STATUS >= EduCardStatus['审阅中']) && this.props.data.tableKey != undefined && this.props.data.tableKey == "1" ?
<Button onClick={() => this.onTableBtnApprove()} type={'primary'} icon="check" >已阅</Button>
: null
}

View File

@ -68,7 +68,7 @@ class SE018EditPage extends React.Component {
this.state.missUsers = data.Nav_Users.filter(item => item.STATUS == 2);
data.Nav_Users = data.Nav_Users.filter(item => item.STATUS == 0);
//安环部负责人审阅中
if (data.STATUS == 2 && this.props.formCode != "SE050_SHOWPRINT" && this.props.data.tableKey != undefined) {
if (this.props.formCode != "SE050_SHOWPRINT" && this.props.data.tableKey != undefined) {
isApprove = true;
}
this.setState({