@voplus/morpho-csp 6.0.151 → 6.0.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/es/data/corporate/CompanyPageContext.js.map +1 -0
  2. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +1 -1
  3. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
  4. package/es/modules/corporate/company/components/CompanyProperties/Properties.js +1 -1
  5. package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
  6. package/es/modules/corporate/company/components/CorporateHead/index.js +1 -2
  7. package/es/modules/corporate/company/components/CorporateHead/index.js.map +1 -1
  8. package/es/modules/corporate/company/components/CorporateItem/index.js +1 -2
  9. package/es/modules/corporate/company/components/CorporateItem/index.js.map +1 -1
  10. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +0 -1
  11. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +0 -1
  12. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
  13. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +2 -0
  14. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +1 -1
  15. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -1
  16. package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +1 -1
  17. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +1 -1
  18. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
  19. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +1 -1
  20. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +1 -1
  21. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
  22. package/es/routes.d.ts +0 -18
  23. package/es/routes.js +0 -39
  24. package/es/routes.js.map +1 -1
  25. package/es/style/common.less +55 -0
  26. package/package.json +1 -1
  27. package/es/modules/corporate/company/pages/CompanyPage/CompanyPageContext.js.map +0 -1
  28. package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.d.ts +0 -7
  29. package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.js +0 -25
  30. package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.js.map +0 -1
  31. package/es/modules/corporate/company/pages/CompanyPage/Dashboard.d.ts +0 -9
  32. package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +0 -42
  33. package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +0 -1
  34. package/es/modules/corporate/company/pages/CompanyPage/index.d.ts +0 -6
  35. package/es/modules/corporate/company/pages/CompanyPage/index.js +0 -69
  36. package/es/modules/corporate/company/pages/CompanyPage/index.js.map +0 -1
  37. package/es/modules/corporate/company/pages/CompanyPage/index.less +0 -65
  38. package/es/modules/corporate/company/pages/CompanyPage/state.d.ts +0 -10
  39. package/es/modules/corporate/company/pages/CompanyPage/state.js +0 -55
  40. package/es/modules/corporate/company/pages/CompanyPage/state.js.map +0 -1
  41. package/es/modules/corporate/company/pages/CorporateClientView/AnnualFilingsPage.d.ts +0 -5
  42. package/es/modules/corporate/company/pages/CorporateClientView/AnnualFilingsPage.js +0 -13
  43. package/es/modules/corporate/company/pages/CorporateClientView/AnnualFilingsPage.js.map +0 -1
  44. package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.d.ts +0 -9
  45. package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js +0 -46
  46. package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js.map +0 -1
  47. package/es/modules/corporate/company/pages/CorporateClientView/DisclaimerDialog.d.ts +0 -9
  48. package/es/modules/corporate/company/pages/CorporateClientView/DisclaimerDialog.js +0 -30
  49. package/es/modules/corporate/company/pages/CorporateClientView/DisclaimerDialog.js.map +0 -1
  50. package/es/modules/corporate/company/pages/CorporateClientView/WorkScheduleListPage.d.ts +0 -5
  51. package/es/modules/corporate/company/pages/CorporateClientView/WorkScheduleListPage.js +0 -13
  52. package/es/modules/corporate/company/pages/CorporateClientView/WorkScheduleListPage.js.map +0 -1
  53. package/es/modules/corporate/company/pages/CorporateClientView/index.d.ts +0 -4
  54. package/es/modules/corporate/company/pages/CorporateClientView/index.js +0 -105
  55. package/es/modules/corporate/company/pages/CorporateClientView/index.js.map +0 -1
  56. package/es/modules/corporate/company/pages/CorporateClientView/index.less +0 -92
  57. package/es/modules/corporate/company/pages/CorporateClientView/state.d.ts +0 -10
  58. package/es/modules/corporate/company/pages/CorporateClientView/state.js +0 -55
  59. package/es/modules/corporate/company/pages/CorporateClientView/state.js.map +0 -1
  60. package/es/modules/corporate/company/pages/RegisteresPage/index.d.ts +0 -11
  61. package/es/modules/corporate/company/pages/RegisteresPage/index.js +0 -113
  62. package/es/modules/corporate/company/pages/RegisteresPage/index.js.map +0 -1
  63. package/es/modules/corporate/company/pages/RegisteresPage/index.less +0 -94
  64. package/es/modules/corporate/pages/CorporatePage/index.d.ts +0 -3
  65. package/es/modules/corporate/pages/CorporatePage/index.js +0 -23
  66. package/es/modules/corporate/pages/CorporatePage/index.js.map +0 -1
  67. package/es/modules/corporate/pages/CreateCorporatePage/index.d.ts +0 -3
  68. package/es/modules/corporate/pages/CreateCorporatePage/index.js +0 -57
  69. package/es/modules/corporate/pages/CreateCorporatePage/index.js.map +0 -1
  70. package/es/modules/corporate/pages/CreateCorporatePage/index.less +0 -11
  71. /package/es/{modules/corporate/company/pages/CompanyPage → data/corporate}/CompanyPageContext.d.ts +0 -0
  72. /package/es/{modules/corporate/company/pages/CompanyPage → data/corporate}/CompanyPageContext.js +0 -0
