Commit 0b19218d by zhaoxiqing

gsb

parent ea3daeae
...@@ -64,5 +64,15 @@ class InvoiceCtl extends CtlBase { ...@@ -64,5 +64,15 @@ class InvoiceCtl extends CtlBase {
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
} }
} }
//发票申请列表
async merchantinvoiceapplyPage(params, pobj2, req) {
try {
let rs = await this.invoiceSve.merchantinvoiceapplyPage(params);
return rs;
} catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
} }
module.exports = InvoiceCtl; module.exports = InvoiceCtl;
...@@ -14,6 +14,14 @@ class InvoiceService extends ServiceBase { ...@@ -14,6 +14,14 @@ class InvoiceService extends ServiceBase {
return rs; return rs;
} }
async merchantinvoiceapplyPage(params){
var rs = await this.callms("invoice", "merchantinvoiceapplyPage", params);
if (rs && rs.data && rs.data.rows) {
this.transOrderField(rs.data.rows);
}
return rs;
}
transOrderField(rows) { transOrderField(rows) {
if (!rows || rows.length == 0) { if (!rows || rows.length == 0) {
return; return;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
1. [交付商交付](#delivered) 1. [交付商交付](#delivered)
1. [查询详细信息](#invoice) 1. [查询详细信息](#invoice)
1. [发票列表](#merchantinvoicePage) 1. [发票列表](#merchantinvoicePage)
1. [发票申请列表](#merchantinvoiceapplyPage)
## **<a name="processList"> 业务进度字典 </a>** ## **<a name="processList"> 业务进度字典 </a>**
[返回到目录](#menu) [返回到目录](#menu)
...@@ -602,3 +603,83 @@ ...@@ -602,3 +603,83 @@
} }
``` ```
## **<a name="merchantinvoiceapplyPage"> 发票申请列表 </a>**     
[返回到目录](#menu)     
##### URL
[/web/saas/invoiceCtl/merchantinvoiceapplyPage]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求参数 `POST`
```javascript
{
"currentPage": 1,
"pageSize": 10,
"apply_no": "", //发票申请编号
"begin_time": "", //开始时间
"end_time": "" //结束时间
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```javascript
{
"status": 0,
"msg": "success",
"data": {
"count": 1,
"rows": [
{
"id": "1",
"saas_id": "1",
"saas_merchant_id": "11248111258000991",
"batch_no": "1",
"owner_type": "商户发票",
"fee_type": "注册订单费用",
"invoice_type": "增值税专用发票", //发票类型
"status": "1", //进度
"sve_invoice_id": "1",
"apply_no": "1", //发票申请编号
"from_name": "1", //开票方
"from_credit_code": "1",
"from_addr": "1",
"from_mobile": "1",
"from_bank": "1",
"from_account": "1",
"to_name": "1", //发票抬头
"to_credit_code": "1",
"to_addr": "1",
"to_mobile": "1",
"to_bank": "1",
"to_account": "1",
"mail_to": "1",
"mail_mobile": "1",
"mail_addr": "1",
"personal_invoice_tax": 1, //个税
"additional_tax": 1,
"value_added_tax": 1,
"service_tax": 1,
"created_at": "2020-04-10 22:39:43", //申请时间
"updated_at": "2020-04-10 22:39:40",
"deleted_at": null,
"version": 0,
"invoice_join": "",
"price": 0
}
]
},
"requestid": "712c62cc9dfd455b82ae13bf68c882c9"
}
```
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