Commit f51899e1 by zhaoxiqing

gsb

parent b7b50492
......@@ -17,6 +17,16 @@ class InvoiceCtl extends CtlBase {
}
}
//发票申请列表
async platforminvoiceapplyPage(params, pobj2, req) {
try {
let rs = await this.invoiceSve.platforminvoiceapplyPage(params);
return rs;
} catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
}
module.exports = InvoiceCtl;
......@@ -46,6 +46,14 @@ class InvoiceService extends ServiceBase {
}
async platforminvoiceapplyPage(params){
var rs = await this.callms("invoice", "platforminvoiceapplyPage", params);
if (rs && rs.data && rs.data.rows) {
this.transOrderField(rs.data.rows);
}
return rs;
}
transOrderField(rows) {
if (!rows || rows.length == 0) {
return;
......
......@@ -9,6 +9,7 @@
1. [交付商交付](#delivered)
1. [查询详细信息](#invoice)
1. [发票列表](#platforminvoicePage)
1. [发票申请列表](#platforminvoiceapplyPage)
## **<a name="processList"> 业务进度字典 </a>**
[返回到目录](#menu)
......@@ -599,3 +600,82 @@
}
```
## **<a name="platforminvoiceapplyPage"> 发票申请列表 </a>**     
[返回到目录](#menu)     
##### URL
[/web/saas/invoiceCtl/platforminvoiceapplyPage]
#### 参数格式 `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