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
b5e41d1d
authored
Jul 28, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善转单历史查询接口,调整部分布局
parent
c8126ce7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
26 deletions
app/action/HistorAction.js
app/containers/historicalOrder/HistoricalOrderPage.js
app/containers/historicalOrder/module/FilterModel.js
app/containers/historicalOrder/module/LineOrderPage.js
app/action/HistorAction.js
View file @
b5e41d1d
...
...
@@ -103,12 +103,9 @@ export function requestGetAllTrans(params) {
let
{
global_domain_config
}
=
getState
().
login
GetRequest
(
global_domain_config
,
getUrlParams
(
'/surgery/trans_header/search'
,
params
))
.
then
(
res
=>
{
console
.
log
(
'--requestGetAllTrans-----res------'
,
res
)
if
(
res
.
error_code
==
0
)
{
let
{
data
:
{
sur_order_transfer_head_chs_v
}
}
=
res
dispatch
(
requestSearchSuccess
(
sur_order_transfer_head_chs_v
));
}
else
if
(
res
.
error_code
===
41006
)
{
show
(
'登录过期,请重新登录'
);
dispatch
(
exitLoginStatus
());
...
...
app/containers/historicalOrder/HistoricalOrderPage.js
View file @
b5e41d1d
...
...
@@ -37,7 +37,7 @@ import {
requestGetAllConsume
,
requestGetAllTrans
}
from
'../../action/HistorAction'
;
import
{
show
,
cloneObject
}
from
'../../utils/Utils'
;
import
{
show
,
cloneObject
,
dedupQuoteArray
}
from
'../../utils/Utils'
;
import
moment
from
'moment'
;
import
FilterModel
from
'./module/FilterModel'
;
...
...
@@ -165,7 +165,6 @@ class HistoricalOrderPage extends Component {
return
}
contOptionData
=
cloneObject
(
historOrderOption
)
console
.
log
(
'contOptionData--------'
,
contOptionData
)
switch
(
topActiveIndex
)
{
case
0
:
contOptionData
=
contOptionData
.
map
((
supItem
,
ind
)
=>
{
...
...
@@ -238,8 +237,6 @@ class HistoricalOrderPage extends Component {
default
:
break
;
}
console
.
log
(
'------contOptionData-------'
,
contOptionData
)
this
.
setState
({
contOptionData
})
...
...
@@ -305,7 +302,6 @@ class HistoricalOrderPage extends Component {
this
.
setState
({
isShowSelect
:
!
isShowSelect
})
// 判断筛选颜色变化!!!!!===
}
// 关闭筛选弹窗 回调
...
...
@@ -389,7 +385,6 @@ class HistoricalOrderPage extends Component {
}
<
/View
>
<
/TouchableOpacity
>
{
/* 筛选弹窗 */
}
<
FilterModel
show
=
{
isShowSelect
}
...
...
@@ -403,7 +398,6 @@ class HistoricalOrderPage extends Component {
callSupClick
=
{
whetherCallClick
}
callSupTopList
=
{(
data
)
=>
this
.
handleChangeTopList
(
data
)
}
/
>
<
/View>
<
/View
>
...
...
@@ -424,8 +418,7 @@ class HistoricalOrderPage extends Component {
<
/TouchableOpacity
>
<
/View
>
:
null
}
}
{
/* 底部每一列数据 */
}
{
contOptionData
.
map
((
item
,
index
)
=>
...
...
@@ -452,7 +445,7 @@ class HistoricalOrderPage extends Component {
tempTit
=
'结单标识:'
tempNum
=
item
.
surgery_collect_number
// 还是显示借货单号,但是接口还是传递消耗单号
}
else
if
(
topActiveIndex
==
2
)
{
tempTit
=
'目标借货订单:'
tempTit
=
'目标借货订单
号
:'
tempNum
=
item
.
local_his_number
}
...
...
@@ -473,6 +466,18 @@ class HistoricalOrderPage extends Component {
<
Text
style
=
{
styles
.
cont_tip
}
>
{
item
.
local_his_time
}
<
/Text
>
{
topActiveIndex
==
2
?
<
Text
style
=
{
styles
.
cont_tip
}
>
来源借货订单号:
{
item
.
source_surgery_order_number
}
<
/Text> : nul
l
}
{
topActiveIndex
==
2
?
<
Text
style
=
{
styles
.
cont_tip
}
>
{
item
.
source_surgery_date
?
moment
(
item
.
source_surgery_date
).
format
(
'YYYY/MM/DD HH:mm'
)
:
'无'
}
<
/Text> : nul
l
}
<
/View
>
<
View
style
=
{
styles
.
cont_rig
}
>
<
Text
...
...
@@ -501,11 +506,8 @@ class HistoricalOrderPage extends Component {
render
()
{
return
(
<
View
style
=
{
styles
.
hist_main
}
>
{
this
.
renderContItem
()
}
{
this
.
renderLodingItem
()}
<
/View
>
);
}
...
...
app/containers/historicalOrder/module/FilterModel.js
View file @
b5e41d1d
This diff is collapsed.
Click to expand it.
app/containers/historicalOrder/module/LineOrderPage.js
View file @
b5e41d1d
...
...
@@ -223,8 +223,6 @@ class LineOrderPage extends Component {
order_number
:
supData
.
order_number
}
let
conResult
=
await
requestGetLineFormTrans
(
props
.
global_domain_config
,
params
)
console
.
log
(
'params========'
,
params
)
console
.
log
(
'conResult========'
,
conResult
)
if
(
conResult
.
error_code
==
0
)
{
that
.
changeSubLoding
(
false
)
// 成功
...
...
@@ -364,7 +362,7 @@ class LineOrderPage extends Component {
}
else
if
(
supIndex
==
1
)
{
tempTit
.
push
(
'结单标识:'
,
'消耗时间:'
)
}
else
if
(
supIndex
==
2
)
{
tempTit
.
push
(
'目标借货订单:'
,
'手术时间:'
)
tempTit
.
push
(
'目标借货订单
号
:'
,
'手术时间:'
)
}
return
(
...
...
@@ -403,11 +401,22 @@ class LineOrderPage extends Component {
<
/Text
>
<
/View> : nul
l
}
<
View
style
=
{
styles
.
fo_cell_box
}
>
<
Text
style
=
{
styles
.
fo_tip_txt
}
>
客户名称:
{
orderSupOptions
.
customer_name
?
orderSupOptions
.
customer_name
:
'无'
}
<
/Text
>
<
/View
>
{
supIndex
!==
2
?
<
View
style
=
{
styles
.
fo_cell_box
}
>
<
Text
style
=
{
styles
.
fo_tip_txt
}
>
客户名称:
{
orderSupOptions
.
customer_name
?
orderSupOptions
.
customer_name
:
'无'
}
<
/Text
>
<
/View>
:
<
View
style
=
{
styles
.
fo_cell_box
}
>
<
Text
style
=
{
styles
.
fo_tip_txt
}
>
目标客户名称:
{
orderSupOptions
.
destination_customer_name
?
orderSupOptions
.
destination_customer_name
:
'无'
}
<
/Text
>
<
Text
style
=
{
styles
.
fo_tip_txt
}
>
来源客户名称:
{
orderSupOptions
.
source_customer_name
?
orderSupOptions
.
source_customer_name
:
'无'
}
<
/Text
>
<
/View
>
}
<
View
style
=
{
styles
.
fo_cell_box
}
>
<
Text
style
=
{
styles
.
fo_tip_txt
}
>
订单号:
{
supIndex
==
0
?
orderSupOptions
.
local_his_number
:
...
...
@@ -470,8 +479,8 @@ class LineOrderPage extends Component {
<
Text
style
=
{[
styles
.
fo_sta_txt
,
(
orderSupOptions
.
local_his_status
==
'待审核'
||
orderSupOptions
.
local_his_status
==
'已提交'
)
?
styles
.
status_audit
:
''
,
orderSupOptions
.
local_his_status
==
'待还货'
?
styles
.
status_return
:
''
,
orderSupOptions
.
local_his_status
==
'其他'
?
styles
.
status_other
:
''
(
orderSupOptions
.
local_his_status
==
'待还货'
||
orderSupOptions
.
local_his_status
==
'已输入'
||
orderSupOptions
.
local_his_status
==
'已驳回'
)
?
styles
.
status_return
:
''
,
(
orderSupOptions
.
local_his_status
==
'其他'
||
orderSupOptions
.
local_his_status
==
'已取消'
)
?
styles
.
status_other
:
''
]}
>
{
orderSupOptions
.
local_his_status
}
<
/Text
>
...
...
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