Commit 7ba3dc54 by 兰国旗

laolan

parent 8891609f
...@@ -222,7 +222,6 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -222,7 +222,6 @@ class QcCenterOrderService extends AppServiceBase {
//服务商提交服务操作(文网文)2020-9-26 //服务商提交服务操作(文网文)2020-9-26
async serviceSubmitOption(pobj) { async serviceSubmitOption(pobj) {
console.log('sssssssss', pobj)
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
//推送数据至阿里 //推送数据至阿里
...@@ -259,14 +258,14 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -259,14 +258,14 @@ class QcCenterOrderService extends AppServiceBase {
//关闭需求 //关闭需求
async closeNeed(pobj) { async closeNeed(pobj) {
if (!actionBody.channelNeedNo) { if (!pobj.actionBody.needNo) {
return system.getResult(null, "actionBody.channelNeedNo can not be empty,100395"); return system.getResult(null, "actionBody.needNo can not be empty,100395");
} }
if (!actionBody.note) { if (!pobj.actionBody.note) {
return system.getResult(null, "actionBody.note can not be empty,100395"); return system.getResult(null, "actionBody.note can not be empty,100395");
} }
var self = this; var self = this;
pobj.actionBody.intentionBizId = pobj.actionBody.channelNeedNo; pobj.actionBody.intentionBizId = pobj.actionBody.needNo;
pobj.actionType = "abolishIcpProgrammeByNeed" pobj.actionType = "abolishIcpProgrammeByNeed"
var reqUrl = this.centerOrderUrl + "action/qcapi/springBoard"; var reqUrl = this.centerOrderUrl + "action/qcapi/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
...@@ -291,7 +290,7 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -291,7 +290,7 @@ class QcCenterOrderService extends AppServiceBase {
//推送交付系统 //推送交付系统
var reqParams = { var reqParams = {
actionBody: { actionBody: {
intentionBizId: pobj.actionBody.channelNeedNo, intentionBizId: pobj.actionBody.needNo,
status: "closeNeed" status: "closeNeed"
}, },
opType: "updateChanceStatus", opType: "updateChanceStatus",
...@@ -309,7 +308,7 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -309,7 +308,7 @@ class QcCenterOrderService extends AppServiceBase {
optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery", optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery",
}); });
// 推送ali // 推送ali
var a = await self.aliclient.reqbyget({ action: "CloseIntentionForPartner", reqbody: { BizId: actionBody.channelNeedNo, BizType: "esp.wangwen" }, apiVersion: "2019-03-06" }); var a = await self.aliclient.reqbyget({ action: "CloseIntentionForPartner", reqbody: { BizId: pobj.actionBody.needNo, BizType: "esp.wangwen" }, apiVersion: "2019-03-06" });
self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed"); self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
return system.getResultSuccess(); return system.getResultSuccess();
} else { } else {
...@@ -320,8 +319,8 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -320,8 +319,8 @@ class QcCenterOrderService extends AppServiceBase {
//提交沟通记录 //提交沟通记录
async recordLog(pobj) { async recordLog(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (!pobj.actionBody.intentionBizId) { if (!pobj.actionBody.needNo) {
return system.getResult(null, "actionBody.intentionBizId can not be empty,100491"); return system.getResult(null, "actionBody.needNo can not be empty,100491");
} }
if (!pobj.actionBody.note) { if (!pobj.actionBody.note) {
return system.getResult(null, "actionBody.note can not be empty,100492"); return system.getResult(null, "actionBody.note can not be empty,100492");
...@@ -329,7 +328,6 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -329,7 +328,6 @@ class QcCenterOrderService extends AppServiceBase {
var self = this; var self = this;
var reqUrl = this.centerOrderUrl + "action/need/springBoard"; var reqUrl = this.centerOrderUrl + "action/need/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
console.log("res", res)
//推送交付系统 //推送交付系统
var reqParams = { var reqParams = {
actionBody: { actionBody: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment