From af8daf8590e7e7c41b2e36ad3c32ae1018554ad2 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Mon, 16 Mar 2026 16:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=95=E5=BE=8B=E6=B3=95=E8=A7=84=20?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E4=B8=80=E6=9D=A1=E7=8A=B6=E6=80=81=E6=98=AF?= =?UTF-8?q?=E3=80=90=E7=8E=B0=E8=A1=8C=E3=80=91=20=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=84=8F=E8=AF=86=E8=B0=83=E6=9F=A5=E3=80=81=E5=9F=B9=E8=AE=AD?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=B0=83=E6=9F=A5=20=E3=80=90=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=8C=85=E5=90=AB=E4=B8=8B=E7=BA=A7=E3=80=91=20?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/SE/SE007AllView.js | 4 +- .../CustomPages/SE/SE007ShowPrint.js | 60 +++++++++++-------- .../CustomPages/SE/SESafeSurveyTest.js | 2 +- src/files/edit/LR018.js | 13 +++- src/files/edit/SE006.js | 2 +- src/files/edit/SE008.js | 2 +- 6 files changed, 51 insertions(+), 32 deletions(-) diff --git a/src/components/CustomPages/SE/SE007AllView.js b/src/components/CustomPages/SE/SE007AllView.js index b8ad024..610bba4 100644 --- a/src/components/CustomPages/SE/SE007AllView.js +++ b/src/components/CustomPages/SE/SE007AllView.js @@ -115,7 +115,7 @@ class SE007AllView extends React.Component { let TableWrap = document.getElementById('tableId' + this.props.data.id); let Table = TableWrap.getElementsByTagName('table')[0]; const wb = XLSX.utils.table_to_book(Table); - let name = '公司培训需求调查统计表'; + let name = '培训需求调查统计表'; name += '.xlsx'; XLSX.writeFile(wb, name) } @@ -135,7 +135,7 @@ class SE007AllView extends React.Component {
(this.componentRef = el)} style={{ padding: '20px' }} id={'tableId' + this.props.data.id}> -

公司培训需求调查统计表

+

培训需求调查统计表

diff --git a/src/components/CustomPages/SE/SE007ShowPrint.js b/src/components/CustomPages/SE/SE007ShowPrint.js index d0d9652..507b8ba 100644 --- a/src/components/CustomPages/SE/SE007ShowPrint.js +++ b/src/components/CustomPages/SE/SE007ShowPrint.js @@ -1,7 +1,7 @@ import { message } from "antd/lib/index"; import { Button, Popconfirm, Row, Col, Checkbox, Radio, Form, Input, Select, Table, Upload, Icon, PageHeader, Modal } from 'antd'; import React from 'react'; -import { initFilter, extendRule, extendInclude, extendSelectField, setDataFieldValue, guid, initQueryFilter } from "../../../utils/common"; +import { initFilter, extendRule, extendInclude, extendSelectField, setDataFieldValue, guid, getArryPropShow } from "../../../utils/common"; import ReactToPrint from "react-to-print"; import styles from '../../CustomPages/HI/StepForm.css'; import SEstyles from './SE.css'; @@ -59,6 +59,7 @@ class SE007ShowPrint extends React.Component { extendSelectField(json, 'LAUNCH_TIME'); extendSelectField(json, 'END_TIME'); extendSelectField(json, 'STATUS'); + extendSelectField(json, 'Nav_JoinDepartment.Nav_Department'); extendSelectField(json, 'Nav_LaunchDepartment.NAME'); extendSelectField(json, 'Nav_LaunchUser.NAME'); extendSelectField(json, 'Nav_Points.Nav_Point.NAME'); @@ -155,7 +156,7 @@ class SE007ShowPrint extends React.Component { let TableWrap = document.getElementById('tableId' + this.props.data.id); let Table = TableWrap.getElementsByTagName('table')[0]; const wb = XLSX.utils.table_to_book(Table); - let name = '部门培训需求调查统计表'; + let name = '培训需求调查统计表'; name += '.xlsx'; XLSX.writeFile(wb, name) } @@ -183,25 +184,28 @@ class SE007ShowPrint extends React.Component { }
(this.componentRef = el)} style={{ padding: '20px' }} id={'tableId' + this.props.data.id}> -

部门培训需求调查统计表

+

培训需求调查统计表

