Commit c6542da0 by 兰国旗

laolan

parent a9aecfcd
...@@ -23,7 +23,7 @@ class QcAPI extends APIBase { ...@@ -23,7 +23,7 @@ class QcAPI extends APIBase {
var opResult = null; var opResult = null;
switch (action_type) { switch (action_type) {
case "getNeedSolutionDetailByUser"://获取方案详情 case "getNeedSolutionDetailByUser"://获取方案详情
opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/qcapi/springBoard"); opResult = await this.centerorderSve.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
break; break;
case "submitIcpProgramme"://icp方案提交 case "submitIcpProgramme"://icp方案提交
opResult = await this.centerorderSve.submitIcpProgramme(pobj); opResult = await this.centerorderSve.submitIcpProgramme(pobj);
...@@ -41,9 +41,8 @@ class QcAPI extends APIBase { ...@@ -41,9 +41,8 @@ class QcAPI extends APIBase {
opResult = await this.centerorderSve.abolishIcpProgramme(pobj); opResult = await this.centerorderSve.abolishIcpProgramme(pobj);
break; break;
case "getProgrammeInfoByChannelNeedNo"://获取需求方案列表 case "getProgrammeInfoByChannelNeedNo"://获取需求方案列表
opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/qcapi/springBoard"); opResult = await this.centerorderSve.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
break; break;
case "serviceProviderSubmitMaterial"://交付商提交材料信息 case "serviceProviderSubmitMaterial"://交付商提交材料信息
opResult = await this.centerorderSve.serviceProviderSubmitMaterial(pobj); opResult = await this.centerorderSve.serviceProviderSubmitMaterial(pobj);
break; break;
...@@ -53,6 +52,12 @@ class QcAPI extends APIBase { ...@@ -53,6 +52,12 @@ class QcAPI extends APIBase {
case "closeOrderDelivery"://交付商关闭交付单 case "closeOrderDelivery"://交付商关闭交付单
opResult = await this.centerorderSve.closeOrderDelivery(pobj); opResult = await this.centerorderSve.closeOrderDelivery(pobj);
break; break;
case "serviceSubmitOption"://服务商提交服务操作(文网文)2020-9-26
opResult = await this.centerorderSve.serviceSubmitOption(pobj);
break;
case "submitWangwenSolution"://提交方案(文网文)2020-9-26
opResult = await this.centerorderSve.submitWangwenSolution(pobj);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -77,13 +77,13 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -77,13 +77,13 @@ class QcCenterOrderService extends AppServiceBase {
requestId: pobj.requestId || "", requestId: pobj.requestId || "",
op: "service/impl/common/qcCenterOrderSve.js/submitIcpProgramme", op: "service/impl/common/qcCenterOrderSve.js/submitIcpProgramme",
content: JSON.stringify(pobj), content: JSON.stringify(pobj),
resultInfo:JSON.stringify(needinfo), resultInfo: JSON.stringify(needinfo),
optitle:"createSolution推送蜂擎获取的接口信息->aliBusiness2Delivery", optitle: "createSolution推送蜂擎获取的接口信息->aliBusiness2Delivery",
}); });
var reqParams = { var reqParams = {
actionBody: { actionBody: {
intentionBizId: needinfo.channelNeedNo, intentionBizId: needinfo.channelNeedNo,
status:"createSolution" status: "createSolution"
}, },
appInfo: pobj.appInfo appInfo: pobj.appInfo
} }
...@@ -219,5 +219,40 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -219,5 +219,40 @@ class QcCenterOrderService extends AppServiceBase {
} }
return res; return res;
} }
//服务商提交服务操作(文网文)2020-9-26
async serviceSubmitOption(pobj) {
console.log('sssssssss', pobj)
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
//推送数据至阿里
var pushObj = {
BizId: res.data.solutionNo,
BizType: res.data.channelTpye,
OperateType: res.data.ApplicationStatus
};
//推送状态变更
this.aliclient.reqbyget({ action: "OperateProduceForPartner", reqbody: pushObj, apiVersion: "2019-09-26" });
return system.getResultSuccess();
}
return res;
}
//提交方案(文网文)2020-9-27
async submitWangwenSolution(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
//推送数据至阿里
var pushObj = {
intentionBizId: res.data.solutionNo,
bizType: res.data.channelTpye,
solution: res.data.solutionContent
};
//推送状态变更
this.aliclient.reqbyget({ action: "SubmitSolution", reqbody: pushObj, apiVersion: "2019-09-27" });
return system.getResultSuccess();
}
return res;
}
} }
module.exports = QcCenterOrderService; module.exports = QcCenterOrderService;
\ No newline at end of file
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