141 lines
3.4 KiB
XML
141 lines
3.4 KiB
XML
|
|
{
|
|
"widgettype":"VBox",
|
|
"options":{"height":"100%","width":"100%"},
|
|
"subwidgets":[
|
|
{
|
|
"id":"discount_detail_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
"title":"折扣产品明细",
|
|
"css":"card",
|
|
"editable":{
|
|
"new_data_url":"{{entire_url('../api/discount_detail_create.dspy')}}",
|
|
"delete_data_url":"{{entire_url('../api/discount_detail_delete.dspy')}}",
|
|
"update_data_url":"{{entire_url('../api/discount_detail_update.dspy')}}",
|
|
"binds":[
|
|
{
|
|
"wid":"prodtypeid",
|
|
"event":"changed",
|
|
"actiontype":"script",
|
|
"target":"productid",
|
|
"script": "await this.loadData({prodtypeid: event.params.prodtypeid});"
|
|
}
|
|
]
|
|
},
|
|
"data_url":"{{entire_url('./get_discount_detail.dspy')}}",
|
|
"data_method":"GET",
|
|
"data_params":{},
|
|
"row_options":{
|
|
"idField":"id",
|
|
"browserfields": {
|
|
"exclouded": ["id", "resellerid"]
|
|
},
|
|
"editexclouded":["id", "discountid", "resellerid"],
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "id"
|
|
},
|
|
{
|
|
"name": "discountid",
|
|
"title": "折扣方案id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"label": "折扣方案",
|
|
"uitype": "code",
|
|
"valueField": "discountid",
|
|
"textField": "discountid_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('discount')}}",
|
|
"table": "discount",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "discountid",
|
|
"textField": "discountid_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "resellerid",
|
|
"title": "商户id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"label": "商户",
|
|
"uitype": "code",
|
|
"valueField": "resellerid",
|
|
"textField": "resellerid_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('discount')}}",
|
|
"table": "organization",
|
|
"tblvalue": "id",
|
|
"tbltext": "orgname",
|
|
"valueField": "resellerid",
|
|
"textField": "resellerid_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "prodtypeid",
|
|
"title": "产品种类id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"label": "产品种类",
|
|
"uitype": "code",
|
|
"valueField": "prodtypeid",
|
|
"textField": "prodtypeid_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('discount')}}",
|
|
"table": "product_category",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "prodtypeid",
|
|
"textField": "prodtypeid_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "productid",
|
|
"title": "产品id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"label": "产品",
|
|
"uitype": "code",
|
|
"valueField": "productid",
|
|
"textField": "productid_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('discount')}}",
|
|
"table": "product",
|
|
"tblvalue": "id",
|
|
"tbltext": "product_name",
|
|
"valueField": "productid",
|
|
"textField": "productid_text",
|
|
"cond": "category_id=[[prodtypeid]]"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "discount",
|
|
"title": "折扣",
|
|
"type": "float",
|
|
"length": 5,
|
|
"dec": 4,
|
|
"uitype": "float",
|
|
"datatype": "float",
|
|
"label": "折扣"
|
|
}
|
|
]
|
|
},
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
}]
|
|
}
|