pricing/json/pricing_program.json

68 lines
1.6 KiB
JSON

{
"tblname": "pricing_program",
"title": "定价项目",
"params": {
"sortby": "name",
"logined_userorgid": "ownerid",
"browserfields": {
"exclouded": ["id", "ownerid", "pricing_spec" ],
"alters": {
"providerid": {
"uitype": "code",
"valueField": "id",
"textField": "orgname",
"dataurl": "{{entire_url('/rbac/get_provider.dspy')}}"
},
"discount": {
"rules": [
{"type": "required", "message": "折扣不能为空"},
{"type": "number", "message": "折扣必须是数字"},
{"type": "min", "value": 0, "message": "折扣不能小于0"},
{"type": "max", "value": 1, "message": "折扣不能大于1"}
]
}
}
},
"editexclouded": [
"id", "ownerid"
],
"subtables":[
{
"field": "ppid",
"title": "定价项目时序",
"icon": "{{entire_url('/pricing/imgs/pricing_program_timing.svg')}}",
"subtable": "pricing_program_timing"
}
],
"toolbar":{
"tools":[
{
"name": "test",
"label": "测试",
"selected_row": true,
"icon": "{{entire_url('/bricks/imgs/test.svg')}}"
}
]
},
"binds":[
{
"wid": "self",
"event": "test",
"actiontype": "urlwidget",
"target": "PopupWindow",
"popup_options": {
"width": "70%",
"height": "70%",
"auto_open": true,
"archor": "cc",
"title": "定价测试"
},
"options": {
"url": "{{entire_url('../test_pricing_program.ui')}}",
"params":{}
}
}
]
}
}