Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
4a27a256
Commit
4a27a256
authored
Oct 13, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Plain Diff
laolan
parents
5d46d3fd
3d975343
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
223 additions
and
5 deletions
+223
-5
center-channel/app/base/api/impl/auth/taskapi.js
+1
-1
center-channel/app/base/api/impl/opaction/order.js
+12
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+3
-2
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+52
-0
center-channel/app/front/entry/public/apidoc/platform/tmOrder.md
+155
-2
No files found.
center-channel/app/base/api/impl/auth/taskapi.js
View file @
4a27a256
...
@@ -13,7 +13,7 @@ class AccessAuthAPI extends APIBase {
...
@@ -13,7 +13,7 @@ class AccessAuthAPI extends APIBase {
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
}
}
async
QueryTradeIntentionUserList
(
pobj
,
qobj
,
req
)
{
async
QueryTradeIntentionUserList
(
pobj
,
qobj
,
req
)
{
pobj
.
appInfo
=
{
uapp_id
:
22
}
pobj
.
appInfo
=
{
uapp_id
:
18
}
let
endtime
=
Date
.
now
();
let
endtime
=
Date
.
now
();
let
starttime
=
Date
.
now
()
-
30
*
60
*
1000
;
//30分钟(毫秒)
let
starttime
=
Date
.
now
()
-
30
*
60
*
1000
;
//30分钟(毫秒)
pobj
.
actionBody
=
{
pobj
.
actionBody
=
{
...
...
center-channel/app/base/api/impl/opaction/order.js
View file @
4a27a256
...
@@ -53,6 +53,18 @@ class ProductAPI extends WEBBase {
...
@@ -53,6 +53,18 @@ class ProductAPI extends WEBBase {
// case "getIcbcOrderDetails"://获取工商详情
// case "getIcbcOrderDetails"://获取工商详情
// opResult = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
// opResult = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
// break;
// break;
case
"addUsuallyContacts"
:
//添加常用联系人、申请人
opResult
=
await
this
.
utilsOrderSve
.
addUsuallyContacts
(
pobj
,
pobj
.
actionBody
);
break
;
case
"delUsuallyContacts"
:
//删除常用联系人、申请人
opResult
=
await
this
.
utilsOrderSve
.
delUsuallyContacts
(
pobj
,
pobj
.
actionBody
);
break
;
case
"updateUsuallyContacts"
:
//修改常用联系人、申请人
opResult
=
await
this
.
utilsOrderSve
.
updateUsuallyContacts
(
pobj
,
pobj
.
actionBody
);
break
;
case
"getUsuallyContacts"
:
//查询常用联系人、申请人
opResult
=
await
this
.
utilsOrderSve
.
getUsuallyContacts
(
pobj
,
pobj
.
actionBody
);
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
break
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
4a27a256
...
@@ -593,8 +593,9 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -593,8 +593,9 @@ class UtilsNeedService extends AppServiceBase {
if
(
item
.
Type
==
1
&&
item
.
RegisterNumber
)
{
if
(
item
.
Type
==
1
&&
item
.
RegisterNumber
)
{
pobj
.
actionBody
.
intentionBizId
=
item
.
BizId
;
pobj
.
actionBody
.
intentionBizId
=
item
.
BizId
;
pobj
.
actionBody
.
mobile
=
item
.
Mobile
?
item
.
Mobile
:
""
;
pobj
.
actionBody
.
mobile
=
item
.
Mobile
?
item
.
Mobile
:
""
;
pobj
.
actionBody
.
Area
=
item
.
Area
//pobj.actionBody.Area = item.Area || "北京"
pobj
.
actionBody
.
userName
=
item
.
UserName
?
item
.
UserName
:
""
;
pobj
.
actionBody
.
area
=
'大陆地区 '
pobj
.
actionBody
.
userName
=
item
.
UserName
?
item
.
UserName
:
""
;
pobj
.
actionBody
.
description
=
item
.
RegisterNumber
pobj
.
actionBody
.
description
=
item
.
RegisterNumber
pobj
.
notes
=
`
${
item
.
RegisterNumber
?
"RegisterNumber:"
+
item
.
RegisterNumber
:
""
}${
item
.
Classification
?
"Classification:"
+
item
.
Classification
:
""
}
`
;
pobj
.
notes
=
`
${
item
.
RegisterNumber
?
"RegisterNumber:"
+
item
.
RegisterNumber
:
""
}${
item
.
Classification
?
"Classification:"
+
item
.
Classification
:
""
}
`
;
let
res
=
await
this
.
submitNeed
(
JSON
.
parse
(
JSON
.
stringify
(
pobj
)),
{
intentionBizId
:
item
.
BizId
});
let
res
=
await
this
.
submitNeed
(
JSON
.
parse
(
JSON
.
stringify
(
pobj
)),
{
intentionBizId
:
item
.
BizId
});
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
4a27a256
...
@@ -1069,5 +1069,57 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -1069,5 +1069,57 @@ class UtilsOrderService extends AppServiceBase {
return
result
;
return
result
;
}
}
}
}
//增加常用联系人,常用申请人
async
addUsuallyContacts
(
pobj
,
actionBody
){
if
(
!
actionBody
.
channel_user_id
)
{
return
system
.
getResultFail
(
-
1
,
"渠道用户id不能为空"
);
}
if
(
!
actionBody
.
contacts
){
return
system
.
getResultFail
(
-
1
,
'用户信息不能为空'
)
}
if
(
Object
.
keys
(
actionBody
.
contacts
).
length
<
0
){
return
system
.
getResultFail
(
-
1
,
'用户信息不能为空'
)
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/tmOrder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
//删除常用联系人,常用申请人
async
delUsuallyContacts
(
pobj
,
actionBody
){
if
(
!
actionBody
.
id
){
return
system
.
getResultFail
(
-
1
,
'id不能为空'
)
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/tmOrder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
//修改常用联系人,常用申请人
async
updateUsuallyContacts
(
pobj
,
actionBody
){
if
(
!
actionBody
.
id
){
return
system
.
getResultFail
(
-
1
,
'id 不能为空'
);
}
if
(
!
actionBody
.
channel_user_id
){
return
system
.
getResultFail
(
-
1
,
'id 不能为空'
);
}
if
(
Object
.
keys
(
actionBody
.
contacts
).
length
<
0
){
return
system
.
getResultFail
(
-
1
,
'信息不能为空'
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/tmOrder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
//查询常用联系人,常用申请人
async
getUsuallyContacts
(
pobj
,
actionBody
){
if
(
!
actionBody
.
channel_user_id
){
return
system
.
getResultFail
(
-
1
,
'用户id不能为空'
)
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/tmOrder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
}
}
module
.
exports
=
UtilsOrderService
;
module
.
exports
=
UtilsOrderService
;
center-channel/app/front/entry/public/apidoc/platform/tmOrder.md
View file @
4a27a256
...
@@ -18,6 +18,11 @@
...
@@ -18,6 +18,11 @@
1.
[
推送委托书模板邮件(阿里云)
](
#sendAliWtsEmail
)
1.
[
推送委托书模板邮件(阿里云)
](
#sendAliWtsEmail
)
1.
[
商标智能推荐
](
#getNclByCode
)
1.
[
商标智能推荐
](
#getNclByCode
)
1.
[
全类保护
](
#getAllNcl
)
1.
[
全类保护
](
#getAllNcl
)
1.
[
添加常用联系人、申请人
](
#addUsuallyContacts
)
1.
[
删除常用联系人、申请人
](
#delUsuallyContacts
)
1.
[
修改常用联系人、申请人
](
#updateUsuallyContacts
)
1.
[
获取常用联系人、申请人
](
#getUsuallyContacts
)
## **<a name="getNcl"> 尼斯查询(一)</a>**
## **<a name="getNcl"> 尼斯查询(一)</a>**
...
@@ -4973,4 +4978,153 @@
...
@@ -4973,4 +4978,153 @@
"requestId"
:
"23830ec10c5b49fd8afb974401e86429"
"requestId"
:
"23830ec10c5b49fd8afb974401e86429"
}
}
```
```
\ No newline at end of file
## **<a name="addUsuallyContacts"> 添加常用联系人、申请人</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/opaction/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:addUsuallyContacts
```
javascript
{
"actionType"
:
"addUsuallyContacts"
,
"actionBody"
:{
"channel_user_id"
:
""
,
//Y ic 用户id
"type"
:
"contact"
,
//Y 联系人 contact
"contacts"
:{
"contacts"
:
"张三"
,
// Y 联系人
"mobile"
:
"15010929368"
,
// Y 联系人电话
"tel"
:
"010-11111"
,
// N 固定电话
"email"
:
"saa@gongsibao.com"
,
// N 联系人邮箱
"fax"
:
""
// N 传真
}
}
}
{
"actionType"
:
"addUsuallyContacts"
,
"actionBody"
:{
"channel_user_id"
:
""
,
//Y ic 用户id
"type"
:
"applicant"
,
//Y 申请人 applicant
"contacts"
:{
"code"
:
"91310110398635929J"
,
//统一社会信用代码
"customerType"
:
"ent"
,
//申请人类型 person个人,ent企业
"identityCardNo"
:
""
,
//申请人身份证号--(申请类型为个人有此值)
"name"
:
"上海辰者信息科技有限公司"
,
//申请人名称
"zipCode"
:
"100000"
//邮政编码
"applyAddr"
:
"上海市杨浦区国定路346号三楼0624室"
//执照详细地址
}
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"2a3eada5bd6a4e30807bbb2af8c0b4a8"
}
```
## **<a name="delUsuallyContacts"> 删除常用联系人、申请人</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/opaction/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:delUsuallyContacts
```
javascript
{
"actionType"
:
"delUsuallyContacts"
,
"actionBody"
:{
"id"
:
2
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"2a3eada5bd6a4e30807bbb2af8c0b4a8"
}
```
## **<a name="updateUsuallyContacts"> 添加常用联系人、申请人</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/opaction/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:updateUsuallyContacts
```
javascript
{
"actionType"
:
"updateUsuallyContacts"
,
"actionBody"
:{
"id"
:
7
,
"channel_user_id"
:
"19219084323984"
,
"contacts"
:{
"contacts"
:
"张三23"
,
"mobile"
:
"15010929368"
,
"tel"
:
"010-222"
,
"email"
:
"saa@gongsibao.com"
,
"fax"
:
""
}
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"2a3eada5bd6a4e30807bbb2af8c0b4a8"
}
```
## **<a name="getUsuallyContacts"> 获取常用联系人、申请人</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/opaction/order/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:getUsuallyContacts
```
javascript
{
"actionType"
:
"getUsuallyContacts"
,
"actionBody"
:{
"channel_user_id"
:
"19219084323984"
,
"type"
:
"contact"
,
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"2a3eada5bd6a4e30807bbb2af8c0b4a8"
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment