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
efece65b
Commit
efece65b
authored
Aug 08, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商机验重
parent
49968651
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
+28
-18
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
+1
-1
No files found.
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
efece65b
...
...
@@ -233,25 +233,35 @@ class BizOptCtl extends CtlBase {
var
pobj
=
nobj
.
d
;
if
(
pobj
.
businessMode
&&
pobj
.
businessMode
!=
'undefined'
&&
pobj
.
businessType
&&
pobj
.
businessType
!=
'undefined'
)
{
try
{
//pobj.currentStatus = "beforeSubmission";//加上当前状态为待提交方案
// pobj.channelSource = "tencentCloud";//目前渠道只有腾讯
// pobj.sourceNumber = "1111111";
pobj
.
businessType
=
appconfig
.
pdict
.
dyDict
[
pobj
.
businessType
];
var
buInfo
=
await
this
.
service
.
insertInfo
(
pobj
);
var
logInfo
=
{
"flowType"
:
"BIZ"
,
"flowId"
:
buInfo
.
id
,
"statusCode"
:
pobj
.
currentStatus
,
"clerkName"
:
pobj
.
clerkName
,
"clerkId"
:
pobj
.
salesmanId
const
businessData
=
await
this
.
service
.
findOne
({
demand_code
:
pobj
.
businessMode
});
if
(
businessData
)
{
return
{
"status"
:
1
,
//1代表成功,否则失败
"msg"
:
"已处理成功!"
,
"data"
:
""
,
"requestId"
:
""
}
}
else
{
//pobj.currentStatus = "beforeSubmission";//加上当前状态为待提交方案
// pobj.channelSource = "tencentCloud";//目前渠道只有腾讯
// pobj.sourceNumber = "1111111";
pobj
.
businessType
=
appconfig
.
pdict
.
dyDict
[
pobj
.
businessType
];
var
buInfo
=
await
this
.
service
.
insertInfo
(
pobj
);
var
logInfo
=
{
"flowType"
:
"BIZ"
,
"flowId"
:
buInfo
.
id
,
"statusCode"
:
pobj
.
currentStatus
,
"clerkName"
:
pobj
.
clerkName
,
"clerkId"
:
pobj
.
salesmanId
}
await
this
.
logService
.
insertInfo
(
logInfo
);
//插入状态日至表
return
{
"status"
:
1
,
//1代表成功,否则失败
"message"
:
"操作成功"
,
"data"
:
""
,
"requestId"
:
""
};
}
await
this
.
logService
.
insertInfo
(
logInfo
);
//插入状态日至表
return
{
"status"
:
1
,
//1代表成功,否则失败
"message"
:
"操作成功"
,
"data"
:
""
,
"requestId"
:
""
};
}
catch
(
error
)
{
console
.
log
(
"TTTTTTTTTTTTTTTTTTTTTTT"
);
...
...
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
efece65b
...
...
@@ -699,7 +699,7 @@ class DeliverybillCtl extends CtlBase {
try
{
var
res
=
await
this
.
service
.
findInfoByDeliverCode
(
pobj
);
if
(
res
)
{
if
(
res
.
delivery_status
!=
'received'
){
//如果数据库中状态是已接单,说明是第一次提交文件,状态为传过了的状态;如果不是已接单
,说明是客户驳回后重新提交的文件,状态改为已驳回
if
(
res
.
delivery_status
!=
'received'
&&
res
.
delivery_status
!=
'userUploadWait'
)
{
//如果数据库中状态是已接单、待用户上传,说明是第一次提交文件,状态为传过了的状态;如果不是已接单、待用户上传
,说明是客户驳回后重新提交的文件,状态改为已驳回
pobj
.
deliverStatus
=
"userConfirmationReject"
;
//状态改成驳回,
}
await
this
.
service
.
updateInfoByDeliverCode
(
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