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
85d0ce3a
Commit
85d0ce3a
authored
Sep 21, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 隔绝产品
parent
94a14b38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
39 deletions
+39
-39
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
+39
-39
No files found.
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
View file @
85d0ce3a
...
@@ -40,7 +40,7 @@ class DeliverybillDao extends Dao {
...
@@ -40,7 +40,7 @@ class DeliverybillDao extends Dao {
//不是来自平台前端查询
//不是来自平台前端查询
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
.
indexOf
(
"pmx"
)
<
0
)
{
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
.
indexOf
(
"pmx"
)
<
0
)
{
qc
.
where
.
product_code
=
qc
.
where
.
product_code
||
{
qc
.
where
.
product_code
=
qc
.
where
.
product_code
||
{
[
this
.
db
.
Op
.
notIn
]:
[
"ICP"
,
"EDI"
,
"ICPANNUALREPORT"
,
"EDIANNUALREPORT"
]
[
this
.
db
.
Op
.
notIn
]:
[
"ICP"
,
"EDI"
,
"ICPANNUALREPORT"
,
"EDIANNUALREPORT"
,
"bookkeeping"
]
}
}
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
!=
""
)
{
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
!=
""
)
{
if
(
qobj
.
bizpath
.
indexOf
(
"myDeliver"
)
>
0
)
{
//说明是从商机列表过来的
if
(
qobj
.
bizpath
.
indexOf
(
"myDeliver"
)
>
0
)
{
//说明是从商机列表过来的
...
@@ -84,43 +84,43 @@ class DeliverybillDao extends Dao {
...
@@ -84,43 +84,43 @@ class DeliverybillDao extends Dao {
return
await
this
.
updateByWhere
(
setobj
,
whereobj
,
t
);
return
await
this
.
updateByWhere
(
setobj
,
whereobj
,
t
);
}
}
/*更新业务员/交付员信息*/
/*更新业务员/交付员信息*/
async
updateSalesmanInfoByDeliverCode
(
qobj
,
t
)
{
async
updateSalesmanInfoByDeliverCode
(
qobj
,
t
)
{
var
setobj
=
{};
var
setobj
=
{};
if
(
qobj
.
type
==
"salesman"
)
{
if
(
qobj
.
type
==
"salesman"
)
{
if
(
qobj
.
salesmanId
&&
qobj
.
salesmanId
!=
'undefined'
)
{
if
(
qobj
.
salesmanId
&&
qobj
.
salesmanId
!=
'undefined'
)
{
setobj
.
salesman_id
=
qobj
.
salesmanId
;
setobj
.
salesman_id
=
qobj
.
salesmanId
;
};
};
if
(
qobj
.
salesmanName
&&
qobj
.
salesmanName
!=
'undefined'
)
{
if
(
qobj
.
salesmanName
&&
qobj
.
salesmanName
!=
'undefined'
)
{
setobj
.
salesman_name
=
qobj
.
salesmanName
;
setobj
.
salesman_name
=
qobj
.
salesmanName
;
};
};
if
(
qobj
.
salesmanOpcode
&&
qobj
.
salesmanOpcode
!=
'undefined'
)
{
if
(
qobj
.
salesmanOpcode
&&
qobj
.
salesmanOpcode
!=
'undefined'
)
{
setobj
.
salesman_opcode
=
qobj
.
salesmanOpcode
;
setobj
.
salesman_opcode
=
qobj
.
salesmanOpcode
;
};
};
}
}
if
(
qobj
.
type
==
"deliverman"
)
{
if
(
qobj
.
type
==
"deliverman"
)
{
if
(
qobj
.
deliverymanId
&&
qobj
.
deliverymanId
!=
'undefined'
)
{
if
(
qobj
.
deliverymanId
&&
qobj
.
deliverymanId
!=
'undefined'
)
{
setobj
.
delivery_man_id
=
qobj
.
deliverymanId
;
setobj
.
delivery_man_id
=
qobj
.
deliverymanId
;
};
};
if
(
qobj
.
deliverymanName
&&
qobj
.
deliverymanName
!=
'undefined'
)
{
if
(
qobj
.
deliverymanName
&&
qobj
.
deliverymanName
!=
'undefined'
)
{
setobj
.
delivery_man_name
=
qobj
.
deliverymanName
;
setobj
.
delivery_man_name
=
qobj
.
deliverymanName
;
};
};
if
(
qobj
.
deliverymanOpcode
&&
qobj
.
deliverymanOpcode
!=
'undefined'
)
{
if
(
qobj
.
deliverymanOpcode
&&
qobj
.
deliverymanOpcode
!=
'undefined'
)
{
setobj
.
delivery_man_opcode
=
qobj
.
deliverymanOpcode
;
setobj
.
delivery_man_opcode
=
qobj
.
deliverymanOpcode
;
};
};
}
}
// if (qobj.salesmanPhone && qobj.salesmanPhone != 'undefined') {
// if (qobj.salesmanPhone && qobj.salesmanPhone != 'undefined') {
// setobj.salesman_phone = qobj.salesmanPhone;
// setobj.salesman_phone = qobj.salesmanPhone;
// };
// };
if
(
qobj
.
facilitatorId
&&
qobj
.
facilitatorId
!=
'undefined'
)
{
if
(
qobj
.
facilitatorId
&&
qobj
.
facilitatorId
!=
'undefined'
)
{
setobj
.
facilitator_id
=
qobj
.
facilitatorId
;
setobj
.
facilitator_id
=
qobj
.
facilitatorId
;
};
};
if
(
qobj
.
facilitatorName
&&
qobj
.
facilitatorName
!=
'undefined'
)
{
if
(
qobj
.
facilitatorName
&&
qobj
.
facilitatorName
!=
'undefined'
)
{
setobj
.
facilitator_name
=
qobj
.
facilitatorName
;
setobj
.
facilitator_name
=
qobj
.
facilitatorName
;
};
};
var
whereobj
=
{
"delivery_code"
:
qobj
.
deliverNumber
};
var
whereobj
=
{
"delivery_code"
:
qobj
.
deliverNumber
};
return
await
this
.
updateByWhere
(
setobj
,
whereobj
,
t
);
return
await
this
.
updateByWhere
(
setobj
,
whereobj
,
t
);
}
}
/*根据交付单更新交付材料信息*/
/*根据交付单更新交付材料信息*/
async
updateInfoByDeliverCode
(
qobj
,
t
)
{
//公司注册、云上园区注册时填写交付材料
async
updateInfoByDeliverCode
(
qobj
,
t
)
{
//公司注册、云上园区注册时填写交付材料
...
@@ -182,7 +182,7 @@ class DeliverybillDao extends Dao {
...
@@ -182,7 +182,7 @@ class DeliverybillDao extends Dao {
if
(
qobj
.
clerkName
&&
qobj
.
clerkName
!=
'undefined'
)
{
if
(
qobj
.
clerkName
&&
qobj
.
clerkName
!=
'undefined'
)
{
obj
.
delivery_man_name
=
qobj
.
clerkName
;
obj
.
delivery_man_name
=
qobj
.
clerkName
;
}
}
if
(
qobj
.
salesmanName
&&
qobj
.
salesmanName
!=
undefined
){
if
(
qobj
.
salesmanName
&&
qobj
.
salesmanName
!=
undefined
)
{
obj
.
salesman_name
=
qobj
.
salesmanName
;
obj
.
salesman_name
=
qobj
.
salesmanName
;
}
}
if
(
qobj
.
salesmanPhone
&&
qobj
.
salesmanPhone
!=
'undefined'
)
{
if
(
qobj
.
salesmanPhone
&&
qobj
.
salesmanPhone
!=
'undefined'
)
{
...
...
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