@voplus/morpho-csp 1.0.0-dev003 → 1.0.0-dev004

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 (139) hide show
  1. package/es/data/corporate/CorporateStore.d.ts +24 -0
  2. package/es/data/corporate/CorporateStore.js +43 -0
  3. package/es/data/corporate/CorporateStore.js.map +1 -0
  4. package/es/data/corporate/hooks.d.ts +10 -0
  5. package/es/data/corporate/hooks.js +14 -0
  6. package/es/data/corporate/hooks.js.map +1 -0
  7. package/es/data/corporate/index.d.ts +4 -0
  8. package/es/data/corporate/index.js +5 -0
  9. package/es/data/corporate/index.js.map +1 -0
  10. package/es/data/corporate/interfaces.d.ts +26 -0
  11. package/es/data/corporate/interfaces.js +1 -0
  12. package/es/data/corporate/interfaces.js.map +1 -0
  13. package/es/data/corporate/types.d.ts +11 -0
  14. package/es/data/corporate/types.js +1 -0
  15. package/es/data/corporate/types.js.map +1 -0
  16. package/es/modules/corporate/CorporateDefaultView/index.d.ts +3 -0
  17. package/es/modules/corporate/CorporateDefaultView/index.js +18 -0
  18. package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -0
  19. package/es/modules/corporate/DocumentIconList/index.d.ts +7 -0
  20. package/es/modules/corporate/DocumentIconList/index.js +32 -0
  21. package/es/modules/corporate/DocumentIconList/index.js.map +1 -0
  22. package/es/modules/corporate/DocumentIconList/index.less +14 -0
  23. package/es/modules/corporate/company/CompanyDefaultView/index.d.ts +7 -0
  24. package/es/modules/corporate/company/CompanyDefaultView/index.js +43 -0
  25. package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -0
  26. package/es/modules/corporate/company/CompanyDefaultView/index.less +25 -0
  27. package/es/modules/corporate/company/CompanyDetailsView/index.d.ts +6 -0
  28. package/es/modules/corporate/company/CompanyDetailsView/index.js +91 -0
  29. package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -0
  30. package/es/modules/corporate/company/CompanyDetailsView/index.less +36 -0
  31. package/es/modules/corporate/company/CompanyDetailsView/state.d.ts +20 -0
  32. package/es/modules/corporate/company/CompanyDetailsView/state.js +40 -0
  33. package/es/modules/corporate/company/CompanyDetailsView/state.js.map +1 -0
  34. package/es/modules/corporate/company/Identity/IdentifyDetail/index.d.ts +6 -0
  35. package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +31 -0
  36. package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -0
  37. package/es/modules/corporate/company/Identity/IdentifyDetail/index.less +22 -0
  38. package/es/modules/corporate/company/Identity/IdentityInformation/index.d.ts +5 -0
  39. package/es/modules/corporate/company/Identity/IdentityInformation/index.js +59 -0
  40. package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -0
  41. package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +15 -0
  42. package/es/modules/corporate/company/Identity/IdentityInformation/state.js +38 -0
  43. package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -0
  44. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.d.ts +3 -0
  45. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +36 -0
  46. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -0
  47. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.d.ts +3 -0
  48. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +16 -0
  49. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -0
  50. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.d.ts +3 -0
  51. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +32 -0
  52. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -0
  53. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.d.ts +3 -0
  54. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +32 -0
  55. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -0
  56. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.d.ts +3 -0
  57. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +33 -0
  58. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -0
  59. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +7 -0
  60. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +65 -0
  61. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -0
  62. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +55 -0
  63. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +37 -0
  64. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +71 -0
  65. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -0
  66. package/es/modules/corporate/company/Identity/data/IdentityStore.d.ts +23 -0
  67. package/es/modules/corporate/company/Identity/data/IdentityStore.js +55 -0
  68. package/es/modules/corporate/company/Identity/data/IdentityStore.js.map +1 -0
  69. package/es/modules/corporate/company/Identity/data/hooks.d.ts +13 -0
  70. package/es/modules/corporate/company/Identity/data/hooks.js +31 -0
  71. package/es/modules/corporate/company/Identity/data/hooks.js.map +1 -0
  72. package/es/modules/corporate/company/Identity/data/index.d.ts +4 -0
  73. package/es/modules/corporate/company/Identity/data/index.js +5 -0
  74. package/es/modules/corporate/company/Identity/data/index.js.map +1 -0
  75. package/es/modules/corporate/company/Identity/data/interfaces.d.ts +17 -0
  76. package/es/modules/corporate/company/Identity/data/interfaces.js +1 -0
  77. package/es/modules/corporate/company/Identity/data/interfaces.js.map +1 -0
  78. package/es/modules/corporate/company/Identity/data/types.d.ts +16 -0
  79. package/es/modules/corporate/company/Identity/data/types.js +1 -0
  80. package/es/modules/corporate/company/Identity/data/types.js.map +1 -0
  81. package/es/modules/corporate/company/Officer/ContactInformation/index.d.ts +6 -0
  82. package/es/modules/corporate/company/Officer/ContactInformation/index.js +54 -0
  83. package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -0
  84. package/es/modules/corporate/company/Officer/ContactInformation/state.d.ts +20 -0
  85. package/es/modules/corporate/company/Officer/ContactInformation/state.js +30 -0
  86. package/es/modules/corporate/company/Officer/ContactInformation/state.js.map +1 -0
  87. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.d.ts +6 -0
  88. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +33 -0
  89. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -0
  90. package/es/modules/corporate/company/Officer/OfficerDefaultView/index.less +48 -0
  91. package/es/modules/corporate/company/Officer/OfficerInformation/index.d.ts +3 -0
  92. package/es/modules/corporate/company/Officer/OfficerInformation/index.js +15 -0
  93. package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -0
  94. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.d.ts +7 -0
  95. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +83 -0
  96. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -0
  97. package/es/modules/corporate/company/OfficerRegister/OfficerList/index.less +15 -0
  98. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +7 -0
  99. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +23 -0
  100. package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -0
  101. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.d.ts +6 -0
  102. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +51 -0
  103. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -0
  104. package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.less +20 -0
  105. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.d.ts +3 -0
  106. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +20 -0
  107. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -0
  108. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.less +5 -0
  109. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +10 -0
  110. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +25 -0
  111. package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -0
  112. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
  113. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +12 -8
  114. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
  115. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +2 -2
  116. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +1 -1
  117. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
  118. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +16 -20
  119. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
  120. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +11 -6
  121. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
  122. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.less +2 -6
  123. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +4 -2
  124. package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
  125. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js +2 -2
  126. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +1 -1
  127. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +8 -14
  128. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
  129. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +10 -0
  130. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +34 -0
  131. package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -0
  132. package/es/routes.d.ts +6 -0
  133. package/es/routes.js +14 -1
  134. package/es/routes.js.map +1 -1
  135. package/es/style/common.less +6 -0
  136. package/package.json +11 -20
  137. package/es/data/metas.d.ts +0 -0
  138. package/es/data/metas.js +0 -1
  139. package/es/data/metas.js.map +0 -1
