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
8295fbd6
Commit
8295fbd6
authored
Jun 02, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
a01b79ad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
24 deletions
+68
-24
ic-deliver/app/base/db/models/delivery/business_opportunity.js
+7
-7
ic-deliver/app/base/db/models/delivery/delivery_bill.js
+23
-12
ic-deliver/app/base/db/models/delivery/scheme.js
+33
-4
ic-deliver/app/base/db/models/delivery/status_log.js
+5
-1
No files found.
ic-deliver/app/base/db/models/delivery/business_opportunity.js
View file @
8295fbd6
...
@@ -26,11 +26,11 @@ module.exports = (db, DataTypes) => {
...
@@ -26,11 +26,11 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
source
:
{
//渠道来源
source
_name
:
{
//渠道来源
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
address
:
{
// 区域地址
service_
address
:
{
// 区域地址
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
...
@@ -38,12 +38,12 @@ module.exports = (db, DataTypes) => {
...
@@ -38,12 +38,12 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
service_company_id
:
{
// 公司
id
facilitator_id
:
{
// 服务商
id
allowNull
:
fals
e
,
allowNull
:
tru
e
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
service_company_name
:
{
// 公司
名称
facilitator_name
:
{
// 服务商
名称
allowNull
:
fals
e
,
allowNull
:
tru
e
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
salesman_opcode
:
{
// 组织架构路径
salesman_opcode
:
{
// 组织架构路径
...
@@ -58,7 +58,7 @@ module.exports = (db, DataTypes) => {
...
@@ -58,7 +58,7 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
salesman_phone
_number
:
{
// 业务员联系方式
salesman_phone
:
{
// 业务员联系方式
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
}
}
...
...
ic-deliver/app/base/db/models/delivery/delivery_bill.js
View file @
8295fbd6
...
@@ -7,11 +7,23 @@ const appconfig = system.getSysConfig();
...
@@ -7,11 +7,23 @@ const appconfig = system.getSysConfig();
module
.
exports
=
(
db
,
DataTypes
)
=>
{
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"delivery_bill"
,
{
return
db
.
define
(
"delivery_bill"
,
{
delivery_code
:
{
//交付单编号
delivery_code
:
{
//交付单编号
allowNull
:
fals
e
,
allowNull
:
tru
e
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
source_number
:
{
// 来源单号 (订单编号)
source_number
:
{
// 来源单号
allowNull
:
false
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
source_name
:
{
// 渠道名称
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
demand_code
:
{
// 商机编号
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
scheme_number
:
{
// 方案编号
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
product_code
:
{
// 产品编码
product_code
:
{
// 产品编码
...
@@ -22,15 +34,15 @@ module.exports = (db, DataTypes) => {
...
@@ -22,15 +34,15 @@ module.exports = (db, DataTypes) => {
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
address
:
{
// 区域地址
service_
address
:
{
// 区域地址
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
service
_info
:
{
//服务概况
delivery
_info
:
{
//服务概况
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
JSON
type
:
DataTypes
.
JSON
},
},
status
:
{
// 服务单流转状态
delivery_
status
:
{
// 服务单流转状态
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
...
@@ -46,13 +58,12 @@ module.exports = (db, DataTypes) => {
...
@@ -46,13 +58,12 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
facilitator_id
:
{
// 服务商id
service_company_id
:
{
// 公司id
allowNull
:
true
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
service_company_name
:
{
// 公司
名称
facilitator_name
:
{
// 服务商
名称
allowNull
:
fals
e
,
allowNull
:
tru
e
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
salesman_opcode
:
{
// 组织架构路径
salesman_opcode
:
{
// 组织架构路径
...
@@ -67,7 +78,7 @@ module.exports = (db, DataTypes) => {
...
@@ -67,7 +78,7 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
salesman_phone
_number
:
{
// 业务员联系方式
salesman_phone
:
{
// 业务员联系方式
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
}
}
...
...
ic-deliver/app/base/db/models/delivery/scheme.js
View file @
8295fbd6
...
@@ -12,14 +12,14 @@ module.exports = (db, DataTypes) => {
...
@@ -12,14 +12,14 @@ module.exports = (db, DataTypes) => {
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
scheme_number
:
{
//方案编号
scheme_number
:
{
//方案编号
allowNull
:
fals
e
,
allowNull
:
tru
e
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
scheme_info
:
{
//方案详情
scheme_info
:
{
//方案详情
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
JSON
type
:
DataTypes
.
JSON
},
},
status
:
{
//方案状态
s
cheme_s
tatus
:
{
//方案状态
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
...
@@ -27,10 +27,39 @@ module.exports = (db, DataTypes) => {
...
@@ -27,10 +27,39 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
allowNull
:
true
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
remark
:
{
//备注
remark_info
:
{
//备注
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
bizopt_id
:
{
//商机id
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
facilitator_id
:
{
//服务商id
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
facilitator_name
:
{
//服务商名称
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
salesman_opcode
:
{
//组织架构路径
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
salesman_id
:
{
//业务员id
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
salesman_name
:
{
//业务员名称
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
salesman_phone
:
{
//业务员联系方式
allowNull
:
true
,
type
:
DataTypes
.
STRING
}
}
},
{
},
{
paranoid
:
false
,
//假的删除
paranoid
:
false
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
@@ -38,7 +67,7 @@ module.exports = (db, DataTypes) => {
...
@@ -38,7 +67,7 @@ module.exports = (db, DataTypes) => {
freezeTableName
:
true
,
freezeTableName
:
true
,
//freezeTableName: true,
//freezeTableName: true,
// define the table's name
// define the table's name
tableName
:
'scheme'
,
tableName
:
'scheme
_information
'
,
validate
:
{
validate
:
{
},
},
...
...
ic-deliver/app/base/db/models/delivery/status_log.js
View file @
8295fbd6
...
@@ -14,7 +14,11 @@ module.exports = (db, DataTypes) => {
...
@@ -14,7 +14,11 @@ module.exports = (db, DataTypes) => {
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
},
},
status
:
{
// 流转状态
status_date
:
{
// 状态日期
allowNull
:
false
,
type
:
DataTypes
.
DATATIME
},
status_code
:
{
// 流转状态
allowNull
:
false
,
allowNull
:
false
,
type
:
DataTypes
.
STRING
type
:
DataTypes
.
STRING
}
}
...
...
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