diff --git a/json/pricing_item.json b/json/pricing_item.json new file mode 100644 index 0000000..868802a --- /dev/null +++ b/json/pricing_item.json @@ -0,0 +1,14 @@ +{ + "tblname": "pricing_spec", + "title": "定价规格", + "params": { + "sortby": "name", + "browserfields": { + "exclouded": ["id"], + "alters": {}, + }, + "editexclouded": [ + "id" + ] + } +} diff --git a/json/pricing_program.json b/json/pricing_program.json new file mode 100644 index 0000000..b43353f --- /dev/null +++ b/json/pricing_program.json @@ -0,0 +1,23 @@ +{ + "tblname": "pricing_program", + "title": "定价项目", + "params": { + "sortby": "name", + "logined_userorgid": "ownerid", + "browserfields": { + "exclouded": ["id", "ownerid" ], + "alters": {}, + }, + "editexclouded": [ + "id", "ownerid" + ], + "subtables":[ + { + "field": "ppid", + "title": "定价细项", + "icon": "{{entire_url('/pricing/imgs/pricing_item.svg')}}", + "subtable": "pricing_item" + } + ] + } +} diff --git a/json/pricing_spec.json b/json/pricing_spec.json new file mode 100644 index 0000000..02d1a96 --- /dev/null +++ b/json/pricing_spec.json @@ -0,0 +1,14 @@ +{ + "tblname": "pricing_item", + "title": "定价细项", + "params": { + "sortby": "name", + "browserfields": { + "exclouded": ["id"], + "alters": {}, + }, + "editexclouded": [ + "id" + ] + } +} diff --git a/json/pricing_type.json b/json/pricing_type.json new file mode 100644 index 0000000..2d2b065 --- /dev/null +++ b/json/pricing_type.json @@ -0,0 +1,23 @@ +{ + "tblname": "pricing_type", + "title": "定价类型", + "params": { + "sortby": "name", + "logined_userorgid": "ownerid", + "browserfields": { + "exclouded": ["id", "ownerid" ], + "alters": {}, + }, + "editexclouded": [ + "id", "ownerid" + ], + "subtables":[ + { + "field": "ptid", + "title": "定价规格", + "icon": "{{entire_url('/pricing/imgs/pricing_spec.svg')}}", + "subtable": "pricing_spec" + } + ] + } +} diff --git a/wwwroot/menu.ui b/wwwroot/menu.ui new file mode 100644 index 0000000..0bcfac5 --- /dev/null +++ b/wwwroot/menu.ui @@ -0,0 +1,22 @@ +{ + "widgettype": "Menu", + "options": { + "target": "PopupWindow", + "popup_options":{ + }, + "items":[ + { + "name": "pricing_type", + "icon": "{{entire_url('/pricing/imgs/pricing_type.svg')}}", + "label": "定价类型", + "url": "{{entire_url('/pricing/pricing_type')}}" + }, + { + "name": "pricing_program", + "icon": "{{entire_url('/pricing/imgs/pricing_program.svg')}}", + "label": "定价项目", + "url": "{{entire_url('pricing/pricing_program')}}" + } + ] + } +}