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
b48ea1ea
authored
Feb 05, 2021
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化代码
parent
6c064d41
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
243 additions
and
468 deletions
app/containers/equipConsu/EquipConsuPage.js
app/containers/login/LoginPage.js
app/containers/quickOrder/QuickOrderPage.js
app/containers/selfOrder/module/ChooseProductPage.js
app/containers/transOrder/TransOrderPage.js
app/containers/equipConsu/EquipConsuPage.js
View file @
b48ea1ea
...
@@ -1106,17 +1106,6 @@ class EquipConsuPage extends Component {
...
@@ -1106,17 +1106,6 @@ class EquipConsuPage extends Component {
listDefaValue
=
{
'name'
}
listDefaValue
=
{
'name'
}
listTitle
=
{
'title'
}
listTitle
=
{
'title'
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={1}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'销售员'}</TitleTextStyle>
<ContInputTextStyle editable={false} defaultValue={listOptionData[0].name}></ContInputTextStyle>
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1126,19 +1115,6 @@ class EquipConsuPage extends Component {
...
@@ -1126,19 +1115,6 @@ class EquipConsuPage extends Component {
listCallBack
=
{()
=>
this
.
handleOrganizationCheck
(
listOptionData
[
1
])}
listCallBack
=
{()
=>
this
.
handleOrganizationCheck
(
listOptionData
[
1
])}
listHasArrow
=
{
true
}
listHasArrow
=
{
true
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleOrganizationCheck()}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'组织'}</TitleTextStyle>
<ContTextStyle>{listOptionData[1].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1148,19 +1124,6 @@ class EquipConsuPage extends Component {
...
@@ -1148,19 +1124,6 @@ class EquipConsuPage extends Component {
listCallBack
=
{()
=>
this
.
handleCustomerCheck
(
listOptionData
[
2
])}
listCallBack
=
{()
=>
this
.
handleCustomerCheck
(
listOptionData
[
2
])}
listHasArrow
=
{
true
}
listHasArrow
=
{
true
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleCustomerCheck()}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'客户名称'}</TitleTextStyle>
<ContTextStyle>{listOptionData[2].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1170,19 +1133,6 @@ class EquipConsuPage extends Component {
...
@@ -1170,19 +1133,6 @@ class EquipConsuPage extends Component {
listCallBack
=
{()
=>
this
.
handleOrderInfoCheck
(
listOptionData
[
3
])}
listCallBack
=
{()
=>
this
.
handleOrderInfoCheck
(
listOptionData
[
3
])}
listHasArrow
=
{
true
}
listHasArrow
=
{
true
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleOrderInfoCheck()}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'订单信息'}</TitleTextStyle>
<ContTextStyle>{listOptionData[3].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1192,27 +1142,6 @@ class EquipConsuPage extends Component {
...
@@ -1192,27 +1142,6 @@ class EquipConsuPage extends Component {
listCallBack
=
{()
=>
this
.
handleEquipDateCheck
(
listOptionData
[
4
])}
listCallBack
=
{()
=>
this
.
handleEquipDateCheck
(
listOptionData
[
4
])}
listHasArrow
=
{
true
}
listHasArrow
=
{
true
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleEquipDateCheck()}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'消耗时间'}</TitleTextStyle>
<ContTextStyle>{listOptionData[4].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
<DateModel
date={listOptionData[4].dateValue}
closeModal={(show) => this.closeDateModal(show)}
show={dateModelPop}
callback={(date) => this.dateModalCallback(date)}
/>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1224,22 +1153,6 @@ class EquipConsuPage extends Component {
...
@@ -1224,22 +1153,6 @@ class EquipConsuPage extends Component {
isTitInputStyle
=
{
true
}
isTitInputStyle
=
{
true
}
listCellStyle
=
{
styles
.
list_cell_box
}
listCellStyle
=
{
styles
.
list_cell_box
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle style={styles.cell_title}>{'患者姓名'}</TitleTextStyle>
<ContInputTextStyle
style={styles.cell_input}
placeholder={`请输入`}
onChangeText={(text) => this.handlePatNameInput(text)}
defaultValue={listOptionData[5].value}
/>
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1249,21 +1162,6 @@ class EquipConsuPage extends Component {
...
@@ -1249,21 +1162,6 @@ class EquipConsuPage extends Component {
listCallBack
=
{()
=>
this
.
handleGenderCheck
(
listOptionData
[
6
])}
listCallBack
=
{()
=>
this
.
handleGenderCheck
(
listOptionData
[
6
])}
listHasArrow
=
{
true
}
listHasArrow
=
{
true
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleGenderCheck()}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'性别'}</TitleTextStyle>
<ContTextStyle>{listOptionData[6].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1276,24 +1174,6 @@ class EquipConsuPage extends Component {
...
@@ -1276,24 +1174,6 @@ class EquipConsuPage extends Component {
listCellStyle
=
{
styles
.
list_cell_box
}
listCellStyle
=
{
styles
.
list_cell_box
}
inputKeyboardType
=
{
'numeric'
}
inputKeyboardType
=
{
'numeric'
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle style={styles.cell_title}>{'年龄'}</TitleTextStyle>
<ContInputTextStyle
style={styles.cell_input}
placeholder={`请输入`}
keyboardType={'numeric'}
onChangeText={(text) => this.handleAgeInput(text)}
defaultValue={listOptionData[7].value}
/>
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1306,24 +1186,6 @@ class EquipConsuPage extends Component {
...
@@ -1306,24 +1186,6 @@ class EquipConsuPage extends Component {
listCellStyle
=
{
styles
.
list_cell_box
}
listCellStyle
=
{
styles
.
list_cell_box
}
inputKeyboardType
=
{
'numeric'
}
inputKeyboardType
=
{
'numeric'
}
/
>
/
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle style={styles.cell_title}>{'床位'}</TitleTextStyle>
<ContInputTextStyle
style={styles.cell_input}
placeholder={`请输入`}
keyboardType={'numeric'}
onChangeText={(text) => this.handleBedInput(text)}
defaultValue={listOptionData[8].value}
/>
</CellTextStyle>
</TouchableOpacity>
</View> */
}
<
PageListArrow
<
PageListArrow
listActOpa
=
{.
8
}
listActOpa
=
{.
8
}
listHasAster
=
{
true
}
listHasAster
=
{
true
}
...
@@ -1342,23 +1204,6 @@ class EquipConsuPage extends Component {
...
@@ -1342,23 +1204,6 @@ class EquipConsuPage extends Component {
>
>
<CellTextStyle>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle style={styles.cell_title}>{'病历号'}</TitleTextStyle>
<ContInputTextStyle
style={styles.cell_input}
placeholder={`请输入`}
keyboardType={'numeric'}
onChangeText={(text) => this.handleRecordNumInput(text)}
defaultValue={listOptionData[9].value}
/>
</CellTextStyle>
</TouchableOpacity>
</View> */
}
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
>
<CellTextStyle>
<AsteriskTextStyle>*</AsteriskTextStyle>
<TitleTextStyle>{'是否结单'}</TitleTextStyle>
<TitleTextStyle>{'是否结单'}</TitleTextStyle>
<View style={styles.btn_radio_box}>
<View style={styles.btn_radio_box}>
<TouchableOpacity
<TouchableOpacity
...
@@ -1626,18 +1471,7 @@ class EquipConsuPage extends Component {
...
@@ -1626,18 +1471,7 @@ class EquipConsuPage extends Component {
// 加载放大图片弹窗
// 加载放大图片弹窗
renderZoomPicture
()
{
renderZoomPicture
()
{
let
{
isShowImage
,
currShowImgIndex
,
listOptionData
}
=
this
.
state
let
{
isShowImage
,
currShowImgIndex
,
listOptionData
}
=
this
.
state
let
{
global_domain_config
}
=
this
.
props
let
{
global_domain_config
}
=
this
.
props
// // 测试
// let zoomImages = [{
// url: 'https://obs.uat.sfrx.guke.tech/upload/dingding/image/QDw05sTo.jpg',
// props: {
// // headers: ...
// }
// },{
// url: 'https://obs.uat.sfrx.guke.tech/upload/dingding/image/QDw05sTo.jpg',
// },{
// url: 'https://obs.uat.sfrx.guke.tech/jeecg-boot/sys/common/view/upload/dingding/image/8V4599aH.jpg'
// }]
// 正式
// 正式
let
zoomImages
=
[]
let
zoomImages
=
[]
listOptionData
[
14
].
uploadImgArr
.
forEach
(
item
=>
{
listOptionData
[
14
].
uploadImgArr
.
forEach
(
item
=>
{
...
...
app/containers/login/LoginPage.js
View file @
b48ea1ea
...
@@ -56,6 +56,7 @@ class LoginPage extends Component{
...
@@ -56,6 +56,7 @@ class LoginPage extends Component{
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
getLocalUserName
()
this
.
getLocalUserName
()
this
.
setVersion
()
this
.
setVersion
()
this
.
initLoginInfo
()
},
300
)
},
300
)
}
}
...
@@ -111,6 +112,16 @@ class LoginPage extends Component{
...
@@ -111,6 +112,16 @@ class LoginPage extends Component{
})
})
}
}
// 初始化信息
initLoginInfo
()
{
let
{
subTitList
}
=
this
.
state
this
.
setState
({
isSubLoding
:
false
,
subTit
:
subTitList
[
0
],
isEnterHomeFlag
:
false
})
}
// 判断是否打开域名弹窗
// 判断是否打开域名弹窗
isOpenDomainModel
()
{
isOpenDomainModel
()
{
let
{
global_domain_config
}
=
this
.
props
let
{
global_domain_config
}
=
this
.
props
...
@@ -311,7 +322,7 @@ class LoginPage extends Component{
...
@@ -311,7 +322,7 @@ class LoginPage extends Component{
callback
=
{(
domainVal
)
=>
this
.
fillDomainCallBack
(
domainVal
)}
callback
=
{(
domainVal
)
=>
this
.
fillDomainCallBack
(
domainVal
)}
domainValue
=
{
tempGlobalDomain
}
domainValue
=
{
tempGlobalDomain
}
/
>
/
>
{
isEnterHomeFlag
?
<
UpgradeView
version_apk
=
{
version_apk
}
/> : null
}
{
/* { isEnterHomeFlag ? <UpgradeView version_apk={version_apk}/> : null} */
}
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
<
/SafeAreaView
>
<
/SafeAreaView
>
...
...
app/containers/quickOrder/QuickOrderPage.js
View file @
b48ea1ea
...
@@ -66,6 +66,7 @@ import {
...
@@ -66,6 +66,7 @@ import {
QUICK_SUBMIT_FAILURE
QUICK_SUBMIT_FAILURE
}
from
'../../base/ActionTypes'
;
}
from
'../../base/ActionTypes'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
PageListArrow
from
'../common/listDataComponent/PageListArrow'
;
class
EquipConsuPage
extends
Component
{
class
EquipConsuPage
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -709,13 +710,13 @@ class EquipConsuPage extends Component {
...
@@ -709,13 +710,13 @@ class EquipConsuPage extends Component {
return
result
return
result
}
}
// 组织 点击
// 组织 点击
handleOrganizationCheck
()
{
handleOrganizationCheck
(
curData
)
{
let
{
state
,
props
}
=
this
let
{
state
,
props
}
=
this
this
.
setState
({
this
.
setState
({
currentTitle
:
'组织'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
1
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
1
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
let
params
=
{
let
params
=
{
...
@@ -762,15 +763,14 @@ class EquipConsuPage extends Component {
...
@@ -762,15 +763,14 @@ class EquipConsuPage extends Component {
// }
// }
}
}
// 客户名称 点击
// 客户名称 点击
handleCustomerCheck
()
{
handleCustomerCheck
(
curData
)
{
let
{
state
}
=
this
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
())
{
if
(
this
.
judgeOrgIsNull
())
{
that
.
setState
({
that
.
setState
({
currentTitle
:
'客户名称'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
2
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
2
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
// 在此修改接口
// 在此修改接口
...
@@ -831,15 +831,15 @@ class EquipConsuPage extends Component {
...
@@ -831,15 +831,15 @@ class EquipConsuPage extends Component {
// }
// }
}
}
// 收单地点 点击
// 收单地点 点击
handleBillCheck
()
{
handleBillCheck
(
curData
)
{
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
that
.
setState
({
that
.
setState
({
currentTitle
:
'收单地点'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
listOptionData
[
3
]
.
name
,
name
:
curData
.
name
,
value
:
listOptionData
[
3
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
let
tempOption
=
[]
let
tempOption
=
[]
...
@@ -880,15 +880,15 @@ class EquipConsuPage extends Component {
...
@@ -880,15 +880,15 @@ class EquipConsuPage extends Component {
}
}
}
}
// 收货地点 点击
// 收货地点 点击
handleShipCheck
()
{
handleShipCheck
(
curData
)
{
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
that
.
setState
({
that
.
setState
({
currentTitle
:
'收货地点'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
listOptionData
[
4
]
.
name
,
name
:
curData
.
name
,
value
:
listOptionData
[
4
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
let
tempOption
=
[]
let
tempOption
=
[]
...
@@ -929,16 +929,16 @@ class EquipConsuPage extends Component {
...
@@ -929,16 +929,16 @@ class EquipConsuPage extends Component {
}
}
}
}
// 主治医生 点击
// 主治医生 点击
handleDoctorCheck
()
{
handleDoctorCheck
(
curData
)
{
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
// 点击
// 点击
that
.
setState
({
that
.
setState
({
currentTitle
:
'主治医生'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
listOptionData
[
5
]
.
name
,
name
:
curData
.
name
,
value
:
listOptionData
[
5
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
let
tempOption
=
[]
let
tempOption
=
[]
...
@@ -967,28 +967,27 @@ class EquipConsuPage extends Component {
...
@@ -967,28 +967,27 @@ class EquipConsuPage extends Component {
}
}
}
}
// 主治医生 输入
// 主治医生 输入
handleDoctorInput
(
text
)
{
handleDoctorInput
(
text
,
curData
)
{
let
{
listOptionData
}
=
this
.
state
let
{
listOptionData
}
=
this
.
state
listOptionData
.
map
(
function
(
item
)
{
if
(
item
.
title
===
curData
.
title
)
{
item
.
inputValue
=
text
}
})
this
.
setState
({
this
.
setState
({
listOptionData
:
listOptionData
.
map
(
item
=>
{
listOptionData
:
listOptionData
if
(
item
.
title
===
'主治医生'
)
{
item
.
inputValue
=
text
}
return
item
})
})
})
}
}
// 手术类型 点击
// 手术类型 点击
handleSurTypeCheck
()
{
handleSurTypeCheck
(
curData
)
{
let
{
listOptionData
}
=
this
.
state
let
{
props
}
=
this
let
{
props
}
=
this
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
that
.
setState
({
that
.
setState
({
currentTitle
:
'手术类型'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
listOptionData
[
6
]
.
name
,
name
:
curData
.
name
,
value
:
listOptionData
[
6
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
let
params
=
{
let
params
=
{
...
@@ -1000,14 +999,14 @@ class EquipConsuPage extends Component {
...
@@ -1000,14 +999,14 @@ class EquipConsuPage extends Component {
}
}
}
}
// 手术模板 点击
// 手术模板 点击
handleMatchTempCheck
()
{
handleMatchTempCheck
(
curData
)
{
let
{
state
,
props
}
=
this
let
{
state
,
props
}
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
this
.
setState
({
this
.
setState
({
currentTitle
:
'手术模板'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
7
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
7
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
// 在此修改接口
// 在此修改接口
...
@@ -1069,17 +1068,17 @@ class EquipConsuPage extends Component {
...
@@ -1069,17 +1068,17 @@ class EquipConsuPage extends Component {
}
}
}
}
// 手术时间 点击 2020-04-23 17:41
// 手术时间 点击 2020-04-23 17:41
handleSurDateCheck
()
{
handleSurDateCheck
(
curData
)
{
let
{
listOptionData
}
=
this
.
state
let
{
listOptionData
}
=
this
.
state
let
date
=
listOptionData
[
8
]
.
value
let
date
=
curData
.
value
if
(
date
)
{
if
(
date
)
{
listOptionData
.
map
(
function
(
item
)
{
if
(
item
.
title
===
curData
.
title
)
{
item
.
dateValue
=
formatStrForDate
(
date
)
}
})
this
.
setState
({
this
.
setState
({
listOptionData
:
listOptionData
.
map
((
item
,
index
)
=>
{
listOptionData
:
listOptionData
if
(
item
.
title
===
'手术时间'
)
{
item
.
dateValue
=
formatStrForDate
(
date
)
}
return
item
})
})
})
}
}
this
.
closeDateModal
(
true
)
this
.
closeDateModal
(
true
)
...
@@ -1105,14 +1104,14 @@ class EquipConsuPage extends Component {
...
@@ -1105,14 +1104,14 @@ class EquipConsuPage extends Component {
})
})
}
}
// 订单类型 点击
// 订单类型 点击
handleOrderCheck
()
{
handleOrderCheck
(
curData
)
{
let
{
state
,
props
}
=
this
let
{
props
}
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
this
.
setState
({
this
.
setState
({
currentTitle
:
'订单类型'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
9
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
9
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
// 在此修改接口
// 在此修改接口
...
@@ -1125,14 +1124,14 @@ class EquipConsuPage extends Component {
...
@@ -1125,14 +1124,14 @@ class EquipConsuPage extends Component {
}
}
}
}
// 借货仓库 点击
// 借货仓库 点击
handleWareCheck
(){
handleWareCheck
(
curData
){
let
{
state
,
props
}
=
this
let
{
state
,
props
}
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
this
.
setState
({
this
.
setState
({
currentTitle
:
state
.
listOptionData
[
10
]
.
title
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
10
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
10
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
// 在此修改接口
// 在此修改接口
...
@@ -1331,13 +1330,6 @@ class EquipConsuPage extends Component {
...
@@ -1331,13 +1330,6 @@ class EquipConsuPage extends Component {
}
else
{
}
else
{
this
.
showWarnError
(
sysRes
)
this
.
showWarnError
(
sysRes
)
}
}
// else if(sysRes.error_code == 41006) {
// show('登录过期,请重新登录');
// this.props.exitLoginStatus();
// } else {
// let error_msg = sysRes.error_msg || sysRes.message
// show(error_msg);
// }
}
}
showWarnError
(
res
){
showWarnError
(
res
){
if
(
res
.
error_code
==
41006
)
{
if
(
res
.
error_code
==
41006
)
{
...
@@ -1354,161 +1346,113 @@ class EquipConsuPage extends Component {
...
@@ -1354,161 +1346,113 @@ class EquipConsuPage extends Component {
let
{
listOptionData
,
dateModelPop
,
bor_ware_required
}
=
this
.
state
let
{
listOptionData
,
dateModelPop
,
bor_ware_required
}
=
this
.
state
return
(
return
(
<
View
style
=
{
styles
.
list_cont
}
>
<
View
style
=
{
styles
.
list_cont
}
>
<
View
style
=
{
styles
.
item_container
}
>
<
PageListArrow
<
TouchableOpacity
listActOpa
=
{
1
}
activeOpacity
=
{
1
}
listEditAble
=
{
true
}
>
listHasAster
=
{
true
}
<
CellTextStyle
>
listItem
=
{
listOptionData
[
0
]}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
listDefaValue
=
{
'name'
}
<
TitleTextStyle
>
{
'销售员'
}
<
/TitleTextStyle
>
listTitle
=
{
'title'
}
<
ContInputTextStyle
editable
=
{
false
}
defaultValue
=
{
listOptionData
[
0
].
name
}
><
/ContInputTextStyle
>
/
>
<
/CellTextStyle
>
<
PageListArrow
<
/TouchableOpacity
>
listActOpa
=
{.
8
}
<
/View
>
listHasAster
=
{
true
}
<
View
style
=
{
styles
.
item_container
}
>
listItem
=
{
listOptionData
[
1
]}
<
TouchableOpacity
listName
=
{
'name'
}
activeOpacity
=
{.
8
}
listTitle
=
{
'title'
}
onPress
=
{()
=>
this
.
handleOrganizationCheck
()}
listCallBack
=
{()
=>
this
.
handleOrganizationCheck
(
listOptionData
[
1
])}
>
listHasArrow
=
{
true
}
<
CellTextStyle
>
/
>
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
<
PageListArrow
<
TitleTextStyle
>
{
'组织'
}
<
/TitleTextStyle
>
listActOpa
=
{.
8
}
<
ContTextStyle
>
{
listOptionData
[
1
].
name
}
<
/ContTextStyle
>
listHasAster
=
{
true
}
{
this
.
renderRightArrowItem
()
}
listItem
=
{
listOptionData
[
2
]}
<
/CellTextStyle
>
listName
=
{
'name'
}
<
/TouchableOpacity
>
listTitle
=
{
'title'
}
<
/View
>
listCallBack
=
{()
=>
this
.
handleCustomerCheck
(
listOptionData
[
2
])}
<
View
style
=
{
styles
.
item_container
}
>
listHasArrow
=
{
true
}
<
TouchableOpacity
/
>
activeOpacity
=
{.
8
}
<
PageListArrow
onPress
=
{()
=>
this
.
handleCustomerCheck
()}
listActOpa
=
{.
8
}
>
listHasAster
=
{
true
}
<
CellTextStyle
>
listItem
=
{
listOptionData
[
3
]}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
listName
=
{
'name'
}
<
TitleTextStyle
>
{
'客户名称'
}
<
/TitleTextStyle
>
listTitle
=
{
'title'
}
<
ContTextStyle
>
{
listOptionData
[
2
].
name
}
<
/ContTextStyle
>
listCallBack
=
{()
=>
this
.
handleBillCheck
(
listOptionData
[
3
])}
{
this
.
renderRightArrowItem
()
}
listHasArrow
=
{
true
}
<
/CellTextStyle
>
/
>
<
/TouchableOpacity
>
<
PageListArrow
<
/View
>
listActOpa
=
{.
8
}
<
View
style
=
{
styles
.
item_container
}
>
listHasAster
=
{
true
}
<
TouchableOpacity
listItem
=
{
listOptionData
[
4
]}
activeOpacity
=
{.
8
}
listName
=
{
'name'
}
onPress
=
{()
=>
this
.
handleBillCheck
()}
listTitle
=
{
'title'
}
>
listCallBack
=
{()
=>
this
.
handleShipCheck
(
listOptionData
[
4
])}
<
CellTextStyle
>
listHasArrow
=
{
true
}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
/
>
<
TitleTextStyle
>
{
'收单地点'
}
<
/TitleTextStyle
>
<
PageListArrow
<
ContTextStyle
>
{
listOptionData
[
3
].
name
}
<
/ContTextStyle
>
listActOpa
=
{.
8
}
{
this
.
renderRightArrowItem
()
}
listHasAster
=
{
true
}
<
/CellTextStyle
>
listItem
=
{
listOptionData
[
5
]}
<
/TouchableOpacity
>
listName
=
{
'name'
}
<
/View
>
listTitle
=
{
'title'
}
<
View
style
=
{
styles
.
item_container
}
>
listCallBack
=
{()
=>
this
.
handleDoctorCheck
(
listOptionData
[
5
])}
<
TouchableOpacity
listHasArrow
=
{
true
}
activeOpacity
=
{.
8
}
listOtherInput
=
{
'请输入主治医生'
}
onPress
=
{()
=>
this
.
handleShipCheck
()}
otherInput
=
{
'showInput'
}
>
otherInputCallBack
=
{(
text
)
=>
this
.
handleDoctorInput
(
text
,
listOptionData
[
5
])}
<
CellTextStyle
>
/
>
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
<
PageListArrow
<
TitleTextStyle
>
{
'收货地点'
}
<
/TitleTextStyle
>
listActOpa
=
{.
8
}
<
ContTextStyle
>
{
listOptionData
[
4
].
name
}
<
/ContTextStyle
>
listItem
=
{
listOptionData
[
6
]}
{
this
.
renderRightArrowItem
()
}
listName
=
{
'name'
}
<
/CellTextStyle
>
listTitle
=
{
'title'
}
<
/TouchableOpacity
>
listCallBack
=
{()
=>
this
.
handleSurTypeCheck
(
listOptionData
[
6
])}
<
/View
>
listHasArrow
=
{
true
}
<
View
style
=
{
styles
.
item_container
}
>
/
>
<
TouchableOpacity
<
PageListArrow
activeOpacity
=
{.
8
}
listActOpa
=
{.
8
}
onPress
=
{()
=>
this
.
handleDoctorCheck
()}
listHasAster
=
{
true
}
>
listItem
=
{
listOptionData
[
7
]}
<
CellTextStyle
>
listName
=
{
'name'
}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
listTitle
=
{
'title'
}
<
TitleTextStyle
>
{
'主治医生'
}
<
/TitleTextStyle
>
listCallBack
=
{()
=>
this
.
handleMatchTempCheck
(
listOptionData
[
7
])}
<
ContTextStyle
>
{
listOptionData
[
5
].
name
}
<
/ContTextStyle
>
listHasArrow
=
{
true
}
{
this
.
renderRightArrowItem
()
}
/
>
<
/CellTextStyle
>
<
PageListArrow
<
/TouchableOpacity
>
listActOpa
=
{.
8
}
{
listHasAster
=
{
true
}
listOptionData
[
5
].
showInput
?
listItem
=
{
listOptionData
[
8
]}
<
CellTextStyle
>
listName
=
{
'name'
}
<
ContInputTextStyle
listTitle
=
{
'title'
}
style
=
{
styles
.
cell_input
}
listCallBack
=
{()
=>
this
.
handleSurDateCheck
(
listOptionData
[
8
])}
placeholder
=
{
`请输入主治医生`
}
listHasArrow
=
{
true
}
onChangeText
=
{(
text
)
=>
this
.
handleDoctorInput
(
text
)}
/
>
><
/ContInputTextStyle
>
<
PageListArrow
<
/CellTextStyle> : nul
l
listActOpa
=
{.
8
}
}
listHasAster
=
{
true
}
<
/View
>
listItem
=
{
listOptionData
[
9
]}
<
View
style
=
{
styles
.
item_container
}
>
listName
=
{
'name'
}
<
TouchableOpacity
listTitle
=
{
'title'
}
activeOpacity
=
{.
8
}
listCallBack
=
{()
=>
this
.
handleOrderCheck
(
listOptionData
[
9
])}
onPress
=
{()
=>
this
.
handleSurTypeCheck
()}
listHasArrow
=
{
true
}
>
/
>
<
CellTextStyle
>
{
/* <PageListArrow
<
TitleTextStyle
>
{
'手术类型'
}
<
/TitleTextStyle
>
listActOpa={.8}
<
ContTextStyle
>
{
listOptionData
[
6
].
name
}
<
/ContTextStyle
>
listHasAster={bor_ware_required === 'Y'}
{
this
.
renderRightArrowItem
()
}
listItem={listOptionData[10]}
<
/CellTextStyle
>
listName={'name'}
<
/TouchableOpacity
>
listTitle={'title'}
<
/View
>
listCallBack={() => this.handleWareCheck(listOptionData[10])}
<
View
style
=
{
styles
.
item_container
}
>
listHasArrow={true}
<
TouchableOpacity
/> */
}
activeOpacity
=
{.
8
}
onPress
=
{()
=>
this
.
handleMatchTempCheck
()}
<
DateModel
>
date
=
{
listOptionData
[
8
].
dateValue
}
<
CellTextStyle
>
closeModal
=
{(
show
)
=>
this
.
closeDateModal
(
show
)}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
show
=
{
dateModelPop
}
<
TitleTextStyle
>
{
'手术模板'
}
<
/TitleTextStyle
>
callback
=
{(
date
)
=>
this
.
dateModalCallback
(
date
,
listOptionData
[
8
])}
<
ContTextStyle
>
{
listOptionData
[
7
].
name
}
<
/ContTextStyle
>
/
>
{
this
.
renderRightArrowItem
()
}
<
/CellTextStyle
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{
styles
.
item_container
}
>
<
TouchableOpacity
activeOpacity
=
{.
8
}
onPress
=
{()
=>
this
.
handleSurDateCheck
()}
>
<
CellTextStyle
>
<
TitleTextStyle
>
{
'手术时间'
}
<
/TitleTextStyle
>
<
ContTextStyle
>
{
listOptionData
[
8
].
name
}
<
/ContTextStyle
>
{
this
.
renderRightArrowItem
()
}
<
/CellTextStyle
>
<
/TouchableOpacity>
<
DateModel
date
=
{
listOptionData
[
8
].
dateValue
}
closeModal
=
{(
show
)
=>
this
.
closeDateModal
(
show
)}
show
=
{
dateModelPop
}
callback
=
{(
date
)
=>
this
.
dateModalCallback
(
date
)}
/
>
<
/View
>
<
View
style
=
{
styles
.
item_container
}
>
<
TouchableOpacity
activeOpacity
=
{.
8
}
onPress
=
{()
=>
this
.
handleOrderCheck
()}
>
<
CellTextStyle
>
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
<
TitleTextStyle
>
{
'订单类型'
}
<
/TitleTextStyle
>
<
ContTextStyle
>
{
listOptionData
[
9
].
name
}
<
/ContTextStyle
>
{
this
.
renderRightArrowItem
()
}
<
/CellTextStyle
>
<
/TouchableOpacity
>
<
/View
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleWareCheck()}
>
<CellTextStyle>
{ bor_ware_required === 'Y' ? <AsteriskTextStyle>*</AsteriskTextStyle> : null}
<TitleTextStyle>{listOptionData[10].title}</TitleTextStyle>
<ContTextStyle>{listOptionData[10].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
</View> */
}
{
this
.
renderPickerModel
()
}
{
this
.
renderPickerModel
()
}
<
/View
>
<
/View
>
)
)
...
...
app/containers/selfOrder/module/ChooseProductPage.js
View file @
b48ea1ea
...
@@ -459,7 +459,7 @@ class ChooseProductPage extends Component {
...
@@ -459,7 +459,7 @@ class ChooseProductPage extends Component {
left_item
[
LocalVariable
.
SELECTED_QUQNTITY
]
=
0
left_item
[
LocalVariable
.
SELECTED_QUQNTITY
]
=
0
if
(
left_item
.
category_code
===
LocalVariable
.
SURGICAL_TEMPLATE
||
left_item
.
category_code
===
LocalVariable
.
NAIL_BOX
||
left_item
.
category_code
===
LocalVariable
.
EQUIPMENT_BAG
||
left_item
.
category_code
===
LocalVariable
.
SCATTERED_EQUIPMENT
)
{
if
(
left_item
.
category_code
===
LocalVariable
.
SURGICAL_TEMPLATE
||
left_item
.
category_code
===
LocalVariable
.
NAIL_BOX
||
left_item
.
category_code
===
LocalVariable
.
EQUIPMENT_BAG
||
left_item
.
category_code
===
LocalVariable
.
SCATTERED_EQUIPMENT
)
{
if
(
left_item
[
LocalVariable
.
SELECTED_DATA_ARR
].
length
)
{
if
(
left_item
[
LocalVariable
.
SELECTED_DATA_ARR
]
&&
left_item
[
LocalVariable
.
SELECTED_DATA_ARR
]
.
length
)
{
// 加减
// 加减
left_item
[
LocalVariable
.
SELECTED_DATA_ARR
].
map
(
arr_obj
=>
{
left_item
[
LocalVariable
.
SELECTED_DATA_ARR
].
map
(
arr_obj
=>
{
left_item
[
LocalVariable
.
SELECTED_QUQNTITY
]
+=
arr_obj
[
LocalVariable
.
QUANTITY_FIELD
]
left_item
[
LocalVariable
.
SELECTED_QUQNTITY
]
+=
arr_obj
[
LocalVariable
.
QUANTITY_FIELD
]
...
...
app/containers/transOrder/TransOrderPage.js
View file @
b48ea1ea
...
@@ -65,6 +65,7 @@ import {
...
@@ -65,6 +65,7 @@ import {
import
ImagePicker
from
'react-native-image-picker'
;
import
ImagePicker
from
'react-native-image-picker'
;
import
{
exitLoginStatus
,
requestSysProfile
}
from
'../../action/LoginAction'
;
import
{
exitLoginStatus
,
requestSysProfile
}
from
'../../action/LoginAction'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
PageListArrow
from
'../common/listDataComponent/PageListArrow'
;
class
TransOrderPage
extends
Component
{
class
TransOrderPage
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -641,13 +642,13 @@ class TransOrderPage extends Component {
...
@@ -641,13 +642,13 @@ class TransOrderPage extends Component {
}
}
// 组织 点击
// 组织 点击
handleOrganizationCheck
()
{
handleOrganizationCheck
(
curData
)
{
let
{
state
,
props
}
=
this
let
{
props
}
=
this
this
.
setState
({
this
.
setState
({
currentTitle
:
'组织'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
1
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
1
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
let
params
=
{
let
params
=
{
...
@@ -695,15 +696,15 @@ class TransOrderPage extends Component {
...
@@ -695,15 +696,15 @@ class TransOrderPage extends Component {
}
}
// 客户名称 点击
// 客户名称 点击
handleCustomerCheck
()
{
handleCustomerCheck
(
curData
)
{
let
{
state
,
props
}
=
this
let
{
state
,
props
}
=
this
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
())
{
if
(
this
.
judgeOrgIsNull
())
{
that
.
setState
({
that
.
setState
({
currentTitle
:
'客户名称'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
2
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
2
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
// 在此修改接口
// 在此修改接口
...
@@ -758,15 +759,15 @@ class TransOrderPage extends Component {
...
@@ -758,15 +759,15 @@ class TransOrderPage extends Component {
}
}
// 目标订单信息 点击
// 目标订单信息 点击
handleTargetOrderCheck
()
{
handleTargetOrderCheck
(
curData
)
{
let
{
state
,
props
}
=
this
let
{
state
,
props
}
=
this
let
that
=
this
let
that
=
this
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
())
{
that
.
setState
({
that
.
setState
({
currentTitle
:
'目标订单信息'
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
3
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
3
]
.
value
value
:
curData
.
value
}
}
},
()
=>
{
},
()
=>
{
// 在此修改接口
// 在此修改接口
...
@@ -827,17 +828,20 @@ class TransOrderPage extends Component {
...
@@ -827,17 +828,20 @@ class TransOrderPage extends Component {
// }
// }
}
}
// 目标仓库 点击
// 目标仓库 点击
handleWareCheck
(){
handleWareCheck
(
curData
){
let
{
state
,
props
}
=
this
let
that
=
this
let
that
=
this
if
(
that
.
judgeOrgIsNull
()
&&
that
.
judgeCustomerIsNull
())
{
if
(
that
.
judgeOrgIsNull
()
&&
that
.
judgeCustomerIsNull
())
{
let
tempOption
=
this
.
changeNameAndValue
(
state
.
listOptionData
[
4
].
sub_options
,
'destination_inv_name'
,
'destination_inv_code'
)
let
tempOption
=
dedupQuoteArray
(
curData
.
sub_options
,
'destination_inv_code'
)
let
filterOpt
=
dedupQuoteArray
(
tempOption
,
'destination_inv_code'
)
let
filterOpt
=
this
.
changeNameAndValue
(
tempOption
,
'destination_inv_name'
,
'destination_inv_code'
)
if
(
filterOpt
.
length
===
0
)
{
show
(
`当前
${
curData
.
title
}
为空`
)
return
}
that
.
setState
({
that
.
setState
({
currentTitle
:
state
.
listOptionData
[
4
]
.
title
,
currentTitle
:
curData
.
title
,
currentItem
:
{
currentItem
:
{
name
:
state
.
listOptionData
[
4
]
.
name
,
name
:
curData
.
name
,
value
:
state
.
listOptionData
[
4
]
.
value
value
:
curData
.
value
},
},
listCurrentOption
:
[...
filterOpt
]
listCurrentOption
:
[...
filterOpt
]
},
()
=>
{
},
()
=>
{
...
@@ -1200,69 +1204,51 @@ class TransOrderPage extends Component {
...
@@ -1200,69 +1204,51 @@ class TransOrderPage extends Component {
let
{
listOptionData
,
bor_ware_required
}
=
this
.
state
let
{
listOptionData
,
bor_ware_required
}
=
this
.
state
return
(
return
(
<
View
style
=
{
styles
.
list_cont
}
>
<
View
style
=
{
styles
.
list_cont
}
>
<
View
style
=
{
styles
.
item_container
}
>
<
PageListArrow
<
TouchableOpacity
listActOpa
=
{
1
}
activeOpacity
=
{
1
}
listEditAble
=
{
true
}
>
listHasAster
=
{
true
}
<
CellTextStyle
>
listItem
=
{
listOptionData
[
0
]}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
listDefaValue
=
{
'name'
}
<
TitleTextStyle
>
{
'销售员'
}
<
/TitleTextStyle
>
listTitle
=
{
'title'
}
<
ContInputTextStyle
editable
=
{
false
}
defaultValue
=
{
listOptionData
[
0
].
name
}
><
/ContInputTextStyle
>
/
>
<
/CellTextStyle
>
<
PageListArrow
<
/TouchableOpacity
>
listActOpa
=
{.
8
}
<
/View
>
listHasAster
=
{
true
}
<
View
style
=
{
styles
.
item_container
}
>
listItem
=
{
listOptionData
[
1
]}
<
TouchableOpacity
listName
=
{
'name'
}
activeOpacity
=
{.
8
}
listTitle
=
{
'title'
}
onPress
=
{()
=>
this
.
handleOrganizationCheck
()}
listCallBack
=
{()
=>
this
.
handleOrganizationCheck
(
listOptionData
[
1
])}
>
listHasArrow
=
{
true
}
<
CellTextStyle
>
/
>
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
<
PageListArrow
<
TitleTextStyle
>
{
'组织'
}
<
/TitleTextStyle
>
listActOpa
=
{.
8
}
<
ContTextStyle
>
{
listOptionData
[
1
].
name
}
<
/ContTextStyle
>
listHasAster
=
{
true
}
{
this
.
renderRightArrowItem
()
}
listItem
=
{
listOptionData
[
2
]}
<
/CellTextStyle
>
listName
=
{
'name'
}
<
/TouchableOpacity
>
listTitle
=
{
'title'
}
<
/View
>
listCallBack
=
{()
=>
this
.
handleCustomerCheck
(
listOptionData
[
2
])}
<
View
style
=
{
styles
.
item_container
}
>
listHasArrow
=
{
true
}
<
TouchableOpacity
/
>
activeOpacity
=
{.
8
}
<
PageListArrow
onPress
=
{()
=>
this
.
handleCustomerCheck
()}
listActOpa
=
{.
8
}
>
listHasAster
=
{
true
}
<
CellTextStyle
>
listItem
=
{
listOptionData
[
3
]}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
listName
=
{
'name'
}
<
TitleTextStyle
>
{
'客户名称'
}
<
/TitleTextStyle
>
listTitle
=
{
'title'
}
<
ContTextStyle
>
{
listOptionData
[
2
].
name
}
<
/ContTextStyle
>
listCallBack
=
{()
=>
this
.
handleTargetOrderCheck
(
listOptionData
[
3
])}
{
this
.
renderRightArrowItem
()
}
listHasArrow
=
{
true
}
<
/CellTextStyle
>
listMaxLines
=
{
3
}
<
/TouchableOpacity
>
/
>
<
/View
>
{
/* <PageListArrow
<
View
style
=
{
styles
.
item_container
}
>
listActOpa={.8}
<
TouchableOpacity
listHasAster={bor_ware_required === 'Y'}
activeOpacity
=
{.
8
}
listItem={listOptionData[4]}
onPress
=
{()
=>
this
.
handleTargetOrderCheck
()}
listName={'name'}
>
listTitle={'title'}
<
CellTextStyle
>
listCallBack={() => this.handleWareCheck(listOptionData[4])}
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
listHasArrow={true}
<
TitleTextStyle
>
{
'目标订单信息'
}
<
/TitleTextStyle
>
/> */
}
<
ContTextStyle
style
=
{
styles
.
small_txt
}
>
{
listOptionData
[
3
].
name
}
<
/ContTextStyle
>
{
this
.
renderRightArrowItem
()
}
<
/CellTextStyle
>
<
/TouchableOpacity
>
<
/View
>
{
/* <View style={styles.item_container}>
<TouchableOpacity
activeOpacity={.8}
onPress={() => this.handleWareCheck()}
>
<CellTextStyle>
{ bor_ware_required === 'Y' ? <AsteriskTextStyle>*</AsteriskTextStyle> : null}
<TitleTextStyle>{listOptionData[4].title}</TitleTextStyle>
<ContTextStyle>{listOptionData[4].name}</ContTextStyle>
{ this.renderRightArrowItem() }
</CellTextStyle>
</TouchableOpacity>
</View> */
}
{
this
.
renderPickerModel
()
}
{
this
.
renderPickerModel
()
}
...
...
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