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
97b50a3a
Commit
97b50a3a
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12121648
parent
53be0daa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
199 additions
and
118 deletions
+199
-118
mtable.jsx
src/components/AutoTable/mtable.jsx
+2
-0
DesItem.jsx
src/components/RepaireDetail/DesItem.jsx
+139
-104
Detail.jsx
src/components/RepaireDetail/Detail.jsx
+40
-2
columns.js
src/pages/device/supplier/columns.js
+3
-1
index.jsx
src/pages/repair/order/index.jsx
+15
-11
No files found.
src/components/AutoTable/mtable.jsx
View file @
97b50a3a
...
...
@@ -209,6 +209,8 @@ const Mtable = (props) => {
return
{
...
it
,
...
options
,
key
:
it
.
searchKey
??
it
?.
key
,
valueType
:
it
.
searchValueType
??
it
?.
valueType
,
};
});
},
[
columns
,
newparames
]);
...
...
This diff is collapsed.
Click to expand it.
src/components/RepaireDetail/DesItem.jsx
View file @
97b50a3a
...
...
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import
{
ProDescriptions
}
from
'@ant-design/pro-components'
;
import
{
Divider
,
Image
}
from
'antd'
;
export
default
({
index
,
title
,
dataSource
,
columns
,
hidden
})
=>
{
export
default
({
index
,
title
,
dataSource
,
columns
,
hidden
,
navhidden
=
false
})
=>
{
const
[
flag
,
setflag
]
=
useState
(
true
);
// 0:报修 1:接单 2:派单 3:完成维修 4:转追踪 5:转外协 6:转单 7:退单 8:追踪审核 9:外协审核 10:退单审核 11:效果验证
const
columns_mes
=
{
...
...
@@ -100,7 +100,8 @@ export default ({ index, title, dataSource, columns, hidden }) => {
},
},
],
};
},
columns_wxgd
=
{};
useEffect
(()
=>
{
setflag
(
hidden
);
},
[]);
...
...
@@ -110,6 +111,7 @@ export default ({ index, title, dataSource, columns, hidden }) => {
{
flag
?
(
<
div
>
{
index
==
0
?
(
navhidden
?
(
<
div
>
<
div
>
<
h2
className=
"page-title"
>
{
title
}
</
h2
>
...
...
@@ -119,6 +121,33 @@ export default ({ index, title, dataSource, columns, hidden }) => {
<
Divider
orientation=
"left"
>
故障信息
</
Divider
>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns_mes
[
'gzxx'
]
}
/>
</
div
>
)
:
(
<
div
>
<
div
style=
{
{
borderLeft
:
'1px solid #ccc'
}
}
>
<
span
style=
{
{
border
:
'1px solid #ccc'
,
backgroundColor
:
'white'
,
borderRidus
:
'30%'
,
}
}
>
{
index
}
</
span
>
</
div
>
<
div
>
<
div
>
<
h2
className=
"page-title"
>
{
title
}
</
h2
>
</
div
>
<
Divider
orientation=
"left"
>
设备信息
</
Divider
>
<
ProDescriptions
dataSource=
{
dataSource
?.
equipment
}
columns=
{
columns_mes
[
'sbxx'
]
}
/>
<
Divider
orientation=
"left"
>
故障信息
</
Divider
>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns_mes
[
'gzxx'
]
}
/>
</
div
>
</
div
>
)
)
:
(
<
div
>
<
div
style=
{
{
borderLeft
:
'1px solid #ccc'
}
}
>
...
...
@@ -128,7 +157,13 @@ export default ({ index, title, dataSource, columns, hidden }) => {
{
index
}
</
span
>
</
div
>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns
}
/>
<
div
>
<
div
>
<
h2
className=
"page-title"
>
{
dataSource
?.
operationTypeName
}
信息
</
h2
>
</
div
>
<
ProDescriptions
dataSource=
{
dataSource
?.
equipment
}
columns=
{
columns_mes
[
'sbxx'
]
}
/>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns_mes
[
'gzxx'
]
}
/>
</
div
>
</
div
>
)
}
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/components/RepaireDetail/Detail.jsx
View file @
97b50a3a
...
...
@@ -15,7 +15,45 @@ export default (props) => {
console
.
log
(
request
);
const
selectType
=
{
gzbx
:
<
DesItem
index=
"0"
dataSource=
{
request
?.
data
}
title=
"基本信息"
hidden=
{
true
}
/>,
gzbx
:
(
<
DesItem
type=
"gzbx"
index=
"0"
dataSource=
{
request
?.
data
}
title=
"基本信息"
hidden=
{
true
}
navhidden=
{
true
}
/>
),
wxgd
:
<
Wxgd
/>,
};
// 维修工单
const
Wxgd
=
()
=>
{
return
(
<>
<
DesItem
type=
"wxgd"
dataSource=
{
request
?.
data
}
title=
"报修信息"
hidden=
{
true
}
navhidden=
{
false
}
/>
{
request
?.
data
?.
map
((
it
,
index
)
=>
{
return
(
<>
<
DesItem
type=
"wxgd"
dataSource=
{
request
?.
data
}
title=
"报修信息"
hidden=
{
true
}
navhidden=
{
false
}
/>
</>
);
})
}
</>
);
};
return
(
<>
...
...
@@ -26,7 +64,7 @@ export default (props) => {
</
div
>
<
ProDescriptions
columns=
{
basecolumns
}
dataSource=
{
request
.
data
}
/>
<
Divider
/>
{
selectType
[
'gzbx'
]
}
{
selectType
[
type
]
}
</>
);
};
This diff is collapsed.
Click to expand it.
src/pages/device/supplier/columns.js
View file @
97b50a3a
...
...
@@ -84,7 +84,6 @@ function getcolumns(setdrawer) {
title
:
'状态'
,
dataIndex
:
'status'
,
key
:
'status'
,
search
:
false
,
valueType
:
'radio'
,
formItemProps
:
{
rules
:
[
...
...
@@ -134,8 +133,11 @@ function getcolumns(setdrawer) {
key
:
'score'
,
width
:
50
,
valueType
:
'rate'
,
searchValueType
:
'digit'
,
fieldProps
:
{
defaultValue
:
1
,
max
:
5
,
precision
:
1
,
},
formItemProps
:
{
rules
:
[
...
...
This diff is collapsed.
Click to expand it.
src/pages/repair/order/index.jsx
View file @
97b50a3a
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-12 1
4:20:44
* @Last Modified time: 2022-12-12 1
5:59:07
*/
import
*
as
React
from
'react'
;
...
...
@@ -1045,7 +1045,7 @@ function Failure(props) {
};
const
basecolumns
=
useMemo
(()
=>
{
if
(
activeTabKey
==
1
)
{
if
(
activeTabKey
==
3
)
{
return
[
{
title
:
'创建时间'
,
...
...
@@ -1064,8 +1064,13 @@ function Failure(props) {
},
{
title
:
'最新维修人员'
,
dataIndex
:
'repairNo'
,
key
:
'repairNo'
,
dataIndex
:
'newRepairUserName'
,
key
:
'newRepairUserName'
,
},
{
title
:
'关单时间'
,
dataIndex
:
'repairCloseTime'
,
key
:
'repairCloseTime'
,
},
];
}
else
{
...
...
@@ -1081,15 +1086,14 @@ function Failure(props) {
key
:
'statusName'
,
},
{
title
:
'
维
修单号'
,
dataIndex
:
'repair
Order
No'
,
key
:
'repair
Order
No'
,
title
:
'
报
修单号'
,
dataIndex
:
'repairNo'
,
key
:
'repairNo'
,
},
{
title
:
'关单时间'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
,
valueType
:
'textarea'
,
title
:
'最新维修人员'
,
dataIndex
:
'newRepairUserName'
,
key
:
'newRepairUserName'
,
},
];
}
...
...
This diff is collapsed.
Click to expand it.
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