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
076baa2a
Commit
076baa2a
authored
Jan 14, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
8b91e952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
xgg-admin/app/base/controller/impl/business/businessmenCtl.js
+12
-13
No files found.
xgg-admin/app/base/controller/impl/business/businessmenCtl.js
View file @
076baa2a
...
@@ -67,8 +67,8 @@ class BusinessmenCtl extends CtlBase {
...
@@ -67,8 +67,8 @@ class BusinessmenCtl extends CtlBase {
if
(
!
pobj
.
hasOwnProperty
(
'credit_code'
)
&&
!
pobj
.
credit_code
)
{
if
(
!
pobj
.
hasOwnProperty
(
'credit_code'
)
&&
!
pobj
.
credit_code
)
{
return
system
.
getResult
(
null
,
`参数错误 同意社会信用代码不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 同意社会信用代码不能为空`
);
}
}
if
(
!
pobj
.
hasOwnProperty
(
'cost_rate'
))
{
if
(
!
pobj
.
hasOwnProperty
(
'cost_rate'
)
||
isNaN
(
pobj
.
cost_rate
)
)
{
return
system
.
getResult
(
null
,
`参数错误 核定成本费用率不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 核定成本费用率不能为空
并且必须为数字
`
);
}
}
if
(
!
pobj
.
hasOwnProperty
(
'add_value_up_type'
)
&&
!
pobj
.
add_value_up_type
)
{
if
(
!
pobj
.
hasOwnProperty
(
'add_value_up_type'
)
&&
!
pobj
.
add_value_up_type
)
{
return
system
.
getResult
(
null
,
`参数错误 增值税累计类型不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 增值税累计类型不能为空`
);
...
@@ -82,17 +82,18 @@ class BusinessmenCtl extends CtlBase {
...
@@ -82,17 +82,18 @@ class BusinessmenCtl extends CtlBase {
if
(
!
pobj
.
hasOwnProperty
(
'service_end_time'
))
{
if
(
!
pobj
.
hasOwnProperty
(
'service_end_time'
))
{
return
system
.
getResult
(
null
,
`参数错误 服务结束时间不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 服务结束时间不能为空`
);
}
}
if
(
!
pobj
.
hasOwnProperty
(
'service_rate'
)
&&
!
pobj
.
service_rate
)
{
if
(
!
pobj
.
hasOwnProperty
(
'service_rate'
)
||
!
pobj
.
service_rate
||
isNaN
(
pobj
.
service_rate
)
)
{
return
system
.
getResult
(
null
,
`参数错误 服务费比例不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 服务费比例不能为空
并且必须为数字
`
);
}
}
if
(
!
pobj
.
hasOwnProperty
(
'tax_rate'
)
&&
!
pobj
.
tax_rate
)
{
if
(
!
pobj
.
hasOwnProperty
(
'tax_rate'
)
||
!
pobj
.
tax_rate
||
isNaN
(
pobj
.
tax_rate
)
)
{
return
system
.
getResult
(
null
,
`参数错误 含税价百分比不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 含税价百分比不能为空
并且必须为数字
`
);
}
}
try
{
try
{
pobj
.
service_rate
=
system
.
y2f
(
pobj
.
service_rate
);
pobj
.
service_rate
=
system
.
y2f
(
pobj
.
service_rate
);
pobj
.
tax_rate
=
system
.
y2f
(
pobj
.
tax_rate
);
pobj
.
tax_rate
=
system
.
y2f
(
pobj
.
tax_rate
);
pobj
.
cost_rate
=
system
.
y2f
(
pobj
.
cost_rate
);
pobj
.
cost_rate
=
system
.
y2f
(
pobj
.
cost_rate
);
return
await
this
.
businessmenSve
.
signing
(
pobj
);
return
await
this
.
businessmenSve
.
signing
(
pobj
);
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
...
@@ -105,11 +106,9 @@ class BusinessmenCtl extends CtlBase {
...
@@ -105,11 +106,9 @@ class BusinessmenCtl extends CtlBase {
* @param {*} params
* @param {*} params
*/
*/
async
createAccount
(
pobj
,
pobj2
,
req
)
{
async
createAccount
(
pobj
,
pobj2
,
req
)
{
if
(
!
pobj
.
hasOwnProperty
(
'credit_code'
)
&&
!
pobj
.
credit_code
)
{
if
(
!
pobj
.
id
)
{
return
system
.
getResult
(
null
,
`参数错误
同意社会信用代码
不能为空`
);
return
system
.
getResult
(
null
,
`参数错误
个体工商户ID
不能为空`
);
}
}
try
{
try
{
return
await
this
.
businessmenSve
.
createAccount
(
pobj
);
return
await
this
.
businessmenSve
.
createAccount
(
pobj
);
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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