Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
bffad7c5
Commit
bffad7c5
authored
Apr 11, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
d942a1d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
xggsve-invoice/app/base/api/impl/op/action.js
+3
-0
xggsve-invoice/app/base/db/models/invoice/saasinvoice.js
+9
-0
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
+11
-0
No files found.
xggsve-invoice/app/base/api/impl/op/action.js
View file @
bffad7c5
...
...
@@ -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);
...
...
xggsve-invoice/app/base/db/models/invoice/saasinvoice.js
View file @
bffad7c5
...
...
@@ -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
...
...
xggsve-invoice/app/base/service/impl/invoice/
S
aasinvoiceapplySve.js
→
xggsve-invoice/app/base/service/impl/invoice/
s
aasinvoiceapplySve.js
View file @
bffad7c5
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment