ztxkui 10.0.54 → 10.0.56
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/dist/components/DatePicker/data-picker.d.ts +46 -8
- package/dist/components/Input/input.d.ts +2 -3
- package/dist/components/Layout/layout.d.ts +4 -4
- package/dist/components/Menu/menu.d.ts +2 -2
- package/dist/components/PrintContainer/print-container.js +3 -11
- package/dist/components/PrintContainer/sealHooks.js +1 -1
- package/dist/components/PrintContainer/service.js +1 -1
- package/dist/components/Tabs/tabs.d.ts +2 -2
- package/dist/components/Upload/utils.js +1 -1
- package/dist/components/ZtIcon/index.d.ts +1 -1
- package/dist/components/business/Signatures/components/CompareResult.js +1 -1
- package/dist/components/business/Signatures/components/DetailTable.js +2 -2
- package/dist/components/business/Signatures/index.js +5 -5
- package/package.json +2 -2
- package/dist/components/Form/form.d.ts +0 -13
|
@@ -1,12 +1,50 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Dayjs } from 'dayjs';
|
|
3
2
|
import 'antd/es/date-picker/style/index';
|
|
4
|
-
declare const DatePicker: import("
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
4
|
+
status?: "" | "error" | "warning";
|
|
5
|
+
dropdownClassName?: string;
|
|
6
|
+
popupClassName?: string;
|
|
7
|
+
}, unknown> & {
|
|
8
|
+
WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
9
|
+
status?: "" | "error" | "warning";
|
|
10
|
+
dropdownClassName?: string;
|
|
11
|
+
popupClassName?: string;
|
|
12
|
+
}, "picker">, unknown>;
|
|
13
|
+
MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
14
|
+
status?: "" | "error" | "warning";
|
|
15
|
+
dropdownClassName?: string;
|
|
16
|
+
popupClassName?: string;
|
|
17
|
+
}, "picker">, unknown>;
|
|
18
|
+
YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
|
|
19
|
+
status?: "" | "error" | "warning";
|
|
20
|
+
dropdownClassName?: string;
|
|
21
|
+
popupClassName?: string;
|
|
22
|
+
}, "picker">, unknown>;
|
|
23
|
+
RangePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").RangePickerProps<Dayjs> & {
|
|
24
|
+
dropdownClassName?: string;
|
|
25
|
+
popupClassName?: string;
|
|
26
|
+
}, unknown>;
|
|
27
|
+
TimePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "hideHeader" | "locale" | "generateConfig" | "components"> & {
|
|
28
|
+
locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
|
|
29
|
+
size?: import("antd/es/button").ButtonSize;
|
|
30
|
+
placement?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
31
|
+
bordered?: boolean;
|
|
32
|
+
status?: "" | "error" | "warning";
|
|
33
|
+
} & {
|
|
34
|
+
status?: "" | "error" | "warning";
|
|
35
|
+
dropdownClassName?: string;
|
|
36
|
+
popupClassName?: string;
|
|
37
|
+
}, "picker">, unknown>;
|
|
38
|
+
QuarterPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "hideHeader" | "locale" | "generateConfig" | "components"> & {
|
|
39
|
+
locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
|
|
40
|
+
size?: import("antd/es/button").ButtonSize;
|
|
41
|
+
placement?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
42
|
+
bordered?: boolean;
|
|
43
|
+
status?: "" | "error" | "warning";
|
|
44
|
+
} & {
|
|
45
|
+
status?: "" | "error" | "warning";
|
|
46
|
+
dropdownClassName?: string;
|
|
47
|
+
popupClassName?: string;
|
|
48
|
+
}, "picker">, unknown>;
|
|
11
49
|
};
|
|
12
50
|
export default DatePicker;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Input as AntInput } from 'antd';
|
|
3
2
|
import { InputProps, TextAreaProps } from 'antd/lib/input';
|
|
4
3
|
export interface IProps extends InputProps {
|
|
5
4
|
/**
|
|
@@ -21,8 +20,8 @@ export interface ITextAreaProps extends TextAreaProps {
|
|
|
21
20
|
declare function Input(props: IProps): JSX.Element;
|
|
22
21
|
declare namespace Input {
|
|
23
22
|
var Group: React.FC<import("antd/lib/input").GroupProps>;
|
|
24
|
-
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<
|
|
23
|
+
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
25
24
|
var TextArea: React.ForwardRefExoticComponent<ITextAreaProps & React.RefAttributes<unknown>>;
|
|
26
|
-
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<
|
|
25
|
+
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
27
26
|
}
|
|
28
27
|
export default Input;
|
|
@@ -4,9 +4,9 @@ interface IProps extends LayoutProps {
|
|
|
4
4
|
}
|
|
5
5
|
declare function Layout(props: IProps): JSX.Element;
|
|
6
6
|
declare namespace Layout {
|
|
7
|
-
var Header: React.
|
|
8
|
-
var Footer: React.
|
|
9
|
-
var Content: React.
|
|
10
|
-
var Sider: React.ForwardRefExoticComponent<import("antd
|
|
7
|
+
var Header: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
var Footer: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
var Content: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
var Sider: React.ForwardRefExoticComponent<import("antd").SiderProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
}
|
|
12
12
|
export default Layout;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MenuProps } from 'antd/lib/menu';
|
|
3
3
|
interface IProps extends MenuProps {
|
|
4
4
|
}
|
|
@@ -7,6 +7,6 @@ declare namespace Menu {
|
|
|
7
7
|
var Item: typeof import("antd/lib/menu/MenuItem").default;
|
|
8
8
|
var SubMenu: typeof import("antd/lib/menu/SubMenu").default;
|
|
9
9
|
var ItemGroup: typeof import("rc-menu").MenuItemGroup;
|
|
10
|
-
var Divider:
|
|
10
|
+
var Divider: React.FC<import("antd/lib/menu").MenuDividerProps>;
|
|
11
11
|
}
|
|
12
12
|
export default Menu;
|
|
@@ -816,7 +816,7 @@ var PrintContainer = function (_a) {
|
|
|
816
816
|
formData.append('deptId', deptId);
|
|
817
817
|
}
|
|
818
818
|
request({
|
|
819
|
-
url: '/api/zmdms-
|
|
819
|
+
url: '/api/zmdms-scm-system/seal/confirm-seal-position',
|
|
820
820
|
method: 'POST',
|
|
821
821
|
data: formData,
|
|
822
822
|
timeout: 300000,
|
|
@@ -863,7 +863,7 @@ var PrintContainer = function (_a) {
|
|
|
863
863
|
}
|
|
864
864
|
setSpinning(true);
|
|
865
865
|
request({
|
|
866
|
-
url: '/api/zmdms-
|
|
866
|
+
url: '/api/zmdms-scm-system/seal/final-seal',
|
|
867
867
|
method: 'POST',
|
|
868
868
|
data: {
|
|
869
869
|
contractId: currentContractId,
|
|
@@ -960,7 +960,7 @@ var PrintContainer = function (_a) {
|
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
request({
|
|
963
|
-
url: '/api/zmdms-
|
|
963
|
+
url: '/api/zmdms-scm-system/seal/auto-seal',
|
|
964
964
|
method: 'POST',
|
|
965
965
|
data: formData,
|
|
966
966
|
headers: {
|
|
@@ -1302,14 +1302,6 @@ var PrintContainer = function (_a) {
|
|
|
1302
1302
|
imgPositionX: 30,
|
|
1303
1303
|
});
|
|
1304
1304
|
} }, "\u5206\u4EABPDF"),
|
|
1305
|
-
React.createElement(Button, { type: "primary", onClick: function () {
|
|
1306
|
-
onExportSealFileHandle({
|
|
1307
|
-
pdfOptions: {
|
|
1308
|
-
orientation: 'l',
|
|
1309
|
-
format: PAGEFORMATL,
|
|
1310
|
-
},
|
|
1311
|
-
}, 'merge');
|
|
1312
|
-
} }, "\u5206\u4EAB\u76D6\u7AE0\u4EF6"),
|
|
1313
1305
|
buttonRender ? buttonRender : null)) : (React.createElement("div", { className: "print-container--header__content" },
|
|
1314
1306
|
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('add'); } }, "\u653E\u5927\u6587\u5B57")),
|
|
1315
1307
|
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('reduce'); } }, "\u7F29\u5C0F\u6587\u5B57")),
|
|
@@ -38,7 +38,7 @@ export function useGetSealList(request, params, otherOptions) {
|
|
|
38
38
|
useEffect(function () {
|
|
39
39
|
if (deptId && flowId && request && isFetch) {
|
|
40
40
|
loadSealPromise.current = request({
|
|
41
|
-
url: '/api/zmdms-
|
|
41
|
+
url: '/api/zmdms-scm-system/flowdeptseal/select-seal-info-list',
|
|
42
42
|
method: 'GET',
|
|
43
43
|
params: {
|
|
44
44
|
size: 200,
|
|
@@ -59,7 +59,7 @@ function createDownloadUrl(apiUrl, fileId, otherOptions) {
|
|
|
59
59
|
export function autoSealThenDownloadFilesHandle(request, formData, options) {
|
|
60
60
|
var sucessCallback = options.sucessCallback, errorCallback = options.errorCallback, loadingCallback = options.loadingCallback, isPhone = options.isPhone, _a = options.apiUrl, apiUrl = _a === void 0 ? window.location.origin : _a, kkFileName = options.fileName;
|
|
61
61
|
return request({
|
|
62
|
-
url: '/api/zmdms-
|
|
62
|
+
url: '/api/zmdms-scm-system/seal/auto-seal-then-download-files',
|
|
63
63
|
method: 'POST',
|
|
64
64
|
data: formData,
|
|
65
65
|
headers: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TabsProps } from 'antd/lib/tabs';
|
|
3
3
|
interface IProps extends TabsProps {
|
|
4
4
|
isHeader?: boolean;
|
|
@@ -11,6 +11,6 @@ interface IProps extends TabsProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare function Tabs(props: IProps): JSX.Element;
|
|
13
13
|
declare namespace Tabs {
|
|
14
|
-
var TabPane:
|
|
14
|
+
var TabPane: React.FC<import("antd").TabPaneProps>;
|
|
15
15
|
}
|
|
16
16
|
export default Tabs;
|
|
@@ -212,7 +212,7 @@ export function sealDownloadFileCallBack(request, params, otherOption) {
|
|
|
212
212
|
var _a = otherOption || {}, callbackAfter = _a.callbackAfter, callbackError = _a.callbackError;
|
|
213
213
|
request({
|
|
214
214
|
method: 'POST',
|
|
215
|
-
url: '/api/zmdms-
|
|
215
|
+
url: '/api/zmdms-scm-system/seal/batch-download-seal-files',
|
|
216
216
|
responseType: 'blob',
|
|
217
217
|
data: params,
|
|
218
218
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const IconFont: import("react").
|
|
2
|
+
declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
|
|
3
3
|
export default IconFont;
|
|
@@ -18,7 +18,7 @@ var CompareResult = function (_a) {
|
|
|
18
18
|
if (task_id) {
|
|
19
19
|
// 比对任务状态查询
|
|
20
20
|
request({
|
|
21
|
-
url: "/api/zmdms-
|
|
21
|
+
url: "/api/zmdms-scm-system/seal/query-compare-task/" + task_id,
|
|
22
22
|
method: 'GET',
|
|
23
23
|
})
|
|
24
24
|
.then(function (res) {
|
|
@@ -35,7 +35,7 @@ var DetailTable = function (_a) {
|
|
|
35
35
|
var downFileFn = function (_record) {
|
|
36
36
|
try {
|
|
37
37
|
var xhr_1 = new XMLHttpRequest();
|
|
38
|
-
xhr_1.open('GET', ZT_API_BASEURL + "/api/zmdms-
|
|
38
|
+
xhr_1.open('GET', ZT_API_BASEURL + "/api/zmdms-scm-system/seal/download-watermark-attach/" + (_record === null || _record === void 0 ? void 0 : _record.attachId) + "?Zmdms-Auth=bearer " + token, true);
|
|
39
39
|
xhr_1.responseType = 'blob';
|
|
40
40
|
xhr_1.onload = function () {
|
|
41
41
|
var _a;
|
|
@@ -354,7 +354,7 @@ var DetailTable = function (_a) {
|
|
|
354
354
|
}
|
|
355
355
|
// request({
|
|
356
356
|
// method: 'POST',
|
|
357
|
-
// url: '/api/zmdms-
|
|
357
|
+
// url: '/api/zmdms-scm-system/seal/batch-download-seal-files',
|
|
358
358
|
// responseType: 'blob',
|
|
359
359
|
// data: params,
|
|
360
360
|
// }).then((res) => {
|
|
@@ -248,7 +248,7 @@ var Sinatures = function (_a) {
|
|
|
248
248
|
params.flowId = flowId;
|
|
249
249
|
}
|
|
250
250
|
request({
|
|
251
|
-
url: '/api/zmdms-
|
|
251
|
+
url: '/api/zmdms-scm-system/flowdeptseal/select-seal-info-list',
|
|
252
252
|
params: params,
|
|
253
253
|
method: 'GET',
|
|
254
254
|
})
|
|
@@ -290,7 +290,7 @@ var Sinatures = function (_a) {
|
|
|
290
290
|
/** 获取一级责任人名字 */
|
|
291
291
|
var getYjzrrName = useCallback(function () {
|
|
292
292
|
request({
|
|
293
|
-
url: "/api/zmdms-
|
|
293
|
+
url: "/api/zmdms-scm-system/seal/get-yjzrr-name/" + deptId,
|
|
294
294
|
method: 'GET',
|
|
295
295
|
})
|
|
296
296
|
.then(function (res) {
|
|
@@ -402,7 +402,7 @@ var Sinatures = function (_a) {
|
|
|
402
402
|
// 上一次盖章时的参数信息
|
|
403
403
|
setPrevParam(params);
|
|
404
404
|
request({
|
|
405
|
-
url: '/api/zmdms-
|
|
405
|
+
url: '/api/zmdms-scm-system/seal/confirm-seal-info',
|
|
406
406
|
method: 'POST',
|
|
407
407
|
timeout: 90000,
|
|
408
408
|
data: params,
|
|
@@ -447,7 +447,7 @@ var Sinatures = function (_a) {
|
|
|
447
447
|
var getNoSealInfoList = function () {
|
|
448
448
|
return new Promise(function (resolve, reject) {
|
|
449
449
|
request({
|
|
450
|
-
url: '/api/zmdms-
|
|
450
|
+
url: '/api/zmdms-scm-system/seal/query-unconfirmed-position-seal-list',
|
|
451
451
|
data: {
|
|
452
452
|
contractId: contractId,
|
|
453
453
|
sealIdList: innerElectronicSeal,
|
|
@@ -482,7 +482,7 @@ var Sinatures = function (_a) {
|
|
|
482
482
|
var viewSealPageFn = function () {
|
|
483
483
|
if (contractId) {
|
|
484
484
|
request({
|
|
485
|
-
url: '/api/zmdms-
|
|
485
|
+
url: '/api/zmdms-scm-system/seal/view-seal-state',
|
|
486
486
|
data: { contractId: contractId, canEdit: canEdit, flowStatus: flowStatus },
|
|
487
487
|
method: 'POST',
|
|
488
488
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ztxkui",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.56",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components library",
|
|
6
6
|
"author": "zt-front-end",
|
|
@@ -103,4 +103,4 @@
|
|
|
103
103
|
"react-dom": ">=16.9.0",
|
|
104
104
|
"ztxkutils": ">=2.1.1"
|
|
105
105
|
}
|
|
106
|
-
}
|
|
106
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormProps } from 'antd/lib/form';
|
|
3
|
-
export interface IProps extends FormProps {
|
|
4
|
-
}
|
|
5
|
-
declare function Form(props: IProps): JSX.Element;
|
|
6
|
-
declare namespace Form {
|
|
7
|
-
var Item: typeof import("antd/lib/form/FormItem").default;
|
|
8
|
-
var List: React.FC<import("antd/lib/form").FormListProps>;
|
|
9
|
-
var ErrorList: typeof import("antd/lib/form/ErrorList").default;
|
|
10
|
-
var useForm: typeof import("antd/lib/form/Form").useForm;
|
|
11
|
-
var Provider: React.FC<import("antd/lib/form/context").FormProviderProps>;
|
|
12
|
-
}
|
|
13
|
-
export default Form;
|