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
8c5bf03e
Commit
8c5bf03e
authored
Jun 15, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
89720cd0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
1 deletions
+81
-1
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
+6
-1
ic-deliver/app/base/db/models/delivery/delivery_bill.js
+5
-0
ic-deliver/app/base/db/models/delivery/settle_bill.js
+70
-0
No files found.
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
View file @
8c5bf03e
...
...
@@ -9,6 +9,12 @@ class DeliverybillDao extends Dao {
qc
.
raw
=
true
;
//检查查询的用户所属公司是否是平台运营公司-1,如果是则不添加公司查询条件, 不添加路径条件,返回所有数据
if
(
qobj
.
company_id
==
1
)
{
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
!=
""
)
{
if
(
qobj
.
bizpath
.
indexOf
(
"pmxdeliverrequest"
)
>
0
)
{
//说明是从商机列表过来的
qw
[
"delivery_status"
]
=
"success"
;
qw
[
"settle_status"
]
=
"waittosettle"
;
}
}
return
qw
}
else
{
//需要添加公司查询条件
...
...
@@ -27,7 +33,6 @@ class DeliverybillDao extends Dao {
qw
[
"salesman_id"
]
=
qobj
.
userid
;
}
}
}
}
return
qw
;
...
...
ic-deliver/app/base/db/models/delivery/delivery_bill.js
View file @
8c5bf03e
...
...
@@ -50,6 +50,11 @@ module.exports = (db, DataTypes) => {
allowNull
:
false
,
type
:
DataTypes
.
STRING
},
settle_status
:
{
// 服务单流转状态
allowNull
:
false
,
type
:
DataTypes
.
STRING
,
defaultValue
:
'waittosettle'
},
selling_price
:
{
//售价
allowNull
:
false
,
type
:
DataTypes
.
INTEGER
...
...
ic-deliver/app/base/db/models/delivery/settle_bill.js
0 → 100644
View file @
8c5bf03e
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
appconfig
=
system
.
getSysConfig
();
/**
* 交付单表
*/
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"settlebill"
,
{
code
:
{
//交付单编号
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
audit_status
:
{
// 审核状态
allowNull
:
false
,
type
:
DataTypes
.
STRING
,
defaultValue
:
'waittoaudit'
},
settle_amount
:
{
//结算金额
allowNull
:
true
,
type
:
DataTypes
.
INTEGER
},
isPayed
:{
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
false
}
},
{
paranoid
:
true
,
//真的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
tableName
:
'fi_settlebill'
,
validate
:
{
},
indexes
:
[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
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