作业现场模块增加json.Parameter22 = this.props.data.ORG_ID_HV;
This commit is contained in:
parent
4419026764
commit
f685435a77
@ -1,5 +1,5 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button, Popconfirm, Row, Col, Form, Input, Select, Table, Modal} from 'antd';
|
import { Button, Popconfirm, Row, Col, Form, Input, Select, Table, Modal } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude, showFiles, GetFileModel } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, showFiles, GetFileModel } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
@ -66,6 +66,7 @@ class FO003ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendInclude(json, 'Nav_Team');
|
extendInclude(json, 'Nav_Team');
|
||||||
extendInclude(json, 'Nav_Class');
|
extendInclude(json, 'Nav_Class');
|
||||||
|
|||||||
@ -53,6 +53,7 @@ class FO005ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendInclude(json, 'Nav_Users.Nav_User');
|
extendInclude(json, 'Nav_Users.Nav_User');
|
||||||
extendInclude(json, 'Nav_Team');
|
extendInclude(json, 'Nav_Team');
|
||||||
|
|||||||
@ -60,6 +60,7 @@ class FO008ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendInclude(json, 'Nav_User');
|
extendInclude(json, 'Nav_User');
|
||||||
extendInclude(json, 'Nav_Department');
|
extendInclude(json, 'Nav_Department');
|
||||||
|
|||||||
@ -60,6 +60,7 @@ class FO015ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
// extendInclude(json, 'Nav_Meeting');
|
// extendInclude(json, 'Nav_Meeting');
|
||||||
// extendInclude(json, 'Nav_CreateUser');
|
// extendInclude(json, 'Nav_CreateUser');
|
||||||
|
|||||||
@ -58,6 +58,7 @@ class FO017ShowPrint extends React.Component {
|
|||||||
loadData = () => {
|
loadData = () => {
|
||||||
let that = this;
|
let that = this;
|
||||||
let json = initFilter(that.props.login.OrgId);
|
let json = initFilter(that.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, that.props.data.id);
|
extendRule(json, 'ID', 1, that.props.data.id);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
// extendInclude(json, 'Nav_CrucialLicensePerson');
|
// extendInclude(json, 'Nav_CrucialLicensePerson');
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button,Descriptions, Modal,Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
import { Button, Descriptions, Modal, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule, setDataFieldValue, guid,showFiles,GetFileModel, initQueryFilter } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, initQueryFilter } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../HI/StepForm.css';
|
import styles from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -54,12 +54,13 @@ class FO019ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.data.onCancel != "undefined"&&typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
// extendRule(json, 'ID', 1, dataId);
|
// extendRule(json, 'ID', 1, dataId);
|
||||||
@ -79,14 +80,13 @@ class FO019ShowPrint extends React.Component {
|
|||||||
url: 'FO/FOTechDisclosureFrom/GetEdit',
|
url: 'FO/FOTechDisclosureFrom/GetEdit',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if(this.props.data && this.props.data.loadDataDeal)
|
if (this.props.data && this.props.data.loadDataDeal) {
|
||||||
{
|
|
||||||
this.props.data.loadDataDeal(1);
|
this.props.data.loadDataDeal(1);
|
||||||
}
|
}
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (this.props.data.tableKey=="2" ||this.props.data.tableKey==undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
}else{
|
} else {
|
||||||
this.setState({ BtnAgreeDisplay: 'inline' })
|
this.setState({ BtnAgreeDisplay: 'inline' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,11 +106,11 @@ class FO019ShowPrint extends React.Component {
|
|||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<ReactToPrint
|
<ReactToPrint
|
||||||
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px',display: data && data.FORM_STATUS === 2?"inline":"none" }}>打印</Button>}
|
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }}>打印</Button>}
|
||||||
content={() => this.componentRef}
|
content={() => this.componentRef}
|
||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px',display: data && data.FORM_STATUS === 2?"inline":"none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -120,107 +120,107 @@ class FO019ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>安全技术交底表</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>安全技术交底表</h1>
|
||||||
{
|
{
|
||||||
data ?
|
data ?
|
||||||
<table style={{ width: '100%', textAlign: 'center', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
<table style={{ width: '100%', textAlign: 'center', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>编号</td>
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>编号</td>
|
||||||
<td colSpan={3} rowSpan={1}>{data.CODE}</td>
|
<td colSpan={3} rowSpan={1}>{data.CODE}</td>
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>作业名称</td>
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>作业名称</td>
|
||||||
<td colSpan={3} rowSpan={1}>{data.Nav_OperationStep?data.Nav_OperationStep?.NAME:''}</td>
|
<td colSpan={3} rowSpan={1}>{data.Nav_OperationStep ? data.Nav_OperationStep?.NAME : ''}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>作业地点</td>
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>作业地点</td>
|
||||||
<td colSpan={3} rowSpan={1}>{data.JOB_LOCATION}</td>
|
<td colSpan={3} rowSpan={1}>{data.JOB_LOCATION}</td>
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底时间</td>
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底时间</td>
|
||||||
<td colSpan={3} rowSpan={1}>{data.DISCLOSURE_DATE?data.DISCLOSURE_DATE:null}</td>
|
<td colSpan={3} rowSpan={1}>{data.DISCLOSURE_DATE ? data.DISCLOSURE_DATE : null}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底人</td>
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底人</td>
|
||||||
<td colSpan={3} rowSpan={1}>{data.Nav_DisclosurePerson?data.Nav_DisclosurePerson?.NAME:''}</td>
|
<td colSpan={3} rowSpan={1}>{data.Nav_DisclosurePerson ? data.Nav_DisclosurePerson?.NAME : ''}</td>
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>被交底人</td>
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>被交底人</td>
|
||||||
<td colSpan={3} rowSpan={1}>{
|
<td colSpan={3} rowSpan={1}>{
|
||||||
data.IS_OUTSOURCE == false && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
data.IS_OUTSOURCE == false && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
if (i == (data.Nav_Person.length - 1)) {
|
if (i == (data.Nav_Person.length - 1)) {
|
||||||
if (item.DEAL_STATUS == 0)
|
if (item.DEAL_STATUS == 0)
|
||||||
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User?.NAME}</label>
|
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User?.NAME}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User?.NAME
|
return item.Nav_User?.NAME
|
||||||
} else {
|
} else {
|
||||||
if (item.DEAL_STATUS == 0)
|
if (item.DEAL_STATUS == 0)
|
||||||
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_User?.NAME + ' '}</label>
|
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_User?.NAME + ' '}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User?.NAME + ' '
|
return item.Nav_User?.NAME + ' '
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
{
|
||||||
}
|
data.IS_OUTSOURCE == true && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
{
|
if (i == (data.Nav_Person.length - 1)) {
|
||||||
data.IS_OUTSOURCE == true && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
if (item.DEAL_STATUS == 0)
|
||||||
if (i == (data.Nav_Person.length - 1)) {
|
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_RelatedUser?.NAME}</label>
|
||||||
if (item.DEAL_STATUS == 0)
|
else
|
||||||
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_RelatedUser?.NAME}</label>
|
return item.Nav_RelatedUser?.NAME
|
||||||
else
|
} else {
|
||||||
return item.Nav_RelatedUser?.NAME
|
if (item.DEAL_STATUS == 0)
|
||||||
} else {
|
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_RelatedUser?.NAME + ' '}</label>
|
||||||
if (item.DEAL_STATUS == 0)
|
else
|
||||||
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_RelatedUser?.NAME + ' '}</label>
|
return item.Nav_RelatedUser?.NAME + ' '
|
||||||
else
|
}
|
||||||
return item.Nav_RelatedUser?.NAME + ' '
|
})
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底内容</td>
|
||||||
|
<td colSpan={8} rowSpan={1}>{data.DisclosureContent}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>附件</td>
|
||||||
|
<td colSpan={8} rowSpan={1}>{showFiles(data.Nav_Files, config.picServerHost, this)}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底人签字</td>
|
||||||
|
<td colSpan={8} rowSpan={1}>{
|
||||||
|
(data.Nav_DisclosurePerson && data.Nav_DisclosurePerson.FILE_PATH) ?
|
||||||
|
<img style={{ margin: "0 0 0 15px", width: '150px' }} alt={data.Nav_DisclosurePerson?.NAME} src={config.picServerHost + data.Nav_DisclosurePerson.FILE_PATH} />
|
||||||
|
: data.Nav_DisclosurePerson?.NAME
|
||||||
|
// data.Nav_DisclosurePerson && data.Nav_DisclosurePerson.map((item, i) => {
|
||||||
|
// if (item.FORM_STATUS >= 1) {
|
||||||
|
// if (item.Nav_User != null && item.Nav_User.FILE_PATH!= null)
|
||||||
|
// return <img width={'20%'} alt={item.Nav_User.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
||||||
|
// else
|
||||||
|
// return <img width={'20%'} title={item.Nav_User.NAME} />
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colSpan={2} rowSpan={1} className={styles.fontBold}>被交底人签字</td>
|
||||||
|
<td colSpan={8} rowSpan={1}>{
|
||||||
|
data.IS_OUTSOURCE == false && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
|
if (item.DEAL_STATUS == 1) {
|
||||||
|
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
||||||
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} alt={item.Nav_User?.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
||||||
|
else
|
||||||
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} title={item.Nav_User?.NAME} />
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
{
|
||||||
}
|
data.IS_OUTSOURCE == true && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
</td>
|
if (item.DEAL_STATUS == 1) {
|
||||||
</tr>
|
if (item.Nav_RelatedUser != null && item.Nav_RelatedUser.Nav_Signs[0] != null)
|
||||||
<tr>
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} alt={item.Nav_RelatedUser?.NAME} src={config.picServerHost + item.Nav_RelatedUser.Nav_Signs[0].Nav_ImgFile.FILE_PATH} />
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底内容</td>
|
else
|
||||||
<td colSpan={8} rowSpan={1}>{data.DisclosureContent}</td>
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} title={item.Nav_RelatedUser?.NAME} />
|
||||||
</tr>
|
}
|
||||||
<tr>
|
})
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>附件</td>
|
|
||||||
<td colSpan={8} rowSpan={1}>{showFiles(data.Nav_Files, config.picServerHost, this)}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>交底人签字</td>
|
|
||||||
<td colSpan={8} rowSpan={1}>{
|
|
||||||
(data.Nav_DisclosurePerson && data.Nav_DisclosurePerson.FILE_PATH)?
|
|
||||||
<img style={{ margin: "0 0 0 15px",width:'150px' }} alt={data.Nav_DisclosurePerson?.NAME} src={config.picServerHost + data.Nav_DisclosurePerson.FILE_PATH} />
|
|
||||||
:data.Nav_DisclosurePerson?.NAME
|
|
||||||
// data.Nav_DisclosurePerson && data.Nav_DisclosurePerson.map((item, i) => {
|
|
||||||
// if (item.FORM_STATUS >= 1) {
|
|
||||||
// if (item.Nav_User != null && item.Nav_User.FILE_PATH!= null)
|
|
||||||
// return <img width={'20%'} alt={item.Nav_User.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
|
||||||
// else
|
|
||||||
// return <img width={'20%'} title={item.Nav_User.NAME} />
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colSpan={2} rowSpan={1} className={styles.fontBold}>被交底人签字</td>
|
|
||||||
<td colSpan={8} rowSpan={1}>{
|
|
||||||
data.IS_OUTSOURCE == false && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
|
||||||
if (item.DEAL_STATUS == 1) {
|
|
||||||
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={item.Nav_User?.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
|
||||||
else
|
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} title={item.Nav_User?.NAME} />
|
|
||||||
}
|
}
|
||||||
})
|
</td>
|
||||||
}
|
</tr>
|
||||||
{
|
</tbody>
|
||||||
data.IS_OUTSOURCE == true && data.Nav_Person && data.Nav_Person.map((item, i) => {
|
</table> : null
|
||||||
if (item.DEAL_STATUS == 1) {
|
|
||||||
if (item.Nav_RelatedUser != null && item.Nav_RelatedUser.Nav_Signs[0] != null)
|
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={item.Nav_RelatedUser?.NAME} src={config.picServerHost + item.Nav_RelatedUser.Nav_Signs[0].Nav_ImgFile.FILE_PATH} />
|
|
||||||
else
|
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} title={item.Nav_RelatedUser?.NAME} />
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>:null
|
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
|
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule , setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../HI/StepForm.css';
|
import styles from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -60,6 +60,7 @@ class FO021ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
// extendInclude(json, 'Nav_JobName.Nav_MonitorUser');
|
// extendInclude(json, 'Nav_JobName.Nav_MonitorUser');
|
||||||
// extendInclude(json, 'Nav_JobNameOut.Nav_MonitorUser');
|
// extendInclude(json, 'Nav_JobNameOut.Nav_MonitorUser');
|
||||||
@ -355,13 +356,12 @@ class FO021ShowPrint extends React.Component {
|
|||||||
else
|
else
|
||||||
return <img style={{ margin: "0 0 0 8px", width: '150px' }} title={item.Nav_User.NAME} />
|
return <img style={{ margin: "0 0 0 8px", width: '150px' }} title={item.Nav_User.NAME} />
|
||||||
}
|
}
|
||||||
else if (item.DEAL_STATUS == 0)
|
else if (item.DEAL_STATUS == 0) {
|
||||||
{
|
|
||||||
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
||||||
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User.NAME}</label>
|
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User.NAME}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User.NAME
|
return item.Nav_User.NAME
|
||||||
}
|
}
|
||||||
})}</td>
|
})}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
|
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Modal } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule , setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../HI/StepForm.css';
|
import styles from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -76,6 +76,7 @@ class FO022ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
// extendInclude(json, 'Nav_JobName.Nav_MonitorUser');
|
// extendInclude(json, 'Nav_JobName.Nav_MonitorUser');
|
||||||
// extendInclude(json, 'Nav_JobNameOut.Nav_MonitorUser');
|
// extendInclude(json, 'Nav_JobNameOut.Nav_MonitorUser');
|
||||||
@ -127,7 +128,7 @@ class FO022ShowPrint extends React.Component {
|
|||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >验收</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >验收</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay,color:'orange' }} onClick={() => this.onTableBtnAgree()} icon="check" >驳回</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay, color: 'orange' }} onClick={() => this.onTableBtnAgree()} icon="check" >驳回</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,7 @@ class FO025ShowPrint extends React.Component {
|
|||||||
loadData = () => {
|
loadData = () => {
|
||||||
let that = this;
|
let that = this;
|
||||||
let json = initFilter(that.props.login.OrgId);
|
let json = initFilter(that.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, that.props.data.id);
|
extendRule(json, 'ID', 1, that.props.data.id);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
// extendInclude(json, 'Nav_CrucialLicensePerson');
|
// extendInclude(json, 'Nav_CrucialLicensePerson');
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button,Descriptions, Modal,Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
import { Button, Descriptions, Modal, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule, setDataFieldValue, guid, showFiles,GetFileModel,initQueryFilter,showUserSign } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, showFiles, GetFileModel, initQueryFilter, showUserSign } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import stylesStep from '../HI/StepForm.css';
|
import stylesStep from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -54,12 +54,13 @@ class FO035ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.data.onCancel != "undefined"&&typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -68,14 +69,13 @@ class FO035ShowPrint extends React.Component {
|
|||||||
url: 'FO/FOTechDisclosureFromTech/GetEdit',
|
url: 'FO/FOTechDisclosureFromTech/GetEdit',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if(this.props.data && this.props.data.loadDataDeal)
|
if (this.props.data && this.props.data.loadDataDeal) {
|
||||||
{
|
|
||||||
this.props.data.loadDataDeal(1);
|
this.props.data.loadDataDeal(1);
|
||||||
}
|
}
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (this.props.data.tableKey=="2" ||this.props.data.tableKey==undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
}else{
|
} else {
|
||||||
this.setState({ BtnAgreeDisplay: 'inline' })
|
this.setState({ BtnAgreeDisplay: 'inline' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -95,11 +95,11 @@ class FO035ShowPrint extends React.Component {
|
|||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<ReactToPrint
|
<ReactToPrint
|
||||||
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px',display: data && data.FORM_STATUS === 2?"inline":"none" }}>打印</Button>}
|
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }}>打印</Button>}
|
||||||
content={() => this.componentRef}
|
content={() => this.componentRef}
|
||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px',display: data && data.FORM_STATUS === 2?"inline":"none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -109,8 +109,8 @@ class FO035ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>技术交底表</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>技术交底表</h1>
|
||||||
{
|
{
|
||||||
data ?
|
data ?
|
||||||
<div>
|
<div>
|
||||||
<Descriptions size="middle" bordered className={stylesStep.description}>
|
<Descriptions size="middle" bordered className={stylesStep.description}>
|
||||||
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
|
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
|
||||||
{/* <Descriptions.Item label="交底事项">{data.NAME}</Descriptions.Item> */}
|
{/* <Descriptions.Item label="交底事项">{data.NAME}</Descriptions.Item> */}
|
||||||
@ -118,36 +118,36 @@ class FO035ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item label="交底地点">{data.JOB_LOCATION}</Descriptions.Item>
|
<Descriptions.Item label="交底地点">{data.JOB_LOCATION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底人">{data.Nav_User ? data.Nav_User.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="交底人">{data.Nav_User ? data.Nav_User.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="被交底人">{
|
<Descriptions.Item label="被交底人">{
|
||||||
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
if (i == (data.Nav_Person.length - 1)) {
|
if (i == (data.Nav_Person.length - 1)) {
|
||||||
if (item.DEAL_STATUS == 0)
|
if (item.DEAL_STATUS == 0)
|
||||||
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User?.NAME}</label>
|
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User?.NAME}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User?.NAME
|
return item.Nav_User?.NAME
|
||||||
} else {
|
} else {
|
||||||
if (item.DEAL_STATUS == 0)
|
if (item.DEAL_STATUS == 0)
|
||||||
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_User?.NAME + ' '}</label>
|
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_User?.NAME + ' '}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User?.NAME + ' '
|
return item.Nav_User?.NAME + ' '
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底内容">{data.DisclosureContent}</Descriptions.Item>
|
<Descriptions.Item label="交底内容">{data.DisclosureContent}</Descriptions.Item>
|
||||||
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底人签字">{
|
<Descriptions.Item label="交底人签字">{
|
||||||
(data.Nav_User && data.Nav_User.FILE_PATH)?
|
(data.Nav_User && data.Nav_User.FILE_PATH) ?
|
||||||
showUserSign(data.Nav_User, config.picServerHost):null
|
showUserSign(data.Nav_User, config.picServerHost) : null
|
||||||
// <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={data.Nav_User?.NAME} src={config.picServerHost + data.Nav_User.FILE_PATH} />
|
// <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={data.Nav_User?.NAME} src={config.picServerHost + data.Nav_User.FILE_PATH} />
|
||||||
// :data.Nav_User?.NAME
|
// :data.Nav_User?.NAME
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="被交底人签字">{
|
<Descriptions.Item label="被交底人签字">{
|
||||||
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
if (item.DEAL_STATUS == 1) {
|
if (item.DEAL_STATUS == 1) {
|
||||||
// showUserSign(item.Nav_User, config.picServerHost)
|
// showUserSign(item.Nav_User, config.picServerHost)
|
||||||
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={item.Nav_User?.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} alt={item.Nav_User?.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
||||||
else
|
else
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} title={item.Nav_User?.NAME} />
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} title={item.Nav_User?.NAME} />
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button,Descriptions,Modal, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
import { Button, Descriptions, Modal, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule, showFiles,GetFileModel,setDataFieldValue, guid, initQueryFilter,showUserSign } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, showFiles, GetFileModel, setDataFieldValue, guid, initQueryFilter, showUserSign } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import stylesStep from '../HI/StepForm.css';
|
import stylesStep from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -54,12 +54,13 @@ class FO037ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.data.onCancel != "undefined"&&typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -68,14 +69,13 @@ class FO037ShowPrint extends React.Component {
|
|||||||
url: 'FO/FOTechDisclosureFromSafe/GetEdit',
|
url: 'FO/FOTechDisclosureFromSafe/GetEdit',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if(this.props.data && this.props.data.loadDataDeal)
|
if (this.props.data && this.props.data.loadDataDeal) {
|
||||||
{
|
|
||||||
this.props.data.loadDataDeal(1);
|
this.props.data.loadDataDeal(1);
|
||||||
}
|
}
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (this.props.data.tableKey=="2" ||this.props.data.tableKey==undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
}else{
|
} else {
|
||||||
this.setState({ BtnAgreeDisplay: 'inline' })
|
this.setState({ BtnAgreeDisplay: 'inline' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,11 +96,11 @@ class FO037ShowPrint extends React.Component {
|
|||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<ReactToPrint
|
<ReactToPrint
|
||||||
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px',display: data && data.FORM_STATUS === 2?"inline":"none" }}>打印</Button>}
|
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }}>打印</Button>}
|
||||||
content={() => this.componentRef}
|
content={() => this.componentRef}
|
||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px',display: data && data.FORM_STATUS === 2?"inline":"none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.FORM_STATUS === 2 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -110,50 +110,50 @@ class FO037ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>安全交底表</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>安全交底表</h1>
|
||||||
{
|
{
|
||||||
data ?
|
data ?
|
||||||
<div>
|
<div>
|
||||||
<Descriptions size="middle" bordered className={stylesStep.description}>
|
<Descriptions size="middle" bordered className={stylesStep.description}>
|
||||||
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
|
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
|
||||||
{/* <Descriptions.Item label="交底事项">{data.NAME}</Descriptions.Item> */}
|
{/* <Descriptions.Item label="交底事项">{data.NAME}</Descriptions.Item> */}
|
||||||
<Descriptions.Item label="交底时间">{data.DISCLOSURE_DATE}</Descriptions.Item>
|
<Descriptions.Item label="交底时间">{data.DISCLOSURE_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底地点">{data.JOB_LOCATION}</Descriptions.Item>
|
<Descriptions.Item label="交底地点">{data.JOB_LOCATION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底人">{data.Nav_User ? data.Nav_User.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="交底人">{data.Nav_User ? data.Nav_User.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="被交底人">{
|
<Descriptions.Item label="被交底人">{
|
||||||
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
if (i == (data.Nav_Person.length - 1)) {
|
if (i == (data.Nav_Person.length - 1)) {
|
||||||
if (item.DEAL_STATUS == 0)
|
if (item.DEAL_STATUS == 0)
|
||||||
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User?.NAME}</label>
|
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User?.NAME}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User?.NAME
|
return item.Nav_User?.NAME
|
||||||
} else {
|
} else {
|
||||||
if (item.DEAL_STATUS == 0)
|
if (item.DEAL_STATUS == 0)
|
||||||
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_User?.NAME + ' '}</label>
|
return <label style={{ color: 'red' }} title='未签到'>{item.Nav_User?.NAME + ' '}</label>
|
||||||
else
|
else
|
||||||
return item.Nav_User?.NAME + ' '
|
return item.Nav_User?.NAME + ' '
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底内容">{data.DisclosureContent}</Descriptions.Item>
|
<Descriptions.Item label="交底内容">{data.DisclosureContent}</Descriptions.Item>
|
||||||
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
||||||
<Descriptions.Item label="交底人签字">{
|
<Descriptions.Item label="交底人签字">{
|
||||||
(data.Nav_User && data.Nav_User.FILE_PATH)?
|
(data.Nav_User && data.Nav_User.FILE_PATH) ?
|
||||||
showUserSign(data.Nav_User, config.picServerHost):null
|
showUserSign(data.Nav_User, config.picServerHost) : null
|
||||||
// <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={data.Nav_User?.NAME} src={config.picServerHost + data.Nav_User.FILE_PATH} />
|
// <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={data.Nav_User?.NAME} src={config.picServerHost + data.Nav_User.FILE_PATH} />
|
||||||
// :data.Nav_User?.NAME
|
// :data.Nav_User?.NAME
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="被交底人签字">{
|
<Descriptions.Item label="被交底人签字">{
|
||||||
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
data.Nav_Person && data.Nav_Person.map((item, i) => {
|
||||||
if (item.DEAL_STATUS == 1) {
|
if (item.DEAL_STATUS == 1) {
|
||||||
// showUserSign(item.Nav_User, config.picServerHost)
|
// showUserSign(item.Nav_User, config.picServerHost)
|
||||||
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} alt={item.Nav_User?.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} alt={item.Nav_User?.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
||||||
else
|
else
|
||||||
return <img style={{ margin: "0 0 0 15px",width:'150px' }} title={item.Nav_User?.NAME} />
|
return <img style={{ margin: "0 0 0 15px", width: '150px' }} title={item.Nav_User?.NAME} />
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
</div> : null
|
</div> : null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button,Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter,showFiles, GetFileModel,showUserSign } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel, showUserSign } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../HI/StepForm.css';
|
import styles from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -53,12 +53,13 @@ class FO041ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.data.onCancel != "undefined"&&typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -67,14 +68,13 @@ class FO041ShowPrint extends React.Component {
|
|||||||
url: 'FO/FOLeaderWellRecord/GetEdit',
|
url: 'FO/FOLeaderWellRecord/GetEdit',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if(this.props.data && this.props.data.loadDataDeal)
|
if (this.props.data && this.props.data.loadDataDeal) {
|
||||||
{
|
|
||||||
this.props.data.loadDataDeal(1);
|
this.props.data.loadDataDeal(1);
|
||||||
}
|
}
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (this.props.data.tableKey=="2" ||this.props.data.tableKey==undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
}else{
|
} else {
|
||||||
this.setState({ BtnAgreeDisplay: 'inline' })
|
this.setState({ BtnAgreeDisplay: 'inline' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -95,11 +95,11 @@ class FO041ShowPrint extends React.Component {
|
|||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<ReactToPrint
|
<ReactToPrint
|
||||||
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px',display: data && data.STATUS === 15?"inline":"none" }}>打印</Button>}
|
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px', display: data && data.STATUS === 15 ? "inline" : "none" }}>打印</Button>}
|
||||||
content={() => this.componentRef}
|
content={() => this.componentRef}
|
||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px',display: data && data.STATUS === 15?"inline":"none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 15 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -109,128 +109,128 @@ class FO041ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>领导带班下井记录</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>领导带班下井记录</h1>
|
||||||
{
|
{
|
||||||
data?
|
data ?
|
||||||
<div>
|
<div>
|
||||||
<Descriptions size="middle" bordered className={styles.description}>
|
<Descriptions size="middle" bordered className={styles.description}>
|
||||||
<Descriptions.Item label="公司">{data.Nav_Company?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="公司">{data.Nav_Company?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起时间">{data.CREATE_TIME}</Descriptions.Item>
|
<Descriptions.Item label="发起时间">{data.CREATE_TIME}</Descriptions.Item>
|
||||||
|
|
||||||
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起人">{data.Nav_ApplyUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="发起人">{data.Nav_ApplyUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="值班领导">{
|
<Descriptions.Item label="值班领导">{
|
||||||
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
||||||
return item.Nav_User?.NAME + ' '
|
return item.Nav_User?.NAME + ' '
|
||||||
})
|
|
||||||
}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="值班开始时间">{data.JOB_START_DATE}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="值班结束时间">{data.JOB_END_DATE}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="班次">{data.Nav_Class?.NAME}</Descriptions.Item>
|
|
||||||
|
|
||||||
</Descriptions>
|
|
||||||
|
|
||||||
<Descriptions size="middle" bordered className={styles.description}>
|
|
||||||
<Descriptions.Item label="交接班地点">{data.PLACE}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="交班人">{
|
|
||||||
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
|
||||||
return item.Nav_User?.NAME + ' '
|
|
||||||
})
|
|
||||||
}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="接班人">{
|
|
||||||
data.Nav_AfterUsers && data.Nav_AfterUsers.map((item, i) => {
|
|
||||||
return item.Nav_AfterUser?.NAME + ' '
|
|
||||||
})
|
|
||||||
|
|
||||||
}</Descriptions.Item>
|
|
||||||
</Descriptions>
|
|
||||||
|
|
||||||
<Descriptions size="middle" bordered className={styles.description}>
|
|
||||||
<Descriptions.Item label="交班人签字">{
|
|
||||||
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
|
||||||
if (item.DEAL_STATUS == 1) {
|
|
||||||
return <img width={'150px'} style={{ margin: "0 0 0 5px" }} src={config.picServerHost + item.Nav_User?.FILE_PATH} title={item.Nav_User?.NAME} alt={item.Nav_User?.NAME} />
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
}</Descriptions.Item>
|
|
||||||
|
|
||||||
<Descriptions.Item label="接班人签字">{
|
|
||||||
data.Nav_AfterUsers && data.Nav_AfterUsers.map((item, i) => {
|
|
||||||
if (item.AFTER_USER_DEAL_STATUS == 1) {
|
|
||||||
return <img width={'150px'} style={{ margin: "0 0 0 5px" }} src={config.picServerHost + item.Nav_AfterUser?.FILE_PATH} title={item.Nav_AfterUser?.NAME} alt={item.Nav_AfterUser?.NAME} />
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
|
||||||
</Descriptions>
|
|
||||||
{
|
|
||||||
data && data.Nav_Details?
|
|
||||||
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td width="100px" className={styles.fontBold}>序号</td>
|
|
||||||
<td className={styles.fontBold}>开始时间</td>
|
|
||||||
<td className={styles.fontBold}>结束时间</td>
|
|
||||||
<td className={styles.fontBold}>巡视区域</td>
|
|
||||||
<td className={styles.fontBold}>现场情况描述</td>
|
|
||||||
<td className={styles.fontBold}>发现问题</td>
|
|
||||||
<td className={styles.fontBold}>处置措施</td>
|
|
||||||
<td className={styles.fontBold}>附件</td>
|
|
||||||
<td className={styles.fontBold}>现场责任人</td>
|
|
||||||
<td className={styles.fontBold}>现场责任人签名</td>
|
|
||||||
<td className={styles.fontBold}>交接事项</td>
|
|
||||||
</tr>
|
|
||||||
{
|
|
||||||
data.Nav_Details && data.Nav_Details.map((item, i) => {
|
|
||||||
return <tr>
|
|
||||||
<td width="100px">
|
|
||||||
{i + 1}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.START_DATE}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.END_DATE}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{
|
|
||||||
item?.Nav_DetailAreas && item?.Nav_DetailAreas.map((item2, i) => {
|
|
||||||
return item2?.Nav_Area?.NAME +';'
|
|
||||||
})
|
})
|
||||||
}
|
}</Descriptions.Item>
|
||||||
</td>
|
<Descriptions.Item label="值班开始时间">{data.JOB_START_DATE}</Descriptions.Item>
|
||||||
<td>
|
<Descriptions.Item label="值班结束时间">{data.JOB_END_DATE}</Descriptions.Item>
|
||||||
{item.DESCRIPTION}
|
<Descriptions.Item label="班次">{data.Nav_Class?.NAME}</Descriptions.Item>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.QUESTION}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.MEASURE}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{showFiles(item.Nav_DetailFiles, config.picServerHost, this)}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.Nav_User?.NAME}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.USER_DEAL_STATUS == 1?showUserSign(item.Nav_User, config.picServerHost):null}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{item.ITEM}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</tbody>
|
|
||||||
</table> : null
|
|
||||||
}
|
|
||||||
|
|
||||||
</div>:null
|
</Descriptions>
|
||||||
}
|
|
||||||
</div>
|
<Descriptions size="middle" bordered className={styles.description}>
|
||||||
|
<Descriptions.Item label="交接班地点">{data.PLACE}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="交班人">{
|
||||||
|
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
||||||
|
return item.Nav_User?.NAME + ' '
|
||||||
|
})
|
||||||
|
}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="接班人">{
|
||||||
|
data.Nav_AfterUsers && data.Nav_AfterUsers.map((item, i) => {
|
||||||
|
return item.Nav_AfterUser?.NAME + ' '
|
||||||
|
})
|
||||||
|
|
||||||
|
}</Descriptions.Item>
|
||||||
|
</Descriptions>
|
||||||
|
|
||||||
|
<Descriptions size="middle" bordered className={styles.description}>
|
||||||
|
<Descriptions.Item label="交班人签字">{
|
||||||
|
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
||||||
|
if (item.DEAL_STATUS == 1) {
|
||||||
|
return <img width={'150px'} style={{ margin: "0 0 0 5px" }} src={config.picServerHost + item.Nav_User?.FILE_PATH} title={item.Nav_User?.NAME} alt={item.Nav_User?.NAME} />
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}</Descriptions.Item>
|
||||||
|
|
||||||
|
<Descriptions.Item label="接班人签字">{
|
||||||
|
data.Nav_AfterUsers && data.Nav_AfterUsers.map((item, i) => {
|
||||||
|
if (item.AFTER_USER_DEAL_STATUS == 1) {
|
||||||
|
return <img width={'150px'} style={{ margin: "0 0 0 5px" }} src={config.picServerHost + item.Nav_AfterUser?.FILE_PATH} title={item.Nav_AfterUser?.NAME} alt={item.Nav_AfterUser?.NAME} />
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
||||||
|
</Descriptions>
|
||||||
|
{
|
||||||
|
data && data.Nav_Details ?
|
||||||
|
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width="100px" className={styles.fontBold}>序号</td>
|
||||||
|
<td className={styles.fontBold}>开始时间</td>
|
||||||
|
<td className={styles.fontBold}>结束时间</td>
|
||||||
|
<td className={styles.fontBold}>巡视区域</td>
|
||||||
|
<td className={styles.fontBold}>现场情况描述</td>
|
||||||
|
<td className={styles.fontBold}>发现问题</td>
|
||||||
|
<td className={styles.fontBold}>处置措施</td>
|
||||||
|
<td className={styles.fontBold}>附件</td>
|
||||||
|
<td className={styles.fontBold}>现场责任人</td>
|
||||||
|
<td className={styles.fontBold}>现场责任人签名</td>
|
||||||
|
<td className={styles.fontBold}>交接事项</td>
|
||||||
|
</tr>
|
||||||
|
{
|
||||||
|
data.Nav_Details && data.Nav_Details.map((item, i) => {
|
||||||
|
return <tr>
|
||||||
|
<td width="100px">
|
||||||
|
{i + 1}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.START_DATE}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.END_DATE}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{
|
||||||
|
item?.Nav_DetailAreas && item?.Nav_DetailAreas.map((item2, i) => {
|
||||||
|
return item2?.Nav_Area?.NAME + ';'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.DESCRIPTION}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.QUESTION}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.MEASURE}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{showFiles(item.Nav_DetailFiles, config.picServerHost, this)}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.Nav_User?.NAME}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.USER_DEAL_STATUS == 1 ? showUserSign(item.Nav_User, config.picServerHost) : null}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{item.ITEM}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table> : null
|
||||||
|
}
|
||||||
|
|
||||||
|
</div> : null
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button,Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter,showFiles, GetFileModel,showUserSign } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel, showUserSign } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../HI/StepForm.css';
|
import styles from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -54,12 +54,13 @@ class FO043ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.data.onCancel != "undefined"&&typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -68,14 +69,13 @@ class FO043ShowPrint extends React.Component {
|
|||||||
url: 'FO/FOFireJob/GetEdit',
|
url: 'FO/FOFireJob/GetEdit',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if(this.props.data && this.props.data.loadDataDeal)
|
if (this.props.data && this.props.data.loadDataDeal) {
|
||||||
{
|
|
||||||
this.props.data.loadDataDeal(1);
|
this.props.data.loadDataDeal(1);
|
||||||
}
|
}
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (this.props.data.tableKey=="2" ||this.props.data.tableKey==undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
}else{
|
} else {
|
||||||
this.setState({ BtnAgreeDisplay: 'inline' })
|
this.setState({ BtnAgreeDisplay: 'inline' })
|
||||||
}
|
}
|
||||||
this.onClickApprove(false);
|
this.onClickApprove(false);
|
||||||
@ -105,13 +105,13 @@ class FO043ShowPrint extends React.Component {
|
|||||||
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
|
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
|
||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<Button onClick={() => this.onClickApprove(true)} style={{ marginRight: '8px' }} icon="export">审批详情</Button>
|
<Button onClick={() => this.onClickApprove(true)} style={{ marginRight: '8px' }} icon="export">审批详情</Button>
|
||||||
<ReactToPrint
|
<ReactToPrint
|
||||||
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px',display: data && data.STATUS === 30?"inline":"none" }}>打印</Button>}
|
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }}>打印</Button>}
|
||||||
content={() => this.componentRef}
|
content={() => this.componentRef}
|
||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px',display: data && data.STATUS === 30?"inline":"none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >审阅</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >审阅</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,174 +121,174 @@ class FO043ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>动火作业工作票</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>动火作业工作票</h1>
|
||||||
{
|
{
|
||||||
data ?
|
data ?
|
||||||
<div>
|
<div>
|
||||||
<Descriptions size="middle" bordered className={styles.description}>
|
<Descriptions size="middle" bordered className={styles.description}>
|
||||||
<Descriptions.Item label="公司">{data.Nav_Company?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="公司">{data.Nav_Company?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起时间">{data.CREATE_TIME}</Descriptions.Item>
|
<Descriptions.Item label="发起时间">{data.CREATE_TIME}</Descriptions.Item>
|
||||||
|
|
||||||
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起人">{data.Nav_ApplyUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="发起人">{data.Nav_ApplyUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="工作票编号">{data.CODE}</Descriptions.Item>
|
<Descriptions.Item label="工作票编号">{data.CODE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="作业名称">{data.Nav_OperationStep?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="作业名称">{data.Nav_OperationStep?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="审批层级">{enums.HMOperationTaskAuditEnum.enums[data.AUDIT_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="审批层级">{enums.HMOperationTaskAuditEnum.enums[data.AUDIT_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="作业风险等级">{enums.SKEvaluateLevelEnum.enums[data.EVALUATE_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="作业风险等级">{enums.SKEvaluateLevelEnum.enums[data.EVALUATE_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火部门">{data.Nav_FireDepartment?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="动火部门">{data.Nav_FireDepartment?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火部门负责人">{data.Nav_FireUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="动火部门负责人">{data.Nav_FireUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全生产管理人员">{data.Nav_SafeUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="安全生产管理人员">{data.Nav_SafeUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火区域">{data.Nav_Area?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="动火区域">{data.Nav_Area?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火地点">{data.JOB_CONTENT}</Descriptions.Item>
|
<Descriptions.Item label="动火地点">{data.JOB_CONTENT}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火方式">{data.Nav_Type?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="动火方式">{data.Nav_Type?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火具体事项">{data.JOB_CONTENT}</Descriptions.Item>
|
<Descriptions.Item label="动火具体事项">{data.JOB_CONTENT}</Descriptions.Item>
|
||||||
{/* <Descriptions.Item label="作业监护人">{data.Nav_MonitorUser?.NAME}</Descriptions.Item> */}
|
{/* <Descriptions.Item label="作业监护人">{data.Nav_MonitorUser?.NAME}</Descriptions.Item> */}
|
||||||
<Descriptions.Item label="动火计划开始时间">{data.JOB_DATE}</Descriptions.Item>
|
<Descriptions.Item label="动火计划开始时间">{data.JOB_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火计划结束时间">{data.JOB_END_DATE}</Descriptions.Item>
|
<Descriptions.Item label="动火计划结束时间">{data.JOB_END_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="存在的风险">{ data.Nav_Risks && data.Nav_Risks.map((item, i) => {
|
<Descriptions.Item label="存在的风险">{data.Nav_Risks && data.Nav_Risks.map((item, i) => {
|
||||||
return item.RISK_NAME + ' '
|
return item.RISK_NAME + ' '
|
||||||
})}</Descriptions.Item>
|
})}</Descriptions.Item>
|
||||||
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
data && data.Nav_Users?
|
data && data.Nav_Users ?
|
||||||
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td width="100px" className={styles.fontBold}>序号</td>
|
<td width="100px" className={styles.fontBold}>序号</td>
|
||||||
<td className={styles.fontBold}>作业人员类别</td>
|
<td className={styles.fontBold}>作业人员类别</td>
|
||||||
<td className={styles.fontBold}>姓名</td>
|
<td className={styles.fontBold}>姓名</td>
|
||||||
<td className={styles.fontBold}>证书编号</td>
|
<td className={styles.fontBold}>证书编号</td>
|
||||||
<td className={styles.fontBold}>附件</td>
|
<td className={styles.fontBold}>附件</td>
|
||||||
{/* <td className={styles.fontBold}>签名</td> */}
|
{/* <td className={styles.fontBold}>签名</td> */}
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
||||||
return <tr>
|
return <tr>
|
||||||
<td width="100px">
|
<td width="100px">
|
||||||
{i + 1}
|
{i + 1}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.Nav_UserType?.NAME}
|
{item.Nav_UserType?.NAME}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.Nav_User?.NAME}
|
{item.Nav_User?.NAME}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.CERTIFICATE_CODE}
|
{item.CERTIFICATE_CODE}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{showFiles(item.Nav_UserFiles, config.picServerHost, this)}
|
{showFiles(item.Nav_UserFiles, config.picServerHost, this)}
|
||||||
</td>
|
</td>
|
||||||
{/* <td>
|
{/* <td>
|
||||||
{ item.DEAL_STATUS == 1?
|
{ item.DEAL_STATUS == 1?
|
||||||
showUserSign(item.Nav_User, config.picServerHost):null
|
showUserSign(item.Nav_User, config.picServerHost):null
|
||||||
}
|
}
|
||||||
</td> */}
|
</td> */}
|
||||||
</tr>
|
</tr>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table> : null
|
</table> : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
data && data.Nav_Details?
|
data && data.Nav_Details ?
|
||||||
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td width="100px" className={styles.fontBold}>序号</td>
|
<td width="100px" className={styles.fontBold}>序号</td>
|
||||||
<td className={styles.fontBold}>作业阶段</td>
|
<td className={styles.fontBold}>作业阶段</td>
|
||||||
<td className={styles.fontBold}>作业流程及安全措施</td>
|
<td className={styles.fontBold}>作业流程及安全措施</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}className={styles.fontBold}>是否确认</td>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }} className={styles.fontBold}>是否确认</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}className={styles.fontBold}>附件</td>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }} className={styles.fontBold}>附件</td>
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
data.Nav_Details && data.Nav_Details.map((item, i) => {
|
data.Nav_Details && data.Nav_Details.map((item, i) => {
|
||||||
return <tr>
|
return <tr>
|
||||||
<td width="100px">
|
<td width="100px">
|
||||||
{i + 1}
|
{i + 1}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{enums.FOJobStepEnum.enums[item.JOB_STEP]}
|
{enums.FOJobStepEnum.enums[item.JOB_STEP]}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.CONTENT}
|
{item.CONTENT}
|
||||||
</td>
|
</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }}>
|
||||||
{item.IS_CONFIRM_NEW ? "是" : "否"}
|
{item.IS_CONFIRM_NEW ? "是" : "否"}
|
||||||
{/* {enums.FOYesOrNoEnum.enums[item.IS_CONFIRM]} */}
|
{/* {enums.FOYesOrNoEnum.enums[item.IS_CONFIRM]} */}
|
||||||
</td>
|
</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }}>
|
||||||
{showFiles(item.Nav_DetailFiles, config.picServerHost, this)}
|
{showFiles(item.Nav_DetailFiles, config.picServerHost, this)}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table> : null
|
</table> : null
|
||||||
}
|
}
|
||||||
<Descriptions size="middle" bordered className={styles.description} style={{display:data.STATUS == 30?'block':'none'}}>
|
<Descriptions size="middle" bordered className={styles.description} style={{ display: data.STATUS == 30 ? 'block' : 'none' }}>
|
||||||
<Descriptions.Item label="动火作业现场条件验收情况">{data.COMPLETED_CONDITION}</Descriptions.Item>
|
<Descriptions.Item label="动火作业现场条件验收情况">{data.COMPLETED_CONDITION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="是否可以动火">{enums.FOYesOrNoEnum.enums[data.IS_FIRE]}</Descriptions.Item>
|
<Descriptions.Item label="是否可以动火">{enums.FOYesOrNoEnum.enums[data.IS_FIRE]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火实际开始时间">{data.ACT_DATE}</Descriptions.Item>
|
<Descriptions.Item label="动火实际开始时间">{data.ACT_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="现场条件验收附件"> {showFiles(data.Nav_FireFiles, config.picServerHost, this)}</Descriptions.Item>
|
<Descriptions.Item label="现场条件验收附件"> {showFiles(data.Nav_FireFiles, config.picServerHost, this)}</Descriptions.Item>
|
||||||
<Descriptions.Item label="矿调度室人员">{data.Nav_DispatchUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="矿调度室人员">{data.Nav_DispatchUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火部门负责人签名">{
|
<Descriptions.Item label="动火部门负责人签名">{
|
||||||
|
|
||||||
data.USER_DEAL_STATUS == 1?
|
data.USER_DEAL_STATUS == 1 ?
|
||||||
showUserSign(data.Nav_FireUser, config.picServerHost)
|
showUserSign(data.Nav_FireUser, config.picServerHost)
|
||||||
:null
|
: null
|
||||||
|
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全管理人员签名">{
|
<Descriptions.Item label="安全管理人员签名">{
|
||||||
|
|
||||||
data.SAFE_DEAL_STATUS == 1?
|
data.SAFE_DEAL_STATUS == 1 ?
|
||||||
showUserSign(data.Nav_SafeUser, config.picServerHost)
|
showUserSign(data.Nav_SafeUser, config.picServerHost)
|
||||||
:null
|
: null
|
||||||
|
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="矿调度人员签名">{
|
<Descriptions.Item label="矿调度人员签名">{
|
||||||
|
|
||||||
data.DISPATCH_DEAL_STATUS == 1?
|
data.DISPATCH_DEAL_STATUS == 1 ?
|
||||||
showUserSign(data.Nav_DispatchUser, config.picServerHost)
|
showUserSign(data.Nav_DispatchUser, config.picServerHost)
|
||||||
:null
|
: null
|
||||||
|
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
<Descriptions size="middle" bordered className={styles.description} style={{display:data.FIRE_STATUS > 15?'block':'none'}}>
|
<Descriptions size="middle" bordered className={styles.description} style={{ display: data.FIRE_STATUS > 15 ? 'block' : 'none' }}>
|
||||||
<Descriptions.Item label="动火作业完工验收情况">{
|
<Descriptions.Item label="动火作业完工验收情况">{
|
||||||
data.COMPLETED_CONTENT
|
data.COMPLETED_CONTENT
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="是否可以撤离">{
|
<Descriptions.Item label="是否可以撤离">{
|
||||||
enums.FOYesOrNoEnum.enums[data.IS_LEAVE]
|
enums.FOYesOrNoEnum.enums[data.IS_LEAVE]
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火实际结束时间">{
|
<Descriptions.Item label="动火实际结束时间">{
|
||||||
data.ACT_END_DATE
|
data.ACT_END_DATE
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="离开现场时间">{
|
<Descriptions.Item label="离开现场时间">{
|
||||||
data.LEAVE_DATE
|
data.LEAVE_DATE
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="完工验收附件">{
|
<Descriptions.Item label="完工验收附件">{
|
||||||
showFiles(data.Nav_MonitorFiles, config.picServerHost, this)
|
showFiles(data.Nav_MonitorFiles, config.picServerHost, this)
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火部门负责人签字">{
|
<Descriptions.Item label="动火部门负责人签字">{
|
||||||
data.USER_DEAL_FINISH_STATUS == 1?
|
data.USER_DEAL_FINISH_STATUS == 1 ?
|
||||||
showUserSign(data.Nav_FireUser, config.picServerHost)
|
showUserSign(data.Nav_FireUser, config.picServerHost)
|
||||||
:null
|
: null
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全生产管理人员签字">{
|
<Descriptions.Item label="安全生产管理人员签字">{
|
||||||
data.SAFE_DEAL_FINISH_STATUS == 1?
|
data.SAFE_DEAL_FINISH_STATUS == 1 ?
|
||||||
showUserSign(data.Nav_SafeUser, config.picServerHost)
|
showUserSign(data.Nav_SafeUser, config.picServerHost)
|
||||||
:null
|
: null
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
|
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
<FormPage {...this.state.tmpData} />
|
<FormPage {...this.state.tmpData} />
|
||||||
</div> : null
|
</div> : null
|
||||||
|
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@ -296,4 +296,4 @@ class FO043ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
export default connect(({ login,app }) => ({ login,app }))(FO043ShowPrint)
|
export default connect(({ login, app }) => ({ login, app }))(FO043ShowPrint)
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button,Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
import { Button, Descriptions, Popconfirm, Row, Col, Form, Input, Select, Table } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude,extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter,showFiles, GetFileModel,showUserSign } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, extendIgnoreDataRule, setDataFieldValue, guid, initQueryFilter, showFiles, GetFileModel, showUserSign } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../HI/StepForm.css';
|
import styles from '../HI/StepForm.css';
|
||||||
import config from "../../../config";
|
import config from "../../../config";
|
||||||
@ -54,12 +54,13 @@ class FO045ShowPrint extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.data.onCancel != "undefined"&&typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -68,14 +69,13 @@ class FO045ShowPrint extends React.Component {
|
|||||||
url: 'FO/FOFireJobWb/GetEdit',
|
url: 'FO/FOFireJobWb/GetEdit',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if(this.props.data && this.props.data.loadDataDeal)
|
if (this.props.data && this.props.data.loadDataDeal) {
|
||||||
{
|
|
||||||
this.props.data.loadDataDeal(1);
|
this.props.data.loadDataDeal(1);
|
||||||
}
|
}
|
||||||
this.setState({ data: ret })
|
this.setState({ data: ret })
|
||||||
if (this.props.data.tableKey=="2" ||this.props.data.tableKey==undefined) {
|
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
}else{
|
} else {
|
||||||
this.setState({ BtnAgreeDisplay: 'inline' })
|
this.setState({ BtnAgreeDisplay: 'inline' })
|
||||||
}
|
}
|
||||||
this.onClickApprove(false);
|
this.onClickApprove(false);
|
||||||
@ -105,13 +105,13 @@ class FO045ShowPrint extends React.Component {
|
|||||||
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
|
const enums = this.props.data.enums ? this.props.data.enums : this.props.app.enums;
|
||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<Button onClick={() => this.onClickApprove(true)} style={{ marginRight: '8px' }} icon="export">审批详情</Button>
|
<Button onClick={() => this.onClickApprove(true)} style={{ marginRight: '8px' }} icon="export">审批详情</Button>
|
||||||
<ReactToPrint
|
<ReactToPrint
|
||||||
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px',display: data && data.STATUS === 30?"inline":"none" }}>打印</Button>}
|
trigger={() => <Button type={'default'} icon={'printer'} style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }}>打印</Button>}
|
||||||
content={() => this.componentRef}
|
content={() => this.componentRef}
|
||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px',display: data && data.STATUS === 30?"inline":"none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >审阅</Button>
|
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >审阅</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,178 +121,178 @@ class FO045ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>动火作业工作票(外包)</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>动火作业工作票(外包)</h1>
|
||||||
{
|
{
|
||||||
data ?
|
data ?
|
||||||
<div>
|
<div>
|
||||||
<Descriptions size="middle" bordered className={styles.description}>
|
<Descriptions size="middle" bordered className={styles.description}>
|
||||||
<Descriptions.Item label="公司">{data.Nav_Company?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="公司">{data.Nav_Company?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起时间">{data.CREATE_TIME}</Descriptions.Item>
|
<Descriptions.Item label="发起时间">{data.CREATE_TIME}</Descriptions.Item>
|
||||||
|
|
||||||
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起人">{data.Nav_ApplyUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="发起人">{data.Nav_ApplyUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="工作票编号">{data.CODE}</Descriptions.Item>
|
<Descriptions.Item label="工作票编号">{data.CODE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="作业名称">{data.Nav_OperationStep?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="作业名称">{data.Nav_OperationStep?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="审批层级">{enums.HMOperationTaskAuditEnum.enums[data.AUDIT_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="审批层级">{enums.HMOperationTaskAuditEnum.enums[data.AUDIT_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="作业风险等级">{enums.SKEvaluateLevelEnum.enums[data.EVALUATE_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="作业风险等级">{enums.SKEvaluateLevelEnum.enums[data.EVALUATE_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="施工单位">{data.Nav_Related?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="施工单位">{data.Nav_Related?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="施工单位负责人">{data.USER_NAME}</Descriptions.Item>
|
<Descriptions.Item label="施工单位负责人">{data.USER_NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="负责人电话">{data.USER_PHONE}</Descriptions.Item>
|
<Descriptions.Item label="负责人电话">{data.USER_PHONE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全生产管理人员">{data.SAFE_USER_NAME}</Descriptions.Item>
|
<Descriptions.Item label="安全生产管理人员">{data.SAFE_USER_NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全员电话">{data.SAFE_USER_PHONE}</Descriptions.Item>
|
<Descriptions.Item label="安全员电话">{data.SAFE_USER_PHONE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火区域">{data.Nav_Area?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="动火区域">{data.Nav_Area?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火地点">{data.JOB_CONTENT}</Descriptions.Item>
|
<Descriptions.Item label="动火地点">{data.JOB_CONTENT}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火方式">{data.Nav_Type?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="动火方式">{data.Nav_Type?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火具体事项">{data.JOB_CONTENT}</Descriptions.Item>
|
<Descriptions.Item label="动火具体事项">{data.JOB_CONTENT}</Descriptions.Item>
|
||||||
<Descriptions.Item label="作业监护人">{data.Nav_MonitorUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="作业监护人">{data.Nav_MonitorUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火计划开始时间">{data.JOB_DATE}</Descriptions.Item>
|
<Descriptions.Item label="动火计划开始时间">{data.JOB_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火计划结束时间">{data.JOB_END_DATE}</Descriptions.Item>
|
<Descriptions.Item label="动火计划结束时间">{data.JOB_END_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="存在的风险">{ data.Nav_Risks && data.Nav_Risks.map((item, i) => {
|
<Descriptions.Item label="存在的风险">{data.Nav_Risks && data.Nav_Risks.map((item, i) => {
|
||||||
return item.RISK_NAME + ' '
|
return item.RISK_NAME + ' '
|
||||||
})}</Descriptions.Item>
|
})}</Descriptions.Item>
|
||||||
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
<Descriptions.Item label="附件">{showFiles(data.Nav_Files, config.picServerHost, this)}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
data && data.Nav_Users?
|
data && data.Nav_Users ?
|
||||||
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td width="100px" className={styles.fontBold}>序号</td>
|
<td width="100px" className={styles.fontBold}>序号</td>
|
||||||
<td className={styles.fontBold}>作业人员类别</td>
|
<td className={styles.fontBold}>作业人员类别</td>
|
||||||
<td className={styles.fontBold}>姓名</td>
|
<td className={styles.fontBold}>姓名</td>
|
||||||
<td className={styles.fontBold}>证书编号</td>
|
<td className={styles.fontBold}>证书编号</td>
|
||||||
<td className={styles.fontBold}>附件</td>
|
<td className={styles.fontBold}>附件</td>
|
||||||
{/* <td className={styles.fontBold}>签名</td> */}
|
{/* <td className={styles.fontBold}>签名</td> */}
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
data.Nav_Users && data.Nav_Users.map((item, i) => {
|
||||||
return <tr>
|
return <tr>
|
||||||
<td width="100px">
|
<td width="100px">
|
||||||
{i + 1}
|
{i + 1}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.Nav_UserType?.NAME}
|
{item.Nav_UserType?.NAME}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.Nav_User?.NAME}
|
{item.Nav_User?.NAME}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.CERTIFICATE_CODE}
|
{item.CERTIFICATE_CODE}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{showFiles(item.Nav_UserFiles, config.picServerHost, this)}
|
{showFiles(item.Nav_UserFiles, config.picServerHost, this)}
|
||||||
</td>
|
</td>
|
||||||
{/* <td>
|
{/* <td>
|
||||||
{ item.DEAL_STATUS == 1?
|
{ item.DEAL_STATUS == 1?
|
||||||
showUserSign(item.Nav_User, config.picServerHost):null
|
showUserSign(item.Nav_User, config.picServerHost):null
|
||||||
}
|
}
|
||||||
</td> */}
|
</td> */}
|
||||||
</tr>
|
</tr>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table> : null
|
</table> : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
data && data.Nav_Details?
|
data && data.Nav_Details ?
|
||||||
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
<table style={{ width: '100%', textAlign: 'center', marginTop: '10px', borderTop: '1px solid #333', borderLeft: '1px solid #333' }} className={styles.PrintForm}>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td width="100px" className={styles.fontBold}>序号</td>
|
<td width="100px" className={styles.fontBold}>序号</td>
|
||||||
<td className={styles.fontBold}>作业阶段</td>
|
<td className={styles.fontBold}>作业阶段</td>
|
||||||
<td className={styles.fontBold}>作业流程及安全措施</td>
|
<td className={styles.fontBold}>作业流程及安全措施</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}className={styles.fontBold}>是否确认</td>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }} className={styles.fontBold}>是否确认</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}className={styles.fontBold}>附件</td>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }} className={styles.fontBold}>附件</td>
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
data.Nav_Details && data.Nav_Details.map((item, i) => {
|
data.Nav_Details && data.Nav_Details.map((item, i) => {
|
||||||
return <tr>
|
return <tr>
|
||||||
<td width="100px">
|
<td width="100px">
|
||||||
{i + 1}
|
{i + 1}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{enums.FOJobStepEnum.enums[item.JOB_STEP]}
|
{enums.FOJobStepEnum.enums[item.JOB_STEP]}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{item.CONTENT}
|
{item.CONTENT}
|
||||||
</td>
|
</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }}>
|
||||||
{item.IS_CONFIRM_NEW ? "是" : "否"}
|
{item.IS_CONFIRM_NEW ? "是" : "否"}
|
||||||
{/* {enums.FOYesOrNoEnum.enums[item.IS_CONFIRM]} */}
|
{/* {enums.FOYesOrNoEnum.enums[item.IS_CONFIRM]} */}
|
||||||
</td>
|
</td>
|
||||||
<td style={{display:data.STATUS == 30?'table-cell':'none'}}>
|
<td style={{ display: data.STATUS == 30 ? 'table-cell' : 'none' }}>
|
||||||
{showFiles(item.Nav_DetailFiles, config.picServerHost, this)}
|
{showFiles(item.Nav_DetailFiles, config.picServerHost, this)}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table> : null
|
</table> : null
|
||||||
}
|
}
|
||||||
<Descriptions size="middle" bordered className={styles.description}style={{display:data.STATUS == 30?'block':'none'}}>
|
<Descriptions size="middle" bordered className={styles.description} style={{ display: data.STATUS == 30 ? 'block' : 'none' }}>
|
||||||
<Descriptions.Item label="动火作业现场条件验收情况">{data.COMPLETED_CONDITION}</Descriptions.Item>
|
<Descriptions.Item label="动火作业现场条件验收情况">{data.COMPLETED_CONDITION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="是否可以动火">{enums.FOYesOrNoEnum.enums[data.IS_FIRE]}</Descriptions.Item>
|
<Descriptions.Item label="是否可以动火">{enums.FOYesOrNoEnum.enums[data.IS_FIRE]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火实际开始时间">{data.ACT_DATE}</Descriptions.Item>
|
<Descriptions.Item label="动火实际开始时间">{data.ACT_DATE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="现场条件验收附件"> {showFiles(data.Nav_FireFiles, config.picServerHost, this)}</Descriptions.Item>
|
<Descriptions.Item label="现场条件验收附件"> {showFiles(data.Nav_FireFiles, config.picServerHost, this)}</Descriptions.Item>
|
||||||
<Descriptions.Item label="矿调度室人员">{data.Nav_DispatchUser?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="矿调度室人员">{data.Nav_DispatchUser?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火部门负责人签名">{
|
<Descriptions.Item label="动火部门负责人签名">{
|
||||||
data.USER_DEAL_STATUS == 1 && data.Nav_FireUser[0] && data.Nav_FireUser[0].Nav_ImgFile?
|
data.USER_DEAL_STATUS == 1 && data.Nav_FireUser[0] && data.Nav_FireUser[0].Nav_ImgFile ?
|
||||||
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_FireUser[0].Nav_ImgFile.FILE_PATH} />
|
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_FireUser[0].Nav_ImgFile.FILE_PATH} />
|
||||||
:null
|
: null
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全管理人员签名">{
|
<Descriptions.Item label="安全管理人员签名">{
|
||||||
|
|
||||||
data.SAFE_DEAL_STATUS == 1 && data.Nav_SafeUser[0] && data.Nav_SafeUser[0].Nav_ImgFile?
|
data.SAFE_DEAL_STATUS == 1 && data.Nav_SafeUser[0] && data.Nav_SafeUser[0].Nav_ImgFile ?
|
||||||
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_SafeUser[0].Nav_ImgFile.FILE_PATH} />
|
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_SafeUser[0].Nav_ImgFile.FILE_PATH} />
|
||||||
:null
|
: null
|
||||||
|
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="矿调度人员签名">{
|
<Descriptions.Item label="矿调度人员签名">{
|
||||||
|
|
||||||
data.DISPATCH_DEAL_STATUS == 1?
|
data.DISPATCH_DEAL_STATUS == 1 ?
|
||||||
showUserSign(data.Nav_DispatchUser, config.picServerHost)
|
showUserSign(data.Nav_DispatchUser, config.picServerHost)
|
||||||
:null
|
: null
|
||||||
|
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
<Descriptions size="middle" bordered className={styles.description} style={{display:data.FIRE_STATUS >= 10?'block':'none'}}>
|
<Descriptions size="middle" bordered className={styles.description} style={{ display: data.FIRE_STATUS >= 10 ? 'block' : 'none' }}>
|
||||||
<Descriptions.Item label="动火作业完工验收情况">{
|
<Descriptions.Item label="动火作业完工验收情况">{
|
||||||
data.COMPLETED_CONTENT
|
data.COMPLETED_CONTENT
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="是否可以撤离">{
|
<Descriptions.Item label="是否可以撤离">{
|
||||||
enums.FOYesOrNoEnum.enums[data.IS_LEAVE]
|
enums.FOYesOrNoEnum.enums[data.IS_LEAVE]
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火实际结束时间">{
|
<Descriptions.Item label="动火实际结束时间">{
|
||||||
data.ACT_END_DATE
|
data.ACT_END_DATE
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="离开现场时间">{
|
<Descriptions.Item label="离开现场时间">{
|
||||||
data.LEAVE_DATE
|
data.LEAVE_DATE
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="完工验收附件">{
|
<Descriptions.Item label="完工验收附件">{
|
||||||
showFiles(data.Nav_MonitorFiles, config.picServerHost, this)
|
showFiles(data.Nav_MonitorFiles, config.picServerHost, this)
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="动火部门负责人签字">{
|
<Descriptions.Item label="动火部门负责人签字">{
|
||||||
data.USER_DEAL_FINISH_STATUS == 1 && data.Nav_FireUser[0] && data.Nav_FireUser[0].Nav_ImgFile?
|
data.USER_DEAL_FINISH_STATUS == 1 && data.Nav_FireUser[0] && data.Nav_FireUser[0].Nav_ImgFile ?
|
||||||
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_FireUser[0].Nav_ImgFile.FILE_PATH} />
|
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_FireUser[0].Nav_ImgFile.FILE_PATH} />
|
||||||
:null
|
: null
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="安全生产管理人员签字">{
|
<Descriptions.Item label="安全生产管理人员签字">{
|
||||||
data.SAFE_DEAL_FINISH_STATUS == 1 && data.Nav_SafeUser[0] && data.Nav_SafeUser[0].Nav_ImgFile?
|
data.SAFE_DEAL_FINISH_STATUS == 1 && data.Nav_SafeUser[0] && data.Nav_SafeUser[0].Nav_ImgFile ?
|
||||||
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_SafeUser[0].Nav_ImgFile.FILE_PATH} />
|
<img style={{ margin: "0 0 0 15px", width: '150px' }} src={config.picServerHost + data.Nav_SafeUser[0].Nav_ImgFile.FILE_PATH} />
|
||||||
:null
|
: null
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
|
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
<FormPage {...this.state.tmpData} />
|
<FormPage {...this.state.tmpData} />
|
||||||
</div> : null
|
</div> : null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
export default connect(({ login,app }) => ({ login,app }))(FO045ShowPrint)
|
export default connect(({ login, app }) => ({ login, app }))(FO045ShowPrint)
|
||||||
@ -63,6 +63,7 @@ class FOChangeShfitRecord extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendInclude(json, 'Nav_Class');
|
extendInclude(json, 'Nav_Class');
|
||||||
extendInclude(json, 'Nav_Team');
|
extendInclude(json, 'Nav_Team');
|
||||||
|
|||||||
@ -99,6 +99,7 @@ class FoTeamActivityShowPrint extends React.Component {
|
|||||||
var orgId = this.props.login ? this.props.login.OrgId : ''; //登录后有存储登录信息
|
var orgId = this.props.login ? this.props.login.OrgId : ''; //登录后有存储登录信息
|
||||||
|
|
||||||
let json = initFilter(orgId);
|
let json = initFilter(orgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, id); //ID=‘’,字段,等于,条件值, 1代表=,2代表不等于,3小于,4小于等于,5大于,6大于等于,7以开始的Like,8以结束的Like,9包含
|
extendRule(json, 'ID', 1, id); //ID=‘’,字段,等于,条件值, 1代表=,2代表不等于,3小于,4小于等于,5大于,6大于等于,7以开始的Like,8以结束的Like,9包含
|
||||||
extendInclude(json, 'Nav_Taem');
|
extendInclude(json, 'Nav_Taem');
|
||||||
extendInclude(json, 'Nav_User');
|
extendInclude(json, 'Nav_User');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user