From fcec9422ab04d20820eaef9dcef7be7b0b5e40b4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 3 Jul 2026 16:21:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20supply=5Fcontract=5Fitems=20codes=20?= =?UTF-8?q?=E8=A1=A8=E5=90=8D=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit product_types → product_category (textfield: type_name → name) products → product --- models/supply_contract_items.json | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/models/supply_contract_items.json b/models/supply_contract_items.json index f16ecb2..5e2e98b 100644 --- a/models/supply_contract_items.json +++ b/models/supply_contract_items.json @@ -3,7 +3,9 @@ { "name": "supply_contract_items", "title": "供销合同产品折扣明细表", - "primary": ["id"], + "primary": [ + "id" + ], "catelog": "relation" } ], @@ -73,12 +75,18 @@ { "name": "idx_sci_contract", "idxtype": "index", - "idxfields": ["contract_id"] + "idxfields": [ + "contract_id" + ] }, { "name": "idx_sci_product", "idxtype": "index", - "idxfields": ["contract_id", "prodtypeid", "productid"] + "idxfields": [ + "contract_id", + "prodtypeid", + "productid" + ] } ], "codes": [ @@ -90,15 +98,15 @@ }, { "field": "prodtypeid", - "table": "product_types", + "table": "product_category", "valuefield": "id", - "textfield": "type_name" + "textfield": "name" }, { "field": "productid", - "table": "products", + "table": "product", "valuefield": "id", "textfield": "product_name" } ] -} +} \ No newline at end of file