@voplus/morpho-csp 4.0.14 → 4.0.16
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/data/clda-form/interfaces.d.ts +14 -10
- package/es/data/clda-form/types.d.ts +13 -10
- package/es/modules/self-registration/clda-form/incorporation/{AddOfficerDialog → company-general/components/AddOfficerDialog}/index.js +29 -17
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.d.ts +8 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js +128 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.less +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.d.ts +7 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +126 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.less +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.d.ts +21 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.js +56 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.d.ts +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.js +125 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.less +131 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +96 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.less +143 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.d.ts +7 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +60 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js +69 -10
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js.map +1 -1
- package/package.json +2 -2
- package/es/modules/self-registration/clda-form/incorporation/AddOfficerDialog/index.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/change-officer/index.d.ts +0 -5
- package/es/modules/self-registration/clda-form/incorporation/change-officer/index.js +0 -261
- package/es/modules/self-registration/clda-form/incorporation/change-officer/index.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/change-officer/index.less +0 -177
- package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.d.ts +0 -4
- package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.js +0 -100
- package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.less +0 -177
- /package/es/modules/self-registration/clda-form/incorporation/{AddOfficerDialog → company-general/components/AddOfficerDialog}/index.d.ts +0 -0
- /package/es/modules/self-registration/clda-form/incorporation/{AddOfficerDialog → company-general/components/AddOfficerDialog}/index.less +0 -0
|
@@ -28,12 +28,23 @@ export interface IOfficerPositionsData {
|
|
|
28
28
|
positions?: string[];
|
|
29
29
|
officerId?: string;
|
|
30
30
|
}
|
|
31
|
+
export interface ITransfer {
|
|
32
|
+
key?: number;
|
|
33
|
+
transforId?: string;
|
|
34
|
+
transfeeId?: string;
|
|
35
|
+
shareClass?: string;
|
|
36
|
+
shares?: number;
|
|
37
|
+
consideration?: number;
|
|
38
|
+
}
|
|
31
39
|
export interface INewOfficerAppointmentDetails {
|
|
32
40
|
officers?: IOfficerPositionsData[];
|
|
33
41
|
}
|
|
34
42
|
export interface IRemoveOfficerDetails {
|
|
35
43
|
officers?: IOfficerPositionsData[];
|
|
36
44
|
}
|
|
45
|
+
export interface ITransferDetails {
|
|
46
|
+
transfers?: ITransfer[];
|
|
47
|
+
}
|
|
37
48
|
export interface IShareholderOptions {
|
|
38
49
|
id: string;
|
|
39
50
|
shares: number;
|
|
@@ -131,18 +142,10 @@ export interface IAGMFormContent {
|
|
|
131
142
|
includeDirectorsStatement?: boolean;
|
|
132
143
|
includeDispenseResolutions?: boolean;
|
|
133
144
|
}
|
|
134
|
-
export interface
|
|
135
|
-
corporate?: {
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
};
|
|
139
|
-
newOfficers?: IOfficerData[];
|
|
145
|
+
export interface ICompanyGeneralFormEditOptions {
|
|
140
146
|
documentDate?: string;
|
|
141
147
|
effectiveDate?: string;
|
|
142
148
|
resignationData?: string;
|
|
143
|
-
removeOfficers?: IOfficerData[];
|
|
144
|
-
}
|
|
145
|
-
export interface ICompanyGeneralFormEditOptions {
|
|
146
149
|
corporate?: {
|
|
147
150
|
id: string;
|
|
148
151
|
name: string;
|
|
@@ -150,6 +153,7 @@ export interface ICompanyGeneralFormEditOptions {
|
|
|
150
153
|
contacts?: IFormPeopleOptions[];
|
|
151
154
|
newOfficerAppointments?: INewOfficerAppointmentDetails;
|
|
152
155
|
removeOfficerDetails?: IRemoveOfficerDetails;
|
|
156
|
+
transferDetails?: ITransferDetails;
|
|
153
157
|
}
|
|
154
158
|
export interface IAppointRepresentativeFormEditOptions {
|
|
155
159
|
corporate?: {
|
|
@@ -161,7 +165,7 @@ export interface IAppointRepresentativeFormEditOptions {
|
|
|
161
165
|
newRepresentatives?: IOfficerData[];
|
|
162
166
|
}
|
|
163
167
|
export interface ICLDAForm extends IDocument {
|
|
164
|
-
content: IINCFormContent & IBVIFormContent & IAGMFormContent &
|
|
168
|
+
content: IINCFormContent & IBVIFormContent & IAGMFormContent & ICompanyGeneralFormEditOptions & IAppointRepresentativeFormEditOptions;
|
|
165
169
|
/** submit date */
|
|
166
170
|
submitDate?: string;
|
|
167
171
|
customer?: {
|
|
@@ -24,12 +24,22 @@ export declare type OfficerPositionsData = {
|
|
|
24
24
|
Positions?: string[];
|
|
25
25
|
OfficerId?: string;
|
|
26
26
|
};
|
|
27
|
+
export declare type Transfer = {
|
|
28
|
+
TransforId?: string;
|
|
29
|
+
TransfeeId?: string;
|
|
30
|
+
ShareClass?: string;
|
|
31
|
+
Shares?: number;
|
|
32
|
+
Consideration?: number;
|
|
33
|
+
};
|
|
27
34
|
export declare type NewOfficerAppointmentDetails = {
|
|
28
35
|
Officers?: OfficerPositionsData[];
|
|
29
36
|
};
|
|
30
37
|
export declare type RemoveOfficerDetails = {
|
|
31
38
|
Officers?: OfficerPositionsData[];
|
|
32
39
|
};
|
|
40
|
+
export declare type TransferDetails = {
|
|
41
|
+
Transfers?: Transfer[];
|
|
42
|
+
};
|
|
33
43
|
export declare type FormPeopleOptions = {
|
|
34
44
|
/** 需要前端自己生成,可以用uuid */
|
|
35
45
|
Id: string;
|
|
@@ -192,18 +202,10 @@ export declare type AGMFormEditOptions = {
|
|
|
192
202
|
IncludeDispenseResolutions?: boolean;
|
|
193
203
|
IncludeDirectorsStatement?: boolean;
|
|
194
204
|
};
|
|
195
|
-
export declare type
|
|
196
|
-
Corporate?: {
|
|
197
|
-
Id: string;
|
|
198
|
-
Name: string;
|
|
199
|
-
};
|
|
200
|
-
NewOfficers?: OfficerData[];
|
|
205
|
+
export declare type CompanyGeneralFormEditOptions = {
|
|
201
206
|
DocumentDate?: string;
|
|
202
207
|
EffectiveDate?: string;
|
|
203
208
|
ResignationData?: string;
|
|
204
|
-
RemoveOfficers?: OfficerData[];
|
|
205
|
-
};
|
|
206
|
-
export declare type CompanyGeneralFormEditOptions = {
|
|
207
209
|
Corporate?: {
|
|
208
210
|
Id: string;
|
|
209
211
|
Name: string;
|
|
@@ -211,6 +213,7 @@ export declare type CompanyGeneralFormEditOptions = {
|
|
|
211
213
|
Contacts?: FormPeopleOptions[];
|
|
212
214
|
NewOfficerAppointments?: NewOfficerAppointmentDetails;
|
|
213
215
|
RemoveOfficerDetails?: RemoveOfficerDetails;
|
|
216
|
+
TransferDetails?: TransferDetails;
|
|
214
217
|
};
|
|
215
218
|
export declare type AppointRepresentativeFormEditOptions = {
|
|
216
219
|
Corporate?: {
|
|
@@ -224,4 +227,4 @@ export declare type AppointRepresentativeFormEditOptions = {
|
|
|
224
227
|
/** 應該使用PascalCase,edit options 也不應該混用 interface, 有機會改正 - 10 Jun 2022 Alex*/
|
|
225
228
|
export declare type EditCLDAFormOptions = {
|
|
226
229
|
Status?: string;
|
|
227
|
-
} & BVIFormEditOptions & INCFormEditOptions & AGMFormEditOptions &
|
|
230
|
+
} & BVIFormEditOptions & INCFormEditOptions & AGMFormEditOptions & CompanyGeneralFormEditOptions & AppointRepresentativeFormEditOptions;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Form, Modal, Select, message } from "antd";
|
|
3
|
-
import { useCLDAForm, useCLDAFormStore } from "
|
|
4
|
-
import { changeName } from "
|
|
3
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
5
|
import { clone } from "lodash-es";
|
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
|
7
7
|
import { v4 as uuid } from "uuid";
|
|
8
|
-
import NewLegalContactDialog from "
|
|
8
|
+
import NewLegalContactDialog from "../../../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
9
9
|
import "./index.less";
|
|
10
10
|
const AddOfficerDialog = (props) => {
|
|
11
|
-
var _a;
|
|
11
|
+
var _a, _b;
|
|
12
12
|
const { id, visible, onCancel } = props;
|
|
13
13
|
const [showDialog, setShowDialog] = useState(false);
|
|
14
14
|
const [contactId, setContactId] = useState();
|
|
@@ -17,11 +17,11 @@ const AddOfficerDialog = (props) => {
|
|
|
17
17
|
const store = useCLDAFormStore();
|
|
18
18
|
const incorporation = useCLDAForm(id);
|
|
19
19
|
useEffect(() => {
|
|
20
|
-
var _a, _b;
|
|
20
|
+
var _a, _b, _c;
|
|
21
21
|
const ids = [];
|
|
22
|
-
(_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.
|
|
22
|
+
(_c = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.map((item) => ids.push(item.officerId));
|
|
23
23
|
setList(ids);
|
|
24
|
-
}, [(_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.
|
|
24
|
+
}, [(_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers]);
|
|
25
25
|
return observe(() => {
|
|
26
26
|
var _a, _b;
|
|
27
27
|
return (React.createElement(Modal, { width: 500, title: "Add Officer", okText: "Add", onOk: onAdd, wrapClassName: "add-officer-dialog", onCancel: onCancel, open: visible },
|
|
@@ -91,25 +91,37 @@ const AddOfficerDialog = (props) => {
|
|
|
91
91
|
setShowDialog(false);
|
|
92
92
|
}
|
|
93
93
|
function onAdd() {
|
|
94
|
-
var _a;
|
|
94
|
+
var _a, _b, _c;
|
|
95
95
|
if (!contactId) {
|
|
96
|
-
|
|
96
|
+
message.warning("Please select contacts!");
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
OfficerId: contactId,
|
|
103
|
-
},
|
|
104
|
-
};
|
|
99
|
+
let officers = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers;
|
|
100
|
+
if (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
101
|
+
officers = changeName(officers);
|
|
105
102
|
store.edit(id, {
|
|
106
103
|
data: {
|
|
107
|
-
NewOfficerAppointments:
|
|
104
|
+
NewOfficerAppointments: {
|
|
105
|
+
Officers: (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
106
|
+
? [
|
|
107
|
+
...officers,
|
|
108
|
+
{
|
|
109
|
+
Positions: positions,
|
|
110
|
+
OfficerId: contactId,
|
|
111
|
+
},
|
|
112
|
+
]
|
|
113
|
+
: [
|
|
114
|
+
{
|
|
115
|
+
Positions: positions,
|
|
116
|
+
OfficerId: contactId,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
108
120
|
},
|
|
109
121
|
error: "message",
|
|
110
122
|
});
|
|
111
123
|
}
|
|
112
|
-
|
|
124
|
+
(_c = props.onCancel) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
113
125
|
}
|
|
114
126
|
};
|
|
115
127
|
export default AddOfficerDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC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+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Form, Modal, Select, message } from "antd";
|
|
3
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { v4 as uuid } from "uuid";
|
|
8
|
+
import NewLegalContactDialog from "../../../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
const AddRemoveOfficerDialog = (props) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const { id, visible, onCancel } = props;
|
|
13
|
+
const [showDialog, setShowDialog] = useState(false);
|
|
14
|
+
const [contactId, setContactId] = useState();
|
|
15
|
+
const [positions, setPositions] = useState([]);
|
|
16
|
+
const [list, setList] = useState();
|
|
17
|
+
const store = useCLDAFormStore();
|
|
18
|
+
const incorporation = useCLDAForm(id);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
const ids = [];
|
|
22
|
+
(_c = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.map((item) => ids.push(item.officerId));
|
|
23
|
+
setList(ids);
|
|
24
|
+
}, [(_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers]);
|
|
25
|
+
return observe(() => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
return (React.createElement(Modal, { width: 500, title: "Add Remove Officer", okText: "Add", onOk: onAdd, wrapClassName: "add-remove-officer-dialog", onCancel: onCancel, open: visible },
|
|
28
|
+
React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left" },
|
|
29
|
+
React.createElement(Form.Item, { label: "Contact" },
|
|
30
|
+
React.createElement(Select, { showSearch: true, placeholder: "Select or create a contact", optionFilterProp: "children", value: contactId, onChange: onChange, popupClassName: "add-remove-officer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
|
|
31
|
+
React.createElement(Select.Option, { value: "new" }, "New Contact"), (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 :
|
|
32
|
+
_b.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id, disabled: list === null || list === void 0 ? void 0 : list.includes(item.id) }, item.name))))),
|
|
33
|
+
React.createElement(Form.Item, { label: "Position(s)" },
|
|
34
|
+
React.createElement(Select, { mode: "tags", style: { width: "100%" }, placeholder: "Tags Mode", onChange: (value) => setPositions(value), options: [
|
|
35
|
+
{
|
|
36
|
+
value: "Director",
|
|
37
|
+
label: "Director",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "Secretary",
|
|
41
|
+
label: "Secretary",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: "Auditor",
|
|
45
|
+
label: "Auditor",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "Chief Executive Officer",
|
|
49
|
+
label: "Chief Executive Officer",
|
|
50
|
+
},
|
|
51
|
+
] }))),
|
|
52
|
+
showDialog && React.createElement(NewLegalContactDialog, { visible: true, updateVisible: onSave })));
|
|
53
|
+
});
|
|
54
|
+
function onChange(value) {
|
|
55
|
+
if (value === "new") {
|
|
56
|
+
setShowDialog(true);
|
|
57
|
+
setContactId("");
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
setContactId(value);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** 新增shareholder Item */
|
|
64
|
+
async function onSave(info) {
|
|
65
|
+
var _a;
|
|
66
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
67
|
+
if (info) {
|
|
68
|
+
const data = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts);
|
|
69
|
+
const officer = {
|
|
70
|
+
id: uuid(),
|
|
71
|
+
name: info.FullName,
|
|
72
|
+
email: info.Email,
|
|
73
|
+
phone: info.Phone,
|
|
74
|
+
address: info.Address,
|
|
75
|
+
identity: {
|
|
76
|
+
number: info.Number,
|
|
77
|
+
country: info.Country,
|
|
78
|
+
expiryDate: info.ExpiryDate,
|
|
79
|
+
type: info.Type,
|
|
80
|
+
},
|
|
81
|
+
idType: "NewId",
|
|
82
|
+
type: info.UnitType,
|
|
83
|
+
};
|
|
84
|
+
const officers = data ? [...data, officer] : [officer];
|
|
85
|
+
await store.edit(id, {
|
|
86
|
+
data: { Contacts: changeName(officers) },
|
|
87
|
+
error: "message",
|
|
88
|
+
});
|
|
89
|
+
setContactId(officer.id);
|
|
90
|
+
}
|
|
91
|
+
setShowDialog(false);
|
|
92
|
+
}
|
|
93
|
+
function onAdd() {
|
|
94
|
+
var _a, _b, _c;
|
|
95
|
+
if (!contactId) {
|
|
96
|
+
message.warning("Please select contacts!");
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
let officers = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers;
|
|
100
|
+
if (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
101
|
+
officers = changeName(officers);
|
|
102
|
+
store.edit(id, {
|
|
103
|
+
data: {
|
|
104
|
+
RemoveOfficerDetails: {
|
|
105
|
+
Officers: (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
106
|
+
? [
|
|
107
|
+
...officers,
|
|
108
|
+
{
|
|
109
|
+
Positions: positions,
|
|
110
|
+
OfficerId: contactId,
|
|
111
|
+
},
|
|
112
|
+
]
|
|
113
|
+
: [
|
|
114
|
+
{
|
|
115
|
+
Positions: positions,
|
|
116
|
+
OfficerId: contactId,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
error: "message",
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
(_c = props.onCancel) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
export default AddRemoveOfficerDialog;
|
|
128
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,qBAAqB,MAAM,+EAA+E,CAAC;AAClH,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAA8D,EAAE,EAAE;;IACjG,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IACrD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,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AAC,OAAO,0CAAE,oBAAoB,0CAAE,QAAQ,CAAC;YACrE,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM;gBAAE,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;YAEtD,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gBACd,IAAI,EAAE;oBACL,oBAAoB,EAAE;wBACrB,QAAQ,EAAE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM;4BACzB,CAAC,CAAC;gCACA,GAAG,QAAQ;gCACX;oCACC,SAAS,EAAE,SAAS;oCACpB,SAAS,EAAE,SAAS;iCACpB;6BACA;4BACH,CAAC,CAAC;gCACA;oCACC,SAAS,EAAE,SAAS;oCACpB,SAAS,EAAE,SAAS;iCACpB;6BACA;qBACJ;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;QACD,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Form, Modal, Select, InputNumber, message } from "antd";
|
|
3
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { State } from "./state";
|
|
7
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
8
|
+
import { v4 as uuid } from "uuid";
|
|
9
|
+
import NewLegalContactDialog from "../../../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
const AddTransferDialog = (props) => {
|
|
12
|
+
const { id } = props;
|
|
13
|
+
const store = useCLDAFormStore();
|
|
14
|
+
const incorporation = useCLDAForm(id);
|
|
15
|
+
const [state] = useState(new State());
|
|
16
|
+
let formData;
|
|
17
|
+
useAutorunEffect(() => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
return (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 : _b.map((item) => item.idType === "ExistingContactId" && state.ExistingContactList.push(item));
|
|
20
|
+
});
|
|
21
|
+
return observe(() => {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
return (React.createElement(Modal, { open: true, width: 500, title: "Add Transfer", okText: "Add", onOk: onAdd, wrapClassName: "add-transfer-dialog", onCancel: onCancel },
|
|
24
|
+
React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left", ref: (f) => (formData = f), initialValues: {
|
|
25
|
+
TransforId: undefined,
|
|
26
|
+
TransfeeId: undefined,
|
|
27
|
+
ShareClass: undefined,
|
|
28
|
+
Share: null,
|
|
29
|
+
Consideration: null,
|
|
30
|
+
} },
|
|
31
|
+
React.createElement(Form.Item, { label: "Transferor", name: "TransforId", rules: [{ required: true, message: "Transferor can not be empty" }] },
|
|
32
|
+
React.createElement(Select, { showSearch: true, placeholder: "Select a contact", optionFilterProp: "children", onChange: (transforId) => (state.params.TransforId = transforId), popupClassName: "add-transfer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 }, (_a = state.ExistingContactList) === null || _a === void 0 ? void 0 : _a.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))),
|
|
33
|
+
React.createElement(Form.Item, { label: "Transferee", name: "TransfeeId", rules: [{ required: true, message: "Transferee can not be empty" }] },
|
|
34
|
+
React.createElement(Select, { showSearch: true, placeholder: "Select or create a contact", optionFilterProp: "children", onChange: onChangeTransferee, popupClassName: "add-transfer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
|
|
35
|
+
React.createElement(Select.Option, { value: "new" }, "New Contact"), (_c = (_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.contacts) === null || _c === void 0 ? void 0 :
|
|
36
|
+
_c.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))),
|
|
37
|
+
React.createElement(Form.Item, { label: "Class", name: "ShareClass", rules: [{ required: true, message: "Class can not be empty" }] },
|
|
38
|
+
React.createElement(Select, { placeholder: "Select Share Class", optionFilterProp: "children", onChange: (value) => (state.params.ShareClass = value), filterOption: (input, option) => { var _a; return ((_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(input.toLowerCase()); }, options: [
|
|
39
|
+
{
|
|
40
|
+
value: "Ordinary",
|
|
41
|
+
label: "Ordinary",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: "Preference",
|
|
45
|
+
label: "Preference",
|
|
46
|
+
},
|
|
47
|
+
] })),
|
|
48
|
+
React.createElement(Form.Item, { label: "Share", name: "Share", rules: [{ required: true, message: "Share can not be empty" }] },
|
|
49
|
+
React.createElement(InputNumber, { placeholder: "please input Share", onChange: (value) => (state.params.Shares = value) })),
|
|
50
|
+
React.createElement(Form.Item, { label: "Consideration", name: "Consideration", rules: [{ required: true, message: "Consideration can not be empty" }] },
|
|
51
|
+
React.createElement(InputNumber, { placeholder: "please input Consideration", onChange: (value) => (state.params.Consideration = value) }))),
|
|
52
|
+
state.newLegalContactVisible && (React.createElement(NewLegalContactDialog, { visible: true, updateVisible: onSave }))));
|
|
53
|
+
});
|
|
54
|
+
function onChangeTransferee(value) {
|
|
55
|
+
state.params.TransfeeId = value;
|
|
56
|
+
if (value === "new") {
|
|
57
|
+
state.newLegalContactVisible = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/** 新增shareholder Item */
|
|
61
|
+
async function onSave(info) {
|
|
62
|
+
var _a;
|
|
63
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
64
|
+
if (info) {
|
|
65
|
+
const data = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts);
|
|
66
|
+
const officer = {
|
|
67
|
+
id: uuid(),
|
|
68
|
+
name: info.FullName,
|
|
69
|
+
email: info.Email,
|
|
70
|
+
phone: info.Phone,
|
|
71
|
+
address: info.Address,
|
|
72
|
+
identity: {
|
|
73
|
+
number: info.Number,
|
|
74
|
+
country: info.Country,
|
|
75
|
+
expiryDate: info.ExpiryDate,
|
|
76
|
+
type: info.Type,
|
|
77
|
+
},
|
|
78
|
+
idType: "NewId",
|
|
79
|
+
type: info.UnitType,
|
|
80
|
+
};
|
|
81
|
+
const officers = data ? [...data, officer] : [officer];
|
|
82
|
+
await store.edit(id, {
|
|
83
|
+
data: { Contacts: changeName(officers) },
|
|
84
|
+
error: "message",
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
state.newLegalContactVisible = false;
|
|
88
|
+
}
|
|
89
|
+
async function onAdd() {
|
|
90
|
+
var _a, _b;
|
|
91
|
+
try {
|
|
92
|
+
await formData.validateFields(); // Form表单组件rules手动校验
|
|
93
|
+
if (state.params.TransfeeId === "new") {
|
|
94
|
+
message.error("Transferee can not be 'New Contact'!");
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
let transfers = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.transferDetails) === null || _b === void 0 ? void 0 : _b.transfers;
|
|
98
|
+
if (transfers === null || transfers === void 0 ? void 0 : transfers.length)
|
|
99
|
+
transfers = changeName(transfers);
|
|
100
|
+
await store.edit(id, {
|
|
101
|
+
data: {
|
|
102
|
+
TransferDetails: {
|
|
103
|
+
Transfers: (transfers === null || transfers === void 0 ? void 0 : transfers.length) ? [...transfers, state.params] : [state.params],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
error: "message",
|
|
107
|
+
});
|
|
108
|
+
onCancel();
|
|
109
|
+
}
|
|
110
|
+
catch (error) { }
|
|
111
|
+
}
|
|
112
|
+
function onCancel() {
|
|
113
|
+
var _a;
|
|
114
|
+
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
115
|
+
formData.resetFields();
|
|
116
|
+
state.Params = {
|
|
117
|
+
TransforId: "",
|
|
118
|
+
TransfeeId: "",
|
|
119
|
+
ShareClass: "",
|
|
120
|
+
Shares: 0,
|
|
121
|
+
Consideration: 0,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
export default AddTransferDialog;
|
|
126
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,qBAAqB,MAAM,+EAA+E,CAAC;AAClH,OAAO,cAAc,CAAC;AAEtB,MAAM,iBAAiB,GAAG,CAAC,KAA4C,EAAE,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEtC,MAAM,CAAC,KAAK,CAAC,GAA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YACd,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,CAAC;YACT,aAAa,EAAE,CAAC;SAChB,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IFormPeopleOptions } from "../../../../../../../data/clda-form";
|
|
2
|
+
export declare class State {
|
|
3
|
+
constructor();
|
|
4
|
+
Params: {
|
|
5
|
+
TransforId: string;
|
|
6
|
+
TransfeeId: string;
|
|
7
|
+
ShareClass: string;
|
|
8
|
+
Shares: number;
|
|
9
|
+
Consideration: number;
|
|
10
|
+
};
|
|
11
|
+
params: {
|
|
12
|
+
TransforId: string;
|
|
13
|
+
TransfeeId: string;
|
|
14
|
+
ShareClass: string;
|
|
15
|
+
Shares: number;
|
|
16
|
+
Consideration: number;
|
|
17
|
+
};
|
|
18
|
+
loading: boolean;
|
|
19
|
+
newLegalContactVisible: boolean;
|
|
20
|
+
ExistingContactList: IFormPeopleOptions[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "Params", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: {
|
|
10
|
+
TransforId: "",
|
|
11
|
+
TransfeeId: "",
|
|
12
|
+
ShareClass: "",
|
|
13
|
+
Shares: 0,
|
|
14
|
+
Consideration: 0,
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "params", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: this.Params
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "loading", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: false
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "newLegalContactVisible", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: false
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(this, "ExistingContactList", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: []
|
|
40
|
+
});
|
|
41
|
+
makeObservable(this);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
__decorate([
|
|
45
|
+
observable
|
|
46
|
+
], State.prototype, "params", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
observable
|
|
49
|
+
], State.prototype, "loading", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
observable
|
|
52
|
+
], State.prototype, "newLegalContactVisible", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
observable
|
|
55
|
+
], State.prototype, "ExistingContactList", void 0);
|
|
56
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,UAAU,EAAE,EAAE;gBACd,UAAU,EAAE,EAAE;gBACd,UAAU,EAAE,EAAE;gBACd,MAAM,EAAE,CAAC;gBACT,aAAa,EAAE,CAAC;aAChB;WAAC;QAEU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAgC,KAAK;WAAC;QACtC;;;;mBAAmD,EAAE;WAAC;QAbjE,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAaD;AAJY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;qDAAuC;AACtC;IAAX,UAAU;kDAAuD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IFormPeopleOptions, IOfficerPositionsData } from "../../../../../../../data/clda-form";
|
|
3
|
+
declare const CompanyGeneralOfficerInfo: (props: {
|
|
4
|
+
/** CLDAForm id */
|
|
5
|
+
formId: string;
|
|
6
|
+
officer: IOfficerPositionsData;
|
|
7
|
+
contacts: IFormPeopleOptions;
|
|
8
|
+
editOption: "NewOfficerAppointments" | "RemoveOfficerDetails";
|
|
9
|
+
officerLength?: number;
|
|
10
|
+
onDeleteClick?: () => void;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default CompanyGeneralOfficerInfo;
|