+ {/* 3 2 6 */} - + - + - - - - - + - - + + + + + + + + {/* @@ -209,26 +213,30 @@ class SE007ShowPrint extends React.Component { */} - + {/* data?.Nav_Points && data?.Nav_Points.map((item, i) => { if (i == (data?.Nav_Points.length - 1)) { return item.Nav_Point?.NAME } else { return item.Nav_Point?.NAME + ' ' } - }) - } - - - - - - + }) */} + + + + + + + + + - + { @@ -236,7 +244,7 @@ class SE007ShowPrint extends React.Component { return - + }) @@ -245,7 +253,7 @@ class SE007ShowPrint extends React.Component { - + { @@ -253,7 +261,7 @@ class SE007ShowPrint extends React.Component { return - + }) diff --git a/src/components/CustomPages/SE/SESafeSurveyTest.js b/src/components/CustomPages/SE/SESafeSurveyTest.js index b47801d..504565a 100644 --- a/src/components/CustomPages/SE/SESafeSurveyTest.js +++ b/src/components/CustomPages/SE/SESafeSurveyTest.js @@ -367,7 +367,7 @@ class SESafeSurveyTest extends React.Component { - + diff --git a/src/files/edit/LR018.js b/src/files/edit/LR018.js index bed3220..f8b8cb8 100644 --- a/src/files/edit/LR018.js +++ b/src/files/edit/LR018.js @@ -1,8 +1,19 @@ +// import { forEach } from "core-js/core/array"; import config from "../../config.js"; import { downLoad } from "../../utils/common"; export default { downloadFile: (params) => { - downLoad(config.picServerHost, "法律法规\/"+params.record.NAME+".pdf") + downLoad(config.picServerHost, "法律法规\/" + params.record.NAME + ".pdf") }, + onSubChange: ({ record, stateData, colInfo }) => { + if (record.VERSION_STATUS == 1 && (colInfo.FIELD_NAME == "ENTER_TIME" || colInfo.FIELD_NAME == "UPDATE_TIME" || colInfo.FIELD_NAME == "EXECUTE_TIME")) { + // 废止 = 0, 现行 = 1, + stateData.Nav_LawVersion.forEach(item => { + if (item.VERSION_STATUS == 1 && item.ID != record.ID) { + item.VERSION_STATUS = 0 + } + }) + } + } } diff --git a/src/files/edit/SE006.js b/src/files/edit/SE006.js index c8ee5ab..b8161f2 100644 --- a/src/files/edit/SE006.js +++ b/src/files/edit/SE006.js @@ -11,7 +11,7 @@ export default { params.record.PUBLISH = params.customParams; }, onBeforeEdit({ stateData, setFieldVisible }) { - if (stateData.STATUS != "0") { + if (stateData.STATUS != undefined && stateData.STATUS != "0") { setFieldVisible("IS_DOWN", false) } }, diff --git a/src/files/edit/SE008.js b/src/files/edit/SE008.js index 1320210..6c4f9d9 100644 --- a/src/files/edit/SE008.js +++ b/src/files/edit/SE008.js @@ -11,7 +11,7 @@ export default { params.record.PUBLISH = params.customParams; }, onBeforeEdit({ stateData, setFieldVisible }) { - if (stateData.STATUS != "0") { + if (stateData.STATUS != undefined && stateData.STATUS != "0") { setFieldVisible("IS_DOWN", false) } },
调查名称{data && data.NAME ? data.NAME : ''}{data && data.NAME ? data.NAME : ''} 发起时间{data && data.LAUNCH_TIME ? data.LAUNCH_TIME : ''}{data && data.LAUNCH_TIME ? data.LAUNCH_TIME : ''} 截止时间{data && data.END_TIME ? data.END_TIME : ''}发起部门{data && data.Nav_LaunchDepartment ? data.Nav_LaunchDepartment.NAME : ''}发起人员{data && data.Nav_LaunchUser ? data.Nav_LaunchUser.NAME : ''}{data && data.END_TIME ? data.END_TIME : ''}
发起部门{data && data.Nav_LaunchDepartment ? data.Nav_LaunchDepartment.NAME : ''}发起人员{data && data.Nav_LaunchUser ? data.Nav_LaunchUser.NAME : ''}参与组织{getArryPropShow(data?.Nav_JoinDepartment, 'Nav_Department.NAME')}
调查时间调查部门 {data && data.Nav_LaunchDepartment ? data.Nav_LaunchDepartment.NAME : ''}调查目的{ - data?.Nav_Points && data?.Nav_Points.map((item, i) => { + { + getArryPropShow(data?.Nav_Points, 'Nav_Point.NAME') + }调查份数{total}反馈份数{reportCount}反馈比例{rate + '%'}
调查份数{total}反馈份数{reportCount}反馈比例{rate + '%'}
序号 培训需求需求部门需求部门 需求人数
{idx + 1} {r.NAME}{r.department.join('、')}{r.department.join('、')} {r.report}
序号 培训其他需求需求人员需求人员 需求人数
{idx + 1} {r.NAME}{r.department.join('、')}{r.department.join('、')} {r.report}
{safe ? safe.END_TIME : ''}
参与人员参与组织 {this.getJoinDepartment().join('、')}