Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
226c7d93
Commit
226c7d93
authored
May 24, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6a7b4600
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
+21
-18
center-channel/app/base/service/impl/receiveSve/icpOrderSve.js
+21
-18
No files found.
center-channel/app/base/service/impl/receiveSve/icpOrderSve.js
View file @
226c7d93
...
...
@@ -36,7 +36,7 @@ class IcpOrderService extends AppServiceBase {
if
(
productItem
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
5010
,
"产品查询失败,6100002"
);
}
console
.
log
(
"productItem......................"
,
JSON
.
stringify
(
productItem
))
console
.
log
(
"productItem......................"
,
JSON
.
stringify
(
productItem
))
pobj
.
userInfo
=
{
channel_userid
:
pobj
.
userName
||
""
}
pobj
.
actionBody
=
{
...
...
@@ -130,34 +130,37 @@ class IcpOrderService extends AppServiceBase {
}
console
.
log
(
"yfObj......................................................"
,
JSON
.
stringify
(
yfObj
))
let
yunfuPushRes
=
await
this
.
utilsPushSve
.
business2Channel
(
yfObj
,
"pushOrderICPBusinessNew"
);
let
deliveryObj
=
{
actionBody
:
{
orderNo
:
solutionItem
.
data
.
orderNo
,
needsolution
:
solutionItem
.
data
.
solutionContent
,
channelNeedNo
:
solutionItem
.
data
.
channelNeedNo
,
channelSolutionNo
:
solutionItem
.
data
.
channelSolutionNo
,
skuCode
:
productItem
.
data
.
payCode
,
servicer
:
{
code
:
'gsb'
,
name
:
'公司宝'
}
},
appInfo
:
pobj
.
appInfo
};
if
(
pobj
.
actionBody
.
isDirectBuy
&&
pobj
.
actionBody
.
isDirectBuy
==
1
)
{
//直接下单需执行添加订单业务员操作
if
(
yunfuPushRes
&&
yunfuPushRes
.
status
==
0
)
{
if
(
yunfuPushRes
.
data
&&
yunfuPushRes
.
data
.
data
)
{
let
deliveryObj
=
{
actionBody
:
{
orderNo
:
yunfuPushRes
.
data
.
orderNo
,
needsolution
:
yunfuPushRes
.
data
.
solutionContent
,
channelNeedNo
:
yunfuPushRes
.
data
.
channelNeedNo
,
channelSolutionNo
:
yunfuPushRes
.
data
.
channelSolutionNo
,
skuCode
:
productItem
.
data
.
payCode
,
servicer
:
{
code
:
'gsb'
,
name
:
'公司宝'
}
},
appInfo
:
pobj
.
appInfo
};
let
resData
=
yunfuPushRes
.
data
.
data
;
let
salesmanInfo
=
{
salesmanName
:
resData
.
orderList
&&
resData
.
orderList
.
length
>
0
?
resData
.
orderList
[
0
].
operatorName
:
""
,
salesmanChannelId
:
resData
.
orderList
&&
resData
.
orderList
.
length
>
0
?
resData
.
orderList
[
0
].
operator
:
""
,
};
deliveryObj
.
actionBody
.
needsolution
=
{
salesmanInfo
:
salesmanInfo
,
orderNo
:
orderItem
.
data
.
orderNo
}
console
.
log
(
"deliveryObj......................................................"
,
JSON
.
stringify
(
deliveryObj
))
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
deliveryObj
.
actionBody
.
needsolution
.
salesmanInfo
=
salesmanInfo
;
deliveryObj
.
actionBody
.
needsolution
.
orderNo
=
orderItem
.
data
.
orderNo
;
}
}
}
if
(
pobj
.
actionBody
.
isDirectBuy
&&
pobj
.
actionBody
.
isDirectBuy
==
1
)
{
console
.
log
(
"deliveryObj......................................................"
,
JSON
.
stringify
(
deliveryObj
))
this
.
utilsPushSve
.
business2Channel
(
deliveryObj
,
"pushDeliveryOrder"
);
}
return
system
.
getResultSuccess
(
null
);
}
...
...
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