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
2c86ef91
Commit
2c86ef91
authored
Dec 05, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加交付商文档
parent
53530b7c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
189 additions
and
59 deletions
+189
-59
xgg-deliver/app/base/controller/impl/business/businessmenCtl.js
+0
-1
xgg-deliver/app/base/controller/impl/invoice/invoiceCtl.js
+16
-0
xgg-deliver/app/base/controller/impl/order/orderCtl.js
+1
-1
xgg-deliver/app/base/service/impl/invoice/invoiceSve.js
+9
-0
xgg-deliver/app/base/system.js
+2
-2
xgg-deliver/app/config/routes/web.js
+1
-0
xgg-deliver/app/front/entry/public/apidoc/README.md
+1
-1
xgg-deliver/app/front/entry/public/apidoc/invoice/deliver.md
+159
-54
No files found.
xgg-deliver/app/base/controller/impl/business/businessmenCtl.js
View file @
2c86ef91
...
...
@@ -21,7 +21,6 @@ class BusinessmenCtl extends CtlBase {
orderId
:
this
.
trim
(
pobj
.
orderId
),
bstatus
:
pobj
.
status
,
}
return
await
this
.
businessmenSve
.
allPage
(
condition
);
}
catch
(
error
)
{
console
.
log
(
error
);
...
...
xgg-deliver/app/base/controller/impl/invoice/invoiceCtl.js
View file @
2c86ef91
...
...
@@ -264,5 +264,20 @@ class InvoiceCtl extends CtlBase {
return
system
.
getResultFail
(
500
,
`接口错误 错误信息
${
error
}
`
);
}
}
/**
* 发票红冲列表
* @param {*} pobj
* @param {*} pobj2
* @param {*} req
* @param {*} res
*/
async
redRushList
(
pobj
,
pobj2
,
req
,
res
){
try
{
return
await
this
.
invoiceSve
.
apiRedrushList
(
pobj
);
}
catch
(
error
)
{
return
system
.
getResultFail
(
500
,
`接口错误 错误信息
${
error
}
`
);
}
}
}
module
.
exports
=
InvoiceCtl
;
\ No newline at end of file
xgg-deliver/app/base/controller/impl/order/orderCtl.js
View file @
2c86ef91
...
...
@@ -125,7 +125,7 @@ class OrderCtl extends CtlBase {
id
:
pobj
.
id
,
currentPage
:
pobj
.
currentPage
||
1
,
pageSize
:
pobj
.
pageSize
||
1
,
orderId
:
this
.
trim
(
pobj
.
orderId
),
orderId
:
this
.
trim
(
pobj
.
orderId
)
||
this
.
trim
(
pobj
.
orderNo
)
,
status
:
this
.
trim
(
pobj
.
status
),
deliverId
:
""
,
// TODO 传入具体办理人
}
...
...
xgg-deliver/app/base/service/impl/invoice/invoiceSve.js
View file @
2c86ef91
...
...
@@ -859,6 +859,14 @@ class InvoiceService extends ServiceBase {
}
}
async
apiRedrushList
(
params
){
try
{
return
await
this
.
callms
(
"invoice"
,
"redrushList"
,
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
-
1
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
module
.
exports
=
InvoiceService
;
\ No newline at end of file
xgg-deliver/app/base/system.js
View file @
2c86ef91
...
...
@@ -189,8 +189,8 @@ class System {
invoice
:
"http://127.0.0.1:3105"
+
path
,
// 发票服务
//
uc: domain + ":3106" + path,
uc
:
"http://127.0.0.1:3106"
+
path
,
uc
:
domain
+
":3106"
+
path
,
//
uc: "http://127.0.0.1:3106" + path,
}
}
else
{
var
odomain
=
"http://123.57.217.203"
...
...
xgg-deliver/app/config/routes/web.js
View file @
2c86ef91
...
...
@@ -104,6 +104,7 @@ module.exports = function (app) {
if
(
req
.
loginUser
)
{
req
.
body
.
saas_id
=
req
.
loginUser
.
saas_id
;
req
.
body
.
deliverId
=
req
.
loginUser
.
uctypeId
||
""
;
req
.
body
.
delivererId
=
req
.
loginUser
.
uctypeId
||
""
;
}
params
.
push
(
methodName
);
...
...
xgg-deliver/app/front/entry/public/apidoc/README.md
View file @
2c86ef91
...
...
@@ -56,7 +56,7 @@
2
[
全部发票
](
/doc/invoice/all.md
)
3
[
发票办理
](
/doc/invoice/deliver.md
)
3
[
交付商发票接口
](
/doc/invoice/deliver.md
)
4
[
发票管理
](
/doc/invoice/info.md
)
...
...
xgg-deliver/app/front/entry/public/apidoc/invoice/deliver.md
View file @
2c86ef91
<a
name=
"menu"
>
目录
</a>
1.
[
交付查看商审批列表
](
#delivererInvoices
)
1.
[
交付商查看发票列表
](
#delivererInvoices
)
1.
[
交付商查看发票审批列表
](
#delivererApplyInvoices
)
1.
[
红冲列表
](
#redRushList
)
1.
[
新建进度-已开具
](
#delivererAssignment
)
1.
[
提交审核
](
#delivererAssignment2
)
1.
[
新建进度-已邮寄
](
#delivererAssignment3
)
1.
[
查看详情
-和平台不一样
](
#queryInvoiceDeliverer
)
1.
[
查看详情
](
#queryInvoiceDeliverer
)
...
...
@@ -19,23 +21,93 @@
| 参数名|数据类型|必须|默认| 说明 |
|---|:---:|:---:|:---:|---|
| pageIndex | number | 否 | 1 | 当前页数 |
| pageSize | number | 否 | 10 | 每页记录数 |
| complateTax | string | 否 | | 是否完税 |
| invoiceTime | string | 否 | | 开发票时间 |
| applyNo | string | 否 | | 发票申请编号 |
| inInvalid | string | 否 | | 是否完税 |
| type | string | 否 | | 发票类型 |
| pageIndex | number | 否 | 1 | 当前页数 |
| pageSize | number | 否 | 10 | 每页记录数 |
| invoiceTime | string | 否 | | 开发票时间 |
| startTime | string | 否 | | 开发票开始时间 |
| endTime | string | 否 | | 开发票结束时间 |
| applyNo | string | 否 | | 发票申请编号 |
| invoiceNo | string | 否 | | 发票编号 |
| type | string | 否 | | 发票类型 |
| status | string | 否 | | 发票状态 |
**示例**
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"type":"10"
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"count"
:
1
,
"rows"
:
[
{
"id"
:
"11667778231000774"
,
"apply_no"
:
"gongsibao002"
,
//申请编号
"type"
:
"普通发票"
,
//发票状态
"invoice_no"
:
"gongsibao002"
,
//发票编号
"invoice_time"
:
"2019-11-27 00:00:00"
,
//发票时间
"invoice_amount"
:
20000000
,
//发票金额
"merchant_id"
:
"18asf854584"
,
//购买方ID
"merchant_name"
:
"汉唐信通(咨询)有限公司"
,
//购买方名称
"merchant_credit_code"
:
"911101057889696760"
,
//购买方统一社会信用代码
"merchant_addr"
:
"北京市朝阳区来广营西路8号国创产业园6号楼三层东壹区"
,
//购买方地址
"merchant_mobile"
:
"010-8492"
,
//购买方电话
"merchant_bank"
:
"招商银大望路支行"
,
//购买方银行
"merchant_account"
:
"tengxunkeji"
,
//购买方账号
"businessmen_id"
:
"101"
,
//销售方ID
"businessmen_credit_code"
:
"91110108MA01H5F77N"
,
//销售方统一社会信用代码
"businessmen_name"
:
"滴滴出行"
,
//销售方名称
"businessmen_addr"
:
"北京市海淀区西北旺东路10号院东区2号楼二层202"
,
//销售方地址
"businessmen_mobile"
:
"010-5236"
,
//销售方电话
"businessmen_bank"
:
"北京朝阳双秀支"
,
//销售方电话
"businessmen_account"
:
"8569659856"
,
//销售方账号
"is_bank"
:
1
,
//是否开户
"tax_authoritioes"
:
"北京市工商行政管理局海淀分局"
,
//授权机构
"is_invalid"
:
"2"
,
//是否红冲(已放弃)
"complate_tax"
:
"未完成"
,
//是否完税
"status"
:
"1080"
,
//发票状态
"red_status"
:
"未红冲"
,
//是否红冲
"month"
:
11
,
//月份
"statusName"
:
"已邮寄"
//发票状态
}
]
},
"bizmsg"
:
"empty"
,
"requestid"
:
"93df11627c4a46628e801cb52c48bf85"
}
```
## **<a name="delivererApplyInvoices"> 发票申请列表(交付商) </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/delivererApplyInvoices
**参数验证**
否
**参数**
| 参数名|数据类型|必须|默认| 说明 |
|---|:---:|:---:|:---:|---|
| pageIndex | number | 否 | 1 | 当前页数 |
| pageSize | number | 否 | 10 | 每页记录数 |
| invoiceTime | string | 否 | | 开发票时间 |
| startTime | string | 否 | | 开发票开始时间 |
| endTime | string | 否 | | 开发票结束时间 |
| applyNo | string | 否 | | 发票申请编号 |
| inInvalid | string | 否 | | 是否完税 |
| type | string | 否 | | 发票类型 |
| status | string | 否 | | 发票状态 |
**返回结果**
| 参数名|数据类型| 说明 |
...
...
@@ -45,57 +117,90 @@
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:{
"count"
:
2
,
"rows"
:[
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"count"
:
1
,
"rows"
:
[
{
"applyNo"
:
"gongsibao-futong001"
,
"invoiceId"
:
"11665448190004592"
,
"breakReason"
:
null
,
"apply"
:{
"merchantId"
:
"11064622752480055"
,
"merchantName"
:
"司机宝"
,
"type"
:
"增值税专用发票"
,
"invoiceAmount"
:
400000000
,
"invoiceTime"
:
"2019-10-19"
,
"businessName"
:
"北京富通勤国际贸易有限责任公司(个体工商)"
},
"invoice"
:{
"invoiceNo"
:
"gongsibao4584585"
,
"status"
:
"1060"
,
"statusName"
:
"待审核"
}
},
{
"applyNo"
:
"gongsibao-futong001"
,
"invoiceId"
:
"11665448190004592"
,
"breakReason"
:
"业务繁忙"
,
"apply"
:{
"merchantId"
:
"11064622752480055"
,
"merchantName"
:
"司机宝"
,
"type"
:
"增值税专用发票"
,
"invoiceAmount"
:
400000000
,
"invoiceTime"
:
"2019-10-19"
,
"businessName"
:
"北京富通勤国际贸易有限责任公司(个体工商)"
},
"invoice"
:{
"invoiceNo"
:
"gongsibao4584585"
,
"status"
:
"1060"
,
"statusName"
:
"待审核"
}
"id"
:
"11667778231000774"
,
"apply_no"
:
"gongsibao002"
,
//申请编号
"type"
:
"普通发票"
,
//发票类型
"invoice_amount"
:
20000000
,
//发票金额
"invoice_time"
:
"2019-09-19 00:00:00"
,
//发票时间
"status"
:
"1080"
,
//发票状态
"merchant_name"
:
"汉唐信通(咨询)有限公司"
,
//购买方名称
"businessmen_name"
:
"滴滴出行"
,
//销售方名称
"statusName"
:
"已邮寄"
//状态名称
}
]
},
"bizmsg"
:
"empty"
,
"requestid"
:
"21da505b34d7423fbbb8865d64f652a5
"
"bizmsg"
:
"empty"
,
"requestid"
:
"3dc2b7a6d1f849d2bd1066ef180c5272
"
}
```
## **<a name="redRushList"> 红冲列表) </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/redRushList
**参数验证**
否
**参数**
| 参数名|数据类型|必须|默认| 说明 |
|---|:---:|:---:|:---:|---|
| pageIndex | number | 否 | 1 | 当前页数 |
| pageSize | number | 否 | 10 | 每页记录数 |
| invoiceTime | string | 否 | | 开发票时间 |
| startTime | string | 否 | | 开发票开始时间 |
| endTime | string | 否 | | 开发票结束时间 |
| applyNo | string | 否 | | 发票申请编号 |
| inInvalid | string | 否 | | 是否完税 |
| type | string | 否 | | 发票类型 |
| status | string | 否 | | 发票状态 "1030": "待处理", "1040": "交付商关闭", "1050": "已开具", "1060": "待审核", "1080": "已邮寄", "1300": "审核失败(平台第二次审核)"|
| redStatus | string | 否 | | 红冲状态 1:未红冲 2:红冲中 3 红冲失败 4 红冲成功 |
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"count"
:
1
,
"rows"
:
[
{
"id"
:
"11667778231000774"
,
"apply_no"
:
"gongsibao002"
,
//申请编号
"type"
:
"普通发票"
,
//发票类型
"invoice_amount"
:
20000000
,
//发票金额
"invoice_time"
:
"2019-09-19 00:00:00"
,
//发票时间
"status"
:
"1080"
,
//发票状态
"merchant_name"
:
"汉唐信通(咨询)有限公司"
,
//购买方名称
"businessmen_name"
:
"滴滴出行"
,
//销售方名称
"statusName"
:
"已邮寄"
//状态名称
}
]
},
"bizmsg"
:
"empty"
,
"requestid"
:
"3dc2b7a6d1f849d2bd1066ef180c5272"
}
```
## **<a name="delivererAssignment"> 新建进度-已开具</a>**
[
返回到目录
](
#menu
)
...
...
@@ -233,7 +338,7 @@
```
## **<a name="queryInvoiceDeliverer"> 查看详情
-和平台不一样
</a>**
## **<a name="queryInvoiceDeliverer"> 查看详情</a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
...
...
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