@voplus/morpho-csp 2.0.8 → 2.0.10
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/CurrencyView/index.js +2 -1
- package/es/components/CurrencyView/index.js.map +1 -1
- package/es/data/clda-form/interfaces.d.ts +31 -6
- package/es/data/clda-form/types.d.ts +30 -6
- package/es/data/share-certificate/interfaces.d.ts +4 -0
- package/es/data/share-certificate/types.d.ts +2 -1
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.d.ts +1 -0
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js +10 -2
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts +27 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +87 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +6 -18
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +16 -0
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +65 -0
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -0
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.less +37 -0
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +10 -0
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +19 -0
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -0
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.less +42 -0
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +67 -55
- package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +72 -59
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +66 -54
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.d.ts +16 -0
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js +27 -0
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js.map +1 -0
- package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.less +34 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts +27 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +51 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +10 -19
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.d.ts +27 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +71 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +8 -20
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +68 -56
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +5 -4
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +66 -40
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +2 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Download.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Download.js +20 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Download.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +4 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js +2 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.less +10 -3
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/AddDirectorFeeDialog/index.d.ts +7 -0
- package/es/modules/self-registration/clda-form/incorporation/AddDirectorFeeDialog/index.js +38 -0
- package/es/modules/self-registration/clda-form/incorporation/AddDirectorFeeDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/AddDirectorFeeDialog/state.d.ts +20 -0
- package/es/modules/self-registration/clda-form/incorporation/AddDirectorFeeDialog/state.js +36 -0
- package/es/modules/self-registration/clda-form/incorporation/AddDirectorFeeDialog/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +200 -60
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/agm/index.less +41 -2
- package/es/modules/self-registration/controls/Tips/Tip.js +1 -1
- package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { Select } from "antd";
|
|
3
|
+
import classnames from "classnames";
|
|
3
4
|
const currencyList = [
|
|
4
5
|
"AFN",
|
|
5
6
|
"EUR",
|
|
@@ -184,7 +185,7 @@ const CurrencyView = (props) => {
|
|
|
184
185
|
const { currency, editable, readonly, className, style, onChange } = props;
|
|
185
186
|
const [value, setValue] = useState(currency);
|
|
186
187
|
const [edit, setEdit] = useState(false);
|
|
187
|
-
return edit || editable ? (React.createElement(Select, { autoFocus: true, showSearch: true, open: edit, style: style, value: value, optionFilterProp: "children", onChange: changeCurrency, onBlur: () => changeCurrency, onDropdownVisibleChange: (open) => setEdit(open) }, currencyList.map((currency) => (React.createElement(Select.Option, { key: currency, value: currency }, currency))))) : (React.createElement("
|
|
188
|
+
return edit || editable ? (React.createElement(Select, { autoFocus: true, showSearch: true, open: edit, style: style, value: value, optionFilterProp: "children", onChange: changeCurrency, onBlur: () => changeCurrency, onDropdownVisibleChange: (open) => setEdit(open) }, currencyList.map((currency) => (React.createElement(Select.Option, { key: currency, value: currency }, currency))))) : (React.createElement("span", { className: classnames(className, { "add-info-style": !currency }), onClick: () => !readonly && setEdit(true) }, currency || "Add Currency"));
|
|
188
189
|
function changeCurrency(value) {
|
|
189
190
|
setValue(value);
|
|
190
191
|
if (onChange)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrencyView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrencyView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,YAAY,GAAG;IACpB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IAC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,cAAc,EAC5B,uBAAuB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAE/C,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC/B,oBAAC,MAAM,CAAC,MAAM,IAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,IAC3C,QAAQ,CACM,CAChB,CAAC,CACM,CACT,CAAC,CAAC,CAAC,CACH,8BACC,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,EAAE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,EACjE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,IAExC,QAAQ,IAAI,cAAc,CACrB,CACP,CAAC;IAEF,SAAS,cAAc,CAAC,KAAa;QACpC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChB,IAAI,QAAQ;YAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;AACF,CAAC,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC3B,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;CAC5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -75,12 +75,37 @@ export interface IBVIFormContent {
|
|
|
75
75
|
recordAddress?: IAddress;
|
|
76
76
|
}
|
|
77
77
|
export interface IAGMFormContent {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
corporate?: {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
};
|
|
82
|
+
director1?: {
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
};
|
|
86
|
+
director2?: {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
};
|
|
90
|
+
auditor?: {
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
};
|
|
94
|
+
dividend?: {
|
|
95
|
+
currency?: string;
|
|
96
|
+
amount?: number;
|
|
97
|
+
paymentDate?: string;
|
|
98
|
+
};
|
|
99
|
+
directorsFees?: {
|
|
100
|
+
director: {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
};
|
|
104
|
+
currency?: string;
|
|
105
|
+
amount?: number;
|
|
106
|
+
key?: number;
|
|
107
|
+
}[];
|
|
108
|
+
others?: string;
|
|
84
109
|
}
|
|
85
110
|
export interface ICLDAForm extends IDocument {
|
|
86
111
|
content: IINCFormContent & IBVIFormContent & IAGMFormContent;
|
|
@@ -137,12 +137,36 @@ export declare type INCFormEditOptions = {
|
|
|
137
137
|
Address?: Address;
|
|
138
138
|
};
|
|
139
139
|
export declare type AGMFormEditOptions = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
Corporate?: {
|
|
141
|
+
Id: string;
|
|
142
|
+
Name: string;
|
|
143
|
+
};
|
|
144
|
+
Director1?: {
|
|
145
|
+
Id: string;
|
|
146
|
+
Name: string;
|
|
147
|
+
};
|
|
148
|
+
Director2?: {
|
|
149
|
+
Id: string;
|
|
150
|
+
Name: string;
|
|
151
|
+
};
|
|
152
|
+
Auditor?: {
|
|
153
|
+
Id: string;
|
|
154
|
+
Name: string;
|
|
155
|
+
};
|
|
156
|
+
Dividend?: {
|
|
157
|
+
Currency?: string;
|
|
158
|
+
Amount?: number;
|
|
159
|
+
PaymentDate?: string;
|
|
160
|
+
};
|
|
161
|
+
DirectorsFees?: {
|
|
162
|
+
Director: {
|
|
163
|
+
Id: string;
|
|
164
|
+
Name: string;
|
|
165
|
+
};
|
|
166
|
+
Currency?: string;
|
|
167
|
+
Amount?: number;
|
|
168
|
+
}[];
|
|
169
|
+
Others?: string;
|
|
146
170
|
};
|
|
147
171
|
/** 應該使用PascalCase,edit options 也不應該混用 interface, 有機會改正 - 10 Jun 2022 Alex*/
|
|
148
172
|
export declare type EditCLDAFormOptions = {
|
|
@@ -13,6 +13,10 @@ export interface IShareCertificate extends IDocument {
|
|
|
13
13
|
/** 已付金额 */
|
|
14
14
|
/** 股票状态 */
|
|
15
15
|
certificateStatus: ShareCertificateStatus;
|
|
16
|
+
certificate?: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
16
20
|
shareholderName: string;
|
|
17
21
|
shares: number;
|
|
18
22
|
corporateUnit?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateDocumentOptions } from "@voplus/morpho-document-core";
|
|
2
|
-
export declare type ShareCertificateType = "Digital" | "
|
|
2
|
+
export declare type ShareCertificateType = "Digital" | "Physical" | "PhysicalThirdParty";
|
|
3
3
|
export declare type ShareCertificateStatus = "Draft" | "Issued" | "Cancelled" | "Signing";
|
|
4
4
|
/** Custom create shareCertificate options type. Use TitleCase to fit server need. */
|
|
5
5
|
export declare type CreateShareCertificateOptions = CreateDocumentOptions;
|
|
@@ -9,6 +9,7 @@ export declare type CreateShareCertificateOptions = CreateDocumentOptions;
|
|
|
9
9
|
export declare type EditShareCertificateOptions = {
|
|
10
10
|
Number?: number;
|
|
11
11
|
CertificateType?: ShareCertificateType;
|
|
12
|
+
CertificateStatus?: ShareCertificateStatus;
|
|
12
13
|
Signee1?: string;
|
|
13
14
|
Signee2?: string;
|
|
14
15
|
CertificateDate?: string;
|
|
@@ -2,6 +2,7 @@ import React, { CSSProperties } from "react";
|
|
|
2
2
|
import { IOfficer } from "../../../../../data/officer";
|
|
3
3
|
declare const CorporateOfficerSelect: (props: {
|
|
4
4
|
corporateId?: string | undefined;
|
|
5
|
+
isFilterAuditor?: boolean | undefined;
|
|
5
6
|
disable?: boolean | undefined;
|
|
6
7
|
style?: React.CSSProperties | undefined;
|
|
7
8
|
onChange?: ((officer: IOfficer) => void | Promise<void>) | undefined;
|
|
@@ -4,10 +4,10 @@ import { Select } from "antd";
|
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
6
6
|
const CorporateOfficerSelect = (props) => {
|
|
7
|
-
const { corporateId, disable, style } = props;
|
|
7
|
+
const { corporateId, disable, style, isFilterAuditor } = props;
|
|
8
8
|
const list = useCreateListDataState({
|
|
9
9
|
filterDefaults: {
|
|
10
|
-
filters:
|
|
10
|
+
filters: filters(),
|
|
11
11
|
},
|
|
12
12
|
}, [corporateId]);
|
|
13
13
|
useOfficerListEffect(list, (result) => list.union(result), list.filters.options);
|
|
@@ -15,6 +15,14 @@ const CorporateOfficerSelect = (props) => {
|
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
return (React.createElement(Select.Option, { value: officer.id, key: officer.id }, (_b = (_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.name));
|
|
17
17
|
}))));
|
|
18
|
+
function filters() {
|
|
19
|
+
const filter = [];
|
|
20
|
+
if (corporateId)
|
|
21
|
+
filter.push({ c: "CorporateId", o: "=", l: "And", v1: corporateId });
|
|
22
|
+
if (isFilterAuditor)
|
|
23
|
+
filter.push({ c: "Position", o: "=", l: "And", v1: "Auditor" });
|
|
24
|
+
return filter;
|
|
25
|
+
}
|
|
18
26
|
/** select officer */
|
|
19
27
|
async function onSelect(value) {
|
|
20
28
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateOfficerSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAY,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateOfficerSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAY,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,sBAAsB,GAAG,CAAC,KAM/B,EAAE,EAAE;IACJ,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAE/D,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,OAAO,EAAE;SAClB;KACD,EACD,CAAC,WAAW,CAAC,CACb,CAAC;IAEF,oBAAoB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IACN,UAAU,QACV,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAClC,WAAW,EAAC,yBAAyB,EACrC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,IAEzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;QAAC,OAAA,CAC3B,oBAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAE,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,IAC/C,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,mCAAI,MAAA,OAAO,CAAC,OAAO,0CAAE,IAAI,CACrC,CAChB,CAAA;KAAA,CAAC,CACM,CACT,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,MAAM,MAAM,GAAmB,EAAE,CAAC;QAElC,IAAI,WAAW;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;QAEtF,IAAI,eAAe;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;QAErF,OAAO,MAAM,CAAC;IACf,CAAC;IAED,qBAAqB;IACrB,KAAK,UAAU,QAAQ,CAAC,KAAa;;QACpC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC;QACvD,MAAM,CAAA,MAAA,KAAK,CAAC,QAAQ,sDAAG,QAAS,CAAC,CAAA,CAAC;IACnC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ControllerPropertiesName = "Status" | "Confimration Status" | "Confimration Date" | "Appointment Date" | "Cease Date" | "Email" | "Phone";
|
|
3
|
+
declare const ControllerProperties: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
allowEdit?: boolean;
|
|
7
|
+
controllerTitle?: string;
|
|
8
|
+
orgContactTitle?: string;
|
|
9
|
+
controllerProperties?: {
|
|
10
|
+
name: ControllerPropertiesName;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
orgContactProperties?: {
|
|
14
|
+
name: "Phone" | "Address" | "E-mail" | "DingId" | "Site" | "Birthday" | "Gender";
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
onReloadMenu?: () => void;
|
|
18
|
+
}): JSX.Element;
|
|
19
|
+
defaultProps: {
|
|
20
|
+
controllerTitle: string;
|
|
21
|
+
orgContactTitle: string;
|
|
22
|
+
controllerProperties: {
|
|
23
|
+
name: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default ControllerProperties;
|
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
3
|
+
import { useController, useControllerStore, } from "../../../../../../data/controller";
|
|
4
|
+
import { Form, Row, Col, Badge } from "antd";
|
|
5
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
6
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
7
|
+
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
8
|
+
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
9
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
10
|
+
import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
|
|
11
|
+
import dayjs from "dayjs";
|
|
12
|
+
const ControllerProperties = (props) => {
|
|
13
|
+
const { id, allowEdit, controllerTitle, orgContactTitle, controllerProperties, orgContactProperties, } = props;
|
|
14
|
+
const controller = useController(id);
|
|
15
|
+
const controllerStore = useControllerStore();
|
|
16
|
+
const filterPro = controllerProperties === null || controllerProperties === void 0 ? void 0 : controllerProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
17
|
+
return observe(() => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
return (React.createElement("div", { className: "properties-list" },
|
|
20
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
21
|
+
React.createElement(PropertiesSection, { title: controllerTitle, properties: React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))) }),
|
|
22
|
+
React.createElement(Row, null,
|
|
23
|
+
React.createElement(Col, { span: 10 }, "Identity:"),
|
|
24
|
+
React.createElement(Col, { span: 14 },
|
|
25
|
+
React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: controller.contact.id, controllerId: id, allowEdit: allowEdit }))),
|
|
26
|
+
React.createElement(ContactProperties, { fromLabelRequired: true, id: (_b = controller === null || controller === void 0 ? void 0 : controller.contact) === null || _b === void 0 ? void 0 : _b.id, labelCol: 10, wrapperCol: 14, title: orgContactTitle, customProperties: orgContactProperties }))));
|
|
27
|
+
});
|
|
28
|
+
function renderProp(item) {
|
|
29
|
+
switch (item.name) {
|
|
30
|
+
case "Status":
|
|
31
|
+
return (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" })))));
|
|
32
|
+
case "Confimration Status":
|
|
33
|
+
return (React.createElement(Form.Item, { label: "Confimration Status" },
|
|
34
|
+
React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: allowEdit, onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) })));
|
|
35
|
+
case "Confimration Date":
|
|
36
|
+
return (React.createElement(Form.Item, { label: "Confimration Date" },
|
|
37
|
+
React.createElement(InlineEdit, { defaultValue: dayjs(controller.confimrationDate), content: (v) => controller.confimrationDate ? (React.createElement("span", null, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, allowEdit ? "Add Confimration Date" : "No Confimration Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
38
|
+
if ((controller === null || controller === void 0 ? void 0 : controller.confimrationDate) &&
|
|
39
|
+
dayjs(date).isSame(controller.confimrationDate, "day"))
|
|
40
|
+
return;
|
|
41
|
+
edit({
|
|
42
|
+
ConfimrationDate: (date !== null ? dayjs(date).format("YYYY-MM-DD") : ""),
|
|
43
|
+
});
|
|
44
|
+
} })));
|
|
45
|
+
case "Appointment Date":
|
|
46
|
+
return (React.createElement(Form.Item, { label: "Appointment Date" },
|
|
47
|
+
React.createElement(InlineEdit, { defaultValue: dayjs((controller === null || controller === void 0 ? void 0 : controller.appointment) !== "" ? controller === null || controller === void 0 ? void 0 : controller.appointment : undefined), content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, allowEdit ? "Add Appointment Date" : "No Appointment Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
48
|
+
if ((controller === null || controller === void 0 ? void 0 : controller.appointment) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.appointment, "day"))
|
|
49
|
+
return;
|
|
50
|
+
edit({
|
|
51
|
+
Appointment: (date !== null ? dayjs(date).format("YYYY-MM-DD") : ""),
|
|
52
|
+
});
|
|
53
|
+
} })));
|
|
54
|
+
case "Cease Date":
|
|
55
|
+
return (React.createElement(Form.Item, { label: "Cease Date" },
|
|
56
|
+
React.createElement(InlineEdit, { defaultValue: dayjs((controller === null || controller === void 0 ? void 0 : controller.cease) !== "" ? controller === null || controller === void 0 ? void 0 : controller.cease : undefined), content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, allowEdit ? "Add Cease Date" : "No Cease Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
|
|
57
|
+
if ((controller === null || controller === void 0 ? void 0 : controller.cease) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.cease, "day"))
|
|
58
|
+
return;
|
|
59
|
+
edit({ Cease: (date !== null ? dayjs(date).format("YYYY-MM-DD") : "") });
|
|
60
|
+
} })));
|
|
61
|
+
case "Email":
|
|
62
|
+
return (React.createElement(Form.Item, { label: "Email" },
|
|
63
|
+
React.createElement(InlineEdit, { defaultValue: controller.email, content: (v) => controller.email ? (React.createElement("span", null, controller.email)) : (React.createElement("span", { className: "add-info-style" }, "Add Email")), onSave: (value) => controllerStore.edit(id, { data: { Email: value }, error: "message" }) })));
|
|
64
|
+
case "Phone":
|
|
65
|
+
return (React.createElement(Form.Item, { label: "Phone" },
|
|
66
|
+
React.createElement(InlineEdit, { defaultValue: controller.phone, content: (v) => controller.phone ? (React.createElement("span", null, controller.phone)) : (React.createElement("span", { className: "add-info-style" }, "Add Phone")), onSave: (value) => controllerStore.edit(id, { data: { Phone: value }, error: "message" }) })));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function edit(data) {
|
|
70
|
+
await controllerStore.edit(id, { data, error: "message" });
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
ControllerProperties.defaultProps = {
|
|
74
|
+
controllerTitle: "Controller Properties",
|
|
75
|
+
orgContactTitle: "Contact Properties",
|
|
76
|
+
controllerProperties: [
|
|
77
|
+
{ name: "Status" },
|
|
78
|
+
{ name: "Confimration Status" },
|
|
79
|
+
{ name: "Confimration Date" },
|
|
80
|
+
{ name: "Appointment Date" },
|
|
81
|
+
{ name: "Cease Date" },
|
|
82
|
+
{ name: "Email" },
|
|
83
|
+
{ name: "Phone" },
|
|
84
|
+
],
|
|
85
|
+
};
|
|
86
|
+
export default ControllerProperties;
|
|
87
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,oBAAoB,GAAG,CAAC,KAc7B,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,GACpB,GAAG,KAAK,CAAC;IAEV,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,MAAM,SAAS,GAAG,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAE5E,OAAO,OAAO,CAAC,GA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AAC;IAED,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;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,uBAAuB;IACxC,eAAe,EAAE,oBAAoB;IACrC,oBAAoB,EAAE;QACrB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC7B,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -2,16 +2,14 @@ import React, { useMemo } from "react";
|
|
|
2
2
|
import { Skeleton, Tabs } from "antd";
|
|
3
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
4
|
import { useController, useControllerStore } from "../../../../../../data/controller";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
7
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
6
8
|
import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
|
|
7
|
-
import
|
|
8
|
-
import ControllerInformation from "../ControllerInformation";
|
|
9
|
+
import ControllerProperties from "../ControllerProperties";
|
|
9
10
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
10
|
-
import IdentifyDetail from "../../../identity/components/IdentifyDetail";
|
|
11
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
12
11
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
13
12
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
14
|
-
import { observe } from "@voplus/morpho-ui";
|
|
15
13
|
import styles from "./index.less";
|
|
16
14
|
const ControllerPropertiesView = (props) => {
|
|
17
15
|
const { id, allowEdit, toolbar } = props;
|
|
@@ -19,7 +17,7 @@ const ControllerPropertiesView = (props) => {
|
|
|
19
17
|
const store = useControllerStore();
|
|
20
18
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
21
19
|
return observe(() => {
|
|
22
|
-
var _a, _b, _c
|
|
20
|
+
var _a, _b, _c;
|
|
23
21
|
return (React.createElement(ViewContext.Provider, { value: view },
|
|
24
22
|
React.createElement("div", { className: styles["controller-properties-view-content"] },
|
|
25
23
|
controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
@@ -32,18 +30,8 @@ const ControllerPropertiesView = (props) => {
|
|
|
32
30
|
React.createElement(Tabs, { defaultActiveKey: "Controller", items: [
|
|
33
31
|
{
|
|
34
32
|
key: "Controller",
|
|
35
|
-
label: "
|
|
36
|
-
children: React.createElement(
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: "Contact",
|
|
40
|
-
label: "Contact Details",
|
|
41
|
-
children: React.createElement(ContactInformation, { id: controller.contact.id, allowEdit: allowEdit }),
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
key: "Identify",
|
|
45
|
-
label: "Identify Details",
|
|
46
|
-
children: (React.createElement(IdentifyDetail, { identityId: (_d = controller.identity) === null || _d === void 0 ? void 0 : _d.id, concatId: controller.contact.id, controllerId: id, allowEdit: allowEdit })),
|
|
33
|
+
label: "Details",
|
|
34
|
+
children: React.createElement(ControllerProperties, { id: id, allowEdit: allowEdit }),
|
|
47
35
|
},
|
|
48
36
|
{
|
|
49
37
|
key: "Documents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAIjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM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,SAAS,EAAE,SAAS,GAAI;yBAChE;wBACD;4BACC,GAAG,EAAE,WAAW;4BAChB,KAAK,EAAE,WAAW;4BAClB,QAAQ,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI;yBACjD;wBACD;4BACC,GAAG,EAAE,YAAY;4BACjB,KAAK,EAAE,YAAY;4BACnB,QAAQ,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAI;yBAC7E;qBACD,GACA,CACG,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const IdentifyProperties: (props: {
|
|
3
|
+
/** 用于请求 identity */
|
|
4
|
+
identityId: string;
|
|
5
|
+
/** 用于请求 identity 时 filter by UnitId */
|
|
6
|
+
concatId?: string;
|
|
7
|
+
/** officer-register id */
|
|
8
|
+
officerId?: string;
|
|
9
|
+
/** member-register id */
|
|
10
|
+
memberId?: string;
|
|
11
|
+
/** controller-register id */
|
|
12
|
+
controllerId?: string;
|
|
13
|
+
/** 是否允许 edit */
|
|
14
|
+
allowEdit?: boolean;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
export default IdentifyProperties;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Button } from "antd";
|
|
3
|
+
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { faEye, faEyeLowVision } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
|
|
6
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
+
import { useControllerStore } from "../../../../../../data/controller";
|
|
8
|
+
import { useMemberStore } from "../../../../../../data/member";
|
|
9
|
+
import { useOfficerStore } from "../../../../../../data/officer";
|
|
10
|
+
import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
|
|
11
|
+
import VerificationInformation from "@voplus/morpho-document/es/components/VerificationInformation";
|
|
12
|
+
import IdentifyQuickViewDialog from "../IdentifyQuickViewDialog";
|
|
13
|
+
import styles from "./index.less";
|
|
14
|
+
const IdentifyProperties = (props) => {
|
|
15
|
+
const { identityId, concatId, officerId, controllerId, memberId, allowEdit } = props;
|
|
16
|
+
const [number, setNumber] = useState("");
|
|
17
|
+
const [numberEdit, setNumberEdit] = useState(false);
|
|
18
|
+
const [viewIdentity, setViewIdentity] = useState(false);
|
|
19
|
+
const [quickView, setQuickView] = useState(false);
|
|
20
|
+
const identity = useIdentity(identityId);
|
|
21
|
+
const identityStore = useIdentityStore();
|
|
22
|
+
const officerStore = useOfficerStore();
|
|
23
|
+
const memberStore = useMemberStore();
|
|
24
|
+
const controllerStore = useControllerStore();
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
setNumber("");
|
|
27
|
+
setViewIdentity(false);
|
|
28
|
+
}, [identityId]);
|
|
29
|
+
return observe(() => (React.createElement("div", { className: styles["identity-properties"] },
|
|
30
|
+
React.createElement("div", { className: "identity-info" },
|
|
31
|
+
React.createElement("h2", { className: "identity-passport" },
|
|
32
|
+
React.createElement("span", null, identity ? `${identity === null || identity === void 0 ? void 0 : identity.country} ${identity === null || identity === void 0 ? void 0 : identity.type}` : ""),
|
|
33
|
+
React.createElement(InlineEdit, { showEditIcon: (identity === null || identity === void 0 ? void 0 : identity.number) ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null, (identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement("span", { className: "identity-number" },
|
|
34
|
+
!viewIdentity ? identity.number : number,
|
|
35
|
+
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVision : faEye, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))),
|
|
36
|
+
React.createElement("div", { className: "identity-content" },
|
|
37
|
+
React.createElement("div", { className: "identity-verification" },
|
|
38
|
+
React.createElement(VerificationInformation, { id: identityId }),
|
|
39
|
+
React.createElement(Button, { onClick: () => setQuickView(true) }, "Open Details"))),
|
|
40
|
+
numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })),
|
|
41
|
+
quickView && (React.createElement(IdentifyQuickViewDialog, { visible: true, identityId: identityId, identityName: identity.fullName, allowEdit: allowEdit, onCancel: () => setQuickView(false) })))));
|
|
42
|
+
function onSelect(ids) {
|
|
43
|
+
setNumberEdit(false);
|
|
44
|
+
if (ids) {
|
|
45
|
+
if (officerId) {
|
|
46
|
+
officerStore.edit(officerId, { data: { IdentityId: ids }, error: "message" });
|
|
47
|
+
}
|
|
48
|
+
if (controllerId) {
|
|
49
|
+
controllerStore.edit(controllerId, { data: { IdentityId: ids }, error: "message" });
|
|
50
|
+
}
|
|
51
|
+
if (memberId) {
|
|
52
|
+
memberStore.edit(memberId, { data: { IdentityId: ids }, error: "message" });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function onReveal() {
|
|
57
|
+
if (!viewIdentity) {
|
|
58
|
+
setViewIdentity(true);
|
|
59
|
+
const data = await identityStore.reveal(identityId);
|
|
60
|
+
setNumber(data.number);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export default IdentifyProperties;
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EA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EAAE,CAAC,CAAC;aACpF;YACD,IAAI,QAAQ,EAAE;gBACb,WAAW,CAAC,IAAI,CAAC,QAAS,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;aAC7E;SACD;IACF,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,YAAY,EAAE;YAClB,eAAe,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACpD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvB;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.identity-properties {
|
|
4
|
+
:global {
|
|
5
|
+
.identity-info {
|
|
6
|
+
padding-bottom: 20px;
|
|
7
|
+
|
|
8
|
+
.identity-passport {
|
|
9
|
+
display: flex;
|
|
10
|
+
line-height: 24px;
|
|
11
|
+
|
|
12
|
+
> span {
|
|
13
|
+
margin-right: 15px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.edit-icon {
|
|
17
|
+
margin-left: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.add-identity {
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.identity-number {
|
|
27
|
+
svg {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
color: @disabled-color;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
margin-left: 5px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const IdentifyQuickViewDialog: (props: {
|
|
3
|
+
identityId: string;
|
|
4
|
+
identityName: string;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
/** 是否允许 edit */
|
|
7
|
+
allowEdit?: boolean;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default IdentifyQuickViewDialog;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
4
|
+
import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
|
|
5
|
+
import IdentifyMenu from "../../controls/IdentifyMenu";
|
|
6
|
+
import IdentityInformation from "../IdentityInformation";
|
|
7
|
+
import styles from "./index.less";
|
|
8
|
+
const IdentifyQuickViewDialog = (props) => {
|
|
9
|
+
const { identityId, identityName, allowEdit } = props;
|
|
10
|
+
return observe(() => (React.createElement(QuickViewDialog, { id: props.identityId, visible: props.visible, isLinks: false, onCancel: props.onCancel, header: React.createElement("div", { className: styles["identify-quickView-dialog-header"] },
|
|
11
|
+
React.createElement("div", { className: "identify-quickView-title" }, `${identityName} Identity`),
|
|
12
|
+
React.createElement("div", { className: "tools-bar" },
|
|
13
|
+
React.createElement(ToolBar, { id: props.identityId, showMenu: false },
|
|
14
|
+
React.createElement(IdentifyMenu, { id: props.identityId, size: "middle" })))) },
|
|
15
|
+
React.createElement("div", { className: styles["identify-quickView-dialog-content"] },
|
|
16
|
+
React.createElement(IdentityInformation, { id: identityId, allowEdit: allowEdit })))));
|
|
17
|
+
};
|
|
18
|
+
export default IdentifyQuickViewDialog;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/Identify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-dialog-content {
|
|
2
|
+
height: 100%;
|
|
3
|
+
|
|
4
|
+
:global {
|
|
5
|
+
.identity-information {
|
|
6
|
+
height: 100%;
|
|
7
|
+
padding: 0 20px;
|
|
8
|
+
|
|
9
|
+
.identity-information-content {
|
|
10
|
+
height: 100%;
|
|
11
|
+
|
|
12
|
+
.identity-information-title {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
|
|
16
|
+
.hover-edit-btn {
|
|
17
|
+
display: none;
|
|
18
|
+
height: auto;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.identify-quickView-dialog-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
padding: 10px 38px 10px 20px;
|
|
31
|
+
|
|
32
|
+
:global {
|
|
33
|
+
|
|
34
|
+
.identify-quickView-title {
|
|
35
|
+
font-size: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tools-bar{
|
|
39
|
+
align-self: center !important;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|