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
96ef4a91
Commit
96ef4a91
authored
Feb 13, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
4d3e6821
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
348 deletions
+0
-348
center-order/app/base/db/models/dborder/customercontacts.js
+0
-32
center-order/app/base/db/models/dborder/customerinfo.js
+0
-52
center-order/app/base/db/models/dborder/order.js
+0
-81
center-order/app/base/db/models/dborder/orderflow.js
+0
-32
center-order/app/base/db/models/dborder/ordertmproduct.js
+0
-86
center-order/app/base/db/models/dborder/receiptvoucher.js
+0
-65
No files found.
center-order/app/base/db/models/dborder/customercontacts.js
deleted
100644 → 0
View file @
4d3e6821
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"customercontacts"
,
{
app_id
:
DataTypes
.
INTEGER
,
//
customerinfo_id
:
DataTypes
.
INTEGER
,
//
deliveryOrderNo
:
DataTypes
.
STRING
(
64
),
// 交付订单号
mobile
:
DataTypes
.
STRING
(
20
),
//
email
:
DataTypes
.
STRING
(
50
),
//
tel
:
DataTypes
.
STRING
(
20
),
//
fax
:
DataTypes
.
STRING
(
50
),
//
name
:
DataTypes
.
STRING
(
1000
),
// 联系人
code
:
DataTypes
.
STRING
(
100
),
// 暂时没有用
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
//freezeTableName: true,
// define the table's name
tableName
:
'b_customercontacts'
,
validate
:
{
},
indexes
:
[
]
});
}
center-order/app/base/db/models/dborder/customerinfo.js
deleted
100644 → 0
View file @
4d3e6821
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"customerinfo"
,
{
customerTypeName
:
DataTypes
.
STRING
(
50
),
//
customerType
:
{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
customer_type
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"customerType"
,
val
);
this
.
setDataValue
(
"customerTypeName"
,
uiconfig
.
config
.
pdict
.
customer_type
[
val
]);
},
defaultValue
:
"0"
,
},
//申请企业类型: ent:企业,person:个人
identityCardPic
:
DataTypes
.
STRING
(
500
),
// 身份证图片
identityCardPdf
:
DataTypes
.
STRING
(
500
),
// 身份证pdf
businessLicensePic
:
DataTypes
.
STRING
(
500
),
// 营业执照图片
businessLicensePdf
:
DataTypes
.
STRING
(
500
),
// 营业执照pdf
name
:
DataTypes
.
STRING
(
1000
),
// 公司名称或个人名称
code
:
DataTypes
.
STRING
(
100
),
// 公司统一社会代码
app_id
:
DataTypes
.
INTEGER
,
//
deliveryOrderNo
:
DataTypes
.
STRING
(
64
),
// 交付订单号
applyAddr
:
DataTypes
.
STRING
,
// 申请地址
applyArea
:
DataTypes
.
STRING
(
50
),
// 存储省市编码
province
:
DataTypes
.
STRING
(
50
),
// 省
city
:
DataTypes
.
STRING
(
50
),
// 市
identityCardNo
:
DataTypes
.
STRING
(
50
),
// 身份证号
notes
:
DataTypes
.
STRING
,
// 备注
createuser_id
:
DataTypes
.
INTEGER
,
//
updateuser_id
:
DataTypes
.
INTEGER
,
//
owner_id
:
DataTypes
.
INTEGER
,
// 拥有者
zipCode
:
DataTypes
.
STRING
(
20
),
//
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
//freezeTableName: true,
// define the table's name
tableName
:
'b_customerinfo'
,
validate
:
{
},
indexes
:
[
]
});
}
center-order/app/base/db/models/dborder/order.js
deleted
100644 → 0
View file @
4d3e6821
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"order"
,
{
app_id
:
DataTypes
.
INTEGER
,
//
orderNo
:
DataTypes
.
STRING
(
64
),
// 订单号
channelServiceNo
:
DataTypes
.
STRING
(
64
),
// 渠道服务单号
channelOrderNo
:
DataTypes
.
STRING
(
1024
),
// 渠道订单号列表,多个以,隔开
itemCode
:
DataTypes
.
STRING
(
64
),
//
itemName
:
DataTypes
.
STRING
(
100
),
//
channelItemCode
:
DataTypes
.
STRING
(
64
),
// 渠道产品编码
channelItemName
:
DataTypes
.
STRING
,
// 渠道产品名称
payTime
:
DataTypes
.
DATE
,
// 渠道有支付时间则用渠道的支付时间
salesNum
:
DataTypes
.
INTEGER
,
// 项目订单数量(即服务项目的倍数,默认值为1)
salesDiliverNum
:
DataTypes
.
INTEGER
,
// 项目订单交付数量(即与项目订单数量相对应)
minitermNum
:
DataTypes
.
INTEGER
,
// 订单小项数量
minitermDiliverNum
:
DataTypes
.
INTEGER
,
// 订单小项交付数量
orderType
:{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
order_type
),
},
// 订单类型,zzdd: 自主订单,dkxd: 代客下单
orderPayStatusName
:
DataTypes
.
STRING
(
50
),
//
orderPayStatus
:{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
order_pay_status
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"orderPayStatus"
,
val
);
this
.
setDataValue
(
"orderPayStatusName"
,
uiconfig
.
config
.
pdict
.
order_pay_status
[
val
]);
}
},
// 订单付款状态dfk: 待付款, zfpz: 已上传支付凭证, yfk: 已付款, ddqx: 订单取消, tkclz: 退款处理中, bfytk: 部分已退款, ytk: 已退款,zfshbtg:支付审核不通过
totalServiceCharge
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 服务费总额(产品配置的服务费*订单件数)
totalPublicExpense
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 官费总额(产品配置的官费*订单件数)
totalDiscounts
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 优惠总额((服务费总额+官费总额)-订单总额(产品价格×优惠费率×订单件数)>0则有优惠额度)
totalTaxes
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 税费总额(订单总额-(订单总额/(1+产品费率)))
totalSum
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 订单总额(产品价格×优惠费率×订单件数)
refundSum
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 退款金额
totalProfitSum
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 订单毛利润总额(订单总额-官费总额)
pfProfitSum
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 订单平台毛利润总额(订单毛利润总额-订单渠道分成毛利润总额)
channelProfitSum
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 订单渠道分成毛利润总额((订单总额-官费总额)*渠道利润分成比率)
pfSettleProfit
:
DataTypes
.
DECIMAL
(
12
,
2
),
// 平台结算渠道利润,0否,1是
opNotes
:
DataTypes
.
STRING
,
// 备注
notes
:
DataTypes
.
STRING
,
// 备注
appPayType
:{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
app_pay_type
),
},
// 支付类型:00第三方支付,10平台代收款
createuser_id
:
DataTypes
.
INTEGER
,
//
updateuser_id
:
DataTypes
.
INTEGER
,
//
owner_id
:
DataTypes
.
INTEGER
,
//
creator
:
DataTypes
.
STRING
(
100
),
//
updator
:
DataTypes
.
STRING
(
100
),
//
owner
:
DataTypes
.
STRING
(
100
),
//
ownerMoblie
:
DataTypes
.
STRING
(
20
),
//
invoiceApplyStatus
:
DataTypes
.
STRING
(
10
),
// 发票状态:00: 未申请, 10: 已申请,20:已开票
channelUserId
:
DataTypes
.
STRING
(
64
),
// 渠道用户ID
needNo
:
DataTypes
.
STRING
(
64
),
// 需求单号
needNoOrderNo
:
DataTypes
.
STRING
(
64
),
// 需求订单号
sourceType
:
DataTypes
.
STRING
(
10
),
//来源类型:00订单,10需求需要用户确认方案
picUrl
:
DataTypes
.
STRING
(
500
),
// 产品图片地址
productType_id
:
DataTypes
.
INTEGER
,
//产品类型Id
productOneType_id
:
DataTypes
.
INTEGER
,
//产品大类Id
serviceItemSnapshot
:
DataTypes
.
TEXT
,
//产品快照
buyerMoblie
:
DataTypes
.
STRING
(
64
),
// 买家手机号
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
//freezeTableName: true,
// define the table's name
tableName
:
'b_order'
,
validate
:
{
},
indexes
:
[
]
});
}
center-order/app/base/db/models/dborder/orderflow.js
deleted
100644 → 0
View file @
4d3e6821
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"orderflow"
,
{
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
// 来源单号
opContent
:
DataTypes
.
STRING
(
1024
),
// 操作描述
app_id
:
DataTypes
.
INTEGER
,
//
notes
:
DataTypes
.
STRING
,
// 备注
createuser_id
:
DataTypes
.
INTEGER
,
//
isShow
:
{
//是否显示
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
false
,
},
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
//freezeTableName: true,
// define the table's name
tableName
:
'b_orderflow'
,
validate
:
{
},
indexes
:
[
]
});
}
center-order/app/base/db/models/dborder/ordertmproduct.js
deleted
100644 → 0
View file @
4d3e6821
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"ordertmproduct"
,
{
app_id
:
DataTypes
.
INTEGER
,
//
productType_id
:
DataTypes
.
INTEGER
,
//产品类型Id
productOneType_id
:
DataTypes
.
INTEGER
,
//产品大类Id
itemCode
:
DataTypes
.
STRING
(
64
),
//产品编码
itemName
:
DataTypes
.
STRING
(
100
),
//产品名称
tmName
:
DataTypes
.
STRING
(
1000
),
//商标名称
tmType
:
{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
tm_type
),
},
//p:普通商标,j:集体商标,z:证明商标,t:特殊商标
tmFormTypeName
:
DataTypes
.
STRING
(
50
),
//
tmFormType
:
{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
tm_form_type
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"tmFormType"
,
val
);
this
.
setDataValue
(
"tmFormTypeName"
,
uiconfig
.
config
.
pdict
.
tm_form_type
[
val
]);
}
},
//商标类型形式:1:立体,3:字,4:图,5:字图,6:颜色,7:彩色
nclOneCodes
:
DataTypes
.
STRING
,
//尼斯大类列表:格式以,隔开
payStatusName
:
DataTypes
.
STRING
(
50
),
//
payStatus
:
{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
order_service_pay_status
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"payStatus"
,
val
);
this
.
setDataValue
(
"payStatusName"
,
uiconfig
.
config
.
pdict
.
order_service_pay_status
[
val
]);
}
},
//支付状态:dfk:待付款,yzf:已支付
deliveryStatusName
:
DataTypes
.
STRING
(
50
),
//
deliveryStatus
:
{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
delivery_status
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"deliveryStatus"
,
val
);
this
.
setDataValue
(
"deliveryStatusName"
,
uiconfig
.
config
.
pdict
.
delivery_status
[
val
]);
}
},
//商标交付状态:dsccl:待上传材料,dsh:待审核,ddj:待递交, ydj: 已递交,ywc:已完成
appDataOpType
:
{
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
app_data_op_type
),
},
//应用数据操作类型:00独立,10全委托,20部分委托
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
//来源单号
deliveryOrderNo
:
DataTypes
.
STRING
(
64
),
//交付订单号
channelServiceNo
:
DataTypes
.
STRING
(
64
),
//渠道服务单号
channelOrderNo
:
DataTypes
.
STRING
(
1024
),
//渠道订单号列表,多个以,隔开
needNo
:
DataTypes
.
STRING
(
64
),
//需求单号
needNoOrderNo
:
DataTypes
.
STRING
(
64
),
// 需求订单号
sourceType
:
DataTypes
.
STRING
(
10
),
//来源类型:00订单,10需求需要用户确认方案
picUrl
:
DataTypes
.
STRING
(
500
),
//商标图样
colorizedPicUrl
:
DataTypes
.
STRING
(
500
),
//商标彩色图样
gzwtsUrl
:
DataTypes
.
STRING
(
500
),
//盖章委托书
sywjUrl
:
DataTypes
.
STRING
(
500
),
//声音文件
smwjUrl
:
DataTypes
.
STRING
(
500
),
//说明文件
channelUserId
:
DataTypes
.
STRING
(
64
),
//渠道用户ID
notes
:
DataTypes
.
STRING
(
255
),
//备注
createuser_id
:
DataTypes
.
INTEGER
,
//
updateuser_id
:
DataTypes
.
INTEGER
,
//
auditor_id
:
DataTypes
.
INTEGER
,
//
createuser
:
DataTypes
.
STRING
(
100
),
//
updateuser
:
DataTypes
.
STRING
(
100
),
//
auditor
:
DataTypes
.
STRING
(
100
),
//
nclOneCount
:
DataTypes
.
INTEGER
,
// 尼斯大类数量
nclCount
:
DataTypes
.
INTEGER
,
// 尼斯数量
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
//freezeTableName: true,
// define the table's name
tableName
:
'b_order_tm_product'
,
validate
:
{
},
indexes
:
[
]
});
}
center-order/app/base/db/models/dborder/receiptvoucher.js
deleted
100644 → 0
View file @
4d3e6821
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
var
base
=
require
(
"../../basemodel/voucherbase"
)(
db
,
DataTypes
);
return
db
.
define
(
"receiptvoucher"
,
Object
.
assign
({
//收款单:
//基类 code: 收款单号(自动生成)
//基类 creator: 创建者
//基类 updator:/更新者
//基类 auditor: 审核者
//基类 opNotes: 操作备注
//基类 auditStatusName: //审核状态名称
//基类 auditStatus: //审核状态:ENUM=audit_status,"dsh": "待审核", "btg": "不通过", "tg": "通过"
//基类 sourceTypeName: //来源类型名称
//基类 sourceType: //来源类型:ENUM=source_type,"order": "订单","expensevoucher": "费用单","receiptvoucher": "收款单","refundvoucher": "退款单", "trademark": "商标单"
//基类 sourceOrderNo: DataTypes.STRING,//来源单号(如:订单号等)
//基类 channelServiceNo //渠道服务单号
createapp_id
:
DataTypes
.
INTEGER
,
//
payuser_id
:
DataTypes
.
INTEGER
,
//
busPayOrderCode
:
DataTypes
.
STRING
(
100
),
//业务支付订单号
payOrderNo
:
DataTypes
.
STRING
,
//支付凭证流水单号,如:微信支付凭证单号
receiptTypeName
:
DataTypes
.
STRING
,
receiptType
:
{
//收款类型,"sk": "收款","csrz": "初始入账" ,"ptdsk": "平台代收款"
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
receipt_type
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"receiptType"
,
val
);
this
.
setDataValue
(
"receiptTypeName"
,
uiconfig
.
config
.
pdict
.
receipt_type
[
val
]);
}
},
accountType
:
{
//帐户类型( 支付类型):"cash": "现金", "bank": "银行" ,"wx":"微信","alipay":"支付宝","other":"其它"
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
pay_account_type
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"accountType"
,
val
);
this
.
setDataValue
(
"accountTypeName"
,
uiconfig
.
config
.
pdict
.
pay_account_type
[
val
]);
},
defaultValue
:
"other"
,
},
accountTypeName
:
{
//帐户类型名称
type
:
DataTypes
.
STRING
,
defaultValue
:
"其它"
,
},
payDate
:
DataTypes
.
DATE
,
//支付时间
totalSum
:
DataTypes
.
DECIMAL
(
12
,
3
),
//订单总额(平台费用+服务费+官费+发票税费+个人利润+平台利润)
certifyFileUrl
:
DataTypes
.
STRING
(
500
),
//证明文件Url
notes
:
DataTypes
.
STRING
,
//备注
itemCode
:
DataTypes
.
STRING
(
100
),
//项目操作码
itemName
:
DataTypes
.
STRING
(
100
),
//项目名称
buyerOpenId
:
DataTypes
.
STRING
,
//用户在商户appid下的唯一标识或买家在支付宝的用户id
passTradeNo
:
DataTypes
.
STRING
,
//通道的统一订单号
buyerAliLogonId
:
DataTypes
.
STRING
,
//买家支付宝账号
},
base
),
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
tableName
:
'b_receiptvoucher'
,
validate
:
{
}
});
}
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