53 lines
1.9 KiB
JSON
53 lines
1.9 KiB
JSON
{
|
|
"tblname": "product",
|
|
"alias": "product_list",
|
|
"title": "产品管理",
|
|
"params": {
|
|
"sortby": ["sort_order asc", "created_at desc"],
|
|
"logined_userorgid": "org_id",
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "product_name", "op": "LIKE", "var": "product_name"},
|
|
{"field": "product_code", "op": "LIKE", "var": "product_code"},
|
|
{"field": "status", "op": "=", "var": "status_filter"}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"product_name": "产品名称",
|
|
"product_code": "产品编码",
|
|
"status_filter": "状态"
|
|
},
|
|
"browserfields": {
|
|
"exclouded": [],
|
|
"alters": {
|
|
"category_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/category_options.dspy')}}",
|
|
"datamethod": "GET"
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "启用"},
|
|
{"value": "0", "text": "禁用"}
|
|
]
|
|
},
|
|
"price_type": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "固定价格"},
|
|
{"value": "2", "text": "阶梯价格"},
|
|
{"value": "3", "text": "议价"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": ["created_by", "created_at", "updated_at", "org_id"],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/product_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/product_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/product_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|