From 842647da8994f9d34a0a87c5c4a82fe1bff387d4 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 24 Jun 2026 09:10:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=A9CRUD=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=A4=84=E7=90=86code=E5=AD=97=E6=AE=B5=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=89=8B=E5=8A=A8alters=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- json/discount_detail_list.json | 25 +------------------------ models/discount_detail.json | 12 ++++++++++++ 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/json/discount_detail_list.json b/json/discount_detail_list.json index 491d39b..020267b 100644 --- a/json/discount_detail_list.json +++ b/json/discount_detail_list.json @@ -11,30 +11,7 @@ "exclouded": [ "id", "resellerid" - ], - "alters": { - "discountid": { - "uitype": "code", - "dataurl": "{{entire_url('/appbase/get_code.dspy')}}?dbname=discount&table=discount&tblvalue=id&tbltext=name&valueField=discountid&textField=discountid_text", - "datamethod": "GET", - "valueField": "discountid", - "textField": "discountid_text" - }, - "prodtypeid": { - "uitype": "code", - "dataurl": "{{entire_url('/appbase/get_code.dspy')}}?dbname=product_management&table=prodtype&tblvalue=id&tbltext=name&valueField=prodtypeid&textField=prodtypeid_text", - "datamethod": "GET", - "valueField": "prodtypeid", - "textField": "prodtypeid_text" - }, - "productid": { - "uitype": "code", - "dataurl": "{{entire_url('/appbase/get_code.dspy')}}?dbname=product_management&table=product&tblvalue=id&tbltext=name&valueField=productid&textField=productid_text", - "datamethod": "GET", - "valueField": "productid", - "textField": "productid_text" - } - } + ] }, "editexclouded": [ "id", diff --git a/models/discount_detail.json b/models/discount_detail.json index 2693cf6..f099dcc 100644 --- a/models/discount_detail.json +++ b/models/discount_detail.json @@ -74,6 +74,18 @@ "table": "organization", "valuefield": "id", "textfield": "orgname" + }, + { + "field": "prodtypeid", + "table": "prodtype", + "valuefield": "id", + "textfield": "name" + }, + { + "field": "productid", + "table": "product", + "valuefield": "id", + "textfield": "name" } ] }