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
4ec244fa
Commit
4ec244fa
authored
Mar 17, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
7a272f26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
xgg-admin/app/base/controller/impl/invoice/invoiceCtl.js
+15
-1
No files found.
xgg-admin/app/base/controller/impl/invoice/invoiceCtl.js
View file @
4ec244fa
...
...
@@ -4,6 +4,7 @@ class InvoiceCtl extends CtlBase {
constructor
()
{
super
();
this
.
invoiceSve
=
system
.
getObject
(
"service.invoice.invoiceSve"
);
this
.
userSve
=
system
.
getObject
(
"service.uc.userSve"
);
}
/**
...
...
@@ -68,7 +69,20 @@ class InvoiceCtl extends CtlBase {
*/
async
handleStatus
(
pobj
,
pobj2
,
req
)
{
try
{
if
(
pobj
.
status
==
"1030"
){
if
(
pobj
.
status
==
"1010"
){
//平台分配业务员
//1.获取业务员的基本id和bd_path
let
_user
=
await
this
.
userSve
.
queryById
({
id
:
pobj
.
bd_id
});
if
(
!
_user
||
_user
.
status
!=
0
){
return
system
.
getResult
(
null
,
`业务员不存在`
);
}
if
(
!
_user
.
data
||
!
_user
.
data
.
orgpath
){
return
system
.
getResult
(
null
,
`业务员信息错误 请联系管理员`
);
}
pobj
.
bd_path
=
_user
.
data
.
orgpath
;
}
else
if
(
pobj
.
status
==
"1030"
){
//交付商分配
pobj
.
deliver_delive
=
system
.
y2f
(
pobj
.
deliver_delive
);
}
return
await
this
.
invoiceSve
.
handleStatus
(
pobj
);
...
...
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