@voplus/morpho-csp 6.1.18 → 6.1.19
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/filing-record/FilingRecordStore.d.ts +7 -1
- package/es/data/filing-record/FilingRecordStore.js +12 -4
- package/es/data/filing-record/FilingRecordStore.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAListView/index.d.ts +2 -0
- package/es/modules/corporate/clda/components/CLDAListView/index.js +52 -43
- package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAListView/index.less +6 -6
- package/es/modules/corporate/clda/components/CLDAListView/state.d.ts +4 -0
- package/es/modules/corporate/clda/components/CLDAListView/state.js +11 -0
- package/es/modules/corporate/clda/components/CLDAListView/state.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAOverview/index.d.ts +12 -0
- package/es/modules/corporate/clda/components/CLDAOverview/index.js +35 -0
- package/es/modules/corporate/clda/components/CLDAOverview/index.js.map +1 -0
- package/es/modules/corporate/clda/components/CLDAOverview/index.less +12 -0
- package/es/modules/corporate/clda/components/CLDAPanel/index.d.ts +12 -0
- package/es/modules/corporate/clda/components/CLDAPanel/index.js +23 -0
- package/es/modules/corporate/clda/components/CLDAPanel/index.js.map +1 -0
- package/es/modules/corporate/clda/components/CLDAPanel/index.less +26 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/index.d.ts +7 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/index.js +58 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/index.js.map +1 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/state.d.ts +17 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/state.js +153 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/state.js.map +1 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/index.d.ts +4 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/index.js +24 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/index.js.map +1 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/index.less +18 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/state.d.ts +6 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/state.js +26 -0
- package/es/modules/corporate/clda/pages/CLDAListPage/state.js.map +1 -0
- package/es/modules/corporate/filing-record/components/FilingList/index.d.ts +25 -15
- package/es/modules/corporate/filing-record/components/FilingList/index.js +42 -23
- package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.less +4 -28
- package/es/modules/corporate/filing-record/components/FilingOverview/index.d.ts +7 -0
- package/es/modules/corporate/filing-record/components/FilingOverview/index.js +22 -0
- package/es/modules/corporate/filing-record/components/FilingOverview/index.js.map +1 -0
- package/es/modules/corporate/filing-record/components/FilingOverview/index.less +8 -0
- package/es/modules/corporate/filing-record/components/FilingPanel/index.d.ts +12 -0
- package/es/modules/corporate/filing-record/components/FilingPanel/index.js +17 -0
- package/es/modules/corporate/filing-record/components/FilingPanel/index.js.map +1 -0
- package/es/modules/corporate/filing-record/components/FilingPanel/index.less +26 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.d.ts +13 -2
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js +31 -18
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.less +0 -5
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeListPage/index.d.ts +4 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeListPage/index.js +28 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeListPage/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeListPage/index.less +9 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js +1 -3
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingListPage/index.d.ts +4 -0
- package/es/modules/corporate/filing-record/pages/FilingListPage/index.js +51 -0
- package/es/modules/corporate/filing-record/pages/FilingListPage/index.js.map +1 -0
- package/es/modules/corporate/filing-record/pages/FilingListPage/index.less +9 -0
- package/es/modules/corporate/filing-record/pages/FilingListPage/state.d.ts +14 -0
- package/es/modules/corporate/filing-record/pages/FilingListPage/state.js +94 -0
- package/es/modules/corporate/filing-record/pages/FilingListPage/state.js.map +1 -0
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor(centerId, types) {
|
|
5
|
+
var _a;
|
|
6
|
+
Object.defineProperty(this, "centerId", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: centerId
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "types", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: types
|
|
17
|
+
});
|
|
18
|
+
/** 默认值 */
|
|
19
|
+
Object.defineProperty(this, "status", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: [
|
|
24
|
+
"Notified",
|
|
25
|
+
"Opened",
|
|
26
|
+
"Progress",
|
|
27
|
+
"Done",
|
|
28
|
+
"Closed",
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(this, "signingMode", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: ["Physical", "Digital"]
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(this, "filerOptions", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: void 0
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(this, "defaultFilter", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
configurable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
value: []
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(this, "listFilterOptions", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: void 0
|
|
54
|
+
});
|
|
55
|
+
makeObservable(this);
|
|
56
|
+
if (this.centerId)
|
|
57
|
+
this.defaultFilter = [{ c: "CenterId", o: "=", l: "And", v1: this.centerId }];
|
|
58
|
+
/** CLDA Status */
|
|
59
|
+
let statusFilter = [];
|
|
60
|
+
this.status.map((s) => {
|
|
61
|
+
statusFilter.push({
|
|
62
|
+
name: s,
|
|
63
|
+
filters: {
|
|
64
|
+
Filters: [...this.defaultFilter, { c: "AssistantStatus", o: "=", v1: s, l: "And" }],
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
/** CLDA Types */
|
|
69
|
+
let typesFilter = [];
|
|
70
|
+
(_a = this.types) === null || _a === void 0 ? void 0 : _a.map((t) => {
|
|
71
|
+
typesFilter.push({
|
|
72
|
+
name: t.name,
|
|
73
|
+
filters: { Filters: [...this.defaultFilter, { c: "Meta", o: "=", v1: t.id, l: "And" }] },
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
/** Signing Mode */
|
|
77
|
+
let signingModeFilter = [];
|
|
78
|
+
this.signingMode.map((s) => {
|
|
79
|
+
signingModeFilter.push({
|
|
80
|
+
name: s,
|
|
81
|
+
filters: {
|
|
82
|
+
Filters: [...this.defaultFilter, { c: "SigningMode", o: "=", v1: s, l: "And" }],
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
this.listFilterOptions = [
|
|
87
|
+
{ name: "All", filters: { Filters: this.defaultFilter } },
|
|
88
|
+
...statusFilter,
|
|
89
|
+
...typesFilter,
|
|
90
|
+
...signingModeFilter,
|
|
91
|
+
];
|
|
92
|
+
this.onFilterOptions();
|
|
93
|
+
}
|
|
94
|
+
onFilterOptions(options) {
|
|
95
|
+
var _a, _b;
|
|
96
|
+
this.filerOptions = options !== null && options !== void 0 ? options : [];
|
|
97
|
+
if (this.defaultFilter && !((_a = this.filerOptions) === null || _a === void 0 ? void 0 : _a.some((item) => item.c === "CenterId"))) {
|
|
98
|
+
(_b = this.filerOptions) === null || _b === void 0 ? void 0 : _b.push(...this.defaultFilter);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
onOverviewItemClick(s) {
|
|
102
|
+
var _a;
|
|
103
|
+
if (s === null || s === void 0 ? void 0 : s.includes("All")) {
|
|
104
|
+
this.onFilterOptions();
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
let f = [];
|
|
108
|
+
/** signing Mode */
|
|
109
|
+
const signingMode = [];
|
|
110
|
+
this.signingMode.map((i) => {
|
|
111
|
+
if (s === null || s === void 0 ? void 0 : s.includes(i)) {
|
|
112
|
+
signingMode.push(i);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
if (signingMode === null || signingMode === void 0 ? void 0 : signingMode.length)
|
|
116
|
+
f.push({ c: "SigningMode", o: "contains", l: "And", v1: JSON.stringify(signingMode) });
|
|
117
|
+
let status = s === null || s === void 0 ? void 0 : s.filter((item) => !signingMode.includes(item));
|
|
118
|
+
/** types */
|
|
119
|
+
(_a = this.types) === null || _a === void 0 ? void 0 : _a.map((i) => {
|
|
120
|
+
if (s === null || s === void 0 ? void 0 : s.includes(i.name)) {
|
|
121
|
+
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== i.name);
|
|
122
|
+
f.push({ c: "Meta", o: "=", v1: i.id, l: "And" });
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
/** status */
|
|
126
|
+
if (status === null || status === void 0 ? void 0 : status.length)
|
|
127
|
+
f.push({ c: "AssistantStatus", o: "contains", l: "And", v1: JSON.stringify(status) });
|
|
128
|
+
this.onFilterOptions(f);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
__decorate([
|
|
133
|
+
observable
|
|
134
|
+
], State.prototype, "status", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
observable
|
|
137
|
+
], State.prototype, "signingMode", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
observable
|
|
140
|
+
], State.prototype, "filerOptions", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
observable
|
|
143
|
+
], State.prototype, "defaultFilter", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
observable
|
|
146
|
+
], State.prototype, "listFilterOptions", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
action
|
|
149
|
+
], State.prototype, "onFilterOptions", null);
|
|
150
|
+
__decorate([
|
|
151
|
+
action
|
|
152
|
+
], State.prototype, "onOverviewItemClick", null);
|
|
153
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/clda/pages/CLDAListPage/Content/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1D,MAAM,OAAO,KAAK;IAcjB,YAA2B,QAAiB,EAAS,KAAmB;;QAArD;;;;mBAAQ,QAAQ;WAAS;QAAE;;;;mBAAO,KAAK;WAAc;QAbxE,UAAU;QACS;;;;mBAA4B;gBAC9C,UAAU;gBACV,QAAQ;gBACR,UAAU;gBACV,MAAM;gBACN,QAAQ;aACR;WAAC;QACiB;;;;mBAAwB,CAAC,UAAU,EAAE,SAAS,CAAC;WAAC;QAChD;;;;;W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,iBAAiB,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACvF,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;IACF,CAAC;CACD;AA7FmB;IAAlB,UAAU;qCAMT;AACiB;IAAlB,UAAU;0CAAwD;AAChD;IAAlB,UAAU;2CAAsC;AAC9B;IAAlB,UAAU;4CAA2C;AACnC;IAAlB,UAAU;gDAAgD;AA+C5C;IAAd,MAAM;4CAMN;AAEc;IAAd,MAAM;gDA2BN"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { Skeleton } from "antd";
|
|
4
|
+
import { useCLDAMetaStore } from "../../../../../data/clda-meta";
|
|
5
|
+
import { State } from "./state";
|
|
6
|
+
import Content from "./Content";
|
|
7
|
+
const CLDAListPage = (props) => {
|
|
8
|
+
const metaStore = useCLDAMetaStore();
|
|
9
|
+
const [state] = useState(new State());
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
update();
|
|
12
|
+
}, []);
|
|
13
|
+
return observe(() => (React.createElement(Skeleton, { loading: state.loading },
|
|
14
|
+
React.createElement(Content, { ...props, types: state.types }))));
|
|
15
|
+
async function update() {
|
|
16
|
+
state.loading = true;
|
|
17
|
+
state.types = await metaStore.loadList({
|
|
18
|
+
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.parentId }],
|
|
19
|
+
});
|
|
20
|
+
state.loading = false;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export default CLDAListPage;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDAListPage/index.tsx"],"names":[],"mappings":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3
|
+
.default-view-context {
|
|
4
|
+
.list-view-header-tool {
|
|
5
|
+
.stort-header-tool {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.ant-tabs-top > .ant-tabs-nav {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
.list-tabBar-filter {
|
|
13
|
+
color: #5d5d5d;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "loading", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "types", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
makeObservable(this);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], State.prototype, "loading", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "types", void 0);
|
|
26
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDAListPage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAU,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,OAAO,KAAK;IAIjB;QAHmB;;;;mBAAU,IAAI;WAAC;QACf;;;;;WAAoB;QAGtC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AANmB;IAAlB,UAAU;sCAAuB;AACf;IAAlB,UAAU;oCAA4B"}
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { FilterOption } from "@voplus/morpho-data";
|
|
2
3
|
import { IFilingRecore } from "../../../../../data/filing-record";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
export type FilingListProps = {
|
|
6
|
+
/** Secretary Center id */
|
|
7
|
+
centerId?: string;
|
|
8
|
+
/** Filing Year id */
|
|
9
|
+
filingYearId?: string;
|
|
10
|
+
/** filings status */
|
|
11
|
+
status?: string;
|
|
12
|
+
viewTitle?: React.ReactNode;
|
|
13
|
+
/** 是否显示 表单添加 按钮 */
|
|
14
|
+
addAble?: boolean;
|
|
15
|
+
/** 头部的显示方式 */
|
|
16
|
+
headerType?: "dashboard" | "tool";
|
|
17
|
+
/** 是否允在 listView 内部打开 aside */
|
|
18
|
+
asideable?: boolean;
|
|
19
|
+
filterOptions?: FilterOption[];
|
|
20
|
+
/** Call back when received total number of tax. */
|
|
21
|
+
onTotal?: (total: number) => void;
|
|
22
|
+
onAdd?: () => void;
|
|
23
|
+
onClickItem?: (item: IFilingRecore) => void;
|
|
24
|
+
};
|
|
3
25
|
declare const FilingList: {
|
|
4
|
-
(props:
|
|
5
|
-
/** Secretary Center id */
|
|
6
|
-
centerId?: string;
|
|
7
|
-
/** Filing Year id */
|
|
8
|
-
filingYearId?: string;
|
|
9
|
-
/** filings status */
|
|
10
|
-
status?: string;
|
|
11
|
-
viewTitle?: React.ReactNode;
|
|
12
|
-
/** 是否显示 表单添加 按钮 */
|
|
13
|
-
addAble?: boolean;
|
|
14
|
-
/** 头部的显示方式 */
|
|
15
|
-
headerType?: "page" | "sub";
|
|
16
|
-
onAdd?: () => void;
|
|
17
|
-
onClickItem?: (item: IFilingRecore) => void;
|
|
18
|
-
}): React.JSX.Element;
|
|
26
|
+
(props: FilingListProps): React.JSX.Element;
|
|
19
27
|
defaultProps: {
|
|
20
28
|
addAble: boolean;
|
|
29
|
+
headerType: string;
|
|
30
|
+
viewTitle: string;
|
|
21
31
|
};
|
|
22
32
|
};
|
|
23
33
|
export default FilingList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { observe, useRenderOnChange
|
|
2
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
3
3
|
import { useFilingRecoreListEffect } from "../../../../../data/filing-record";
|
|
4
4
|
import { useAutoUpdateListData } from "../../../../../data/filing-record/filing-record-events";
|
|
5
5
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
@@ -7,41 +7,50 @@ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemF
|
|
|
7
7
|
import NewFilingRecoreForm from "../NewFilingRecoreForm";
|
|
8
8
|
import { faScrollOld } from "@fortawesome/pro-solid-svg-icons";
|
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
-
import
|
|
11
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/
|
|
10
|
+
import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
|
|
11
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
12
12
|
import FilingRecordItem from "../FilingRecordItem";
|
|
13
|
-
import
|
|
14
|
-
import styles from "./index.less";
|
|
13
|
+
import "./index.less";
|
|
15
14
|
import dayjs from "dayjs";
|
|
16
|
-
// FilingList 用在 FilingYearDefaultView 中.
|
|
17
15
|
const FilingList = (props) => {
|
|
18
|
-
const { centerId, filingYearId, viewTitle, addAble, status, headerType } = props;
|
|
16
|
+
const { centerId, filingYearId, viewTitle, addAble, status, headerType, filterOptions } = props;
|
|
19
17
|
const [activeId, setActiveId] = useState("");
|
|
20
|
-
const asideContext = useAsideContentContext();
|
|
21
18
|
const list = useCreateListDataState({ filterDefaults: { filters: filters() } }, [
|
|
22
19
|
centerId,
|
|
23
20
|
filingYearId,
|
|
21
|
+
filterOptions,
|
|
24
22
|
]);
|
|
23
|
+
const layoutContext = useViewLayoutContext();
|
|
24
|
+
const listHeaderProps = {
|
|
25
|
+
visible: true,
|
|
26
|
+
sortable: false,
|
|
27
|
+
addAble: addAble,
|
|
28
|
+
searchOptions: { placeholder: "Search in filing list" },
|
|
29
|
+
onAdd: onAdd,
|
|
30
|
+
};
|
|
25
31
|
useAutoUpdateListData(list, (d) => d.parentId === filingYearId);
|
|
26
32
|
useRenderOnChange(() => list.filters.options);
|
|
27
33
|
useFilingRecoreListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
28
34
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
29
|
-
React.createElement(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
React.createElement(ListView, { headerProps: {
|
|
36
|
+
headDashboardProps: headerType === "dashboard"
|
|
37
|
+
? {
|
|
38
|
+
headerType: "page",
|
|
39
|
+
avatarIcon: React.createElement(FAIcon, { icon: faScrollOld }),
|
|
40
|
+
title: viewTitle,
|
|
41
|
+
description: "Streamline your yearly filing for hassle-Free.",
|
|
42
|
+
listHeaderProps: listHeaderProps,
|
|
43
|
+
}
|
|
44
|
+
: undefined,
|
|
45
|
+
headerToolProps: headerType === "tool" ? listHeaderProps : undefined,
|
|
46
|
+
}, asideable: props.asideable, className: "filing-list", renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
|
47
|
+
var _a;
|
|
48
|
+
setActiveId(item.id);
|
|
49
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
50
|
+
} },
|
|
51
|
+
React.createElement(FilingRecordItem, { id: item.id, borderBottom: true }))) }))));
|
|
43
52
|
function filters() {
|
|
44
|
-
|
|
53
|
+
let filter = [];
|
|
45
54
|
if (centerId)
|
|
46
55
|
filter.push({ c: "CenterId", o: "=", l: "And", v1: centerId });
|
|
47
56
|
if (filingYearId)
|
|
@@ -50,11 +59,21 @@ const FilingList = (props) => {
|
|
|
50
59
|
filter.push({ c: "DueDate", o: "<", l: "And", v1: dayjs().format("YYYY-MM-DD HH:mm:ss") });
|
|
51
60
|
filter.push({ c: "FileDate", o: "is null", l: "And", v1: "" });
|
|
52
61
|
}
|
|
62
|
+
if (filterOptions) {
|
|
63
|
+
filter = filterOptions;
|
|
64
|
+
}
|
|
53
65
|
return filter;
|
|
54
66
|
}
|
|
67
|
+
function onAdd(asideContext) {
|
|
68
|
+
asideContext.openAside(React.createElement(NewFilingRecoreForm, { showView: true, filingYearId: filingYearId }), {
|
|
69
|
+
span: (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.asideColSpan) ? layoutContext.asideColSpan : 12,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
55
72
|
};
|
|
56
73
|
FilingList.defaultProps = {
|
|
57
74
|
addAble: true,
|
|
75
|
+
headerType: "dashboard",
|
|
76
|
+
viewTitle: "Filings",
|
|
58
77
|
};
|
|
59
78
|
export default FilingList;
|
|
60
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAA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Aa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;SACnE,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG;IACzB,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,WAAW;IACvB,SAAS,EAAE,SAAS;CACpB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,30 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
background: #fff;
|
|
6
|
-
|
|
7
|
-
:global {
|
|
8
|
-
.filing-list-content {
|
|
9
|
-
padding: 0 !important;
|
|
10
|
-
}
|
|
11
|
-
.page-head-dashboard {
|
|
12
|
-
margin-bottom: 20px;
|
|
13
|
-
&.sub-page-head {
|
|
14
|
-
.page-head-general {
|
|
15
|
-
border: none;
|
|
16
|
-
padding-bottom: 5px;
|
|
17
|
-
}
|
|
18
|
-
.page-head-content {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
.list-view-header-tool {
|
|
22
|
-
flex: 1;
|
|
23
|
-
.site-badge-count {
|
|
24
|
-
margin-left: 10px;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.filing-list {
|
|
3
|
+
height: 100%;
|
|
4
|
+
background: #fff;
|
|
29
5
|
}
|
|
30
6
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
|
+
import PanelOverview from "@voplus/morpho-ui/es/controls/PanelOverview";
|
|
3
|
+
import OverviewAll from "@voplus/morpho-ui/es/controls/PanelOverview/OverviewAll";
|
|
4
|
+
import OverviewItem from "@voplus/morpho-ui/es/controls/PanelOverview/OverviewItem";
|
|
5
|
+
import { useQuickFilterContext } from "@voplus/morpho-ui/es/data/QuickFilterContext";
|
|
6
|
+
import { Skeleton } from "antd";
|
|
7
|
+
import classnames from "classnames";
|
|
8
|
+
import React from "react";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
const status = ["Overdue"];
|
|
11
|
+
const FilingOverview = (props) => {
|
|
12
|
+
const context = useQuickFilterContext();
|
|
13
|
+
return observe(() => (React.createElement(Skeleton, { loading: context.loading },
|
|
14
|
+
React.createElement(PanelOverview, { className: "filing-overview", overviewAll: React.createElement(OverviewAll, { className: classnames({ active: context.actives.includes("All") }), total: context.getCount("All"), description: "Total All Filings", onClick: () => onClick("All") }), overviewList: React.createElement(React.Fragment, null, status.map((i) => (React.createElement(OverviewItem, { key: i, className: classnames({ active: context.actives.includes(i) }), total: context.getCount(i), description: i, onClick: () => onClick(i) })))) }))));
|
|
15
|
+
function onClick(status) {
|
|
16
|
+
var _a;
|
|
17
|
+
context.triggerFilter(status);
|
|
18
|
+
(_a = props.onOverviewItemClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default FilingOverview;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingOverview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,WAAW,MAAM,yDAAyD,CAAC;AAClF,OAAO,YAAY,MAAM,0DAA0D,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAEtB,MAAM,MAAM,GAAa,CAAC,SAAS,CAAC,CAAC;AAMrC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IAExC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,OAAO,EAAE,OAAO,CAAC,OAAO;QACjC,oBAAC,aAAa,IACb,SAAS,EAAC,iBAAiB,EAC3B,WAAW,EACV,oBAAC,WAAW,IACX,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,EAClE,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC9B,WAAW,EAAC,mBAAmB,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAC5B,EAEH,YAAY,EACX,0CACE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAClB,oBAAC,YAAY,IACZ,GAAG,EAAE,CAAC,EACN,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAC9D,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAC1B,WAAW,EAAE,CAAC,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GACxB,CACF,CAAC,CACA,GAEH,CACQ,CACX,CAAC,CAAC;IAEH,SAAS,OAAO,CAAC,MAAc;;QAC9B,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC9B,MAAA,KAAK,CAAC,mBAAmB,qDAAI,CAAC;IAC/B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FilterOption } from "@voplus/morpho-data";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FilingOverviewProps } from "../FilingOverview";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
export type FilingPanelProps = {
|
|
6
|
+
overviewProps?: FilingOverviewProps;
|
|
7
|
+
filingFilterProps?: {
|
|
8
|
+
onFilter?: (options?: FilterOption[]) => void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
declare const FilingPanel: (props: FilingPanelProps) => React.JSX.Element;
|
|
12
|
+
export default FilingPanel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
|
+
import { Tabs } from "antd";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import FilingOverview from "../FilingOverview";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
const FilingPanel = (props) => {
|
|
7
|
+
return observe(() => (React.createElement("div", { className: "filing-panel" },
|
|
8
|
+
React.createElement(Tabs, { defaultActiveKey: "Overview", items: [
|
|
9
|
+
{
|
|
10
|
+
key: "Overview",
|
|
11
|
+
label: "Overview",
|
|
12
|
+
children: React.createElement(FilingOverview, { ...props.overviewProps }),
|
|
13
|
+
},
|
|
14
|
+
] }))));
|
|
15
|
+
};
|
|
16
|
+
export default FilingPanel;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingPanel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAuC,MAAM,mBAAmB,CAAC;AACxE,OAAO,cAAc,CAAC;AAStB,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC/C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,cAAc;QAC5B,oBAAC,IAAI,IACJ,gBAAgB,EAAC,UAAU,EAC3B,KAAK,EAAE;gBACN;oBACC,GAAG,EAAE,UAAU;oBACf,KAAK,EAAE,UAAU;oBACjB,QAAQ,EAAE,oBAAC,cAAc,OAAK,KAAK,CAAC,aAAa,GAAI;iBACrD;aACD,GACA,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.filing-panel {
|
|
3
|
+
flex: 1;
|
|
4
|
+
|
|
5
|
+
.ant-tabs {
|
|
6
|
+
height: 100%;
|
|
7
|
+
|
|
8
|
+
.ant-tabs-nav-wrap {
|
|
9
|
+
padding: 0 16px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ant-tabs-nav {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.filing-filter {
|
|
17
|
+
.flex-1 {
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
.general-filter-btn {
|
|
21
|
+
padding: 0 13px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IFilingType } from "../../../../../../data/filing-type";
|
|
3
|
-
|
|
3
|
+
export type FilingTypeListProps = {
|
|
4
4
|
centerId: string;
|
|
5
5
|
viewTitle?: string;
|
|
6
6
|
status?: string;
|
|
7
|
+
/** 是否允在 listView 内部打开 aside */
|
|
8
|
+
asideable?: boolean;
|
|
9
|
+
/** 头部的显示方式 */
|
|
10
|
+
headerType?: "dashboard" | "tool";
|
|
7
11
|
onTotal?: (total: number) => void;
|
|
8
12
|
onClickItem?: (item: IFilingType) => void;
|
|
9
|
-
}
|
|
13
|
+
};
|
|
14
|
+
declare const FilingTypeList: {
|
|
15
|
+
(props: FilingTypeListProps): React.JSX.Element;
|
|
16
|
+
defaultProps: {
|
|
17
|
+
headerType: string;
|
|
18
|
+
viewTitle: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
10
21
|
export default FilingTypeList;
|