Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4052ca0a
authored
Jul 07, 2022
by
peii
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'develop' into product
parents
a5c65353
10f67d54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
4 deletions
app/containers/common/listDataComponent/PageListArrow.js
app/containers/quickOrder/QuickOrderPage.js
app/containers/selfOrder/SelfOrderPage.js
app/containers/common/listDataComponent/PageListArrow.js
View file @
4052ca0a
...
...
@@ -56,7 +56,7 @@ class PageListArrow extends Component {
<
View
style
=
{
styles
.
item_container
}
>
<
TouchableOpacity
activeOpacity
=
{
listActOpa
}
onPress
=
{()
=>
{
return
listCallBack
?
listCallBack
()
:
''
}}
onPress
=
{()
=>
{
return
listCallBack
&&
!
listIsAudio
?
listCallBack
()
:
''
}}
>
<
CellTextStyle
style
=
{
listCellStyle
?
listCellStyle
:
''
}
>
{
listHasAster
?
<
AsteriskTextStyle
>*<
/AsteriskTextStyle> : null
}
...
...
app/containers/quickOrder/QuickOrderPage.js
View file @
4052ca0a
...
...
@@ -204,7 +204,19 @@ class EquipConsuPage extends Component {
title
:
'送货员'
,
name
:
'请选择'
,
value
:
''
,
}
},
{
id
:
'18'
,
title
:
'是否补单'
,
// 同意替换同品不同器械包
value
:
'N'
,
isRedio
:
'N'
,
// 单选
},
{
id
:
'19'
,
title
:
'是否长期借货'
,
// 同意替换同品不同器械包
value
:
'N'
,
isRedio
:
'N'
,
// 单选
},
],
subInitListOption
:
[],
// 提交成功后,初始化当前数据
submitOption
:
{
// 提交的信息
...
...
@@ -270,6 +282,8 @@ class EquipConsuPage extends Component {
OBS_MOBILE_BM_DISPLAY
:
0
,
OBS_MOBILE_SUR_FOLLOWER_DISPLAY
:
0
,
OBS_MOBILE_DELIVERYMAN_DISPLAY
:
0
,
OBS_MOBILE_SUPPLYMENT_DISPLAY
:
0
,
OBS_MOBILE_LONG_COLLECT_DISPLAY
:
0
,
},
departments
:
[]
}
...
...
@@ -1509,6 +1523,9 @@ class EquipConsuPage extends Component {
sysValues
.
OBS_MOBILE_BM_DISPLAY
>
0
&&
(
tempSubOption
.
business_manager_code
=
state
.
listOptionData
[
15
].
value
)
sysValues
.
OBS_MOBILE_SUR_FOLLOWER_DISPLAY
>
0
&&
(
tempSubOption
.
surgery_follower_code
=
state
.
listOptionData
[
16
].
value
)
sysValues
.
OBS_MOBILE_DELIVERYMAN_DISPLAY
>
0
&&
(
tempSubOption
.
deliveryman_code
=
state
.
listOptionData
[
17
].
value
)
sysValues
.
OBS_MOBILE_SUPPLYMENT_DISPLAY
>
0
&&
(
tempSubOption
.
supplement_flag
=
state
.
listOptionData
[
18
].
value
)
sysValues
.
OBS_MOBILE_LONG_COLLECT_DISPLAY
>
0
&&
(
tempSubOption
.
is_long_collected
=
state
.
listOptionData
[
19
].
value
)
let
params
=
{
access_token
:
props
.
token
,
data
:
{
...
tempSubOption
}
...
...
@@ -1614,6 +1631,26 @@ class EquipConsuPage extends Component {
that
.
handleSubmit
()
})
}
handleCertAndItemCheck
(
curData
,
certFlag
)
{
console
.
log
(
'更新'
,
curData
,
certFlag
)
let
{
listOptionData
}
=
this
.
state
let
that
=
this
listOptionData
.
map
(
function
(
item
)
{
if
(
item
.
title
===
curData
.
title
)
{
item
.
value
=
certFlag
}
})
that
.
setState
(
{
listOptionData
:
listOptionData
,
},
()
=>
{
that
.
changeCanSub
()
},
)
}
// 库存不足弹窗关闭
handleNotEnoughCloseModal
(
show
)
{
this
.
setState
({
...
...
@@ -1812,6 +1849,29 @@ class EquipConsuPage extends Component {
listCallBack
=
{()
=>
this
.
handleOrderCheck
(
listOptionData
[
9
])}
listHasArrow
=
{
true
}
/
>
{
sysValues
.
OBS_MOBILE_SUPPLYMENT_DISPLAY
>
1
&&
(
<
PageListArrow
listHasAster
=
{
sysValues
.
OBS_MOBILE_SUPPLYMENT_DISPLAY
>
2
}
listActOpa
=
{
0.8
}
listItem
=
{
listOptionData
[
18
]}
listTitle
=
{
'title'
}
listValue
=
{
'value'
}
listCallBack
=
{
radioFlag
=>
this
.
handleCertAndItemCheck
(
listOptionData
[
18
],
radioFlag
)}
listIsAudio
=
{
true
}
/
>
)}
{
sysValues
.
OBS_MOBILE_LONG_COLLECT_DISPLAY
>
1
&&
(
<
PageListArrow
listHasAster
=
{
sysValues
.
OBS_MOBILE_LONG_COLLECT_DISPLAY
>
2
}
listActOpa
=
{
0.8
}
listItem
=
{
listOptionData
[
19
]}
listTitle
=
{
'title'
}
listValue
=
{
'value'
}
listCallBack
=
{
radioFlag
=>
this
.
handleCertAndItemCheck
(
listOptionData
[
19
],
radioFlag
)}
listIsAudio
=
{
true
}
/
>
)}
{
sysValues
.
OBS_MOBILE_BOR_WARE_REQUIRED
>
1
?
<
PageListArrow
...
...
app/containers/selfOrder/SelfOrderPage.js
View file @
4052ca0a
...
...
@@ -254,6 +254,18 @@ class SelfOrderPage extends Component {
title
:
'病历号'
,
value
:
''
,
},
{
id
:
'25'
,
title
:
'是否补单'
,
// 同意替换同品不同器械包
value
:
'N'
,
isRedio
:
'N'
,
// 单选
},
{
id
:
'26'
,
title
:
'是否长期借货'
,
// 同意替换同品不同器械包
value
:
'N'
,
isRedio
:
'N'
,
// 单选
},
],
subInitListOption
:
[],
// 存储最初数据
submitOption
:
{
...
...
@@ -319,6 +331,8 @@ class SelfOrderPage extends Component {
OBS_MOBILE_SUR_FOLLOWER_DISPLAY
:
0
,
OBS_MOBILE_DELIVERYMAN_DISPLAY
:
0
,
OBS_MOBILE_BOR_WARE_REQUIRED
:
0
,
OBS_MOBILE_SUPPLYMENT_DISPLAY
:
0
,
OBS_MOBILE_LONG_COLLECT_DISPLAY
:
0
,
},
departments
:
[],
surgery_types
:
[],
...
...
@@ -1920,8 +1934,8 @@ class SelfOrderPage extends Component {
(
tempSubOption
.
hospitalization_number
=
state
.
listOptionData
[
23
].
value
)
isLendOrder
&&
patientIdProfile
.
show
&&
(
tempSubOption
.
patient_id
=
state
.
listOptionData
[
24
].
value
)
// tempSubOption.replace_item_flag = state.listOptionData[10].replace_item_flag
// tempSubOption.take_cert_flag = state.listOptionData[10].take_cert_flag
sysValues
.
OBS_MOBILE_SUPPLYMENT_DISPLAY
>
0
&&
(
tempSubOption
.
supplement_flag
=
state
.
listOptionData
[
25
].
value
)
sysValues
.
OBS_MOBILE_LONG_COLLECT_DISPLAY
>
0
&&
(
tempSubOption
.
is_long_collected
=
state
.
listOptionData
[
26
].
value
)
let
params
=
{
access_token
:
props
.
token
,
...
...
@@ -2544,6 +2558,30 @@ class SelfOrderPage extends Component {
listIsAudio
=
{
true
}
/
>
{
sysValues
.
OBS_MOBILE_SUPPLYMENT_DISPLAY
>
1
&&
(
<
PageListArrow
listHasAster
=
{
sysValues
.
OBS_MOBILE_SUPPLYMENT_DISPLAY
>
2
}
listActOpa
=
{
0.8
}
listItem
=
{
listOptionData
[
25
]}
listTitle
=
{
'title'
}
listValue
=
{
'value'
}
listCallBack
=
{
radioFlag
=>
this
.
handleCertAndItemCheck
(
listOptionData
[
25
],
radioFlag
)}
listIsAudio
=
{
true
}
/
>
)}
{
sysValues
.
OBS_MOBILE_LONG_COLLECT_DISPLAY
>
1
&&
(
<
PageListArrow
listHasAster
=
{
sysValues
.
OBS_MOBILE_LONG_COLLECT_DISPLAY
>
2
}
listActOpa
=
{
0.8
}
listItem
=
{
listOptionData
[
26
]}
listTitle
=
{
'title'
}
listValue
=
{
'value'
}
listCallBack
=
{
radioFlag
=>
this
.
handleCertAndItemCheck
(
listOptionData
[
26
],
radioFlag
)}
listIsAudio
=
{
true
}
/
>
)}
{
sysValues
.
OBS_MOBILE_BOR_WARE_REQUIRED
>
1
?
(
<
PageListArrow
listActOpa
=
{
0.8
}
...
...
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