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
f9c86787
Commit
f9c86787
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12122038
parent
32eb7245
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
36 deletions
+63
-36
DesItem.jsx
src/components/RepaireDetail/DesItem.jsx
+31
-12
Detail.jsx
src/components/RepaireDetail/Detail.jsx
+22
-22
global.less
src/global.less
+9
-1
index.jsx
src/pages/repair/order/index.jsx
+1
-1
No files found.
src/components/RepaireDetail/DesItem.jsx
View file @
f9c86787
...
...
@@ -4,6 +4,7 @@ import { Divider, Image } from 'antd';
export
default
({
index
,
title
,
dataSource
,
columns
,
hidden
,
navhidden
=
false
})
=>
{
const
[
flag
,
setflag
]
=
useState
(
true
);
console
.
log
(
index
,
dataSource
);
// 0:报修 1:接单 2:派单 3:完成维修 4:转追踪 5:转外协 6:转单 7:退单 8:追踪审核 9:外协审核 10:退单审核 11:效果验证
const
columns_mes
=
{
sbxx
:
[
...
...
@@ -150,19 +151,37 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false }
)
)
:
(
<
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"
>
{
dataSource
?.
operationTypeName
}
信息
</
h2
>
<
div
className=
"fault-detail"
>
<
div
style=
{
{
flex
:
1
,
display
:
'flex'
,
flexDirection
:
'row'
}
}
>
<
div
style=
{
{
display
:
'block'
,
width
:
'30px'
,
height
:
'30px'
,
fontWeight
:
500
,
textAlign
:
'center'
,
padding
:
'2px'
,
border
:
'1px solid #1890FF'
,
borderRadius
:
'50%'
,
backgroundColor
:
'white'
,
marginRight
:
16
,
}
}
>
{
index
}
</
div
>
<
div
>
<
label
style=
{
{
width
:
'40px'
,
fontSize
:
18
,
fontWeight
:
600
}
}
>
{
dataSource
?.
operationTypeName
}
</
label
>
</
div
>
</
div
>
<
div
style=
{
{
flex
:
6
}
}
>
<
div
style=
{
{
marginBottom
:
8
}
}
>
<
h2
className=
"page-title"
>
{
dataSource
?.
operationTypeName
}
信息
</
h2
>
</
div
>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns_mes
[
'sbxx'
]
}
/>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns_mes
[
'gzxx'
]
}
/>
</
div
>
<
ProDescriptions
dataSource=
{
dataSource
?.
equipment
}
columns=
{
columns_mes
[
'sbxx'
]
}
/>
<
ProDescriptions
dataSource=
{
dataSource
}
columns=
{
columns_mes
[
'gzxx'
]
}
/>
</
div
>
</
div
>
)
}
...
...
This diff is collapsed.
Click to expand it.
src/components/RepaireDetail/Detail.jsx
View file @
f9c86787
...
...
@@ -9,42 +9,29 @@ export default (props) => {
const
request
=
useRequest
(
async
()
=>
{
let
res
=
await
doFetch
({
url
:
detailpath
,
params
});
return
res
?.
data
.
data
||
{};
return
res
?.
data
||
{};
});
console
.
log
(
request
);
const
selectType
=
{
gzbx
:
(
<
DesItem
type=
"gzbx"
index=
"0"
dataSource=
{
request
?.
data
}
title=
"基本信息"
hidden=
{
true
}
navhidden=
{
true
}
/>
),
wxgd
:
<
Wxgd
/>,
};
console
.
log
(
1111
,
request
);
// 维修工单
const
Wxgd
=
()
=>
{
return
(
<>
<
DesItem
type=
"wxgd"
dataSource=
{
request
?.
data
}
dataSource=
{
request
?.
data
?.
dataList
[
0
]
}
title=
"报修信息"
hidden=
{
true
}
navhidden=
{
false
}
index=
"1"
// navhidden={false}
/>
{
request
?.
data
?.
map
((
it
,
index
)
=>
{
{
request
?.
data
?.
dataList
?.
splice
(
1
).
map
((
it
,
index
)
=>
{
return
(
<>
<
DesItem
type=
"wxgd"
dataSource=
{
request
?.
data
}
dataSource=
{
it
}
index=
{
index
+
2
}
title=
"报修信息"
hidden=
{
true
}
navhidden=
{
false
}
...
...
@@ -55,6 +42,19 @@ export default (props) => {
</>
);
};
const
selectType
=
{
gzbx
:
(
<
DesItem
type=
"gzbx"
index=
"0"
dataSource=
{
request
?.
data
?.
data
}
title=
"基本信息"
hidden=
{
true
}
navhidden=
{
true
}
/>
),
wxgd
:
<
Wxgd
/>,
};
return
(
<>
<
div
>
...
...
@@ -62,7 +62,7 @@ export default (props) => {
{
title
}
:
{
titleno
}
</
h2
>
</
div
>
<
ProDescriptions
columns=
{
basecolumns
}
dataSource=
{
request
.
data
}
/>
<
ProDescriptions
columns=
{
basecolumns
}
dataSource=
{
baseRow
}
/>
<
Divider
/>
{
selectType
[
type
]
}
</>
...
...
This diff is collapsed.
Click to expand it.
src/global.less
View file @
f9c86787
...
...
@@ -5,7 +5,7 @@ body,
#root {
height: 100%;
overflow: hidden;
}
.colorWeak {
...
...
@@ -411,4 +411,12 @@ ol {
color: #1890FF;
background-color: #1890FF;
margin-right: 10px;
}
.fault-detail {
display: flex;
flex-direction: row;
border-left: 1px solid #ccc;
padding: 16px;
// background-color: #ff4800;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/repair/order/index.jsx
View file @
f9c86787
...
...
@@ -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
15:59:07
* @Last Modified time: 2022-12-12
20:07:04
*/
import
*
as
React
from
'react'
;
...
...
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