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
ee01ac9a
Commit
ee01ac9a
authored
Sep 30, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 文网文
parent
d90d7c1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
+35
-4
No files found.
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
View file @
ee01ac9a
...
@@ -53,6 +53,10 @@ class AliHandler {
...
@@ -53,6 +53,10 @@ class AliHandler {
params
.
businessType
=
"/qcfw/edi/"
;
params
.
businessType
=
"/qcfw/edi/"
;
params
.
businessName
=
"edi"
params
.
businessName
=
"edi"
}
}
if
(
actionBody
.
type_code
==
"wangwen"
)
{
params
.
businessType
=
"wangwen"
;
params
.
businessName
=
"wangwen"
}
}
}
var
rtn
=
await
rc
.
execPost3
({
"d"
:
params
},
requrl
);
var
rtn
=
await
rc
.
execPost3
({
"d"
:
params
},
requrl
);
...
@@ -277,7 +281,7 @@ class AliHandler {
...
@@ -277,7 +281,7 @@ class AliHandler {
obj
.
channelNumber
=
channelobj
.
code
;
obj
.
channelNumber
=
channelobj
.
code
;
//如果订单状态为已支付
//如果订单状态为已支付
if
(
datajson
.
actionBody
.
needsolution
.
status
&&
datajson
.
actionBody
.
needsolution
.
status
==
"PAID"
)
{
if
(
datajson
.
actionBody
.
needsolution
.
status
&&
(
datajson
.
actionBody
.
needsolution
.
status
==
"PAID"
||
datajson
.
actionBody
.
needsolution
.
status
==
"USER_PAY_PRODUCE"
)
)
{
//查询业务员信息并填充到obj
//查询业务员信息并填充到obj
if
(
datajson
.
actionBody
.
needsolution
.
salesmanInfo
.
salesmanChannelId
)
{
if
(
datajson
.
actionBody
.
needsolution
.
salesmanInfo
.
salesmanChannelId
)
{
//去数据库查询该业务员信息
//去数据库查询该业务员信息
...
@@ -332,7 +336,9 @@ class AliHandler {
...
@@ -332,7 +336,9 @@ class AliHandler {
// // obj.servicerCode = deliveryInfo.compId;
// // obj.servicerCode = deliveryInfo.compId;
// }
// }
//设置成本
//设置成本
obj
.
costPrice
=
await
this
.
userService
.
findCostBySkuCode
(
obj
.
skuCode
)
if
(
obj
.
skuCode
)
{
obj
.
costPrice
=
await
this
.
userService
.
findCostBySkuCode
(
obj
.
skuCode
)
}
//异步更新需求状态 channelNeedNo
//异步更新需求状态 channelNeedNo
if
(
datajson
.
actionBody
&&
datajson
.
actionBody
.
channelNeedNo
)
{
if
(
datajson
.
actionBody
&&
datajson
.
actionBody
.
channelNeedNo
)
{
var
stau
=
{
var
stau
=
{
...
@@ -386,14 +392,18 @@ class AliHandler {
...
@@ -386,14 +392,18 @@ class AliHandler {
}
}
}
}
let
title
=
""
;
let
title
=
""
;
if
(
datajson
.
actionBody
.
needsolution
.
status
==
"USER_CONFIRMED"
)
{
//用户已确认递交文件
if
(
datajson
.
actionBody
.
needsolution
.
status
==
"USER_CONFIRMED"
||
datajson
.
actionBody
.
needsolution
.
status
==
"USER_CONFIRM_PRODUCE"
)
{
//用户已确认递交文件
title
=
"用户已确认递交文件"
;
title
=
"用户已确认递交文件"
;
params
.
d
.
deliverStatus
=
"userConfirmationResolve"
;
params
.
d
.
deliverStatus
=
"userConfirmationResolve"
;
params
.
d
.
customerMaterial
=
datajson
.
actionBody
.
needsolution
.
customerMaterial
;
params
.
d
.
customerMaterial
=
datajson
.
actionBody
.
needsolution
.
customerMaterial
;
}
}
else
if
(
datajson
.
actionBody
.
needsolution
.
status
==
"CLOSE"
)
{
//方案关闭
else
if
(
datajson
.
actionBody
.
needsolution
.
status
==
"CLOSE"
||
datajson
.
actionBody
.
needsolution
.
status
==
"ABC_CLOSE_PRODUCE"
)
{
//方案关闭
title
=
"方案已关闭"
;
title
=
"方案已关闭"
;
params
.
d
.
deliverStatus
=
"closed"
;
params
.
d
.
deliverStatus
=
"closed"
;
}
else
if
(
datajson
.
actionBody
.
needsolution
.
status
==
"USER_REFUSE_PRODUCE"
)
{
title
=
"材料被驳回"
;
params
.
d
.
deliverStatus
=
"userConfirmationReject"
;
params
.
d
.
memoInfo
=
datajson
.
actionBody
.
needsolution
.
rejectReason
}
}
var
rtn
=
await
rc
.
execPost3
(
params
,
requrl
);
var
rtn
=
await
rc
.
execPost3
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
...
@@ -484,6 +494,14 @@ class AliHandler {
...
@@ -484,6 +494,14 @@ class AliHandler {
if
(
data
.
needsolution
.
solution
.
CompanyAddress
)
{
//公司地址
if
(
data
.
needsolution
.
solution
.
CompanyAddress
)
{
//公司地址
obj
.
baseInfo
.
companyAddress
=
data
.
needsolution
.
solution
.
CompanyAddress
;
obj
.
baseInfo
.
companyAddress
=
data
.
needsolution
.
solution
.
CompanyAddress
;
}
}
if
(
data
.
needsolution
.
solution
.
actionType
)
{
//证件类型:新办 续期 变更
obj
.
baseInfo
.
actionType
=
data
.
needsolution
.
solution
.
actionType
;
}
if
(
data
.
needsolution
.
solution
.
licenseType
)
{
//⽹⽂类型:⽹络表演
obj
.
baseInfo
.
licenseType
=
data
.
needsolution
.
solution
.
licenseType
;
}
if
(
data
.
needsolution
.
bizType
)
{
//产品编码
if
(
data
.
needsolution
.
bizType
)
{
//产品编码
if
(
data
.
needsolution
.
bizType
==
"icpsq"
)
{
if
(
data
.
needsolution
.
bizType
==
"icpsq"
)
{
obj
.
businessType
=
"ICP"
;
obj
.
businessType
=
"ICP"
;
...
@@ -491,6 +509,9 @@ class AliHandler {
...
@@ -491,6 +509,9 @@ class AliHandler {
if
(
data
.
needsolution
.
bizType
==
"edisq"
)
{
if
(
data
.
needsolution
.
bizType
==
"edisq"
)
{
obj
.
businessType
=
"EDI"
;
obj
.
businessType
=
"EDI"
;
}
}
if
(
data
.
needsolution
.
bizType
==
"wangwen"
)
{
obj
.
businessType
=
"wangwen"
;
}
}
}
if
(
data
.
needsolution
.
typeName
)
{
//产品名称
if
(
data
.
needsolution
.
typeName
)
{
//产品名称
if
(
data
.
needsolution
.
typeName
==
"icp申请"
)
{
if
(
data
.
needsolution
.
typeName
==
"icp申请"
)
{
...
@@ -499,6 +520,9 @@ class AliHandler {
...
@@ -499,6 +520,9 @@ class AliHandler {
if
(
data
.
needsolution
.
typeName
==
"edi申请"
)
{
if
(
data
.
needsolution
.
typeName
==
"edi申请"
)
{
obj
.
businessName
=
"edi"
;
obj
.
businessName
=
"edi"
;
}
}
if
(
data
.
needsolution
.
typeName
==
"文网文"
)
{
obj
.
businessName
=
"文网文"
;
}
}
}
if
(
data
.
skuCode
)
{
//产品的sku
if
(
data
.
skuCode
)
{
//产品的sku
obj
.
skuCode
=
data
.
skuCode
;
obj
.
skuCode
=
data
.
skuCode
;
...
@@ -510,6 +534,13 @@ class AliHandler {
...
@@ -510,6 +534,13 @@ class AliHandler {
if
(
data
.
needsolution
.
status
==
"USER_UPLOADED"
)
{
//已上传
if
(
data
.
needsolution
.
status
==
"USER_UPLOADED"
)
{
//已上传
obj
.
deliverStatus
=
"collecting"
;
obj
.
deliverStatus
=
"collecting"
;
}
}
if
(
data
.
needsolution
.
status
==
"USER_PAY_PRODUCE"
)
{
//已支付
obj
.
deliverStatus
=
"received"
;
}
if
(
data
.
needsolution
.
status
==
"USER_UPLOAD_PRODUCE"
)
{
//已上传
obj
.
deliverStatus
=
"collecting"
;
}
}
}
if
(
data
.
needsolution
.
customerRemark
)
{
//状态原因
if
(
data
.
needsolution
.
customerRemark
)
{
//状态原因
obj
.
statusReason
=
data
.
needsolution
.
customerRemark
;
obj
.
statusReason
=
data
.
needsolution
.
customerRemark
;
...
...
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