From bec3e8f583259aa66a70a9a470841fccfea185bc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 14 Jul 2026 11:10:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20customerid=E6=98=BE=E7=A4=BA=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E5=90=8D;=20sale=5Fid=E6=98=BE=E7=A4=BAusername;=20ed?= =?UTF-8?q?itable=E5=B5=8C=E5=A5=97=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- json/discount_customer_bind_list.json | 40 ++++++++++++++++++++++----- models/discount_customer_bind.json | 2 +- 2 files changed, 34 insertions(+), 8 deletions(-) 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"