@voplus/morpho-csp 1.2.0-dev09 → 1.2.1-dev.1
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.
- package/es/Modules.js +1 -1
- package/es/Modules.js.map +1 -1
- package/es/components/CompanyMemberSelect/index.js +1 -1
- package/es/components/CompanyMemberSelect/index.js.map +1 -1
- package/es/components/TableDragRow/index.js +1 -1
- package/es/components/TableDragRow/index.js.map +1 -1
- package/es/data/controllerRegister/ControllerStore.d.ts +27 -0
- package/es/data/controllerRegister/ControllerStore.js +93 -0
- package/es/data/controllerRegister/ControllerStore.js.map +1 -0
- package/es/data/controllerRegister/hooks.d.ts +10 -0
- package/es/data/controllerRegister/hooks.js +19 -0
- package/es/data/controllerRegister/hooks.js.map +1 -0
- package/es/data/controllerRegister/index.d.ts +4 -0
- package/es/data/controllerRegister/index.js +5 -0
- package/es/data/controllerRegister/index.js.map +1 -0
- package/es/data/controllerRegister/interfaces.d.ts +15 -0
- package/es/data/controllerRegister/interfaces.js +2 -0
- package/es/data/controllerRegister/interfaces.js.map +1 -0
- package/es/data/controllerRegister/types.d.ts +35 -0
- package/es/data/controllerRegister/types.js +2 -0
- package/es/data/controllerRegister/types.js.map +1 -0
- package/es/data/relationship/CorporateRelationshipContext.d.ts +18 -0
- package/es/data/relationship/CorporateRelationshipContext.js +43 -0
- package/es/data/relationship/CorporateRelationshipContext.js.map +1 -0
- package/es/data/relationship/RelationshipStore.d.ts +16 -0
- package/es/data/relationship/RelationshipStore.js +48 -0
- package/es/data/relationship/RelationshipStore.js.map +1 -0
- package/es/data/relationship/hooks.d.ts +6 -0
- package/es/data/relationship/hooks.js +12 -0
- package/es/data/relationship/hooks.js.map +1 -0
- package/es/data/relationship/index.d.ts +4 -0
- package/es/data/relationship/index.js +5 -0
- package/es/data/relationship/index.js.map +1 -0
- package/es/data/relationship/interfaces.d.ts +18 -0
- package/es/data/relationship/interfaces.js +2 -0
- package/es/data/relationship/interfaces.js.map +1 -0
- package/es/data/relationship/types.d.ts +7 -0
- package/es/data/relationship/types.js +2 -0
- package/es/data/relationship/types.js.map +1 -0
- package/es/data/shareOptionsRegister/ShareOptionStore.d.ts +12 -0
- package/es/data/shareOptionsRegister/ShareOptionStore.js +22 -0
- package/es/data/shareOptionsRegister/ShareOptionStore.js.map +1 -0
- package/es/data/shareOptionsRegister/hooks.d.ts +9 -0
- package/es/data/shareOptionsRegister/hooks.js +20 -0
- package/es/data/shareOptionsRegister/hooks.js.map +1 -0
- package/es/data/shareOptionsRegister/index.d.ts +4 -0
- package/es/data/shareOptionsRegister/index.js +5 -0
- package/es/data/shareOptionsRegister/index.js.map +1 -0
- package/es/data/shareOptionsRegister/interfaces.d.ts +28 -0
- package/es/data/shareOptionsRegister/interfaces.js +2 -0
- package/es/data/shareOptionsRegister/interfaces.js.map +1 -0
- package/es/data/shareOptionsRegister/metas.d.ts +6 -0
- package/es/data/shareOptionsRegister/metas.js +14 -0
- package/es/data/shareOptionsRegister/metas.js.map +1 -0
- package/es/data/shareOptionsRegister/types.d.ts +29 -0
- package/es/data/shareOptionsRegister/types.js +2 -0
- package/es/data/shareOptionsRegister/types.js.map +1 -0
- package/es/modules/account/AccountPropertiesView/index.js +1 -1
- package/es/modules/account/AccountPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.d.ts +4 -0
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.js +21 -0
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.less +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerInformation/index.d.ts +11 -0
- package/es/modules/corporate/ControllerRegister/ControllerInformation/index.js +53 -0
- package/es/modules/corporate/ControllerRegister/ControllerInformation/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.d.ts +13 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.js +32 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerItem/index.less +29 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.d.ts +7 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.js +72 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/index.less +12 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/state.d.ts +9 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/state.js +49 -0
- package/es/modules/corporate/ControllerRegister/ControllerList/state.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.d.ts +8 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.js +67 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.less +39 -0
- package/es/modules/corporate/CorporateSelect/index.js +1 -1
- package/es/modules/corporate/CorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js +3 -3
- package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js.map +1 -1
- package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js +7 -7
- package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js.map +1 -1
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.d.ts +4 -0
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.js +36 -0
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.js.map +1 -0
- package/es/modules/corporate/Relationship/CorporateRelationshipView/index.less +5 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.d.ts +5 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.js +259 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.js.map +1 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.d.ts +11 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.js +46 -0
- package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.d.ts +7 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.js +26 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.less +11 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.d.ts +4 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.js +78 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.less +89 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.d.ts +12 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.js +59 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.less +84 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.d.ts +28 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.js +83 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.d.ts +3 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.js +93 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.d.ts +6 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.js +132 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.d.ts +10 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.js +95 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.less +22 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.d.ts +9 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.js +56 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.d.ts +6 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.js +48 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.d.ts +12 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.js +15 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.less +89 -0
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js +1 -1
- package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js +1 -1
- package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js +1 -1
- package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js +1 -1
- package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map +1 -1
- package/es/routes.d.ts +12 -0
- package/es/routes.js +27 -1
- package/es/routes.js.map +1 -1
- package/package.json +21 -24
- package/changelog.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
|
2
|
+
export interface IShareOption extends IDocument {
|
|
3
|
+
/** Share option issued to*/
|
|
4
|
+
to?: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
/** Reference number of the share option*/
|
|
9
|
+
number: string;
|
|
10
|
+
/** */
|
|
11
|
+
currency: string;
|
|
12
|
+
/** ShareType of option*/
|
|
13
|
+
class: string;
|
|
14
|
+
/** 总股权数 */
|
|
15
|
+
options: number;
|
|
16
|
+
/** 行权日历. */
|
|
17
|
+
schedule?: IVestingSchedule[];
|
|
18
|
+
}
|
|
19
|
+
export interface IVestingSchedule {
|
|
20
|
+
/** Index of the line. */
|
|
21
|
+
sequence: number;
|
|
22
|
+
/** Id of the line. */
|
|
23
|
+
id: number;
|
|
24
|
+
/** 最早行权日期*/
|
|
25
|
+
date: string;
|
|
26
|
+
/** 可行权股权数 */
|
|
27
|
+
options: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
|
2
|
+
/** Meta information for Meeting document. */
|
|
3
|
+
export class ShareOptionTypeMeta extends DefaultDocumentTypeMeta {
|
|
4
|
+
get name() {
|
|
5
|
+
return ShareOptionTypeMeta.TypeName;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(ShareOptionTypeMeta, "TypeName", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: "ShareOption"
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=metas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,6CAA6C;AAC7C,MAAM,OAAO,mBAAoB,SAAQ,uBAAuB;IAG/D,IAAW,IAAI;QACd,OAAO,mBAAmB,CAAC,QAAQ,CAAC;IACrC,CAAC;;AAJD;;;;WAAyB,aAAa;GAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CreateDocumentOptions, EditDocumentDataOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
export declare type ShareOptionType = "Allotment" | "Transfer" | "Cancel" | "Convert" | "Consolidate" | "Divide" | "Import" | "Others";
|
|
3
|
+
export declare type ShareLineCreateOptions = {
|
|
4
|
+
/** Shareholder of the new share line. */
|
|
5
|
+
Shareholder?: string;
|
|
6
|
+
/** Consideration of the new share line */
|
|
7
|
+
Consideration: number;
|
|
8
|
+
/** Currency of the new share line.*/
|
|
9
|
+
Currency: string;
|
|
10
|
+
/** Shares of the new share line. */
|
|
11
|
+
Shares: number;
|
|
12
|
+
/** Type of share line(Ordinary | Preference | undefined )*/
|
|
13
|
+
Class: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type ShareOptionCreateOptions = {
|
|
16
|
+
ParentId: string;
|
|
17
|
+
/** ShareOptionType of the ShareOption */
|
|
18
|
+
TransactionType: ShareOptionType;
|
|
19
|
+
/** Currency of the ShareOption */
|
|
20
|
+
Currency: string;
|
|
21
|
+
/** DateTime of the ShareOption */
|
|
22
|
+
Date?: Date;
|
|
23
|
+
} & CreateDocumentOptions;
|
|
24
|
+
export declare type ShareOptionEditOptions = {
|
|
25
|
+
/** Currency of the ShareOption */
|
|
26
|
+
Currency?: string;
|
|
27
|
+
/** Array of lines to be updated */
|
|
28
|
+
Lines?: ShareLineCreateOptions[];
|
|
29
|
+
} & EditDocumentDataOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/shareOptionsRegister/types.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import ContactInformation from "../../../modules/corporate/company/Officer/Conta
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
5
5
|
import { Skeleton } from "@voplus/antd";
|
|
6
|
-
import UnitAvatar from "
|
|
6
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
8
|
import { useUnit } from "@voplus/morpho-org";
|
|
9
9
|
const AccountPropertiesView = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account/AccountPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account/AccountPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU;QACV,6BAAK,SAAS,EAAC,yBAAyB;YACtC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,gCAAgC;gBAC9C,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAI;gBAChC,iCAAM,IAAI,CAAC,IAAI,CAAO,CACjB,CACN;YAED,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,GAAI,CAC3C,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { AsideContent } from "@voplus/morpho-ui";
|
|
4
|
+
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { useRouteMatch } from "react-router";
|
|
8
|
+
const ControllerDefaultView = () => {
|
|
9
|
+
const match = useRouteMatch();
|
|
10
|
+
const id = match.params.id;
|
|
11
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
asideContext.openAside(AsideElement, { span: 12 });
|
|
14
|
+
}, []);
|
|
15
|
+
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
16
|
+
React.createElement(DocumentTabs, { id: id })));
|
|
17
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
|
18
|
+
React.createElement(ControllerPropertiesView, { id: id, toolbar: false }))));
|
|
19
|
+
};
|
|
20
|
+
export default ControllerDefaultView;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,aAAa,EAAmC,CAAC;IAC/D,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,YAAY,GAAG,CACpB,6BAAK,SAAS,EAAC,wBAAwB;QACtC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CACnB,CACN,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;QAClC,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI,CACtC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Badge, Form, Skeleton } from "@voplus/antd";
|
|
2
|
+
import { useControllerStore, } from "../../../../data/controllerRegister";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
5
|
+
import { InlineEdit } from "@voplus/morpho-ui";
|
|
6
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
7
|
+
import moment from "moment";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
const ControllerInformation = (props) => {
|
|
10
|
+
const { id, allowEdit } = props;
|
|
11
|
+
// const controller = useController(id);
|
|
12
|
+
const controller = {
|
|
13
|
+
id: "",
|
|
14
|
+
name: "Controller",
|
|
15
|
+
unitId: "dfb9661a-b3fd-4dbc-b0aa-8f65c39c6ae0",
|
|
16
|
+
confirmDate: "2021-03-10",
|
|
17
|
+
ceaseDate: "2021-03-10",
|
|
18
|
+
status: "Present",
|
|
19
|
+
loading: false,
|
|
20
|
+
};
|
|
21
|
+
const controllerStore = useControllerStore();
|
|
22
|
+
return observe(() => (React.createElement(Scrollbars, null, controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
23
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(Form, { labelAlign: "left", labelCol: { span: 6 }, className: "company-information" },
|
|
24
|
+
controller.status && (React.createElement(Form.Item, { label: "Status" }, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))),
|
|
25
|
+
React.createElement(Form.Item, { label: "Appointment Date" },
|
|
26
|
+
React.createElement(InlineEdit, { defaultValue: moment(controller === null || controller === void 0 ? void 0 : controller.confirmDate), content: (v) => (React.createElement("span", null, (controller === null || controller === void 0 ? void 0 : controller.confirmDate)
|
|
27
|
+
? moment(v.store.value).format("YYYY-MM-DD")
|
|
28
|
+
: allowEdit
|
|
29
|
+
? "Add Appointment Date"
|
|
30
|
+
: "No Appointment Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
31
|
+
if (moment(date).isSame(controller === null || controller === void 0 ? void 0 : controller.confirmDate, "day"))
|
|
32
|
+
return;
|
|
33
|
+
edit({ Appointment: date });
|
|
34
|
+
} })),
|
|
35
|
+
React.createElement(Form.Item, { label: "Cease Date" },
|
|
36
|
+
React.createElement(InlineEdit, { defaultValue: moment(controller === null || controller === void 0 ? void 0 : controller.ceaseDate), content: (v) => (React.createElement("span", null, (controller === null || controller === void 0 ? void 0 : controller.ceaseDate)
|
|
37
|
+
? moment(v.store.value).format("YYYY-MM-DD")
|
|
38
|
+
: allowEdit
|
|
39
|
+
? "Add Cease Date"
|
|
40
|
+
: "No Cease Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
41
|
+
if (moment(date).isSame(controller === null || controller === void 0 ? void 0 : controller.ceaseDate, "day"))
|
|
42
|
+
return;
|
|
43
|
+
edit({ Cease: date });
|
|
44
|
+
} })))))));
|
|
45
|
+
async function edit(data) {
|
|
46
|
+
await controllerStore.edit(id, { data, error: "message" });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
ControllerInformation.defaultProps = {
|
|
50
|
+
allowEdit: true,
|
|
51
|
+
};
|
|
52
|
+
export default ControllerInformation;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAS,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAGN,kBAAkB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAA0C,EAAE,EAAE;IAC5E,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhC,wCAAwC;IACxC,MAAM,UAAU,GAAG;QAClB,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,sCAAsC;QAC9C,WAAW,EAAE,YAAY;QACzB,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,KAAK;KACd,CAAC;IAEF,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU,QACT,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CACrB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd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,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,YAAY;YAC5B,oBAAC,UAAU,IACV,YAAY,EAAE,MAAM,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,CAAC,EAC3C,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CACf,kCACE,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS;oBACrB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;oBAC5C,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC,gBAAgB;wBAClB,CAAC,CAAC,eAAe,CACZ,CACP,EACD,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChB,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,EAAE,KAAK,CAAC;wBAAE,OAAO;oBAC9D,IAAI,CAAC,EAAE,KAAK,EAAE,IAAW,EAAE,CAAC,CAAC;gBAC9B,CAAC,GACA,CACS,CACN,CACP,CACW,CACb,CAAC,CAAC;IACH,KAAK,UAAU,IAAI,CAAC,IAA+B;QAClD,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AACF,qBAAqB,CAAC,YAAY,GAAG;IACpC,SAAS,EAAE,IAAI;CACf,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const ControllerItem: (props: {
|
|
4
|
+
/** id of officer */
|
|
5
|
+
id: string;
|
|
6
|
+
/** id of unit */
|
|
7
|
+
/** id of identity */
|
|
8
|
+
identityId: string;
|
|
9
|
+
/** index of officer list */
|
|
10
|
+
index: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
}) => JSX.Element;
|
|
13
|
+
export default ControllerItem;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Badge } from "@voplus/antd";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
5
|
+
import moment from "moment";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
const ControllerItem = (props) => {
|
|
8
|
+
const { id, index } = props;
|
|
9
|
+
// const controller = useController(id);
|
|
10
|
+
const controller = {
|
|
11
|
+
id: "",
|
|
12
|
+
name: "Controller",
|
|
13
|
+
unitId: "dfb9661a-b3fd-4dbc-b0aa-8f65c39c6ae0",
|
|
14
|
+
confirmDate: "2021-03-10",
|
|
15
|
+
ceaseDate: "2021-03-10",
|
|
16
|
+
status: "Present",
|
|
17
|
+
};
|
|
18
|
+
return observe(() => (React.createElement("div", { className: "controller-item" },
|
|
19
|
+
React.createElement(React.Fragment, null,
|
|
20
|
+
React.createElement(UnitAvatar, { id: controller.unitId, index: index, size: "large" }),
|
|
21
|
+
React.createElement("div", { className: "controller-info" },
|
|
22
|
+
React.createElement("div", { className: "title" }, controller.name),
|
|
23
|
+
controller.confirmDate && (React.createElement("div", { className: "appointment-date" },
|
|
24
|
+
"confirmDate Date: ",
|
|
25
|
+
moment(controller.confirmDate).format("YYYY-MM-DD"))),
|
|
26
|
+
controller.ceaseDate && (React.createElement("div", { className: "cease-date" },
|
|
27
|
+
"Cease Date: ",
|
|
28
|
+
moment(controller.ceaseDate).format("YYYY-MM-DD")))),
|
|
29
|
+
controller.status && (React.createElement("div", null, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" }))))))));
|
|
30
|
+
};
|
|
31
|
+
export default ControllerItem;
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAqB,MAAM,cAAc,CAAC;AAIxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,cAAc,GAAG,CAAC,KAUvB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE5B,wCAAwC;IAExC,MAAM,UAAU,GAAG;QAClB,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,sCAAsC;QAC9C,WAAW,EAAE,YAAY;QACzB,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,SAAS;KACjB,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iBAAiB;QAI/B,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,UAAU,IAAC,EAAE,EAAE,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,GAAG;YAChE,6BAAK,SAAS,EAAC,iBAAiB;gBAC/B,6BAAK,SAAS,EAAC,OAAO,IAAE,UAAU,CAAC,IAAI,CAAO;gBAC7C,UAAU,CAAC,WAAW,IAAI,CAC1B,6BAAK,SAAS,EAAC,kBAAkB;;oBACb,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACjE,CACN;gBACA,UAAU,CAAC,SAAS,IAAI,CACxB,6BAAK,SAAS,EAAC,YAAY;;oBACb,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACzD,CACN,CACI;YACL,UAAU,CAAC,MAAM,IAAI,CACrB,iCACE,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAClC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG,CACzC,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACpC,CACI,CACN,CACe,CAEZ,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.controller-item {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: 10px 20px;
|
|
8
|
+
&::after {
|
|
9
|
+
position: absolute;
|
|
10
|
+
content: "";
|
|
11
|
+
left: 20px;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
right: 20px;
|
|
14
|
+
border-bottom: 1px solid #f2f2f2;
|
|
15
|
+
}
|
|
16
|
+
.controller-info {
|
|
17
|
+
flex: 1;
|
|
18
|
+
margin-left: 10px;
|
|
19
|
+
.title {
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.appointment-date,
|
|
24
|
+
.cease-date {
|
|
25
|
+
font-size: 13px;
|
|
26
|
+
line-height: 22px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { useControllerStore, } from "../../../../data/controllerRegister";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
+
import ControllerItem from "../ControllerItem";
|
|
5
|
+
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
6
|
+
import { FilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
7
|
+
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
|
8
|
+
import Header from "../../../../components/Header";
|
|
9
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
10
|
+
import NewTypeDropdown from "../../../../components/NewTypeDropdown";
|
|
11
|
+
import OfficerStatusFilter from "../../company/OfficerRegister/OfficerStatusFilter";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { State } from "./state";
|
|
14
|
+
import { observe } from "@voplus/morpho-ui";
|
|
15
|
+
import { runInAction } from "mobx";
|
|
16
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
17
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
18
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
19
|
+
const ControllerList = (props) => {
|
|
20
|
+
const { corporateId, allowEdit } = props;
|
|
21
|
+
const controllerStore = useControllerStore();
|
|
22
|
+
const list = useCreateListDataState({
|
|
23
|
+
filterDefaults: {
|
|
24
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporateId }],
|
|
25
|
+
},
|
|
26
|
+
}, [corporateId]);
|
|
27
|
+
const state = useDeepMemo(() => new State(), [corporateId]);
|
|
28
|
+
useAutoUpdateListData(list, (d) => d.parentId === corporateId);
|
|
29
|
+
useRenderOnChange(() => list.filters.options);
|
|
30
|
+
// useControllerListEffect(
|
|
31
|
+
// list,
|
|
32
|
+
// (result) => list.union(result),
|
|
33
|
+
// list.filters.options
|
|
34
|
+
// );
|
|
35
|
+
list.union([{ id: "1", unitId: "" }]);
|
|
36
|
+
console.log(list.data, "data");
|
|
37
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
38
|
+
React.createElement(FilterOptionsContext.Provider, { value: list.filters },
|
|
39
|
+
React.createElement(Header, { text: "Controller Register" },
|
|
40
|
+
React.createElement("div", null,
|
|
41
|
+
React.createElement(FilterView, { columns: [React.createElement(OfficerStatusFilter, { key: "ControllerStatusFilter" })] }),
|
|
42
|
+
allowEdit !== false && (React.createElement(NewTypeDropdown, { onSelect: state.onSelect, menus: [
|
|
43
|
+
"Director",
|
|
44
|
+
"Managing Director",
|
|
45
|
+
"Nominee Director",
|
|
46
|
+
"Secretary",
|
|
47
|
+
"CEO",
|
|
48
|
+
"Partner",
|
|
49
|
+
"Owner",
|
|
50
|
+
"Auditor",
|
|
51
|
+
"Manager",
|
|
52
|
+
], style: { marginLeft: "10px" } }))))),
|
|
53
|
+
React.createElement(ListView, { headerProps: {
|
|
54
|
+
visible: false,
|
|
55
|
+
sortable: false,
|
|
56
|
+
addAble: false,
|
|
57
|
+
}, renderItem: ({ item, index }) => (React.createElement(ControllerItem, { key: item.id, id: item.id, identityId: "", index: index, className: index === 0 ? "shareTransaction-item-first" : "" })), propertiesView: (id) => React.createElement(ControllerPropertiesView, { id: id, allowEdit: allowEdit }), className: "controller-list-view" }))));
|
|
58
|
+
/** 新增officerItem */
|
|
59
|
+
async function onSave(unitId) {
|
|
60
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
61
|
+
if (unitId) {
|
|
62
|
+
const res = await controllerStore.create({
|
|
63
|
+
data: { RegisterId: corporateId, UnitId: unitId },
|
|
64
|
+
error: "message",
|
|
65
|
+
});
|
|
66
|
+
list.union([res]);
|
|
67
|
+
}
|
|
68
|
+
runInAction(() => (state.addAble = false));
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export default ControllerList;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,kBAAkB,GAClB,MAAM,qCAAqC,CAAC;AA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AK,EAAwC,EAAE,EAAE,CAAC,CACtE,oBAAC,cAAc,IACd,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,UAAU,EAAE,EAAE,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,EAAE,GAC1D,CACF,EACD,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,EAClF,SAAS,EAAC,sBAAsB,GAC/B,CACwB,CAC3B,CAAC,CAAC;IAEH,oBAAoB;IACpB,KAAK,UAAU,MAAM,CAAC,MAAc;QACnC,qDAAqD;QACrD,IAAI,MAAM,EAAE;YACX,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC;gBACxC,IAAI,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE;gBACjD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAClB;QAED,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeAutoObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** position of the new officer */
|
|
6
|
+
Object.defineProperty(this, "position", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: "Director"
|
|
11
|
+
});
|
|
12
|
+
/** can new Officer item */
|
|
13
|
+
Object.defineProperty(this, "addAble", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: false
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(this, "loading", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: false
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(this, "onSelect", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: (position) => {
|
|
30
|
+
this.position = position;
|
|
31
|
+
this.addAble = true;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
makeAutoObservable(this);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
observable
|
|
39
|
+
], State.prototype, "position", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
observable
|
|
42
|
+
], State.prototype, "addAble", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
observable
|
|
45
|
+
], State.prototype, "loading", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
action
|
|
48
|
+
], State.prototype, "onSelect", void 0);
|
|
49
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAOjB;QANA,kCAAkC;QACtB;;;;mBAAkB,UAAU;WAAC;QACzC,4BAA4B;QAChB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,KAAK;WAAC;QAQnC;;;;mBAAkB,CAAC,QAAgB,EAAE,EAAE;gBACtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,CAAC;WAAC;QARD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAQD;AAfY;IAAX,UAAU;uCAA8B;AAE7B;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB;AAQnC;IAFC,MAAM;uCAKL"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Button, Modal, Skeleton, Tabs } from "@voplus/antd";
|
|
3
|
+
import { useControllerStore } from "../../../../data/controllerRegister";
|
|
4
|
+
import ContactInformation from "../../company/Officer/ContactInformation";
|
|
5
|
+
import ControllerInformation from "../ControllerInformation";
|
|
6
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
11
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
12
|
+
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
|
13
|
+
import { observe } from "@voplus/morpho-ui";
|
|
14
|
+
import { useAsideContentContext } from "@voplus/morpho-ui";
|
|
15
|
+
import { useListDataContext } from "@voplus/morpho-ui/es/data";
|
|
16
|
+
const ControllerPropertiesView = (props) => {
|
|
17
|
+
const { id, allowEdit, toolbar } = props;
|
|
18
|
+
// const controller = useController(id, { reload: true });
|
|
19
|
+
const controller = {
|
|
20
|
+
id: "",
|
|
21
|
+
name: "Controller",
|
|
22
|
+
unitId: "dfb9661a-b3fd-4dbc-b0aa-8f65c39c6ae0",
|
|
23
|
+
confirmDate: "2021-03-10",
|
|
24
|
+
ceaseDate: "2021-03-10",
|
|
25
|
+
status: "Present",
|
|
26
|
+
loading: false,
|
|
27
|
+
};
|
|
28
|
+
const controllerStore = useControllerStore();
|
|
29
|
+
const dataState = useListDataContext();
|
|
30
|
+
const asideContext = useAsideContentContext();
|
|
31
|
+
return observe(() => (React.createElement("div", { className: "officer-properties-view_content" },
|
|
32
|
+
controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
33
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "officer-properties-view_header" },
|
|
34
|
+
React.createElement(UnitAvatar, { id: controller.unitId, size: 70 }),
|
|
35
|
+
React.createElement("div", null, controller.name),
|
|
36
|
+
toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
|
|
37
|
+
React.createElement(Open, { url: `/officer/${id}` }),
|
|
38
|
+
allowEdit && (React.createElement(Button, { danger: true, size: "small", shape: "circle", onClick: onDelete },
|
|
39
|
+
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }))))))),
|
|
40
|
+
React.createElement(Tabs, { defaultActiveKey: "Officer" },
|
|
41
|
+
React.createElement(Tabs.TabPane, { tab: "Officer Details", key: "Officer" },
|
|
42
|
+
React.createElement(ControllerInformation, { id: id, allowEdit: allowEdit })),
|
|
43
|
+
React.createElement(Tabs.TabPane, { tab: "Contact Details", key: "Contact" },
|
|
44
|
+
React.createElement(ContactInformation, { id: controller.unitId, allowEdit: allowEdit })),
|
|
45
|
+
React.createElement(Tabs.TabPane, { tab: "Documents", key: "Document" },
|
|
46
|
+
React.createElement(DocumentList, { id: id, header: false }))))));
|
|
47
|
+
/** 删除officer item */
|
|
48
|
+
function onDelete() {
|
|
49
|
+
const onOk = async () => {
|
|
50
|
+
await controllerStore.delete([id], { error: "message" }).then((res) => {
|
|
51
|
+
if (!res)
|
|
52
|
+
return;
|
|
53
|
+
dataState.remove(id);
|
|
54
|
+
if (asideContext)
|
|
55
|
+
asideContext.closeAside();
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
Modal.confirm({
|
|
59
|
+
title: "Do you want to delete this item?",
|
|
60
|
+
onOk() {
|
|
61
|
+
return onOk();
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export default ControllerPropertiesView;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ControllerRegister/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAiB,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAExF,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAC1E,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,wBAAwB,GAAG,CAAC,KAIjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEzC,0DAA0D;IAC1D,MAAM,UAAU,GAAG;QAClB,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,sCAAsC;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BAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,iBAAiB,EAAC,GAAG,EAAC,SAAS;gBAChD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CACrD;YACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,UAAU;gBAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI,CACzB,CACT,CACF,CACN,CAAC,CAAC;IACH,qBAAqB;IACrB,SAAS,QAAQ;QAChB,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;YACvB,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;gBACrE,IAAI,CAAC,GAAG;oBAAE,OAAO;gBACjB,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACrB,IAAI,YAAY;oBAAE,YAAY,CAAC,UAAU,EAAE,CAAC;YAC7C,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC;QACF,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,kCAAkC;YACzC,IAAI;gBACH,OAAO,IAAI,EAAE,CAAC;YACf,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.officer-properties-view_content {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
|
|
9
|
+
.officer-properties-view_header {
|
|
10
|
+
position: relative;
|
|
11
|
+
text-align: center;
|
|
12
|
+
padding: 20px 0 10px 0;
|
|
13
|
+
.officer-person-name {
|
|
14
|
+
color: #000;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
padding-top: 12px;
|
|
18
|
+
}
|
|
19
|
+
.tool-bar {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 20px;
|
|
22
|
+
right: 20px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.ant-tabs {
|
|
26
|
+
height: 100%;
|
|
27
|
+
.ant-tabs-nav {
|
|
28
|
+
margin: 0 20px;
|
|
29
|
+
}
|
|
30
|
+
.company-information {
|
|
31
|
+
padding: 15px 20px;
|
|
32
|
+
h3 {
|
|
33
|
+
margin-bottom: 15px;
|
|
34
|
+
color: #000;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|