diff --git a/models/pricing_program.json b/models/pricing_program.json new file mode 100644 index 0000000..638d7b6 --- /dev/null +++ b/models/pricing_program.json @@ -0,0 +1,81 @@ +{ + "summary": [ + { + "name": "pricing_program", + "title": "定价项目", + "primary": [ + "id" + ], + "catelog": "entity" + } + ], + "fields": [ + { + "name": "id", + "title": "id", + "type": "str", + "length": 32 + }, + { + "name": "name", + "title": "项目名称", + "type": "str", + "length": 256 + }, + { + "name": "ownerid", + "title": "所属机构", + "type": "str", + "length": 32 + }, + { + "name": "providerid", + "title": "供应商", + "type": "str", + "length": 32 + }, + { + "name": "pricing_belong", + "title": "定价属于", + "type": "str", + "length": 32 + }, + { + "name": "discount", + "title": "供应商折扣", + "type": "float", + "length": 18 + }, + { + "name": "description", + "title": "描述", + "type": "text" + }, + { + "name": "pricing_spec", + "title": "规格明细", + "type": "text" + } + ], + "codes": [ + { + "field": "ownerid", + "table": "organization", + "valuefield": "id", + "textfield": "orgname" + }, + { + "field": "providerid", + "table": "organization", + "valuefield": "id", + "textfield": "orgname" + }, + { + "field": "pricing_belong", + "table": "appcodes_kv", + "valuefield": "k", + "textfield": "v", + "cond": "parentid='pricing_belong'" + } + ] +} \ No newline at end of file diff --git a/models/pricing_program_timing.json b/models/pricing_program_timing.json new file mode 100644 index 0000000..e7cb05f --- /dev/null +++ b/models/pricing_program_timing.json @@ -0,0 +1,56 @@ +{ + "summary": [ + { + "name": "pricing_program_timing", + "title": "定价项目时序", + "primary": [ + "id" + ], + "catelog": "entity" + } + ], + "fields": [ + { + "name": "id", + "title": "id", + "type": "str", + "length": 32 + }, + { + "name": "ppid", + "title": "定价项目id", + "type": "str", + "length": 32 + }, + { + "name": "name", + "title": "名称", + "type": "str", + "length": 256 + }, + { + "name": "pricing_data", + "title": "定价数据", + "type": "text" + }, + { + "name": "enabled_date", + "title": "启用日期", + "type": "date" + }, + { + "name": "expired_date", + "title": "失效日期", + "type": "date", + "default": "9999-12-31" + } + ], + "codes": [ + { + "field": "ppid", + "table": "pricing_program", + "valuefield": "id", + "textfield": "name" + } + ] +} \ No newline at end of file