Commit f4198cce by 王勇飞

pp

parent 325eeb52
......@@ -218,6 +218,8 @@ class AliHandler {
try {
let resInfo = await this.userService.getSalesmanInfo(datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId);
obj.salesmanOpcode = resInfo.opath;
obj.salesmanName = resInfo.nickName;
obj.servicerCode=resInfo.company_id;
} catch (error) {
console.log("salesmanChannelId: "+ datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId +"获取业务员opcode失败:" + error)
}
......@@ -368,9 +370,6 @@ class AliHandler {
obj.deliverNumber = data.orderNo;
}
if (data.servicer) {//服务商信息
if (data.servicer.code) {//服务商编码
obj.servicerCode = data.servicer.code;
}
if (data.servicer.name) {//服务商名称
obj.servicerName = data.servicer.name;
}
......@@ -424,14 +423,14 @@ class AliHandler {
obj.channelSource = "aliCloud";
obj.channelNumber = "阿里云";
if(data.needsolution.salesmanInfo) {
if(data.needsolution.salesmanInfo) {//业务员id
if(data.needsolution.salesmanInfo.salesmanId) {
obj.salesmanId = data.needsolution.salesmanInfo.salesmanId;
}
if(data.needsolution.salesmanInfo.salesmanName) {
if(data.needsolution.salesmanInfo.salesmanName) {//业务员name
obj.salesmanName = data.needsolution.salesmanInfo.salesmanName;
}
if(data.needsolution.salesmanInfo.salesmanMobile) {
if(data.needsolution.salesmanInfo.salesmanMobile) {//业务员手机
obj.salesmanPhone = data.needsolution.salesmanInfo.salesmanMobile;
}
}
......
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