Commit 077295ad by 庄冰

push2ali

parent a97af938
...@@ -84,6 +84,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -84,6 +84,7 @@ class NeedsolutionService extends ServiceBase {
var solutionNo = await this.getBusUid("ns"); var solutionNo = await this.getBusUid("ns");
ab["solutionNo"] = solutionNo; ab["solutionNo"] = solutionNo;
ab["status"] = "dqr"; ab["status"] = "dqr";
ab.solutionContent.notes="";
ab.solutionContent = JSON.stringify(ab.solutionContent); ab.solutionContent = JSON.stringify(ab.solutionContent);
var self = this; var self = this;
return await this.db.transaction(async function (t) { return await this.db.transaction(async function (t) {
...@@ -149,17 +150,9 @@ class NeedsolutionService extends ServiceBase { ...@@ -149,17 +150,9 @@ class NeedsolutionService extends ServiceBase {
return system.getResultFail(-100,"未知用户"); return system.getResultFail(-100,"未知用户");
} }
ab["createUserId"]=user.id; ab["createUserId"]=user.id;
// followManMobile: DataTypes.STRING,//跟进人手机号(合伙人)
// followManOnlyCode: DataTypes.STRING(50),//跟进者唯一码
if(!ab.needNo){ if(!ab.needNo){
return system.getResultFail(-101,"需求号不能为空"); return system.getResultFail(-101,"需求号不能为空");
} }
// if(!ab.followManMobile){
// return system.getResultFail(-102,"跟进人手机号不能为空");
// }
// if(!ab.followManOnlyCode){
// return system.getResultFail(-103,"跟进人唯一码不能为空");
// }
//获取需求信息 //获取需求信息
var needinfo = await this.needinfoDao.model.findOne({ var needinfo = await this.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true where:{needNo:ab.needNo},raw:true
...@@ -297,7 +290,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -297,7 +290,7 @@ class NeedsolutionService extends ServiceBase {
solutionContent["deliveryStatusName"] = solution_status[status]; solutionContent["deliveryStatusName"] = solution_status[status];
solutionContent["updated"] = new Date(); solutionContent["updated"] = new Date();
if(ab.note){ if(ab.note){
solutionContent["notes"] = ab.note; solutionContent["notes"] = ab.note;//用户反馈信息
} }
solutionContent = JSON.stringify(solutionContent); solutionContent = JSON.stringify(solutionContent);
var reqObj={ var reqObj={
...@@ -327,7 +320,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -327,7 +320,7 @@ class NeedsolutionService extends ServiceBase {
return system.getResultFail(-103,"方案状态错误,只能废弃待确认方案"); return system.getResultFail(-103,"方案状态错误,只能废弃待确认方案");
} }
await this.dao.update({id:ns.id,status:"yzf"});//方案废弃 await this.dao.update({id:ns.id,status:"yzf"});//方案废弃
return system.getResultSuccess(); return system.getResultSuccess({channelSolutionNo:ns.channelSolutionNo});
} }
//根据需求关闭方案(关闭需求后调用) //根据需求关闭方案(关闭需求后调用)
async abolishProgrammeByNeed(pobj){ async abolishProgrammeByNeed(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