|
@@ -4,7 +4,7 @@
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Date: 2022-12-16 09:42:52
|
|
* @Date: 2022-12-16 09:42:52
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
- * @LastEditTime: 2023-03-07 19:16:36
|
|
|
|
|
|
+ * @LastEditTime: 2023-03-08 11:11:39
|
|
* @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
|
|
* @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
*/
|
|
@@ -104,37 +104,37 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '职类',
|
|
title: '职类',
|
|
dataIndex: 'unitTypeName',
|
|
dataIndex: 'unitTypeName',
|
|
key: 'unitTypeName',
|
|
key: 'unitTypeName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '核算单元名称',
|
|
title: '核算单元名称',
|
|
dataIndex: 'unitName',
|
|
dataIndex: 'unitName',
|
|
key: 'unitName',
|
|
key: 'unitName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '科室',
|
|
title: '科室',
|
|
dataIndex: 'deptName',
|
|
dataIndex: 'deptName',
|
|
key: 'deptName',
|
|
key: 'deptName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '工号',
|
|
title: '工号',
|
|
dataIndex: 'empNo',
|
|
dataIndex: 'empNo',
|
|
key: 'empNo',
|
|
key: 'empNo',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '姓名',
|
|
title: '姓名',
|
|
dataIndex: 'empName',
|
|
dataIndex: 'empName',
|
|
key: 'empName',
|
|
key: 'empName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '工资类型',
|
|
title: '工资类型',
|
|
dataIndex: 'salaryType',
|
|
dataIndex: 'salaryType',
|
|
key: 'salaryType',
|
|
key: 'salaryType',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
]
|
|
]
|
|
@@ -144,31 +144,31 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '职类',
|
|
title: '职类',
|
|
dataIndex: 'unitTypeName',
|
|
dataIndex: 'unitTypeName',
|
|
key: 'unitTypeName',
|
|
key: 'unitTypeName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '核算单元名称',
|
|
title: '核算单元名称',
|
|
dataIndex: 'unitName',
|
|
dataIndex: 'unitName',
|
|
key: 'unitName',
|
|
key: 'unitName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '科室',
|
|
title: '科室',
|
|
dataIndex: 'deptName',
|
|
dataIndex: 'deptName',
|
|
key: 'deptName',
|
|
key: 'deptName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '项目名称',
|
|
title: '项目名称',
|
|
dataIndex: 'assessmentName',
|
|
dataIndex: 'assessmentName',
|
|
key: 'assessmentName',
|
|
key: 'assessmentName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '分配方式',
|
|
title: '分配方式',
|
|
dataIndex: 'distributionType',
|
|
dataIndex: 'distributionType',
|
|
key: 'distributionType',
|
|
key: 'distributionType',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
render: (record: any) => {
|
|
render: (record: any) => {
|
|
|
|
|
|
if (record == 1) return '占比'
|
|
if (record == 1) return '占比'
|
|
@@ -180,25 +180,25 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '数值',
|
|
title: '数值',
|
|
dataIndex: 'value',
|
|
dataIndex: 'value',
|
|
key: 'value',
|
|
key: 'value',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '工号',
|
|
title: '工号',
|
|
dataIndex: 'targetValue',
|
|
dataIndex: 'targetValue',
|
|
key: 'targetValue',
|
|
key: 'targetValue',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '姓名',
|
|
title: '姓名',
|
|
dataIndex: 'targetValueName',
|
|
dataIndex: 'targetValueName',
|
|
key: 'targetValueName',
|
|
key: 'targetValueName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '说明',
|
|
title: '说明',
|
|
dataIndex: 'description',
|
|
dataIndex: 'description',
|
|
key: 'description',
|
|
key: 'description',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
];
|
|
];
|
|
@@ -208,20 +208,20 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '项目名称',
|
|
title: '项目名称',
|
|
dataIndex: 'itemName',
|
|
dataIndex: 'itemName',
|
|
key: 'itemName',
|
|
key: 'itemName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '类型',
|
|
title: '类型',
|
|
dataIndex: 'itemTypeName',
|
|
dataIndex: 'itemTypeName',
|
|
key: 'itemTypeName',
|
|
key: 'itemTypeName',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '点值',
|
|
title: '点值',
|
|
dataIndex: 'orderPointValue',
|
|
dataIndex: 'orderPointValue',
|
|
key: 'orderPointValue',
|
|
key: 'orderPointValue',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
@@ -230,31 +230,31 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '年度',
|
|
title: '年度',
|
|
dataIndex: 'year',
|
|
dataIndex: 'year',
|
|
key: 'year',
|
|
key: 'year',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '月份',
|
|
title: '月份',
|
|
dataIndex: 'month',
|
|
dataIndex: 'month',
|
|
key: 'month',
|
|
key: 'month',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '项目名称',
|
|
title: '项目名称',
|
|
dataIndex: 'itemName',
|
|
dataIndex: 'itemName',
|
|
key: 'itemName',
|
|
key: 'itemName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '项目类型',
|
|
title: '项目类型',
|
|
dataIndex: 'itemTypeName',
|
|
dataIndex: 'itemTypeName',
|
|
key: 'itemTypeName',
|
|
key: 'itemTypeName',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '金额',
|
|
title: '金额',
|
|
dataIndex: 'cost',
|
|
dataIndex: 'cost',
|
|
key: 'cost',
|
|
key: 'cost',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
// title: '操作人',
|
|
// title: '操作人',
|
|
@@ -270,6 +270,8 @@ const MonthlyDataCheck: React.FC = () => {
|
|
// },
|
|
// },
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+ let inervalhander = undefined;
|
|
|
|
+
|
|
const getCurrentComputeDate = async () => {
|
|
const getCurrentComputeDate = async () => {
|
|
const resp = await getComputeDate();
|
|
const resp = await getComputeDate();
|
|
set_currentComputeDate(resp);
|
|
set_currentComputeDate(resp);
|
|
@@ -551,7 +553,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '核算单元',
|
|
title: '核算单元',
|
|
dataIndex: 'unitName',
|
|
dataIndex: 'unitName',
|
|
key: 'unitName',
|
|
key: 'unitName',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
width: 120,
|
|
width: 120,
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
}, ...columns,
|
|
}, ...columns,
|
|
@@ -559,7 +561,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '总得分',
|
|
title: '总得分',
|
|
dataIndex: 'totalScore',
|
|
dataIndex: 'totalScore',
|
|
key: 'totalScore',
|
|
key: 'totalScore',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
width: 100,
|
|
width: 100,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
},
|
|
},
|
|
@@ -818,7 +820,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
unitCode: formData.unitCode,
|
|
unitCode: formData.unitCode,
|
|
deptCode: formData.deptCode,
|
|
deptCode: formData.deptCode,
|
|
nonAssessmentCode: typeof formData.assessmentCode == 'number' ? formData.assessmentCode : formData.assessmentCode.value,
|
|
nonAssessmentCode: typeof formData.assessmentCode == 'number' ? formData.assessmentCode : formData.assessmentCode.value,
|
|
- targetValue: `${formData.userId}`,
|
|
|
|
|
|
+ targetValue: `${formData.userId?formData.userId:''}`,
|
|
value: `${formData.value}`,
|
|
value: `${formData.value}`,
|
|
description: formData.description
|
|
description: formData.description
|
|
}
|
|
}
|
|
@@ -838,7 +840,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
unitCode: formData.unitCode,
|
|
unitCode: formData.unitCode,
|
|
deptCode: formData.deptCode,
|
|
deptCode: formData.deptCode,
|
|
nonAssessmentCode: formData.assessmentCode.value,
|
|
nonAssessmentCode: formData.assessmentCode.value,
|
|
- targetValue: `${formData.userId}`,
|
|
|
|
|
|
+ targetValue: `${formData.userId?formData.userId:''}`,
|
|
value: `${formData.value}`,
|
|
value: `${formData.value}`,
|
|
description: formData.description
|
|
description: formData.description
|
|
|
|
|
|
@@ -1028,7 +1030,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
|
|
|
|
useEffect(()=>{
|
|
useEffect(()=>{
|
|
if(loading){
|
|
if(loading){
|
|
- setInterval(()=>{
|
|
|
|
|
|
+ inervalhander = setInterval(()=>{
|
|
getCalcStatus();
|
|
getCalcStatus();
|
|
},60000)
|
|
},60000)
|
|
}
|
|
}
|
|
@@ -1414,7 +1416,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '金额',
|
|
title: '金额',
|
|
dataIndex: 'salary',
|
|
dataIndex: 'salary',
|
|
key: 'salary',
|
|
key: 'salary',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
width: '10%',
|
|
width: '10%',
|
|
// shouldCellUpdate:(record:any, prevRecord:any) => true,
|
|
// shouldCellUpdate:(record:any, prevRecord:any) => true,
|
|
render: (text: any, record: any) => {
|
|
render: (text: any, record: any) => {
|
|
@@ -1474,7 +1476,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '操作',
|
|
title: '操作',
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
key: 'option',
|
|
key: 'option',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
width: 130,
|
|
width: 130,
|
|
valueType: 'option',
|
|
valueType: 'option',
|
|
render: (_: any, record: any) => [
|
|
render: (_: any, record: any) => [
|
|
@@ -1605,7 +1607,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '数值',
|
|
title: '数值',
|
|
dataIndex: 'value',
|
|
dataIndex: 'value',
|
|
key: 'value',
|
|
key: 'value',
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
render: (text: any, record: any) => {
|
|
render: (text: any, record: any) => {
|
|
|
|
|
|
return (
|
|
return (
|
|
@@ -1642,7 +1644,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
title: '数值',
|
|
title: '数值',
|
|
dataIndex: 'value',
|
|
dataIndex: 'value',
|
|
key: 'value',
|
|
key: 'value',
|
|
- align: 'center'
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
]} request={(params, sort, filter) => getTableData('3', params, sort, filter)} />}
|
|
]} request={(params, sort, filter) => getTableData('3', params, sort, filter)} />}
|
|
</div>
|
|
</div>
|
|
@@ -1697,7 +1699,7 @@ const MonthlyDataCheck: React.FC = () => {
|
|
key: 'option',
|
|
key: 'option',
|
|
valueType: 'option',
|
|
valueType: 'option',
|
|
width: 100,
|
|
width: 100,
|
|
- align: 'center',
|
|
|
|
|
|
+
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
render: (_: any, record: any) => [
|
|
render: (_: any, record: any) => [
|
|
<EditManaIndexTableRow record={record} key={'edit'} />
|
|
<EditManaIndexTableRow record={record} key={'edit'} />
|