diff --git a/json/discount_customer_bind_list.json b/json/discount_customer_bind_list.json index ec888d7..f1369d9 100644 --- a/json/discount_customer_bind_list.json +++ b/json/discount_customer_bind_list.json @@ -5,9 +5,37 @@ "params": { "browserfields": { "exclouded": ["id", "resellerid"], - "sale_id": { + "customerid": { + "title": "客户机构", + "width": 150, + "uitype": "code", + "valueField": "customerid", + "textField": "customerid_text", + "params": { + "dbname": "{{get_module_dbname('discount')}}", + "table": "organization", + "tblvalue": "id", + "tbltext": "orgname", + "valueField": "customerid", + "textField": "customerid_text" + }, + "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" + }, + "sale_id": { "title": "归属销售", - "width": 120 + "width": 120, + "uitype": "code", + "valueField": "sale_id", + "textField": "sale_id_text", + "params": { + "dbname": "{{get_module_dbname('discount')}}", + "table": "users", + "tblvalue": "id", + "tbltext": "username", + "valueField": "sale_id", + "textField": "sale_id_text" + }, + "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, "promo_code_id": { "title": "促销码", @@ -26,10 +54,8 @@ "customerid", "resellerid" ], - "editable": { - "new_data_url": "{{entire_url('../api/customer_bind_create.dspy')}}", - "update_data_url": "{{entire_url('../api/customer_bind_update.dspy')}}", - "delete_data_url": "{{entire_url('../api/customer_bind_delete.dspy')}}" - } + "new_data_url": "{{entire_url('/discount/api/customer_bind_create.dspy')}}", + "update_data_url": "{{entire_url('/discount/api/customer_bind_update.dspy')}}", + "delete_data_url": "{{entire_url('/discount/api/customer_bind_delete.dspy')}}" } } \ No newline at end of file diff --git a/models/discount_customer_bind.json b/models/discount_customer_bind.json index 7a94cb7..b99936b 100644 --- a/models/discount_customer_bind.json +++ b/models/discount_customer_bind.json @@ -19,7 +19,7 @@ }, { "name": "customerid", - "title": "客户用户id", + "title": "客户机构id", "type": "str", "length": 32, "nullable": "no"