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
62371888
Commit
62371888
authored
May 20, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
f21e1819
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
29 deletions
+29
-29
xgg-deliver/app/base/controller/impl/order/orderCtl.js
+28
-29
xgg-deliver/app/config/routes/web.js
+1
-0
No files found.
xgg-deliver/app/base/controller/impl/order/orderCtl.js
View file @
62371888
...
...
@@ -533,36 +533,35 @@ class OrderCtl extends CtlBase {
contact_mobile:"",
*/
async
addSourceOrder
(
pobj
,
pobj2
,
req
)
{
if
(
!
pobj
.
product_id
)
{
return
system
.
getResult
(
null
,
`参数错误 产品ID不能为空`
);
}
if
(
!
pobj
.
contact_mobile
)
{
return
system
.
getResult
(
null
,
`参数错误 联系电话不能为空`
);
}
if
(
!
pobj
.
customer_name
)
{
return
system
.
getResult
(
null
,
`参数错误 客户名称不能为空`
);
}
if
(
!
pobj
.
saas_id
){
return
system
.
getResult
(
null
,
`参数错误 saasId不能为空`
)
}
if
(
!
pobj
.
chooseItems
){
pobj
.
chooseItems
=
[
"10020200"
,
"10020300"
,
"10020400"
,
"10020500"
,
"10020600"
,
"10020700"
];
}
if
(
!
pobj
.
chooseItems
.
includes
(
"10020200"
)){
pobj
.
chooseItems
.
push
(
"10020200"
);
}
pobj
.
service_items
=
pobj
.
chooseItems
;
pobj
.
source_id
=
pobj
.
source_id
||
'1002'
;
pobj
.
notes
=
pobj
.
desc
||
"工商注册,刻章,银行卡户,税务报到,建账"
;
if
(
!
pobj
.
deliverId
){
return
system
.
getResult
(
null
,
`请重新登录`
);
}
pobj
.
deliver_id
=
pobj
.
deliverId
;
pobj
.
deliver_name
=
pobj
.
deliverName
||
""
;
pobj
.
delier_user_id
=
pobj
.
delier_user_id
||
""
;
pobj
.
deliver_user_path
=
pobj
.
deliver_user_path
||
""
;
try
{
if
(
!
pobj
.
product_id
)
{
return
system
.
getResult
(
null
,
`参数错误 产品ID不能为空`
);
}
if
(
!
pobj
.
contact_mobile
)
{
return
system
.
getResult
(
null
,
`参数错误 联系电话不能为空`
);
}
if
(
!
pobj
.
customer_name
)
{
return
system
.
getResult
(
null
,
`参数错误 客户名称不能为空`
);
}
if
(
!
pobj
.
saas_id
){
return
system
.
getResult
(
null
,
`参数错误 saasId不能为空`
)
}
if
(
!
pobj
.
chooseItems
){
pobj
.
chooseItems
=
[
"10020200"
,
"10020300"
,
"10020400"
,
"10020500"
,
"10020600"
,
"10020700"
];
}
if
(
!
pobj
.
chooseItems
.
includes
(
"10020200"
)){
pobj
.
chooseItems
.
push
(
"10020200"
);
}
pobj
.
service_items
=
pobj
.
chooseItems
;
pobj
.
source_id
=
pobj
.
source_id
||
'1002'
;
pobj
.
notes
=
pobj
.
desc
||
"工商注册,刻章,银行卡户,税务报到,建账"
;
if
(
!
pobj
.
deliver_id
){
return
system
.
getResult
(
null
,
`请重新登录`
);
}
pobj
.
deliver_id
=
pobj
.
deliver_id
;
pobj
.
deliver_name
=
pobj
.
deliverName
||
""
;
pobj
.
delier_user_id
=
pobj
.
delier_user_id
||
""
;
pobj
.
deliver_user_path
=
pobj
.
deliver_user_path
||
""
;
return
await
this
.
orderSve
.
addSourceOrder
(
pobj
);
}
catch
(
error
)
{
console
.
log
(
error
);
...
...
xgg-deliver/app/config/routes/web.js
View file @
62371888
...
...
@@ -23,6 +23,7 @@ module.exports = function (app) {
req
.
url
.
indexOf
(
"common/metaCtl/getApiDoc"
)
>
0
||
req
.
url
.
indexOf
(
"common/captchaCtl/captcha"
)
>
0
||
req
.
url
.
indexOf
(
"invoice/invoiceCtl/jizhang"
)
>
0
||
req
.
url
.
indexOf
(
"order/orderCtl/addSourceOrder"
)
>
0
||
req
.
url
.
indexOf
(
"getRsConfig"
)
>
0
)
{
if
(
jsonUser
)
{
req
.
loginUser
=
jsonUser
;
...
...
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