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
30a28f13
authored
May 24, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
同部分业务员可转单
parent
74185580
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
app/containers/transOrder/TransOrderPage.js
app/containers/transOrder/TransOrderPage.js
View file @
30a28f13
...
...
@@ -505,12 +505,15 @@ class TransOrderPage extends Component {
let
{
listOptionData
,
localOtherObj
}
=
this
.
state
let
that
=
this
this
.
setState
({
listOptionData
:
listOptionData
.
map
((
item
,
index
)
=>
{
listOptionData
:
listOptionData
.
map
(
async
(
item
,
index
)
=>
{
if
(
index
>
startIndex
&&
index
<
endIndex
)
{
item
.
name
=
localOtherObj
.
name
item
.
value
=
localOtherObj
.
value
if
(
listOptionData
[
1
].
value
&&
item
.
title
==
'客户名称'
)
{
await
that
.
getDepartmentsByOrg
(
listOptionData
[
1
].
value
)
setTimeout
(()
=>
{
that
.
organizationGetCustomerData
()
},
0
);
}
if
(
listOptionData
[
2
].
value
&&
item
.
title
==
'目标订单信息'
)
{
that
.
customerGetTargetOrder
()
...
...
@@ -568,9 +571,8 @@ class TransOrderPage extends Component {
chItem
.
name
=
item
.
name
chItem
.
value
=
item
.
value
if
(
itemTitle
===
'组织'
)
{
that
.
clearInitNameAndValue
(
1
)
that
.
clearInitNameAndValue
(
8
,
10
)
that
.
getDepartmentsByOrg
(
item
.
value
)
that
.
clearInitNameAndValue
(
1
)
}
if
(
itemTitle
===
'客户名称'
)
{
that
.
clearInitNameAndValue
(
2
)
...
...
@@ -697,9 +699,11 @@ class TransOrderPage extends Component {
listOptionData
[
1
].
value
=
filterOpt
[
0
].
org_code
that
.
setState
({
listOptionData
},
()
=>
{
},
async
()
=>
{
await
that
.
getDepartmentsByOrg
(
listOptionData
[
1
].
value
)
setTimeout
(()
=>
{
that
.
organizationGetCustomerData
()
that
.
getDepartmentsByOrg
(
listOptionData
[
1
].
value
)
},
0
);
})
}
}
else
{
...
...
@@ -857,11 +861,16 @@ class TransOrderPage extends Component {
let
params
=
{
access_token
:
props
.
token
,
org_code
:
state
.
listOptionData
[
1
].
value
,
seller_code
:
props
.
userInfo
.
user_name
,
//
seller_code: props.userInfo.user_name,
customer_code
:
state
.
listOptionData
[
2
].
value
,
collect_header_status
:
'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED'
,
setting_type
:
'COLLECT'
}
if
(
state
.
sysValues
.
OBS_MOBILE_TRANS_DEPARTMENT_DISPLAY
>
0
)
{
params
.
department_code
=
state
.
listOptionData
[
9
].
value
}
else
{
params
.
seller_code
=
props
.
userInfo
.
user_name
}
props
.
requestTransTargetOrderInfo
(
params
)
})
}
...
...
@@ -872,10 +881,15 @@ class TransOrderPage extends Component {
let
params
=
{
access_token
:
props
.
token
,
org_code
:
state
.
listOptionData
[
1
].
value
,
seller_code
:
props
.
userInfo
.
user_name
,
//
seller_code: props.userInfo.user_name,
customer_code
:
state
.
listOptionData
[
2
].
value
,
collect_header_status
:
'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED'
}
if
(
state
.
sysValues
.
OBS_MOBILE_TRANS_DEPARTMENT_DISPLAY
>
0
)
{
params
.
department_code
=
state
.
listOptionData
[
9
].
value
}
else
{
params
.
seller_code
=
props
.
userInfo
.
user_name
}
let
that
=
this
let
{
global_domain_config
}
=
props
let
cusResult
=
await
requestSubSourBorOrdNum
(
global_domain_config
,
params
);
...
...
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