Commit e497505a by wkliang

诊断 新建方案

parent 8d492b55
......@@ -60,10 +60,12 @@ class diagnosisNeedBus extends WEBBase {
}
opResult = await this.unSve.getNeedDetail(pobj);
break;
case 'licenseCompare':
opResult = await this.unSve.licenseCompare(pobj.actionBody);
break
case 'addDnCase':
opResult = await this.unSve.addCase(pobj)
break
default:
opResult = system.getResult(null, "actionType参数错误");
break;
......
......@@ -115,6 +115,17 @@ class FblicenseService extends AppServiceBase {
}
}
async addCase(pobj) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
pobj.actionType = 'addCase'
let result = await this.restClient.execPost(pobj, url)
return JSON.parse(result.stdout)
} catch (error) {
return system.getResultFail(-1, error.message || 'failed')
}
}
ObjTrim (data) {
let k = Object.keys(data)
for (let i of k) {
......@@ -122,7 +133,6 @@ class FblicenseService extends AppServiceBase {
delete data[i]
}
}
console.log(data)
return data
}
}
......
......@@ -8,6 +8,7 @@
6. [获取需求列表](#getDnNeedList)
7. [获取需求详情](#getDnNeedDetail)
8. [证照对比数据](#licenseCompare)
9. [新建方案](#addDnCase)
## **<a name="getDnList"> 获取诊断列表(人工)</a>**
......@@ -450,3 +451,35 @@
"requestId": "1936ab0c419e4132805aa197920a6b33"
}
```
## **<a name="addDnCase"> 新建方案</a>**
[返回到目录](#menu) <a name="menu" href="/doc">返回主目录</a>
##### URL
[/web/zzzd/diagnosisneedbus/springBoard]
#### 参数格式 `JSON`
#### HTTP 请求方式 `POST`
#### 渠道执行的类型 actionType:addDnCase
```javascript
{
"diagnosisNo": "test123", // 需求单号
"solutionContent": {"testk": "testv"} // 方案明细
}
```
#### 返回结果
```javascript
{
"status": 0,
"msg": "success",
"data":
"requestId": "1936ab0c419e4132805aa197920a6b33"
}
```
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