@@ -1,92 +0,0 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
- @import "../../../../../style/common.less";
3
-
4
- :global {
5
- .company-page {
6
- width: 100%;
7
- height: 100%;
8
- overflow: hidden;
9
-
10
- .main-content-nav {
11
- .main-nav-container {
12
- box-shadow: none;
13
- }
14
-
15
- .nav-item {
16
- padding: 0 16px 0 24px;
17
- }
18
- }
19
-
20
- .company-page-content {
21
- padding: 0;
22
- background: #fff;
23
- }
24
- }
25
-
26
- .company-setting-page {
27
- height: 100%;
28
- padding: 24px !important;
29
- background: #fff;
30
- }
31
-
32
- .corporate-client-view-disclaimer {
33
- .ant-modal-body {
34
- height: 600px;
35
- padding: 0 !important;
36
- }
37
-
38
- .corporate-client-view-proseMirror {
39
- .ProseMirror {
40
- font-size: 14px;
41
- }
42
- }
43
-
44
- .corporate-client-disclaimer-content-mobile {
45
- height: 100%;
46
-
47
- .disclaimer-content {
48
- height: 100%;
49
- }
50
-
51
- .accept-button {
52
- padding: 5px 20px;
53
- }
54
- }
55
-
56
- .corporate-client-disclaimer-content-pc {
57
- .disclaimer-content {
58
- height: 540px;
59
- }
60
-
61
- .accept-button {
62
- padding: 10px 20px;
63
- }
64
- }
65
- }
66
- }
67
-
68
- .dashboard-content {
69
- display: flex;
70
- flex-direction: column;
71
- height: 100%;
72
- background: #f5f9fc;
73
-
74
- :global {
75
- .dashboard-related-document {
76
- margin: 0;
77
- }
78
-
79
- .document-table-list-card,
80
- .capital-card,
81
- .shares-card,
82
- .subscriptions-schedule-time-line-card {
83
- margin-bottom: 15px;
84
- }
85
-
86
- .filing-time-line-height {
87
- .subscriptions-schedule-time-line-card {
88
- height: 100%;
89
- }
90
- }
91
- }
92
- }
@@ -1,10 +0,0 @@
1
- import { ICorporate } from "../../../../../data/corporate";
2
- export declare class State {
3
- corporate: ICorporate;
4
- constructor();
5
- update(data: ICorporate): void;
6
- get OfficerId(): string;
7
- get shareTransactionId(): string;
8
- get MemberId(): string;
9
- get ControllerId(): string;
10
- }
@@ -1,55 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { action, computed, makeAutoObservable, observable } from "mobx";
3
- export class State {
4
- constructor() {
5
- Object.defineProperty(this, "corporate", {
6
- enumerable: true,
7
- configurable: true,
8
- writable: true,
9
- value: void 0
10
- });
11
- makeAutoObservable(this);
12
- }
13
- update(data) {
14
- this.corporate = data;
15
- }
16
- get OfficerId() {
17
- var _a, _b;
18
- const officer = (_b = (_a = this.corporate) === null || _a === void 0 ? void 0 : _a.registers) === null || _b === void 0 ? void 0 : _b.find((r) => r.type === "OfficersRegister");
19
- return (officer === null || officer === void 0 ? void 0 : officer.id) || "";
20
- }
21
- get shareTransactionId() {
22
- var _a, _b;
23
- const shareTransaction = (_b = (_a = this.corporate) === null || _a === void 0 ? void 0 : _a.registers) === null || _b === void 0 ? void 0 : _b.find((r) => r.type === "ShareTransactionsRegister");
24
- return (shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.id) || "";
25
- }
26
- get MemberId() {
27
- var _a, _b;
28
- const member = (_b = (_a = this.corporate) === null || _a === void 0 ? void 0 : _a.registers) === null || _b === void 0 ? void 0 : _b.find((r) => r.type === "MembersRegister");
29
- return (member === null || member === void 0 ? void 0 : member.id) || "";
30
- }
31
- get ControllerId() {
32
- var _a, _b;
33
- const controller = (_b = (_a = this.corporate) === null || _a === void 0 ? void 0 : _a.registers) === null || _b === void 0 ? void 0 : _b.find((r) => r.type === "ControllerRegister");
34
- return (controller === null || controller === void 0 ? void 0 : controller.id) || "";
35
- }
36
- }
37
- __decorate([
38
- observable
39
- ], State.prototype, "corporate", void 0);
40
- __decorate([
41
- action
42
- ], State.prototype, "update", null);
43
- __decorate([
44
- computed
45
- ], State.prototype, "OfficerId", null);
46
- __decorate([
47
- computed
48
- ], State.prototype, "shareTransactionId", null);
49
- __decorate([
50
- computed
51
- ], State.prototype, "MemberId", null);
52
- __decorate([
53
- computed
54
- ], State.prototype, "ControllerId", null);
55
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CorporateClientView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIxE,MAAM,OAAO,KAAK;IAG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I,EAAE,CAAC;IAC7B,CAAC;CACD;AA/BmB;IAAlB,UAAU;wCAA8B;AAM1B;IAAd,MAAM;mCAEN;AAES;IAAT,QAAQ;sCAGR;AAES;IAAT,QAAQ;+CAKR;AAES;IAAT,QAAQ;qCAGR;AAES;IAAT,QAAQ;yCAGR"}
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import "./index.less";
3
- declare const RegisteresPage: (props: {
4
- corporateId: string;
5
- controllerRegisterId?: string;
6
- membersRegisterId?: string;
7
- officersRegisterId?: string;
8
- shareTransactionId?: string;
9
- url: string;
10
- }) => React.JSX.Element;
11
- export default RegisteresPage;
@@ -1,113 +0,0 @@
1
- import React, { useState, useEffect } from "react";
2
- import { Tabs, Menu, message, Empty } from "antd";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { useLayout } from "@voplus/morpho-data";
5
- import { useParams } from "react-router-dom";
6
- import { faCoins } from "@fortawesome/pro-solid-svg-icons";
7
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
8
- import { State } from "../../../../../components/CorporateNavMenu/state";
9
- import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
10
- import MemberTableList from "../../member-register/components/MemberTableList";
11
- import OfficerTableList from "../../officer-register/components/OfficerTableList";
12
- import ControllerTableList from "../../controller-register/components/ControllerTableList";
13
- import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
14
- import { useCorporate, useCorporateStore } from "../../../../../data/corporate";
15
- import AddDropDown from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
16
- import classnames from "classnames";
17
- import "./index.less";
18
- const RegisteresPage = (props) => {
19
- const layout = useLayout();
20
- const params = useParams();
21
- const store = useCorporateStore();
22
- const [asideContext] = useState(AsideContent.createContext());
23
- const [loaded, setLoaded] = useState(true);
24
- const { corporateId, controllerRegisterId, membersRegisterId, officersRegisterId, shareTransactionId, url, } = props;
25
- const pStatus = params.status
26
- ? params.status
27
- : controllerRegisterId
28
- ? "controller"
29
- : membersRegisterId
30
- ? "members"
31
- : officersRegisterId
32
- ? "officers"
33
- : shareTransactionId
34
- ? "shareTransactions"
35
- : "";
36
- const [activeKey, setActiveKey] = useState("");
37
- const [state] = useState(new State(corporateId));
38
- const corporate = useCorporate(corporateId, { includes: "registers" });
39
- const items = [];
40
- if (controllerRegisterId) {
41
- items.push({
42
- key: "controller",
43
- label: "Controller",
44
- children: loaded ? (React.createElement(ControllerTableList, { controllerRegisterId: controllerRegisterId, corporateId: corporateId, onReload: onReload })) : null,
45
- });
46
- }
47
- if (membersRegisterId) {
48
- items.push({
49
- key: "members",
50
- label: "Members",
51
- children: React.createElement(MemberTableList, { membersRegisterId: membersRegisterId, corporateId: corporateId }),
52
- });
53
- }
54
- if (officersRegisterId) {
55
- items.push({
56
- key: "officers",
57
- label: "Officers",
58
- children: (React.createElement(OfficerTableList, { officersRegisterId: officersRegisterId, corporateId: corporateId })),
59
- });
60
- }
61
- // if (shareTransactionId) {
62
- // items.push({
63
- // key: "ShareTransactionsRegister",
64
- // label: "Share Transactions",
65
- // children: <ShareTransactionTableList shareTransactionId={shareTransactionId} />,
66
- // });
67
- // }
68
- useEffect(() => {
69
- setActiveKey(pStatus);
70
- }, [pStatus]);
71
- useEffect(() => {
72
- state.update(corporate);
73
- }, [corporate.registers]);
74
- return observe(() => {
75
- var _a;
76
- return (React.createElement(AsideContent, { context: asideContext },
77
- React.createElement("div", { className: classnames("registers-page", { tabs: items.length }) },
78
- React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCoins }), title: "Corporate Stakeholder Registry", description: "Effortlessly Manage and Track Controller, Officers, and Company Members" }),
79
- React.createElement(Tabs, { activeKey: activeKey, className: "registers-page-tabs", onChange: onChange, items: items, tabBarExtraContent: React.createElement("div", null,
80
- React.createElement(AddDropDown, { trigger: ["click"], btnType: "icon", overlay: React.createElement(Menu, { onClick: (e) => onAddRegister(e.key), items: (_a = state.addRegister) === null || _a === void 0 ? void 0 : _a.map((r, i) => {
81
- return {
82
- key: r,
83
- label: React.createElement(React.Fragment, null,
84
- "Register of ",
85
- r.replace(/.(?=[A-Z])/g, "$& ")),
86
- disabled: r !== "OfficersRegister" &&
87
- r !== "ShareTransactionsRegister" &&
88
- r !== "MembersRegister" &&
89
- r !== "ControllerRegister"
90
- ? true
91
- : false,
92
- };
93
- }) }) })) }),
94
- !items.length && React.createElement(Empty, null))));
95
- });
96
- function onReload() {
97
- setLoaded(false);
98
- setTimeout(() => {
99
- setLoaded(true);
100
- }, 100);
101
- }
102
- function onChange(key) {
103
- layout.history.push(`${url}/registeres/${key}`);
104
- }
105
- async function onAddRegister(name) {
106
- const data = await store.register(corporateId, name, {
107
- error: (error) => message.error(error.message),
108
- });
109
- state.update(data);
110
- }
111
- };
112
- export default RegisteresPage;
113
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/RegisteresPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,eAAe,MAAM,kDAAkD,CAAC;AAC/E,OAAO,gBAAgB,MAAM,oDAAoD,CAA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,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,QAAQ,CAAC,GAAW;QAC5B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,eAAe,GAAG,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,UAAU,aAAa,CAAC,IAAY;QACxC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE;YACpD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,94 +0,0 @@
1
- :global {
2
- .registers-page {
3
- height: 100%;
4
-
5
- &.tabs {
6
- display: flex;
7
- flex-direction: column;
8
-
9
- .registers-page-tabs {
10
- flex: 1;
11
- }
12
- }
13
-
14
- .registers-page-tabs {
15
- height: 100px;
16
-
17
- .ant-tabs-nav {
18
- padding: 0 20px;
19
- margin: 0;
20
-
21
- .ant-tabs-tab {
22
- font-size: 14px;
23
- color: #868686;
24
- }
25
-
26
- .ant-tabs-tab-active {
27
- .ant-tabs-tab-btn {
28
- color: #217eb2;
29
- font-weight: 500;
30
- }
31
- }
32
-
33
- .ant-tabs-ink-bar {
34
- background-color: #217eb2;
35
- }
36
- }
37
- }
38
- }
39
-
40
- /** registers 下的 Members / Controller / Officers / Share Transactions Page公用的样式 */
41
- .registers-page-item {
42
- height: 100%;
43
- &.registers-officer-table-list {
44
- display: flex;
45
- flex-direction: column;
46
- }
47
-
48
- .document-table-list-card {
49
- height: 100%;
50
- display: flex;
51
- flex-direction: column;
52
- background: transparent;
53
- box-shadow: none;
54
- padding: 0 20px 8px 20px;
55
- .document-table-list-card-head {
56
- align-items: center;
57
- font-weight: normal;
58
- padding: 20px 0 20px 0;
59
-
60
- .create-new-btn {
61
- color: #fff;
62
- }
63
- }
64
-
65
- .table-list-card {
66
- height: 100%;
67
- // padding: 8px 7px;
68
- border-radius: 0;
69
- }
70
-
71
- .registers-item-info {
72
- width: 50%;
73
-
74
- .title {
75
- color: #217eb2;
76
- font-weight: bold;
77
- font-size: 20px;
78
- line-height: 27px;
79
- }
80
-
81
- .last-updated-time {
82
- color: #868686;
83
- font-size: 14px;
84
- line-height: 19px;
85
- }
86
- }
87
- .search-header-tool {
88
- .ant-input-outlined {
89
- max-width: 320px;
90
- }
91
- }
92
- }
93
- }
94
- }
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const CorporatePage: () => React.JSX.Element;
3
- export default CorporatePage;
@@ -1,23 +0,0 @@
1
- import React, { useState } from "react";
2
- import { Spin } from "antd";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { useCorporate } from "../../../../data/corporate";
5
- import { useParams, useResolvedPath } from "react-router-dom";
6
- import { LoadingOutlined } from "@ant-design/icons";
7
- import { CompanyContext, ReloadState } from "../../company/pages/CompanyPage/CompanyPageContext";
8
- import CompanyPage from "../../company/pages/CompanyPage";
9
- const CorporatePage = () => {
10
- const { id } = useParams();
11
- const [context] = useState(() => new ReloadState());
12
- const url = useResolvedPath("").pathname;
13
- /** Unit route 查看 View Corporate 时 id 为 unitId, api为/api/units/${id}/corporate,需要判断是否为unit route */
14
- const corporate = useCorporate(id, {
15
- reload: true,
16
- unit: /corporates/.test(url),
17
- includes: "registers",
18
- });
19
- return observe(() => (React.createElement(CompanyContext.Provider, { value: context }, corporate.loading ? (React.createElement("div", { style: { textAlign: "center" } },
20
- React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) }))) : (context.pageRefresh && React.createElement(CompanyPage, { id: corporate.id })))));
21
- };
22
- export default CorporatePage;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/pages/CorporatePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAE1D,MAAM,aAAa,GAAG,GAAG,EAAE;IAC1B,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;IACpD,MAAM,GAAG,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;IACzC,oGAAoG;IACpG,MAAM,SAAS,GAAG,YAAY,CAAC,EAAG,EAAE;QACnC,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC;QAC5B,QAAQ,EAAE,WAAW;KACrB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IACrC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CACpB,6BAAK,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;QAClC,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,eAAe,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG,GAAI,CACjE,CACN,CAAC,CAAC,CAAC,CACH,OAAO,CAAC,WAAW,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,GAAI,CACxD,CACwB,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const CreateCorporatePage: () => React.JSX.Element;
3
- export default CreateCorporatePage;
@@ -1,57 +0,0 @@
1
- import React, { useState } from "react";
2
- import { Result, Button, Spin, message, Space } from "antd";
3
- import { observe, useAutorunEffect } from "@voplus/morpho-ui";
4
- import { useParams } from "react-router";
5
- import { useUnit, useUnitStore } from "@voplus/morpho-org";
6
- import { TabItemContext, TabItemStore, useTabItem, useLayout } from "@voplus/morpho-data";
7
- import { useCenterListEffect } from "@voplus/morpho-center-core/es/data";
8
- import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
9
- import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
10
- import CenterSelect from "@voplus/morpho-org/es/components/CenterSelect";
11
- import Routes from "../../../../routes";
12
- import styles from "./index.less";
13
- const CreateCorporatePage = () => {
14
- const [centerTotal, setCenterTotal] = useState(0);
15
- const [centerId, setCenterId] = useState("");
16
- const { id } = useParams();
17
- const unit = useUnit(id);
18
- const unitStore = useUnitStore();
19
- const store = new TabItemStore({ url: "" });
20
- const tab = useTabItem();
21
- const layout = useLayout();
22
- useAutorunEffect(() => unit.loaded && (tab.title = unit.name));
23
- useCenterListEffect(null, (result, total) => {
24
- setCenterTotal(total || 0);
25
- if (total === 1) {
26
- setCenterId(result[0].id);
27
- }
28
- }, {
29
- Total: true,
30
- Filters: [{ c: "NodeType", o: "=", l: "And", v1: "SecretaryCenter" }],
31
- });
32
- return observe(() => {
33
- var _a;
34
- return (React.createElement(TabItemContext.Provider, { value: store },
35
- React.createElement(MainContent, { className: styles["corporate-empty-view"] },
36
- React.createElement("div", { className: "corporate-context" }, !unit.loaded ? (React.createElement(Spin, null)) : ((_a = unit.stereoTypes) === null || _a === void 0 ? void 0 : _a.includes("Corporate")) ? (Redirect()) : (React.createElement(Result, { status: "404", title: React.createElement(UnitNameNoteAlert, { id: unit.id, name: unit.name }), subTitle: "Corporate not found. Do you wish to create one ?", extra: React.createElement(Space, null,
37
- centerTotal > 1 ? (React.createElement(CenterSelect, { filter: "SecretaryCenter", onChange: (id, center) => setCenterId(id) })) : null,
38
- React.createElement(Button, { type: "primary", onClick: onCreate }, "Create Corporate Type")) }))))));
39
- });
40
- function Redirect() {
41
- layout.history.replace(Routes.CorporatePage.getUrl(unit.id));
42
- }
43
- async function onCreate() {
44
- await unitStore
45
- .addCorporateType({
46
- data: {
47
- UnitId: id,
48
- CenterId: centerId,
49
- },
50
- error: (error) => message.error(error.message),
51
- })
52
- .then((res) => res.id && layout.history.replace(Routes.CorporatePage.getUrl(unit.id)));
53
- // CorporatePage 统一传递 unitId, corporateId 和 unitId 混传容易导致报错
54
- }
55
- };
56
- export default CreateCorporatePage;
57
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/pages/CreateCorporatePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,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AAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,MAAM,SAAS;aACb,gBAAgB,CAAC;YACjB,IAAI,EAAE;gBACL,MAAM,EAAE,EAAG;gBACX,QAAQ,EAAE,QAAQ;aAClB;YACD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC;aACD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxF,2DAA2D;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,11 +0,0 @@
1
- .corporate-empty-view {
2
- :global {
3
- .corporate-context {
4
- display: flex;
5
- justify-content: center;
6
- align-items: center;
7
- padding: 0;
8
- background: #ffffff;
9
- }
10
- }
11
- }