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
e14b4dac
authored
Dec 28, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改物料的展示信息
parent
8b1b87ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
26 deletions
app/containers/common/listDataComponent/PicTitDetaiCalcu.js
app/containers/selfOrder/module/EditThirdLevelPage.js
app/containers/selfOrder/module/ProductRightStyle.js
app/containers/common/listDataComponent/PicTitDetaiCalcu.js
View file @
e14b4dac
...
@@ -28,6 +28,8 @@ class PicTitDetaiCalcu extends Component {
...
@@ -28,6 +28,8 @@ class PicTitDetaiCalcu extends Component {
tipTextOneTit
:
PropTypes
.
string
,
tipTextOneTit
:
PropTypes
.
string
,
tipTextTwo
:
PropTypes
.
string
,
tipTextTwo
:
PropTypes
.
string
,
tipTextTwoTit
:
PropTypes
.
string
,
tipTextTwoTit
:
PropTypes
.
string
,
tipTextThr
:
PropTypes
.
string
,
tipTextThrTit
:
PropTypes
.
string
,
listImgIcon
:
PropTypes
.
string
,
listImgIcon
:
PropTypes
.
string
,
listStyleImg
:
PropTypes
.
objec
,
listStyleImg
:
PropTypes
.
objec
,
plusCallBack
:
PropTypes
.
func
,
// 加法的回调函数
plusCallBack
:
PropTypes
.
func
,
// 加法的回调函数
...
@@ -86,8 +88,8 @@ class PicTitDetaiCalcu extends Component {
...
@@ -86,8 +88,8 @@ class PicTitDetaiCalcu extends Component {
render
()
{
render
()
{
let
{
listItem
,
listIndex
,
calField
,
listStyleBox
,
listStyleTit
,
listStyleTip
,
listStyleCalBtn
,
listPicType
,
titCallBack
,
let
{
listItem
,
listIndex
,
calField
,
listStyleBox
,
listStyleTit
,
listStyleTip
,
listStyleCalBtn
,
listPicType
,
titCallBack
,
titText
,
tipTextStr
,
tipTextOne
,
tipTextTwo
,
listImgIcon
,
listStyleImg
,
showClearIcon
,
showClearIndex
,
listCardActIndex
,
titText
,
tipTextStr
,
tipTextOne
,
tipTextTwo
,
tipTextThr
,
listImgIcon
,
listStyleImg
,
showClearIcon
,
showClearIndex
,
listCardActIndex
,
listStyleClearBtn
,
clearCallBack
,
onlyShowNum
,
onlyShowSelect
,
tipTextStrTit
,
tipTextOneTit
,
tipTextTwoTit
,
listStyleClearBtn
,
clearCallBack
,
onlyShowNum
,
onlyShowSelect
,
tipTextStrTit
,
tipTextOneTit
,
tipTextTwoTit
,
tipTextThrTit
,
global_domain_config
,
listMaxNum
}
=
this
.
props
global_domain_config
,
listMaxNum
}
=
this
.
props
let
{
listPicTypeArr
,
picStyleArr
}
=
this
.
state
let
{
listPicTypeArr
,
picStyleArr
}
=
this
.
state
...
@@ -131,10 +133,10 @@ class PicTitDetaiCalcu extends Component {
...
@@ -131,10 +133,10 @@ class PicTitDetaiCalcu extends Component {
onPress
=
{()
=>
{
titCallBack
?
titCallBack
(
listItem
,
listIndex
)
:
{}
}}
onPress
=
{()
=>
{
titCallBack
?
titCallBack
(
listItem
,
listIndex
)
:
{}
}}
style
=
{
styles
.
oth_box
}
style
=
{
styles
.
oth_box
}
>
>
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
thr_ot
,
listStyleTit
]}
>
<
Text
numberOfLines
=
{
2
}
style
=
{[
styles
.
thr_ot
,
listStyleTit
]}
>
{
listItem
[
titText
]}
{
listItem
[
titText
]}
<
/Text
>
<
/Text
>
{
listItem
[
tipTextStr
]
?
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
ri_te_ot
,
styles
.
te_ot_str
,
listStyleTip
]}
>
{
listItem
[
tipTextStr
]
?
<
Text
numberOfLines
=
{
2
}
style
=
{[
styles
.
ri_te_ot
,
styles
.
te_ot_str
,
listStyleTip
]}
>
{
tipTextStrTit
?
`
${
tipTextStrTit
}
:`
:
''
}{
listItem
[
tipTextStr
]}
{
tipTextStrTit
?
`
${
tipTextStrTit
}
:`
:
''
}{
listItem
[
tipTextStr
]}
<
/Text> : null
}
<
/Text> : null
}
{
listItem
[
tipTextOne
]
?
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
ri_te_ot
,
listStyleTip
]}
>
{
listItem
[
tipTextOne
]
?
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
ri_te_ot
,
listStyleTip
]}
>
...
@@ -143,6 +145,9 @@ class PicTitDetaiCalcu extends Component {
...
@@ -143,6 +145,9 @@ class PicTitDetaiCalcu extends Component {
{
listItem
[
tipTextTwo
]
?
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
ri_te_ot
,
listStyleTip
]}
>
{
listItem
[
tipTextTwo
]
?
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
ri_te_ot
,
listStyleTip
]}
>
{
tipTextTwoTit
?
`
${
tipTextTwoTit
}
:`
:
''
}{
listItem
[
tipTextTwo
]}
{
tipTextTwoTit
?
`
${
tipTextTwoTit
}
:`
:
''
}{
listItem
[
tipTextTwo
]}
<
/Text> : null
}
<
/Text> : null
}
{
listItem
[
tipTextThr
]
?
<
Text
numberOfLines
=
{
1
}
style
=
{[
styles
.
ri_te_ot
,
listStyleTip
]}
>
{
tipTextThrTit
?
`
${
tipTextThrTit
}
:`
:
''
}{
listItem
[
tipTextThr
]}
<
/Text> : null
}
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
{
{
...
...
app/containers/selfOrder/module/EditThirdLevelPage.js
View file @
e14b4dac
...
@@ -232,8 +232,6 @@ class EditThirdLevelPage extends Component {
...
@@ -232,8 +232,6 @@ class EditThirdLevelPage extends Component {
}
}
}
else
if
(
leftIndex
===
2
)
{
}
else
if
(
leftIndex
===
2
)
{
curTopList
=
[]
curTopList
=
[]
}
else
{
curTit
=
'title'
}
}
return
(
return
(
<
ChooseCardList
<
ChooseCardList
...
@@ -301,12 +299,12 @@ class EditThirdLevelPage extends Component {
...
@@ -301,12 +299,12 @@ class EditThirdLevelPage extends Component {
let
curTit
=
''
,
curTipStr
=
''
,
curTipOne
=
''
,
curTipTwo
=
''
,
curCalField
=
''
,
curImgIcon
=
''
let
curTit
=
''
,
curTipStr
=
''
,
curTipOne
=
''
,
curTipTwo
=
''
,
curCalField
=
''
,
curImgIcon
=
''
let
curTipStrTit
=
''
,
curTipOneTit
=
''
,
curTipTwoTit
=
''
let
curTipStrTit
=
''
,
curTipOneTit
=
''
,
curTipTwoTit
=
''
curTit
=
'item_name'
curTit
=
'item_name'
curTipStr
=
'
item_cod
e'
curTipStr
=
'
general_nam
e'
curTipOne
=
'specification'
curTipOne
=
'specification'
curTipTwo
=
'
general_name
'
curTipTwo
=
'
item_desc
'
curTipStrTit
=
'
物料代码
'
curTipStrTit
=
'
通用名称
'
curTipOneTit
=
'规格型号'
curTipOneTit
=
'规格型号'
curTipTwoTit
=
'
通用名称
'
curTipTwoTit
=
'
物料说明
'
curCalField
=
LocalVariable
.
QUANTITY_FIELD
curCalField
=
LocalVariable
.
QUANTITY_FIELD
curImgIcon
=
'photos'
curImgIcon
=
'photos'
...
...
app/containers/selfOrder/module/ProductRightStyle.js
View file @
e14b4dac
...
@@ -209,21 +209,27 @@ class ProductRightStyle extends Component {
...
@@ -209,21 +209,27 @@ class ProductRightStyle extends Component {
renderSecondtem
(
item
,
index
)
{
renderSecondtem
(
item
,
index
)
{
let
{
leftIndex
}
=
this
.
props
let
{
leftIndex
}
=
this
.
props
let
curTitCallBack
=
''
,
curPlusCallBack
=
''
,
curReduceCallBack
=
''
let
curTitCallBack
=
''
,
curPlusCallBack
=
''
,
curReduceCallBack
=
''
let
curTit
=
''
,
curTipStr
=
''
,
curTipOne
=
''
,
curTipTwo
=
''
,
curTip
StrTit
=
''
,
curTipOneTit
=
''
,
curTipTwo
Tit
=
''
,
curIcon
=
''
let
curTit
=
''
,
curTipStr
=
''
,
curTipOne
=
''
,
curTipTwo
=
''
,
curTip
Thr
=
''
,
curTipStrTit
=
''
,
curTipOneTit
=
''
,
curTipTwoTit
=
''
,
curTipThr
Tit
=
''
,
curIcon
=
''
let
curListMaxNum
=
''
let
curListMaxNum
=
''
if
(
leftIndex
===
0
)
{
if
(
leftIndex
===
0
)
{
curTit
=
'template_name'
curTit
=
'template_name'
curTipOne
=
'surgery_type_name'
curTipStr
=
'customer_name'
curTipTwo
=
'template_number'
curTipOne
=
'doctor_name'
curTipOneTit
=
'手术类型'
curTipTwo
=
'surgery_type'
curTipTwoTit
=
'模板号'
curTipThr
=
'template_desc'
curTipStrTit
=
'客户'
curTipOneTit
=
'主治医生'
curTipTwoTit
=
'手术类型'
curTipThrTit
=
'模板说明'
curIcon
=
'photos'
curIcon
=
'photos'
}
else
if
(
leftIndex
===
1
||
leftIndex
===
2
||
leftIndex
===
3
)
{
}
else
if
(
leftIndex
===
1
||
leftIndex
===
2
||
leftIndex
===
3
)
{
curTit
=
'item_name'
curTit
=
'item_name'
curTipStr
=
'
item_cod
e'
curTipStr
=
'
general_nam
e'
curTipOne
=
'specification'
curTipOne
=
'specification'
curTipStrTit
=
'物料代码'
curTipTwo
=
'item_desc'
curTipStrTit
=
'通用名称'
curTipOneTit
=
'规格型号'
curTipOneTit
=
'规格型号'
curTipTwoTit
=
'物料说明'
curIcon
=
'photos'
curIcon
=
'photos'
}
}
if
(
leftIndex
===
1
)
{
if
(
leftIndex
===
1
)
{
...
@@ -259,9 +265,11 @@ class ProductRightStyle extends Component {
...
@@ -259,9 +265,11 @@ class ProductRightStyle extends Component {
tipTextStr
=
{
curTipStr
}
tipTextStr
=
{
curTipStr
}
tipTextOne
=
{
curTipOne
}
tipTextOne
=
{
curTipOne
}
tipTextTwo
=
{
curTipTwo
}
tipTextTwo
=
{
curTipTwo
}
tipTextThr
=
{
curTipThr
}
tipTextStrTit
=
{
curTipStrTit
}
tipTextStrTit
=
{
curTipStrTit
}
tipTextOneTit
=
{
curTipOneTit
}
tipTextOneTit
=
{
curTipOneTit
}
tipTextTwoTit
=
{
curTipTwoTit
}
tipTextTwoTit
=
{
curTipTwoTit
}
tipTextThrTit
=
{
curTipThrTit
}
listImgIcon
=
{
curIcon
}
listImgIcon
=
{
curIcon
}
listPicType
=
{
'SQUARE'
}
listPicType
=
{
'SQUARE'
}
plusCallBack
=
{
curPlusCallBack
}
plusCallBack
=
{
curPlusCallBack
}
...
@@ -300,10 +308,12 @@ class ProductRightStyle extends Component {
...
@@ -300,10 +308,12 @@ class ProductRightStyle extends Component {
calField
=
{
LocalVariable
.
QUANTITY_FIELD
}
calField
=
{
LocalVariable
.
QUANTITY_FIELD
}
subCalCallBack
=
{(
item
,
index
)
=>
this
.
handleCalCallBack
(
item
,
index
,
'rowSingleData'
)}
subCalCallBack
=
{(
item
,
index
)
=>
this
.
handleCalCallBack
(
item
,
index
,
'rowSingleData'
)}
titText
=
{
'item_name'
}
titText
=
{
'item_name'
}
tipTextOne
=
{
'general_name'
}
tipTextStr
=
{
'general_name'
}
tipTextTwo
=
{
'item_code'
}
tipTextOne
=
{
'specification'
}
tipTextOneTit
=
{
'通用名称'
}
tipTextTwo
=
{
'item_desc'
}
tipTextTwoTit
=
{
'物料代码'
}
tipTextStrTit
=
{
'通用名称'
}
tipTextOneTit
=
{
'规格型号'
}
tipTextTwoTit
=
{
'物料说明'
}
listImgIcon
=
{
'photos'
}
listImgIcon
=
{
'photos'
}
/
>
/
>
<
/SafeAreaView
>
<
/SafeAreaView
>
...
@@ -328,19 +338,21 @@ class ProductRightStyle extends Component {
...
@@ -328,19 +338,21 @@ class ProductRightStyle extends Component {
// 单选耗材 -- 大类每一列
// 单选耗材 -- 大类每一列
renderOtherListItem
(
item
,
index
)
{
renderOtherListItem
(
item
,
index
)
{
let
curTit
=
''
,
curTip
One
=
''
,
curTipTwo
=
''
,
curTipOneTit
=
''
,
curTipTwoTit
=
''
,
curIcon
=
''
let
curTit
=
''
,
curTip
Str
=
''
,
curTipOne
=
''
,
curTipTwo
=
''
,
curTipStrTit
=
''
,
curTipOneTit
=
''
,
curTipTwoTit
=
''
,
curIcon
=
''
let
curTitCallBack
=
''
,
curPlusCallBack
=
''
,
curReduceCallBack
=
''
let
curTitCallBack
=
''
,
curPlusCallBack
=
''
,
curReduceCallBack
=
''
if
(
item
[
LocalVariable
.
ONLY_TWO_LEVELS
])
{
if
(
item
[
LocalVariable
.
ONLY_TWO_LEVELS
])
{
// 两级数据
// 两级数据
curTit
=
'item_name'
curTit
=
'item_name'
curTipOne
=
'item_code'
curTipStr
=
'general_name'
curTipOneTit
=
'物料代码'
curTipOne
=
'specification'
curTipTwo
=
'item_desc'
curTipStrTit
=
'通用名称'
curTipOneTit
=
'规格型号'
curTipTwoTit
=
'物料说明'
curIcon
=
'photos'
curIcon
=
'photos'
}
else
{
}
else
{
// 三级数据
// 三级数据
curTit
=
'category_name'
curTit
=
'category_name'
curTipOne
=
'category_code'
curTipOneTit
=
'分类编码'
curTitCallBack
=
(
item
,
index
)
=>
this
.
TitleClickEvent
(
item
,
index
)
curTitCallBack
=
(
item
,
index
)
=>
this
.
TitleClickEvent
(
item
,
index
)
curPlusCallBack
=
(
item
,
index
)
=>
this
.
handleAllPlusReduce
(
item
,
index
,
true
)
curPlusCallBack
=
(
item
,
index
)
=>
this
.
handleAllPlusReduce
(
item
,
index
,
true
)
curReduceCallBack
=
(
item
,
index
)
=>
this
.
handleAllPlusReduce
(
item
,
index
)
curReduceCallBack
=
(
item
,
index
)
=>
this
.
handleAllPlusReduce
(
item
,
index
)
...
@@ -357,8 +369,10 @@ class ProductRightStyle extends Component {
...
@@ -357,8 +369,10 @@ class ProductRightStyle extends Component {
subCalCallBack
=
{(
item
,
index
)
=>
this
.
handleCalCallBack
(
item
,
index
,
'rightSecondData'
,
LocalVariable
.
QUANTITY_FIELD
)}
subCalCallBack
=
{(
item
,
index
)
=>
this
.
handleCalCallBack
(
item
,
index
,
'rightSecondData'
,
LocalVariable
.
QUANTITY_FIELD
)}
titCallBack
=
{
curTitCallBack
}
titCallBack
=
{
curTitCallBack
}
titText
=
{
curTit
}
titText
=
{
curTit
}
tipTextStr
=
{
curTipStr
}
tipTextOne
=
{
curTipOne
}
tipTextOne
=
{
curTipOne
}
tipTextTwo
=
{
curTipTwo
}
tipTextTwo
=
{
curTipTwo
}
tipTextStrTit
=
{
curTipStrTit
}
tipTextOneTit
=
{
curTipOneTit
}
tipTextOneTit
=
{
curTipOneTit
}
tipTextTwoTit
=
{
curTipTwoTit
}
tipTextTwoTit
=
{
curTipTwoTit
}
plusCallBack
=
{
curPlusCallBack
}
plusCallBack
=
{
curPlusCallBack
}
...
...
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