Commit 30a0d215 by 王昆

dd

parent c3c3beea
...@@ -182,6 +182,14 @@ class InvoiceCtl extends CtlBase { ...@@ -182,6 +182,14 @@ class InvoiceCtl extends CtlBase {
return system.getResult(res); return system.getResult(res);
} }
/**
* 平台推送发票
* @param {*} params
*/
async pushInvoiceToDeliver(params){
return this.invoiceSve.pushInvoiceToDeliver(params);
}
// /** // /**
// * 申请发票校验 // * 申请发票校验
// * @param {*} pobj // * @param {*} pobj
......
...@@ -57,7 +57,7 @@ class InvoiceService extends ServiceBase { ...@@ -57,7 +57,7 @@ class InvoiceService extends ServiceBase {
} }
/** /**
* 推送发票信息 * 推送发票信息(到平台系统)
* @param {*} params * @param {*} params
*/ */
async pushInvoiceInfo(params) { async pushInvoiceInfo(params) {
...@@ -80,6 +80,15 @@ class InvoiceService extends ServiceBase { ...@@ -80,6 +80,15 @@ class InvoiceService extends ServiceBase {
} }
} }
/**
* 发票申请(平台系统推送到交付商系统)
* @param {*} params
*/
async pushInvoiceToDeliver(params){
var rs = await this.callms("invoice", "invoiceApply", params);
return rs;
}
async invoice(params) { async invoice(params) {
var rs = await this.callms("invoice", "invoice", params); var rs = await this.callms("invoice", "invoice", params);
await this.setUcUser([rs.data]); await this.setUcUser([rs.data]);
......
...@@ -27,6 +27,7 @@ module.exports = function (app) { ...@@ -27,6 +27,7 @@ module.exports = function (app) {
req.url.indexOf("order/orderCtl/addSourceOrder") > 0 || req.url.indexOf("order/orderCtl/addSourceOrder") > 0 ||
req.url.indexOf("business/businessmenCtl/info") > 0 || req.url.indexOf("business/businessmenCtl/info") > 0 ||
req.url.indexOf("invoice/invoiceCtl/calcInvoice") > 0 || req.url.indexOf("invoice/invoiceCtl/calcInvoice") > 0 ||
req.url.indexOf("invoice/invoiceCtl/pushInvoiceToDeliver") > 0 ||
req.url.indexOf("getRsConfig") > 0) { req.url.indexOf("getRsConfig") > 0) {
if (jsonUser) { if (jsonUser) {
req.loginUser = jsonUser; req.loginUser = jsonUser;
......
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