diff --git a/packages/standard-objects/community-users/accounts.object.yml b/packages/standard-objects/community-users/accounts.object.yml deleted file mode 100644 index 15c7e67a82..0000000000 --- a/packages/standard-objects/community-users/accounts.object.yml +++ /dev/null @@ -1,614 +0,0 @@ -name: accounts -label: 业务伙伴 -icon: account -enable_files: true -enable_search: true -enable_events: true -enable_tasks: true -enable_api: true -enable_share: true -enable_audit: true -enable_enhanced_lookup: true -version: 2 -fields: - name: - label: 业务伙伴名称 - type: text - searchable: true - required: true - sortable: true - index: true - name: name - owner: - label: 我方客户经理 - sortable: true - omit: false - hidden: false - is_supplier: - type: boolean - label: 供应商 - hidden: false - omit: false - is_customer: - type: boolean - label: 客户 - hidden: false - omit: false - type: - label: 类型 - type: select - sortable: true - options: - - label: 分析师 - value: Analyst - - label: 竞争者 - value: Competitor - - label: 顾客 - value: Customer - - label: 集成商 - value: Integrator - - label: 投资者 - value: Investor - - label: 合作伙伴 - value: Partner - - label: 公关媒体 - value: Press - - label: 潜在 - value: Prospect - - label: 代理商 - value: Reseller - - label: 其他 - value: Other - filterable: true - parent_id: - type: lookup - label: 母公司 - reference_to: accounts - inlineHelpText: 作为大公司或组织的子公司的母公司。父级业务伙伴必须是华炎魔方中的现有业务伙伴。您可输入业务伙伴名称,或使用查找图标选择(或创建)业务伙伴。 - credit_code: - type: text - label: 纳税人识别号(身份证/其他) - name: credit_code - searchable: true - website: - type: url - label: 网站 - phone: - type: text - label: 电话 - defaultValue: '' - fax: - type: text - label: 传真 - description: - label: 描述 - type: textarea - is_wide: true - name: description - industry: - type: select - label: 行业 - searchable: true - sortable: true - options: - - label: 农业 - value: Agriculture - - label: 服饰 - value: Apparel - - label: 银行 - value: Banking - - label: 生物科技 - value: Biotechnology - - label: 化工 - value: Chemicals - - label: 通信 - value: Communications - - label: 建筑 - value: Construction - - label: 咨询 - value: Consulting - - label: 教育 - value: Education - - label: 电子 - value: Electronics - - label: 能源 - value: Energy - - label: 工程 - value: Engineering - - label: 娱乐 - value: Entertainment - - label: 环保 - value: Environmental - - label: 金融 - value: Finance - - label: 食品饮料 - value: Food_&_Beverage - - label: 政府组织 - value: Government - - label: 医疗保健 - value: Healthcare - - label: 服务 - value: Hospitality - - label: 保险 - value: Insurance - - label: 机械 - value: Machinery - - label: 制造 - value: Manufacturing - - label: 媒体 - value: Media - - label: 非牟利组织 - value: Not_For_Profit - - label: 其他 - value: Other - - label: 休闲 - value: Recreation - - label: 零售 - value: Retail - - label: 航运 - value: Shipping - - label: 科技 - value: Technology - - label: 电讯 - value: Telecommunications - - label: 交通运输 - value: Transportation - - label: 公用事业 - value: Utilities - - label: 软件 - value: Software - filterable: true - number_of_employees: - type: number - label: 员工人数 - state: - label: 区域 - type: select - sortable: true - options: - - label: 北京 - value: BJ - - label: 上海 - value: SH - - label: 重庆 - value: CQ - - label: 天津 - value: TJ - - label: 河北 - value: HB - - label: 山西 - value: SX - - label: 辽宁 - value: LN - - label: 吉林 - value: GL - - label: 黑龙江 - value: HLJ - - label: 江苏 - value: JS - - label: 浙江 - value: ZJ - - label: 安徽 - value: AH - - label: 福建 - value: FJ - - label: 江西 - value: JX - - label: 山东 - value: SD - - label: 河南 - value: HN - - label: 湖北 - value: HUB - - label: 湖南 - value: HUN - - label: 广东 - value: GD - - label: 海南 - value: HAN - - label: 四川 - value: SC - - label: 贵州 - value: GZ - - label: 云南 - value: YN - - label: 陕西 - value: SHX - - label: 甘肃 - value: GS - - label: 青海 - value: QH - - label: 内蒙古 - value: NMG - - label: 广西 - value: GX - - label: 西藏 - value: XZ - - label: 宁夏 - value: NX - - label: 新疆 - value: XJ - - label: 香港 - value: HK - - label: 澳门 - value: AM - - label: 台湾 - value: TW - filterable: true - inlineHelpText: 业务伙伴被分配至的区域。 - # billing_city: - # type: text - # label: 开单地址-城市 - # group: 地址信息 - # shipping_city: - # type: text - # label: 发货地址-城市 - # group: 地址信息 - billing_address: - type: textarea - label: 开单地址 - rows: 3 - group: 地址信息 - shipping_address: - type: textarea - label: 发货地址 - rows: 3 - group: 地址信息 - # billing_zip: - # type: text - # label: 开单地址-邮政编码 - # group: 地址信息 - # shipping_zip: - # type: text - # label: 发货地址-邮政编码 - # group: 地址信息 - account_number: - type: text - label: 业务伙伴编号 - hidden: true - rating: - label: 分级 - type: select - sortable: true - options: - - label: 非常重要 - value: Hot - - label: 重要 - value: Warm - - label: 普通 - value: Cold - filterable: true - inlineHelpText: 您如何划分此业务伙伴等级的分类,例如,普通、重要。 - #hidden: true - invoice_address: - label: 开票地址 - group: 开票信息 - type: text - name: invoice_address - invoice_phone: - label: 开票电话 - group: 开票信息 - type: text - name: invoice_phone - invoice_bank: - label: 开户行 - group: 开票信息 - type: text - name: invoice_bank - invoice_combinenum: - label: 账号 - group: 开票信息 - type: text - name: invoice_combinenum - account_source: - type: text - label: 业务伙伴来源 - hidden: true - site: - type: text - label: 业务伙伴地点 - hidden: true - inlineHelpText: 可用业务伙伴地点字段来指定同一公司的不同位置。例如,假设百度在北京和上海均设有办公室。创建两个名为百度的业务伙伴,但是业务伙伴地点的值分别为北京和上海。 - annual_revenue: - label: 年收入 - type: currency - hidden: true - ownership: - label: 所有权 - type: select - sortable: true - options: - - label: 国营 - value: National - - label: 私营 - value: Private - - label: 子公司 - value: Subcompany - - label: 其他 - value: Others - inlineHelpText: 公司的所有权,例如,公有或私有。 - hidden: true - # account_currency: - # label: 业务伙伴币种 - # type: lookup - # reference_to: currency - # hidden: true - account_division: - label: 业务伙伴分部 - type: text - hidden: true - partner_account: - label: 合作伙伴 - type: boolean - hidden: true - assistant: - label: 助理 - type: text - hidden: true - asst_phone: - label: 助理电话 - type: text - hidden: true - birthdate: - label: 生日 - type: date - hidden: true - department: - label: 部门 - type: text - hidden: true - email: - label: 电子邮件 - type: email - hidden: true - do_not_call: - label: 请勿致电 - type: boolean - inlineHelpText: 是否想要通过电话联系联系人。 - hidden: true - has_opted_out_of_email: - label: 退出邮件列表 - type: boolean - inlineHelpText: 是否将联系人包含在群发邮件列表中。 - hidden: true - fax_opt_out: - label: 退出传真列表 - type: boolean - inlineHelpText: 是否将联系人包含在传真中。 - hidden: true - home_phone: - label: 家庭电话 - type: text - hidden: true - lead_source: - type: select - label: 潜在业务伙伴来源 - searchable: true - sortable: true - options: - - label: 广告 - value: Advertisement - - label: 业务伙伴活动 - value: Customer_Event - - label: 员工推荐 - value: Employee_Referral - - label: 百度搜索 - value: Baidu_AdWords - - label: 其他 - value: Other - - label: 合作伙伴 - value: Partner - - label: 采购清单 - value: Purchased_List - - label: 贸易展览 - value: Trade_Show - - label: 线上研讨 - value: Webinar - - label: 网站 - value: Website - filterable: true - inlineHelpText: 潜在业务伙伴来源,例如,广告、合作伙伴或 Web。 - hidden: true - mailing_city: - type: text - label: 邮寄地址-城市 - group: 地址信息 - hidden: true - mailing_street: - type: text - label: 邮寄地址-街道 - group: 地址信息 - hidden: true - mailing_zip: - type: text - label: 邮寄地址-邮政编码 - group: 地址信息 - hidden: true - other_city: - type: text - label: 其他地址-城市 - group: 其他地址信息 - hidden: true - other_street: - type: text - label: 其他地址-街道 - group: 其他地址信息 - hidden: true - other_zip: - type: text - label: 其他地址-邮政编码 - group: 其他地址信息 - hidden: true - mobile: - label: 手机 - type: text - hidden: true - salutation: - type: select - label: 性别 - hidden: true - options: - - label: 男 - value: Male - - label: 女 - value: Female - other_phone: - label: 其他电话 - type: text - hidden: true -list_views: - recent: - label: 最近查看 - columns: - - field: name - width: 300 - wrap: true - - field: type - width: 120 - - field: rating - width: 120 - - field: billing_address - width: 400 - - field: shipping_address - width: 400 - - field: owner - width: 120 - filter_scope: space - filter_fields: - - type - - industry - - rating - - name - all: - label: 所有业务伙伴 - columns: - - field: name - width: 300 - wrap: true - - field: type - width: 120 - - field: rating - width: 120 - - field: billing_address - width: 400 - - field: shipping_address - width: 400 - - field: owner - width: 120 - filter_scope: space - filter_fields: - - type - - industry - - rating - - name - # allCustomers: - # label: 所有顾客 - # filters: ! |- - # function () { - # return [ - # ["type","=","Customer"] - # ]; - # } - # columns: - # - field: name - # width: 300 - # wrap: true - # - field: type - # width: 120 - # - field: rating - # width: 120 - # - field: billing_address - # width: 400 - # - field: shipping_address - # width: 400 - # - field: owner - # width: 120 - # filter_scope: space - # filter_fields: - # - type - # - industry - # - name - hotRating: - label: 非常重要的业务伙伴 - filters: ! |- - function () { - return [ - ["rating","=","Hot"] - ]; - } - columns: - - field: name - width: 300 - wrap: true - - field: type - width: 120 - - field: rating - width: 120 - - field: billing_address - width: 400 - - field: shipping_address - width: 400 - - field: owner - width: 120 - filter_scope: space - filter_fields: - - type - - industry - - name - mine: - label: 我的业务伙伴 - columns: - - field: name - width: 300 - wrap: true - - field: type - width: 120 - - field: rating - width: 120 - - field: billing_address - width: 400 - - field: shipping_address - width: 400 - - field: owner - width: 120 - filter_scope: mine - filter_fields: - - type - - industry - - rating - - name -actions: - enableSupplier: - label: 作为供应商启用 - on: record_only_more - disableSupplier: - label: 禁用供应商账户 - on: record_only_more - enableCustomer: - label: 作为业务伙伴启用 - on: record_only_more - disableCustomer: - label: 禁用业务伙伴账户 - on: record_only_more -permission_set: - user: - allowCreate: true - allowDelete: true - allowEdit: true - allowRead: true - modifyAllRecords: false - viewAllRecords: true - contract_manager: - allowCreate: true - allowEdit: true - allowDelete: true - allowRead: true - modifyAllRecords: true - viewAllRecords: true - admin: - allowCreate: true - allowDelete: true - allowEdit: true - allowRead: true - modifyAllRecords: true - viewAllRecords: true \ No newline at end of file diff --git a/packages/standard-objects/community-users/contacts.object.yml b/packages/standard-objects/community-users/contacts.object.yml deleted file mode 100644 index e4f5bffbd2..0000000000 --- a/packages/standard-objects/community-users/contacts.object.yml +++ /dev/null @@ -1,276 +0,0 @@ -name: contacts -label: 联系人 -icon: contact -enable_files: true -enable_search: true -enable_events: true -enable_tasks: true -enable_api: true -enable_audit: true -version: 2 -fields: - name: - type: text - label: 姓名 - required: true - searchable: true - sortable: true - index: true - owner: - label: 我方客户经理 - sortable: true - omit: false - hidden: false - account: - label: 所属客户 - type: master_detail - reference_to: accounts - sortable: true - filterable: true - inlineHelpText: 联系人所链接的客户。输入客户名称、从列表中选择客户或创建客户。 - reports_to_id: - type: lookup - label: 直属上司 - reference_to: contacts - create: true - inlineHelpText: 联系人管理员的姓名。输入联系人名称,或从列表中选择联系人。 - salutation: - type: select - label: 性别 - options: - - label: 男 - value: Male - - label: 女 - value: Female - title: - label: 职务 - type: text - sortable: true - department: - label: 部门 - type: text - sortable: true - inlineHelpText: 关联的业务或组织单元。 - email: - label: 邮件 - type: email - fax: - label: 传真 - type: text - phone: - label: 工作电话 - type: text - mobile: - label: 手机 - type: text - home_phone: - label: 家庭电话 - type: text - #hidden: true - birthdate: - label: 生日 - type: date - #hidden: true - # mailing_city: - # type: text - # label: 邮寄地址-城市 - # group: 地址信息 - mailing_address: - type: textarea - label: 邮寄地址 - is_wide: true - rows: 3 - group: 地址信息 - # mailing_zip: - # type: text - # label: 邮寄地址-邮政编码 - # group: 地址信息 - user: - type: lookup - reference_to: users - label: 外部用户 - hoddy: - label: 爱好 - type: text - is_wide: true - description: - label: 备注 - type: textarea - is_wide: true - last_save_date: - label: 上次保持联系保存日期 - type: date - hidden: true - last_request_date: - label: 上次保持联系请求日期 - type: date - hidden: true - individual: - label: 个人 - type: text - hidden: true - other_city: - type: text - label: 其他地址-城市 - group: 其他地址信息 - hidden: true - other_street: - type: text - label: 其他地址-街道 - group: 其他地址信息 - hidden: true - other_zip: - type: text - label: 其他地址-邮政编码 - group: 其他地址信息 - hidden: true - other_phone: - label: 其他电话 - type: text - hidden: true - assistant: - label: 助理 - type: text - hidden: true - asst_phone: - label: 助理电话 - type: text - hidden: true - do_not_call: - label: 请勿致电 - type: boolean - inlineHelpText: 是否想要通过电话联系联系人。 - hidden: true - has_opted_out_of_email: - label: 退出邮件列表 - type: boolean - inlineHelpText: 是否将联系人包含在群发邮件列表中。 - hidden: true - fax_opt_out: - label: 退出传真列表 - type: boolean - inlineHelpText: 是否将联系人包含在传真中。 - hidden: true - lead_source: - type: select - label: 潜在客户来源 - searchable: true - sortable: true - options: - - label: 广告 - value: Advertisement - - label: 客户活动 - value: Customer_Event - - label: 员工推荐 - value: Employee_Referral - - label: 百度搜索 - value: Baidu_AdWords - - label: 其他 - value: Other - - label: 合作伙伴 - value: Partner - - label: 采购清单 - value: Purchased_List - - label: 贸易展览 - value: Trade_Show - - label: 线上研讨 - value: Webinar - - label: 网站 - value: Website - filterable: true - inlineHelpText: 潜在客户来源,例如,广告、合作伙伴或 Web。 - hidden: true - # contact_currency: - # label: 联系人币种 - # type: lookup - # reference_to: currency - # hidden: true - # inlineHelpText: 联系人中所有币种金额字段的默认币种。仅在使用多种货币的组织中可用。 - # asset_id: - # type: lookup - # label: 资产 - # reference_to: asset - # hidden: true -list_views: - recent: - label: 最近查看 - columns: - - name - - account - - email - - phone - filter_fields: - - name - - account - - email - all: - label: 所有联系人 - columns: - - name - - account - - email - - phone - filter_fields: - - name - - account - - email - mine: - label: 我的联系人 - columns: - - name - - account - - email - - phone - filter_scope: mine - filter_fields: - - name - - account - - email -actions: - createSupplierSpaceUser: - label: 创建供应商用户 - on: record_only_more - viewSupplierSpaceUser: - label: 查看供应商用户 - on: record_only_more - disableSupplierSpaceUser: - label: 禁用供应商用户 - on: record_only_more - createCustomerSpaceUser: - label: 创建客户用户 - on: record_only_more - viewCustomerSpaceUser: - label: 查看客户用户 - on: record_only_more - disableCustomerSpaceUser: - label: 禁用客户用户 - on: record_only_more -permission_set: - user: - allowCreate: true - allowDelete: true - allowEdit: true - allowRead: true - modifyAllRecords: false - viewAllRecords: true - contract_manager: - allowCreate: true - allowEdit: true - allowDelete: true - allowRead: true - modifyAllRecords: true - viewAllRecords: true - admin: - allowCreate: true - allowDelete: true - allowEdit: true - allowRead: true - modifyAllRecords: true - viewAllRecords: true - customer: - allowCreate: false - allowDelete: false - allowEdit: false - allowRead: true - modifyAllRecords: false - viewAllRecords: false diff --git a/services/service-plugin-amis/public/tailwind/tailwind-steedos.css b/services/service-plugin-amis/public/tailwind/tailwind-steedos.css index fc582cea44..f8c032974d 100644 --- a/services/service-plugin-amis/public/tailwind/tailwind-steedos.css +++ b/services/service-plugin-amis/public/tailwind/tailwind-steedos.css @@ -54,6 +54,10 @@ position: absolute } +.relative { + position: relative +} + .sticky { position: sticky } @@ -65,6 +69,10 @@ left: 0px } +.isolate { + isolation: isolate +} + .z-20 { z-index: 20 } diff --git a/services/service-steedos-server/index.js b/services/service-steedos-server/index.js index 719709e54a..e47a922945 100644 --- a/services/service-steedos-server/index.js +++ b/services/service-steedos-server/index.js @@ -36,32 +36,7 @@ module.exports = { apiServer: { enabled: true }, - built_in_plugins: [ - "@steedos/standard-space", - "@steedos/standard-object-database", - "@steedos/standard-process-approval", - "@steedos/standard-collaboration", - "@steedos/standard-ui", - "@steedos/standard-permission", - // "@steedos/webapp-public", - // "@steedos/service-ui", - "@steedos/service-cachers-manager", // 依赖了 steedos/core - "@steedos/workflow", - "@steedos/accounts", - "@steedos/plugin-company", - // "@steedos/word-template", - "@steedos/metadata-api", // ? TODO: 为啥使用meteor package load - "@steedos/data-import", // main 文件不是 package.service.js - "@steedos/service-fields-indexs", // 依赖了meteor collection - // "@steedos/service-accounts", - // "@steedos/service-charts", - // "@steedos/service-pages", - // "@steedos/service-workflow", - // "@steedos/service-plugin-amis", - // "@steedos/standard-process" - // "@steedos/service-files", - // "@steedos/steedos-plugin-schema-builder", - ], + built_in_plugins: getBuiltinPlugins(), plugins: [ ] }, @@ -459,3 +434,36 @@ module.exports = { schema.name = 'steedos-server'; //steedo-server 服务禁止修改name } }; + +function getBuiltinPlugins () { + const plugins = [ + "@steedos/standard-space", + "@steedos/standard-object-database", + "@steedos/standard-process-approval", + "@steedos/standard-collaboration", + "@steedos/standard-ui", + "@steedos/standard-permission", + // "@steedos/webapp-public", + // "@steedos/service-ui", + "@steedos/service-cachers-manager", // 依赖了 steedos/core + "@steedos/workflow", + "@steedos/accounts", + "@steedos/plugin-company", + // "@steedos/word-template", + "@steedos/metadata-api", // ? TODO: 为啥使用meteor package load + "@steedos/data-import", // main 文件不是 package.service.js + "@steedos/service-fields-indexs", // 依赖了meteor collection + // "@steedos/service-accounts", + // "@steedos/service-charts", + // "@steedos/service-pages", + // "@steedos/service-workflow", + // "@steedos/service-plugin-amis", + // "@steedos/standard-process" + // "@steedos/service-files", + // "@steedos/steedos-plugin-schema-builder", + ] + if ("true" != process.env.STEEDOS_ENABLE_STANDARD_ACCOUNTS) { + plugins.unshift("@steedos/standard-accounts"); + } + return plugins +} diff --git a/services/service-steedos-server/package.json b/services/service-steedos-server/package.json index d918e18cb5..9c932f99ee 100644 --- a/services/service-steedos-server/package.json +++ b/services/service-steedos-server/package.json @@ -21,6 +21,7 @@ "@steedos/service-plugin-amis": "2.6.2-beta.26", "@steedos/service-ui": "2.6.2-beta.26", "@steedos/service-workflow": "2.6.2-beta.26", + "@steedos/standard-accounts": "2.6.2-beta.26", "@steedos/standard-collaboration": "2.6.2-beta.26", "@steedos/standard-object-database": "2.6.2-beta.26", "@steedos/standard-permission": "2.6.2-beta.26", diff --git a/packages/standard-objects/objectTranslations/accounts.en/accounts.en.objectTranslation.yml b/services/standard-accounts/main/default/objectTranslations/accounts.en/accounts.en.objectTranslation.yml similarity index 100% rename from packages/standard-objects/objectTranslations/accounts.en/accounts.en.objectTranslation.yml rename to services/standard-accounts/main/default/objectTranslations/accounts.en/accounts.en.objectTranslation.yml diff --git a/packages/standard-objects/objectTranslations/accounts.zh-CN/accounts.zh-CN.objectTranslation.yml b/services/standard-accounts/main/default/objectTranslations/accounts.zh-CN/accounts.zh-CN.objectTranslation.yml similarity index 100% rename from packages/standard-objects/objectTranslations/accounts.zh-CN/accounts.zh-CN.objectTranslation.yml rename to services/standard-accounts/main/default/objectTranslations/accounts.zh-CN/accounts.zh-CN.objectTranslation.yml diff --git a/packages/standard-objects/objectTranslations/contacts.en/contacts.en.objectTranslation.yml b/services/standard-accounts/main/default/objectTranslations/contacts.en/contacts.en.objectTranslation.yml similarity index 100% rename from packages/standard-objects/objectTranslations/contacts.en/contacts.en.objectTranslation.yml rename to services/standard-accounts/main/default/objectTranslations/contacts.en/contacts.en.objectTranslation.yml diff --git a/packages/standard-objects/objectTranslations/contacts.zh-CN/contacts.zh-CN.objectTranslation.yml b/services/standard-accounts/main/default/objectTranslations/contacts.zh-CN/contacts.zh-CN.objectTranslation.yml similarity index 100% rename from packages/standard-objects/objectTranslations/contacts.zh-CN/contacts.zh-CN.objectTranslation.yml rename to services/standard-accounts/main/default/objectTranslations/contacts.zh-CN/contacts.zh-CN.objectTranslation.yml diff --git a/services/standard-accounts/main/default/objects/accounts/accounts.object.yml b/services/standard-accounts/main/default/objects/accounts/accounts.object.yml new file mode 100644 index 0000000000..c7b8c57c1e --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/accounts.object.yml @@ -0,0 +1,12 @@ +name: accounts +label: 业务伙伴 +icon: account +enable_files: true +enable_search: true +enable_events: true +enable_tasks: true +enable_api: true +enable_share: true +enable_audit: true +enable_enhanced_lookup: true +version: 2 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/account_division.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/account_division.field.yml new file mode 100644 index 0000000000..9aa253f658 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/account_division.field.yml @@ -0,0 +1,5 @@ +name: account_division +label: 业务伙伴分部 +type: text +hidden: true +sort_no: 360 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/account_number.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/account_number.field.yml new file mode 100644 index 0000000000..f1e0eae2b0 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/account_number.field.yml @@ -0,0 +1,5 @@ +name: account_number +type: text +label: 业务伙伴编号 +hidden: true +sort_no: 260 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/account_source.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/account_source.field.yml new file mode 100644 index 0000000000..2ba2713bbe --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/account_source.field.yml @@ -0,0 +1,5 @@ +name: account_source +type: text +label: 业务伙伴来源 +hidden: true +sort_no: 320 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/annual_revenue.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/annual_revenue.field.yml new file mode 100644 index 0000000000..7a49a024a2 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/annual_revenue.field.yml @@ -0,0 +1,5 @@ +name: annual_revenue +label: 年收入 +type: currency +hidden: true +sort_no: 340 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/assistant.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/assistant.field.yml new file mode 100644 index 0000000000..40e531da6b --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/assistant.field.yml @@ -0,0 +1,5 @@ +name: assistant +label: 助理 +type: text +hidden: true +sort_no: 380 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/asst_phone.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/asst_phone.field.yml new file mode 100644 index 0000000000..cee09a5aaf --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/asst_phone.field.yml @@ -0,0 +1,5 @@ +name: asst_phone +label: 助理电话 +type: text +hidden: true +sort_no: 390 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/billing_address.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/billing_address.field.yml new file mode 100644 index 0000000000..0e9c2e13cd --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/billing_address.field.yml @@ -0,0 +1,6 @@ +name: billing_address +type: textarea +label: 开单地址 +rows: 3 +group: 地址信息 +sort_no: 240 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/birthdate.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/birthdate.field.yml new file mode 100644 index 0000000000..fdfd2733c6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/birthdate.field.yml @@ -0,0 +1,5 @@ +name: birthdate +label: 生日 +type: date +hidden: true +sort_no: 400 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/credit_code.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/credit_code.field.yml new file mode 100644 index 0000000000..d03da3a971 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/credit_code.field.yml @@ -0,0 +1,5 @@ +name: credit_code +type: text +label: 纳税人识别号(身份证/其他) +searchable: true +sort_no: 160 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/department.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/department.field.yml new file mode 100644 index 0000000000..4afe1a7aaa --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/department.field.yml @@ -0,0 +1,5 @@ +name: department +label: 部门 +type: text +hidden: true +sort_no: 410 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/description.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/description.field.yml new file mode 100644 index 0000000000..565eaa125b --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/description.field.yml @@ -0,0 +1,5 @@ +name: description +label: 描述 +type: textarea +is_wide: true +sort_no: 200 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/do_not_call.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/do_not_call.field.yml new file mode 100644 index 0000000000..8d8b90fb0e --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/do_not_call.field.yml @@ -0,0 +1,6 @@ +name: do_not_call +label: 请勿致电 +type: boolean +inlineHelpText: 是否想要通过电话联系联系人。 +hidden: true +sort_no: 430 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/email.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/email.field.yml new file mode 100644 index 0000000000..b2e3d76fba --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/email.field.yml @@ -0,0 +1,5 @@ +name: email +label: 电子邮件 +type: email +hidden: true +sort_no: 420 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/fax.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/fax.field.yml new file mode 100644 index 0000000000..aeb910b85c --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/fax.field.yml @@ -0,0 +1,4 @@ +name: fax +type: text +label: 传真 +sort_no: 190 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/fax_opt_out.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/fax_opt_out.field.yml new file mode 100644 index 0000000000..0b5e32fdb5 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/fax_opt_out.field.yml @@ -0,0 +1,6 @@ +name: fax_opt_out +label: 退出传真列表 +type: boolean +inlineHelpText: 是否将联系人包含在传真中。 +hidden: true +sort_no: 450 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/has_opted_out_of_email.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/has_opted_out_of_email.field.yml new file mode 100644 index 0000000000..7f15f21143 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/has_opted_out_of_email.field.yml @@ -0,0 +1,6 @@ +name: has_opted_out_of_email +label: 退出邮件列表 +type: boolean +inlineHelpText: 是否将联系人包含在群发邮件列表中。 +hidden: true +sort_no: 440 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/home_phone.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/home_phone.field.yml new file mode 100644 index 0000000000..9958091e45 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/home_phone.field.yml @@ -0,0 +1,5 @@ +name: home_phone +label: 家庭电话 +type: text +hidden: true +sort_no: 460 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/industry.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/industry.field.yml new file mode 100644 index 0000000000..c89134a0b3 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/industry.field.yml @@ -0,0 +1,74 @@ +name: industry +type: select +label: 行业 +searchable: true +sortable: true +options: + - label: 农业 + value: Agriculture + - label: 服饰 + value: Apparel + - label: 银行 + value: Banking + - label: 生物科技 + value: Biotechnology + - label: 化工 + value: Chemicals + - label: 通信 + value: Communications + - label: 建筑 + value: Construction + - label: 咨询 + value: Consulting + - label: 教育 + value: Education + - label: 电子 + value: Electronics + - label: 能源 + value: Energy + - label: 工程 + value: Engineering + - label: 娱乐 + value: Entertainment + - label: 环保 + value: Environmental + - label: 金融 + value: Finance + - label: 食品饮料 + value: Food_&_Beverage + - label: 政府组织 + value: Government + - label: 医疗保健 + value: Healthcare + - label: 服务 + value: Hospitality + - label: 保险 + value: Insurance + - label: 机械 + value: Machinery + - label: 制造 + value: Manufacturing + - label: 媒体 + value: Media + - label: 非牟利组织 + value: Not_For_Profit + - label: 其他 + value: Other + - label: 休闲 + value: Recreation + - label: 零售 + value: Retail + - label: 航运 + value: Shipping + - label: 科技 + value: Technology + - label: 电讯 + value: Telecommunications + - label: 交通运输 + value: Transportation + - label: 公用事业 + value: Utilities + - label: 软件 + value: Software +filterable: true +sort_no: 210 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/invoice_address.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/invoice_address.field.yml new file mode 100644 index 0000000000..fd22852fbc --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/invoice_address.field.yml @@ -0,0 +1,5 @@ +name: invoice_address +label: 开票地址 +group: 开票信息 +type: text +sort_no: 280 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/invoice_bank.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/invoice_bank.field.yml new file mode 100644 index 0000000000..fc6885ef8e --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/invoice_bank.field.yml @@ -0,0 +1,5 @@ +name: invoice_bank +label: 开户行 +group: 开票信息 +type: text +sort_no: 300 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/invoice_combinenum.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/invoice_combinenum.field.yml new file mode 100644 index 0000000000..d547457b7b --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/invoice_combinenum.field.yml @@ -0,0 +1,5 @@ +name: invoice_combinenum +label: 账号 +group: 开票信息 +type: text +sort_no: 310 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/invoice_phone.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/invoice_phone.field.yml new file mode 100644 index 0000000000..61c533e57f --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/invoice_phone.field.yml @@ -0,0 +1,5 @@ +name: invoice_phone +label: 开票电话 +group: 开票信息 +type: text +sort_no: 290 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/is_customer.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/is_customer.field.yml new file mode 100644 index 0000000000..f76aecf6d6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/is_customer.field.yml @@ -0,0 +1,6 @@ +name: is_customer +type: boolean +label: 客户 +hidden: false +omit: false +sort_no: 130 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/is_supplier.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/is_supplier.field.yml new file mode 100644 index 0000000000..181fa0bd23 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/is_supplier.field.yml @@ -0,0 +1,6 @@ +name: is_supplier +type: boolean +label: 供应商 +hidden: false +omit: false +sort_no: 120 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/lead_source.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/lead_source.field.yml new file mode 100644 index 0000000000..8073917e9f --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/lead_source.field.yml @@ -0,0 +1,30 @@ +name: lead_source +type: select +label: 潜在业务伙伴来源 +searchable: true +sortable: true +options: + - label: 广告 + value: Advertisement + - label: 业务伙伴活动 + value: Customer_Event + - label: 员工推荐 + value: Employee_Referral + - label: 百度搜索 + value: Baidu_AdWords + - label: 其他 + value: Other + - label: 合作伙伴 + value: Partner + - label: 采购清单 + value: Purchased_List + - label: 贸易展览 + value: Trade_Show + - label: 线上研讨 + value: Webinar + - label: 网站 + value: Website +filterable: true +inlineHelpText: 潜在业务伙伴来源,例如,广告、合作伙伴或 Web。 +hidden: true +sort_no: 470 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/mailing_city.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/mailing_city.field.yml new file mode 100644 index 0000000000..2e9fff29f6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/mailing_city.field.yml @@ -0,0 +1,6 @@ +name: mailing_city +type: text +label: 邮寄地址-城市 +group: 地址信息 +hidden: true +sort_no: 480 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/mailing_street.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/mailing_street.field.yml new file mode 100644 index 0000000000..e6e19ef317 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/mailing_street.field.yml @@ -0,0 +1,6 @@ +name: mailing_street +type: text +label: 邮寄地址-街道 +group: 地址信息 +hidden: true +sort_no: 490 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/mailing_zip.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/mailing_zip.field.yml new file mode 100644 index 0000000000..cf7d3c9264 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/mailing_zip.field.yml @@ -0,0 +1,6 @@ +name: mailing_zip +type: text +label: 邮寄地址-邮政编码 +group: 地址信息 +hidden: true +sort_no: 500 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/mobile.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/mobile.field.yml new file mode 100644 index 0000000000..3b194fbe42 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/mobile.field.yml @@ -0,0 +1,5 @@ +name: mobile +label: 手机 +type: text +hidden: true +sort_no: 540 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/name.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/name.field.yml new file mode 100644 index 0000000000..120f33a475 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/name.field.yml @@ -0,0 +1,8 @@ +name: name +label: 业务伙伴名称 +type: text +searchable: true +required: true +sortable: true +index: true +sort_no: 100 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/number_of_employees.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/number_of_employees.field.yml new file mode 100644 index 0000000000..2a6cdaaf8d --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/number_of_employees.field.yml @@ -0,0 +1,4 @@ +name: number_of_employees +type: number +label: 员工人数 +sort_no: 220 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/other_city.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/other_city.field.yml new file mode 100644 index 0000000000..1cec4d561e --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/other_city.field.yml @@ -0,0 +1,6 @@ +name: other_city +type: text +label: 其他地址-城市 +group: 其他地址信息 +hidden: true +sort_no: 510 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/other_phone.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/other_phone.field.yml new file mode 100644 index 0000000000..65f4e37069 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/other_phone.field.yml @@ -0,0 +1,5 @@ +name: other_phone +label: 其他电话 +type: text +hidden: true +sort_no: 560 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/other_street.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/other_street.field.yml new file mode 100644 index 0000000000..069d06fe58 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/other_street.field.yml @@ -0,0 +1,6 @@ +name: other_street +type: text +label: 其他地址-街道 +group: 其他地址信息 +hidden: true +sort_no: 520 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/other_zip.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/other_zip.field.yml new file mode 100644 index 0000000000..19d994af35 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/other_zip.field.yml @@ -0,0 +1,6 @@ +name: other_zip +type: text +label: 其他地址-邮政编码 +group: 其他地址信息 +hidden: true +sort_no: 530 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/owner.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/owner.field.yml new file mode 100644 index 0000000000..cc3b07e5b6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/owner.field.yml @@ -0,0 +1,6 @@ +name: owner +label: 我方客户经理 +sortable: true +omit: false +hidden: false +sort_no: 110 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/ownership.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/ownership.field.yml new file mode 100644 index 0000000000..d98bc8a9f6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/ownership.field.yml @@ -0,0 +1,16 @@ +name: ownership +label: 所有权 +type: select +sortable: true +options: + - label: 国营 + value: National + - label: 私营 + value: Private + - label: 子公司 + value: Subcompany + - label: 其他 + value: Others +inlineHelpText: 公司的所有权,例如,公有或私有。 +hidden: true +sort_no: 350 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/parent_id.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/parent_id.field.yml new file mode 100644 index 0000000000..9fee0191f2 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/parent_id.field.yml @@ -0,0 +1,6 @@ +name: parent_id +type: lookup +label: 母公司 +reference_to: accounts +inlineHelpText: 作为大公司或组织的子公司的母公司。父级业务伙伴必须是华炎魔方中的现有业务伙伴。您可输入业务伙伴名称,或使用查找图标选择(或创建)业务伙伴。 +sort_no: 150 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/partner_account.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/partner_account.field.yml new file mode 100644 index 0000000000..72b9d78be8 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/partner_account.field.yml @@ -0,0 +1,5 @@ +name: partner_account +label: 合作伙伴 +type: boolean +hidden: true +sort_no: 370 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/phone.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/phone.field.yml new file mode 100644 index 0000000000..e9039ba3d8 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/phone.field.yml @@ -0,0 +1,5 @@ +name: phone +type: text +label: 电话 +defaultValue: '' +sort_no: 180 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/rating.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/rating.field.yml new file mode 100644 index 0000000000..56bdaf2c95 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/rating.field.yml @@ -0,0 +1,14 @@ +name: rating +label: 分级 +type: select +sortable: true +options: + - label: 非常重要 + value: Hot + - label: 重要 + value: Warm + - label: 普通 + value: Cold +filterable: true +inlineHelpText: 您如何划分此业务伙伴等级的分类,例如,普通、重要。 +sort_no: 270 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/salutation.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/salutation.field.yml new file mode 100644 index 0000000000..23e1360c43 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/salutation.field.yml @@ -0,0 +1,10 @@ +name: salutation +type: select +label: 性别 +hidden: true +options: + - label: 男 + value: Male + - label: 女 + value: Female +sort_no: 550 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/shipping_address.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/shipping_address.field.yml new file mode 100644 index 0000000000..fc78b48250 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/shipping_address.field.yml @@ -0,0 +1,6 @@ +name: shipping_address +type: textarea +label: 发货地址 +rows: 3 +group: 地址信息 +sort_no: 250 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/site.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/site.field.yml new file mode 100644 index 0000000000..1af4ec6727 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/site.field.yml @@ -0,0 +1,6 @@ +name: site +type: text +label: 业务伙伴地点 +hidden: true +inlineHelpText: 可用业务伙伴地点字段来指定同一公司的不同位置。例如,假设百度在北京和上海均设有办公室。创建两个名为百度的业务伙伴,但是业务伙伴地点的值分别为北京和上海。 +sort_no: 330 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/state.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/state.field.yml new file mode 100644 index 0000000000..bbd22036af --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/state.field.yml @@ -0,0 +1,76 @@ +name: state +label: 区域 +type: select +sortable: true +options: + - label: 北京 + value: BJ + - label: 上海 + value: SH + - label: 重庆 + value: CQ + - label: 天津 + value: TJ + - label: 河北 + value: HB + - label: 山西 + value: SX + - label: 辽宁 + value: LN + - label: 吉林 + value: GL + - label: 黑龙江 + value: HLJ + - label: 江苏 + value: JS + - label: 浙江 + value: ZJ + - label: 安徽 + value: AH + - label: 福建 + value: FJ + - label: 江西 + value: JX + - label: 山东 + value: SD + - label: 河南 + value: HN + - label: 湖北 + value: HUB + - label: 湖南 + value: HUN + - label: 广东 + value: GD + - label: 海南 + value: HAN + - label: 四川 + value: SC + - label: 贵州 + value: GZ + - label: 云南 + value: YN + - label: 陕西 + value: SHX + - label: 甘肃 + value: GS + - label: 青海 + value: QH + - label: 内蒙古 + value: NMG + - label: 广西 + value: GX + - label: 西藏 + value: XZ + - label: 宁夏 + value: NX + - label: 新疆 + value: XJ + - label: 香港 + value: HK + - label: 澳门 + value: AM + - label: 台湾 + value: TW +filterable: true +inlineHelpText: 业务伙伴被分配至的区域。 +sort_no: 230 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/type.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/type.field.yml new file mode 100644 index 0000000000..d761096ecf --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/type.field.yml @@ -0,0 +1,27 @@ +name: type +label: 类型 +type: select +sortable: true +options: + - label: 分析师 + value: Analyst + - label: 竞争者 + value: Competitor + - label: 顾客 + value: Customer + - label: 集成商 + value: Integrator + - label: 投资者 + value: Investor + - label: 合作伙伴 + value: Partner + - label: 公关媒体 + value: Press + - label: 潜在 + value: Prospect + - label: 代理商 + value: Reseller + - label: 其他 + value: Other +filterable: true +sort_no: 140 diff --git a/services/standard-accounts/main/default/objects/accounts/fields/website.field.yml b/services/standard-accounts/main/default/objects/accounts/fields/website.field.yml new file mode 100644 index 0000000000..b01cd52e0c --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/fields/website.field.yml @@ -0,0 +1,4 @@ +name: website +type: url +label: 网站 +sort_no: 170 diff --git a/services/standard-accounts/main/default/objects/accounts/listviews/all.listview.yml b/services/standard-accounts/main/default/objects/accounts/listviews/all.listview.yml new file mode 100644 index 0000000000..00ad69752f --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/listviews/all.listview.yml @@ -0,0 +1,22 @@ +name: all +label: 所有业务伙伴 +columns: + - field: name + width: 300 + wrap: true + - field: type + width: 120 + - field: rating + width: 120 + - field: billing_address + width: 400 + - field: shipping_address + width: 400 + - field: owner + width: 120 +filter_scope: space +filter_fields: + - type + - industry + - rating + - name diff --git a/services/standard-accounts/main/default/objects/accounts/listviews/hotRating.listview.yml b/services/standard-accounts/main/default/objects/accounts/listviews/hotRating.listview.yml new file mode 100644 index 0000000000..5233e7a79a --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/listviews/hotRating.listview.yml @@ -0,0 +1,30 @@ +name: hotRating +label: 非常重要的业务伙伴 +filters: ! |- + function anonymous( + ) { + + return [ + ["rating","=","Hot"] + ]; + + } +columns: + - field: name + width: 300 + wrap: true + - field: type + width: 120 + - field: rating + width: 120 + - field: billing_address + width: 400 + - field: shipping_address + width: 400 + - field: owner + width: 120 +filter_scope: space +filter_fields: + - type + - industry + - name diff --git a/services/standard-accounts/main/default/objects/accounts/listviews/mine.listview.yml b/services/standard-accounts/main/default/objects/accounts/listviews/mine.listview.yml new file mode 100644 index 0000000000..3756076240 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/listviews/mine.listview.yml @@ -0,0 +1,22 @@ +name: mine +label: 我的业务伙伴 +columns: + - field: name + width: 300 + wrap: true + - field: type + width: 120 + - field: rating + width: 120 + - field: billing_address + width: 400 + - field: shipping_address + width: 400 + - field: owner + width: 120 +filter_scope: mine +filter_fields: + - type + - industry + - rating + - name diff --git a/services/standard-accounts/main/default/objects/accounts/listviews/recent.listview.yml b/services/standard-accounts/main/default/objects/accounts/listviews/recent.listview.yml new file mode 100644 index 0000000000..4129edc055 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/listviews/recent.listview.yml @@ -0,0 +1,22 @@ +name: recent +label: 最近查看 +columns: + - field: name + width: 300 + wrap: true + - field: type + width: 120 + - field: rating + width: 120 + - field: billing_address + width: 400 + - field: shipping_address + width: 400 + - field: owner + width: 120 +filter_scope: space +filter_fields: + - type + - industry + - rating + - name diff --git a/services/standard-accounts/main/default/objects/accounts/permissions/admin.permission.yml b/services/standard-accounts/main/default/objects/accounts/permissions/admin.permission.yml new file mode 100644 index 0000000000..0da71bafcb --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/permissions/admin.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: admin +allowCreate: true +allowDelete: true +allowEdit: true +allowRead: true +modifyAllRecords: true +viewAllRecords: true diff --git a/services/standard-accounts/main/default/objects/accounts/permissions/contract_manager.permission.yml b/services/standard-accounts/main/default/objects/accounts/permissions/contract_manager.permission.yml new file mode 100644 index 0000000000..7a48cfeb44 --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/permissions/contract_manager.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: contract_manager +allowCreate: true +allowEdit: true +allowDelete: true +allowRead: true +modifyAllRecords: true +viewAllRecords: true diff --git a/services/standard-accounts/main/default/objects/accounts/permissions/user.permission.yml b/services/standard-accounts/main/default/objects/accounts/permissions/user.permission.yml new file mode 100644 index 0000000000..7f8caacd5b --- /dev/null +++ b/services/standard-accounts/main/default/objects/accounts/permissions/user.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: user +allowCreate: true +allowDelete: true +allowEdit: true +allowRead: true +modifyAllRecords: false +viewAllRecords: true diff --git a/services/standard-accounts/main/default/objects/contacts/contacts.object.yml b/services/standard-accounts/main/default/objects/contacts/contacts.object.yml new file mode 100644 index 0000000000..a40ab6309d --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/contacts.object.yml @@ -0,0 +1,10 @@ +name: contacts +label: 联系人 +icon: contact +enable_files: true +enable_search: true +enable_events: true +enable_tasks: true +enable_api: true +enable_audit: true +version: 2 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/account.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/account.field.yml new file mode 100644 index 0000000000..393f27859e --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/account.field.yml @@ -0,0 +1,8 @@ +name: account +label: 所属客户 +type: master_detail +reference_to: accounts +sortable: true +filterable: true +inlineHelpText: 联系人所链接的客户。输入客户名称、从列表中选择客户或创建客户。 +sort_no: 120 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/assistant.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/assistant.field.yml new file mode 100644 index 0000000000..010c897ef6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/assistant.field.yml @@ -0,0 +1,5 @@ +name: assistant +label: 助理 +type: text +hidden: true +sort_no: 340 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/asst_phone.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/asst_phone.field.yml new file mode 100644 index 0000000000..71055e3b98 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/asst_phone.field.yml @@ -0,0 +1,5 @@ +name: asst_phone +label: 助理电话 +type: text +hidden: true +sort_no: 350 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/birthdate.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/birthdate.field.yml new file mode 100644 index 0000000000..befe67093d --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/birthdate.field.yml @@ -0,0 +1,4 @@ +name: birthdate +label: 生日 +type: date +sort_no: 220 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/department.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/department.field.yml new file mode 100644 index 0000000000..b6976bf421 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/department.field.yml @@ -0,0 +1,6 @@ +name: department +label: 部门 +type: text +sortable: true +inlineHelpText: 关联的业务或组织单元。 +sort_no: 160 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/description.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/description.field.yml new file mode 100644 index 0000000000..7a07cf39dd --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/description.field.yml @@ -0,0 +1,5 @@ +name: description +label: 备注 +type: textarea +is_wide: true +sort_no: 260 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/do_not_call.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/do_not_call.field.yml new file mode 100644 index 0000000000..d4968c1ef9 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/do_not_call.field.yml @@ -0,0 +1,6 @@ +name: do_not_call +label: 请勿致电 +type: boolean +inlineHelpText: 是否想要通过电话联系联系人。 +hidden: true +sort_no: 360 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/email.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/email.field.yml new file mode 100644 index 0000000000..5793931b9d --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/email.field.yml @@ -0,0 +1,4 @@ +name: email +label: 邮件 +type: email +sort_no: 170 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/fax.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/fax.field.yml new file mode 100644 index 0000000000..d5af890901 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/fax.field.yml @@ -0,0 +1,4 @@ +name: fax +label: 传真 +type: text +sort_no: 180 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/fax_opt_out.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/fax_opt_out.field.yml new file mode 100644 index 0000000000..74cb55120a --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/fax_opt_out.field.yml @@ -0,0 +1,6 @@ +name: fax_opt_out +label: 退出传真列表 +type: boolean +inlineHelpText: 是否将联系人包含在传真中。 +hidden: true +sort_no: 380 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/has_opted_out_of_email.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/has_opted_out_of_email.field.yml new file mode 100644 index 0000000000..0a716e0626 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/has_opted_out_of_email.field.yml @@ -0,0 +1,6 @@ +name: has_opted_out_of_email +label: 退出邮件列表 +type: boolean +inlineHelpText: 是否将联系人包含在群发邮件列表中。 +hidden: true +sort_no: 370 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/hoddy.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/hoddy.field.yml new file mode 100644 index 0000000000..d8bf7a2268 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/hoddy.field.yml @@ -0,0 +1,5 @@ +name: hoddy +label: 爱好 +type: text +is_wide: true +sort_no: 250 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/home_phone.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/home_phone.field.yml new file mode 100644 index 0000000000..b153a06d94 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/home_phone.field.yml @@ -0,0 +1,4 @@ +name: home_phone +label: 家庭电话 +type: text +sort_no: 210 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/individual.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/individual.field.yml new file mode 100644 index 0000000000..acbf2c9660 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/individual.field.yml @@ -0,0 +1,5 @@ +name: individual +label: 个人 +type: text +hidden: true +sort_no: 290 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/last_request_date.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/last_request_date.field.yml new file mode 100644 index 0000000000..c66d546bac --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/last_request_date.field.yml @@ -0,0 +1,5 @@ +name: last_request_date +label: 上次保持联系请求日期 +type: date +hidden: true +sort_no: 280 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/last_save_date.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/last_save_date.field.yml new file mode 100644 index 0000000000..a39a63d4de --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/last_save_date.field.yml @@ -0,0 +1,5 @@ +name: last_save_date +label: 上次保持联系保存日期 +type: date +hidden: true +sort_no: 270 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/lead_source.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/lead_source.field.yml new file mode 100644 index 0000000000..ac5fc8292d --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/lead_source.field.yml @@ -0,0 +1,30 @@ +name: lead_source +type: select +label: 潜在客户来源 +searchable: true +sortable: true +options: + - label: 广告 + value: Advertisement + - label: 客户活动 + value: Customer_Event + - label: 员工推荐 + value: Employee_Referral + - label: 百度搜索 + value: Baidu_AdWords + - label: 其他 + value: Other + - label: 合作伙伴 + value: Partner + - label: 采购清单 + value: Purchased_List + - label: 贸易展览 + value: Trade_Show + - label: 线上研讨 + value: Webinar + - label: 网站 + value: Website +filterable: true +inlineHelpText: 潜在客户来源,例如,广告、合作伙伴或 Web。 +hidden: true +sort_no: 390 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/mailing_address.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/mailing_address.field.yml new file mode 100644 index 0000000000..0f34ddfa24 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/mailing_address.field.yml @@ -0,0 +1,7 @@ +name: mailing_address +type: textarea +label: 邮寄地址 +is_wide: true +rows: 3 +group: 地址信息 +sort_no: 230 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/mobile.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/mobile.field.yml new file mode 100644 index 0000000000..d05c9d2e4b --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/mobile.field.yml @@ -0,0 +1,4 @@ +name: mobile +label: 手机 +type: text +sort_no: 200 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/name.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/name.field.yml new file mode 100644 index 0000000000..bff2144cec --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/name.field.yml @@ -0,0 +1,8 @@ +name: name +type: text +label: 姓名 +required: true +searchable: true +sortable: true +index: true +sort_no: 100 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/other_city.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/other_city.field.yml new file mode 100644 index 0000000000..03caa0d5a8 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/other_city.field.yml @@ -0,0 +1,6 @@ +name: other_city +type: text +label: 其他地址-城市 +group: 其他地址信息 +hidden: true +sort_no: 300 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/other_phone.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/other_phone.field.yml new file mode 100644 index 0000000000..2394274017 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/other_phone.field.yml @@ -0,0 +1,5 @@ +name: other_phone +label: 其他电话 +type: text +hidden: true +sort_no: 330 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/other_street.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/other_street.field.yml new file mode 100644 index 0000000000..e3b63facd2 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/other_street.field.yml @@ -0,0 +1,6 @@ +name: other_street +type: text +label: 其他地址-街道 +group: 其他地址信息 +hidden: true +sort_no: 310 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/other_zip.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/other_zip.field.yml new file mode 100644 index 0000000000..29b5d20962 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/other_zip.field.yml @@ -0,0 +1,6 @@ +name: other_zip +type: text +label: 其他地址-邮政编码 +group: 其他地址信息 +hidden: true +sort_no: 320 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/owner.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/owner.field.yml new file mode 100644 index 0000000000..cc3b07e5b6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/owner.field.yml @@ -0,0 +1,6 @@ +name: owner +label: 我方客户经理 +sortable: true +omit: false +hidden: false +sort_no: 110 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/phone.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/phone.field.yml new file mode 100644 index 0000000000..d4e4c0ab9f --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/phone.field.yml @@ -0,0 +1,4 @@ +name: phone +label: 工作电话 +type: text +sort_no: 190 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/reports_to_id.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/reports_to_id.field.yml new file mode 100644 index 0000000000..4f2fa166d2 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/reports_to_id.field.yml @@ -0,0 +1,7 @@ +name: reports_to_id +type: lookup +label: 直属上司 +reference_to: contacts +create: true +inlineHelpText: 联系人管理员的姓名。输入联系人名称,或从列表中选择联系人。 +sort_no: 130 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/salutation.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/salutation.field.yml new file mode 100644 index 0000000000..c71d9b8a17 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/salutation.field.yml @@ -0,0 +1,9 @@ +name: salutation +type: select +label: 性别 +options: + - label: 男 + value: Male + - label: 女 + value: Female +sort_no: 140 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/title.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/title.field.yml new file mode 100644 index 0000000000..5d859b2d72 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/title.field.yml @@ -0,0 +1,5 @@ +name: title +label: 职务 +type: text +sortable: true +sort_no: 150 diff --git a/services/standard-accounts/main/default/objects/contacts/fields/user.field.yml b/services/standard-accounts/main/default/objects/contacts/fields/user.field.yml new file mode 100644 index 0000000000..6bdbc98da4 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/fields/user.field.yml @@ -0,0 +1,5 @@ +name: user +type: lookup +reference_to: users +label: 外部用户 +sort_no: 240 diff --git a/services/standard-accounts/main/default/objects/contacts/listviews/all.listview.yml b/services/standard-accounts/main/default/objects/contacts/listviews/all.listview.yml new file mode 100644 index 0000000000..55073cb8b1 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/listviews/all.listview.yml @@ -0,0 +1,11 @@ +name: all +label: 所有联系人 +columns: + - name + - account + - email + - phone +filter_fields: + - name + - account + - email diff --git a/services/standard-accounts/main/default/objects/contacts/listviews/mine.listview.yml b/services/standard-accounts/main/default/objects/contacts/listviews/mine.listview.yml new file mode 100644 index 0000000000..e99d82cf9a --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/listviews/mine.listview.yml @@ -0,0 +1,12 @@ +name: mine +label: 我的联系人 +columns: + - name + - account + - email + - phone +filter_scope: mine +filter_fields: + - name + - account + - email diff --git a/services/standard-accounts/main/default/objects/contacts/listviews/recent.listview.yml b/services/standard-accounts/main/default/objects/contacts/listviews/recent.listview.yml new file mode 100644 index 0000000000..c676c219a6 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/listviews/recent.listview.yml @@ -0,0 +1,11 @@ +name: recent +label: 最近查看 +columns: + - name + - account + - email + - phone +filter_fields: + - name + - account + - email diff --git a/services/standard-accounts/main/default/objects/contacts/permissions/admin.permission.yml b/services/standard-accounts/main/default/objects/contacts/permissions/admin.permission.yml new file mode 100644 index 0000000000..0da71bafcb --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/permissions/admin.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: admin +allowCreate: true +allowDelete: true +allowEdit: true +allowRead: true +modifyAllRecords: true +viewAllRecords: true diff --git a/services/standard-accounts/main/default/objects/contacts/permissions/contract_manager.permission.yml b/services/standard-accounts/main/default/objects/contacts/permissions/contract_manager.permission.yml new file mode 100644 index 0000000000..7a48cfeb44 --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/permissions/contract_manager.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: contract_manager +allowCreate: true +allowEdit: true +allowDelete: true +allowRead: true +modifyAllRecords: true +viewAllRecords: true diff --git a/services/standard-accounts/main/default/objects/contacts/permissions/customer.permission.yml b/services/standard-accounts/main/default/objects/contacts/permissions/customer.permission.yml new file mode 100644 index 0000000000..45b4a4ba6c --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/permissions/customer.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: customer +allowCreate: false +allowDelete: false +allowEdit: false +allowRead: true +modifyAllRecords: false +viewAllRecords: false diff --git a/services/standard-accounts/main/default/objects/contacts/permissions/user.permission.yml b/services/standard-accounts/main/default/objects/contacts/permissions/user.permission.yml new file mode 100644 index 0000000000..7f8caacd5b --- /dev/null +++ b/services/standard-accounts/main/default/objects/contacts/permissions/user.permission.yml @@ -0,0 +1,7 @@ +permission_set_id: user +allowCreate: true +allowDelete: true +allowEdit: true +allowRead: true +modifyAllRecords: false +viewAllRecords: true diff --git a/services/standard-accounts/main/default/permissionsets/contract_manager.permissionset.yml b/services/standard-accounts/main/default/permissionsets/contract_manager.permissionset.yml new file mode 100644 index 0000000000..351270d4af --- /dev/null +++ b/services/standard-accounts/main/default/permissionsets/contract_manager.permissionset.yml @@ -0,0 +1 @@ +name: contract_manager diff --git a/services/standard-accounts/main/default/profiles/admin.profile.yml b/services/standard-accounts/main/default/profiles/admin.profile.yml new file mode 100644 index 0000000000..31981af81f --- /dev/null +++ b/services/standard-accounts/main/default/profiles/admin.profile.yml @@ -0,0 +1 @@ +name: admin diff --git a/services/standard-accounts/main/default/profiles/customer.profile.yml b/services/standard-accounts/main/default/profiles/customer.profile.yml new file mode 100644 index 0000000000..fb42351c4c --- /dev/null +++ b/services/standard-accounts/main/default/profiles/customer.profile.yml @@ -0,0 +1 @@ +name: customer diff --git a/services/standard-accounts/main/default/profiles/user.profile.yml b/services/standard-accounts/main/default/profiles/user.profile.yml new file mode 100644 index 0000000000..dd21f84bee --- /dev/null +++ b/services/standard-accounts/main/default/profiles/user.profile.yml @@ -0,0 +1 @@ +name: user diff --git a/services/standard-accounts/package.json b/services/standard-accounts/package.json new file mode 100644 index 0000000000..19f66b49f3 --- /dev/null +++ b/services/standard-accounts/package.json @@ -0,0 +1,17 @@ +{ + "name": "@steedos/standard-accounts", + "version": "2.6.2-beta.26", + "main": "package.service.js", + "private": false, + "publishConfig": { + "access": "public" + }, + "keywords": [ + "steedos" + ], + "dependencies": {}, + "description": "steedos package", + "repository": {}, + "license": "MIT", + "gitHead": "33e136753b4f5a83ecae093d63ef44b51c2bdfc9" +} \ No newline at end of file diff --git a/services/standard-accounts/package.service.js b/services/standard-accounts/package.service.js new file mode 100644 index 0000000000..fb02c9edde --- /dev/null +++ b/services/standard-accounts/package.service.js @@ -0,0 +1,76 @@ +/* + * @Author: sunhaolin@hotoa.com + * @Date: 2022-12-02 13:17:06 + * @LastEditors: 孙浩林 sunhaolin@steedos.com + * @LastEditTime: 2023-12-29 11:28:53 + * @Description: + */ +"use strict"; +const project = require('./package.json'); +const packageName = project.name; +const packageLoader = require('@steedos/service-meteor-package-loader'); + +/** + * @typedef {import('moleculer').Context} Context Moleculer's Context + */ +module.exports = { + name: packageName, + namespace: "steedos", + mixins: [packageLoader], + /** + * Settings + */ + settings: { + packageInfo: { + path: __dirname, + name: packageName, + isPackage: false + } + }, + + /** + * Dependencies + */ + dependencies: ['~packages-standard-objects'], + + /** + * Actions + */ + actions: { + + }, + + /** + * Events + */ + events: { + + }, + + /** + * Methods + */ + methods: { + + }, + + /** + * Service created lifecycle event handler + */ + created() { + }, + + /** + * Service started lifecycle event handler + */ + async started() { + + }, + + /** + * Service stopped lifecycle event handler + */ + async stopped() { + + } +};