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
9e28ac0a
authored
Aug 13, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整转单查询 - 限制必须输入一个条件、请求【来源借货订单号】接口参数问题、以及ios版本号
parent
0a948e1a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
51 deletions
app/containers/historicalOrder/HistoricalOrderPage.js
app/containers/transOrder/TransOrderPage.js
app/containers/transOrder/module/TransSearchPage.js
ios/BoneHouse_Business_APP.xcodeproj/project.pbxproj
ios/BoneHouse_Business_APP.xcodeproj/xcshareddata/xcschemes/BoneHouse_Business_APP.xcscheme
app/containers/historicalOrder/HistoricalOrderPage.js
View file @
9e28ac0a
...
@@ -601,7 +601,9 @@ const styles = StyleSheet.create({
...
@@ -601,7 +601,9 @@ const styles = StyleSheet.create({
flexDirection
:
'row'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
justifyContent
:
'space-between'
},
},
cont_lef
:
{},
cont_lef
:
{
maxWidth
:
'80%'
},
cont_lef_tit
:
{
cont_lef_tit
:
{
color
:
promary_text_color
,
color
:
promary_text_color
,
fontSize
:
18
,
fontSize
:
18
,
...
...
app/containers/transOrder/TransOrderPage.js
View file @
9e28ac0a
...
@@ -810,7 +810,9 @@ class TransOrderPage extends Component {
...
@@ -810,7 +810,9 @@ class TransOrderPage extends Component {
let
{
listOptionData
}
=
this
.
state
let
{
listOptionData
}
=
this
.
state
let
subTransObj
=
{
let
subTransObj
=
{
seller_name
:
listOptionData
[
0
].
name
,
seller_name
:
listOptionData
[
0
].
name
,
seller_code
:
listOptionData
[
0
].
value
,
org_name
:
listOptionData
[
1
].
name
,
org_name
:
listOptionData
[
1
].
name
,
org_code
:
listOptionData
[
1
].
value
,
customer_code
:
listOptionData
[
2
].
value
,
customer_code
:
listOptionData
[
2
].
value
,
collect_number
:
listOptionData
[
3
].
value
collect_number
:
listOptionData
[
3
].
value
}
}
...
...
app/containers/transOrder/module/TransSearchPage.js
View file @
9e28ac0a
...
@@ -102,13 +102,6 @@ class TransSearchPage extends Component {
...
@@ -102,13 +102,6 @@ class TransSearchPage extends Component {
// surgery_collect_number: "SC20200529000010",
// surgery_collect_number: "SC20200529000010",
// serial_number: '2001202001001771',
// serial_number: '2001202001001771',
// select: false
// select: false
// },{
// "id": "1",
// item_name: '人工髋关节假体-JS-HB ||| T2',
// specification: '3g,Ytg-DG-SZGT',
// surgery_collect_number: "SC20200529000010",
// serial_number: '2001202001001772',
// select: false
// }
// }
],
],
allConOption
:
[],
// 所有数据(未筛选过的)
allConOption
:
[],
// 所有数据(未筛选过的)
...
@@ -125,14 +118,6 @@ class TransSearchPage extends Component {
...
@@ -125,14 +118,6 @@ class TransSearchPage extends Component {
showTypePop
:
false
,
// 选择器弹窗
showTypePop
:
false
,
// 选择器弹窗
listCurrentOption
:
[
// 当前选择器数据
listCurrentOption
:
[
// 当前选择器数据
// {
// {
// name: '男cs',
// value: 'boy'
// },
// {
// name: '女cs',
// value: 'girl'
// },
// {
// name: '其他',
// name: '其他',
// value: 'other'
// value: 'other'
// }
// }
...
@@ -252,7 +237,9 @@ class TransSearchPage extends Component {
...
@@ -252,7 +237,9 @@ class TransSearchPage extends Component {
}
}
let
{
global_domain_config
}
=
that
.
props
let
{
global_domain_config
}
=
that
.
props
that
.
changeLodingFlag
(
true
)
that
.
changeLodingFlag
(
true
)
console
.
log
(
'params-------'
,
params
)
let
sourResult
=
await
requestSubSourBorOrdNum
(
global_domain_config
,
params
)
let
sourResult
=
await
requestSubSourBorOrdNum
(
global_domain_config
,
params
)
console
.
log
(
'sourResult------==========------'
,
sourResult
)
if
(
sourResult
.
error_code
===
0
)
{
if
(
sourResult
.
error_code
===
0
)
{
that
.
changeLodingFlag
(
false
)
that
.
changeLodingFlag
(
false
)
let
{
data
:
{
surgery_collect_headers
}
}
=
sourResult
let
{
data
:
{
surgery_collect_headers
}
}
=
sourResult
...
@@ -363,21 +350,22 @@ class TransSearchPage extends Component {
...
@@ -363,21 +350,22 @@ class TransSearchPage extends Component {
let
{
listOptionData
}
=
this
.
state
;
let
{
listOptionData
}
=
this
.
state
;
let
seaFlag
=
false
let
seaFlag
=
false
let
that
=
this
let
that
=
this
for
(
let
item
of
listOptionData
)
{
//
for(let item of listOptionData) {
// 当前查询数据
//
// 当前查询数据
if
(
item
.
value
)
{
//
if(item.value) {
seaFlag
=
true
//
seaFlag = true
break
//
break
}
//
}
}
//
}
let
curLen
=
curForm
&&
Object
.
keys
(
curForm
).
length
let
curLen
=
curForm
&&
Object
.
keys
(
curForm
).
length
if
(
curLen
)
{
// if(curLen) {
// 已存在明细数据
// // 已存在明细数据
seaFlag
=
true
// seaFlag = true
}
else
if
(
curForm
instanceof
Object
)
{
// } else if(curForm instanceof Object) {
return
// return
}
// }
if
(
seaFlag
)
{
// if(seaFlag) {
// 调用接口
// 调用接口
let
{
subTransObj
}
=
that
.
props
.
navigation
.
state
.
params
let
{
subTransObj
}
=
that
.
props
.
navigation
.
state
.
params
let
{
token
}
=
that
.
props
let
{
token
}
=
that
.
props
...
@@ -412,7 +400,8 @@ class TransSearchPage extends Component {
...
@@ -412,7 +400,8 @@ class TransSearchPage extends Component {
subTransDetOption
.
length
&&
subTransDetOption
.
forEach
((
item
)
=>
{
subTransDetOption
.
length
&&
subTransDetOption
.
forEach
((
item
)
=>
{
sur_transfer_lines
.
length
&&
sur_transfer_lines
.
forEach
((
chItem
)
=>
{
sur_transfer_lines
.
length
&&
sur_transfer_lines
.
forEach
((
chItem
)
=>
{
if
(
chItem
.
serial_number
==
item
.
serial_number
if
(
chItem
.
serial_number
==
item
.
serial_number
&&
chItem
.
surgery_collect_number
==
item
.
surgery_collect_number
)
{
&&
chItem
.
surgery_collect_number
==
item
.
surgery_collect_number
&&
chItem
.
item_name
==
item
.
item_name
)
{
chItem
.
select
=
true
chItem
.
select
=
true
}
}
})
})
...
@@ -433,9 +422,10 @@ class TransSearchPage extends Component {
...
@@ -433,9 +422,10 @@ class TransSearchPage extends Component {
let
error_msg
=
detailResult
.
error_msg
||
detailResult
.
message
let
error_msg
=
detailResult
.
error_msg
||
detailResult
.
message
show
(
error_msg
);
show
(
error_msg
);
}
}
}
else
{
show
(
'请至少输入一个查询条件'
)
// } else {
}
// show('请至少输入一个查询条件')
// }
}
}
// 修改加载中
// 修改加载中
...
@@ -473,7 +463,7 @@ class TransSearchPage extends Component {
...
@@ -473,7 +463,7 @@ class TransSearchPage extends Component {
}
}
})
})
tempArr
=
[...
tempArr
,
...
subTransDetOption
]
tempArr
=
[...
tempArr
,
...
subTransDetOption
]
tempArr
=
that
.
dedupQuoteDetailArr
(
tempArr
,
'serial_number'
,
'surgery_collect_number'
)
tempArr
=
that
.
dedupQuoteDetailArr
(
tempArr
,
'serial_number'
,
'surgery_collect_number'
,
'item_name'
)
that
.
setState
({
that
.
setState
({
localSelectOption
:
tempArr
localSelectOption
:
tempArr
})
})
...
@@ -481,12 +471,12 @@ class TransSearchPage extends Component {
...
@@ -481,12 +471,12 @@ class TransSearchPage extends Component {
}
}
// 去重耗材明细 根据两个属性
// 去重耗材明细 根据两个属性
dedupQuoteDetailArr
(
arr
,
typeName1
,
typeName2
){
dedupQuoteDetailArr
(
arr
,
typeName1
,
typeName2
,
typeName3
){
let
result
=
[],
tmp
=
{}
let
result
=
[],
tmp
=
{}
if
(
arr
.
length
)
{
if
(
arr
.
length
)
{
result
=
arr
.
reduce
(
function
(
init
,
item
)
{
result
=
arr
.
reduce
(
function
(
init
,
item
)
{
if
(
!
tmp
[
item
[
typeName1
]
+
item
[
typeName2
]])
{
if
(
!
tmp
[
item
[
typeName1
]
+
item
[
typeName2
]
+
item
[
typeName3
]
])
{
tmp
[
item
[
typeName1
]
+
item
[
typeName2
]]
=
true
tmp
[
item
[
typeName1
]
+
item
[
typeName2
]
+
item
[
typeName3
]
]
=
true
init
.
push
(
item
)
init
.
push
(
item
)
}
}
return
init
return
init
...
@@ -537,14 +527,12 @@ class TransSearchPage extends Component {
...
@@ -537,14 +527,12 @@ class TransSearchPage extends Component {
show
(
'请选择耗材'
)
show
(
'请选择耗材'
)
return
return
}
}
let
searchForm
=
{
let
searchForm
=
{
surgery_collect_number
:
listOptionData
[
0
].
value
,
surgery_collect_number
:
listOptionData
[
0
].
value
,
serial_number
:
listOptionData
[
1
].
value
,
serial_number
:
listOptionData
[
1
].
value
,
surgery_date_from
:
listOptionData
[
2
].
value
,
surgery_date_from
:
listOptionData
[
2
].
value
,
surgery_date_to
:
listOptionData
[
3
].
value
surgery_date_to
:
listOptionData
[
3
].
value
}
}
this
.
props
.
setTransDetailOption
(
localSelectOption
,
searchForm
)
this
.
props
.
setTransDetailOption
(
localSelectOption
,
searchForm
)
this
.
props
.
navigation
.
navigate
(
'TransOrderPage'
,
{
title
:
'转单申请'
})
this
.
props
.
navigation
.
navigate
(
'TransOrderPage'
,
{
title
:
'转单申请'
})
}
}
...
@@ -571,7 +559,7 @@ class TransSearchPage extends Component {
...
@@ -571,7 +559,7 @@ class TransSearchPage extends Component {
let
{
serchForm
,
listOptionData
}
=
this
.
state
let
{
serchForm
,
listOptionData
}
=
this
.
state
return
(
return
(
<
View
style
=
{
styles
.
list_cont
}
>
<
View
style
=
{
styles
.
list_cont
}
>
<
Text
style
=
{
styles
.
search_top_tip
}
>
查询条件,至少输入一个条件
<
/Text
>
{
/* <Text style={styles.search_top_tip}>查询条件,至少输入一个条件</Text> */
}
<
View
style
=
{
styles
.
item_container
}
>
<
View
style
=
{
styles
.
item_container
}
>
<
TouchableOpacity
<
TouchableOpacity
activeOpacity
=
{.
8
}
activeOpacity
=
{.
8
}
...
@@ -848,7 +836,6 @@ class TransSearchPage extends Component {
...
@@ -848,7 +836,6 @@ class TransSearchPage extends Component {
<
Text
style
=
{
list_common_item
.
rig_tip
}
>
{
'确定'
}
<
/Text
>
<
Text
style
=
{
list_common_item
.
rig_tip
}
>
{
'确定'
}
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
TransDetailsModel
<
TransDetailsModel
show
=
{
selectShowPopup
}
show
=
{
selectShowPopup
}
closeModal
=
{(
show
)
=>
this
.
handleCloseSelectModal
(
show
)}
closeModal
=
{(
show
)
=>
this
.
handleCloseSelectModal
(
show
)}
...
@@ -888,9 +875,7 @@ class TransSearchPage extends Component {
...
@@ -888,9 +875,7 @@ class TransSearchPage extends Component {
{
this
.
renderLodingItem
()}
{
this
.
renderLodingItem
()}
<
/ScrollView
>
<
/ScrollView
>
<
/View
>
<
/View
>
{
this
.
renderFooterBtnItem
()}
{
this
.
renderFooterBtnItem
()}
<
/SafeAreaView
>
<
/SafeAreaView
>
<
/View
>
<
/View
>
);
);
...
@@ -912,8 +897,7 @@ const styles = StyleSheet.create({
...
@@ -912,8 +897,7 @@ const styles = StyleSheet.create({
paddingHorizontal
:
16
paddingHorizontal
:
16
},
},
list_cont
:
{
list_cont
:
{
flex
:
1
,
flex
:
1
// alignItems: 'center'
},
},
item_container
:
{
item_container
:
{
flex
:
1
flex
:
1
...
...
ios/BoneHouse_Business_APP.xcodeproj/project.pbxproj
View file @
9e28ac0a
...
@@ -1522,7 +1522,7 @@
...
@@ -1522,7 +1522,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
""
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
""
;
CURRENT_PROJECT_VERSION
=
1.0.
2
;
CURRENT_PROJECT_VERSION
=
1.0.
6
;
DEAD_CODE_STRIPPING
=
NO
;
DEAD_CODE_STRIPPING
=
NO
;
DEVELOPMENT_TEAM
=
2BWXWUS2NV
;
DEVELOPMENT_TEAM
=
2BWXWUS2NV
;
HEADER_SEARCH_PATHS
=
(
HEADER_SEARCH_PATHS
=
(
...
@@ -1538,7 +1538,7 @@
...
@@ -1538,7 +1538,7 @@
INFOPLIST_FILE
=
BoneHouse_Business_APP/Info.plist
;
INFOPLIST_FILE
=
BoneHouse_Business_APP/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
1.
0.2
;
MARKETING_VERSION
=
1.
1.0
;
OTHER_LDFLAGS
=
(
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"$(inherited)"
,
"-ObjC"
,
"-ObjC"
,
...
@@ -1556,7 +1556,7 @@
...
@@ -1556,7 +1556,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
""
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
""
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CURRENT_PROJECT_VERSION
=
1.0.
2
;
CURRENT_PROJECT_VERSION
=
1.0.
6
;
DEVELOPMENT_TEAM
=
2BWXWUS2NV
;
DEVELOPMENT_TEAM
=
2BWXWUS2NV
;
HEADER_SEARCH_PATHS
=
(
HEADER_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
@@ -1571,7 +1571,7 @@
...
@@ -1571,7 +1571,7 @@
INFOPLIST_FILE
=
BoneHouse_Business_APP/Info.plist
;
INFOPLIST_FILE
=
BoneHouse_Business_APP/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
1.
0.2
;
MARKETING_VERSION
=
1.
1.0
;
OTHER_LDFLAGS
=
(
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"$(inherited)"
,
"-ObjC"
,
"-ObjC"
,
...
...
ios/BoneHouse_Business_APP.xcodeproj/xcshareddata/xcschemes/BoneHouse_Business_APP.xcscheme
View file @
9e28ac0a
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
</BuildableProductRunnable>
</BuildableProductRunnable>
</ProfileAction>
</ProfileAction>
<AnalyzeAction
<AnalyzeAction
buildConfiguration =
"
Debug
"
>
buildConfiguration =
"
Release
"
>
</AnalyzeAction>
</AnalyzeAction>
<ArchiveAction
<ArchiveAction
buildConfiguration =
"Release"
buildConfiguration =
"Release"
...
...
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