Commit db21c641 by linboxuan

disagnosis update

parent e8d3c559
......@@ -35,6 +35,20 @@ class Zzzd extends WEBBase {
var result = await this.opActionProcess(pobj, pobj.actionType, req);
return result;
}
checkFilter(arr) {
if(!arr) {
return [];
}
return arr.filter((obj) => {
obj.picUrl = "";
obj.picName = obj.name;
delete obj.id;
delete obj.name;
return obj
});
}
async opActionProcess (pobj, action_type, req) {
pobj.requestId = req.requestId;
var opResult = null;
......@@ -123,10 +137,16 @@ class Zzzd extends WEBBase {
opResult =await this.restPostUrl(pobj.actionBody,settings.zzzdUrl()+this.zzzApi.recommendationBusiness);
// 调用order创建诊断单方法,并把大数据诊断结果传过去,以及客户选择的行业分类带过去 格式 【一级分类-二级分类,】
pobj.actionBody.checkResult = opResult;
pobj.actionBody.qualificationsPic = this.checkFilter(pobj.actionBody.data.base);// 记录智能诊断的资质信息
pobj.actionBody.brandPic = this.checkFilter(pobj.actionBody.data.brand);
pobj.actionBody.industryPic = this.checkFilter(pobj.actionBody.data.industry);
pobj.actionBody.diagnosisMode = "zn";
pobj.actionType = "manualEvaluation"
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
let res = await this.restPostUrl(pobj,reqUrl);
if(res.status == 0) {
opResult.data.diagnosis_no = res.data.diagnosis_no
}
console.log(res);
}catch (e) {
console.log(e);
......
......@@ -16,7 +16,7 @@
| ---- | ---- | ---- | ---- |
|userName | Y | string | 用户名称 |
|area | N | string | 地区名称 |
|description | Y | string | 备注 |
|description | Y | string | 备注/抖音用做需求类型 |
|mobile | Y | string | 用户电话 |
|type | N | int | 产品类型 |
......@@ -137,7 +137,7 @@
"productOneType_id": null,
"productType_id": null,
"notes": null,
"disposeNotes": null,
"disposeNotes": null,// 备注/抖音用做需求类型
"statusName": "未推送",// 需求状态
"status": "wts",// 需求状态 wts未推送,yts已推送,ygj已跟进,ycd已成单,ygb已关闭 注意这里原型的需求状态不支持,按文档来
"city": "北京市-北京市-大兴区",
......@@ -231,7 +231,7 @@
"publishContent": "公司注册 - ",// 需求内容
"publishName": "",// 联系人/公司名称
"publishMobile": "13911391996",// 联系电话
"notes": null,
"notes": null,// 备注/抖音用做需求类型
"followContent": null,
"disposeNotes": null,
"status": "ygb",// 需求状态 wts未推送,yts已推送,ygj已跟进,ycd已成单,ygb已关闭 注意这里原型的需求状态不支持,按文档来
......
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