@voplus/morpho-csp 1.3.4 → 1.3.6
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/components/CorporateUnitSelectDialog/index.d.ts +12 -0
- package/es/components/CorporateUnitSelectDialog/index.js +33 -0
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -0
- package/es/components/CorporateUnitSelectDialog/index.less +36 -0
- package/es/components/CorporateUnitSelectDialog/state.d.ts +65 -0
- package/es/components/CorporateUnitSelectDialog/state.js +263 -0
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/index.d.ts +10 -0
- package/es/components/CorporateUnitSortableTree/index.js +87 -0
- package/es/components/CorporateUnitSortableTree/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/state.d.ts +62 -0
- package/es/components/CorporateUnitSortableTree/state.js +220 -0
- package/es/components/CorporateUnitSortableTree/state.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js +22 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +4 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js +84 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.less +319 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +21 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +4 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.d.ts +4 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js +23 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js +58 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.less +45 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js +73 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.less +12 -0
- package/es/data/share-certificate/ShareCertificateStore.d.ts +6 -0
- package/es/data/share-certificate/ShareCertificateStore.js +22 -0
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
- package/es/data/share-certificate/interfaces.d.ts +13 -0
- package/es/data/share-certificate/types.d.ts +2 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.d.ts +6 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js +10 -5
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +9 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +10 -4
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +37 -11
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +15 -12
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.d.ts +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js +9 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.d.ts +6 -2
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +13 -6
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +8 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.d.ts +9 -4
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +34 -8
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.d.ts +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js +9 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +31 -4
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +16 -5
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +18 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +4 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js +22 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js +22 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +3 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.d.ts +3 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +53 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +53 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +3 -3
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.member-list-view {
|
|
5
|
+
padding: 0 !important;
|
|
6
|
+
|
|
7
|
+
.list-view-header .view-title {
|
|
8
|
+
flex: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
aside {
|
|
12
|
+
border-top: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -15,6 +15,12 @@ export class State {
|
|
|
15
15
|
writable: true,
|
|
16
16
|
value: false
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(this, "checkMemberId", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: ""
|
|
23
|
+
});
|
|
18
24
|
makeAutoObservable(this);
|
|
19
25
|
}
|
|
20
26
|
}
|
|
@@ -24,4 +30,7 @@ __decorate([
|
|
|
24
30
|
__decorate([
|
|
25
31
|
observable
|
|
26
32
|
], State.prototype, "loading", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
observable
|
|
35
|
+
], State.prototype, "checkMemberId", void 0);
|
|
27
36
|
//# sourceMappingURL=state.js.map
|
package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEtD,MAAM,OAAO,KAAK;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEtD,MAAM,OAAO,KAAK;IAOjB;QANA,4BAA4B;QAChB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,KAAK;WAAC;QAEvB;;;;mBAAuB,EAAE;WAAC;QAGrC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACD;AARY;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;4CAA2B"}
|
|
@@ -8,7 +8,11 @@ declare const OfficerItem: (props: {
|
|
|
8
8
|
identityId: string;
|
|
9
9
|
/** index of officer list */
|
|
10
10
|
index: number;
|
|
11
|
-
className?: string;
|
|
12
|
-
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
checked?: boolean | undefined;
|
|
13
|
+
quickView?: boolean | undefined;
|
|
14
|
+
/** 是否在 selectDialog 中显示 */
|
|
15
|
+
selectDialog?: boolean | undefined;
|
|
16
|
+
onSelectCorporateUnit?: ((params?: any) => void) | undefined;
|
|
13
17
|
}) => JSX.Element;
|
|
14
18
|
export default OfficerItem;
|
|
@@ -2,7 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
4
4
|
import { Badge, Skeleton } from "@voplus/antd";
|
|
5
|
-
import { faEnvelope, faPhone } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { faEnvelope, faPhone, faCheck } from "@fortawesome/pro-light-svg-icons";
|
|
6
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
8
8
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
@@ -13,7 +13,7 @@ import moment from "moment";
|
|
|
13
13
|
import classnames from "classnames";
|
|
14
14
|
import styles from "./index.less";
|
|
15
15
|
const OfficerItem = (props) => {
|
|
16
|
-
const { id, unitId, index, quickView } = props;
|
|
16
|
+
const { id, unitId, index, quickView, selectDialog, checked } = props;
|
|
17
17
|
const [isHover, setIsHover] = useState(false);
|
|
18
18
|
const [visible, setVisible] = useState(false);
|
|
19
19
|
const officer = useOfficer(id);
|
|
@@ -23,7 +23,11 @@ const OfficerItem = (props) => {
|
|
|
23
23
|
const phone = (_a = officer.phone) !== null && _a !== void 0 ? _a : (_b = officer.contact) === null || _b === void 0 ? void 0 : _b.phone;
|
|
24
24
|
const email = (_c = officer.email) !== null && _c !== void 0 ? _c : (_d = officer.contact) === null || _d === void 0 ? void 0 : _d.email;
|
|
25
25
|
return (React.createElement(React.Fragment, null,
|
|
26
|
-
React.createElement("div", { className: styles["officer-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: () =>
|
|
26
|
+
React.createElement("div", { className: styles["officer-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: () => {
|
|
27
|
+
var _a;
|
|
28
|
+
quickView && setVisible(true);
|
|
29
|
+
(_a = props.onSelectCorporateUnit) === null || _a === void 0 ? void 0 : _a.call(props, officer);
|
|
30
|
+
} }, officer.loading ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(React.Fragment, null,
|
|
27
31
|
React.createElement(UnitAvatar, { id: unitId, index: index, size: "large" }),
|
|
28
32
|
React.createElement("div", { className: "officer-info" },
|
|
29
33
|
React.createElement("div", { className: "title" }, (_f = (_e = officer.identity) === null || _e === void 0 ? void 0 : _e.fullName) !== null && _f !== void 0 ? _f : (_g = officer.contact) === null || _g === void 0 ? void 0 : _g.name,
|
|
@@ -42,13 +46,16 @@ const OfficerItem = (props) => {
|
|
|
42
46
|
officer.cease && (React.createElement("span", { className: "margin-right-15" },
|
|
43
47
|
"Cease Date: ",
|
|
44
48
|
moment(officer.cease).format("YYYY-MM-DD"))))),
|
|
45
|
-
React.createElement("div", { className: classnames("officer-item-identity", {
|
|
49
|
+
React.createElement("div", { className: classnames("officer-item-identity", {
|
|
50
|
+
hide: selectDialog ? false : isHover,
|
|
51
|
+
}) },
|
|
46
52
|
!officer.identity && React.createElement(Badge, { status: "warning", text: "Need Identity Info" }),
|
|
47
53
|
officer.status && officer.identity && (React.createElement("div", null, officer.status === "Present" && React.createElement(Badge, { status: "success", text: "Present" })))),
|
|
48
|
-
React.createElement("div", { className: classnames("officer-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
|
|
54
|
+
!selectDialog && (React.createElement("div", { className: classnames("officer-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
|
|
49
55
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
50
56
|
React.createElement(Open, { url: `/officer/${id}` }),
|
|
51
|
-
React.createElement(CompanOfficerMenu, { id: id, unitId: officer.contact.id, store: store, closeAside: true }))))
|
|
57
|
+
React.createElement(CompanOfficerMenu, { id: id, unitId: officer.contact.id, store: store, closeAside: true })))),
|
|
58
|
+
checked && React.createElement(FAIcon, { icon: faCheck, className: classnames("icon-check") })))),
|
|
52
59
|
visible && React.createElement(OfficerQuickView, { id: id, visible: true, onCancel: () => setVisible(false) })));
|
|
53
60
|
});
|
|
54
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CA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C;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
1
3
|
.officer-item {
|
|
2
4
|
position: relative;
|
|
3
5
|
display: flex;
|
|
@@ -51,5 +53,10 @@
|
|
|
51
53
|
font-size: 13px;
|
|
52
54
|
line-height: 22px;
|
|
53
55
|
}
|
|
56
|
+
|
|
57
|
+
.icon-check {
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
color: @primary-color;
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
|
-
}
|
|
62
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { IOfficer } from "../../../../../../data/officer";
|
|
2
3
|
import "./index.less";
|
|
3
4
|
declare const OfficerList: (props: {
|
|
4
|
-
officersRegisterId
|
|
5
|
-
corporateId
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
officersRegisterId?: string | undefined;
|
|
6
|
+
corporateId?: string | undefined;
|
|
7
|
+
/** 是否在 selectDialog 中显示 */
|
|
8
|
+
selectDialog?: boolean | undefined;
|
|
9
|
+
allowEdit?: boolean | undefined;
|
|
10
|
+
selectedLists?: IOfficer[] | undefined;
|
|
11
|
+
onRedirect?: (() => void) | undefined;
|
|
12
|
+
onSelectCorporateUnit?: ((params?: any) => void) | undefined;
|
|
8
13
|
}) => JSX.Element;
|
|
9
14
|
export default OfficerList;
|
|
@@ -21,14 +21,14 @@ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialo
|
|
|
21
21
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
22
22
|
import "./index.less";
|
|
23
23
|
const OfficerList = (props) => {
|
|
24
|
-
const { officersRegisterId, corporateId, allowEdit } = props;
|
|
24
|
+
const { officersRegisterId, corporateId, allowEdit, selectDialog } = props;
|
|
25
25
|
const [officerTotal, setOfficerTotal] = useState(0);
|
|
26
26
|
const view = useViewContext();
|
|
27
27
|
const officerStore = useOfficerStore();
|
|
28
28
|
const corporateStore = useCorporateStore();
|
|
29
29
|
const list = useCreateListDataState({
|
|
30
30
|
filterDefaults: {
|
|
31
|
-
filters:
|
|
31
|
+
filters: filters(),
|
|
32
32
|
},
|
|
33
33
|
}, [officersRegisterId]);
|
|
34
34
|
const state = useDeepMemo(() => new State(), [officersRegisterId]);
|
|
@@ -63,17 +63,43 @@ const OfficerList = (props) => {
|
|
|
63
63
|
React.createElement(Menu.Item, { key: "Manager" }, "Manager"))),
|
|
64
64
|
}, moreFunBtn: toolBtns }));
|
|
65
65
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
66
|
-
React.createElement(ListView, { headerProps:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
React.createElement(ListView, { headerProps: props.selectDialog
|
|
67
|
+
? {
|
|
68
|
+
filterViewProps: {
|
|
69
|
+
columns: [React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter" })],
|
|
70
|
+
},
|
|
71
|
+
viewTitle: " ",
|
|
72
|
+
addAble: false,
|
|
73
|
+
sortable: false,
|
|
74
|
+
quickSearch: true,
|
|
75
|
+
}
|
|
76
|
+
: {
|
|
77
|
+
header: header,
|
|
78
|
+
sortable: false,
|
|
79
|
+
addAble: false,
|
|
80
|
+
}, asideable: !selectDialog, renderItem: ({ item, index }) => {
|
|
71
81
|
var _a;
|
|
72
82
|
return (React.createElement(DocumentItemFrame, { key: item.id },
|
|
73
|
-
React.createElement(OfficerItem, { id: item.id, unitId: item.contact.id, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" })));
|
|
83
|
+
React.createElement(OfficerItem, { id: item.id, unitId: item.contact.id, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView", selectDialog: selectDialog, checked: state.checkOfficerId === item.id, onSelectCorporateUnit: (officer) => onCheckItem(officer) })));
|
|
74
84
|
}, propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && (React.createElement(OfficerPropertiesView, { id: id, allowEdit: allowEdit })), className: "officer-list-view" }),
|
|
75
85
|
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => runInAction(() => (state.addAble = false)) }))));
|
|
76
86
|
});
|
|
87
|
+
function filters() {
|
|
88
|
+
const filter = [];
|
|
89
|
+
if (officersRegisterId) {
|
|
90
|
+
filter.push({ c: "ParentNodeId", o: "=", l: "And", v1: officersRegisterId });
|
|
91
|
+
}
|
|
92
|
+
if (selectDialog && corporateId) {
|
|
93
|
+
filter.push({ c: "CorporateId", o: "=", l: "And", v1: corporateId });
|
|
94
|
+
}
|
|
95
|
+
return filter;
|
|
96
|
+
}
|
|
97
|
+
function onCheckItem(member) {
|
|
98
|
+
var _a;
|
|
99
|
+
/** 已选中的再次click时取消选中状态 */
|
|
100
|
+
state.checkOfficerId = state.checkOfficerId === member.id ? "" : member.id;
|
|
101
|
+
(_a = props.onSelectCorporateUnit) === null || _a === void 0 ? void 0 : _a.call(props, member);
|
|
102
|
+
}
|
|
77
103
|
/** 新增officerItem */
|
|
78
104
|
async function onSave(unit) {
|
|
79
105
|
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAgB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,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qB,sDAAG,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,oBAAoB;IACpB,KAAK,UAAU,MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE;YACT,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC;gBACrC,IAAI,EAAE,EAAE,UAAU,EAAE,kBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;gBACvF,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;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,SAAS,gBAAgB;QACxB,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,8CAA8C;YACrD,KAAK,CAAC,IAAI;gBACT,MAAM,cAAc;qBAClB,cAAc,CAAC,WAAY,EAAE,kBAAmB,EAAE;oBAClD,KAAK,EAAE,SAAS;iBAChB,CAAC;qBACD,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;YACtD,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -22,6 +22,12 @@ export class State {
|
|
|
22
22
|
writable: true,
|
|
23
23
|
value: false
|
|
24
24
|
});
|
|
25
|
+
Object.defineProperty(this, "checkOfficerId", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: ""
|
|
30
|
+
});
|
|
25
31
|
Object.defineProperty(this, "onSelect", {
|
|
26
32
|
enumerable: true,
|
|
27
33
|
configurable: true,
|
|
@@ -43,6 +49,9 @@ __decorate([
|
|
|
43
49
|
__decorate([
|
|
44
50
|
observable
|
|
45
51
|
], State.prototype, "loading", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
observable
|
|
54
|
+
], State.prototype, "checkOfficerId", void 0);
|
|
46
55
|
__decorate([
|
|
47
56
|
action
|
|
48
57
|
/** 选择officer position */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IASjB;QARA,kCAAkC;QACtB;;;;mBAAkB,UAAU;WAAC;QACzC,4BAA4B;QAChB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,KAAK;WAAC;QAEvB;;;;mBAAwB,EAAE;WAAC;QAQvC;;;;mBAAkB,CAAC,QAAa,EAAE,EAAE;gBACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,CAAC;WAAC;QARD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAQD;AAjBY;IAAX,UAAU;uCAA8B;AAE7B;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;6CAA4B;AAQvC;IAFC,MAAM;IACP,yBAAyB;uCAIvB"}
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
2
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
3
|
+
import { useShareCertificate, useShareCertificateStore, } from "../../../../../data/share-certificate";
|
|
4
|
+
import { Image } from "@voplus/antd";
|
|
5
|
+
import { base64ToBlob, blobToBase64 } from "base64-blob";
|
|
6
|
+
import { QRCodeCanvas } from "qrcode.react";
|
|
7
|
+
import SignatureDialog from "@voplus/morpho-ui/es/components/SignatureDialog";
|
|
4
8
|
import styles from "./index.less";
|
|
5
9
|
const ShareCertificate = (props) => {
|
|
6
10
|
const shareCertificate = useShareCertificate(props.id);
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const [file1, setFile1] = useState();
|
|
13
|
+
const [file2, setFile2] = useState();
|
|
7
14
|
const [signVisible, setSignVisible] = useState(false);
|
|
15
|
+
useAutorunEffect(() => {
|
|
16
|
+
if (shareCertificate.signature1) {
|
|
17
|
+
base64ToBlob(JSON.parse(shareCertificate.signature1)).then((val) => {
|
|
18
|
+
setFile1(val);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
if (shareCertificate.signature2) {
|
|
22
|
+
base64ToBlob(JSON.parse(shareCertificate.signature2)).then((val) => {
|
|
23
|
+
setFile2(val);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
8
27
|
return observe(() => (React.createElement("div", { className: styles["share-certificate-print"] },
|
|
9
28
|
React.createElement("img", { className: "share-certificate-img", src: "/img/share-certificate/background-image.jpg", alt: "" }),
|
|
10
29
|
React.createElement("div", { className: "share-certificate-content" },
|
|
@@ -44,10 +63,18 @@ const ShareCertificate = (props) => {
|
|
|
44
63
|
React.createElement("span", null, "2022")))),
|
|
45
64
|
React.createElement("div", { className: "share-certificate-footer" },
|
|
46
65
|
React.createElement("div", { className: "share-certificate-footer-boder" },
|
|
66
|
+
React.createElement("div", { className: "share-certificate-sign", onClick: () => !file1 && setSignVisible(true) }, file1 ? (React.createElement(Image, { src: window.URL.createObjectURL(file1), preview: false, width: "100%" })) : (React.createElement("span", { style: { color: "#94a3b8", cursor: "pointer" } }, "Click to sign"))),
|
|
47
67
|
React.createElement("span", null, "Director")),
|
|
48
|
-
React.createElement("div", { className: "share-certificate-footer-
|
|
68
|
+
React.createElement("div", { className: "share-certificate-footer-qrcode" }, shareCertificate.verifyURL && React.createElement(QRCodeCanvas, { value: shareCertificate.verifyURL })),
|
|
49
69
|
React.createElement("div", { className: "share-certificate-footer-boder" },
|
|
50
|
-
React.createElement("
|
|
70
|
+
React.createElement("div", { className: "share-certificate-sign", onClick: () => !file2 && setSignVisible(true) }, file2 ? (React.createElement(Image, { src: window.URL.createObjectURL(file2), preview: false, width: "100%" })) : (React.createElement("span", { style: { color: "#94a3b8", cursor: "pointer" } }, "Click to sign"))),
|
|
71
|
+
React.createElement("span", null, "Director/Secretary"))))),
|
|
72
|
+
signVisible && (React.createElement(SignatureDialog, { onCancel: () => setSignVisible(false), onSign: onSignature })))));
|
|
73
|
+
function onSignature(blob, name) {
|
|
74
|
+
blobToBase64(blob).then((res) => {
|
|
75
|
+
store.sharecertSign(props.id, { image: res, error: "message" });
|
|
76
|
+
});
|
|
77
|
+
}
|
|
51
78
|
};
|
|
52
79
|
export default ShareCertificate;
|
|
53
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificate/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificate/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAC9E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,gBAAgB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAoB,CAAC;IACvD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAoB,CAAC;IACvD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,gBAAgB,CAAC,GAAG,EAAE;QACrB,IAAI,gBAAgB,CAAC,UAAU,EAAE;YAChC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;gBAClE,QAAQ,CAAC,GAAG,CAAC,CAAC;YACf,CAAC,CAAC,CAAC;SACH;QACD,IAAI,gBAAgB,CAAC,UAAU,EAAE;YAChC,YAAY,C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AM,EAAE,WAAW,GAAI,CAC/E,CACI,CACN,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,IAAU,EAAE,IAAa;QAC7C,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
font-family: "Lucida Calligraphy", cursive, serif, sans-serif;
|
|
106
106
|
font-size: 16px;
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
&>span {
|
|
109
109
|
font-family: "Franklin Gothic", Arial, sans-serif;
|
|
110
110
|
font-weight: bold;
|
|
111
111
|
font-size: 14px;
|
|
@@ -122,12 +122,13 @@
|
|
|
122
122
|
align-items: center;
|
|
123
123
|
|
|
124
124
|
.share-certificate-footer-boder {
|
|
125
|
+
position: relative;
|
|
125
126
|
border: 1px dashed #ccc;
|
|
126
127
|
width: 380px;
|
|
127
128
|
height: 200px;
|
|
128
129
|
text-align: center;
|
|
129
130
|
|
|
130
|
-
|
|
131
|
+
&>span {
|
|
131
132
|
// font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
|
|
132
133
|
font-weight: 500;
|
|
133
134
|
border-top: 1px solid #000;
|
|
@@ -135,9 +136,19 @@
|
|
|
135
136
|
width: 140px;
|
|
136
137
|
margin-top: 155px;
|
|
137
138
|
}
|
|
139
|
+
|
|
140
|
+
.share-certificate-sign {
|
|
141
|
+
position: absolute;
|
|
142
|
+
left: 50%;
|
|
143
|
+
top: 50%;
|
|
144
|
+
transform: translate(-50%, -50%);
|
|
145
|
+
}
|
|
138
146
|
}
|
|
139
147
|
|
|
140
|
-
.share-certificate-footer-
|
|
148
|
+
.share-certificate-footer-qrcode {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
141
152
|
border-top: 1px dashed #ccc;
|
|
142
153
|
border-bottom: 1px dashed #ccc;
|
|
143
154
|
width: 300px;
|
|
@@ -149,7 +160,7 @@
|
|
|
149
160
|
font-family: "Lucida Calligraphy", cursive, serif, sans-serif;
|
|
150
161
|
font-size: 16px;
|
|
151
162
|
|
|
152
|
-
|
|
163
|
+
&>span {
|
|
153
164
|
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
154
165
|
font-size: 14px;
|
|
155
166
|
}
|
|
@@ -157,4 +168,4 @@
|
|
|
157
168
|
}
|
|
158
169
|
}
|
|
159
170
|
}
|
|
160
|
-
}
|
|
171
|
+
}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare type ShareCertificatePropertiesName = "Shareholder" | "Number" | "CertificateType" | "Shares" | "Class";
|
|
2
|
+
export declare type ShareCertificatePropertiesName = "Shareholder" | "Number" | "CertificateType" | "Shares" | "Class" | "Signee1" | "Signee2";
|
|
3
3
|
declare const ShareCertificateProperties: {
|
|
4
4
|
(props: {
|
|
5
5
|
id: string;
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js
CHANGED
|
@@ -39,6 +39,22 @@ const ShareCertificateProperties = (props) => {
|
|
|
39
39
|
return React.createElement(Form.Item, { label: "Shares" }, shareCertificate.shares);
|
|
40
40
|
case "Class":
|
|
41
41
|
return React.createElement(Form.Item, { label: "Class" }, shareCertificate.class);
|
|
42
|
+
case "Signee1":
|
|
43
|
+
return (React.createElement(Form.Item, { label: "Signee1" },
|
|
44
|
+
React.createElement(MetionList, { multiple: false, contacts: shareCertificate.signee1 ? [shareCertificate.signee1] : [], onChange: (list) => {
|
|
45
|
+
store.edit(id, {
|
|
46
|
+
data: { Signee1: list[0].id },
|
|
47
|
+
error: "message",
|
|
48
|
+
});
|
|
49
|
+
} })));
|
|
50
|
+
case "Signee2":
|
|
51
|
+
return (React.createElement(Form.Item, { label: "Signee2" },
|
|
52
|
+
React.createElement(MetionList, { multiple: false, contacts: shareCertificate.signee2 ? [shareCertificate.signee2] : [], onChange: (list) => {
|
|
53
|
+
store.edit(id, {
|
|
54
|
+
data: { Signee2: list[0].id },
|
|
55
|
+
error: "message",
|
|
56
|
+
});
|
|
57
|
+
} })));
|
|
42
58
|
}
|
|
43
59
|
}
|
|
44
60
|
};
|
|
@@ -51,6 +67,8 @@ ShareCertificateProperties.defaultProps = {
|
|
|
51
67
|
{ name: "Number" },
|
|
52
68
|
{ name: "Shares" },
|
|
53
69
|
{ name: "Class" },
|
|
70
|
+
{ name: "Signee1" },
|
|
71
|
+
{ name: "Signee2" },
|
|
54
72
|
],
|
|
55
73
|
};
|
|
56
74
|
export default ShareCertificateProperties;
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AACjF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AACjF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AAWpG,MAAM,0BAA0B,GAAG,CAAC,KAanC,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,SAAS,GAAG,0BAA0B,aAA1B,0BAA0B,uBAA1B,0BAA0B,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAElF,OAAO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AE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { SendToSignee, SendToShareholder } from "./items";
|
|
4
5
|
import DocumentMenu from "@voplus/morpho-document/es/controls/DocumentMenu";
|
|
5
6
|
import classnames from "classnames";
|
|
6
7
|
const ShareCertificateMenu = (props) => {
|
|
7
8
|
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
8
9
|
return observe(() => (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
9
10
|
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
10
|
-
React.createElement(DocumentMenu, { id: props.id })
|
|
11
|
+
React.createElement(DocumentMenu, { id: props.id }),
|
|
12
|
+
React.createElement(SendToSignee, null),
|
|
13
|
+
React.createElement(SendToShareholder, null)))));
|
|
11
14
|
};
|
|
12
15
|
export default ShareCertificateMenu;
|
|
13
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAC9B,oBAAC,YAAY,OAAG;YAChB,oBAAC,iBAAiB,OAAG,CACS,CAC1B,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SendToShareholder: (props: {
|
|
3
|
+
/** disabled Button */
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
/** function of Click */
|
|
6
|
+
action?: ((context?: any) => void) | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default SendToShareholder;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Modal } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faCircleThreeQuartersStroke } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useShareCertificateStore } from "../../../../../../data/share-certificate";
|
|
8
|
+
const SendToShareholder = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useDocumentMenuContext();
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const config = {
|
|
13
|
+
title: "Send To Shareholder ?",
|
|
14
|
+
maskClosable: true,
|
|
15
|
+
onOk: () => store.sendShareholder(context.id, { error: "message" }),
|
|
16
|
+
};
|
|
17
|
+
return observe(() => (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => Modal.confirm(config) },
|
|
18
|
+
React.createElement(FAIcon, { icon: faCircleThreeQuartersStroke }),
|
|
19
|
+
React.createElement("span", null, "Send To (Shareholder)"))));
|
|
20
|
+
};
|
|
21
|
+
export default SendToShareholder;
|
|
22
|
+
//# sourceMappingURL=SendToShareholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendToShareholder.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,MAAM,iBAAiB,GAAG,CAAC,KAK1B,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,MAAM,GAAG;QACd,KAAK,EAAE,uBAAuB;QAC9B,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;KACnE,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAC3E,oBAAC,MAAM,IAAC,IAAI,EAAE,2BAA2B,GAAI;QAC7C,0DAAkC,CAC1B,CACT,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Modal } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faSignature } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useShareCertificateStore } from "../../../../../../data/share-certificate";
|
|
8
|
+
const SendToSignee = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useDocumentMenuContext();
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const config = {
|
|
13
|
+
title: "Send To Signee ?",
|
|
14
|
+
maskClosable: true,
|
|
15
|
+
onOk: () => store.sendSignees(context.id, { error: "message" }),
|
|
16
|
+
};
|
|
17
|
+
return observe(() => (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => Modal.confirm(config) },
|
|
18
|
+
React.createElement(FAIcon, { icon: faSignature }),
|
|
19
|
+
React.createElement("span", null, "Send To (Signee)"))));
|
|
20
|
+
};
|
|
21
|
+
export default SendToSignee;
|
|
22
|
+
//# sourceMappingURL=SendToSignee.js.map
|