Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
Project
Project
Details
Activity
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
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
9eba1bb3
Commit
9eba1bb3
authored
Jul 03, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
c0781567
Pipeline
#15898
passed with stages
in 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
Application.jsx
src/pages/EventProcessing/UnCommon/Application.jsx
+5
-3
Goods.jsx
src/pages/EventProcessing/commponents/Goods.jsx
+9
-11
No files found.
src/pages/EventProcessing/UnCommon/Application.jsx
View file @
9eba1bb3
...
...
@@ -70,7 +70,8 @@ const Process = (props) => {
setBasic
(
result
)
});
};
const
[
applicateData
,
setapplicateData
]
=
useState
([])
const
[
applicateData
,
setapplicateData
]
=
useState
([]);
const
[
applicateList
,
setApplicateList
]
=
useState
([])
const
getApplication
=
(
uuid
)
=>
{
axiosRequest
({
method
:
'post'
,
...
...
@@ -78,7 +79,8 @@ const Process = (props) => {
body
:
{
attachId
:
uuid
,
templatePath
:
'cgwpxx_list'
}
}).
then
(
res
=>
{
setBasicLoading
(
true
);
setapplicateData
(
res
.
rows
)
setapplicateData
(
res
.
rows
);
setApplicateList
(
res
.
elementList
)
});
};
const
treeClick
=
(
BGYPMC
)
=>
{
...
...
@@ -240,7 +242,7 @@ const Process = (props) => {
<
Basic
data=
{
basic
}
/>
<
WhiteSpace
/>
<
div
className=
"good-title"
>
申领物品信息
</
div
>
<
Goods
data=
{
applicateData
}
onClick=
{
treeClick
}
/>
<
Goods
list=
{
applicateList
}
data=
{
applicateData
}
onClick=
{
treeClick
}
/>
</
div
>
)
:
<
Skeleton
/>
}
<
div
id=
"event-adjunct"
/>
...
...
src/pages/EventProcessing/commponents/Goods.jsx
View file @
9eba1bb3
...
...
@@ -2,26 +2,24 @@ import React from 'react';
import
'./index.less'
const
Index
=
(
props
)
=>
{
const
{
data
,
onClick
}
=
props
;
const
{
data
,
list
,
onClick
}
=
props
;
console
.
log
(
list
)
return
(
<
div
className=
"address-box"
>
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
className=
"good-item"
>
<
div
className=
"address-item address-title"
onClick=
{
()
=>
onClick
(
item
.
BGYPMC
)
}
>
品名:
{
item
.
BGYPMC
||
''
}
{
list
.
length
>
0
&&
list
[
0
].
showName
}
:
{
list
.
length
>
0
&&
item
[
list
[
0
].
colName
]
}
{
/*{list[0] && list[0].showName}:{item[list[0].showName] || ''}*/
}
<
img
src=
"/img/rarrow.png"
alt=
""
className=
{
`icon18 ${item.checked ? 'icon-checked' : 'icon-unchecked'}`
}
/>
</
div
>
{
item
.
checked
&&
(
<
div
>
<
div
className=
"address-item address-title"
>
领取人:
{
item
.
BGYPMC
||
''
}
</
div
>
<
div
className=
"address-item address-title"
>
申请数量:
{
item
.
SL
||
''
}
</
div
>
<
div
className=
"address-item address-title"
>
实际发放数量:
{
item
.
BGYPMC
||
''
}
</
div
>
{
list
.
length
>
1
&&
list
.
map
((
child
,
index2
)
=>
index2
>
0
&&
(
<
div
key=
{
index2
}
className=
"address-item address-title"
>
{
child
.
showName
}
:
{
item
[
child
.
colName
]
||
''
}
</
div
>
))
}
</
div
>
)
}
...
...
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