@voplus/morpho-csp 4.0.24 → 4.0.25
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/conversion.d.ts +1 -1
- package/es/data/clda-form/conversion.js +3 -2
- package/es/data/clda-form/conversion.js.map +1 -1
- package/es/data/clda-form/interfaces.d.ts +12 -0
- package/es/data/clda-form/interfaces.js +2 -0
- package/es/data/clda-form/interfaces.js.map +1 -1
- package/es/data/clda-form/types.d.ts +12 -0
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +3 -3
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js +4 -4
- package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralContext.d.ts +13 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralContext.js +74 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralContext.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.d.ts +4 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +174 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +7 -5
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.d.ts +7 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +117 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.less +16 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/state.d.ts +17 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/state.js +46 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.d.ts +0 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +11 -4
- 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/AllotmentList/index.d.ts +0 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js +6 -6
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.d.ts +9 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +38 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.less +45 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.d.ts +11 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js +49 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.less +50 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.d.ts +6 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js +81 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.less +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/state.d.ts +9 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/state.js +53 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.d.ts +6 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.js +66 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/state.d.ts +9 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/state.js +46 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.d.ts +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js +9 -2
- 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/DivideColumnList/index.d.ts +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.d.ts +0 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.js +11 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.d.ts +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +8 -6
- 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/RemoveOfficerDetailList/index.d.ts +0 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.js +11 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +0 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +11 -4
- 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/components/TransferList/index.d.ts +0 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +6 -6
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js +7 -159
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,12 +5,14 @@ import { faTrashAlt, faPenToSquare } from "@fortawesome/pro-light-svg-icons";
|
|
|
5
5
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
7
7
|
import { useIncorporationFormContext } from "../../../context";
|
|
8
|
+
import { useCompanyGeneralContext } from "../../CompanyGeneralContext";
|
|
8
9
|
import FormContactEditor from "../../../components/FormContactEditor";
|
|
9
10
|
import styles from "./index.less";
|
|
10
11
|
const TransferItem = (props) => {
|
|
11
|
-
const { transfer, contact, contacts
|
|
12
|
+
const { transfer, contact, contacts } = props;
|
|
12
13
|
const [editable, setEditable] = useState(false);
|
|
13
14
|
const context = useIncorporationFormContext();
|
|
15
|
+
const companyGeneralContext = useCompanyGeneralContext();
|
|
14
16
|
const transferor = contacts === null || contacts === void 0 ? void 0 : contacts.filter((c) => c.id === transfer.transforId)[0];
|
|
15
17
|
const existingContacts = contacts === null || contacts === void 0 ? void 0 : contacts.filter((c) => c.idType === "ExistingContactId");
|
|
16
18
|
// 用于保存修改之后的contact数据
|
|
@@ -42,16 +44,21 @@ const TransferItem = (props) => {
|
|
|
42
44
|
React.createElement(ColumnItemCol, { span: 4, title: "Considersion" }, editable ? (React.createElement(InputNumber, { placeholder: "please input Considersion", style: { width: "100%" }, value: transfer.consideration, onChange: (value) => (transfer.consideration = value) })) : (React.createElement("span", null, transfer.consideration))))),
|
|
43
45
|
React.createElement("div", { className: "company-general-transfer-title" }, "Transferee"),
|
|
44
46
|
React.createElement("div", { className: "company-general-transferee" }, editable ? (React.createElement(Select, { showSearch: true, style: { width: "100%", marginBottom: "20px" }, defaultValue: contact === null || contact === void 0 ? void 0 : contact.name, placeholder: "Select a contact", optionFilterProp: "children", onChange: (transferee) => (transfer.transfeeId = transferee), filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 }, contacts === null || contacts === void 0 ? void 0 : contacts.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))) : (React.createElement("span", { className: "company-general-transferee-name" }, contact === null || contact === void 0 ? void 0 : contact.name))),
|
|
45
|
-
contact.idType === "NewId" && (React.createElement(FormContactEditor, { header: false, editable: editable, contact: contact, isOnlyInternalUse: isOnlyInternalUse, onChange: (c) => (contactDate = c) })),
|
|
47
|
+
contact.idType === "NewId" && (React.createElement(FormContactEditor, { header: false, editable: editable, contact: contact, isOnlyInternalUse: companyGeneralContext.isOnlyInternalUse, onChange: (c) => (contactDate = c) })),
|
|
46
48
|
editable && (React.createElement(Row, { justify: "end" },
|
|
47
49
|
React.createElement(Button, { onClick: () => {
|
|
48
|
-
var _a;
|
|
49
50
|
setEditable(false);
|
|
50
|
-
|
|
51
|
+
onReload();
|
|
51
52
|
} }, "Cancel"),
|
|
52
53
|
React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
|
|
53
54
|
props.transferLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
|
|
54
55
|
});
|
|
56
|
+
function onReload() {
|
|
57
|
+
companyGeneralContext.loadTransferList = false;
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
companyGeneralContext.loadTransferList = true;
|
|
60
|
+
}, 100);
|
|
61
|
+
}
|
|
55
62
|
async function onSave() {
|
|
56
63
|
var _a;
|
|
57
64
|
setEditable(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,YAAY,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,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
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { Modal } from "antd";
|
|
4
|
-
import {
|
|
4
|
+
import { CapitalizeFirstLetter } from "../../../../../../../data/clda-form/conversion";
|
|
5
5
|
import { clone } from "lodash-es";
|
|
6
6
|
import { useCLDAForm, useCLDAFormStore, } from "../../../../../../../data/clda-form";
|
|
7
7
|
import TransferItem from "../TransferItem";
|
|
@@ -13,7 +13,7 @@ const TransferList = (props) => {
|
|
|
13
13
|
return (React.createElement("div", null, ((_b = (_a = incorporation.content.transferDetails) === null || _a === void 0 ? void 0 : _a.transfers) === null || _b === void 0 ? void 0 : _b.length)
|
|
14
14
|
? (_c = incorporation.content.transferDetails) === null || _c === void 0 ? void 0 : _c.transfers.map((t, i) => {
|
|
15
15
|
var _a, _b, _c;
|
|
16
|
-
return (React.createElement(TransferItem, { key: t.key, transfer: t,
|
|
16
|
+
return (React.createElement(TransferItem, { key: t.key, transfer: t, contact: (_a = incorporation.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((c) => c.id === t.transfeeId)[0], contacts: incorporation.content.contacts, transferLength: (_c = (_b = incorporation.content.transferDetails) === null || _b === void 0 ? void 0 : _b.transfers) === null || _c === void 0 ? void 0 : _c.length, onSave: onSave, onDeleteClick: () => deleteTransfer(i) }));
|
|
17
17
|
})
|
|
18
18
|
: null));
|
|
19
19
|
});
|
|
@@ -25,7 +25,7 @@ const TransferList = (props) => {
|
|
|
25
25
|
let transfers = clone((_a = incorporation.content.transferDetails) === null || _a === void 0 ? void 0 : _a.transfers);
|
|
26
26
|
transfers.splice(index, 1);
|
|
27
27
|
await store.edit(props.id, {
|
|
28
|
-
data: { TransferDetails: { Transfers:
|
|
28
|
+
data: { TransferDetails: { Transfers: CapitalizeFirstLetter(transfers) } },
|
|
29
29
|
error: "message",
|
|
30
30
|
});
|
|
31
31
|
},
|
|
@@ -42,15 +42,15 @@ const TransferList = (props) => {
|
|
|
42
42
|
transferContacts[index] = contact;
|
|
43
43
|
await store.edit(props.id, {
|
|
44
44
|
data: {
|
|
45
|
-
Contacts:
|
|
46
|
-
TransferDetails: { Transfers:
|
|
45
|
+
Contacts: CapitalizeFirstLetter(transferContacts),
|
|
46
|
+
TransferDetails: { Transfers: CapitalizeFirstLetter(transfers) },
|
|
47
47
|
},
|
|
48
48
|
error: "message",
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
52
|
await store.edit(props.id, {
|
|
53
|
-
data: { TransferDetails: { Transfers:
|
|
53
|
+
data: { TransferDetails: { Transfers: CapitalizeFirstLetter(transfers) } },
|
|
54
54
|
error: "message",
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EACN,WAAW,EACX,gBAAgB,GAGhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,MAAM,YAAY,GAAG,CAAC,KAGrB,EAAE,EAAE;IACJ,MAAM,KAAK,GAA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S;aAChB,CAAC,CAAC;SACH;aAAM;YACN,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gBAC1B,IAAI,EAAE,EAAE,eAAe,EAAE,EAAE,SAAS,EAAE,qBAAqB,CAAC,SAAS,CAAC,EAAE,EAAE;gBAC1E,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,163 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { ValidationCollections, ValidationCollectionsContext } from "@voplus/morpho-data";
|
|
6
|
-
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
7
|
-
import { changeName } from "../../../../../data/clda-form/conversion";
|
|
8
|
-
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
9
|
-
import CorporateSelect from "../../../../corporate/components/CorporateSelect";
|
|
10
|
-
import AddRemoveOfficerDialog from "./components/AddRemoveOfficerDialog";
|
|
11
|
-
import AddOfficerDialog from "./components/AddOfficerDialog";
|
|
12
|
-
import AddTransferDialog from "./components/AddTransferDialog";
|
|
13
|
-
import AddAllotmentDialog from "./components/AddAllotmentDialog";
|
|
14
|
-
import AddDivideDialog from "./components/AddDivideDialog";
|
|
15
|
-
import RemoveOfficerDetailList from "./components/RemoveOfficerDetailList";
|
|
16
|
-
import DivideColumnList from "./components/DivideColumnList";
|
|
17
|
-
import TransferList from "./components/TransferList";
|
|
18
|
-
import AllotmentList from "./components/AllotmentList";
|
|
19
|
-
import NewOfficerDetailList from "./components/NewOfficerDetailList";
|
|
20
|
-
import Section from "../../../controls/Section";
|
|
21
|
-
import classnames from "classnames";
|
|
22
|
-
import dayjs from "dayjs";
|
|
23
|
-
import styles from "./index.less";
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { CompanyGeneralState, CompanyGeneralContext } from "./CompanyGeneralContext";
|
|
4
|
+
import CompanyGeneralContent from "./CompanyGeneralForm";
|
|
24
5
|
const CompanyGeneralForm = (props) => {
|
|
25
|
-
const [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const [loaded, setLoaded] = useState(true);
|
|
29
|
-
const [addOfficerVisible, setAddOfficerVisible] = useState(false);
|
|
30
|
-
const [addRemoveOfficerVisible, setAddRemoveOfficerVisible] = useState(false);
|
|
31
|
-
const [addTransferVisible, setAddTransferVisible] = useState(false);
|
|
32
|
-
const [addAllotmentVisible, setAddAllotmentVisible] = useState(false);
|
|
33
|
-
const [addDivide, setAddDivide] = useState({ visible: false, type: "Consolidate" });
|
|
34
|
-
const [companyEditable, setCompanyEditable] = useState(false);
|
|
35
|
-
const [showCompanyEditIcon, setShowCompanyEditIcon] = useState(true);
|
|
36
|
-
const incorporation = useCLDAForm(props.id, { reload: true });
|
|
37
|
-
const store = useCLDAFormStore();
|
|
38
|
-
const clickEvent = (e) => {
|
|
39
|
-
if (!e.target.className.toString())
|
|
40
|
-
return;
|
|
41
|
-
if (!e.target.className.toString().includes("ant-select")) {
|
|
42
|
-
setCompanyEditable(false);
|
|
43
|
-
setShowCompanyEditIcon(true);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (companyEditable) {
|
|
48
|
-
window.addEventListener("click", clickEvent, true);
|
|
49
|
-
}
|
|
50
|
-
return () => {
|
|
51
|
-
window.removeEventListener("click", clickEvent, true);
|
|
52
|
-
};
|
|
53
|
-
}, [companyEditable]);
|
|
54
|
-
const items = [
|
|
55
|
-
{
|
|
56
|
-
key: "Consolidate",
|
|
57
|
-
label: React.createElement("span", null, "Consolidate"),
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: "Divide",
|
|
61
|
-
label: React.createElement("span", null, "Subdivision"),
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
const content = observe(() => {
|
|
65
|
-
var _a, _b, _c;
|
|
66
|
-
return (React.createElement("div", { className: classnames("incorporation-form-view", styles["company-general-from-review"]) },
|
|
67
|
-
React.createElement(Spin, { spinning: !incorporation.loaded }, incorporation.loaded && (React.createElement(ValidationCollectionsContext.Provider, { value: validations },
|
|
68
|
-
React.createElement(Section, { title: "Document Details" },
|
|
69
|
-
React.createElement(Form, { layout: "horizontal", labelAlign: "left", labelCol: { span: 6 } },
|
|
70
|
-
React.createElement(Form.Item, { label: "Corporate", name: "Corporate" },
|
|
71
|
-
React.createElement(InlineEdit, { showEditIcon: showCompanyEditIcon, defaultValue: (_a = incorporation.content.corporate) === null || _a === void 0 ? void 0 : _a.name, editable: false, content: (v) => {
|
|
72
|
-
var _a, _b;
|
|
73
|
-
return companyEditable ? (React.createElement(CorporateSelect, { defaultValue: (_a = incorporation.content.corporate) === null || _a === void 0 ? void 0 : _a.name, onChange: (c) => store
|
|
74
|
-
.edit(props.id, { data: { Corporate: { Id: c.id, Name: c.name } } })
|
|
75
|
-
.then(() => {
|
|
76
|
-
setShowCompanyEditIcon(true);
|
|
77
|
-
setCompanyEditable(false);
|
|
78
|
-
}) })) : ((_b = incorporation.content.corporate) === null || _b === void 0 ? void 0 : _b.name) ? (React.createElement("span", null, incorporation.content.corporate.name)) : (React.createElement("span", { className: "add-info-style" }, "Please click here to enter the company"));
|
|
79
|
-
}, onEditIconClick: () => {
|
|
80
|
-
setCompanyEditable(true);
|
|
81
|
-
setShowCompanyEditIcon(false);
|
|
82
|
-
} })),
|
|
83
|
-
React.createElement(Form.Item, { label: "Document Date", name: "DocumentDate" },
|
|
84
|
-
React.createElement(InlineEdit, { defaultValue: dayjs(incorporation.content.documentDate !== ""
|
|
85
|
-
? incorporation.content.documentDate
|
|
86
|
-
: undefined), content: (v) => incorporation.content.documentDate ? (React.createElement("span", null, dayjs(incorporation.content.documentDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Document Date")), editor: DateInputEditor, onSave: (date) => {
|
|
87
|
-
if (incorporation.content.documentDate &&
|
|
88
|
-
dayjs(date).isSame(incorporation.content.documentDate, "day"))
|
|
89
|
-
return;
|
|
90
|
-
store.edit(props.id, {
|
|
91
|
-
data: {
|
|
92
|
-
DocumentDate: date !== null ? dayjs(date).format("YYYY-MM-DD") : "",
|
|
93
|
-
},
|
|
94
|
-
});
|
|
95
|
-
} })))),
|
|
96
|
-
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
97
|
-
React.createElement("div", null, "Consolidate/Divide Details"),
|
|
98
|
-
React.createElement(Dropdown, { menu: {
|
|
99
|
-
items,
|
|
100
|
-
onClick: (e) => setAddDivide({ visible: true, type: e.key }),
|
|
101
|
-
} },
|
|
102
|
-
React.createElement(Button, { type: "primary" }, "Add Item"))) },
|
|
103
|
-
addDivide.visible && (React.createElement(AddDivideDialog, { id: props.id, type: addDivide.type, onCancel: () => setAddDivide({ visible: false, type: "Consolidate" }) })),
|
|
104
|
-
loaded && React.createElement(DivideColumnList, { id: props.id, onReload: onReload })),
|
|
105
|
-
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
106
|
-
React.createElement("div", null, "New Officer Appointment Details"),
|
|
107
|
-
React.createElement(Button, { type: "primary", onClick: () => setAddOfficerVisible(true) }, "Add Item")) },
|
|
108
|
-
loaded && (React.createElement(NewOfficerDetailList, { id: props.id, isOnlyInternalUse: props.type === "draftView", onReload: onReload })),
|
|
109
|
-
addOfficerVisible && (React.createElement(AddOfficerDialog, { id: props.id, visible: true, onCancel: () => setAddOfficerVisible(false) }))),
|
|
110
|
-
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
111
|
-
React.createElement("div", null, "Remove Officer Details"),
|
|
112
|
-
React.createElement(Button, { type: "primary", onClick: () => setAddRemoveOfficerVisible(true) }, "Add Item")) },
|
|
113
|
-
loaded && (React.createElement(RemoveOfficerDetailList, { id: props.id, isOnlyInternalUse: props.type === "draftView", onReload: onReload })),
|
|
114
|
-
addRemoveOfficerVisible && (React.createElement(AddRemoveOfficerDialog, { id: props.id, visible: true, onCancel: () => setAddRemoveOfficerVisible(false) }))),
|
|
115
|
-
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
116
|
-
React.createElement("div", null, "Transfer Details"),
|
|
117
|
-
React.createElement(Button, { type: "primary", onClick: () => setAddTransferVisible(true) }, "Add Item")) },
|
|
118
|
-
loaded && (React.createElement(TransferList, { id: props.id, isOnlyInternalUse: props.type === "draftView", onReload: onReload })),
|
|
119
|
-
addTransferVisible && (React.createElement(AddTransferDialog, { id: props.id, onCancel: () => setAddTransferVisible(false) }))),
|
|
120
|
-
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
121
|
-
React.createElement("div", null, "Issue Shares"),
|
|
122
|
-
React.createElement(Button, { type: "primary", onClick: () => setAddAllotmentVisible(true) }, "Add Item")) },
|
|
123
|
-
React.createElement("div", { className: "company-general-issue-shares" },
|
|
124
|
-
React.createElement("div", { className: "issue-shares-title" }, "General"),
|
|
125
|
-
React.createElement(Form, { layout: "horizontal", labelAlign: "left", labelCol: { span: 6 } },
|
|
126
|
-
React.createElement(Form.Item, { label: "Effective Date", name: "EffectiveDate" },
|
|
127
|
-
React.createElement(InlineEdit, { defaultValue: dayjs(((_b = incorporation.content.issueShareDetails) === null || _b === void 0 ? void 0 : _b.effectiveDate) !== ""
|
|
128
|
-
? (_c = incorporation.content.issueShareDetails) === null || _c === void 0 ? void 0 : _c.effectiveDate
|
|
129
|
-
: undefined), content: (v) => {
|
|
130
|
-
var _a, _b;
|
|
131
|
-
return ((_a = incorporation.content.issueShareDetails) === null || _a === void 0 ? void 0 : _a.effectiveDate) ? (React.createElement("span", null, dayjs((_b = incorporation.content.issueShareDetails) === null || _b === void 0 ? void 0 : _b.effectiveDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Effective Date"));
|
|
132
|
-
}, editor: DateInputEditor, onSave: (date) => {
|
|
133
|
-
var _a, _b, _c, _d;
|
|
134
|
-
if (((_a = incorporation.content.issueShareDetails) === null || _a === void 0 ? void 0 : _a.effectiveDate) &&
|
|
135
|
-
dayjs(date).isSame((_b = incorporation.content.issueShareDetails) === null || _b === void 0 ? void 0 : _b.effectiveDate, "day"))
|
|
136
|
-
return;
|
|
137
|
-
let allotments = (_d = (_c = incorporation.content) === null || _c === void 0 ? void 0 : _c.issueShareDetails) === null || _d === void 0 ? void 0 : _d.allotments;
|
|
138
|
-
if (allotments === null || allotments === void 0 ? void 0 : allotments.length)
|
|
139
|
-
allotments = changeName(allotments);
|
|
140
|
-
store.edit(props.id, {
|
|
141
|
-
data: {
|
|
142
|
-
IssueShareDetails: {
|
|
143
|
-
Allotments: (allotments === null || allotments === void 0 ? void 0 : allotments.length) ? [...allotments] : [],
|
|
144
|
-
EffectiveDate: date !== null ? dayjs(date).format("YYYY-MM-DD") : "",
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
});
|
|
148
|
-
} })))),
|
|
149
|
-
React.createElement("div", { className: "company-general-issue-shares" },
|
|
150
|
-
React.createElement("div", { className: "issue-shares-title" }, "Allotments"),
|
|
151
|
-
loaded && (React.createElement(AllotmentList, { id: props.id, isOnlyInternalUse: props.type === "draftView", onReload: onReload })),
|
|
152
|
-
addAllotmentVisible && (React.createElement(AddAllotmentDialog, { id: props.id, onCancel: () => setAddAllotmentVisible(false) })))))))));
|
|
153
|
-
});
|
|
154
|
-
return observe(() => (React.createElement(IncorporationFormContext.Provider, { value: state }, content)));
|
|
155
|
-
function onReload() {
|
|
156
|
-
setLoaded(false);
|
|
157
|
-
setTimeout(() => {
|
|
158
|
-
setLoaded(true);
|
|
159
|
-
}, 100);
|
|
160
|
-
}
|
|
6
|
+
const [context] = useState(() => new CompanyGeneralState());
|
|
7
|
+
return observe(() => (React.createElement(CompanyGeneralContext.Provider, { value: context },
|
|
8
|
+
React.createElement(CompanyGeneralContent, { ...props }))));
|
|
161
9
|
};
|
|
162
10
|
export default CompanyGeneralForm;
|
|
163
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,qBAAqB,MAAM,sBAAsB,CAAC;AAEzD,MAAM,kBAAkB,GAAG,CAAC,KAAoB,EAAE,EAAE;IACnD,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;IAE5D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC7C,oBAAC,qBAAqB,OAAK,KAAK,GAAI,CACJ,CACjC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-csp",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.25",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-csp/_git/morpho-csp"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "VOPLUS",
|
|
16
16
|
"license": "SEE LICENSE IN LICENSE",
|
|
17
17
|
"scripts": {
|
|
18
|
-
"copy-less": "cpx src/**/*.less lib && cpx src/**/*.less es && cpx src/**/*.css es",
|
|
18
|
+
"copy-less": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
|
|
19
19
|
"clean": "del-cli es && jest --clearCache",
|
|
20
20
|
"clean-hooks": "del-cli .git/hooks",
|
|
21
21
|
"storybook": "start-storybook -p 9001 -c .storybook -s ./public",
|