Commit 5a8070e1 by 王栋源

wdy

parent 66c7e3aa
...@@ -73,6 +73,9 @@ class Need extends APIBase { ...@@ -73,6 +73,9 @@ class Need extends APIBase {
case "queryExpertApplyCommunicationLogs"://icp接收方案反馈信息 case "queryExpertApplyCommunicationLogs"://icp接收方案反馈信息
opResult = await this.utilsNeedSve.queryExpertApplyCommunicationLogs(pobj); opResult = await this.utilsNeedSve.queryExpertApplyCommunicationLogs(pobj);
break; break;
case "getaliicpProduce"://方案询价
opResult = await this.centerorderSve.getaliicpProduce(pobj);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -214,6 +214,27 @@ class CenterorderService extends AppServiceBase { ...@@ -214,6 +214,27 @@ class CenterorderService extends AppServiceBase {
// return system.getResultSuccess(data); // return system.getResultSuccess(data);
} }
async getaliicpProduce(pobj){
var sobj = {
actionType: "getaliicpProduce",
// actionBody: { typeCode: itemResult.data.channelTypeCode, province: itemResult.data.province },
actionBody: { typeCode: pobj.actionBody.channelTypeCode, province: pobj.actionBody.province },
appInfo: pobj.appInfo,
actionProcess: pobj.actionProcess
}
var url = settings.centerAppUrl() + "action/opProduct/springBoard";
var rtn = await this.execClient.execPost(sobj, url);
if (!rtn || !rtn.stdout) {
return system.getResultFail(-5010, "产品查询失败");
}
var data = JSON.parse(rtn.stdout);
if (data.status != 0) {
return system.getResultFail(-5010, "产品查询失败");
}
return system.getResultSuccess(data.data);
}
async icppaysuccess(pobj) { async icppaysuccess(pobj) {
var sobj = { var sobj = {
actionType: "getaliicpProduce", actionType: "getaliicpProduce",
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
1. [交付商提交材料信息](#serviceProviderSubmitMaterial) 1. [交付商提交材料信息](#serviceProviderSubmitMaterial)
1. [交付商通知状态变更](#serviceProviderNotification) 1. [交付商通知状态变更](#serviceProviderNotification)
1. [交付商关闭交付单](#closeOrderDelivery) 1. [交付商关闭交付单](#closeOrderDelivery)
1. [方案询价](#getaliicpProduce)
## **<a name="submitIcpProgramme"> icp方案提交</a>** ## **<a name="submitIcpProgramme"> icp方案提交</a>**
[返回到目录](#menu) [返回到目录](#menu)
...@@ -722,3 +723,37 @@ status: ...@@ -722,3 +723,37 @@ status:
"requestId":"40769e74e83f4505a78b24d84fed870b" "requestId":"40769e74e83f4505a78b24d84fed870b"
} }
``` ```
## **<a name="getaliicpProduce"> 方案询价</a>**
[返回到目录](#menu)
##### URL
[/web/opreceive/need/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:getaliicpProduce
``` javascript
{
"actionType":"getaliicpProduce",
"actionBody":{
"channelTypeCode": "5",
"province":"北京"
}
}
```
#### 返回结果
```javascript
{
"status": 0,
"msg": "success",
"data": {
"typeCode": "5",
"province": "北京",
"payCode": "bjicpsq-1",
"channelItemCode": "5",
"price": 1
},
"requestId": "5d4b3beb820541c4a4533b3363fba34b"
}
```
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
} }
``` ```
## **<a name="opNeedList"> 需求详情</a>** ## **<a name="getItemByNeedNo"> 需求详情</a>**
[返回到目录](#menu) [返回到目录](#menu)
##### URL ##### URL
[/web/action/opNeed/springBoard] [/web/action/opNeed/springBoard]
...@@ -211,6 +211,7 @@ ...@@ -211,6 +211,7 @@
``` ```
#### 返回结果 #### 返回结果
``` javascript ``` javascript
// 返回字段需要根据原型来做,目前只返回基础数据 // 返回字段需要根据原型来做,目前只返回基础数据
......
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