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