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
73b61eb4
Commit
73b61eb4
authored
Nov 07, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wancheng
parent
3c1e4e62
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
38 deletions
+41
-38
center-channel/app/base/api/impl/action/qcapi.js
+4
-3
center-channel/app/base/api/impl/action/qcapi2.js
+5
-5
center-channel/app/base/api/impl/opreceive/need.js
+5
-3
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
+22
-22
center-channel/app/base/service/impl/utilsSve/utilsNeedSve2.js
+5
-5
No files found.
center-channel/app/base/api/impl/action/qcapi.js
View file @
73b61eb4
...
@@ -5,6 +5,7 @@ class QcAPI extends APIBase {
...
@@ -5,6 +5,7 @@ class QcAPI extends APIBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
qcCenterOrderSve
=
system
.
getObject
(
"service.common.qcCenterOrderSve"
);
this
.
qcCenterOrderSve
=
system
.
getObject
(
"service.common.qcCenterOrderSve"
);
this
.
baseOrderSve
=
system
.
getObject
(
"service.common.baseCenterOrderSve"
);
}
}
/**
/**
* 接口跳转-POST请求
* 接口跳转-POST请求
...
@@ -26,7 +27,7 @@ class QcAPI extends APIBase {
...
@@ -26,7 +27,7 @@ class QcAPI extends APIBase {
opResult
=
await
this
.
qcCenterOrderSve
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
opResult
=
await
this
.
qcCenterOrderSve
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
break
;
break
;
case
"submitIcpProgramme"
:
//icp方案提交
case
"submitIcpProgramme"
:
//icp方案提交
opResult
=
await
this
.
qcCenter
OrderSve
.
submitIcpProgramme
(
pobj
);
opResult
=
await
this
.
base
OrderSve
.
submitIcpProgramme
(
pobj
);
break
;
break
;
case
"receiveProgrammeNo"
:
//接收渠道方案号(测试)
case
"receiveProgrammeNo"
:
//接收渠道方案号(测试)
opResult
=
await
this
.
qcCenterOrderSve
.
reqCenterOrderApi
(
pobj
);
opResult
=
await
this
.
qcCenterOrderSve
.
reqCenterOrderApi
(
pobj
);
...
@@ -44,10 +45,10 @@ class QcAPI extends APIBase {
...
@@ -44,10 +45,10 @@ class QcAPI extends APIBase {
opResult
=
await
this
.
qcCenterOrderSve
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
opResult
=
await
this
.
qcCenterOrderSve
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
break
;
break
;
case
"serviceProviderSubmitMaterial"
:
//交付商提交材料信息
case
"serviceProviderSubmitMaterial"
:
//交付商提交材料信息
opResult
=
await
this
.
qcCenter
OrderSve
.
serviceProviderSubmitMaterial
(
pobj
);
opResult
=
await
this
.
base
OrderSve
.
serviceProviderSubmitMaterial
(
pobj
);
break
;
break
;
case
"serviceProviderNotification"
:
//交付商通知状态变更
case
"serviceProviderNotification"
:
//交付商通知状态变更
opResult
=
await
this
.
qcCenter
OrderSve
.
serviceProviderNotification
(
pobj
);
opResult
=
await
this
.
base
OrderSve
.
serviceProviderNotification
(
pobj
);
break
;
break
;
case
"closeOrderDelivery"
:
//交付商关闭交付单
case
"closeOrderDelivery"
:
//交付商关闭交付单
opResult
=
await
this
.
qcCenterOrderSve
.
closeOrderDelivery
(
pobj
);
opResult
=
await
this
.
qcCenterOrderSve
.
closeOrderDelivery
(
pobj
);
...
...
center-channel/app/base/api/impl/action/qcapi2.js
View file @
73b61eb4
...
@@ -25,13 +25,13 @@ class QcAPI2 extends APIBase {
...
@@ -25,13 +25,13 @@ class QcAPI2 extends APIBase {
var
opResult
=
null
;
var
opResult
=
null
;
switch
(
action_type
)
{
switch
(
action_type
)
{
case
"getNeedSolutionDetailByUser"
:
//获取方案详情
case
"getNeedSolutionDetailByUser"
:
//获取方案详情
opResult
=
await
this
.
baseO
rderSve
.
reqCenterOrderApi
(
pobj
,
"action/baseapi/springBoard"
);
opResult
=
await
this
.
centero
rderSve
.
reqCenterOrderApi
(
pobj
,
"action/baseapi/springBoard"
);
break
;
break
;
case
"submitIcpProgramme"
:
//icp方案提交
case
"submitIcpProgramme"
:
//icp方案提交
opResult
=
await
this
.
baseOrderSve
.
submitIcpProgramme
(
pobj
);
opResult
=
await
this
.
baseOrderSve
.
submitIcpProgramme
(
pobj
);
break
;
break
;
case
"receiveProgrammeNo"
:
//接收渠道方案号(测试)
case
"receiveProgrammeNo"
:
//接收渠道方案号(测试)
opResult
=
await
this
.
baseO
rderSve
.
reqCenterOrderApi
(
pobj
);
opResult
=
await
this
.
centero
rderSve
.
reqCenterOrderApi
(
pobj
);
break
;
break
;
// case "submitIcpMaterial"://icp材料提交
// case "submitIcpMaterial"://icp材料提交
// opResult = await this.baseOrderSve.submitIcpMaterial(pobj);
// opResult = await this.baseOrderSve.submitIcpMaterial(pobj);
...
@@ -40,10 +40,10 @@ class QcAPI2 extends APIBase {
...
@@ -40,10 +40,10 @@ class QcAPI2 extends APIBase {
// opResult = await this.baseOrderSve.acceptIcpPartnerNotification(pobj);
// opResult = await this.baseOrderSve.acceptIcpPartnerNotification(pobj);
// break;
// break;
case
"abolishIcpProgramme"
:
//服务商icp方案关闭
case
"abolishIcpProgramme"
:
//服务商icp方案关闭
opResult
=
await
this
.
baseO
rderSve
.
abolishIcpProgramme
(
pobj
);
opResult
=
await
this
.
centero
rderSve
.
abolishIcpProgramme
(
pobj
);
break
;
break
;
case
"getProgrammeInfoByChannelNeedNo"
:
//获取需求方案列表
case
"getProgrammeInfoByChannelNeedNo"
:
//获取需求方案列表
opResult
=
await
this
.
baseO
rderSve
.
reqCenterOrderApi
(
pobj
,
"action/baseapi/springBoard"
);
opResult
=
await
this
.
centero
rderSve
.
reqCenterOrderApi
(
pobj
,
"action/baseapi/springBoard"
);
break
;
break
;
case
"serviceProviderSubmitMaterial"
:
//交付商提交材料信息
case
"serviceProviderSubmitMaterial"
:
//交付商提交材料信息
opResult
=
await
this
.
baseOrderSve
.
serviceProviderSubmitMaterial
(
pobj
);
opResult
=
await
this
.
baseOrderSve
.
serviceProviderSubmitMaterial
(
pobj
);
...
@@ -52,7 +52,7 @@ class QcAPI2 extends APIBase {
...
@@ -52,7 +52,7 @@ class QcAPI2 extends APIBase {
opResult
=
await
this
.
baseOrderSve
.
serviceProviderNotification
(
pobj
);
opResult
=
await
this
.
baseOrderSve
.
serviceProviderNotification
(
pobj
);
break
;
break
;
case
"closeOrderDelivery"
:
//交付商关闭交付单
case
"closeOrderDelivery"
:
//交付商关闭交付单
opResult
=
await
this
.
baseO
rderSve
.
closeOrderDelivery
(
pobj
);
opResult
=
await
this
.
centero
rderSve
.
closeOrderDelivery
(
pobj
);
break
;
break
;
// --------- 文网文 ---------
// --------- 文网文 ---------
...
...
center-channel/app/base/api/impl/opreceive/need.js
View file @
73b61eb4
...
@@ -6,6 +6,8 @@ class Need extends APIBase {
...
@@ -6,6 +6,8 @@ class Need extends APIBase {
super
();
super
();
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
this
.
centerorderSve
=
system
.
getObject
(
"service.common.centerorderSve"
);
this
.
centerorderSve
=
system
.
getObject
(
"service.common.centerorderSve"
);
this
.
utilsNeedSve2
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve2"
);
}
}
/**
/**
...
@@ -40,7 +42,7 @@ class Need extends APIBase {
...
@@ -40,7 +42,7 @@ class Need extends APIBase {
opResult
=
await
this
.
utilsNeedSve
.
needClose
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsNeedSve
.
needClose
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"needCloseIcp"
:
//关闭需求
case
"needCloseIcp"
:
//关闭需求
opResult
=
await
this
.
utilsNeedSve
.
needCloseIcp
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsNeedSve
2
.
needCloseIcp
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
case
"needDetailByChannelNo"
:
case
"needDetailByChannelNo"
:
opResult
=
await
this
.
utilsNeedSve
.
needDetailByChannelNo
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsNeedSve
.
needDetailByChannelNo
(
pobj
,
pobj
.
actionBody
);
...
@@ -68,10 +70,10 @@ class Need extends APIBase {
...
@@ -68,10 +70,10 @@ class Need extends APIBase {
}
}
break
;
break
;
case
"writeCommunicationLog"
:
//icp接收方案反馈信息
case
"writeCommunicationLog"
:
//icp接收方案反馈信息
opResult
=
await
this
.
utilsNeedSve
.
writeCommunicationLog
(
pobj
);
opResult
=
await
this
.
utilsNeedSve
2
.
writeCommunicationLog
(
pobj
);
break
;
break
;
case
"queryExpertApplyCommunicationLogs"
:
//icp接收方案反馈信息
case
"queryExpertApplyCommunicationLogs"
:
//icp接收方案反馈信息
opResult
=
await
this
.
utilsNeedSve
.
queryExpertApplyCommunicationLogs
(
pobj
);
opResult
=
await
this
.
utilsNeedSve
2
.
queryExpertApplyCommunicationLogs
(
pobj
);
break
;
break
;
case
"getaliicpProduce"
:
//方案询价
case
"getaliicpProduce"
:
//方案询价
opResult
=
await
this
.
centerorderSve
.
getaliicpProduce
(
pobj
);
opResult
=
await
this
.
centerorderSve
.
getaliicpProduce
(
pobj
);
...
...
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
View file @
73b61eb4
...
@@ -80,7 +80,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -80,7 +80,7 @@ class BaseCenterOrderService extends AppServiceBase {
};
};
//调用center-order
//调用center-order
async
reqCenterOrderApi
(
pobj
,
reqUrl
)
{
async
reqCenterOrderApi
(
pobj
,
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
url
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
if
(
reqUrl
)
{
if
(
reqUrl
)
{
var
url
=
this
.
centerOrderUrl
+
reqUrl
;
var
url
=
this
.
centerOrderUrl
+
reqUrl
;
}
}
...
@@ -247,7 +247,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -247,7 +247,7 @@ class BaseCenterOrderService extends AppServiceBase {
//服务商icp方案关闭 2020-10-26 laolan
//服务商icp方案关闭 2020-10-26 laolan
async
abolishIcpProgramme
(
pobj
)
{
async
abolishIcpProgramme
(
pobj
)
{
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
var
needsolution
=
res
.
data
;
//方案信息
var
needsolution
=
res
.
data
;
//方案信息
var
ab
=
pobj
.
actionBody
;
var
ab
=
pobj
.
actionBody
;
...
@@ -305,15 +305,15 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -305,15 +305,15 @@ class BaseCenterOrderService extends AppServiceBase {
console
.
log
(
'BizId++'
,
BizId
)
console
.
log
(
'BizId++'
,
BizId
)
var
pushObj
=
{
var
pushObj
=
{
"businessLicense"
:
{
"businessLicense"
:
{
"createdAt"
:
material
.
BusinessLicense
.
CreatedAt
,
"createdAt"
:
material
.
BusinessLicense
.
CreatedAt
||
""
,
"enterpriseCode"
:
material
.
BusinessLicense
.
EnterpriseCode
,
"enterpriseCode"
:
material
.
BusinessLicense
.
EnterpriseCode
||
""
,
"legalRepresentative"
:
material
.
BusinessLicense
.
LegalRepresentative
,
"legalRepresentative"
:
material
.
BusinessLicense
.
LegalRepresentative
||
""
,
"address"
:
material
.
BusinessLicense
.
Address
,
"address"
:
material
.
BusinessLicense
.
Address
||
""
,
"registeredCapital"
:
material
.
BusinessLicense
.
RegisteredCapital
,
"registeredCapital"
:
material
.
BusinessLicense
.
RegisteredCapital
||
""
,
"name"
:
material
.
BusinessLicense
.
Name
,
"name"
:
material
.
BusinessLicense
.
Name
||
""
,
"businessTerm"
:
material
.
BusinessLicense
.
BusinessTerm
,
"businessTerm"
:
material
.
BusinessLicense
.
BusinessTerm
||
""
,
"type"
:
material
.
BusinessLicense
.
Type
,
"type"
:
material
.
BusinessLicense
.
Type
||
""
,
"scopeBusiness"
:
material
.
BusinessLicense
.
ScopeBusiness
"scopeBusiness"
:
material
.
BusinessLicense
.
ScopeBusiness
||
""
},
},
"partnerForeignInvestment"
:
material
.
PartnerForeignInvestment
||
""
,
"partnerForeignInvestment"
:
material
.
PartnerForeignInvestment
||
""
,
"orderNo"
:
BizId
,
"orderNo"
:
BizId
,
...
@@ -371,7 +371,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -371,7 +371,7 @@ class BaseCenterOrderService extends AppServiceBase {
}
}
//交付单关闭
//交付单关闭
async
closeOrderDelivery
(
pobj
)
{
async
closeOrderDelivery
(
pobj
)
{
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
var
needsolution
=
res
.
data
;
//方案信息
var
needsolution
=
res
.
data
;
//方案信息
var
ab
=
pobj
.
actionBody
;
var
ab
=
pobj
.
actionBody
;
...
@@ -390,7 +390,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -390,7 +390,7 @@ class BaseCenterOrderService extends AppServiceBase {
//服务商提交服务操作(文网文)2020-9-26
//服务商提交服务操作(文网文)2020-9-26
async
serviceSubmitOption
(
pobj
)
{
async
serviceSubmitOption
(
pobj
)
{
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
//推送数据至阿里
//推送数据至阿里
var
resStatus
=
res
.
data
.
ApplicationStatus
;
var
resStatus
=
res
.
data
.
ApplicationStatus
;
...
@@ -412,7 +412,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -412,7 +412,7 @@ class BaseCenterOrderService extends AppServiceBase {
//提交方案(文网文)2020-9-27
//提交方案(文网文)2020-9-27
async
submitWangwenSolution
(
pobj
)
{
async
submitWangwenSolution
(
pobj
)
{
console
.
log
(
'文网文提交方案'
,
pobj
)
console
.
log
(
'文网文提交方案'
,
pobj
)
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
console
.
log
(
'www'
,
res
.
data
.
needsolution
.
solutionContent
);
console
.
log
(
'www'
,
res
.
data
.
needsolution
.
solutionContent
);
var
solution
=
res
.
data
.
needsolution
.
solutionContent
;
var
solution
=
res
.
data
.
needsolution
.
solutionContent
;
...
@@ -490,7 +490,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -490,7 +490,7 @@ class BaseCenterOrderService extends AppServiceBase {
var
self
=
this
;
var
self
=
this
;
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
needNo
;
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
needNo
;
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
'www+++result'
,
result
)
console
.
log
(
'www+++result'
,
result
)
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
...
@@ -545,7 +545,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -545,7 +545,7 @@ class BaseCenterOrderService extends AppServiceBase {
//提交沟通记录
//提交沟通记录
async
recordLog
(
pobj
)
{
async
recordLog
(
pobj
)
{
console
.
log
(
'提交沟通记录pobj'
,
pobj
)
console
.
log
(
'提交沟通记录pobj'
,
pobj
)
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
!
pobj
.
actionBody
.
needNo
)
{
if
(
!
pobj
.
actionBody
.
needNo
)
{
return
system
.
getResult
(
null
,
"actionBody.needNo can not be empty,100491"
);
return
system
.
getResult
(
null
,
"actionBody.needNo can not be empty,100491"
);
}
}
...
@@ -553,7 +553,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -553,7 +553,7 @@ class BaseCenterOrderService extends AppServiceBase {
return
system
.
getResult
(
null
,
"actionBody.note can not be empty,100492"
);
return
system
.
getResult
(
null
,
"actionBody.note can not be empty,100492"
);
}
}
var
self
=
this
;
var
self
=
this
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
'www+提交沟通记录result'
,
result
)
console
.
log
(
'www+提交沟通记录result'
,
result
)
//推送交付系统
//推送交付系统
...
@@ -607,7 +607,7 @@ class BaseCenterOrderService extends AppServiceBase {
...
@@ -607,7 +607,7 @@ class BaseCenterOrderService extends AppServiceBase {
//服务商提交服务操作
//服务商提交服务操作
async
foodServiceSubmitOption
(
pobj
)
{
async
foodServiceSubmitOption
(
pobj
)
{
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
//推送数据至阿里
//推送数据至阿里
var
resStatus
=
res
.
data
.
ApplicationStatus
;
var
resStatus
=
res
.
data
.
ApplicationStatus
;
...
@@ -628,7 +628,7 @@ async foodServiceSubmitOption(pobj) {
...
@@ -628,7 +628,7 @@ async foodServiceSubmitOption(pobj) {
//提交方案
//提交方案
async
submitFoodSolution
(
pobj
)
{
async
submitFoodSolution
(
pobj
)
{
console
.
log
(
'food+++pobj'
,
pobj
)
console
.
log
(
'food+++pobj'
,
pobj
)
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
console
.
log
(
'food+++res'
,
res
)
console
.
log
(
'food+++res'
,
res
)
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
console
.
log
(
'food'
,
res
.
data
.
needsolution
.
solutionContent
);
console
.
log
(
'food'
,
res
.
data
.
needsolution
.
solutionContent
);
...
@@ -686,7 +686,7 @@ async foodCloseNeed(pobj) {
...
@@ -686,7 +686,7 @@ async foodCloseNeed(pobj) {
var
self
=
this
;
var
self
=
this
;
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
needNo
;
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
needNo
;
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
'food+++result'
,
result
)
console
.
log
(
'food+++result'
,
result
)
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
...
@@ -731,7 +731,7 @@ async foodCloseNeed(pobj) {
...
@@ -731,7 +731,7 @@ async foodCloseNeed(pobj) {
//提交沟通记录
//提交沟通记录
async
foodRecordLog
(
pobj
)
{
async
foodRecordLog
(
pobj
)
{
console
.
log
(
'提交沟通记录pobj'
,
pobj
)
console
.
log
(
'提交沟通记录pobj'
,
pobj
)
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
base
api/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/
qc
api/springBoard"
);
if
(
!
pobj
.
actionBody
.
needNo
)
{
if
(
!
pobj
.
actionBody
.
needNo
)
{
return
system
.
getResult
(
null
,
"actionBody.needNo can not be empty,100491"
);
return
system
.
getResult
(
null
,
"actionBody.needNo can not be empty,100491"
);
}
}
...
@@ -739,7 +739,7 @@ async foodRecordLog(pobj) {
...
@@ -739,7 +739,7 @@ async foodRecordLog(pobj) {
return
system
.
getResult
(
null
,
"actionBody.note can not be empty,100492"
);
return
system
.
getResult
(
null
,
"actionBody.note can not be empty,100492"
);
}
}
var
self
=
this
;
var
self
=
this
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
'提交沟通记录result'
,
result
)
console
.
log
(
'提交沟通记录result'
,
result
)
//推送交付系统
//推送交付系统
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve2.js
View file @
73b61eb4
...
@@ -222,7 +222,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -222,7 +222,7 @@ class UtilsNeedService2 extends AppServiceBase {
// 2020 1016 lin 新增 需求关闭时判断 方案状态 订单状态,打个比方如果已经生成订单了 那么肯定不能直接关闭需求
// 2020 1016 lin 新增 需求关闭时判断 方案状态 订单状态,打个比方如果已经生成订单了 那么肯定不能直接关闭需求
var
self
=
this
;
var
self
=
this
;
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
// 2020 1015 lin 新增 这里为什么只推送蜂擎 没有推送交付?
// 2020 1015 lin 新增 这里为什么只推送蜂擎 没有推送交付?
// 明天找栋源确认 如果需要增加 在这个文件搜索updateChanceStatus
// 明天找栋源确认 如果需要增加 在这个文件搜索updateChanceStatus
...
@@ -268,7 +268,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -268,7 +268,7 @@ class UtilsNeedService2 extends AppServiceBase {
var
self
=
this
;
var
self
=
this
;
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
channelNeedNo
;
pobj
.
actionBody
.
intentionBizId
=
pobj
.
actionBody
.
channelNeedNo
;
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
pobj
.
actionType
=
"abolishIcpProgrammeByNeed"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
base
api/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/
qc
api/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
this
.
logCtl
.
info
({
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
...
@@ -496,7 +496,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -496,7 +496,7 @@ class UtilsNeedService2 extends AppServiceBase {
return
system
.
getResult
(
null
,
"actionBody.note can not be empty,100492"
);
return
system
.
getResult
(
null
,
"actionBody.note can not be empty,100492"
);
}
}
var
self
=
this
;
var
self
=
this
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need
2
/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
//2020-10-28 laolan start
//2020-10-28 laolan start
if
(
result
&&
result
.
status
==
0
&&
result
.
data
){
if
(
result
&&
result
.
status
==
0
&&
result
.
data
){
...
@@ -541,7 +541,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -541,7 +541,7 @@ class UtilsNeedService2 extends AppServiceBase {
// return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
// return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
// }
// }
//2020-10-28 laolan start
//2020-10-28 laolan start
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need
2
/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
'jilu+++result++++'
,
result
)
console
.
log
(
'jilu+++result++++'
,
result
)
if
(
result
&&
result
.
status
==
0
&&
result
.
data
&&
result
.
data
.
uapp_id
){
if
(
result
&&
result
.
status
==
0
&&
result
.
data
&&
result
.
data
.
uapp_id
){
...
@@ -662,7 +662,7 @@ class UtilsNeedService2 extends AppServiceBase {
...
@@ -662,7 +662,7 @@ class UtilsNeedService2 extends AppServiceBase {
pobj
.
actionBody
.
data
=
[];
pobj
.
actionBody
.
data
=
[];
await
this
.
queryByAli
(
pobj
,
1
);
await
this
.
queryByAli
(
pobj
,
1
);
pobj
.
actionType
=
"getUnCreated"
;
pobj
.
actionType
=
"getUnCreated"
;
let
reqUrl
=
this
.
centerOrderUrl
+
"action/need
2
/springBoard"
;
let
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
let
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
.
status
==
0
)
{
if
(
result
.
status
==
0
)
{
pobj
.
actionBody
=
{
pobj
.
actionBody
=
{
...
...
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