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
509de5d8
Commit
509de5d8
authored
Mar 31, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmconfirm
parent
bd7011c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+16
-7
No files found.
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
509de5d8
...
...
@@ -1215,14 +1215,14 @@ class OrderInfoService extends ServiceBase {
}
//获取交付单信息
var
orderdeliveryRes
=
await
this
.
getOrderDelivery
(
orderNo
);
if
(
!
orderdeliveryRes
||
!
orderdeliveryRes
.
length
<
1
)
{
if
(
!
orderdeliveryRes
||
orderdeliveryRes
.
length
<
1
)
{
return
system
.
getResultFail
(
-
104
,
"未知订单交付信息"
);
}
var
orderdelivery
=
orderdelivery
[
0
];
var
orderdelivery
=
orderdelivery
Res
[
0
];
var
deliveryContent
=
orderdelivery
.
deliveryContent
;
if
(
!
deliveryContent
||
!
deliveryContent
.
deliveryStatus
||
deliveryContent
.
deliveryStatus
!=
"dqrfa"
)
{
return
system
.
getResultFail
(
-
105
,
"方案确认失败,该方案交付状态为"
+
ordertmproduct
.
deliveryStatusName
);
}
//
if (!deliveryContent || !deliveryContent.deliveryStatus || deliveryContent.deliveryStatus != "dqrfa") {
// return system.getResultFail(-105, "方案确认失败,方案交付状态错误"
);
//
}
if
(
!
deliveryContent
.
deliveryStatusList
){
deliveryContent
.
deliveryStatusList
=
[];
}
...
...
@@ -1236,6 +1236,9 @@ class OrderInfoService extends ServiceBase {
var
orderInfoObj
=
{
id
:
orderinfo
.
id
};
if
(
ab
.
notes
){
orderInfoObj
[
"opNotes"
]
=
ab
.
notes
;
}
if
(
isConfirm
==
"0"
)
{
if
(
!
ab
.
notes
)
{
return
system
.
getResultFail
(
-
106
,
"方案确认失败,不通过原因不能为空"
);
...
...
@@ -1254,7 +1257,7 @@ class OrderInfoService extends ServiceBase {
if
(
isConfirm
==
"1"
)
{
deliveryContent
[
"deliveryStatus"
]
=
"dsh"
;
deliveryContent
[
"deliveryStatusName"
]
=
"待审核"
;
deliveryContent
[
"opNotes"
]
=
obj
.
notes
||
""
;
deliveryContent
[
"opNotes"
]
=
ab
.
notes
||
""
;
orderLog
[
"opContent"
]
=
"商标方案确认通过"
;
deliveryContent
.
deliveryStatusList
.
push
({
deliveryStatus
:
"dsh"
,
...
...
@@ -1267,7 +1270,13 @@ class OrderInfoService extends ServiceBase {
self
.
putOrderDelivery
(
deliveryContent
,
orderNo
);
//修改订单交付信息
await
self
.
dao
.
update
(
orderInfoObj
,
t
);
//修改订单信息
await
self
.
flowlogDao
.
create
(
orderLog
,
t
);
//添加流程信息
return
system
.
getResultSuccess
();
var
pushObj
=
{
//推送参数
serviceNo
:
deliveryContent
.
serviceNo
,
isConfirm
:
isConfirm
,
channelCode
:
deliveryContent
.
channelCode
,
notes
:
ab
.
notes
||
""
};
return
system
.
getResultSuccess
(
pushObj
);
})
}
...
...
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