Commit e11694a6 by 王勇飞

gyq

parent f610b90d
......@@ -47,8 +47,8 @@ class BizOptCtl extends CtlBase {
robj.demand_code = element.demand_code; //商机编号
robj.v_cophone = element.v_cophone; //联系电话-shousuo
robj.business_status = element.business_status; //商机当前状态
if (element.business_info.serviceName && element.business_info.serviceName != 'undefined') {
robj.address = element.business_info.serviceName; //服务地区
if (element.service_address && element.service_address != 'undefined') {
robj.address = element.service_address; //服务地区
} else {
robj.address = "";
}
......@@ -225,7 +225,10 @@ class BizOptCtl extends CtlBase {
var schemeInfo = await this.schemeSve.findInfo(pobj); //方案详情
var followUpinfos = await this.operationrecordSve.findAllInfo(pobj); //线索记录
return system.getResult({ bizoptInfo: bizoptInfo, companyInfo: companyInfo, schemeInfo: schemeInfo, followUpinfos: followUpinfos });
var rtn = { bizoptInfo: bizoptInfo, companyInfo: companyInfo, schemeInfo: schemeInfo, followUpinfos: followUpinfos };
console.log("获取记录详情页所有信息-------------------",JSON.stringify(rtn));
return system.getResult(rtn);
} catch (error) {
console.log("bizopt/getFollowUpInfo err: " + error);
return system.getResultError("bizoptCtl/closeBizopt 获取跟进详情页信息出错!");
......
......@@ -113,8 +113,8 @@ class BizoptDao extends Dao {
"business_info": {},
"source_number": qobj.sourceNumber,
"service_address": qobj.area,
"facilitator_id": qobj.favilitatorId,
"facilitator_name": qobj.favilitatorName,
"facilitator_id": qobj.facilitatorId,
"facilitator_name": qobj.facilitatorName,
"source_name": qobj.sourceName,
};
//business_info START
......@@ -127,6 +127,9 @@ class BizoptDao extends Dao {
if (qobj.mobile && qobj.mobile != 'undefined') {
obj.business_info.contactsPhone = qobj.mobile;
}
if (qobj.area && qobj.area != 'undefined'){
obj.business_info.serviceName = qobj.area;
}
//bussiness_info END
//other
if (qobj.closeReason && qobj.closeReason != 'undefined') {
......
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