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
81b648af
Commit
81b648af
authored
Jun 16, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
8c5bf03e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
+3
-2
ic-deliver/app/base/controller/impl/bizchance/settlebillCtl.js
+16
-0
ic-deliver/app/base/db/impl/common/connection.js
+3
-0
ic-deliver/app/base/db/models/delivery/settlebill.js
+0
-0
No files found.
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
81b648af
...
@@ -30,6 +30,7 @@ class DeliverybillCtl extends CtlBase {
...
@@ -30,6 +30,7 @@ class DeliverybillCtl extends CtlBase {
robj
.
baseInfo
=
element
.
delivery_info
;
//交付单详情
robj
.
baseInfo
=
element
.
delivery_info
;
//交付单详情
robj
.
payStatus
=
element
.
delivery_info
.
payStatus
;
//交付状态
robj
.
payStatus
=
element
.
delivery_info
.
payStatus
;
//交付状态
robj
.
costPrice
=
element
.
cost_price
;
//成本
robj
.
costPrice
=
element
.
cost_price
;
//成本
robj
.
settleStatus
=
element
.
settle_status
;
if
(
robj
.
businessName
==
'公司注册'
){
if
(
robj
.
businessName
==
'公司注册'
){
if
(
robj
.
baseInfo
.
isWhether
==
"是"
||
robj
.
baseInfo
.
isVirtual
==
"是"
){
//如果有刻章需求或者是虚拟地址
if
(
robj
.
baseInfo
.
isWhether
==
"是"
||
robj
.
baseInfo
.
isVirtual
==
"是"
){
//如果有刻章需求或者是虚拟地址
robj
.
relatedProducts
=
'有'
;
robj
.
relatedProducts
=
'有'
;
...
@@ -198,9 +199,9 @@ class DeliverybillCtl extends CtlBase {
...
@@ -198,9 +199,9 @@ class DeliverybillCtl extends CtlBase {
}
}
async
settleApply
(
p
,
q
,
req
){
}
/*根据商机编号插入交付单信息*/
/*根据商机编号插入交付单信息*/
async
insertInfo
(
pobj
,
qobj
,
req
){
//队列的时候用
async
insertInfo
(
pobj
,
qobj
,
req
){
//队列的时候用
if
(
pobj
.
businessMode
&&
pobj
.
businessMode
!=
'undefined'
&&
pobj
.
schemeNumber
&&
pobj
.
schemeNumber
!=
'undefined'
if
(
pobj
.
businessMode
&&
pobj
.
businessMode
!=
'undefined'
&&
pobj
.
schemeNumber
&&
pobj
.
schemeNumber
!=
'undefined'
...
...
ic-deliver/app/base/controller/impl/bizchance/settlebillCtl.js
0 → 100644
View file @
81b648af
var
system
=
require
(
"../../../system"
);
const
http
=
require
(
"http"
);
const
querystring
=
require
(
'querystring'
);
var
settings
=
require
(
"../../../../config/settings"
);
const
CtlBase
=
require
(
"../../ctl.base"
);
const
moment
=
require
(
'moment'
);
const
appconfig
=
system
.
getSysConfig
();
class
SettleBillCtl
extends
CtlBase
{
constructor
()
{
super
(
"bizchance"
,
CtlBase
.
getServiceName
(
BizOptCtl
));
this
.
deliverService
=
system
.
getObject
(
"service.bizchance.deliverybillSve"
);
}
}
module
.
exports
=
SettleBillCtl
;
ic-deliver/app/base/db/impl/common/connection.js
View file @
81b648af
...
@@ -67,6 +67,9 @@ class DbFactory {
...
@@ -67,6 +67,9 @@ class DbFactory {
this
.
db
.
models
.
scheme
.
belongsTo
(
this
.
db
.
models
.
bizopt
,
{
constraints
:
false
,
});
this
.
db
.
models
.
scheme
.
belongsTo
(
this
.
db
.
models
.
bizopt
,
{
constraints
:
false
,
});
this
.
db
.
models
.
bizopt
.
hasOne
(
this
.
db
.
models
.
scheme
,
{
constraints
:
false
,
});
this
.
db
.
models
.
bizopt
.
hasOne
(
this
.
db
.
models
.
scheme
,
{
constraints
:
false
,
});
//交付单关联结算单
this
.
db
.
models
.
deliverybill
.
belongsTo
(
this
.
db
.
models
.
settlebill
,
{
constraints
:
false
,
});
}
}
//async getCon(){,用于使用替换table模型内字段数据使用
//async getCon(){,用于使用替换table模型内字段数据使用
getCon
()
{
getCon
()
{
...
...
ic-deliver/app/base/db/models/delivery/settle
_
bill.js
→
ic-deliver/app/base/db/models/delivery/settlebill.js
View file @
81b648af
File moved
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