Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
52589d29
Commit
52589d29
authored
Dec 13, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0000
parent
5906f020
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
946 additions
and
83 deletions
+946
-83
DesItem.jsx
src/components/RepaireDetail/DesItem.jsx
+170
-51
Detail.jsx
src/components/RepaireDetail/Detail.jsx
+607
-5
global.less
src/global.less
+13
-2
columns.js
src/pages/repair/track/columns.js
+57
-0
index.jsx
src/pages/repair/track/index.jsx
+99
-25
No files found.
src/components/RepaireDetail/DesItem.jsx
View file @
52589d29
This diff is collapsed.
Click to expand it.
src/components/RepaireDetail/Detail.jsx
View file @
52589d29
This diff is collapsed.
Click to expand it.
src/global.less
View file @
52589d29
...
@@ -418,7 +418,18 @@ ol {
...
@@ -418,7 +418,18 @@ ol {
flex-direction: row;
flex-direction: row;
border-left: 2px dashed #ccc;
border-left: 2px dashed #ccc;
padding: 16px;
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
src/pages/repair/track/columns.js
View file @
52589d29
...
@@ -8,6 +8,25 @@ function getcolumns(setdrawer) {
...
@@ -8,6 +8,25 @@ function getcolumns(setdrawer) {
title
:
'追踪单号'
,
title
:
'追踪单号'
,
dataIndex
:
'taskOrderNo'
,
dataIndex
:
'taskOrderNo'
,
key
:
'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
:
'设备编号'
,
title
:
'设备编号'
,
...
@@ -89,6 +108,25 @@ function getcolumns(setdrawer) {
...
@@ -89,6 +108,25 @@ function getcolumns(setdrawer) {
title
:
'追踪单号'
,
title
:
'追踪单号'
,
dataIndex
:
'taskOrderNo'
,
dataIndex
:
'taskOrderNo'
,
key
:
'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
:
'设备编号'
,
title
:
'设备编号'
,
...
@@ -164,6 +202,25 @@ function getcolumns(setdrawer) {
...
@@ -164,6 +202,25 @@ function getcolumns(setdrawer) {
title
:
'追踪单号'
,
title
:
'追踪单号'
,
dataIndex
:
'taskOrderNo'
,
dataIndex
:
'taskOrderNo'
,
key
:
'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
:
'设备编号'
,
title
:
'设备编号'
,
...
...
src/pages/repair/track/index.jsx
View file @
52589d29
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,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: 2022-12-
08 14:03:22
* @Last Modified time: 2022-12-
13 11:37:55
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -16,7 +16,7 @@ import { doFetch } from '@/utils/doFetch';
...
@@ -16,7 +16,7 @@ import { doFetch } from '@/utils/doFetch';
import
Addform
from
'@/components/Addform'
;
import
Addform
from
'@/components/Addform'
;
import
{
Menu
,
Dropdown
,
Button
,
message
}
from
'antd'
;
import
{
Menu
,
Dropdown
,
Button
,
message
}
from
'antd'
;
import
InitForm
from
'@/components/InitForm'
;
import
InitForm
from
'@/components/InitForm'
;
import
Detail
from
'@/components/RepaireDetail/Detail'
;
function
Failure
(
props
)
{
function
Failure
(
props
)
{
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
containderef
=
useRef
(),
containderef
=
useRef
(),
...
@@ -39,29 +39,6 @@ function Failure(props) {
...
@@ -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
=
()
=>
{
const
Reassig
=
()
=>
{
return
(
return
(
...
@@ -528,6 +505,91 @@ function Failure(props) {
...
@@ -528,6 +505,91 @@ function Failure(props) {
return
defpath
;
return
defpath
;
},
[
activeTabKey
]);
},
[
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
)
=>
{
const
selectType
=
(
type
)
=>
{
switch
(
type
)
{
switch
(
type
)
{
case
'add'
:
case
'add'
:
...
@@ -540,6 +602,18 @@ function Failure(props) {
...
@@ -540,6 +602,18 @@ function Failure(props) {
return
<
CheckForm
/>;
return
<
CheckForm
/>;
case
'Reassig'
:
case
'Reassig'
:
return
<
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
:
default
:
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment