@voplus/morpho-csp 11.2.6 → 11.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.css +3 -3
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js +32 -34
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.css +298 -61
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.d.ts +8 -2
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +84 -89
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js +8 -3
- package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.css +190 -11
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +29 -27
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ContactFields/index.d.ts +107 -0
- package/es/modules/self-registration/clda-form/components/ContactFields/index.js +80 -0
- package/es/modules/self-registration/clda-form/components/ContactFields/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +14 -4
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/InternalUse/index.js +7 -9
- package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.d.ts +13 -5
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +10 -147
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/OfficerList/index.d.ts +3 -0
- package/es/modules/self-registration/clda-form/components/OfficerList/index.js +38 -18
- package/es/modules/self-registration/clda-form/components/OfficerList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +5 -2
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.css +123 -9
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +70 -72
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.d.ts +3 -0
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +43 -28
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/agm/index.css +26 -39
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +7 -7
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js +31 -44
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.css +3 -165
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.css +0 -41
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +8 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.css +2 -37
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.css +0 -31
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +5 -7
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.css +1 -28
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.css +5 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js +19 -21
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js +19 -21
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.css +1 -28
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.css +1 -24
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.css +1 -28
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.d.ts +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.css +2 -37
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.css +36 -165
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.css +32 -66
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +11 -0
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js +44 -92
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.css +31 -40
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +8 -13
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
- package/es/modules/self-registration/controls/BusinessNameInput/index.js +41 -7
- package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -1
- package/es/modules/self-registration/controls/Section/index.css +26 -4
- package/es/modules/self-registration/controls/Tips/Tip.css +24 -0
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +12 -0
- package/es/modules/self-registration/controls/Tips/Tip.js +14 -2
- package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -1
- package/es/style/clda-form-theme.css +1068 -0
- package/es/style/common.css +2 -53
- package/package.json +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.css +0 -181
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.css +0 -9
|
@@ -1,149 +1,12 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import IdentityChange from "../../../../corporate/company/identity/components/IdentityChange";
|
|
12
|
-
import { CapitalizeFirstLetter } from "../../../../../data/clda-form/conversion";
|
|
13
|
-
import { useIncorporationFormContext } from "../../incorporation/context";
|
|
14
|
-
import Address from "@voplus/morpho-ui/es/controls/Address";
|
|
15
|
-
import classnames from "classnames";
|
|
16
|
-
import "./index.css";
|
|
17
|
-
const MemberInfo = (props) => {
|
|
18
|
-
const { formId, memberId, shareholders, contacts, isOnlyInternalUse } = props;
|
|
19
|
-
const [editable, setEditable] = useState(false);
|
|
20
|
-
const [newShares, setNewShares] = useState(shareholders?.shares);
|
|
21
|
-
const [capital, setCapital] = useState(shareholders?.capital);
|
|
22
|
-
const layout = useLayout();
|
|
23
|
-
const store = useCLDAFormStore();
|
|
24
|
-
const context = useIncorporationFormContext();
|
|
25
|
-
const incorporation = useCLDAForm(props.formId);
|
|
26
|
-
const validates = useValidates((c) => checkError(c), [incorporation.content?.contacts]);
|
|
27
|
-
return observe(() => (React.createElement("div", { className: "clda-form-member-info" },
|
|
28
|
-
React.createElement("div", { className: classnames({ "member-info-mobile": layout.ui.mobile }) },
|
|
29
|
-
React.createElement("div", { className: "member-title" },
|
|
30
|
-
React.createElement("div", { className: "member-title-info" }, editable ? (React.createElement(Input, { prefix: React.createElement(UserOutlined, null), defaultValue: contacts?.name, value: contacts?.name, onChange: (e) => (contacts.name = e.target.value) })) : (React.createElement("span", { className: "member-name" }, contacts && React.createElement(UnitNameNoteAlert, { id: contacts.id, name: contacts.name ?? "" })))),
|
|
31
|
-
(context ? context.editable : true) && (React.createElement("div", { className: "action-button" },
|
|
32
|
-
React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
|
|
33
|
-
React.createElement(FontAwesomeIcon, { icon: faPenToSquareRegular })),
|
|
34
|
-
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
35
|
-
React.createElement(FontAwesomeIcon, { icon: faTrashAltRegular }))))),
|
|
36
|
-
shareholders && (React.createElement("div", { className: "basic-info" },
|
|
37
|
-
React.createElement("div", { className: "shares-input" },
|
|
38
|
-
React.createElement(InputNumber, { prefix: React.createElement(FontAwesomeIcon, { icon: faMoneyBillRegular }), disabled: !editable, bordered: editable, value: newShares, placeholder: "Please enter the shares", onChange: (value) => setNewShares(value) })),
|
|
39
|
-
React.createElement("div", { className: "shares-input" },
|
|
40
|
-
React.createElement(InputNumber, { prefix: React.createElement(FontAwesomeIcon, { icon: faBadgeDollarRegular }), disabled: !editable, bordered: editable, value: capital, placeholder: "Please enter the capital", onChange: (value) => setCapital(value) })))),
|
|
41
|
-
React.createElement("div", { className: "basic-info" },
|
|
42
|
-
React.createElement(Input, { disabled: !editable, bordered: editable, value: contacts?.email, placeholder: "Please enter the email", prefix: React.createElement(FontAwesomeIcon, { icon: faEnvelopeRegular }), onChange: (e) => (contacts.email = e.target.value) }),
|
|
43
|
-
React.createElement(Input, { disabled: !editable, bordered: editable, value: contacts?.phone, placeholder: "Please enter the phone", prefix: React.createElement(FontAwesomeIcon, { icon: faPhoneRegular }), onChange: (e) => (contacts.phone = e.target.value) })),
|
|
44
|
-
React.createElement("div", { className: "member-info-content" },
|
|
45
|
-
React.createElement("div", { className: "member-info-item" },
|
|
46
|
-
React.createElement("div", { className: "member-item-name" },
|
|
47
|
-
React.createElement(FontAwesomeIcon, { icon: faMapMarkerAltRegular }),
|
|
48
|
-
"Address:"),
|
|
49
|
-
editable ? (React.createElement(Form, { layout: "horizontal" },
|
|
50
|
-
React.createElement(Address, { value: contacts.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contacts.address = v) }))) : (React.createElement(React.Fragment, null,
|
|
51
|
-
React.createElement(Row, null,
|
|
52
|
-
React.createElement(Col, null, contacts?.address?.line1)),
|
|
53
|
-
React.createElement(Row, null,
|
|
54
|
-
React.createElement(Col, null, contacts?.address?.line2)),
|
|
55
|
-
React.createElement(Row, null,
|
|
56
|
-
React.createElement(Col, null, `${contacts?.address?.city ? contacts.address?.city : ""} ${contacts?.address?.state} ${contacts?.address?.country} ${contacts?.address?.postalCode}`.trim()))))),
|
|
57
|
-
React.createElement("div", { className: "member-info-item" },
|
|
58
|
-
React.createElement("div", { className: "member-item-name" },
|
|
59
|
-
React.createElement(FontAwesomeIcon, { icon: faAddressCardRegular }),
|
|
60
|
-
"Identify Info:"),
|
|
61
|
-
editable ? (React.createElement(IdentityChange, { value: contacts?.identity, onChange: (v) => (contacts.identity = v) })) : (React.createElement(React.Fragment, null,
|
|
62
|
-
React.createElement(Row, null,
|
|
63
|
-
React.createElement(Col, null, contacts?.identity?.country)),
|
|
64
|
-
React.createElement(Row, null,
|
|
65
|
-
React.createElement(Col, null, contacts?.identity?.type)),
|
|
66
|
-
React.createElement(Row, null,
|
|
67
|
-
React.createElement(Col, null, contacts?.identity?.number)),
|
|
68
|
-
React.createElement(Row, null,
|
|
69
|
-
React.createElement(Col, null,
|
|
70
|
-
"Expiry: ",
|
|
71
|
-
React.createElement(UTCShortDate, { value: contacts?.identity?.expiryDate })))))),
|
|
72
|
-
isOnlyInternalUse && (React.createElement("div", { className: "member-info-item" },
|
|
73
|
-
React.createElement("div", { className: "member-item-name" },
|
|
74
|
-
React.createElement(FontAwesomeIcon, { icon: faLockRegular }),
|
|
75
|
-
"Internal Use Only:"),
|
|
76
|
-
editable ? (React.createElement(Form, { labelAlign: "left", layout: "horizontal" },
|
|
77
|
-
React.createElement(Form.Item, { label: "Representative", name: "representative" },
|
|
78
|
-
React.createElement(Input, { defaultValue: contacts.representative, value: contacts.representative, onChange: (e) => (contacts.representative = e.target.value) })),
|
|
79
|
-
React.createElement(Form.Item, { label: "Representative Passport", name: "representativePassport" },
|
|
80
|
-
React.createElement(Input, { defaultValue: contacts.representativePassport, value: contacts.representativePassport, onChange: (e) => (contacts.representativePassport = e.target.value) })),
|
|
81
|
-
React.createElement(Form.Item, { label: "Foreign Director 1", name: "foreignDirector1" },
|
|
82
|
-
React.createElement(Input, { defaultValue: contacts.foreignDirector1, value: contacts.foreignDirector1, onChange: (e) => (contacts.foreignDirector1 = e.target.value) })),
|
|
83
|
-
React.createElement(Form.Item, { label: "Foreign Director 2", name: "foreignDirector2" },
|
|
84
|
-
React.createElement(Input, { defaultValue: contacts.foreignDirector2, value: contacts.foreignDirector2, onChange: (e) => (contacts.foreignDirector2 = e.target.value) })))) : (React.createElement(React.Fragment, null,
|
|
85
|
-
contacts?.representative && (React.createElement(Row, null,
|
|
86
|
-
React.createElement(Col, null,
|
|
87
|
-
"Representative: ",
|
|
88
|
-
contacts?.representative))),
|
|
89
|
-
contacts?.representativePassport && (React.createElement(Row, null,
|
|
90
|
-
React.createElement(Col, null,
|
|
91
|
-
"Representative Passport: ",
|
|
92
|
-
contacts?.representativePassport))),
|
|
93
|
-
contacts?.foreignDirector1 && (React.createElement(Row, null,
|
|
94
|
-
React.createElement(Col, null,
|
|
95
|
-
"Foreign Director 1: ",
|
|
96
|
-
contacts?.foreignDirector1))),
|
|
97
|
-
contacts?.foreignDirector2 && (React.createElement(Row, null,
|
|
98
|
-
React.createElement(Col, null,
|
|
99
|
-
"Foreign Director 2: ",
|
|
100
|
-
contacts?.foreignDirector2)))))))),
|
|
101
|
-
editable && (React.createElement(Row, { justify: "end", style: { paddingRight: "3em" } },
|
|
102
|
-
React.createElement(Button, { onClick: () => setEditable(false) }, "Cancel"),
|
|
103
|
-
React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
|
|
104
|
-
validates.hasError && (React.createElement(Alert, { message: React.createElement(React.Fragment, null, errorTip(validates.errors)), showIcon: true, type: "warning" }))),
|
|
105
|
-
props.memberLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
|
|
106
|
-
function checkError(c) {
|
|
107
|
-
c.validate(() => contacts?.address?.line1 && contacts?.address.city && contacts.address.country, "Please input address.");
|
|
108
|
-
// c.validate(() => unit.type !== "Organization" && unit.nationality, "Please input nationality.");
|
|
109
|
-
c.validate(() => contacts?.email, "Please input email.");
|
|
110
|
-
c.validate(() => contacts?.phone, "Please input phone.");
|
|
111
|
-
c.validate(() => contacts?.identity?.number && contacts?.identity?.type && contacts.identity?.country, "Please input identity details.");
|
|
112
|
-
// if (isShareholder) {
|
|
113
|
-
// c.validate(() => props.contacts.shares! > 0, "Please input number of shares.");
|
|
114
|
-
// c.validate(() => props.contacts.capital! > 0, "Please input subscription amount (capital).");
|
|
115
|
-
// }
|
|
116
|
-
return c;
|
|
117
|
-
}
|
|
118
|
-
async function onSave() {
|
|
119
|
-
const officers = cloneDeep(incorporation.content?.contacts) ?? [];
|
|
120
|
-
const index = officers.findIndex((i) => i.id === memberId);
|
|
121
|
-
officers[index] = contacts;
|
|
122
|
-
if (shareholders && newShares && capital) {
|
|
123
|
-
const shareholder = cloneDeep(incorporation.content?.shareholders) ?? [];
|
|
124
|
-
const i = shareholder?.findIndex((i) => i.id === memberId);
|
|
125
|
-
shareholder[i] = { id: memberId, shares: newShares, capital: capital };
|
|
126
|
-
await store.edit(formId, {
|
|
127
|
-
data: {
|
|
128
|
-
Contacts: CapitalizeFirstLetter(officers),
|
|
129
|
-
Shareholders: CapitalizeFirstLetter(shareholder),
|
|
130
|
-
},
|
|
131
|
-
error: "message",
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
await store.edit(formId, {
|
|
136
|
-
data: { Contacts: CapitalizeFirstLetter(officers) },
|
|
137
|
-
error: "message",
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
setEditable(false);
|
|
141
|
-
}
|
|
142
|
-
function errorTip(errors) {
|
|
143
|
-
return (React.createElement("div", null, errors.map((item, index) => {
|
|
144
|
-
return (React.createElement("span", { key: index, style: { marginRight: "10px" } }, item));
|
|
145
|
-
})));
|
|
146
|
-
}
|
|
147
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import CLDAContactList from "../CLDAContactList";
|
|
3
|
+
/**
|
|
4
|
+
* 首席执行官 / 秘书等人员行。
|
|
5
|
+
*
|
|
6
|
+
* 与股东、董事行共用同一套扁平布局({@link CLDAContactList}),视觉与交互因此保持一致;
|
|
7
|
+
* 数据写入(`Contacts` / `Shareholders` 载荷)、编辑开关、删除二次确认与校验规则全部沿用原实现,
|
|
8
|
+
* 这里只做语义命名与入参透传。
|
|
9
|
+
*/
|
|
10
|
+
const MemberInfo = (props) => React.createElement(CLDAContactList, { ...props });
|
|
148
11
|
export default MemberInfo;
|
|
149
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/MemberInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/MemberInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAmBjD;;;;;;GAMG;AACH,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC;AAE9E,eAAe,UAAU,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Button, Modal, Spin } from "antd";
|
|
|
3
3
|
import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
|
|
4
4
|
import { State } from "./state";
|
|
5
5
|
import { cloneDeep } from "lodash-es";
|
|
6
|
-
import { faUserTagSolid, FontAwesomeIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
6
|
+
import { faPlusRegular, faUserTagSolid, FontAwesomeIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
8
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
9
9
|
import { useIncorporationFormContext } from "../../incorporation/context";
|
|
@@ -12,9 +12,11 @@ import { DirectorTip } from "../../../controls/Tips";
|
|
|
12
12
|
import CLDAContactList from "../CLDAContactList";
|
|
13
13
|
import NewDirectorDialog from "../NewDirectorDialog";
|
|
14
14
|
import Section from "../../../controls/Section";
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* 董事列表:扁平行 + 固定在行内的动作区,Add 按钮位于同一张 Section 卡片内。
|
|
17
|
+
*/
|
|
16
18
|
const OfficerList = (props) => {
|
|
17
|
-
const { id
|
|
19
|
+
const { id } = props;
|
|
18
20
|
const [showDialog, setShowDialog] = useState(false);
|
|
19
21
|
const [state] = useState(new State());
|
|
20
22
|
const store = useCLDAFormStore();
|
|
@@ -27,26 +29,44 @@ const OfficerList = (props) => {
|
|
|
27
29
|
hasDirector: c.validate(() => state.incorporationForm.content.officerIds &&
|
|
28
30
|
state.incorporationForm.content.officerIds.length > 0, "Need at least one director"),
|
|
29
31
|
}), [state.incorporationForm.content?.officerIds]);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
/** 已选董事的联系人记录;与 officerIds 靠 id 关联,缺失时由 CLDAContactList 兜底展示。 */
|
|
33
|
+
const contactsOf = (officerId) => state.incorporationForm.content.contacts?.filter((item) => item.id === officerId)[0];
|
|
34
|
+
// 注意:董事数量必须在 observe 的回调内部读取。
|
|
35
|
+
// useCLDAForm 内部的 useCountedMapItemOrNull 只做 map.get,不订阅 observable,
|
|
36
|
+
// 因此组件体不会因表单内容变化而重跑;写在回调外的话,
|
|
37
|
+
// 增删董事后标题计数会一直是旧值。
|
|
38
|
+
return observe(() => {
|
|
39
|
+
/** 董事数量,用于标题右侧的计数展示。 */
|
|
40
|
+
const directorCount = state.incorporationForm.content?.officerIds?.length ?? 0;
|
|
41
|
+
return (React.createElement("div", { className: "officer-list" },
|
|
42
|
+
React.createElement(Section, { title: React.createElement("div", { className: "clda-interpretation-card-title" },
|
|
43
|
+
React.createElement("div", null,
|
|
44
|
+
React.createElement(FontAwesomeIcon, { icon: faUserTagSolid }),
|
|
45
|
+
"Director(s) ",
|
|
46
|
+
React.createElement("span", { className: "required-fields" }, "*"),
|
|
47
|
+
React.createElement(DirectorTip, { version: "info" })),
|
|
48
|
+
React.createElement("div", { className: "title-actions" }, directorCount > 0 && (React.createElement("span", { className: "clda-count" },
|
|
49
|
+
directorCount,
|
|
50
|
+
" ",
|
|
51
|
+
directorCount === 1 ? "director" : "directors")))) },
|
|
52
|
+
React.createElement(Spin, { spinning: state.incorporationForm === null || !state.incorporationForm.loaded },
|
|
53
|
+
React.createElement("div", { className: "clda-list" }, state.incorporationForm.content?.officerIds &&
|
|
54
|
+
state.incorporationForm.content?.officerIds.map((m, i) => (React.createElement(CLDAContactList, { formId: id, memberId: m, contacts: contactsOf(m), key: i, memberIndex: i, memberLength: state.incorporationForm.content.officerIds?.length, onDeleteClick: () => remove(i) })))),
|
|
55
|
+
(context ? context.editable : true) && (React.createElement(Button, { type: "text", className: "add-director-btn", onClick: setAdd },
|
|
56
|
+
React.createElement(FontAwesomeIcon, { icon: faPlusRegular }),
|
|
57
|
+
"Add Director")),
|
|
58
|
+
checks.hasDirector.error && (React.createElement("div", { className: "non-empty-check-prompt" },
|
|
59
|
+
React.createElement("span", null, "* "),
|
|
60
|
+
checks.hasDirector.message)))),
|
|
61
|
+
showDialog && (React.createElement(NewDirectorDialog, { id: id, visible: true, onCancel: () => setShowDialog(false) }))));
|
|
62
|
+
});
|
|
63
|
+
/** 打开新增董事弹窗。 */
|
|
45
64
|
function setAdd() {
|
|
46
65
|
state.index = -1;
|
|
47
66
|
setShowDialog(true);
|
|
48
67
|
}
|
|
49
68
|
// spec:2075 — CSP: Confirm before deleting a director / shareholder / managing director / secretary
|
|
69
|
+
/** 删除指定董事(需二次确认)。 */
|
|
50
70
|
function remove(index) {
|
|
51
71
|
return Modal.confirm({
|
|
52
72
|
title: "Do you want to delete this item?",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,eAAe,M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J,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Button, Modal, Divider } from "antd";
|
|
2
|
+
import { faPlusRegular, FontAwesomeIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
2
3
|
import React, { useState } from "react";
|
|
3
4
|
import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
|
|
4
5
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
@@ -22,7 +23,9 @@ const SecretaryList = (props) => {
|
|
|
22
23
|
React.createElement("div", { className: "sub-title" }, "Secretary(s)"),
|
|
23
24
|
React.createElement(Divider, { style: { margin: "10px 0" } }),
|
|
24
25
|
React.createElement(MentionList, { canEdit: false, contacts: state.list }),
|
|
25
|
-
(context ? context.editable : true) && (React.createElement(Button, {
|
|
26
|
+
(context ? context.editable : true) && (React.createElement(Button, { type: "text", className: "add-secretary-btn", onClick: setAdd },
|
|
27
|
+
React.createElement(FontAwesomeIcon, { icon: faPlusRegular }),
|
|
28
|
+
"Add Secretary")),
|
|
26
29
|
showDialog && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: true, defaultSelected: state.list, onSelect: onSave, onCancel: () => setShowDialog(false) })))));
|
|
27
30
|
function setAdd() {
|
|
28
31
|
state.index = -1;
|
|
@@ -43,7 +46,7 @@ const SecretaryList = (props) => {
|
|
|
43
46
|
}
|
|
44
47
|
// spec:2079
|
|
45
48
|
async function onSave(unit) {
|
|
46
|
-
|
|
49
|
+
const secretaryList = [];
|
|
47
50
|
unit?.map((i) => secretaryList.push({ Key: i.id, Value: i.name }));
|
|
48
51
|
await store
|
|
49
52
|
.edit(id, { data: { Secretarys: secretaryList }, error: "message" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/index.tsx"],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AE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,IAAI,GAAI;QAEpD,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CACvC,oBAAC,MAAM,IAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,0CAA0C;AAC1C,0DAA0D;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,aAAa,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;IAC9C,MAAM,aAAa,GAAG,WAAW,CA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,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE;oBAC/B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;IAED,YAAY;IACZ,KAAK,UAAU,MAAM,CAAC,IAAmD;QACxE,MAAM,aAAa,GAAqC,EAAE,CAAC;QAE3D,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAEnE,MAAM,KAAK;aACT,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;aACnE,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,32 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capital and Financial Year:三列指标(宽)/ 单列(窄),用竖线或横线分隔,
|
|
3
|
+
* 不做成三张卡片;编辑态输入控件与人员行保持同一套尺寸与圆角。
|
|
4
|
+
*/
|
|
1
5
|
.share-capital {
|
|
6
|
+
container-type: inline-size;
|
|
7
|
+
container-name: cldacapital;
|
|
8
|
+
|
|
9
|
+
.cap-grid {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
12
|
+
margin: 0 -18px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cap-cell {
|
|
16
|
+
padding: 16px 18px 18px;
|
|
17
|
+
border-left: 1px solid var(--border-color-split, #f0f0f0);
|
|
18
|
+
|
|
19
|
+
&:first-child {
|
|
20
|
+
border-left: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* 指标名:与人员行的组标题同层级 */
|
|
2
25
|
.capital-title {
|
|
3
26
|
display: flex;
|
|
4
|
-
color: #5d5d5d;
|
|
5
27
|
align-items: center;
|
|
6
|
-
|
|
7
|
-
font:
|
|
28
|
+
gap: 7px;
|
|
29
|
+
font-size: 11.5px;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
letter-spacing: 0.04em;
|
|
32
|
+
text-transform: uppercase;
|
|
33
|
+
color: #3d4352;
|
|
34
|
+
|
|
35
|
+
> div {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 7px;
|
|
39
|
+
}
|
|
8
40
|
}
|
|
9
41
|
|
|
10
42
|
.capital-content {
|
|
11
|
-
padding:
|
|
43
|
+
padding-top: 9px;
|
|
12
44
|
|
|
13
45
|
.capital-content-value {
|
|
14
46
|
color: var(--purple-primary-color);
|
|
15
|
-
font-weight:
|
|
16
|
-
font-size:
|
|
17
|
-
line-height:
|
|
47
|
+
font-weight: 700;
|
|
48
|
+
font-size: 19px;
|
|
49
|
+
line-height: 26px;
|
|
50
|
+
letter-spacing: -0.01em;
|
|
51
|
+
font-variant-numeric: tabular-nums;
|
|
52
|
+
overflow-wrap: anywhere;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.placeholder {
|
|
56
|
+
font-size: 13px;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
color: #94a3b8;
|
|
59
|
+
border-bottom: 1px dotted #94a3b8;
|
|
18
60
|
}
|
|
19
61
|
|
|
20
62
|
.capital-edit-content-space {
|
|
63
|
+
display: flex;
|
|
64
|
+
gap: 8px;
|
|
21
65
|
margin-bottom: 10px;
|
|
22
66
|
|
|
23
67
|
.ant-space-item {
|
|
24
|
-
width:
|
|
68
|
+
min-width: 0;
|
|
69
|
+
|
|
70
|
+
&:first-child {
|
|
71
|
+
flex: 0 0 84px;
|
|
72
|
+
}
|
|
25
73
|
}
|
|
26
74
|
}
|
|
27
75
|
|
|
28
76
|
.capital-edit-content-btn {
|
|
29
|
-
|
|
77
|
+
display: flex;
|
|
78
|
+
gap: 7px;
|
|
79
|
+
|
|
80
|
+
.ant-btn {
|
|
81
|
+
height: 27px;
|
|
82
|
+
padding: 0 11px;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ant-select,
|
|
88
|
+
.ant-input-number,
|
|
89
|
+
.ant-picker {
|
|
90
|
+
height: 32px;
|
|
91
|
+
border-radius: var(--border-radius, 5px);
|
|
92
|
+
font-size: 13px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* 窄容器:指标单列,分隔线由竖线变横线 */
|
|
98
|
+
@container cldacapital (max-width: 679px) {
|
|
99
|
+
.share-capital {
|
|
100
|
+
.cap-grid {
|
|
101
|
+
grid-template-columns: minmax(0, 1fr);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.cap-cell {
|
|
105
|
+
border-left: 0;
|
|
106
|
+
border-top: 1px solid var(--border-color-split, #f0f0f0);
|
|
107
|
+
padding: 14px 18px 15px;
|
|
108
|
+
|
|
109
|
+
&:first-child {
|
|
110
|
+
border-top: 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@container cldacapital (max-width: 459px) {
|
|
117
|
+
.share-capital {
|
|
118
|
+
.cap-cell {
|
|
119
|
+
padding: 13px 14px 14px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.capital-content .capital-content-value {
|
|
123
|
+
font-size: 17px;
|
|
124
|
+
line-height: 24px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* 兜底:不支持容器查询的浏览器 */
|
|
130
|
+
@media (max-width: 720px) {
|
|
131
|
+
.share-capital {
|
|
132
|
+
.cap-grid {
|
|
133
|
+
grid-template-columns: minmax(0, 1fr);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cap-cell {
|
|
137
|
+
border-left: 0;
|
|
138
|
+
border-top: 1px solid var(--border-color-split, #f0f0f0);
|
|
139
|
+
padding: 14px 18px 15px;
|
|
140
|
+
|
|
141
|
+
&:first-child {
|
|
142
|
+
border-top: 0;
|
|
143
|
+
}
|
|
30
144
|
}
|
|
31
145
|
}
|
|
32
146
|
}
|