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
3bfc9835
Commit
3bfc9835
authored
Jun 15, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
95b4e83f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
45 deletions
+55
-45
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
+5
-3
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
+1
-42
ic-deliver/app/base/service/impl/bizchance/schemeSve.js
+49
-0
No files found.
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
3bfc9835
...
...
@@ -67,19 +67,21 @@ class BizOptCtl extends CtlBase {
bussinessInfo
.
contactsName
=
rs
.
business_info
.
contactsName
;
//联系人名称
bussinessInfo
.
contactsPhone
=
rs
.
business_info
.
contactsPhone
;
//联系人联系方式
bussinessInfo
.
createdTime
=
this
.
timeFormat
(
rs
.
created_at
);
//商机创建时间
rarr
.
push
(
statusInfo
)
;
rarr
.
push
(
bussinessInfo
)
;
rarr
.
statusInfo
=
statusInfo
;
rarr
.
bussinessInfo
=
bussinessInfo
;
}
if
(
ms
){
var
planInfo
=
ms
.
scheme_info
;
planInfo
.
schemeNumber
=
ms
.
scheme_number
;
planInfo
.
currentStatus
=
ms
.
scheme_status
;
planInfo
.
statusReason
=
ms
.
reject_reason
;
rarr
.
p
ush
(
planInfo
)
;
rarr
.
p
lanInfo
=
planInfo
;
}
return
system
.
getResult
(
rarr
);
}
catch
(
error
){
console
.
log
(
"eeeeeeeeeeeeeeeeeeeeee"
);
console
.
log
(
error
);
return
system
.
getResultError
(
error
);
}
}
...
...
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
View file @
3bfc9835
...
...
@@ -121,48 +121,7 @@ class SchemeCtl extends CtlBase {
rarr
.
clerkPhone
=
rs
.
salesman_phone
;
//业务员联系方式
rarr
.
createdTime
=
this
.
timeFormat
(
rs
.
created_at
);
//创建方案的日期
rarr
.
statusTime
=
this
.
timeFormat
(
rs
.
updated_at
);
//当前状态的日期
var
baseInfo
=
{};
if
(
rarr
.
businessName
==
"公司注册"
||
rarr
.
businessName
==
"园区注册"
||
rarr
.
businessName
==
"税控申请"
||
rarr
.
businessName
==
"代理记账"
){
baseInfo
.
taxpayerType
=
rs
.
scheme_info
.
taxpayerType
;
}
if
(
rarr
.
businessName
==
"园区注册"
){
baseInfo
.
registeredType
=
rs
.
scheme_info
.
registeredType
;
}
if
(
rarr
.
businessName
==
"公司注册"
||
rarr
.
businessName
==
"园区注册"
){
if
(
rarr
.
businessName
==
"公司注册"
){
baseInfo
.
companyProperties
=
rs
.
scheme_info
.
companyProperties
;
}
baseInfo
.
engagedIndustry
=
rs
.
scheme_info
.
engagedIndustry
;
baseInfo
.
addressType
=
rs
.
scheme_info
.
addressType
;
baseInfo
.
fullAddress
=
rs
.
scheme_info
.
fullAddress
;
baseInfo
.
businessScope
=
rs
.
scheme_info
.
businessScope
;
baseInfo
.
isWhether
=
rs
.
scheme_info
.
isWhether
;
}
if
(
rarr
.
businessName
==
"刻章服务"
){
baseInfo
.
whetherType
=
rs
.
scheme_info
.
whetherType
;
}
if
(
rarr
.
businessName
==
"代理记账"
){
baseInfo
.
subjectType
=
rs
.
scheme_info
.
subjectType
;
}
if
(
rarr
.
businessName
==
"注册地址"
||
rarr
.
businessName
==
"代理记账"
){
baseInfo
.
buyTime
=
rs
.
scheme_info
.
buyTime
;
baseInfo
.
buyDuration
=
rs
.
scheme_info
.
buyDuration
;
baseInfo
.
isRenew
=
rs
.
scheme_info
.
isRenew
;
}
rarr
.
baseInfo
=
baseInfo
;
if
(
rarr
.
businessName
!=
"公司注册"
&&
rarr
.
businessName
!=
"园区注册"
){
var
companyInfo
=
{};
companyInfo
.
creditCode
=
rs
.
scheme_info
.
creditCode
;
companyInfo
.
companyType
=
rs
.
scheme_info
.
companyType
;
companyInfo
.
establishedTime
=
rs
.
scheme_info
.
establishedTime
;
companyInfo
.
registeredCapital
=
rs
.
scheme_info
.
registeredCapital
;
companyInfo
.
shareholderName
=
rs
.
scheme_info
.
shareholderName
;
companyInfo
.
businessTerm
=
rs
.
scheme_info
.
businessTerm
;
companyInfo
.
businessScope
=
rs
.
scheme_info
.
businessScope
;
companyInfo
.
residenceAddress
=
rs
.
scheme_info
.
residenceAddress
;
rarr
.
companyInfo
=
companyInfo
;
}
rarr
.
baseInfo
=
rs
.
scheme_info
;
}
return
system
.
getResult
(
rarr
);
}
...
...
ic-deliver/app/base/service/impl/bizchance/schemeSve.js
0 → 100644
View file @
3bfc9835
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
appconfig
=
system
.
getSysConfig
();
class
SchemeService
extends
ServiceBase
{
constructor
()
{
super
(
"bizchance"
,
ServiceBase
.
getDaoName
(
SchemeService
));
}
async
findById
(
qobj
){
//根据id获取方案信息
var
oid
=
qobj
.
id
;
return
await
this
.
dao
.
findById
(
oid
);
}
async
findInfoByDemandCode
(
qobj
){
//根据方案编号获取方案详情
return
await
this
.
dao
.
findInfoByDemandCode
(
qobj
);
}
async
updateStatusByDemandCode
(
qobj
){
//根据商机编号号更新方案状态及原因
var
self
=
this
;
return
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
dao
.
updateStatusByDemandCode
(
qobj
,
t
);
});
}
async
updateInfoByDemandCode
(
qobj
){
//根据商机编号更新方案详情
var
self
=
this
;
return
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
dao
.
updateInfoByDemandCode
(
qobj
,
t
);
});
}
async
updateSchemeNumberByDemandCode
(
qobj
){
//根据商机编号更新方案编号
var
self
=
this
;
return
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
dao
.
updateSchemeNumberByDemandCode
(
qobj
,
t
);
});
}
async
insertInfo
(
qobj
){
//插入方案信息
var
self
=
this
;
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
dao
.
insertInfo
(
qobj
,
t
);
});
}
}
module
.
exports
=
SchemeService
;
\ No newline at end of file
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