Commit 31e67ef1 authored by TZW's avatar TZW

ccc

parent 684f9202
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2023-01-16 15:35:00 * @Date: 2023-01-16 15:35:00
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-01 11:00:50 * @Last Modified time: 2023-02-02 17:04:15
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -332,6 +332,11 @@ function Plan(props) { ...@@ -332,6 +332,11 @@ function Plan(props) {
dataIndex: 'maintainTypeName', dataIndex: 'maintainTypeName',
key: 'maintainTypeName', key: 'maintainTypeName',
}, },
{
title: '保养频次',
dataIndex: 'maintainFrequencyName',
key: 'maintainFrequencyName',
},
{ {
title: '计划类型', title: '计划类型',
dataIndex: 'isCycle', dataIndex: 'isCycle',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2023-01-19 09:53:59 * @Date: 2023-01-19 09:53:59
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-02 11:00:36 * @Last Modified time: 2023-02-02 18:23:31
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -372,7 +372,7 @@ function WorkOrder(props) { ...@@ -372,7 +372,7 @@ function WorkOrder(props) {
const close = (text, row, _, action) => { const close = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
access="umMaintainTask:customsDeclaration" access="umMaintainTask_customsDeclaration"
pop={{ pop={{
title: '是否关单?', title: '是否关单?',
okText: '确认', okText: '确认',
...@@ -396,7 +396,7 @@ function WorkOrder(props) { ...@@ -396,7 +396,7 @@ function WorkOrder(props) {
const finish = (text, row, _, action) => { const finish = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
access="umMaintainTask:finishMaintainTask" access="umMaintainTask_finishMaintainTask"
btn={{ btn={{
size: 'small', size: 'small',
onClick: () => { onClick: () => {
...@@ -429,7 +429,7 @@ function WorkOrder(props) { ...@@ -429,7 +429,7 @@ function WorkOrder(props) {
const remove = (text, row, _, action) => { const remove = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
access="umMaintainTask:deleteById" access="umMaintainTask_deleteById"
pop={{ pop={{
title: '是否删除?', title: '是否删除?',
okText: '确认', okText: '确认',
...@@ -451,7 +451,7 @@ function WorkOrder(props) { ...@@ -451,7 +451,7 @@ function WorkOrder(props) {
const verify = (text, row, _, action) => { const verify = (text, row, _, action) => {
return ( return (
<PremButton <PremButton
access="umMaintainTask:verification" access="umMaintainTask_verification"
btn={{ btn={{
size: 'small', size: 'small',
onClick: () => { onClick: () => {
...@@ -489,12 +489,17 @@ function WorkOrder(props) { ...@@ -489,12 +489,17 @@ function WorkOrder(props) {
title: '操作', title: '操作',
valueType: 'option', valueType: 'option',
width: 150, width: 150,
render: (text, row, _, action) => [ render: (text, row, _, action) => {
order(text, row, _, action), if (row?.taskStatus == 1) {
close(text, row, _, action), return [order(text, row, _, action), close(text, row, _, action)];
finish(text, row, _, action), } else if (row?.taskStatus == 2) {
verify(text, row, _, action), return [finish(text, row, _, action)];
], } else if (row?.taskStatus == 5) {
return [verify(text, row, _, action)];
} else {
return '无操作';
}
},
}) })
: defcolumn; : defcolumn;
}, [activeTabKey]); }, [activeTabKey]);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-02 16:46:59 * @Last Modified time: 2023-02-02 17:04:01
*/ */
import * as React from 'react'; import * as React from 'react';
......
...@@ -37,6 +37,7 @@ function procolumns(id) { ...@@ -37,6 +37,7 @@ function procolumns(id) {
title: '选择对象', title: '选择对象',
colProps: { span: 6 }, colProps: { span: 6 },
dataIndex: 'targetNames', dataIndex: 'targetNames',
hideInTable: true,
hideInSearch: true, hideInSearch: true,
key: 'targetIdList', key: 'targetIdList',
valueType: 'select', valueType: 'select',
...@@ -57,6 +58,7 @@ function procolumns(id) { ...@@ -57,6 +58,7 @@ function procolumns(id) {
colProps: { span: 6 }, colProps: { span: 6 },
dataIndex: 'targetNames', dataIndex: 'targetNames',
hideInSearch: true, hideInSearch: true,
hideInTable: true,
valueType: 'select', valueType: 'select',
options: { options: {
path: '/auth/sysUser/selection', path: '/auth/sysUser/selection',
...@@ -71,6 +73,12 @@ function procolumns(id) { ...@@ -71,6 +73,12 @@ function procolumns(id) {
}, },
}, },
}, },
{
title: '选择对象',
dataIndex: 'targetNames',
hideInSearch: true,
hideInForm: true,
},
{ {
colProps: { span: 6 }, colProps: { span: 6 },
title: '触发次数', title: '触发次数',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment