Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
Overview
Overview
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
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
tungnq
AppUms_Lecturer
Commits
7aaec7c7
Commit
7aaec7c7
authored
Aug 28, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã hoàn thiện chi tiết văn bản đi
parent
fe6da217
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
783 additions
and
24 deletions
+783
-24
StackNavigation.js
src/routers/StackNavigation.js
+2
-0
view.js
src/screens/incoming_document/detail/view.js
+3
-3
index.js
src/screens/list_send_document/detail/index.js
+99
-5
style.js
src/screens/list_send_document/detail/style.js
+195
-3
view.js
src/screens/list_send_document/detail/view.js
+483
-12
view.js
src/screens/list_send_document/view.js
+1
-1
No files found.
src/routers/StackNavigation.js
View file @
7aaec7c7
...
...
@@ -25,6 +25,7 @@ import DetailIncomingDocument from '../screens/incoming_document/detail';
import
ListSendDocument
from
'../screens/list_send_document'
;
import
EditSendDocument
from
'../screens/list_send_document/edit'
;
import
AddSendDocument
from
'../screens/list_send_document/add'
;
import
DetailSendDocument
from
'../screens/list_send_document/detail'
;
const
Stack
=
createStackNavigator
();
function
MyStack
(
props
)
{
...
...
@@ -58,6 +59,7 @@ function MyStack(props) {
<
Stack
.
Screen
name
=
{
ScreenName
.
LISTSENDDOCUMENT
}
component
=
{
ListSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
EDITSENDDOCUMENT
}
component
=
{
EditSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
ADDSENDOCUMENT
}
component
=
{
AddSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
DETAILSENDDOCUMENT
}
component
=
{
DetailSendDocument
}
/
>
<
/Stack.Navigator
>
);
}
...
...
src/screens/incoming_document/detail/view.js
View file @
7aaec7c7
import
React
,
{
use
Effect
,
use
State
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Text
,
View
,
TouchableOpacity
,
StyleSheet
,
Image
,
ScrollView
,
FlatList
,
...
...
@@ -19,6 +18,7 @@ import FAB from '../../../components/FAB/fab';
import
SubButton
from
'../../../components/FAB/sub_button'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
Dropdown
from
'../../../components/DropdownAlert/Dropdown'
;
const
DetailIncomingDocumentView
=
props
=>
{
const
{
icomingDocument
,
items
,
dataList
}
=
props
;
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
...
...
@@ -38,7 +38,7 @@ const DetailIncomingDocumentView = props => {
case
'Công khai'
:
return
R
.
colors
.
blue
;
}
};
};
const
handleAddAnnotation
=
()
=>
{
if
(
annotationContent
.
trim
())
{
// Here you would typically call an API to save the annotation
...
...
src/screens/list_send_document/detail/index.js
View file @
7aaec7c7
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Text
,
View
,
StyleSheet
}
from
'react-native'
;
import
DetailSendDocumentView
from
'./view'
;
const
DetailSendDocument
=
(
props
)
=>
{
return
(
<
DetailSendDocumentView
/>
);
const
DetailSendDocument
=
props
=>
{
const
[
icomingDocument
,
setIncomingDocument
]
=
useState
({
id
:
102934
,
title
:
'Văn bản thông báo lịch nộp thời khoá biểu của học kỳ 2 năm 2025'
,
status
:
'Hạn chế'
,
symbol_number
:
'2038475'
,
regime
:
'Đã phê duyệt '
,
number_entry_book
:
'12493-fh544'
,
term
:
'29/07/2025'
,
term_display
:
'09/07/2025'
,
document_date
:
'2025-07-08'
,
document_date_display
:
'08/07/2025'
,
document_type
:
'Hành chính'
,
field
:
'Thời khoá biểu'
,
signer_name
:
'Nguyễn Minh Đức'
,
sender_partner
:
'Võ Công Bình'
,
note
:
''
,
content
:
'Ban lãnh đạo yêu cầu hoàn thành thời khoá biểu trong tháng cho các đơn vị chuyên môn, nộp đầy đủ công việc theo đúng kế hoạch.'
,
opinion_bgh
:
'Thực hiện nhanh công tác thời khoá biểu'
,
received_departments
:
[
{
id
:
1
,
name
:
'Phòng đào tạo'
},
{
id
:
2
,
name
:
'Phòng đào tạo'
},
],
received_group
:
[{
id
:
12
,
name
:
'Nhóm chuyên môn đào tạo'
}],
receiver
:
[{
id
:
55
,
name
:
'Nguyễn Minh Đức'
}],
attachments
:
[
{
id
:
'001247363'
,
filename
:
'Quyết định thông báo đào tạo - 001247363'
,
file_ext
:
'pdf'
,
file_size
:
0
,
download_url
:
'#'
,
preview_url
:
'#'
,
},
],
total_head_of_work
:
7
,
approvals
:
[
{
author
:
'Bút Tiến Công'
,
code
:
'08569'
,
date
:
'29/07/2025'
,
time
:
'16:00'
,
content
:
'Ban lãnh đạo yêu cầu hoàn thành thời khoá biểu trong tháng cho các đơn vị chuyên môn, nộp đầy đủ công việc theo đúng kế hoạch.'
,
},
{
author
:
'Nguyễn Thị Kim Phụng'
,
code
:
'08569'
,
date
:
'29/07/2025'
,
time
:
'16:00'
,
content
:
'Trưởng phòng xác nhận hợp bộ hồ sơ.'
,
},
{
author
:
'Đặng Duy Minh'
,
code
:
'08569'
,
date
:
'29/07/2025'
,
time
:
'16:00'
,
content
:
'Trưởng phòng nhập công bố quyết định nội bộ.'
,
},
],
actions
:
{
can_create_task
:
true
,
create_task_label
:
'Tạo công việc'
,
},
});
const
items
=
[
{
id
:
1
,
label
:
'Option 1'
},
{
id
:
2
,
label
:
'Option 2'
},
{
id
:
3
,
label
:
'Option 3'
},
];
const
[
dataList
,
setDataList
]
=
useState
([
{
id
:
1
,
name
:
'Nguyễn Minh Đức'
},
{
id
:
2
,
name
:
'Trần Văn Hùng'
},
{
id
:
3
,
name
:
'Lê Thị Mai'
},
{
id
:
4
,
name
:
'Phạm Quốc Khánh'
},
{
id
:
5
,
name
:
'Hoàng Anh Tuấn'
},
{
id
:
6
,
name
:
'Vũ Thị Hằng'
},
{
id
:
7
,
name
:
'Ngô Văn Nam'
},
{
id
:
8
,
name
:
'Đinh Thị Lan'
},
{
id
:
9
,
name
:
'Bùi Văn Phúc'
},
{
id
:
10
,
name
:
'Lý Thị Hoa'
},
{
id
:
11
,
name
:
'Phan Minh Hoàng'
},
{
id
:
12
,
name
:
'Tạ Thị Hương'
},
{
id
:
13
,
name
:
'Đoàn Văn Dũng'
},
{
id
:
14
,
name
:
'Nguyễn Thị Vân'
},
{
id
:
15
,
name
:
'Trương Văn Long'
},
{
id
:
16
,
name
:
'Mai Thị Ngọc'
},
{
id
:
17
,
name
:
'Huỳnh Quốc Việt'
},
{
id
:
18
,
name
:
'Lâm Thị Thu'
},
{
id
:
19
,
name
:
'Nguyễn Hữu Tài'
},
{
id
:
20
,
name
:
'Phạm Thị Kim'
},
]);
return
<
DetailSendDocumentView
items
=
{
items
}
icomingDocument
=
{
icomingDocument
}
dataList
=
{
dataList
}
/>
;
};
export
default
DetailSendDocument
;
src/screens/list_send_document/detail/style.js
View file @
7aaec7c7
import
{
StyleSheet
,
Text
,
View
}
from
'react-native'
import
React
from
'react'
import
R
from
'../../../assets/R'
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
},
body
:
{
body
:{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
,
marginHorizontal
:
15
,
marginVertical
:
10
},
textSubTitle
:{
fontSize
:
R
.
fontsize
.
fontSizeSubTitle
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
color
:
R
.
colors
.
black
,
},
text_1
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
color
:
R
.
colors
.
blue
,
},
text
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
color
:
R
.
colors
.
black
,
},
text_2
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
color
:
R
.
colors
.
black
,
},
textBtn
:{
color
:
R
.
colors
.
black
,
fontSize
:
R
.
sizes
.
xs
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
},
containerContent
:{
padding
:
10
,
borderRadius
:
10
,
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
},
cardContainerContent
:{
backgroundColor
:
R
.
colors
.
white
,
padding
:
10
,
borderRadius
:
10
,
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
},
card
:{
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
borderRadius
:
100
,
padding
:
10
,
alignSelf
:
'flex-start'
,
backgroundColor
:
R
.
colors
.
orange
,
marginHorizontal
:
5
,
},
containerBtn
:{
flexDirection
:
'row'
,
alignItems
:
'center'
,
justifyContent
:
'space-around'
,
marginVertical
:
10
,
borderRadius
:
10
,
backgroundColor
:
R
.
colors
.
blue1
,
padding
:
10
,
width
:
300
},
//MODAL Thêm Bút Phê
modalOverlay
:
{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
}
backgroundColor
:
'rgba(0, 0, 0, 0.5)'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
},
modalContainer
:
{
backgroundColor
:
'white'
,
borderRadius
:
10
,
width
:
'90%'
,
maxHeight
:
'80%'
,
},
modalHeader
:
{
flexDirection
:
'row'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
padding
:
10
,
},
modalTitle
:
{
fontSize
:
R
.
fontsize
.
fontsSizeTitle
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
color
:
R
.
colors
.
blue
,
},
closeButton
:
{
width
:
30
,
height
:
30
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
},
closeButtonText
:
{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
color
:
R
.
colors
.
gray
,
fontWeight
:
'bold'
,
},
modalBody
:
{
paddingHorizontal
:
15
},
inputLabel
:
{
fontSize
:
R
.
fontsize
.
fontSizeSubTitle
,
color
:
R
.
colors
.
black
,
marginBottom
:
3
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
},
textInput
:
{
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
borderRadius
:
8
,
padding
:
12
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
color
:
R
.
colors
.
black
,
minHeight
:
120
,
textAlignVertical
:
'top'
,
},
modalFooter
:
{
flexDirection
:
'row'
,
justifyContent
:
'flex-end'
,
padding
:
15
,
},
button
:
{
paddingHorizontal
:
20
,
paddingVertical
:
3
,
borderRadius
:
30
,
width
:
110
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
},
cancelButton
:
{
backgroundColor
:
R
.
colors
.
orange
,
marginRight
:
10
,
},
cancelButtonText
:
{
color
:
R
.
colors
.
white
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
},
submitButton
:
{
backgroundColor
:
R
.
colors
.
blue
,
},
submitButtonText
:
{
color
:
'white'
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
},
//MODAL Thêm công việc
containerDropdown
:{
marginBottom
:
10
,
marginTop
:
10
,
position
:
'relative'
,
zIndex
:
1000
},
chip
:
{
flexDirection
:
'row'
,
alignItems
:
'center'
,
// position: 'relative',
paddingLeft
:
10
,
paddingRight
:
10
,
height
:
25
,
borderRadius
:
10
,
marginBottom
:
10
,
marginRight
:
5
,
backgroundColor
:
R
.
colors
.
blue2
,
alignSelf
:
'flex-start'
},
imageIcon
:
{
width
:
15
,
height
:
15
,
},
containerIcon
:
{
marginRight
:
2
,
},
flatListSelect
:{
flexDirection
:
'row'
,
flexWrap
:
'wrap'
,
},
textChip
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
color
:
R
.
colors
.
blueTextChip
,
}
})
export
default
styles
\ No newline at end of file
src/screens/list_send_document/detail/view.js
View file @
7aaec7c7
import
React
from
'react'
;
import
{
Text
,
View
,
TouchableOpacity
,
StyleSheet
}
from
'react-native'
;
import
styles
from
'../style'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Text
,
View
,
TouchableOpacity
,
StyleSheet
,
Image
,
ScrollView
,
FlatList
,
Alert
,
Modal
,
TextInput
,
}
from
'react-native'
;
import
R
from
'../../../assets/R'
;
import
styles
from
'./style'
;
import
Header
from
'../../../components/Header/Header'
;
const
DetailSendDocumentView
=
(
props
)
=>
{
const
{
}
=
props
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
Header
title
=
{
'Văn bản đi 2038475'
}
isBack
/>
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{
styles
.
body
}
>
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
FAB
from
'../../../components/FAB/fab'
;
import
SubButton
from
'../../../components/FAB/sub_button'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
Dropdown
from
'../../../components/DropdownAlert/Dropdown'
;
const
DetailSendDocumentView
=
props
=>
{
const
{
icomingDocument
,
items
,
dataList
}
=
props
;
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
const
[
showTaskModal
,
setShowTaskModal
]
=
useState
(
false
);
const
[
annotationContent
,
setAnnotationContent
]
=
useState
(
''
);
const
[
taskTitle
,
setTaskTitle
]
=
useState
(
''
);
const
[
taskDescription
,
setTaskDescription
]
=
useState
(
''
);
const
[
taskCategory
,
setTaskCategory
]
=
useState
(
'Công việc theo văn bản'
);
const
[
taskDeadline
,
setTaskDeadline
]
=
useState
(
''
);
const
[
taskFollower
,
setTaskFollower
]
=
useState
(
'859256, Nguyễn Minh Đức'
);
const
[
taskExecutor
,
setTaskExecutor
]
=
useState
(
'859256, Nguyễn Minh Đức'
);
console
.
log
(
props
);
const
getColor
=
status
=>
{
switch
(
status
)
{
case
'Hạn chế'
:
return
R
.
colors
.
brown
;
case
'Công khai'
:
return
R
.
colors
.
blue
;
}
};
const
getColorRegime
=
regime
=>
{
switch
(
regime
)
{
case
'Đã phê duyệt'
:
return
R
.
colors
.
green
;
case
'Chờ xét duyệt'
:
return
R
.
colors
.
blue
;
case
'Cần chỉnh sửa'
:
return
R
.
colors
.
orange
;
case
'Dự thảo'
:
return
R
.
colors
.
orange
;
}
}
const
renderItem
=
({
item
})
=>
{
console
.
log
(
item
);
return
(
<
View
style
=
{{
marginVertical
:
7.5
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
marginBottom
:
5
}}
>
<
Text
style
=
{
styles
.
text
}
>
{
item
.
author
}
-
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
{
item
.
code
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
{
item
.
time
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
{
item
.
date
}
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
containerContent
}
>
<
Text
style
=
{
styles
.
text_2
}
>
{
item
.
content
}
<
/Text
>
<
/View
>
<
/View
>
);
};
const
body
=
()
=>
{
return
(
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{
styles
.
body
}
>
<
Text
style
=
{
styles
.
textSubTitle
}
>
{
icomingDocument
.
title
}
<
/Text
>
<
View
style
=
{{
marginTop
:
5
}}
><
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
Ch
ế
độ
:{
" "
}
<
Text
style
=
{{
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
color
:
getColor
(
icomingDocument
.
status
),
}}
>
{
icomingDocument
.
status
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
Tr
ạ
ng
th
á
i
:{
" "
}
<
Text
style
=
{[
styles
.
text_2
,
{
color
:
getColorRegime
(
icomingDocument
.
regime
)}]}
>
{
icomingDocument
.
regime
}
<
/Text
>
<
/Text
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
S
ố
k
ý
hi
ệ
u
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
symbol_number
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
S
ố
v
à
o
s
ổ
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
number_entry_book
}
<
/Text
>
<
/Text
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
Ng
à
y
đế
n
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
term
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
Ng
à
y
v
ă
n
b
ả
n
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
term_display
}
<
/Text
>
<
/Text
>
<
/View
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
5
}]}
>
Lo
ạ
i
v
ă
n
b
ả
n
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
document_type
}
<
/Text
>
<
/Text
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
5
}]}
>
L
ĩ
nh
v
ự
c
v
ă
n
b
ả
n
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
field
}
<
/Text
>
<
/Text
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
Ng
ườ
i
k
ý
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
signer_name
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
Đố
i
t
á
c
g
ử
i
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
sender_partner
}
<
/Text
>
<
/Text
>
<
/View
>
<
TextMulti
title
=
"Ghi chú"
/>
<
View
style
=
{{
marginTop
:
5
}}
><
/View
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
3
}]}
>
N
ộ
i
dung
<
/Text
>
<
View
style
=
{[
styles
.
containerContent
,
{
marginBottom
:
5
}]}
>
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
content
}
<
/Text
>
<
/View
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
5
}]}
>
Ý
ki
ế
n
c
ủ
a
BGH
:
<
Text
style
=
{
styles
.
text_2
}
>
{
icomingDocument
.
opinion_bgh
}
<
/Text
>
<
/Text
>
<
View
style
=
{{
flexDirection
:
'row'
,
flexWrap
:
'wrap'
,
alignItems
:
'center'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
Ph
ò
ng
ban
nh
ậ
n
:
<
/Text
>
{
icomingDocument
.
received_departments
.
map
((
item
,
index
)
=>
{
return
(
<
View
style
=
{
styles
.
card
}
>
<
Text
style
=
{{
color
:
R
.
colors
.
white
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
}}
key
=
{
index
}
>
{
item
.
name
}
<
/Text
>
<
/View
>
);
})}
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
flexWrap
:
'wrap'
,
alignItems
:
'center'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
Nh
ó
m
nh
ậ
n
:
<
/Text
>
{
icomingDocument
.
received_group
.
map
((
item
,
index
)
=>
{
return
(
<
View
style
=
{[
styles
.
card
,
{
backgroundColor
:
R
.
colors
.
blue
}]}
>
<
Text
style
=
{{
color
:
R
.
colors
.
white
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
}}
key
=
{
index
}
>
{
item
.
name
}
<
/Text
>
<
/View
>
);
})}
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
flexWrap
:
'wrap'
,
alignItems
:
'center'
,
marginBottom
:
5
,
}}
>
<
Text
style
=
{
styles
.
text
}
>
Ng
ườ
i
nh
ậ
n
:
<
/Text
>
{
icomingDocument
.
receiver
.
map
((
item
,
index
)
=>
{
return
(
<
View
style
=
{[
styles
.
card
,
{
backgroundColor
:
R
.
colors
.
blue
}]}
>
<
Text
style
=
{{
color
:
R
.
colors
.
white
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
}}
key
=
{
index
}
>
{
item
.
name
}
<
/Text
>
<
/View
>
);
})}
<
/View
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
}]}
>
T
à
i
li
ệ
u
đí
nh
k
è
m
<
/Text
>
<
TouchableOpacity
style
=
{
styles
.
containerBtn
}
>
<
Text
style
=
{
styles
.
textBtn
}
>
Quy
ế
t
đị
nh
th
ô
ng
b
á
o
đà
o
t
ạ
o
-
QD347583
<
/Text
>
<
Image
source
=
{
R
.
images
.
icDownload
}
style
=
{{
width
:
20
,
height
:
20
}}
resizeMode
=
"contain"
tintColor
=
{
R
.
colors
.
blue
}
/
>
<
/TouchableOpacity
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
}]}
>
B
ú
t
ph
ê
v
ă
n
b
ả
n
<
/Text
>
<
FlatList
data
=
{
icomingDocument
.
approvals
}
renderItem
=
{
renderItem
}
keyExtractor
=
{(
item
,
index
)
=>
index
.
toString
()}
/
>
<
/View
>
<
/ScrollView
>
);
};
const
handleCreateTask
=
()
=>
{
if
(
taskTitle
.
trim
()
&&
taskDescription
.
trim
())
{
Alert
.
alert
(
'Thành công'
,
'Đã tạo công việc thành công!'
);
setTaskTitle
(
''
);
setTaskDescription
(
''
);
setTaskDeadline
(
''
);
setShowTaskModal
(
false
);
}
else
{
Alert
.
alert
(
'Lỗi'
,
'Vui lòng nhập đầy đủ thông tin!'
);
}
};
const
renderItem_1
=
({
item
,
onPress
})
=>
{
return
(
<
View
style
=
{
styles
.
chip
}
>
<
TouchableOpacity
style
=
{
styles
.
containerIcon
}
onPress
=
{
onPress
}
>
<
Image
resizeMode
=
"cover"
source
=
{
R
.
images
.
icCancel
}
style
=
{
styles
.
imageIcon
}
tintColor
=
{
R
.
colors
.
blue
}
/
>
<
/TouchableOpacity
>
<
Text
style
=
{
styles
.
textChip
}
>
{
`
${
item
.
id
}
,
${
item
.
name
}
`
}
<
/Text
>
<
/View
>
);
};
const
openTaskModal
=
()
=>
{
return
(
<
Modal
animationType
=
"slide"
transparent
=
{
true
}
visible
=
{
showTaskModal
}
onRequestClose
=
{()
=>
setShowTaskModal
(
false
)}
>
<
View
style
=
{
styles
.
modalOverlay
}
>
<
View
style
=
{[
styles
.
modalContainer
,
{
maxHeight
:
'90%'
}]}
>
<
View
style
=
{
styles
.
modalHeader
}
>
<
Text
style
=
{
styles
.
modalTitle
}
>
Th
ê
m
c
ô
ng
vi
ệ
c
<
/Text
>
<
/View
>
<
ScrollView
style
=
{
styles
.
modalBody
}
showsVerticalScrollIndicator
=
{
false
}
>
<
TextField
title
=
"Tiêu đề"
fontSizeTitle
=
{
R
.
fontsize
.
fontSizeLabel
}
required
placeholder
=
"HS"
placeholderTextColor
=
{
R
.
colors
.
gray
}
value
=
{
taskTitle
}
onChangeText
=
{
setTaskTitle
}
containerMarginBottom
=
{
10
}
/
>
<
TextMulti
title
=
"Mô tả"
titleFontSize
=
{
R
.
fontsize
.
fontSizeLabel
}
placeholder
=
"Nhập mô tả..."
placeholderTextColor
=
{
R
.
colors
.
gray
}
multiline
=
{
true
}
numberOfLines
=
{
3
}
required
value
=
{
taskDescription
}
onChangeText
=
{
setTaskDescription
}
/
>
<
View
style
=
{
styles
.
containerDropdown
}
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
3
,
fontSize
:
R
.
fontsize
.
fontSizeLabel
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
color
:
R
.
colors
.
black
,
},
]}
>
Th
ẻ
<
/Text
>
<
Dropdown
height
=
{
35
}
items
=
{
items
}
placeholder
=
"Chọn tùy chọn"
onSelect
=
{
item
=>
console
.
log
(
'Bạn đã chọn:'
,
item
)}
/
>
<
/View
>
<
Text
style
=
{[
styles
.
text_2
,
{
marginBottom
:
3
}]}
>
Danh
s
á
ch
th
ẻ
đã
ch
ọ
n
:
<
/Text
>
<
FlatList
data
=
{
dataList
}
renderItem
=
{({
item
})
=>
renderItem_1
({
item
,
onPress
:
()
=>
{}})}
keyExtractor
=
{(
item
,
index
)
=>
item
.
id
?.
toString
()
||
index
.
toString
()
}
numColumns
=
{
2
}
style
=
{{
maxHeight
:
150
,
marginBottom
:
10
}}
showsVerticalScrollIndicator
=
{
true
}
columnWrapperStyle
=
{
styles
.
flatListSelect
}
nestedScrollEnabled
=
{
true
}
scrollEnabled
=
{
true
}
/
>
<
TextField
title
=
"Ngày đến hạn"
required
fontSizeTitle
=
{
R
.
fontsize
.
fontSizeLabel
}
value
=
{
taskDeadline
}
onChangeText
=
{
setTaskDeadline
}
/
>
<
View
style
=
{
styles
.
containerDropdown
}
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
3
,
fontSize
:
R
.
fontsize
.
fontSizeLabel
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
color
:
R
.
colors
.
black
,
},
]}
>
Ng
ườ
i
theo
d
õ
i
{
''
}
<
Text
style
=
{{
color
:
R
.
colors
.
red
}}
>*<
/Text
>
<
/Text
>
<
Dropdown
height
=
{
35
}
items
=
{
items
}
placeholder
=
"Chọn tùy chọn"
onSelect
=
{
item
=>
console
.
log
(
'Bạn đã chọn:'
,
item
)}
/
>
<
/View
>
<
Text
style
=
{[
styles
.
text_2
,
{
marginBottom
:
3
}]}
>
Danh
s
á
ch
ng
ườ
i
theo
d
õ
i
đã
ch
ọ
n
:
<
/Text
>
<
FlatList
data
=
{
dataList
}
renderItem
=
{({
item
})
=>
renderItem_1
({
item
,
onPress
:
()
=>
{}})}
keyExtractor
=
{(
item
,
index
)
=>
item
.
id
?.
toString
()
||
index
.
toString
()
}
numColumns
=
{
2
}
style
=
{{
maxHeight
:
150
,
marginBottom
:
10
}}
showsVerticalScrollIndicator
=
{
true
}
columnWrapperStyle
=
{
styles
.
flatListSelect
}
nestedScrollEnabled
=
{
true
}
scrollEnabled
=
{
true
}
/
>
<
View
style
=
{
styles
.
containerDropdown
}
>
<
Text
style
=
{[
styles
.
text
,
{
marginBottom
:
3
,
fontSize
:
R
.
fontsize
.
fontSizeLabel
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
color
:
R
.
colors
.
black
,
},
]}
>
Ng
ườ
i
th
ự
c
hi
ệ
n
c
ô
ng
vi
ệ
c
{
' '
}
<
Text
style
=
{{
color
:
R
.
colors
.
red
}}
>*<
/Text
>
<
/Text
>
<
Dropdown
height
=
{
35
}
items
=
{
items
}
placeholder
=
"Chọn tùy chọn"
onSelect
=
{
item
=>
console
.
log
(
'Bạn đã chọn:'
,
item
)}
/
>
<
/View
>
<
Text
style
=
{[
styles
.
text_2
,
{
marginBottom
:
3
}]}
>
Danh
s
á
ch
ng
ườ
i
th
ự
c
hi
ệ
n
c
ô
ng
vi
ệ
c
đã
ch
ọ
n
:
<
/Text
>
<
FlatList
data
=
{
dataList
}
renderItem
=
{({
item
})
=>
renderItem_1
({
item
,
onPress
:
()
=>
{}})}
keyExtractor
=
{(
item
,
index
)
=>
item
.
id
?.
toString
()
||
index
.
toString
()
}
numColumns
=
{
2
}
style
=
{{
maxHeight
:
150
,
marginBottom
:
10
}}
showsVerticalScrollIndicator
=
{
true
}
columnWrapperStyle
=
{
styles
.
flatListSelect
}
nestedScrollEnabled
=
{
true
}
scrollEnabled
=
{
true
}
/
>
<
/ScrollView
>
<
View
style
=
{
styles
.
modalFooter
}
>
<
TouchableOpacity
style
=
{[
styles
.
button
,
styles
.
cancelButton
]}
onPress
=
{()
=>
setShowTaskModal
(
false
)}
>
<
Text
style
=
{
styles
.
cancelButtonText
}
>
H
ủ
y
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
style
=
{[
styles
.
button
,
styles
.
submitButton
]}
onPress
=
{
handleCreateTask
}
>
<
Text
style
=
{
styles
.
submitButtonText
}
>
Th
ê
m
m
ớ
i
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/Modal
>
);
};
return
(
<
View
style
=
{
styles
.
container
}
>
<
Header
title
=
{
'Văn bản đi 2038475'
}
isBack
/>
<
View
style
=
{{
flex
:
1
}}
>
{
body
()}
<
View
style
=
{{
marginHorizontal
:
15
}}
>
<
FAB
>
<
SubButton
onPress
=
{()
=>
setShowTaskModal
(
true
)}
label
=
"Tạo công việc"
images
=
{
R
.
images
.
icMenuEdit
}
backgroundColor
=
{
R
.
colors
.
blue
}
/
>
<
/FAB
>
<
/View
>
<
/View
>
{
openTaskModal
()}
<
/View
>
);
};
...
...
src/screens/list_send_document/view.js
View file @
7aaec7c7
...
...
@@ -135,7 +135,7 @@ const ListSendView = (props) => {
<
View
style
=
{{
flex
:
0.1
}}
><
/View
>
<
Button
title
=
"Chi tiết"
onPress
=
{()
=>
navigation
.
navigate
(
ScreenName
.
DETAIL
INCOMING
DOCUMENT
)}
onPress
=
{()
=>
navigation
.
navigate
(
ScreenName
.
DETAIL
SEND
DOCUMENT
)}
backgroundColor
=
{
R
.
colors
.
blue
}
textColor
=
{
R
.
colors
.
white
}
height
=
{
25
}
...
...
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