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
7b297741
Commit
7b297741
authored
Jan 14, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xggsve-order-dev' of gitlab.gongsibao.com:jiangyong/zhichan into xggsve-order-dev
parents
7ab7bc29
575b469f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
xggsve-order/app/base/api/impl/op/action.js
+6
-0
xggsve-order/app/base/service/impl/order/obusinessmenSve.js
+19
-6
No files found.
xggsve-order/app/base/api/impl/op/action.js
View file @
7b297741
...
@@ -87,6 +87,12 @@ class ActionAPI extends APIBase {
...
@@ -87,6 +87,12 @@ class ActionAPI extends APIBase {
case
"businessmenPage"
:
case
"businessmenPage"
:
opResult
=
await
this
.
obusinessmenSve
.
businessmenPage
(
action_body
);
opResult
=
await
this
.
obusinessmenSve
.
businessmenPage
(
action_body
);
break
;
break
;
case
"createAccount"
:
opResult
=
await
this
.
obusinessmenSve
.
createAccount
(
action_body
);
break
;
case
"signing"
:
opResult
=
await
this
.
obusinessmenSve
.
signing
(
action_body
);
break
;
//******************************************************************** */
//******************************************************************** */
...
...
xggsve-order/app/base/service/impl/order/obusinessmenSve.js
View file @
7b297741
...
@@ -34,8 +34,8 @@ class ObusinessmenService extends ServiceBase {
...
@@ -34,8 +34,8 @@ class ObusinessmenService extends ServiceBase {
*
*
*/
*/
async
signing
(
params
)
{
async
signing
(
params
)
{
if
(
!
params
.
hasOwnProperty
(
'credit_code'
)
&&
!
params
.
credit_code
)
{
if
(
!
params
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误
同意社会信用代码
不能为空`
);
return
system
.
getResult
(
null
,
`参数错误
个体户ID
不能为空`
);
}
}
if
(
!
params
.
hasOwnProperty
(
'cost_rate'
))
{
if
(
!
params
.
hasOwnProperty
(
'cost_rate'
))
{
return
system
.
getResult
(
null
,
`参数错误 核定成本费用率不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 核定成本费用率不能为空`
);
...
@@ -84,6 +84,18 @@ class ObusinessmenService extends ServiceBase {
...
@@ -84,6 +84,18 @@ class ObusinessmenService extends ServiceBase {
_obusinessmen
.
tax_rate
=
this
.
trim
(
params
.
tax_rate
);
_obusinessmen
.
tax_rate
=
this
.
trim
(
params
.
tax_rate
);
_obusinessmen
.
sign_time
=
new
Date
();
_obusinessmen
.
sign_time
=
new
Date
();
_obusinessmen
.
sign_notes
=
this
.
trim
(
params
.
sign_notes
);
_obusinessmen
.
sign_notes
=
this
.
trim
(
params
.
sign_notes
);
if
(
_obusinessmen
.
special_other_ladder
){
_obusinessmen
.
special_other_ladder
=
JSON
.
stringify
(
_obusinessmen
.
special_other_ladder
);
}
if
(
_obusinessmen
.
special_tax_ladder
){
_obusinessmen
.
special_tax_ladder
=
JSON
.
stringify
(
_obusinessmen
.
special_tax_ladder
);
}
if
(
_obusinessmen
.
common_other_ladder
){
_obusinessmen
.
common_other_ladder
=
JSON
.
stringify
(
_obusinessmen
.
common_other_ladder
);
}
if
(
_obusinessmen
.
common_tax_ladder
){
_obusinessmen
.
common_tax_ladder
=
JSON
.
stringify
(
_obusinessmen
.
common_tax_ladder
);
}
try
{
try
{
await
_obusinessmen
.
save
();
await
_obusinessmen
.
save
();
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
...
@@ -98,14 +110,15 @@ class ObusinessmenService extends ServiceBase {
...
@@ -98,14 +110,15 @@ class ObusinessmenService extends ServiceBase {
* @param {*} params
* @param {*} params
*/
*/
async
createAccount
(
params
){
async
createAccount
(
params
){
if
(
!
params
.
hasOwnProperty
(
'credit_code'
)
&&
!
params
.
credit_code
)
{
if
(
!
params
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误
同意社会信用代码
不能为空`
);
return
system
.
getResult
(
null
,
`参数错误
个体工商户ID
不能为空`
);
}
}
let
_obusinessmen
=
await
this
.
dao
.
findById
(
this
.
trim
(
params
.
id
));
let
_obusinessmen
=
await
this
.
dao
.
findById
(
this
.
trim
(
params
.
id
));
if
(
!
_obusinessmen
){
if
(
!
_obusinessmen
){
return
system
.
getResult
(
null
,
`个体户不存在`
);
return
system
.
getResult
(
null
,
`个体户不存在`
);
}
}
if
(
!
_obusinessmen
.
is_create_account
)
{
if
(
_obusinessmen
.
is_create_account
)
{
return
system
.
getResult
(
null
,
`该个体户已经建帐`
);
return
system
.
getResult
(
null
,
`该个体户已经建帐`
);
}
}
...
@@ -171,7 +184,7 @@ class ObusinessmenService extends ServiceBase {
...
@@ -171,7 +184,7 @@ class ObusinessmenService extends ServiceBase {
let
list
=
await
this
.
dao
.
listByCondition
(
params
);
let
list
=
await
this
.
dao
.
listByCondition
(
params
);
if
(
list
)
{
if
(
list
)
{
for
(
var
row
of
list
)
{
for
(
var
row
of
list
)
{
this
.
handleDate
(
row
,
[
"created_at"
,
"assignTime"
],
null
,
-
8
);
this
.
handleDate
(
row
,
[
"created_at"
,
"assignTime"
,
"reg_date"
,
"tax_reg_day"
,
"updated_at"
],
null
,
-
8
);
}
}
await
this
.
doSignBtn
(
list
);
await
this
.
doSignBtn
(
list
);
}
}
...
...
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