Commit ff258937 by 庄冰

centerordersve

parent 46489b6c
...@@ -37,7 +37,33 @@ class CenterorderService { ...@@ -37,7 +37,33 @@ class CenterorderService {
}; };
var self = this; var self = this;
//推送方案 //推送方案
this.aliclient.reqbyget({action:"SubmitSolution",reqbody:pushObj}).then(pushRes=>{ this.pushSubmitSolution(pushObj,self);
// this.aliclient.reqbyget({action:"SubmitSolution",reqbody:pushObj}).then(pushRes=>{
// if(pushRes && pushRes.status==0 && pushRes.data){
// var resData = pushRes.data;
// var reqObj2 = {
// actionType:"receiveProgrammeNo",
// actionBody:{
// solutionNo:needsolution.solutionNo,
// solutionBizId:resData.SolutionBizId
// }
// };
// self.reqCenterOrderApi(reqObj2);//保存渠道方案id
// }
// });
//推送需求小记
if(needinfo.pushflag && needinfo.pushflag==1){//推送标志 值为1推送需求小记
var pushObj2={
intentionBizId:needinfo.channelNeedNo,note:"创建方案"
};
this.aliclient.reqbyget({action:"SubmitIntentionNote",reqbody:pushObj2});
}
}
return system.getResultSuccess();
}
//推送方案
async pushSubmitSolution(pushObj,self){
var pushRes = await self.aliclient.reqbyget({action:"SubmitSolution",reqbody:pushObj});
if(pushRes && pushRes.status==0 && pushRes.data){ if(pushRes && pushRes.status==0 && pushRes.data){
var resData = pushRes.data; var resData = pushRes.data;
var reqObj2 = { var reqObj2 = {
...@@ -47,18 +73,8 @@ class CenterorderService { ...@@ -47,18 +73,8 @@ class CenterorderService {
solutionBizId:resData.SolutionBizId solutionBizId:resData.SolutionBizId
} }
}; };
self.reqCenterOrderApi(reqObj2);//保存渠道方案id await self.reqCenterOrderApi(reqObj2);//保存渠道方案id
} }
});
//推送需求小记
if(needinfo.pushflag && needinfo.pushflag==1){//推送标志 值为1推送需求小记
var pushObj2={
intentionBizId:needinfo.channelNeedNo,note:"创建方案"
};
this.aliclient.reqbyget({action:"SubmitIntentionNote",reqbody:pushObj2});
}
}
return system.getResultSuccess();
} }
//服务商方案作废 //服务商方案作废
async abolishProgramme(pobj) { async abolishProgramme(pobj) {
......
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