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
9a01e46c
Commit
9a01e46c
authored
Mar 13, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
057b9c28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
220 additions
and
0 deletions
+220
-0
xgg-deliver/app/base/controller/impl/invoice/invoiceCtl.js
+15
-0
xgg-deliver/app/front/entry/public/apidoc/invoice/invoice.md
+205
-0
No files found.
xgg-deliver/app/base/controller/impl/invoice/invoiceCtl.js
View file @
9a01e46c
...
@@ -60,5 +60,19 @@ class InvoiceCtl extends CtlBase {
...
@@ -60,5 +60,19 @@ class InvoiceCtl extends CtlBase {
return
system
.
getResultFail
(
500
,
`接口错误 错误信息
${
error
}
`
);
return
system
.
getResultFail
(
500
,
`接口错误 错误信息
${
error
}
`
);
}
}
}
}
/**
* 根据ID查详细信息
* @param {*} pobj
*/
async
invoice
(
pobj
,
pobj2
,
req
)
{
try
{
return
await
this
.
invoiceSve
.
invoice
(
pobj
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResultFail
(
500
,
`接口错误 错误信息
${
error
}
`
);
}
}
}
}
module
.
exports
=
InvoiceCtl
;
module
.
exports
=
InvoiceCtl
;
\ No newline at end of file
xgg-deliver/app/front/entry/public/apidoc/invoice/invoice.md
View file @
9a01e46c
...
@@ -323,3 +323,207 @@
...
@@ -323,3 +323,207 @@
}
}
```
```
## **<a name="deliverAssignSalesman"> 分配业务员 </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/handleStatus
**参数验证**
否
**参数**
**示例**
```
javascript
{
"invoice_id"
:
"11855671564003193"
,
//发票ID
"operator_id"
:
"001"
,
//业务员ID
"status"
:
"1040"
//业务状态
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
"success"
,
"bizmsg"
:
"empty"
,
"requestid"
:
"f6ed725fb64748c9a95227a7c6052942"
}
```
## **<a name="invoiced"> 开具发票 </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/handleStatus
**参数验证**
否
**参数**
**示例**
```
javascript
{
"invoice_id"
:
"11855693476003245"
,
//发票ID
"status"
:
"1050"
,
//业务状态
"invoice_no"
:
"17485952652"
,
//发票编号
"invoice_img"
:
"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=339685511,2228408993&fm=26&gp=0.jpg"
,
//发票图片
"invoice_time"
:
"2020-03-10"
,
//开票时间
"invoice_number"
:
"NO 02995607"
//发票号码
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
"success"
,
"bizmsg"
:
"empty"
,
"requestid"
:
"f6ed725fb64748c9a95227a7c6052942"
}
```
## **<a name="submitAudit"> 提交审核 </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/handleStatus
**参数验证**
否
**参数**
**示例**
```
javascript
{
"invoice_id"
:
"11855693476003245"
,
//发票ID
"status"
:
"1060"
,
//业务状态
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
"success"
,
"bizmsg"
:
"empty"
,
"requestid"
:
"f6ed725fb64748c9a95227a7c6052942"
}
```
## **<a name="deliverReject"> 审核失败 </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/handleStatus
**参数验证**
否
**参数**
**示例**
```
javascript
{
"invoice_id"
:
"11855693476003245"
,
//发票ID
"status"
:
"1050"
,
//业务状态
"invoice_no"
:
"17485952652"
,
//发票编号
"invoice_img"
:
"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=339685511,2228408993&fm=26&gp=0.jpg"
,
//发票图片
"invoice_time"
:
"2020-03-10"
,
//开票时间
"invoice_number"
:
"NO 02995607"
//发票号码
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
"success"
,
"bizmsg"
:
"empty"
,
"requestid"
:
"f6ed725fb64748c9a95227a7c6052942"
}
```
## **<a name="delivered"> 交付商交付 </a>**
[
返回到目录
](
#menu
)
**接口方式**
HTTP
**HTTP方法**
POST
**URI路径**
/web/invoice/invoiceCtl/handleStatus
**参数验证**
否
**参数**
**示例**
```
javascript
{
"invoice_id"
:
"11855693476003245"
,
//发票ID
"status"
:
"1050"
,
//业务状态
"deliver_mail_no"
:
"sfsunyanan"
,
//快递单号
"deliver_img"
:
"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1909363170,38053158&fm=26&gp=0.jpg"
//交接单
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
"success"
,
"bizmsg"
:
"empty"
,
"requestid"
:
"f6ed725fb64748c9a95227a7c6052942"
}
```
\ No newline at end of file
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