fix(P0): 修正accounting CRUD JSON格式,添加.gitignore排除自动生成的CRUD目录
This commit is contained in:
parent
1de6fbcf9b
commit
4a20509490
6
.gitignore
vendored
6
.gitignore
vendored
@ -1 +1,7 @@
|
||||
*.swp
|
||||
|
||||
# CRUD auto-generated directories
|
||||
wwwroot/account/
|
||||
wwwroot/subject/
|
||||
wwwroot/acc_balance/
|
||||
wwwroot/acc_detail/
|
||||
|
||||
@ -1,17 +1,12 @@
|
||||
{
|
||||
"models_dir": "${HOME}$/py/rbac/models",
|
||||
"output_dir": "${HOME}$/py/sage/wwwroot/account",
|
||||
"dbname": "sage",
|
||||
"tblname": "acc_balance",
|
||||
"title":"科目",
|
||||
"title": "账户余额",
|
||||
"params": {
|
||||
"sortby":"name",
|
||||
"sortby": ["acc_date desc"],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"cwidth": {}
|
||||
"alters": {}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
]
|
||||
"editexclouded": ["id"]
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,17 +1,20 @@
|
||||
{
|
||||
"models_dir": "${HOME}$/py/rbac/models",
|
||||
"output_dir": "${HOME}$/py/sage/wwwroot/acc_detail",
|
||||
"dbname": "sage",
|
||||
"tblname": "acc_detail",
|
||||
"title":"科目",
|
||||
"title": "账务明细",
|
||||
"params": {
|
||||
"sortby":"name",
|
||||
"sortby": ["acc_date desc"],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"cwidth": {}
|
||||
"alters": {
|
||||
"acc_dir": {
|
||||
"uitype": "code",
|
||||
"data": [
|
||||
{"value": "0", "text": "贷"},
|
||||
{"value": "1", "text": "借"}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
]
|
||||
"editexclouded": ["id", "acc_no"]
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,34 +1,49 @@
|
||||
{
|
||||
"models_dir": "${HOME}$/py/rbac/models",
|
||||
"output_dir": "${HOME}$/py/sage/wwwroot/account",
|
||||
"dbname": "sage",
|
||||
"tblname": "account",
|
||||
"title":"科目",
|
||||
"title": "账户管理",
|
||||
"params": {
|
||||
"sortby":"name",
|
||||
"sortby": ["id"],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"cwidth": {}
|
||||
"alters": {
|
||||
"subjectid": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
|
||||
"valueField": "subjectid",
|
||||
"textField": "subjectid_text"
|
||||
},
|
||||
"orgid": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
|
||||
"valueField": "orgid",
|
||||
"textField": "orgid_text"
|
||||
},
|
||||
"balance_at": {
|
||||
"uitype": "code",
|
||||
"data": [
|
||||
{"value": "0", "text": "借"},
|
||||
{"value": "1", "text": "贷"}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
],
|
||||
"subtables":[
|
||||
{
|
||||
"field":"accountid",
|
||||
"title":"账户余额",
|
||||
"subtable":"acc_balance"
|
||||
},
|
||||
{
|
||||
"field":"accountid",
|
||||
"title":"账户明细",
|
||||
"subtable":"acc_detail"
|
||||
},
|
||||
{
|
||||
"field":"accountid",
|
||||
"title":"账户日志",
|
||||
"subtable":"accounting_log"
|
||||
}
|
||||
]
|
||||
"editexclouded": ["id", "max_detailno", "balance"],
|
||||
"subtables": [
|
||||
{
|
||||
"field": "accountid",
|
||||
"title": "账户余额",
|
||||
"subtable": "acc_balance"
|
||||
},
|
||||
{
|
||||
"field": "accountid",
|
||||
"title": "账户明细",
|
||||
"subtable": "acc_detail"
|
||||
},
|
||||
{
|
||||
"field": "accountid",
|
||||
"title": "账户日志",
|
||||
"subtable": "accounting_log"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,25 +1,31 @@
|
||||
{
|
||||
"models_dir": "${HOME}$/py/rbac/models",
|
||||
"output_dir": "${HOME}$/py/sage/wwwroot/subject",
|
||||
"dbname": "sage",
|
||||
"tblname": "subject",
|
||||
"title":"科目",
|
||||
"title": "科目管理",
|
||||
"params": {
|
||||
"sortby":"name",
|
||||
"sortby": ["id"],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"cwidth": {}
|
||||
"alters": {
|
||||
"balance_side": {
|
||||
"uitype": "code",
|
||||
"data": [
|
||||
{"value": "0", "text": "借"},
|
||||
{"value": "1", "text": "贷"}
|
||||
]
|
||||
},
|
||||
"subjecttype": {
|
||||
"uitype": "code",
|
||||
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
],
|
||||
"subtables":[
|
||||
{
|
||||
"field":"subjectid",
|
||||
"title":"账户设置",
|
||||
"url":"../account_config",
|
||||
"subtable":"account_config"
|
||||
}
|
||||
]
|
||||
"editexclouded": ["id"],
|
||||
"subtables": [
|
||||
{
|
||||
"field": "subjectid",
|
||||
"title": "账户设置",
|
||||
"subtable": "account_config"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user