报表优化
This commit is contained in:
parent
548e1959e8
commit
0d33bdd92b
@ -159,6 +159,13 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
title: "未完成",
|
||||
dataIndex: "UNFINISH_QTY",
|
||||
key: "UNFINISH_QTY",
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<a onClick={() => this.showUnfinishModal(record)}>
|
||||
{record.UNFINISH_QTY}
|
||||
</a>
|
||||
</span>
|
||||
),
|
||||
},
|
||||
{
|
||||
width: "100px",
|
||||
@ -258,7 +265,7 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
extendRule(json, "CREATE_DATE", 6, startTime);
|
||||
extendRule(json, "CREATE_DATE", 4, endTime);
|
||||
extendRule(json, "NOTICE_STATUS", 1, 0);
|
||||
extendRule(json, "SHOP_DEPARTMENT_ID", 1, record.DEPARTMENT_ID);
|
||||
extendRule(json, "CLASS_DEPARTMENT_ID", 1, record.DEPARTMENT_ID);
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
payload: json,
|
||||
@ -294,7 +301,7 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
{
|
||||
id: departmentId,
|
||||
name: departmentName,
|
||||
noticeTitle: departmentName + "安全生产标准化运行情况",
|
||||
noticeTitle: "安全生产标准化运行情况",
|
||||
tmpData: newtmpData,
|
||||
currActivatedMenu: "",
|
||||
},
|
||||
@ -441,33 +448,31 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
getDepartId = () => {};
|
||||
//加载数据赋值
|
||||
loadData = () => {
|
||||
// this.ksRun();
|
||||
// this.xkRun();
|
||||
var orgId = this.props.login ? this.props.login.OrgId : "";
|
||||
const jsonTemp = initFilter(orgId);
|
||||
extendRule(
|
||||
jsonTemp,
|
||||
"NAME",
|
||||
1,
|
||||
this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS
|
||||
);
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
payload: jsonTemp,
|
||||
url: "FM/Department/OrderEntities",
|
||||
onComplete: (retDepart) => {
|
||||
if (retDepart) {
|
||||
// this.getClassDepartment(retDepart[0].ID);
|
||||
this.getShopDepartment(retDepart[0].ID);
|
||||
} else {
|
||||
message.error(
|
||||
"未找到部门" +
|
||||
this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS +
|
||||
",请先维护"
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
this.getShopDepartment();
|
||||
// var orgId = this.props.login ? this.props.login.OrgId : "";
|
||||
// const jsonTemp = initFilter(orgId);
|
||||
// extendRule(
|
||||
// jsonTemp,
|
||||
// "NAME",
|
||||
// 1,
|
||||
// this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS
|
||||
// );
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// payload: jsonTemp,
|
||||
// url: "FM/Department/OrderEntities",
|
||||
// onComplete: (retDepart) => {
|
||||
// if (retDepart) {
|
||||
// this.getShopDepartment(retDepart[0].ID);
|
||||
// } else {
|
||||
// message.error(
|
||||
// "未找到部门" +
|
||||
// this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS +
|
||||
// ",请先维护"
|
||||
// );
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
};
|
||||
//
|
||||
workTicket = () => {
|
||||
@ -863,13 +868,14 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
var orgId = this.props.login ? this.props.login.OrgId : "";
|
||||
const jsonTemp = initFilter(orgId);
|
||||
extendRule(jsonTemp, "DEPARTMENT_TYPE", 1, 2);
|
||||
extendRule(jsonTemp, "ENABLE_STATUS", 1, 0);
|
||||
// extendRule(jsonTemp, 'Nav_Parent.PARENT_ID', 1, this.props.data.id);
|
||||
extendRule(
|
||||
jsonTemp,
|
||||
"Nav_Parent.Nav_Parent.NAME",
|
||||
1,
|
||||
this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS
|
||||
);
|
||||
// extendRule(
|
||||
// jsonTemp,
|
||||
// "Nav_Parent.Nav_Parent.NAME",
|
||||
// 1,
|
||||
// this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS
|
||||
// );
|
||||
extendOrder(jsonTemp, "PARENT_ID", 0);
|
||||
extendOrder(jsonTemp, "NAME", 0);
|
||||
this.props.dispatch({
|
||||
@ -942,17 +948,18 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
});
|
||||
};
|
||||
|
||||
getShopDepartment = (departId) => {
|
||||
getShopDepartment = () => {
|
||||
var orgId = this.props.login ? this.props.login.OrgId : "";
|
||||
const jsonTemp = initFilter(orgId);
|
||||
extendRule(jsonTemp, "DEPARTMENT_TYPE", 1, 1);
|
||||
extendRule(jsonTemp, "ENABLE_STATUS", 1, 0);
|
||||
// extendRule(jsonTemp, 'PARENT_ID', 1, this.props.data.id);
|
||||
extendRule(
|
||||
jsonTemp,
|
||||
"Nav_Parent.NAME",
|
||||
1,
|
||||
this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS
|
||||
);
|
||||
// extendRule(
|
||||
// jsonTemp,
|
||||
// "Nav_Parent.NAME",
|
||||
// 1,
|
||||
// this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS
|
||||
// );
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
payload: jsonTemp,
|
||||
@ -977,7 +984,7 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
"YYYY-MM-DD 00:00:00"
|
||||
);
|
||||
let endTime = this.state.selectEndTime.format("YYYY-MM-DD 23:59:59");
|
||||
let json = initFilter(orgId, departId, "", 1, "", startTime, endTime);
|
||||
let json = initFilter(orgId, null, "", 1, "", startTime, endTime);
|
||||
// extendRule(json, 'TYPE', 1, this.state.timeType);
|
||||
// extendRule(json, 'DEPARTMENT_TYPE', 1, 1);
|
||||
// extendRule(json, 'PARENT_DEPARTMENT_ID', 1, this.props.data.id);
|
||||
@ -1160,7 +1167,6 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
>
|
||||
{this.props?.login?.currActivatedMenu?.MENU_FORM_PARAMS}{" "}
|
||||
安全生产标准化运行情况
|
||||
</h1>
|
||||
<Row style={{ textAlign: "center", fontSize: "15px" }}>
|
||||
@ -1330,7 +1336,7 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
</Col>
|
||||
</div>
|
||||
</Row>
|
||||
<Row
|
||||
{/* <Row
|
||||
style={{
|
||||
marginTop: "20px",
|
||||
display: "flex",
|
||||
@ -1368,11 +1374,6 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
/>
|
||||
</Col>
|
||||
</div>
|
||||
|
||||
{/* <Col span={7}>
|
||||
<h3 style={{textAlign:'center',fontWeight:'bold'}}>{this.props.data.name}安全任务完成情况</h3>
|
||||
<div id="workTicket" style={{ height: '350px',marginLeft:"40px" ,marginRight:"10px" ,backgroundColor:"white",borderStyle:'solid',borderColor:'#ccc',borderWidth:'1px'}}></div>
|
||||
</Col> */}
|
||||
</Row>
|
||||
<hr
|
||||
style={{
|
||||
@ -1380,7 +1381,7 @@ class BI007FormRunAnalysisNew extends React.Component {
|
||||
marginBottom: "20px",
|
||||
marginTop: "20px",
|
||||
}}
|
||||
></hr>
|
||||
></hr> */}
|
||||
<Row
|
||||
style={{
|
||||
marginTop: "20px",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user