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
186ce0e4
Commit
186ce0e4
authored
Jun 25, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
c7b5a9c1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
28 deletions
+40
-28
ic-deliver/app/base/controller/impl/bizchance/cacheinfoCtl.js
+3
-0
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
+26
-23
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
+7
-4
ic-deliver/app/base/db/impl/bizchance/bizoptDao.js
+3
-0
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
+1
-1
No files found.
ic-deliver/app/base/controller/impl/bizchance/cacheinfoCtl.js
View file @
186ce0e4
...
@@ -45,16 +45,19 @@ class CacheInfoCtl extends CtlBase {
...
@@ -45,16 +45,19 @@ class CacheInfoCtl extends CtlBase {
/*根据交付单id更新缓存信息*/
/*根据交付单id更新缓存信息*/
async
updateInfoByDeliverId
(
mobj
,
qobj
,
req
){
async
updateInfoByDeliverId
(
mobj
,
qobj
,
req
){
var
pobj
=
mobj
.
d
;
var
pobj
=
mobj
.
d
;
console
.
log
(
"cache---------------------------------------"
+
JSON
.
stringify
(
pobj
));
if
(
pobj
.
deliverNumber
&&
pobj
.
deliverNumber
!=
'undefined'
&&
pobj
.
cacheInfo
&&
pobj
.
cacheInfo
!=
'undefined'
){
if
(
pobj
.
deliverNumber
&&
pobj
.
deliverNumber
!=
'undefined'
&&
pobj
.
cacheInfo
&&
pobj
.
cacheInfo
!=
'undefined'
){
try
{
try
{
var
res
=
await
this
.
service
.
updateInfoByDeliverId
(
pobj
);
var
res
=
await
this
.
service
.
updateInfoByDeliverId
(
pobj
);
return
system
.
getResult
(
"更新成功!"
);
return
system
.
getResult
(
"更新成功!"
);
}
}
catch
(
error
){
catch
(
error
){
console
.
log
(
"error----------------------------"
+
error
);
return
system
.
getResultError
(
error
);
return
system
.
getResultError
(
error
);
}
}
}
}
else
{
else
{
console
.
log
(
"-----------------------------------------参数错误"
);
return
system
.
getResultError
(
"参数错误!"
);
return
system
.
getResultError
(
"参数错误!"
);
}
}
}
}
...
...
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
186ce0e4
...
@@ -484,17 +484,17 @@ class DeliverybillCtl extends CtlBase {
...
@@ -484,17 +484,17 @@ class DeliverybillCtl extends CtlBase {
else
if
(
pobj
.
businessName
==
"云上园区注册"
){
else
if
(
pobj
.
businessName
==
"云上园区注册"
){
pobj
.
companyInfo
.
companyProperties
=
appconfig
.
pdict
.
registeredTypeDictT
[
pobj
.
companyInfo
.
companyPropertiesName
];
pobj
.
companyInfo
.
companyProperties
=
appconfig
.
pdict
.
registeredTypeDictT
[
pobj
.
companyInfo
.
companyPropertiesName
];
}
}
pobj
.
delivery
Info
.
companyProperties
=
pobj
.
companyInfo
.
companyProperties
;
pobj
.
base
Info
.
companyProperties
=
pobj
.
companyInfo
.
companyProperties
;
pobj
.
companyInfo
.
companyType
=
pobj
.
companyInfo
.
companyProperties
;
pobj
.
companyInfo
.
companyType
=
pobj
.
companyInfo
.
companyProperties
;
pobj
.
delivery
Info
.
companyType
=
pobj
.
companyInfo
.
companyProperties
;
pobj
.
base
Info
.
companyType
=
pobj
.
companyInfo
.
companyProperties
;
}
}
if
(
pobj
.
companyInfo
.
engagedIndName
&&
pobj
.
companyInfo
.
engagedIndName
!=
'undefined'
)
{
if
(
pobj
.
companyInfo
.
engagedIndName
&&
pobj
.
companyInfo
.
engagedIndName
!=
'undefined'
)
{
pobj
.
companyInfo
.
engagedIndustry
=
appconfig
.
pdict
.
engagedIndustryDictT
[
pobj
.
companyInfo
.
engagedIndName
];
pobj
.
companyInfo
.
engagedIndustry
=
appconfig
.
pdict
.
engagedIndustryDictT
[
pobj
.
companyInfo
.
engagedIndName
];
}
}
if
(
pobj
.
deliveryInfo
.
taxpayerName
&&
pobj
.
delivery
Info
.
taxpayerName
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
taxpayerName
&&
pobj
.
base
Info
.
taxpayerName
!=
'undefined'
)
{
pobj
.
deliveryInfo
.
taxpayerType
=
appconfig
.
pdict
.
TaxpayerTypeDictT
[
pobj
.
delivery
Info
.
taxpayerName
];
pobj
.
baseInfo
.
taxpayerType
=
appconfig
.
pdict
.
TaxpayerTypeDictT
[
pobj
.
base
Info
.
taxpayerName
];
if
(
pobj
.
businessName
==
"公司注册"
||
pobj
.
businessName
==
"云上园区注册"
){
if
(
pobj
.
businessName
==
"公司注册"
||
pobj
.
businessName
==
"云上园区注册"
){
pobj
.
companyInfo
.
taxpayerType
=
pobj
.
delivery
Info
.
taxpayerType
;
pobj
.
companyInfo
.
taxpayerType
=
pobj
.
base
Info
.
taxpayerType
;
}
}
}
}
pobj
.
schemeNumber
=
""
;
pobj
.
schemeNumber
=
""
;
...
@@ -523,36 +523,39 @@ class DeliverybillCtl extends CtlBase {
...
@@ -523,36 +523,39 @@ class DeliverybillCtl extends CtlBase {
}
}
console
.
log
(
"---------------------------------------------------------------------------------------------------------------------------------------"
);
console
.
log
(
"---------------------------------------------------------------------------------------------------------------------------------------"
);
if
(
pobj
.
deliveryInfo
.
memoInfo
&&
pobj
.
delivery
Info
.
memoInfo
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
memoInfo
&&
pobj
.
base
Info
.
memoInfo
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
memoInfo
=
pobj
.
delivery
Info
.
memoInfo
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
memoInfo
=
pobj
.
base
Info
.
memoInfo
;
}
}
if
(
pobj
.
deliveryInfo
.
isWhether
&&
pobj
.
deliveryInfo
.
isWhether
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
isWhether
&&
pobj
.
baseInfo
.
isWhether
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
isWhether
=
pobj
.
deliveryInfo
.
isWhether
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
isWhether
=
pobj
.
baseInfo
.
isWhether
;
}
if
(
pobj
.
baseInfo
.
financial
&&
pobj
.
baseInfo
.
financial
!=
'undefined'
){
pobj
.
cacheInfo
.
financial
=
pobj
.
baseInfo
.
financial
;
}
}
if
(
pobj
.
deliveryInfo
.
addressType
&&
pobj
.
delivery
Info
.
addressType
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
addressType
&&
pobj
.
base
Info
.
addressType
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
addressType
=
pobj
.
delivery
Info
.
addressType
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
addressType
=
pobj
.
base
Info
.
addressType
;
}
}
if
(
pobj
.
deliveryInfo
.
companyName
&&
pobj
.
delivery
Info
.
companyName
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
companyName
&&
pobj
.
base
Info
.
companyName
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
companyName
=
pobj
.
delivery
Info
.
companyName
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
companyName
=
pobj
.
base
Info
.
companyName
;
}
}
if
(
pobj
.
serviceCode
&&
pobj
.
serviceCode
!=
'undefined'
)
{
if
(
pobj
.
serviceCode
&&
pobj
.
serviceCode
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
serviceArea
=
pobj
.
serviceCode
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
serviceArea
=
pobj
.
serviceCode
;
}
}
if
(
pobj
.
serviceName
&&
pobj
.
serviceName
!=
'undefined'
)
{
if
(
pobj
.
serviceName
&&
pobj
.
serviceName
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
serviceAreaName
=
pobj
.
serviceName
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
serviceAreaName
=
pobj
.
serviceName
;
pobj
.
delivery
Info
.
serviceName
=
pobj
.
serviceName
;
pobj
.
base
Info
.
serviceName
=
pobj
.
serviceName
;
}
}
if
(
pobj
.
companyInfo
.
businessScope
&&
pobj
.
companyInfo
.
businessScope
!=
'undefined'
)
{
if
(
pobj
.
companyInfo
.
businessScope
&&
pobj
.
companyInfo
.
businessScope
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
businessScope
=
pobj
.
companyInfo
.
businessScope
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
businessScope
=
pobj
.
companyInfo
.
businessScope
;
}
}
if
(
pobj
.
deliveryInfo
.
taxpayerType
&&
pobj
.
delivery
Info
.
taxpayerType
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
taxpayerType
&&
pobj
.
base
Info
.
taxpayerType
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
taxpayerType
=
pobj
.
delivery
Info
.
taxpayerType
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
taxpayerType
=
pobj
.
base
Info
.
taxpayerType
;
}
}
if
(
pobj
.
deliveryInfo
.
taxpayerName
&&
pobj
.
delivery
Info
.
taxpayerName
!=
'undefined'
)
{
if
(
pobj
.
baseInfo
.
taxpayerName
&&
pobj
.
base
Info
.
taxpayerName
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
taxpayerName
=
pobj
.
delivery
Info
.
taxpayerName
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
taxpayerName
=
pobj
.
base
Info
.
taxpayerName
;
}
}
if
(
pobj
.
companyInfo
.
engagedIndustry
&&
pobj
.
companyInfo
.
engagedIndustry
!=
'undefined'
)
{
if
(
pobj
.
companyInfo
.
engagedIndustry
&&
pobj
.
companyInfo
.
engagedIndustry
!=
'undefined'
)
{
pobj
.
cacheInfo
.
cmpDeliverInfo
.
engagedIndustry
=
pobj
.
companyInfo
.
engagedIndustry
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
engagedIndustry
=
pobj
.
companyInfo
.
engagedIndustry
;
...
@@ -564,12 +567,12 @@ class DeliverybillCtl extends CtlBase {
...
@@ -564,12 +567,12 @@ class DeliverybillCtl extends CtlBase {
pobj
.
cacheInfo
.
cmpDeliverInfo
.
fullAddress
=
pobj
.
companyInfo
.
fullAddress
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
fullAddress
=
pobj
.
companyInfo
.
fullAddress
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
residenceAddress
=
pobj
.
companyInfo
.
fullAddress
;
pobj
.
cacheInfo
.
cmpDeliverInfo
.
residenceAddress
=
pobj
.
companyInfo
.
fullAddress
;
}
}
if
(
pobj
.
deliveryInfo
.
contactsName
&&
pobj
.
delivery
Info
.
contactsName
!=
'undefined'
){
if
(
pobj
.
baseInfo
.
contactsName
&&
pobj
.
base
Info
.
contactsName
!=
'undefined'
){
pobj
.
cacheInfo
.
cmpContactInfo
.
contactsName
=
pobj
.
delivery
Info
.
contactsName
;
pobj
.
cacheInfo
.
cmpContactInfo
.
contactsName
=
pobj
.
base
Info
.
contactsName
;
}
}
if
(
pobj
.
deliveryInfo
.
contactsPhone
&&
pobj
.
delivery
Info
.
contactsPhone
!=
'undefined'
){
if
(
pobj
.
baseInfo
.
contactsPhone
&&
pobj
.
base
Info
.
contactsPhone
!=
'undefined'
){
pobj
.
cacheInfo
.
cmpContactInfo
.
contactsPhone
=
pobj
.
delivery
Info
.
contactsPhone
;
pobj
.
cacheInfo
.
cmpContactInfo
.
contactsPhone
=
pobj
.
base
Info
.
contactsPhone
;
}
}
//更新状态给庄冰
//更新状态给庄冰
...
@@ -582,7 +585,7 @@ class DeliverybillCtl extends CtlBase {
...
@@ -582,7 +585,7 @@ class DeliverybillCtl extends CtlBase {
"actionType"
:
"updateOrderStatus"
,
"actionType"
:
"updateOrderStatus"
,
"identifyCode"
:
"ic-manage"
,
"identifyCode"
:
"ic-manage"
,
"messageBody"
:
{
"messageBody"
:
{
"orderNum"
:
pobj
.
businessMode
,
//订单编码
"orderNum"
:
pobj
.
deliverNumber
,
//订单编码
"status"
:
20
,
//已接单
"status"
:
20
,
//已接单
"deliverContent"
:
pobj
"deliverContent"
:
pobj
}
}
...
...
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
View file @
186ce0e4
...
@@ -213,6 +213,7 @@ class SchemeCtl extends CtlBase {
...
@@ -213,6 +213,7 @@ class SchemeCtl extends CtlBase {
pobj
.
baseInfo
.
isWhether
=
pobj
.
baseInfo
.
psSealSevCase
pobj
.
baseInfo
.
isWhether
=
pobj
.
baseInfo
.
psSealSevCase
}
}
//纳税人类型
//纳税人类型
if
(
pobj
.
baseInfo
.
psTaxpayerType
&&
pobj
.
baseInfo
.
psTaxpayerType
!=
'undefined'
){
if
(
pobj
.
baseInfo
.
psTaxpayerType
&&
pobj
.
baseInfo
.
psTaxpayerType
!=
'undefined'
){
pobj
.
baseInfo
.
taxpayerType
=
pobj
.
baseInfo
.
psTaxpayerType
;
pobj
.
baseInfo
.
taxpayerType
=
pobj
.
baseInfo
.
psTaxpayerType
;
...
@@ -272,10 +273,11 @@ class SchemeCtl extends CtlBase {
...
@@ -272,10 +273,11 @@ class SchemeCtl extends CtlBase {
}
}
//goumaisichang
//goumaisichang
if
(
pobj
.
baseInfo
.
buyDuration
&&
pobj
.
baseInfo
.
buyDuration
!=
'undefined'
){
// if (pobj.baseInfo.buyDuration && pobj.baseInfo.buyDuration != 'undefined'){
pobj
.
baseInfo
.
buyDuration
=
appconfig
.
pdict
.
buyDurationDict
[
pobj
.
baseInfo
.
buyDuration
];
// pobj.baseInfo.buyDuration = appconfig.pdict.buyDurationDict[pobj.baseInfo.buyDuration];
}
// }
if
(
pobj
.
baseInfo
.
isRenew
){
if
(
pobj
.
baseInfo
.
hasOwnProperty
(
"isRenew"
)){
pobj
.
baseInfo
.
isRenew
=
appconfig
.
pdict
.
isRenewDict
[
pobj
.
baseInfo
.
isRenew
];
pobj
.
baseInfo
.
isRenew
=
appconfig
.
pdict
.
isRenewDict
[
pobj
.
baseInfo
.
isRenew
];
}
}
else
{
else
{
...
@@ -372,6 +374,7 @@ class SchemeCtl extends CtlBase {
...
@@ -372,6 +374,7 @@ class SchemeCtl extends CtlBase {
pobj
.
clerkId
=
businessInfo
.
salesman_id
;
//业务员id
pobj
.
clerkId
=
businessInfo
.
salesman_id
;
//业务员id
pobj
.
clerkName
=
businessInfo
.
salesman_name
;
//业务员名称
pobj
.
clerkName
=
businessInfo
.
salesman_name
;
//业务员名称
pobj
.
clerkPhone
=
businessInfo
.
salesman_phone
;
//业务员联系电话
pobj
.
clerkPhone
=
businessInfo
.
salesman_phone
;
//业务员联系电话
//pobj.baseInfo.userName = businessInfo.business_info.userName;//
//pobj.currentStatus = appconfig.pdict.businessStatus[businessInfo.business_status];//商机状态即为方案状态
//pobj.currentStatus = appconfig.pdict.businessStatus[businessInfo.business_status];//商机状态即为方案状态
//pobj.statusReason = businessInfo.close_reason;//状态原因
//pobj.statusReason = businessInfo.close_reason;//状态原因
}
}
...
...
ic-deliver/app/base/db/impl/bizchance/bizoptDao.js
View file @
186ce0e4
...
@@ -87,6 +87,9 @@ class BizoptDao extends Dao {
...
@@ -87,6 +87,9 @@ class BizoptDao extends Dao {
if
(
qobj
.
businessName
&&
qobj
.
businessName
!=
'undefined'
){
if
(
qobj
.
businessName
&&
qobj
.
businessName
!=
'undefined'
){
obj
.
business_info
.
businessName
=
qobj
.
businessName
;
obj
.
business_info
.
businessName
=
qobj
.
businessName
;
}
}
if
(
qobj
.
UserName
&&
qobj
.
UserName
!=
'undefined'
){
obj
.
business_info
.
userName
=
qobj
.
UserNames
;
}
if
(
qobj
.
companyName
&&
qobj
.
companyName
!=
'undefined'
){
if
(
qobj
.
companyName
&&
qobj
.
companyName
!=
'undefined'
){
obj
.
business_info
.
companyName
=
qobj
.
companyName
;
obj
.
business_info
.
companyName
=
qobj
.
companyName
;
}
}
...
...
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
View file @
186ce0e4
...
@@ -100,7 +100,7 @@ class DeliverybillDao extends Dao {
...
@@ -100,7 +100,7 @@ class DeliverybillDao extends Dao {
var
obj
=
{
var
obj
=
{
"delivery_code"
:
qobj
.
deliverNumber
,
"delivery_code"
:
qobj
.
deliverNumber
,
"delivery_status"
:
qobj
.
deliverStatus
,
"delivery_status"
:
qobj
.
deliverStatus
,
"delivery_info"
:
qobj
.
delivery
Info
"delivery_info"
:
qobj
.
base
Info
};
};
if
(
qobj
.
businessMode
&&
qobj
.
businessMode
!=
'undefined'
){
if
(
qobj
.
businessMode
&&
qobj
.
businessMode
!=
'undefined'
){
obj
.
demand_code
=
qobj
.
businessMode
;
obj
.
demand_code
=
qobj
.
businessMode
;
...
...
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