Commit 28502314 by 宋毅

tj

parent 80d78692
...@@ -58,7 +58,7 @@ class UtilsOrderService extends AppServiceBase { ...@@ -58,7 +58,7 @@ class UtilsOrderService extends AppServiceBase {
pobj.actionBody.product_info.price_additions_item = price_list[additionsIndex]; pobj.actionBody.product_info.price_additions_item = price_list[additionsIndex];
tmpPriceList.push(pobj.actionBody.product_info.price_additions_item); tmpPriceList.push(pobj.actionBody.product_info.price_additions_item);
} }
pobj.actionBody.price_list = tmpPriceList; pobj.actionBody.product_info.price_list = tmpPriceList;
return system.getResultSuccess(); return system.getResultSuccess();
} }
/** /**
...@@ -958,7 +958,7 @@ class UtilsOrderService extends AppServiceBase { ...@@ -958,7 +958,7 @@ class UtilsOrderService extends AppServiceBase {
if (['icpsq', 'edisq'].includes(opOrderResult.data.product_info.channel_item_code)) { if (['icpsq', 'edisq'].includes(opOrderResult.data.product_info.channel_item_code)) {
//创建方案 //创建方案
let pushRet = await this.packagingPushData(pobj); let pushRet = await this.packagingPushData(pobj);
if(pushRet.status !=0){ if (pushRet.status != 0) {
throw new Error('推送失败') throw new Error('推送失败')
} }
pobj.actionBody = pushRet.data; pobj.actionBody = pushRet.data;
...@@ -979,18 +979,18 @@ class UtilsOrderService extends AppServiceBase { ...@@ -979,18 +979,18 @@ class UtilsOrderService extends AppServiceBase {
} }
//组装推送交付系统数据 //组装推送交付系统数据
async packagingPushData(pobj){ async packagingPushData(pobj) {
let ab = pobj.actionBody; let ab = pobj.actionBody;
pobj.actionType = 'createSolution'; pobj.actionType = 'createSolution';
ab.bizId = ab.orderNo; ab.bizId = ab.orderNo;
let channelSolutionNo = await this.getBusUid("NS"); let channelSolutionNo = await this.getBusUid("NS");
ab.channelSolutionNo = channelSolutionNo; ab.channelSolutionNo = channelSolutionNo;
let url = this.centerOrderUrl + "action/need/springBoard" let url = this.centerOrderUrl + "action/need/springBoard"
let solutionRet = await this.restPostUrl(pobj,url); let solutionRet = await this.restPostUrl(pobj, url);
if(solutionRet.status !=0){ if (solutionRet.status != 0) {
return system.getResultFail(-1,'创建方案失败') return system.getResultFail(-1, '创建方案失败')
} }
let solution ={ let solution = {
"source": ab.appInfo.app_name, "source": ab.appInfo.app_name,
"IcpType": ab.product_info.channel_item_code, "IcpType": ab.product_info.channel_item_code,
"actionType": "新办", "actionType": "新办",
...@@ -1001,7 +1001,7 @@ class UtilsOrderService extends AppServiceBase { ...@@ -1001,7 +1001,7 @@ class UtilsOrderService extends AppServiceBase {
"channelTypeCode": ab.product_info.service_business_code, "channelTypeCode": ab.product_info.service_business_code,
"companyLocation": ab.product_info.price_item.price_desc "companyLocation": ab.product_info.price_item.price_desc
} }
let needSolution ={ let needSolution = {
"status": "USER_PAY_PRODUCE", "status": "USER_PAY_PRODUCE",
"bizType": ab.product_info.channel_item_code, "bizType": ab.product_info.channel_item_code,
"solution": solution, "solution": solution,
......
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