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
f1e268da
Commit
f1e268da
authored
Jun 16, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c2b0472f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletions
+20
-1
ic-deliver/app/base/controller/ctl.base.js
+1
-0
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
+4
-0
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
+4
-1
ic-deliver/app/base/service/impl/bizchance/deliverybillSve.js
+11
-0
No files found.
ic-deliver/app/base/controller/ctl.base.js
View file @
f1e268da
...
@@ -82,6 +82,7 @@ class CtlBase {
...
@@ -82,6 +82,7 @@ class CtlBase {
}
}
if
(
req
.
xctx
.
userid
)
{
//在请求传递数据对象注入公司id
if
(
req
.
xctx
.
userid
)
{
//在请求传递数据对象注入公司id
pobj
.
userid
=
req
.
xctx
.
userid
;
pobj
.
userid
=
req
.
xctx
.
userid
;
pobj
.
username
=
req
.
xctx
.
username
}
}
pobj
.
bizpath
=
req
.
xctx
.
bizpath
;
pobj
.
bizpath
=
req
.
xctx
.
bizpath
;
}
}
...
...
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
f1e268da
...
@@ -31,6 +31,10 @@ class BizOptCtl extends CtlBase {
...
@@ -31,6 +31,10 @@ class BizOptCtl extends CtlBase {
robj
.
business_info_phone
=
element
.
business_info
.
contactsPhone
;
//联系电话
robj
.
business_info_phone
=
element
.
business_info
.
contactsPhone
;
//联系电话
robj
.
business_status
=
element
.
business_status
;
//商机当前状态
robj
.
business_status
=
element
.
business_status
;
//商机当前状态
robj
.
updated_at
=
this
.
timeFormat
(
element
.
updated_at
);
//商机当前状态日期
robj
.
updated_at
=
this
.
timeFormat
(
element
.
updated_at
);
//商机当前状态日期
robj
.
servicerName
=
element
.
facilitator_name
;
robj
.
sourceName
=
element
.
source_name
;
//渠道来源
rarr
.
push
(
robj
);
rarr
.
push
(
robj
);
});
});
rs
.
results
.
rows
=
rarr
;
rs
.
results
.
rows
=
rarr
;
...
...
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
f1e268da
...
@@ -27,6 +27,7 @@ class DeliverybillCtl extends CtlBase {
...
@@ -27,6 +27,7 @@ class DeliverybillCtl extends CtlBase {
robj
.
businessType
=
element
.
product_code
;
//产品编码
robj
.
businessType
=
element
.
product_code
;
//产品编码
robj
.
sourceName
=
element
.
source_name
;
//渠道来源
robj
.
sourceName
=
element
.
source_name
;
//渠道来源
robj
.
channelNumber
=
element
.
source_number
;
//渠道编码
robj
.
channelNumber
=
element
.
source_number
;
//渠道编码
robj
.
servicerName
=
element
.
facilitator_name
;
robj
.
baseInfo
=
element
.
delivery_info
;
//交付单详情
robj
.
baseInfo
=
element
.
delivery_info
;
//交付单详情
robj
.
payStatus
=
element
.
delivery_info
.
payStatus
;
//交付状态
robj
.
payStatus
=
element
.
delivery_info
.
payStatus
;
//交付状态
robj
.
costPrice
=
element
.
cost_price
;
//成本
robj
.
costPrice
=
element
.
cost_price
;
//成本
...
@@ -226,7 +227,9 @@ class DeliverybillCtl extends CtlBase {
...
@@ -226,7 +227,9 @@ class DeliverybillCtl extends CtlBase {
}
}
async
settleApply
(
p
,
q
,
req
){
async
settleApply
(
p
,
q
,
req
){
let
ids
=
p
.
ids
let
rtn
=
await
this
.
service
.
settleApply
(
ids
,
req
.
userid
,
req
.
username
)
return
system
.
getResult
({})
}
}
/*根据商机编号插入交付单信息*/
/*根据商机编号插入交付单信息*/
async
insertInfo
(
pobj
,
qobj
,
req
){
//队列的时候用
async
insertInfo
(
pobj
,
qobj
,
req
){
//队列的时候用
...
...
ic-deliver/app/base/service/impl/bizchance/deliverybillSve.js
View file @
f1e268da
...
@@ -6,6 +6,17 @@ class DeliverybillService extends ServiceBase {
...
@@ -6,6 +6,17 @@ class DeliverybillService extends ServiceBase {
constructor
()
{
constructor
()
{
super
(
"bizchance"
,
ServiceBase
.
getDaoName
(
DeliverybillService
));
super
(
"bizchance"
,
ServiceBase
.
getDaoName
(
DeliverybillService
));
}
}
async
settleApply
(
ids
,
uid
,
uname
){
var
self
=
this
return
this
.
db
.
transaction
(
async
function
(
t
){
//先按照ids查询出交付单的合计服务成本
//生成结算单,结算单状态为待审核
//然后按照ids更新交付单的状态为结算中,更新结算单的id到
});
}
async
findAndCountAll
(
obj
)
{
async
findAndCountAll
(
obj
)
{
var
self
=
this
;
var
self
=
this
;
const
apps
=
await
this
.
dao
.
findAndCountAll
(
obj
);
const
apps
=
await
this
.
dao
.
findAndCountAll
(
obj
);
...
...
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