Commit aa5dea7e by wkliang

fix

parent 04bf6a69
...@@ -6,7 +6,7 @@ const { json } = require("sequelize"); ...@@ -6,7 +6,7 @@ const { json } = require("sequelize");
// 2020 0807 lin 新增 诊断宝相关 // 2020 0807 lin 新增 诊断宝相关
// 接口文档地址: // 接口文档地址:
class UtilsDiagnosisService extends AppServiceBase { class UtilsDiagnosisService extends AppServiceBase {
constructor() { constructor () {
super(); super();
this.centerOrderUrl = settings.centerOrderUrl(); this.centerOrderUrl = settings.centerOrderUrl();
} }
...@@ -16,9 +16,9 @@ class UtilsDiagnosisService extends AppServiceBase { ...@@ -16,9 +16,9 @@ class UtilsDiagnosisService extends AppServiceBase {
* @param {*} pobj * @param {*} pobj
* @param {*} actionBody * @param {*} actionBody
*/ */
async manualEvaluation(pobj, actionBody) { async manualEvaluation (pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard"; var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var manualEvaluationResult =await this.restPostUrl(pobj,reqUrl); var manualEvaluationResult = await this.restPostUrl(pobj, reqUrl);
return manualEvaluationResult; return manualEvaluationResult;
} }
/** /**
...@@ -26,9 +26,9 @@ class UtilsDiagnosisService extends AppServiceBase { ...@@ -26,9 +26,9 @@ class UtilsDiagnosisService extends AppServiceBase {
* @param {*} pobj * @param {*} pobj
* @param {*} actionBody * @param {*} actionBody
*/ */
async diagnosisInfo(pobj, actionBody) { async diagnosisInfo (pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard"; var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var diagnosisInfoResult =await this.restPostUrl(pobj,reqUrl); var diagnosisInfoResult = await this.restPostUrl(pobj, reqUrl);
return diagnosisInfoResult; return diagnosisInfoResult;
} }
/** /**
...@@ -36,9 +36,9 @@ class UtilsDiagnosisService extends AppServiceBase { ...@@ -36,9 +36,9 @@ class UtilsDiagnosisService extends AppServiceBase {
* @param {*} pobj * @param {*} pobj
* @param {*} actionBody * @param {*} actionBody
*/ */
async enterpriseInfo(pobj, actionBody) { async enterpriseInfo (pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard"; var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult =await this.restPostUrl(pobj,reqUrl); var enterpriseInfoResult = await this.restPostUrl(pobj, reqUrl);
return enterpriseInfoResult; return enterpriseInfoResult;
} }
/** /**
...@@ -46,9 +46,9 @@ class UtilsDiagnosisService extends AppServiceBase { ...@@ -46,9 +46,9 @@ class UtilsDiagnosisService extends AppServiceBase {
* @param {*} pobj * @param {*} pobj
* @param {*} actionBody * @param {*} actionBody
*/ */
async needInfo(pobj, actionBody) { async needInfo (pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard"; var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult =await this.restPostUrl(pobj,reqUrl); var enterpriseInfoResult = await this.restPostUrl(pobj, reqUrl);
return enterpriseInfoResult; return enterpriseInfoResult;
} }
/** /**
...@@ -56,9 +56,31 @@ class UtilsDiagnosisService extends AppServiceBase { ...@@ -56,9 +56,31 @@ class UtilsDiagnosisService extends AppServiceBase {
* @param {*} pobj * @param {*} pobj
* @param {*} actionBody * @param {*} actionBody
*/ */
async needDetail(pobj, actionBody) { async needDetail (pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard"; var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult =await this.restPostUrl(pobj,reqUrl); var enterpriseInfoResult = await this.restPostUrl(pobj, reqUrl);
return enterpriseInfoResult;
}
/**
* @description
* @author liangwk
* @param {*} pobj
* @param {*} actionBody
* @param {*} req
* @returns
* @memberof UtilsDiagnosisService
*/
async opNeedList (pobj) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult = await this.restPostUrl(pobj, reqUrl);
return enterpriseInfoResult;
}
async getItemByNeedNo (pobj) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult = await this.restPostUrl(pobj, reqUrl);
return enterpriseInfoResult; return enterpriseInfoResult;
} }
} }
......
...@@ -244,7 +244,7 @@ module.exports = function (app) { ...@@ -244,7 +244,7 @@ module.exports = function (app) {
"submitProgramme", "getProgrammeListByUser", "getProgrammeInfoByNeedNo", "abolishProgramme", "getAliPayInfo", "submitProgramme", "getProgrammeListByUser", "getProgrammeInfoByNeedNo", "abolishProgramme", "getAliPayInfo",
"getPaidLogoListByUser","getCollectibleLogoListByUser","collectLogo","getLogoMaterial","cancelCollectLogo","icpNotify","createName","getNameDetail","orderConfirm", "getPaidLogoListByUser","getCollectibleLogoListByUser","collectLogo","getLogoMaterial","cancelCollectLogo","icpNotify","createName","getNameDetail","orderConfirm",
"orderTotalSum", "collect", "reg", "orderCheck","getReOrderList","getOfficalList","addReviewList","opSubmitNeed","opNeedClose","opNeedList","opNeedDetailByChannelNo", "orderTotalSum", "collect", "reg", "orderCheck","getReOrderList","getOfficalList","addReviewList","opSubmitNeed","opNeedClose","opNeedList","opNeedDetailByChannelNo",
"manualEvaluation" "manualEvaluation", 'getNeedListUser'
]; ];
if (lst.indexOf(req.body.actionType) >= 0) { if (lst.indexOf(req.body.actionType) >= 0) {
var userpin = req.headers["userpin"] || ""; var userpin = req.headers["userpin"] || "";
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
2. [人工评估-开始入职评估](#manualEvaluation) 2. [人工评估-开始入职评估](#manualEvaluation)
3. [个人中心-诊断列表](#diagnosisInfo) 3. [个人中心-诊断列表](#diagnosisInfo)
4. [个人中心-企业信息](#enterpriseInfo) 4. [个人中心-企业信息](#enterpriseInfo)
5. [需求列表](#getNeedListUser)
6. [需求详情](#getNeedDetail)
## **<a name="uploadBusiness"> 四要素诊断</a>** ## **<a name="uploadBusiness"> 四要素诊断</a>**
[返回到目录](#menu) [返回到目录](#menu)
...@@ -145,3 +147,33 @@ ...@@ -145,3 +147,33 @@
"requestId": "837ea5c284074d568fa198f7f259088a" "requestId": "837ea5c284074d568fa198f7f259088a"
} }
``` ```
## **<a name="getNeedListUser"> 需求列表</a>**
[返回到目录](#menu)
##### URL
[/web/zzzd/zzzd/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:enterpriseInfo
``` javascript
{
"status": "状态", // 目前枚举和原型不同 不建议筛选
"needNo": "", // 需求单号
"publishName": "", // 联系人姓名
"publishMobile": "", // 联系人电话
"updatedAt": [], // 更新时间 两个日期
"pageNo": 1, // 页数
"pageSize": 10 // 每页条数
}
```
#### 返回结果
``` javascript
// 等待填写
{
"status": 0,
"msg": "success",
"data": null,
"requestId": "837ea5c284074d568fa198f7f259088a"
}
```
\ No newline at end of file
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