Commit bffad7c5 by 王昆

gsb

parent d942a1d1
...@@ -69,6 +69,9 @@ class ActionAPI extends APIBase { ...@@ -69,6 +69,9 @@ class ActionAPI extends APIBase {
case "platforminvoiceapplyPage" : //发票申请列表(平台) case "platforminvoiceapplyPage" : //发票申请列表(平台)
opResult = await this.saasinvoiceapplySve.platforminvoiceapplyPage(action_body); opResult = await this.saasinvoiceapplySve.platforminvoiceapplyPage(action_body);
break; break;
case "invoiceapplySave" : //发票申请列表(平台)
opResult = await this.saasinvoiceapplySve.save(action_body);
break;
// case "verificationAndCalculation": // 发票试算接口 // case "verificationAndCalculation": // 发票试算接口
// opResult = await rule.dispatcher(action_body); // opResult = await rule.dispatcher(action_body);
......
...@@ -16,6 +16,11 @@ module.exports = function (sequelize, DataTypes) { ...@@ -16,6 +16,11 @@ module.exports = function (sequelize, DataTypes) {
allowNull: true, allowNull: true,
defaultValue: '' defaultValue: ''
}, },
parent_id: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: ''
},
batch_no: { batch_no: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true allowNull: true
...@@ -127,6 +132,10 @@ module.exports = function (sequelize, DataTypes) { ...@@ -127,6 +132,10 @@ module.exports = function (sequelize, DataTypes) {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true allowNull: true
}, },
mail_no: {
type: DataTypes.STRING,
allowNull: true
},
personal_invoice_tax: { personal_invoice_tax: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: true allowNull: true
......
...@@ -11,6 +11,17 @@ class SaasinvoiceapplyService extends ServiceBase { ...@@ -11,6 +11,17 @@ class SaasinvoiceapplyService extends ServiceBase {
this.dictionary = system.getObject("util.dictionary"); this.dictionary = system.getObject("util.dictionary");
} }
async save(params) {
if (params.fee_type == "10") {
return await this.save10(params);
}
}
async save10(params) {
let rs = await this.dao.create(params);
return system.getResultSuccess(rs);
}
async merchantinvoiceapplyPage(params) { async merchantinvoiceapplyPage(params) {
params.currentPage = Number(params.currentPage || 1); params.currentPage = Number(params.currentPage || 1);
params.pageSize = Number(params.pageSize || 10); params.pageSize = Number(params.pageSize || 10);
......
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