Commit bffad7c5 by 王昆

gsb

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