增加contact和investor

This commit is contained in:
jingrow 2025-11-15 22:13:45 +08:00
parent efd1eb5f25
commit c3fb770607
12 changed files with 216 additions and 46 deletions

View File

@ -1,43 +0,0 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2025-11-15 19:45:22.315890",
"engine": "InnoDB",
"field_order": [
"title"
],
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"label": "Title"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-11-15 19:45:56.502813",
"modified_by": "Administrator",
"module": "Jcapital",
"name": "Investor",
"owner": "Administrator",
"pagetype": "PageType",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -1,7 +1,7 @@
// Copyright (c) 2025, Jingrow and contributors
// For license information, please see license.txt
// jingrow.ui.form.on("Investor", {
// jingrow.ui.form.on("Jcapital Contact", {
// refresh(frm) {
// },

View File

@ -0,0 +1,81 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2025-11-15 19:59:17.347120",
"engine": "InnoDB",
"field_order": [
"title",
"position",
"company",
"investor",
"email",
"phone",
"notes"
],
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"label": "姓名",
"reqd": 1
},
{
"fieldname": "position",
"fieldtype": "Data",
"label": "职位"
},
{
"fieldname": "company",
"fieldtype": "Data",
"label": "公司/机构"
},
{
"fieldname": "investor",
"fieldtype": "Link",
"label": "关联投资者",
"options": "Jcapital Investor"
},
{
"fieldname": "email",
"fieldtype": "Data",
"label": "邮箱"
},
{
"fieldname": "phone",
"fieldtype": "Data",
"label": "电话"
},
{
"fieldname": "notes",
"fieldtype": "Text Editor",
"label": "备注"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-11-15 20:01:52.044098",
"modified_by": "Administrator",
"module": "Jcapital",
"name": "Jcapital Contact",
"owner": "Administrator",
"pagetype": "PageType",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -5,5 +5,5 @@
from jingrow.model.page import Page
class Investor(Page):
class JcapitalContact(Page):
pass

View File

@ -5,5 +5,5 @@
from jingrow.tests.utils import JingrowTestCase
class TestInvestor(JingrowTestCase):
class TestJcapitalContact(JingrowTestCase):
pass

View File

@ -0,0 +1,8 @@
// Copyright (c) 2025, Jingrow and contributors
// For license information, please see license.txt
// jingrow.ui.form.on("Jcapital Investor", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,98 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2025-11-15 19:45:22.315890",
"engine": "InnoDB",
"field_order": [
"title",
"investor_type",
"status",
"investment_stage",
"investment_focus",
"phone",
"email",
"website",
"description"
],
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"in_list_view": 1,
"label": "投资者名称",
"reqd": 1
},
{
"default": "机构",
"fieldname": "investor_type",
"fieldtype": "Select",
"label": "投资者类型",
"options": "\n个人\n机构"
},
{
"default": "活跃",
"fieldname": "status",
"fieldtype": "Select",
"label": "状态",
"options": "\n活跃\n非活跃"
},
{
"fieldname": "investment_stage",
"fieldtype": "Select",
"label": "投资阶段",
"options": "\n种子轮\n天使轮\nPre-A轮\nA轮\nB轮\nC轮\nD轮及以上\n不限"
},
{
"fieldname": "investment_focus",
"fieldtype": "Data",
"label": "投资领域"
},
{
"fieldname": "email",
"fieldtype": "Data",
"label": "邮箱"
},
{
"fieldname": "phone",
"fieldtype": "Data",
"label": "电话"
},
{
"fieldname": "website",
"fieldtype": "Data",
"label": "网站"
},
{
"fieldname": "description",
"fieldtype": "Text Editor",
"label": "描述"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-11-15 20:12:57.852534",
"modified_by": "Administrator",
"module": "Jcapital",
"name": "Jcapital Investor",
"owner": "Administrator",
"pagetype": "PageType",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, Jingrow and contributors
# For license information, please see license.txt
# import jingrow
from jingrow.model.page import Page
class JcapitalInvestor(Page):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, Jingrow and Contributors
# See license.txt
# import jingrow
from jingrow.tests.utils import JingrowTestCase
class TestJcapitalInvestor(JingrowTestCase):
pass

8
jcapital/locale/zh.po Normal file
View File

@ -0,0 +1,8 @@
msgid "Jcapital"
msgstr "投融资"
msgid "Jcapital Investor"
msgstr "投资机构"
msgid "Jcapital Contact"
msgstr "投资机构联系人"