Commit 52589d29 authored by TZW's avatar TZW

0000

parent 5906f020
This diff is collapsed.
This diff is collapsed.
......@@ -418,7 +418,18 @@ ol {
flex-direction: row;
border-left: 2px dashed #ccc;
padding: 16px;
}
// background-color: #ff4800;
.fault-index {
display: block;
width: 30px;
height: 30px;
font-weight: 500;
text-align: center;
padding: 2px;
border: 2px solid #1890FF;
border-radius: 50%;
background-color: white;
margin-right: 16px;
flex-shrink: 0;
}
\ No newline at end of file
......@@ -8,6 +8,25 @@ function getcolumns(setdrawer) {
title: '追踪单号',
dataIndex: 'taskOrderNo',
key: 'taskOrderNo',
render: (text, row, _, action) => {
return (
<a
onClick={() => {
setdrawer((s) => ({
...s,
open: true,
title: '详情',
val: 'only',
type: 'detail',
title: '详细信息',
item: row,
}));
}}
>
{row?.taskOrderNo}
</a>
);
},
},
{
title: '设备编号',
......@@ -89,6 +108,25 @@ function getcolumns(setdrawer) {
title: '追踪单号',
dataIndex: 'taskOrderNo',
key: 'taskOrderNo',
render: (text, row, _, action) => {
return (
<a
onClick={() => {
setdrawer((s) => ({
...s,
open: true,
title: '详情',
val: 'only',
type: 'detail',
title: '详细信息',
item: row,
}));
}}
>
{row?.taskOrderNo}
</a>
);
},
},
{
title: '设备编号',
......@@ -164,6 +202,25 @@ function getcolumns(setdrawer) {
title: '追踪单号',
dataIndex: 'taskOrderNo',
key: 'taskOrderNo',
render: (text, row, _, action) => {
return (
<a
onClick={() => {
setdrawer((s) => ({
...s,
open: true,
title: '详情',
val: 'only',
type: 'detail',
title: '详细信息',
item: row,
}));
}}
>
{row?.taskOrderNo}
</a>
);
},
},
{
title: '设备编号',
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-08 14:03:22
* @Last Modified time: 2022-12-13 11:37:55
*/
import * as React from 'react';
......@@ -16,7 +16,7 @@ import { doFetch } from '@/utils/doFetch';
import Addform from '@/components/Addform';
import { Menu, Dropdown, Button, message } from 'antd';
import InitForm from '@/components/InitForm';
import Detail from '@/components/RepaireDetail/Detail';
function Failure(props) {
const actionRef = useRef(),
containderef = useRef(),
......@@ -39,29 +39,6 @@ function Failure(props) {
},
});
const detail = (text, row, _, action) => {
return (
<PremButton
btn={{
size: 'small',
type: 'link',
onClick: () => {
setdrawer((s) => ({
...s,
open: true,
item: row,
title: '详情',
val: 'detail',
title: '详细信息',
}));
},
}}
>
详情
</PremButton>
);
};
// 重新指派
const Reassig = () => {
return (
......@@ -528,6 +505,91 @@ function Failure(props) {
return defpath;
}, [activeTabKey]);
const basecolumns = useMemo(() => {
if (activeTabKey == 3) {
return [
{
title: '创建人',
dataIndex: 'createUserName',
key: 'createUserName',
},
{
title: '创建时间',
dataIndex: 'createTime',
key: 'createTime',
},
{
title: '工单状态',
dataIndex: 'statusName',
key: 'statusName',
},
{
title: '来源工单',
dataIndex: 'dataSourcesNo',
key: 'dataSourcesNo',
},
{
title: '来源类型',
dataIndex: 'dataSourcesName',
key: 'dataSourcesName',
},
{
title: '最新追踪人员',
dataIndex: 'newRepairUserName',
key: 'newRepairUserName',
},
{
title: '下次追踪日期',
dataIndex: 'nextTrackDate',
key: 'nextTrackDate',
},
{
title: '关单时间',
dataIndex: 'repairCloseTime',
key: 'repairCloseTime',
},
];
} else {
return [
{
title: '创建人',
dataIndex: 'createUserName',
key: 'createUserName',
},
{
title: '创建时间',
dataIndex: 'createTime',
key: 'createTime',
},
{
title: '工单状态',
dataIndex: 'statusName',
key: 'statusName',
},
{
title: '来源工单',
dataIndex: 'dataSourcesNo',
key: 'dataSourcesNo',
},
{
title: '来源类型',
dataIndex: 'dataSourcesName',
key: 'dataSourcesName',
},
{
title: '最新追踪人员',
dataIndex: 'newRepairUserName',
key: 'newRepairUserName',
},
{
title: '下次追踪日期',
dataIndex: 'nextTrackDate',
key: 'nextTrackDate',
},
];
}
}, [activeTabKey]);
const selectType = (type) => {
switch (type) {
case 'add':
......@@ -540,6 +602,18 @@ function Failure(props) {
return <CheckForm />;
case 'Reassig':
return <Reassig />;
case 'detail':
return (
<Detail
title="追踪单号"
titleno={drawer?.item?.taskOrderNo}
detailpath="/repair/umTrackOperation/queryOperationList"
params={{ trackOrderId: drawer?.item?.id }}
baseRow={drawer?.item}
basecolumns={basecolumns}
type="zzgd"
/>
);
default:
break;
}
......
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