Commit 226c7d93 by 宋毅

修改

parent 6a7b4600
...@@ -36,7 +36,7 @@ class IcpOrderService extends AppServiceBase { ...@@ -36,7 +36,7 @@ class IcpOrderService extends AppServiceBase {
if (productItem.status != 0) { if (productItem.status != 0) {
return system.getResultFail(-5010, "产品查询失败,6100002"); return system.getResultFail(-5010, "产品查询失败,6100002");
} }
console.log("productItem......................",JSON.stringify(productItem)) console.log("productItem......................", JSON.stringify(productItem))
pobj.userInfo = {channel_userid: pobj.userName || ""} pobj.userInfo = {channel_userid: pobj.userName || ""}
pobj.actionBody = { pobj.actionBody = {
...@@ -130,15 +130,12 @@ class IcpOrderService extends AppServiceBase { ...@@ -130,15 +130,12 @@ class IcpOrderService extends AppServiceBase {
} }
console.log("yfObj......................................................", JSON.stringify(yfObj)) console.log("yfObj......................................................", JSON.stringify(yfObj))
let yunfuPushRes = await this.utilsPushSve.business2Channel(yfObj, "pushOrderICPBusinessNew"); let yunfuPushRes = await this.utilsPushSve.business2Channel(yfObj, "pushOrderICPBusinessNew");
if (pobj.actionBody.isDirectBuy && pobj.actionBody.isDirectBuy == 1) {//直接下单需执行添加订单业务员操作
if (yunfuPushRes && yunfuPushRes.status == 0) {
if (yunfuPushRes.data && yunfuPushRes.data.data) {
let deliveryObj = { let deliveryObj = {
actionBody: { actionBody: {
orderNo: yunfuPushRes.data.orderNo, orderNo: solutionItem.data.orderNo,
needsolution: yunfuPushRes.data.solutionContent, needsolution: solutionItem.data.solutionContent,
channelNeedNo: yunfuPushRes.data.channelNeedNo, channelNeedNo: solutionItem.data.channelNeedNo,
channelSolutionNo: yunfuPushRes.data.channelSolutionNo, channelSolutionNo: solutionItem.data.channelSolutionNo,
skuCode: productItem.data.payCode, skuCode: productItem.data.payCode,
servicer: { servicer: {
code: 'gsb', code: 'gsb',
...@@ -147,16 +144,22 @@ class IcpOrderService extends AppServiceBase { ...@@ -147,16 +144,22 @@ class IcpOrderService extends AppServiceBase {
}, },
appInfo: pobj.appInfo appInfo: pobj.appInfo
}; };
if (pobj.actionBody.isDirectBuy && pobj.actionBody.isDirectBuy == 1) {//直接下单需执行添加订单业务员操作
if (yunfuPushRes && yunfuPushRes.status == 0) {
if (yunfuPushRes.data && yunfuPushRes.data.data) {
let resData = yunfuPushRes.data.data; let resData = yunfuPushRes.data.data;
let salesmanInfo = { let salesmanInfo = {
salesmanName: resData.orderList && resData.orderList.length > 0 ? resData.orderList[0].operatorName : "", salesmanName: resData.orderList && resData.orderList.length > 0 ? resData.orderList[0].operatorName : "",
salesmanChannelId: resData.orderList && resData.orderList.length > 0 ? resData.orderList[0].operator : "", salesmanChannelId: resData.orderList && resData.orderList.length > 0 ? resData.orderList[0].operator : "",
}; };
deliveryObj.actionBody.needsolution = {salesmanInfo: salesmanInfo, orderNo: orderItem.data.orderNo} deliveryObj.actionBody.needsolution.salesmanInfo = salesmanInfo;
console.log("deliveryObj......................................................", JSON.stringify(deliveryObj)) deliveryObj.actionBody.needsolution.orderNo = orderItem.data.orderNo;
this.utilsPushSve.business2Channel(deliveryObj, "pushDeliveryOrder"); }
} }
} }
if (pobj.actionBody.isDirectBuy && pobj.actionBody.isDirectBuy == 1) {
console.log("deliveryObj......................................................", JSON.stringify(deliveryObj))
this.utilsPushSve.business2Channel(deliveryObj, "pushDeliveryOrder");
} }
return system.getResultSuccess(null); return system.getResultSuccess(null);
} }
......
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