Commit 7f921c31 by 王昆

ddg

parent b4dc8e77
...@@ -364,25 +364,6 @@ class InvoiceCtl extends CtlBase { ...@@ -364,25 +364,6 @@ class InvoiceCtl extends CtlBase {
} }
} }
/**
* 发票账单列表
* @param {*} params
* @param {*} pobj2
* @param {*} req
*/
async invoiceOrder(params, pobj2, req){
if(!params.id){
return system.getResult(null,`发票ID 不能为空`);
}
try {
return await this.saasinvoiceSve.invoiceOrder(params);
} catch (error) {
console.log(error);
return system.getResult(null,`系统错误`);
}
}
} }
module.exports = InvoiceCtl; module.exports = InvoiceCtl;
...@@ -7,9 +7,6 @@ class SaasinvoiceService extends ServiceBase { ...@@ -7,9 +7,6 @@ class SaasinvoiceService extends ServiceBase {
super(); super();
this.DEFAULT_BUSINESSMEN_TYPE = "10"; //默认的 销售方类型 个体工商户 this.DEFAULT_BUSINESSMEN_TYPE = "10"; //默认的 销售方类型 个体工商户
this.DEFAULT_CHANNEL_ID = "2"; //默认的 渠道类型 this.DEFAULT_CHANNEL_ID = "2"; //默认的 渠道类型
this.tradeSve = system.getObject("service.trade.tradeSve");
} }
async platforminvoicePage(params) { async platforminvoicePage(params) {
...@@ -146,35 +143,5 @@ class SaasinvoiceService extends ServiceBase { ...@@ -146,35 +143,5 @@ class SaasinvoiceService extends ServiceBase {
}); });
console.log(res.data); console.log(res.data);
} }
/**
* 发票详情
* @param {*} params
*/
async invoiceOrder(params){
try {
let saasInvoiceApply = await this.callms("invoice", "saasInvoiceInfo", params);
if(saasInvoiceApply.status!=0 || !saasInvoiceApply.data){
return system.getResult(null,`系统错误`);
}
saasInvoiceApply = saasInvoiceApply.data;
let tradOrder = [];
if(saasInvoiceApply.fee_type=="00"){ //个体户注册订单
tradOrder =[];
}else{ //查询流水
let tradOrderRes = await this.tradeSve.invoiceTrade({id:saasInvoiceApply.id,order_type:saasInvoiceApply.fee_type});
if(tradOrderRes.status==0){
tradOrder = tradOrderRes.data;
}
}
saasInvoiceApply.tradOrder = tradOrder;
return system.getResult(saasInvoiceApply);
} catch (error) {
console.log(error);
return system.getResult(null,`系统错误`);
}
}
} }
module.exports = SaasinvoiceService; module.exports = SaasinvoiceService;
\ No newline at end of file
...@@ -200,7 +200,7 @@ class System { ...@@ -200,7 +200,7 @@ class System {
order: dev + ":3103" + path, order: dev + ":3103" + path,
// 发票服务 // 发票服务
invoice: local + ":3105" + path, invoice: dev + ":3105" + path,
// 用户服务 // 用户服务
uc: dev + ":3106" + path, uc: dev + ":3106" + path,
......
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