Commit 8714310c by 宋毅

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 7b62ade9 7a0bb767
......@@ -34,6 +34,9 @@ class IcAPI extends WEBBase {
case "submitProgramme"://提交公司注册方案
opResult = await this.centerorderSve.submitProgramme(pobj);
break;
case "getProgrammeListByUser"://获取方案列表(获取用户所有方案)
opResult = await this.centerorderSve.reqCenterOrderApi(pobj);
break;
case "getProgrammeInfoByNeedNo"://根据需求查看方案列表
opResult = await this.centerorderSve.reqCenterOrderApi(pobj);
break;
......
......@@ -25,10 +25,10 @@ class CenterorderService{
var needinfo = res.data.needinfo;//需求信息
var needsolution = res.data.needsolution;//方案信息
//推送数据至阿
var bizType = pobj.actionBody.solutionContent.bizType || "";//业务类型里
var pushObj = {
intentionBizId:needinfo.channelNeedNo,bizType:bizType,solution:ab.solutionContent.solution
};
// var bizType = pobj.actionBody.solutionContent.bizType || "";//业务类型里
// var pushObj = {
// intentionBizId:needinfo.channelNeedNo,bizType:bizType,solution:ab.solutionContent.solution
// };
// var pushRes = await this.aliclient.reqbyget({action:"",reqbody:pushObj});
// if(pushRes && pushRes.SolutionBizId){
// var reqObj2 = {
......@@ -40,8 +40,9 @@ class CenterorderService{
// };
// await this.reqCenterOrderApi(reqObj2);//保存渠道方案id
// }
return system.getResultSuccess();
}
return system.getResultSuccess();
return res;
}
//服务商方案作废
async abolishProgramme(pobj){
......@@ -52,6 +53,7 @@ class CenterorderService{
solutionBizId:res.data.channelNeedNo,note:pobj.actionBody.note || ""
};
// var pushRes = await this.aliclient.reqbyget({action:"",reqbody:pushObj});
return system.getResultSuccess();
}
return res;
}
......
......@@ -93,7 +93,8 @@ module.exports = function (app) {
"tmConfirm", "updateTmInfo",
"updateNclInfo", "updateContacts",
"updateCustomerInfo", "addOrderAndDelivery",
"updateOrderPayStatus", "getPolicyNeedList", "submitPolicyNeedNotes"
"updateOrderPayStatus", "getPolicyNeedList", "submitPolicyNeedNotes",
"submitProgramme","getProgrammeInfoByNeedNo","abolishProgramme","getProgrammeListByUser"
];
if (lst.indexOf(req.body.actionType) >= 0) {
var userpin = req.headers["userpin"] || "";
......
<a name="menu" href="/doc">返回主目录</a>
1. [获取工商订单交付流程信息](#getIcbcOrderDeliveryFlowInfo)
1. [提交公司注册方案](#submitProgramme)
1. [根据需求产看方案详情](#getProgrammeInfoByNeedNo)
1. [服务商方案作废](#abolishProgramme)
1. [获取方案列表(获取用户所有方案)](#getProgrammeListByUser)
## **<a name="getIcbcOrderDeliveryFlowInfo"> 获取工商订单交付流程信息</a>**
[返回到目录](#menu)
......@@ -48,3 +51,221 @@
}
```
## **<a name="submitProgramme"> 提交公司注册方案</a>**
[返回到目录](#menu)
##### URL
[/web/action/icapi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:submitProgramme
``` javascript
{
"actionType":"submitProgramme",
"actionBody":{
"needNo":"N202002141324bupnr8L",
"solutionContent":{
"bizType":"companyreg",
"notes":"方案备注",
"solution":{
//公司注册方案
"entName":"公司名称",
"province":"省",
"city": "市",
"taxpayerType": "纳税人类型",
"entNature": "公司性质",
"organizationType" :"组织类型",
"industry": "行业",
"businessScope": "经营范围",
//云上公司注册方案
"regPark":"注册园区",
"regType":"注册类型",
"productType":"产品类型"
}
}
}
}
```
#### 返回结果
```javascript
{
"status": 0,// 0为成功,否则失败
"msg": "success",
"data":null,
"requestId": "a277fb799d9f4dda9053fb8830f9d252"
}
```
## **<a name="getProgrammeInfoByNeedNo"> 根据需求产看方案详情</a>**
[返回到目录](#menu)
##### URL
[/web/action/icapi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:getProgrammeInfoByNeedNo
``` javascript
{
"actionType":"getProgrammeInfoByNeedNo",
"actionBody":{
"needNo":"N202002141324bupnr8L"
}
}
```
#### 返回结果
```javascript
{
"status":0,
"msg":"success",
"data":[
{
"needNo":"N202002141324bupnr8L",
"solutionNo":"NS202003161734ay0SzH",
"orderNo":null,
"solutionContent":{
"bizType":"companyreg",
"solution":{
}
},
"status":"yzf",
"statusName":"已作废"
}
],
"requestId":"4302ecc284e747a990e4ad61d8236b60"
}
```
## **<a name="abolishProgramme"> 服务商方案作废</a>**
[返回到目录](#menu)
##### URL
[/web/action/icapi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:abolishProgramme
``` javascript
{
"actionType":"abolishProgramme",
"actionBody":{
"solutionNo":"NS202003161734ay0SzH"
}
}
```
#### 返回结果
```javascript
{
"status": 0,// 0为成功,否则失败
"msg": "success",
"data":null,
"requestId": "a277fb799d9f4dda9053fb8830f9d252"
}
```
## **<a name="getProgrammeListByUser"> 获取方案列表(获取用户所有方案)</a>**
[返回到目录](#menu)
##### URL
[/web/action/icapi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:getProgrammeListByUser
``` javascript
{
"actionType":"getProgrammeListByUser",
"actionBody":{
"pageIndex":"1",
"pageSize":"2",
"needNo":"N202002141324bupnr8L",
"solutionNo":"",
"orderNo":"",
"status":"ytj",
//普通公司注册
"bizType":"companyreg",
"entName":"公司名称",
//云上公司注册
"bizType":"companyreg_cloud",
"regPark":"注册园区",
"productType":"产品类型",
}
}
```
#### 返回结果
```javascript
{
"status":0,
"msg":"success",
"data":[
{
"id":124,
"needNo":"N202002141324bupnr8L",
"solutionNo":"NS202003171700rdnznR",
"orderNo":null,
"solutionContent":{
"notes":"方案备注",
"bizType":"companyreg",
"solution":{
"city":"市",
"entName":"公司名称",
"regPark":"注册园区",
"regType":"注册类型",
"industry":"行业",
"province":"省",
"entNature":"公司性质",
"productType":"产品类型",
"taxpayerType":"纳税人类型",
"businessScope":"经营范围",
"organizationType":"组织类型"
}
},
"status":"ytj",
"statusName":"已提交",
"created_at":"2020-03-17T09:00:22.000Z"
},
{
"id":123,
"needNo":"N202002141324bupnr8L",
"solutionNo":"NS202003171659mBUrXa",
"orderNo":null,
"solutionContent":{
"notes":"方案备注",
"bizType":"companyreg",
"solution":{
"city":"市",
"entName":"公司名称",
"regPark":"注册园区",
"regType":"注册类型",
"industry":"行业",
"province":"省",
"entNature":"公司性质",
"productType":"产品类型",
"taxpayerType":"纳税人类型",
"businessScope":"经营范围",
"organizationType":"组织类型"
}
},
"status":"ytj",
"statusName":"已提交",
"created_at":"2020-03-17T08:59:45.000Z"
}
],
"dataCount":16,
"requestId":"40769e74e83f4505a78b24d84fed870b"
}
```
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