@@ -0,0 +1,24 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { Store } from "@voplus/morpho-data";
3
+ import { ICorporate } from "./interfaces";
4
+ import { ICorporateEditOptions } from "./types";
5
+ import { LoadDocumentOptions } from "@voplus/morpho-document-core";
6
+ /** Corporate store supply backend functions. */
7
+ export declare class CorporateStore extends Store {
8
+ readonly endpoint: ApiEndPoint;
9
+ /** Name of the store */
10
+ readonly name: string;
11
+ constructor(endpoint: ApiEndPoint);
12
+ /** Load a corporate from server.
13
+ * @param {string} id - id of the corporate or unit.
14
+ * @param {LoadDocumentOptions} options - Optional load options.
15
+ * 如果从unit 目录下打开使用 /api/units/{unitid}/corporate api,其它情况使用/api/corporates/{id}
16
+ */
17
+ load(id: string, options: LoadDocumentOptions & {
18
+ unit?: boolean;
19
+ }): Promise<ICorporate>;
20
+ /** Edit an existing item on server. */
21
+ edit(id: string, options: ICorporateEditOptions): Promise<any>;
22
+ }
23
+ /** 响应钩子检索 CorporateStore */
24
+ export declare const useCorporateStore: () => CorporateStore;
@@ -0,0 +1,43 @@
1
+ import { RequestBuilder } from "@voplus/api";
2
+ import { Store, useApplicationContext } from "@voplus/morpho-data";
3
+ const StoreName = "CorporateStore";
4
+ /** Corporate store supply backend functions. */
5
+ export class CorporateStore extends Store {
6
+ constructor(endpoint) {
7
+ super();
8
+ this.endpoint = endpoint;
9
+ /** Name of the store */
10
+ this.name = StoreName;
11
+ }
12
+ /** Load a corporate from server.
13
+ * @param {string} id - id of the corporate or unit.
14
+ * @param {LoadDocumentOptions} options - Optional load options.
15
+ * 如果从unit 目录下打开使用 /api/units/{unitid}/corporate api,其它情况使用/api/corporates/{id}
16
+ */
17
+ async load(id, options) {
18
+ let query = "";
19
+ if (options.includes)
20
+ query = query.concat(`includes=${options.includes}`);
21
+ if (query)
22
+ query = "?".concat(query);
23
+ const path = options.unit
24
+ ? `/api/units/${id}/corporate${query}`
25
+ : `/api/corporates/${id}${query}`;
26
+ const r = await this.endpoint.get(path);
27
+ return await r.json();
28
+ }
29
+ /** Edit an existing item on server. */
30
+ async edit(id, options) {
31
+ const r = await this.endpoint.post(`/api/corporate/${id}/info`, new RequestBuilder().json(options));
32
+ return await r.json();
33
+ }
34
+ }
35
+ /** 响应钩子检索 CorporateStore */
36
+ export const useCorporateStore = () => {
37
+ const context = useApplicationContext();
38
+ if (!context.getStore(StoreName)) {
39
+ context.addStore(new CorporateStore(context.api.currentEndPoint));
40
+ }
41
+ return context.getStore(StoreName);
42
+ };
43
+ //# sourceMappingURL=CorporateStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateStore.js","sourceRoot":"","sources":["../../../src/data/corporate/CorporateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAMnE,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAEnC,gDAAgD;AAChD,MAAM,OAAO,cAAe,SAAQ,KAAK;IAIxC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QAD0B,aAAQ,GAAR,QAAQ,CAAa;QAHxD,wBAAwB;QACR,SAAI,GAAW,SAAS,CAAC;IAIzC,CAAC;IAED;;;;OAIG;IAEI,KAAK,CAAC,IAAI,CAChB,EAAU,EACV,OAAiD;QAEjD,IAAI,KAAK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
+ * @param {LoadDocumentOptions} options - options
5
+ */
6
+ export declare const useCorporate: (id: string, options?: ({
7
+ includes?: string | undefined;
8
+ } & import("@voplus/morpho-data").LoadOptions<import("@voplus/morpho-document-core").IDocument> & {
9
+ unit?: boolean | undefined;
10
+ }) | undefined) => ICorporate;
@@ -0,0 +1,14 @@
1
+ import { useDocumentStore } from "@voplus/morpho-document-core";
2
+ import { useCorporateStore } from "./CorporateStore";
3
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
4
+ /** React hook to retrieve a quotation
5
+ * @param {string} id - id of the quotation
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export const useCorporate = (id, options) => {
9
+ options = options ? options : {};
10
+ const store = useCorporateStore();
11
+ const documents = useDocumentStore();
12
+ return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
13
+ };
14
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/corporate/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAE,OAAkD,EAAE,EAAE;IAC9F,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACO,CAAC;AACjB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./CorporateStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./CorporateStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/corporate/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { IAddress } from "@voplus/morpho-org";
2
+ import { IDocument } from "@voplus/morpho-document-core";
3
+ export interface ICorporate extends IDocument {
4
+ /** id of corporate */
5
+ id: string;
6
+ /** name of unit */
7
+ name: string;
8
+ /** */
9
+ jurisdiction: string;
10
+ /** type of corporate */
11
+ corporateType: string;
12
+ /** */
13
+ liabilityType: string;
14
+ /** id of registration of company */
15
+ registersId: string;
16
+ /** number of registration of company */
17
+ registrationNumber: number;
18
+ /** date of registration of company */
19
+ registrationDate: Date;
20
+ /** address of registration of company */
21
+ registeredAddress: IAddress;
22
+ /** */
23
+ allowedJurisdictions: string[];
24
+ /** 客户查看时不可编辑 */
25
+ allowEdit: boolean;
26
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/corporate/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IAddress } from "@voplus/morpho-org";
2
+ export declare type ICorporateEditOptions = {
3
+ /** Number of Registration */
4
+ RegistrationNumber: number | string;
5
+ /** Jurisdiction of Company */
6
+ Jurisdiction: string;
7
+ /** Address of Registration Company */
8
+ RegisteredAddress: IAddress;
9
+ /** Date of Registration */
10
+ RegistrationDate: Date;
11
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/corporate/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CorporateDefaultView: () => JSX.Element;
3
+ export default CorporateDefaultView;
@@ -0,0 +1,18 @@
1
+ import CompanyDefaultView from "../company/CompanyDefaultView";
2
+ import { LoadingOutlined } from "@ant-design/icons";
3
+ import React from "react";
4
+ import { Spin } from "@voplus/antd";
5
+ import { useCorporate } from "../../../data/corporate";
6
+ import { useObserver } from "mobx-react-lite";
7
+ import { useRouteMatch } from "react-router";
8
+ const CorporateDefaultView = () => {
9
+ const match = useRouteMatch();
10
+ const id = match.params.id;
11
+ const unitId = match.params.unitId;
12
+ const corporate = useCorporate(unitId || id, { reload: true, unit: !!unitId });
13
+ console.log(corporate, "corporate");
14
+ return useObserver(() => (React.createElement(React.Fragment, null, corporate.loading ? (React.createElement("div", { style: { textAlign: "center" } },
15
+ React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) }))) : (React.createElement(CompanyDefaultView, { corporate: corporate })))));
16
+ };
17
+ export default CorporateDefaultView;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/corporate/CorporateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACjC,MAAM,KAAK,GAAG,aAAa,EAAmC,CAAC;IAC/D,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IAEnC,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/E,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAEpC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ,QACb,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,oBAAC,kBAAkB,IAAC,SAAS,EAAE,SAAS,GAAI,CAC5C,CACe,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const DocumentIconList: (props: {
4
+ id: string;
5
+ scroll?: boolean;
6
+ }) => JSX.Element;
7
+ export default DocumentIconList;
@@ -0,0 +1,32 @@
1
+ import "./index.less";
2
+ import { Empty, Spin } from "@voplus/antd";
3
+ import { useDocumentListEffect } from "@voplus/morpho-document-core";
4
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
5
+ import DocumentIcon from "@voplus/morpho-document/es/pages/VSubmit/components/DocumentIcon";
6
+ import { LoadingOutlined } from "@ant-design/icons";
7
+ import React from "react";
8
+ import Scrollbars from "react-custom-scrollbars";
9
+ import { useObserver } from "mobx-react-lite";
10
+ const DocumentIconList = (props) => {
11
+ const { id, scroll } = props;
12
+ const list = useCreateListDataState({
13
+ filterDefaults: {
14
+ includes: "tags,path",
15
+ // page: { Page: 1, PageSize: 100 },
16
+ filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }]
17
+ }
18
+ }, [id]);
19
+ /** 把ListDataState传给useDocumentListEffect,使之可以自動更新loading, hasmore. */
20
+ useDocumentListEffect(list, result => list.union(result), list.filters.options);
21
+ const ListView = useObserver(() => (React.createElement(React.Fragment, null,
22
+ !list.isEmpty && (React.createElement("div", { className: "document-icon-view_list" }, list.data.map(i => (React.createElement(DocumentIcon, { id: i.id, key: i.id }))))),
23
+ list.loading && (React.createElement("div", { className: "document-icon-list_loading" },
24
+ React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))),
25
+ list.isEmpty && !list.loading && React.createElement(Empty, { className: "document-icon-list_empty" }))));
26
+ return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list }, scroll !== false ? React.createElement(Scrollbars, { autoHide: true }, ListView) : ListView)));
27
+ function loadMore() {
28
+ list.triggerNextPage();
29
+ }
30
+ };
31
+ export default DocumentIconList;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/corporate/DocumentIconList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAGN,qBAAqB,EACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,YAAY,MAAM,kEAAkE,CAAC;AAE5F,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAA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AI,oBAAC,KAAK,IAAC,SAAS,EAAC,0BAA0B,GAAG,CAChE,CACjB,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,IACnC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,oBAAC,UAAU,IAAC,QAAQ,UAAE,QAAQ,CAAc,CAAC,CAAC,CAAC,QAAQ,CACjD,CAC3B,CAAC,CAAC;IACH,SAAS,QAAQ;QAChB,IAAI,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ :global {
2
+ .document-icon-view_list {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ padding: 0.75rem;
6
+ margin: 1rem 1.25rem;
7
+ background-color: #fff;
8
+ }
9
+ .document-icon-list_loading,
10
+ .document-icon-list_empty {
11
+ padding: 20px 0;
12
+ text-align: center;
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ import { ICorporate } from "../../../../data/corporate";
4
+ declare const CompanyDefaultView: (props: {
5
+ corporate: ICorporate;
6
+ }) => JSX.Element;
7
+ export default CompanyDefaultView;
@@ -0,0 +1,43 @@
1
+ import "./index.less";
2
+ import { useDocumentListEffect } from "@voplus/morpho-document-core";
3
+ import React, { useState } from "react";
4
+ import CompanyDetailsView from "../CompanyDetailsView";
5
+ import DocumentIconList from "../../DocumentIconList";
6
+ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
7
+ import { Menu } from "@voplus/antd";
8
+ import OfficerDefaultView from "../Officer/OfficerDefaultView";
9
+ import OfficerRegisterDefaultView from "../OfficerRegister/OfficerRegisterDefaultView";
10
+ import Scrollbars from "react-custom-scrollbars";
11
+ import { useObserver } from "mobx-react-lite";
12
+ import { useTabItem } from "@voplus/morpho-data";
13
+ const CompanyDefaultView = (props) => {
14
+ const { corporate } = props;
15
+ const [menuKey, setMenuKey] = useState("Company");
16
+ const [documents, setDocuments] = useState([]);
17
+ useDocumentListEffect(null, (list) => {
18
+ setDocuments(list || []);
19
+ }, { Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporate.registersId }] });
20
+ const tab = useTabItem();
21
+ // useEffect(() => {
22
+ // tab.title = corporate?.name;
23
+ // }, [corporate?.name]);
24
+ return useObserver(() => (React.createElement(MainContent, { className: "company-default-view" },
25
+ React.createElement(MainContent.Nav, { collapsible: true },
26
+ React.createElement(Scrollbars, { autoHide: true },
27
+ React.createElement(Menu, { mode: "inline", defaultSelectedKeys: ["Company"], onClick: onClick },
28
+ React.createElement(Menu.Item, { key: "Company" }, "Company Details"),
29
+ React.createElement(Menu.SubMenu, { key: "Registers", title: "Registers" },
30
+ React.createElement(Menu.Item, { key: "RegisterOfficers" }, "Officers"),
31
+ React.createElement(Menu.Item, { key: "RegisterShare" }, "RegisterShare")),
32
+ React.createElement(Menu.Item, { key: "Documents" }, "Documents")))),
33
+ menuKey === "Documents" ? (React.createElement(DocumentIconList, { id: "c4f7edf7-53b1-41f4-93cf-ac2b00239da8" })) : // : menuKey === "Registers" ? (
34
+ // <DocumentCardList id={corporate.registersId} />
35
+ // )
36
+ menuKey === "RegisterOfficers" ? (React.createElement(OfficerDefaultView, { id: "1b9bef21-526f-4ea1-8e3f-12ced14ef92c" })) : menuKey === "RegisterShare" ? (React.createElement(OfficerRegisterDefaultView, { id: "36400a12-643b-48da-846e-ac30002c9f7b" })) : (React.createElement(CompanyDetailsView, { id: corporate.id })))));
37
+ function onClick({ key }) {
38
+ setMenuKey(key.toString());
39
+ console.log(key, "key");
40
+ }
41
+ };
42
+ export default CompanyDefaultView;
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/company/CompanyDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,c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AC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,25 @@
1
+ :global {
2
+ .company-default-view {
3
+ width: 100%;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ .main-content-nav {
7
+ width: 280px;
8
+ box-shadow: 2px 0 8px 0px rgba(0, 0, 0, 0.15) !important;
9
+ .main-nav-container {
10
+ box-shadow: none;
11
+ }
12
+ .ant-menu {
13
+ font-weight: normal;
14
+ color: #000 !important;
15
+ .ant-menu-item:not(.ant-menu-item-disabled) {
16
+ color: #000 !important;
17
+ }
18
+ .svg-inline--fa {
19
+ min-width: 14px;
20
+ margin-right: 10px;
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const CompanyDetailsView: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default CompanyDetailsView;
@@ -0,0 +1,91 @@
1
+ import "./index.less";
2
+ import { Button, DatePicker, Descriptions, Input, Table, Timeline, Tooltip } from "@voplus/antd";
3
+ import React, { useState } from "react";
4
+ import { useCorporate, useCorporateStore } from "../../../../data/corporate";
5
+ import Address from "@voplus/morpho-org/es/components/Address";
6
+ import Card from "@voplus/morpho-ui/es/controls/Card";
7
+ import { EditOutlined } from "@ant-design/icons";
8
+ import { InputCountry } from "@voplus/morpho-ui";
9
+ import Scrollbars from "react-custom-scrollbars";
10
+ import { State } from "./state";
11
+ import moment from "moment";
12
+ import { useObserver } from "mobx-react-lite";
13
+ const CompanyDetailsView = (props) => {
14
+ const { id } = props;
15
+ const corporate = useCorporate(id);
16
+ const [state] = useState(new State());
17
+ const corporateStore = useCorporateStore();
18
+ const capital = [
19
+ {
20
+ Currency: "SGD",
21
+ Share: "Ordinary",
22
+ Amount: "$50,000",
23
+ UnpaidAmount: "$49,999"
24
+ }
25
+ ];
26
+ const guaranteed = [{ Currency: "SGD", Amount: "$50,000" }];
27
+ return useObserver(() => {
28
+ var _a, _b, _c, _d, _e;
29
+ return (React.createElement(Scrollbars, null,
30
+ React.createElement("div", { className: "company-details-view" },
31
+ React.createElement(Card, { shadow: true, className: "card-company" },
32
+ React.createElement(Descriptions, { title: "Company", layout: state.editable ? "vertical" : "horizontal", extra: corporate.allowEdit ? (React.createElement(React.Fragment, null, state.editable ? (React.createElement(React.Fragment, null,
33
+ React.createElement(Button, { type: "text", onClick: () => (state.editable = false) }, "Cancel"),
34
+ React.createElement(Button, { type: "link", loading: state.loading, onClick: onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
35
+ React.createElement(Button, { type: "link", onClick: onEdit, className: "hover-edit-btn" },
36
+ React.createElement(EditOutlined, null)))))) : ("") },
37
+ React.createElement(Descriptions.Item, { label: "Country of Registration" }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.jurisdiction, onChange: (v) => (state.jurisdiction = v) })) : (corporate.jurisdiction)),
38
+ React.createElement(Descriptions.Item, { label: "Type" }, corporate.liabilityType),
39
+ React.createElement(Descriptions.Item, { label: "Registration Number" }, state.editable ? (React.createElement(Input, { value: state.registrationNumber, onChange: e => (state.registrationNumber = e.target.value) })) : (corporate.registrationNumber)),
40
+ React.createElement(Descriptions.Item, { label: "Registration Date" }, state.editable ? (React.createElement(DatePicker, { value: state.registrationDate, onChange: date => (state.registrationDate = date) })) : corporate.registrationDate ? (moment(moment.utc(corporate.registrationDate).toDate()).format("YYYY-MM-DD hh:mm:ss")) : ("")),
41
+ React.createElement(Descriptions.Item, { label: "Registered Address" }, state.editable ? (React.createElement(Address, { value: state.registeredAddress, onChange: v => (state.registeredAddress = v) })) : (React.createElement(React.Fragment, null, (_a = corporate.registeredAddress) === null || _a === void 0 ? void 0 :
42
+ _a.line1, (_b = corporate.registeredAddress) === null || _b === void 0 ? void 0 :
43
+ _b.line2, (_c = corporate.registeredAddress) === null || _c === void 0 ? void 0 :
44
+ _c.city, (_d = corporate.registeredAddress) === null || _d === void 0 ? void 0 :
45
+ _d.state, (_e = corporate.registeredAddress) === null || _e === void 0 ? void 0 :
46
+ _e.country))))),
47
+ React.createElement(Card, { shadow: true },
48
+ React.createElement("div", { className: "company-amount-title" }, "Capital / Guaranteed Amount"),
49
+ React.createElement("h4", null, "Capital"),
50
+ React.createElement(Table, { dataSource: capital, size: "middle", pagination: false, bordered: true },
51
+ React.createElement(Table.Column, { title: "Currency", dataIndex: "Currency", key: "CapitalCurrency" }),
52
+ React.createElement(Table.Column, { title: "Share", dataIndex: "Share", key: "Share" }),
53
+ React.createElement(Table.Column, { title: "Amount", dataIndex: "Amount", key: "CapitalAmount" }),
54
+ React.createElement(Table.Column, { title: "\u200BUnpaid Amount", dataIndex: "UnpaidAmount", key: "\u200BUnpaidAmount" })),
55
+ React.createElement("h4", null, "Guaranteed"),
56
+ React.createElement(Table, { dataSource: guaranteed, size: "middle", pagination: false, bordered: true },
57
+ React.createElement(Table.Column, { title: "Currency", dataIndex: "Currency", key: "Currency" }),
58
+ React.createElement(Table.Column, { title: "Amount", dataIndex: "Amount", key: "Amount" }))),
59
+ React.createElement(Card, { shadow: true },
60
+ React.createElement("div", { className: "ant-descriptions-title" }, "Upcoming Event"),
61
+ React.createElement(Timeline, null,
62
+ React.createElement(Timeline.Item, null, "Create a services site 2015-09-01"),
63
+ React.createElement(Timeline.Item, null, "Solve initial network problems 2015-09-01"),
64
+ React.createElement(Timeline.Item, null, "Technical testing 2015-09-01"),
65
+ React.createElement(Timeline.Item, null, "Network problems being solved 2015-09-01"))))));
66
+ });
67
+ /** hover edit Company detail */
68
+ function onEdit() {
69
+ const { jurisdiction, registrationNumber, registrationDate, registeredAddress } = corporate;
70
+ state.jurisdiction = jurisdiction || "";
71
+ state.registrationNumber = registrationNumber;
72
+ state.registrationDate = moment(moment.utc(registrationDate).toDate());
73
+ state.registeredAddress = (registeredAddress === null || registeredAddress === void 0 ? void 0 : registeredAddress.country) ? registeredAddress : state.defaultAddress;
74
+ state.editable = true;
75
+ }
76
+ /** confirm edit */
77
+ async function onOk() {
78
+ console.log(state, "state.editOption");
79
+ state.loading = true;
80
+ await corporateStore.edit(id, {
81
+ RegistrationNumber: state.registrationNumber,
82
+ Jurisdiction: state.jurisdiction,
83
+ RegisteredAddress: state.registeredAddress,
84
+ RegistrationDate: moment(state.registrationDate).format("YYYY-MM-DD")
85
+ });
86
+ state.loading = false;
87
+ state.editable = false;
88
+ }
89
+ };
90
+ export default CompanyDetailsView;
91
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/company/CompanyDetailsView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CA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OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;QACvC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE;YAC7B,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;YAC1C,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,YAAY,CAAQ;SAC5E,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,36 @@
1
+ :global {
2
+ .company-details-view {
3
+ margin: 20px;
4
+ > div + div {
5
+ margin-top: 20px;
6
+ }
7
+ .company-amount-title {
8
+ color: rgba(0, 0, 0, 0.85);
9
+ font-weight: bold;
10
+ font-size: 16px;
11
+ margin-bottom: 10px;
12
+ }
13
+ h4 {
14
+ padding: 10px 0;
15
+ margin: 0;
16
+ }
17
+ .ant-timeline {
18
+ margin-top: 20px;
19
+ }
20
+ .card-company {
21
+ position: relative;
22
+ &:hover .hover-edit-btn {
23
+ display: block;
24
+ cursor: pointer;
25
+ }
26
+ .ant-descriptions-extra .ant-btn {
27
+ padding: 0 0 0 10px;
28
+ height: auto;
29
+ }
30
+ .hover-edit-btn {
31
+ display: none;
32
+ height: auto;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,20 @@
1
+ import { IAddress } from "@voplus/morpho-org";
2
+ import moment from "moment";
3
+ export declare class State {
4
+ editable: boolean;
5
+ /** default address */
6
+ defaultAddress: {
7
+ line1: string;
8
+ line2: string;
9
+ city: string;
10
+ state: string;
11
+ postalCode: string;
12
+ country: string;
13
+ };
14
+ registrationNumber: number | string;
15
+ jurisdiction: string;
16
+ registeredAddress: IAddress;
17
+ registrationDate: moment.Moment;
18
+ /** loading of save */
19
+ loading: boolean;
20
+ }
@@ -0,0 +1,40 @@
1
+ import { __decorate } from "tslib";
2
+ import { observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ this.editable = false;
6
+ /** default address */
7
+ this.defaultAddress = {
8
+ line1: "",
9
+ line2: "",
10
+ city: "",
11
+ state: "",
12
+ postalCode: "",
13
+ country: ""
14
+ };
15
+ this.registrationNumber = "";
16
+ this.jurisdiction = "";
17
+ this.registeredAddress = this.defaultAddress;
18
+ /** loading of save */
19
+ this.loading = false;
20
+ }
21
+ }
22
+ __decorate([
23
+ observable
24
+ ], State.prototype, "editable", void 0);
25
+ __decorate([
26
+ observable
27
+ ], State.prototype, "registrationNumber", void 0);
28
+ __decorate([
29
+ observable
30
+ ], State.prototype, "jurisdiction", void 0);
31
+ __decorate([
32
+ observable
33
+ ], State.prototype, "registeredAddress", void 0);
34
+ __decorate([
35
+ observable
36
+ ], State.prototype, "registrationDate", void 0);
37
+ __decorate([
38
+ observable
39
+ ], State.prototype, "loading", void 0);
40
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/company/CompanyDetailsView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,MAAM,CAAC;AAM5C,MAAM,OAAO,KAAK;IAAlB;QACoB,aAAQ,GAAG,KAAK,CAAC;QACpC,sBAAsB;QACf,mBAAc,GAAG;YACvB,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;YACT,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;SACX,CAAC;QACiB,uBAAkB,GAAoB,EAAE,CAAC;QACzC,iBAAY,GAAG,EAAE,CAAC;QAClB,sBAAiB,GAAa,IAAI,CAAC,cAAc,CAAC;QAErE,sBAAsB;QACH,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAhBY;IAAX,UAAU;uCAAyB;AAUxB;IAAX,UAAU;iDAAiD;AAChD;IAAX,UAAU;2CAA0B;AACzB;IAAX,UAAU;gDAA0D;AACzD;IAAX,UAAU;+CAAwC;AAEvC;IAAX,UAAU;sCAAwB"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const IdentifyDetail: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default IdentifyDetail;
@@ -0,0 +1,31 @@
1
+ import "./index.less";
2
+ import { Button, Form, Switch } from "@voplus/antd";
3
+ import React, { useState } from "react";
4
+ import DocumentIconList from "../../../DocumentIconList";
5
+ import IdentityInformation from "../IdentityInformation";
6
+ import Scrollbars from "react-custom-scrollbars";
7
+ import { useIdentityStore } from "../data";
8
+ import { useObserver } from "mobx-react-lite";
9
+ const IdentifyDetail = (props) => {
10
+ const { id } = props;
11
+ // switch 下面就是verify, confirm的人和日期....日期要能改
12
+ const [visible, setVisible] = useState(false);
13
+ const identityStore = useIdentityStore();
14
+ console.log(identityStore.load("14dacebf-e57f-49a5-9786-ac30001ec2ea", { reload: true }), "56565");
15
+ return useObserver(() => (React.createElement(Scrollbars, null,
16
+ React.createElement("div", { className: "identity-detail company-information" },
17
+ React.createElement("h3", null, "Verification Information"),
18
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 } },
19
+ React.createElement(Form.Item, { label: "Verified" },
20
+ React.createElement(Switch, null),
21
+ React.createElement("div", { className: "operate-record" }, "HaHa verified on 2020-0903")),
22
+ React.createElement(Form.Item, { label: "Confirmed" },
23
+ React.createElement(Switch, null),
24
+ React.createElement("div", { className: "operate-record" }, "HaHa confirmed on 2020-0903"))),
25
+ !visible ? (React.createElement(Button, { type: "primary", size: "small", onClick: () => setVisible(true) }, "View Information/Document")) : (React.createElement(React.Fragment, null,
26
+ React.createElement(IdentityInformation, { id: "14dacebf-e57f-49a5-9786-ac30001ec2ea" }),
27
+ React.createElement("h3", null, "Documents"),
28
+ React.createElement(DocumentIconList, { id: id, scroll: false })))))));
29
+ };
30
+ export default IdentifyDetail;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAc,IAAI,EAAiB,MAAM,EAAW,MAAM,cAAc,CAAC;AACxF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AAEzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,2CAA2C;IAE3C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,OAAO,CAAC,GAAG,CACV,aAAa,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAC5E,OAAO,CACP,CAAC;IAEF,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,UAAU;QACV,6BAAK,SAAS,EAAC,qCAAqC;YACnD,2DAAiC;YACjC,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;gB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