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
29f7a5cf
Commit
29f7a5cf
authored
Jan 13, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
e766d94c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
18 deletions
+77
-18
igirl-channel/app/base/api/impl/action/tmOrder.js
+19
-14
igirl-channel/app/base/service/impl/dborder/ordertmproductSve.js
+0
-0
igirl-channel/app/base/system.js
+3
-2
igirl-channel/app/front/entry/public/apidoc/opTrademark/opTm.md
+55
-2
No files found.
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
29f7a5cf
...
@@ -54,7 +54,7 @@ class TmOrderAPI extends APIBase {
...
@@ -54,7 +54,7 @@ class TmOrderAPI extends APIBase {
// action_body.app = { id:2,uappKey:"201911131657",uAppId:9,appSecret:"eeb18393aade40149287b024d8ba0850"};
// action_body.app = { id:2,uappKey:"201911131657",uAppId:9,appSecret:"eeb18393aade40149287b024d8ba0850"};
// action_body.user = { id: 6, app_id: 2, nickname: "测试用户",channelUserId:"testUserId01" };
// action_body.user = { id: 6, app_id: 2, nickname: "测试用户",channelUserId:"testUserId01" };
var
opResult
=
null
;
var
opResult
=
null
;
if
([
"subTmOrder"
,
"getTmOrderList"
,
"getTmOrderInfo"
,
"getTmApplyInfo"
,
"getTmNclList"
,
"getNeedInfo"
,
if
([
"sub
OtherOrder"
,
"sub
TmOrder"
,
"getTmOrderList"
,
"getTmOrderInfo"
,
"getTmApplyInfo"
,
"getTmNclList"
,
"getNeedInfo"
,
"tmConfirm"
,
"updateTmInfo"
,
"updateNclInfo"
,
"updateContacts"
,
"tmConfirm"
,
"updateTmInfo"
,
"updateNclInfo"
,
"updateContacts"
,
"updateCustomerInfo"
,
"addOrderAndDelivery"
,
"updateOrderPayStatus"
].
indexOf
(
action_type
)
>=
0
)
{
"updateCustomerInfo"
,
"addOrderAndDelivery"
,
"updateOrderPayStatus"
].
indexOf
(
action_type
)
>=
0
)
{
if
(
!
action_body
.
channelUserId
)
{
if
(
!
action_body
.
channelUserId
)
{
...
@@ -109,24 +109,29 @@ class TmOrderAPI extends APIBase {
...
@@ -109,24 +109,29 @@ class TmOrderAPI extends APIBase {
case
"get1688ChannelOrderInfo"
:
//获取渠道订单信息
case
"get1688ChannelOrderInfo"
:
//获取渠道订单信息
opResult
=
await
this
.
ordertmproductSve
.
get1688ChannelOrder
(
action_body
);
opResult
=
await
this
.
ordertmproductSve
.
get1688ChannelOrder
(
action_body
);
break
;
break
;
case
"subOtherOrder"
:
//商标提报
opResult
=
await
this
.
ordertmproductSve
.
addOtherOrder
(
action_body
,
pobj
,
req
);
break
;
case
"subTmOrder"
:
//商标提报
case
"subTmOrder"
:
//商标提报
opResult
=
await
this
.
ordertmproductSve
.
addTmOrder
(
action_body
,
pobj
,
req
);
opResult
=
await
this
.
ordertmproductSve
.
addTmOrder
(
action_body
,
pobj
,
req
);
if
(
opResult
&&
opResult
.
status
==
0
&&
opResult
.
data
)
{
if
([
"bw"
].
indexOf
(
action_process
)
<
0
)
{
var
returnTms
=
opResult
.
data
.
tm
;
if
(
opResult
&&
opResult
.
status
==
0
&&
opResult
.
data
)
{
for
(
var
i
=
0
;
i
<
pobj
.
actionBody
.
nclones
.
length
;
i
++
)
{
var
returnTms
=
opResult
.
data
.
tm
;
var
nclone
=
pobj
.
actionBody
.
nclones
[
i
];
for
(
var
i
=
0
;
i
<
pobj
.
actionBody
.
nclones
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
returnTms
.
length
;
j
++
)
{
var
nclone
=
pobj
.
actionBody
.
nclones
[
i
];
var
returnTm
=
returnTms
[
j
];
for
(
var
j
=
0
;
j
<
returnTms
.
length
;
j
++
)
{
if
(
returnTm
.
nclOne
&&
nclone
.
code
&&
returnTm
.
nclOne
==
nclone
.
code
)
{
var
returnTm
=
returnTms
[
j
];
pobj
.
actionBody
.
nclones
[
i
][
"tbCode"
]
=
returnTm
.
tbCode
;
if
(
returnTm
.
nclOne
&&
nclone
.
code
&&
returnTm
.
nclOne
==
nclone
.
code
)
{
pobj
.
actionBody
.
nclones
[
i
][
"tbCode"
]
=
returnTm
.
tbCode
;
}
}
}
}
}
pobj
.
actionBody
[
"deliveryOrderNo"
]
=
opResult
.
data
.
deliveryOrderNo
;
pobj
.
actionBody
[
"itemCode"
]
=
opResult
.
data
.
channelItemCode
;
// await this.pushData(opResult, req, pobj);
var
url
=
this
.
pushFqbossDataUrl
+
"api/channelaccessApi/createChannelOrder"
this
.
pushData2
(
opResult
,
req
,
pobj
,
url
);
}
}
pobj
.
actionBody
[
"deliveryOrderNo"
]
=
opResult
.
data
.
deliveryOrderNo
;
pobj
.
actionBody
[
"itemCode"
]
=
opResult
.
data
.
channelItemCode
;
// await this.pushData(opResult, req, pobj);
var
url
=
this
.
pushFqbossDataUrl
+
"api/channelaccessApi/createChannelOrder"
this
.
pushData2
(
opResult
,
req
,
pobj
,
url
);
}
}
break
;
break
;
case
"subExistTmOrder"
:
//提交存在商标提报
case
"subExistTmOrder"
:
//提交存在商标提报
...
...
igirl-channel/app/base/service/impl/dborder/ordertmproductSve.js
View file @
29f7a5cf
This diff is collapsed.
Click to expand it.
igirl-channel/app/base/system.js
View file @
29f7a5cf
...
@@ -319,9 +319,9 @@ System.getAppInfoFail = 1130;
...
@@ -319,9 +319,9 @@ System.getAppInfoFail = 1130;
//已经存在信息
//已经存在信息
System
.
existData
=
1400
;
System
.
existData
=
1400
;
//
获取访问token
失败
//
用户信息
失败
System
.
noUserFail
=
2070
;
System
.
noUserFail
=
2070
;
//
获取访问token失败
//
用户信息禁用
System
.
userDisable
=
2080
;
System
.
userDisable
=
2080
;
module
.
exports
=
System
;
module
.
exports
=
System
;
\ No newline at end of file
igirl-channel/app/front/entry/public/apidoc/opTrademark/opTm.md
View file @
29f7a5cf
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
1.
[
企业注册信息查询
](
#getEntregistryByCompanyName
)
1.
[
企业注册信息查询
](
#getEntregistryByCompanyName
)
1.
[
调整委托书
](
#adjustWTSSize
)
1.
[
调整委托书
](
#adjustWTSSize
)
1.
[
接入方提供查询订单接口
](
#getInfo
)
1.
[
接入方提供查询订单接口
](
#getInfo
)
1.
[
创建其他订单接口
](
#subOtherOrder
)
1.
[
商标提报
](
#subTmOrder
)
1.
[
商标提报
](
#subTmOrder
)
1.
[
商标交付列表
](
#getTmOrderList
)
1.
[
商标交付列表
](
#getTmOrderList
)
1.
[
商标交付信息
](
#getTmOrderInfo
)
1.
[
商标交付信息
](
#getTmOrderInfo
)
...
@@ -406,6 +407,57 @@
...
@@ -406,6 +407,57 @@
```
```
## **<a name="subOtherOrder"> 创建其他订单接口</a>**
[
返回到目录
](
#menu
)
##### URL
[
/action/tmOrder/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:subTmOrder
```
javascript
{
"actionProcess"
:
"bw"
,
"actionType"
:
"subOtherOrder"
,
"sign"
:
"0E4DF9C01DE69BEB8B8959119F2E4CD7"
,
"isUser"
:
"yes"
,
"actionBody"
:
{
"itemCode"
:
"dbsbzc"
,
//产品渠道编码
"channelUser"
:
{
"channelUserId"
:
"15010929366"
//渠道用户唯一标识
},
"apply"
:
{
"orderType"
:
"zzdd"
,
//默认值
"contacts"
:
"songyi"
,
// Y 姓名
"mobile"
:
"15010929344"
,
// Y 手机号
"email"
:
"qq@qq.com"
,
// N 邮箱
"notes"
:
"d"
// N 备注
},
"tm"
:
{
"totalSum"
:
1399
,
// Y 金额
"quantity"
:
1
// Y 数量
}
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
{
"channelItemCode"
:
"zzsbzc"
,
"deliveryOrderNo"
:
"JF202001131450vQbUhS"
,
"orderNo"
:
"TM202001131450WnSmDQ"
,
"channelParams"
:{}
},
"requestid"
:
"2016c54abe7249a2a1195d236b333f79"
}
```
## **<a name="subTmOrder"> 商标提报</a>**
## **<a name="subTmOrder"> 商标提报</a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
##### URL
##### URL
...
@@ -498,8 +550,9 @@
...
@@ -498,8 +550,9 @@
"status"
:
0
,
"status"
:
0
,
"msg"
:
"success"
,
"msg"
:
"success"
,
"data"
:
{
"data"
:
{
" deliveryOrderNo"
:
"346c3091684e4e57a7639bec30eef5f7"
,
"channelItemCode"
:
"zzsbzc"
,
" channelServiceNo"
:
"346c3091684e4e0eef"
,
"deliveryOrderNo"
:
"JF202001131450vQbUhS"
,
"orderNo"
:
"TM202001131450WnSmDQ"
,
"channelParams"
:{}
"channelParams"
:{}
},
},
"requestid"
:
"2016c54abe7249a2a1195d236b333f79"
"requestid"
:
"2016c54abe7249a2a1195d236b333f79"
...
...
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