@voplus/morpho-csp 5.0.59 → 5.0.61
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/corporate/CorporateStore.d.ts +1 -1
- package/es/data/corporate/CorporateStore.js +4 -2
- package/es/data/corporate/CorporateStore.js.map +1 -1
- package/es/data/corporate/hooks.d.ts +1 -1
- package/es/data/corporate/hooks.js.map +1 -1
- package/es/data/corporate/interfaces.d.ts +11 -0
- package/es/data/corporate/types.d.ts +1 -0
- package/es/data/filing-record/interfaces.d.ts +4 -0
- package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.d.ts +20 -0
- package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.js +46 -0
- package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyProperties/Properties.d.ts +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +27 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/index.d.ts +17 -12
- package/es/modules/corporate/company/components/CompanyProperties/index.js +36 -35
- package/es/modules/corporate/company/components/CompanyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateHead/index.d.ts +6 -0
- package/es/modules/corporate/company/components/CorporateHead/index.js +30 -0
- package/es/modules/corporate/company/components/CorporateHead/index.js.map +1 -0
- package/es/modules/corporate/company/components/CorporateHead/index.less +33 -0
- package/es/modules/corporate/company/components/CorporateItem/index.d.ts +7 -0
- package/es/modules/corporate/company/components/CorporateItem/index.js +56 -0
- package/es/modules/corporate/company/components/CorporateItem/index.js.map +1 -0
- package/es/modules/corporate/company/components/CorporateItem/index.less +50 -0
- package/es/modules/corporate/company/components/CorporateList/index.d.ts +11 -0
- package/es/modules/corporate/company/components/CorporateList/index.js +65 -0
- package/es/modules/corporate/company/components/CorporateList/index.js.map +1 -0
- package/es/modules/corporate/company/components/CorporateList/index.less +19 -0
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.d.ts +6 -0
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.js +23 -0
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.js.map +1 -0
- package/es/modules/corporate/company/components/CorporateTabs/index.d.ts +6 -0
- package/es/modules/corporate/company/components/CorporateTabs/index.js +44 -0
- package/es/modules/corporate/company/components/CorporateTabs/index.js.map +1 -0
- package/es/modules/corporate/company/controls/CorporateMenu/index.js +1 -1
- package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +18 -5
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +6 -0
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +1 -0
- package/es/modules/corporate/filing-record/components/SendMessageDialog/index.d.ts +1 -0
- package/es/modules/corporate/filing-record/components/SendMessageDialog/index.js +7 -4
- package/es/modules/corporate/filing-record/components/SendMessageDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/items/NotifyFiling.js +9 -6
- package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/items/NotifyFiling.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/switch-to-us/index.d.ts +4 -0
- package/es/modules/self-registration/clda-form/incorporation/switch-to-us/index.js +53 -0
- package/es/modules/self-registration/clda-form/incorporation/switch-to-us/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/switch-to-us/index.less +10 -0
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ export declare class CorporateStore extends Store {
|
|
|
29
29
|
*/
|
|
30
30
|
register(id: string, type: string, options: StoreActionOptions): Promise<any>;
|
|
31
31
|
/**delete*/
|
|
32
|
-
delete(id: string): Promise<
|
|
32
|
+
delete(id: string, options: StoreActionOptions): Promise<any>;
|
|
33
33
|
}
|
|
34
34
|
/** 响应钩子检索 CorporateStore */
|
|
35
35
|
export declare const useCorporateStore: () => CorporateStore;
|
|
@@ -84,8 +84,10 @@ export class CorporateStore extends Store {
|
|
|
84
84
|
}, options);
|
|
85
85
|
}
|
|
86
86
|
/**delete*/
|
|
87
|
-
async delete(id) {
|
|
88
|
-
|
|
87
|
+
async delete(id, options) {
|
|
88
|
+
return this.action(async () => {
|
|
89
|
+
await this.endpoint.delete(`api/corporates/${id}`);
|
|
90
|
+
}, options);
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
/** 响应钩子检索 CorporateStore */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateStore.js","sourceRoot":"","sources":["../../../src/data/corporate/CorporateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAsB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CorporateStore.js","sourceRoot":"","sources":["../../../src/data/corporate/CorporateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAsB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGnG,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAEnC,gDAAgD;AAChD,MAAM,OAAO,cAAe,SAAQ,KAAK;IAIxC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAHxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QAMzC,oCAAoC;QACpB;;;;mBAAwC,IAAI,UAAU,CACrE,CAAC,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AAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,EAAE,qBAAqB,IAAI,EAAE,CAAC,CAAC;YAErF,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IAED,WAAW;IACJ,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAA2B;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QACpD,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;CACD;AACD,4BAA4B;AAC5B,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACrC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QACnC,OAAO,CAAC,eAAe,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KACzE;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAoB,CAAC;AACzD,CAAC,CAAC"}
|
|
@@ -7,4 +7,4 @@ import { LoadCorporateOptions } from "./types";
|
|
|
7
7
|
* @param {LoadDocumentOptions} options - options
|
|
8
8
|
*/
|
|
9
9
|
export declare const useCorporate: (id: string, options?: LoadCorporateOptions) => ICorporate;
|
|
10
|
-
export declare const useCorporateListEffect: (list: ListDataContextState<any> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions) => void;
|
|
10
|
+
export declare const useCorporateListEffect: (list: ListDataContextState<any> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/corporate/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,GAE3B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAE,OAA8B,EAAE,EAAE;IAC1E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA2B,CAAC;IAC3D,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAElC,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACrC,IAAsC,EACtC,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/corporate/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,GAE3B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAE,OAA8B,EAAE,EAAE;IAC1E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA2B,CAAC;IAC3D,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAElC,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACrC,IAAsC,EACtC,MAA4C,EAC5C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;IAEtC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7F,CAAC,CAAC"}
|
|
@@ -7,6 +7,10 @@ export interface ICorporate extends ILoadable {
|
|
|
7
7
|
id: string;
|
|
8
8
|
/** name of unit */
|
|
9
9
|
name: string;
|
|
10
|
+
unit?: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
10
14
|
/** actions of the corporate */
|
|
11
15
|
actions?: {};
|
|
12
16
|
/** */
|
|
@@ -34,6 +38,13 @@ export interface ICorporate extends ILoadable {
|
|
|
34
38
|
id: string;
|
|
35
39
|
type: string;
|
|
36
40
|
}[];
|
|
41
|
+
center?: {
|
|
42
|
+
id: string;
|
|
43
|
+
group: {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
37
48
|
shareSettings: {
|
|
38
49
|
numberSequence: number;
|
|
39
50
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CompanyPropertiesCard: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
companyProperties?: {
|
|
6
|
+
key: string;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
}[];
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
companyProperties: ({
|
|
12
|
+
key: string;
|
|
13
|
+
label?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
key: string;
|
|
16
|
+
label: React.JSX.Element;
|
|
17
|
+
})[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default CompanyPropertiesCard;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Skeleton } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useCorporate } from "../../../../../data/corporate";
|
|
5
|
+
import Properties from "./Properties";
|
|
6
|
+
import PropertiesCard from "@voplus/morpho-ui/es/controls/PropertiesCard";
|
|
7
|
+
const CompanyPropertiesCard = (props) => {
|
|
8
|
+
const { id, companyProperties } = props;
|
|
9
|
+
const corporate = useCorporate(id, { reload: (i) => !i.tags, includes: "registers,tags" });
|
|
10
|
+
return observe(() => {
|
|
11
|
+
return corporate.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(PropertiesCard, { title: "Company Details", cardList: companyProperties, cardItem: (item) => React.createElement(Properties, { id: id, propertiesName: item }) }));
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
CompanyPropertiesCard.defaultProps = {
|
|
15
|
+
companyProperties: [
|
|
16
|
+
{ key: "Secretary Cetner" },
|
|
17
|
+
{ key: "Country of Registration" },
|
|
18
|
+
{ key: "Type" },
|
|
19
|
+
{ key: "Liability Type" },
|
|
20
|
+
{ key: "Registration Number" },
|
|
21
|
+
{ key: "Registration Date" },
|
|
22
|
+
{ key: "Registered Address" },
|
|
23
|
+
{ key: "Corporate Status" },
|
|
24
|
+
{ key: "Tags" },
|
|
25
|
+
{
|
|
26
|
+
key: "FilingYear Latest",
|
|
27
|
+
label: (React.createElement("div", null,
|
|
28
|
+
"Filing Year",
|
|
29
|
+
React.createElement("div", { className: "property-label-subtitle" }, "Latest"))),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: "FilingYear Working",
|
|
33
|
+
label: (React.createElement("div", null,
|
|
34
|
+
"Filing Year",
|
|
35
|
+
React.createElement("div", { className: "property-label-subtitle" }, "Working"))),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "FYE",
|
|
39
|
+
label: (React.createElement("div", null,
|
|
40
|
+
"FYE",
|
|
41
|
+
React.createElement("div", { className: "property-label-subtitle" }, "Obsoleted"))),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
export default CompanyPropertiesCard;
|
|
46
|
+
//# sourceMappingURL=CompanyPropertiesCard.js.map
|
package/es/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanyPropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/CompanyPropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,UAAqC,MAAM,cAAc,CAAC;AACjE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAE1E,MAAM,qBAAqB,GAAG,CAAC,KAG9B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAE3F,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAC1B,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,oBAAC,cAAc,IACd,KAAK,EAAC,iBAAiB,EACvB,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,CAAC,IAA2B,EAAE,EAAE,CAAC,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,GAAI,GACtF,CACF,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,iBAAiB,EAAE;QAClB,EAAE,GAAG,EAAE,kBAAkB,EAAE;QAC3B,EAAE,GAAG,EAAE,yBAAyB,EAAE;QAClC,EAAE,GAAG,EAAE,MAAM,EAAE;QACf,EAAE,GAAG,EAAE,gBAAgB,EAAE;QACzB,EAAE,GAAG,EAAE,qBAAqB,EAAE;QAC9B,EAAE,GAAG,EAAE,mBAAmB,EAAE;QAC5B,EAAE,GAAG,EAAE,oBAAoB,EAAE;QAC7B,EAAE,GAAG,EAAE,kBAAkB,EAAE;QAC3B,EAAE,GAAG,EAAE,MAAM,EAAE;QACf;YACC,GAAG,EAAE,mBAAmB;YACxB,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,EAAC,yBAAyB,aAAa,CAChD,CACN;SACD;QACD;YACC,GAAG,EAAE,oBAAoB;YACzB,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,EAAC,yBAAyB,cAAc,CACjD,CACN;SACD;QACD;YACC,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,CACN;;gBAEC,6BAAK,SAAS,EAAC,yBAAyB,gBAAgB,CACnD,CACN;SACD;KACD;CACD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export type CompanyPropertiesName = "Country of Registration" | "Type" | "Liability Type" | "Registration Number" | "Registration Date" | "Registered Address" | "Corporate Status" | "FilingYear Latest" | "FilingYear Working" | "FYE" | "Tags";
|
|
2
|
+
export type CompanyPropertiesName = "Country of Registration" | "Type" | "Liability Type" | "Registration Number" | "Registration Date" | "Registered Address" | "Corporate Status" | "Secretary Cetner" | "FilingYear Latest" | "FilingYear Working" | "FYE" | "Tags";
|
|
3
3
|
declare const Properties: (props: {
|
|
4
4
|
id: string;
|
|
5
5
|
propertiesName: CompanyPropertiesName;
|
|
@@ -5,6 +5,7 @@ import { Button } from "antd";
|
|
|
5
5
|
import { useCompanyContext } from "../../pages/CompanyPage/CompanyPageContext";
|
|
6
6
|
import TagView from "@voplus/morpho-document/es/components/TagView";
|
|
7
7
|
import NodeLink from "@voplus/morpho-workspace/es/controls/NodeLink";
|
|
8
|
+
import CenterSelect from "@voplus/morpho-org/es/components/CenterSelect";
|
|
8
9
|
import NewFilingYearDialog from "../../../filing-record/filing-year/components/NewFilingYearDialog";
|
|
9
10
|
import FilingYearQuickViewDialog from "../../../filing-record/filing-year/components/FilingYearQuickViewDialog";
|
|
10
11
|
import FilingYearSelect from "../../../filing-record/filing-year/components/FilingYearSelect";
|
|
@@ -20,8 +21,10 @@ const Properties = (props) => {
|
|
|
20
21
|
const [filingYearQuickViewVisible, setFilingYearQuickViewVisible] = useState({ id: "", visible: false });
|
|
21
22
|
const [showWorkingFilingYearEditIcon, setShowWorkingFilingYearEditIcon] = useState(true);
|
|
22
23
|
const [workingFilingEditable, setWorkingFilingYearEditable] = useState(false);
|
|
24
|
+
const [showSecretaryCenterEditIcon, setShowSecretaryCenterEditIcon] = useState(true);
|
|
25
|
+
const [secretaryCenterEditable, setSecretaryCenterEditable] = useState(false);
|
|
23
26
|
const companyContext = useCompanyContext();
|
|
24
|
-
const corporate = useCorporate(id
|
|
27
|
+
const corporate = useCorporate(id);
|
|
25
28
|
const corporateStore = useCorporateStore();
|
|
26
29
|
return observe(() => (React.createElement(React.Fragment, null,
|
|
27
30
|
renderProp(propertiesName),
|
|
@@ -79,6 +82,29 @@ const Properties = (props) => {
|
|
|
79
82
|
(corporate === null || corporate === void 0 ? void 0 : corporate.fYE) ? (React.createElement("span", null, dayjs(corporate === null || corporate === void 0 ? void 0 : corporate.fYE).format("DD MMM"))) : (React.createElement("span", { className: "add-info-style" }, "no date")));
|
|
80
83
|
case "Tags":
|
|
81
84
|
return React.createElement(TagView, { id: id, tags: corporate.tags, editable: true, items: corporateStore.items });
|
|
85
|
+
case "Secretary Cetner":
|
|
86
|
+
return (React.createElement(InlineEdit, { showEditIcon: showSecretaryCenterEditIcon, defaultValue: "", editable: false, content: (v) => {
|
|
87
|
+
var _a, _b;
|
|
88
|
+
return secretaryCenterEditable ? (React.createElement(CenterSelect, { autoFocus: true, allowClear: true, filter: "SecretaryCenter", defaultValue: (_a = corporate.center) === null || _a === void 0 ? void 0 : _a.id, onBlur: () => {
|
|
89
|
+
setShowSecretaryCenterEditIcon(true);
|
|
90
|
+
setSecretaryCenterEditable(false);
|
|
91
|
+
}, onChange: (centerId, center) => {
|
|
92
|
+
corporateStore
|
|
93
|
+
.edit(id, {
|
|
94
|
+
data: { CenterId: centerId || "" },
|
|
95
|
+
error: "message",
|
|
96
|
+
})
|
|
97
|
+
.then((res) => {
|
|
98
|
+
var _a;
|
|
99
|
+
setShowSecretaryCenterEditIcon(true);
|
|
100
|
+
setSecretaryCenterEditable(false);
|
|
101
|
+
!((_a = res.workingFilingYear) === null || _a === void 0 ? void 0 : _a.id) && onRefreshPage();
|
|
102
|
+
});
|
|
103
|
+
} })) : ((_b = corporate.center) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement("span", null, corporate.center.group.name)) : (React.createElement("span", { className: "add-info-style" }, "Add Secretary Cetner"));
|
|
104
|
+
}, onEditIconClick: () => {
|
|
105
|
+
setSecretaryCenterEditable(true);
|
|
106
|
+
setShowSecretaryCenterEditIcon(false);
|
|
107
|
+
} }));
|
|
82
108
|
case "FilingYear Latest":
|
|
83
109
|
return ((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement(NodeLink, { node: {
|
|
84
110
|
id: (_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/Properties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAGN,YAAY,EACZ,iBAAiB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,QAAQ,MAAM,+CAA+C,CAAC;AACrE,OAAO,mBAAmB,MAAM,mEAAmE,CAAC;AACpG,OAAO,yBAAyB,MAAM,yEAAyE,CAAC;AAChH,OAAO,gBAAgB,MAAM,gEAAgE,CAAC;AAC9F,OAAO,oBAAoB,MAAM,qCAAqC,CAAC;AACvE,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/Properties.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAGN,YAAY,EACZ,iBAAiB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,MA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U,CAAC,GAAG,EAAE;YACf,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC;QACnC,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,KAAK,UAAU,IAAI,CAAC,OAAiC;QACpD,MAAM,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE;YAC7B,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,sBAAsB,CAAC,CAAc;QAC7C,aAAa;QACb,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,gBAAgB,KAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC;YAAE,OAAO;QAC9F,IAAI,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,SAAS,aAAa,CAAC,CAAc;QACpC,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,KAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC;YAAE,OAAO;QACpE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { CompanyPropertiesName } from "./Properties";
|
|
3
|
+
declare const CorporateProperties: {
|
|
3
4
|
(props: {
|
|
4
5
|
id: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
corporateTitle?: string;
|
|
7
|
+
orgContactTitle?: string;
|
|
8
|
+
corporateProperties?: {
|
|
9
|
+
name: CompanyPropertiesName;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
orgContactProperties?: {
|
|
13
|
+
name: "Phone" | "Address" | "E-mail" | "DingId" | "Site" | "Birthday" | "Gender";
|
|
14
|
+
visible?: boolean;
|
|
8
15
|
}[];
|
|
9
16
|
}): React.JSX.Element;
|
|
10
17
|
defaultProps: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
label: React.JSX.Element;
|
|
17
|
-
})[];
|
|
18
|
+
corporateTitle: string;
|
|
19
|
+
orgContactTitle: string;
|
|
20
|
+
corporateProperties: {
|
|
21
|
+
name: string;
|
|
22
|
+
}[];
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
|
-
export default
|
|
25
|
+
export default CorporateProperties;
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Skeleton } from "antd";
|
|
2
|
+
import { Form, Skeleton } from "antd";
|
|
3
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
3
4
|
import { observe } from "@voplus/morpho-ui";
|
|
4
5
|
import { useCorporate } from "../../../../../data/corporate";
|
|
5
6
|
import Properties from "./Properties";
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
7
|
+
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
8
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
9
|
+
const CorporateProperties = (props) => {
|
|
10
|
+
const { id, corporateTitle, orgContactTitle, corporateProperties, orgContactProperties, } = props;
|
|
11
|
+
const corporate = useCorporate(props.id, {
|
|
12
|
+
reload: (i) => !i.tags,
|
|
13
|
+
includes: "tags",
|
|
14
|
+
});
|
|
15
|
+
const filterPro = corporateProperties === null || corporateProperties === void 0 ? void 0 : corporateProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
16
|
+
/** 加class name 为了方便做integration tests */
|
|
17
|
+
const classId = "corporate-properties";
|
|
10
18
|
return observe(() => {
|
|
11
|
-
|
|
19
|
+
var _a;
|
|
20
|
+
return corporate.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement("div", { className: "properties-list" },
|
|
21
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
22
|
+
React.createElement(PropertiesSection, { title: corporateTitle, properties: (labelCol) => (React.createElement(Form, { labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Form.Item, { key: i.name, label: i.name, className: `${classId}-${i.name}` },
|
|
23
|
+
React.createElement(Properties, { id: id, propertiesName: i.name })))))) }),
|
|
24
|
+
React.createElement(ContactProperties, { fromLabelRequired: true, id: (_a = corporate.unit) === null || _a === void 0 ? void 0 : _a.id, title: orgContactTitle, customProperties: orgContactProperties }))));
|
|
12
25
|
});
|
|
13
26
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
key: "FilingYear Working",
|
|
32
|
-
label: (React.createElement("div", null,
|
|
33
|
-
"Filing Year",
|
|
34
|
-
React.createElement("div", { className: "property-label-subtitle" }, "Working"))),
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
key: "FYE",
|
|
38
|
-
label: (React.createElement("div", null,
|
|
39
|
-
"FYE",
|
|
40
|
-
React.createElement("div", { className: "property-label-subtitle" }, "Obsoleted"))),
|
|
41
|
-
},
|
|
27
|
+
CorporateProperties.defaultProps = {
|
|
28
|
+
corporateTitle: "Corporate Properties",
|
|
29
|
+
orgContactTitle: "Contact Properties",
|
|
30
|
+
corporateProperties: [
|
|
31
|
+
{ name: "Secretary Cetner" },
|
|
32
|
+
{ name: "Country of Registration" },
|
|
33
|
+
{ name: "Type" },
|
|
34
|
+
{ name: "Liability Type" },
|
|
35
|
+
{ name: "Registration Number" },
|
|
36
|
+
{ name: "Registration Date" },
|
|
37
|
+
{ name: "Registered Address" },
|
|
38
|
+
{ name: "Corporate Status" },
|
|
39
|
+
{ name: "Tags" },
|
|
40
|
+
{ name: "FilingYear Latest" },
|
|
41
|
+
{ name: "FilingYear Working" },
|
|
42
|
+
{ name: "FYE" },
|
|
42
43
|
],
|
|
43
44
|
};
|
|
44
|
-
export default
|
|
45
|
+
export default CorporateProperties;
|
|
45
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,UAAqC,MAAM,cAAc,CAAC;AACjE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAEhF,MAAM,mBAAmB,GAAG,CAAC,KAY5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wBACvE,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,IAAI,GAAI,CACnC,CACZ,CAAC,CACI,CACP,GACA;gBAEF,oBAAC,iBAAiB,IACjB,iBAAiB,QACjB,EAAE,EAAE,MAAA,SAAS,CAAC,IAAI,0CAAE,EAAG,EACvB,KAAK,EAAE,eAAe,EACtB,gBAAgB,EAAE,oBAAoB,GACrC,CACU,CACR,CACN,CAAA;KAAA,CACD,CAAC;AACH,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,cAAc,EAAE,sBAAsB;IACtC,eAAe,EAAE,oBAAoB;IACrC,mBAAmB,EAAE;QACpB,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,yBAAyB,EAAE;QACnC,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAC1B,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC7B,EAAE,IAAI,EAAE,oBAAoB,EAAE;QAC9B,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC7B,EAAE,IAAI,EAAE,oBAAoB,EAAE;QAC9B,EAAE,IAAI,EAAE,KAAK,EAAE;KACf;CACD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Skeleton } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useCorporate, useCorporateStore } from "../../../../../data/corporate";
|
|
5
|
+
import { Open, Reload, Delete } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
6
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
7
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
8
|
+
import styles from "./index.less";
|
|
9
|
+
const CorporateHead = (props) => {
|
|
10
|
+
const { id, onReload } = props;
|
|
11
|
+
const corporate = useCorporate(id);
|
|
12
|
+
const store = useCorporateStore();
|
|
13
|
+
return observe(() => {
|
|
14
|
+
var _a;
|
|
15
|
+
return (React.createElement("div", { className: styles["unit-head"] }, corporate.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
|
16
|
+
React.createElement("div", { className: "tool-bar-content" },
|
|
17
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
18
|
+
React.createElement(Open, { url: `/corporate-page/${id}` }),
|
|
19
|
+
React.createElement(Reload, { action: onReload }),
|
|
20
|
+
React.createElement(Delete, { action: onItemDelete }))),
|
|
21
|
+
React.createElement(UnitAvatar, { id: (_a = corporate.unit) === null || _a === void 0 ? void 0 : _a.id, size: 70 }),
|
|
22
|
+
React.createElement("div", { className: "unit-name" }, corporate.name)))));
|
|
23
|
+
});
|
|
24
|
+
/**delete corporate*/
|
|
25
|
+
async function onItemDelete() {
|
|
26
|
+
await store.delete(id, { error: "message" });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export default CorporateHead;
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,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@@ -0,0 +1,33 @@
|
|
|
1
|
+
.unit-head {
|
|
2
|
+
position: relative;
|
|
3
|
+
text-align: center;
|
|
4
|
+
padding: 10px 0;
|
|
5
|
+
margin: 0 20px;
|
|
6
|
+
|
|
7
|
+
:global {
|
|
8
|
+
.tool-bar-content {
|
|
9
|
+
text-align: right;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.unit-name {
|
|
13
|
+
color: #000;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
margin-top: 12px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
&.inline-edit {
|
|
20
|
+
cursor: text;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.unit-type{
|
|
25
|
+
margin-bottom: 6px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.unit-tag {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
margin: auto;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useCorporate } from "../../../../../data/corporate";
|
|
4
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
5
|
+
import { Skeleton, Tag } from "antd";
|
|
6
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
|
+
import CorporateMenu from "../../controls/CorporateMenu";
|
|
9
|
+
import CorporatePropertiesView from "../CorporatePropertiesView";
|
|
10
|
+
import ItemFunction from "@voplus/morpho-document/es/controls/ItemFunction";
|
|
11
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
12
|
+
import Routes from "../../../../../routes";
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import dayjs from "dayjs";
|
|
15
|
+
import styles from "./index.less";
|
|
16
|
+
const CorporateItem = (props) => {
|
|
17
|
+
const { id, index } = props;
|
|
18
|
+
const [hover, setHover] = useState(false);
|
|
19
|
+
const corporate = useCorporate(id);
|
|
20
|
+
return observe(() => {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
return (React.createElement(ItemFunction, { className: styles["corporate-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(CorporatePropertiesView, { id: id }) }, corporate.loading ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(ColumnItem, null,
|
|
23
|
+
React.createElement(ColumnItemCol, { span: 14 },
|
|
24
|
+
React.createElement("div", { className: "corporate-item-info" },
|
|
25
|
+
React.createElement("div", { className: "corporate-item-avatar" },
|
|
26
|
+
React.createElement(UnitAvatar, { id: (_a = corporate.unit) === null || _a === void 0 ? void 0 : _a.id, index: index, size: "large" })),
|
|
27
|
+
React.createElement("div", { className: "corporate-item-name-contact-information" },
|
|
28
|
+
React.createElement("div", { className: "corporate-item-name-position" }, corporate.name),
|
|
29
|
+
React.createElement("div", { className: "corporate-item-contact-information" }, corporate.corporateType)))),
|
|
30
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Latest Filing Year" },
|
|
31
|
+
React.createElement("div", { className: "corporate-item-date" }, dayjs((_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.fye).format("YYYY-MM-DD"))),
|
|
32
|
+
React.createElement(ColumnItemCol, { span: 3, title: "Status" },
|
|
33
|
+
React.createElement("div", { className: "corporate-item-date" }, corporate.corporateStatus && (React.createElement(Tag, { color: statusColor(corporate.corporateStatus) }, corporate.corporateStatus)))),
|
|
34
|
+
React.createElement(ColumnItemCol, { span: 3, align: "flex-end" },
|
|
35
|
+
React.createElement("div", { className: classnames("corporate-item-tool", { show: hover }) },
|
|
36
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
37
|
+
React.createElement(Open, { url: Routes.UnitCorporatePage.getUrl((_c = corporate.unit) === null || _c === void 0 ? void 0 : _c.id) }),
|
|
38
|
+
React.createElement(CorporateMenu, { id: id, unitId: (_d = corporate.unit) === null || _d === void 0 ? void 0 : _d.id }))))))));
|
|
39
|
+
});
|
|
40
|
+
function statusColor(status) {
|
|
41
|
+
switch (status) {
|
|
42
|
+
case "Live":
|
|
43
|
+
return "#1890ff";
|
|
44
|
+
case "Dormant":
|
|
45
|
+
return "#765fee";
|
|
46
|
+
case "Closed":
|
|
47
|
+
return "#ff4d4f";
|
|
48
|
+
case "Invalid Current Filing":
|
|
49
|
+
return "#ccc";
|
|
50
|
+
default:
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export default CorporateItem;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,uBAAuB,CAAC;AA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M,CAAC;YACf;gBACC,OAAO;SACR;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.corporate-item {
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
|
|
6
|
+
&:hover {
|
|
7
|
+
background-color: #f5f8fd;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:global {
|
|
11
|
+
.corporate-item-info {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
.corporate-item-avatar {
|
|
16
|
+
width: 40px;
|
|
17
|
+
margin-right: 7px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.corporate-item-name-contact-information {
|
|
21
|
+
.corporate-item-name-position {
|
|
22
|
+
color: #575757;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
word-break: break-all;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.corporate-item-contact-information {
|
|
28
|
+
min-height: 22px;
|
|
29
|
+
color: rgba(0, 0, 0, 0.45);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.corporate-item-date {
|
|
35
|
+
min-height: 22px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.corporate-item-tool {
|
|
39
|
+
display: none;
|
|
40
|
+
|
|
41
|
+
&.show {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.custom-column-item___yTecf {
|
|
47
|
+
padding: 10px 20px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|