ztxkui 4.2.23-9 → 4.2.23-91
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/README.md +57 -57
- package/dist/Demo.js +30 -1
- package/dist/DemoCom/CollapseDemo.js +1 -1
- package/dist/DemoCom/FormDemo.js +56 -12
- package/dist/DemoCom/FormDemo1.d.ts +3 -0
- package/dist/DemoCom/FormDemo1.js +95 -0
- package/dist/DemoCom/PrintContainerDemo.js +46 -119
- package/dist/DemoCom/SinaturesDemo.js +5 -1
- package/dist/DemoCom/TableDemo1.js +5 -0
- package/dist/DemoCom/TestDemo.d.ts +3 -0
- package/dist/DemoCom/TestDemo.js +17 -0
- package/dist/DemoCom/diaobodan.d.ts +3 -0
- package/dist/DemoCom/diaobodan.js +310 -0
- package/dist/DemoCom/tidan.d.ts +5 -0
- package/dist/DemoCom/tidan.js +154 -0
- package/dist/TableDemo/BasicTable.js +12 -1
- package/dist/TableDemo/EditableTable.d.ts +1 -0
- package/dist/TableDemo/EditableTable.js +87 -41
- package/dist/TableDemo/ElseTable.d.ts +9 -0
- package/dist/TableDemo/ElseTable.js +58 -0
- package/dist/TableDemo/ModalTable.js +28 -31
- package/dist/TableDemo/VirtualTable.d.ts +9 -0
- package/dist/TableDemo/VirtualTable.js +127 -0
- package/dist/TableDemo/data.d.ts +42 -1
- package/dist/TableDemo/data.js +142 -2
- package/dist/TableDemo/index.js +4 -0
- package/dist/UI/Basic/index.d.ts +2 -0
- package/dist/UI/Basic/index.js +75 -0
- package/dist/UI/Form/index.js +138 -21
- package/dist/UI/Modal/hooks.d.ts +15 -0
- package/dist/UI/Modal/hooks.js +172 -0
- package/dist/UI/Modal/index.d.ts +3 -0
- package/dist/UI/Modal/index.js +46 -0
- package/dist/UI/OCR/index.d.ts +2 -0
- package/dist/UI/OCR/index.js +34 -0
- package/dist/UI/Table/CheckModal.d.ts +9 -0
- package/dist/UI/Table/CheckModal.js +28 -0
- package/dist/UI/Table/DefaultTable.js +71 -8
- package/dist/UI/Table/EditTable.js +100 -10
- package/dist/UI/Table/data.d.ts +6 -1
- package/dist/UI/Table/data.js +3 -2
- package/dist/UI/Table/hooks.d.ts +20 -0
- package/dist/UI/Table/hooks.js +48 -0
- package/dist/UI/index.js +13 -1
- package/dist/components/Collapse/collapse.d.ts +1 -0
- package/dist/components/Collapse/collapse.js +2 -2
- package/dist/components/EnhanceSelect/index.d.ts +11 -2
- package/dist/components/EnhanceSelect/index.js +97 -69
- package/dist/components/Form/form.js +32 -2
- package/dist/components/Input/input.d.ts +4 -0
- package/dist/components/Input/input.js +57 -20
- package/dist/components/InputNumber/input-number.d.ts +4 -0
- package/dist/components/InputNumber/input-number.js +43 -4
- package/dist/components/Modal/modal.d.ts +1 -0
- package/dist/components/Modal/modal.js +43 -3
- package/dist/components/OCR/Camera/Container.d.ts +4 -0
- package/dist/components/OCR/Camera/Container.js +40 -0
- package/dist/components/OCR/Camera/Item.d.ts +7 -0
- package/dist/components/OCR/Camera/Item.js +10 -0
- package/dist/components/OCR/Camera/camera.d.ts +61 -0
- package/dist/components/OCR/Camera/camera.js +166 -0
- package/dist/components/OCR/Camera/cameraUtils.d.ts +10 -0
- package/dist/components/OCR/Camera/cameraUtils.js +109 -0
- package/dist/components/OCR/Camera/constants.d.ts +3 -0
- package/dist/components/OCR/Camera/constants.js +3 -0
- package/dist/components/OCR/Camera/hooks.d.ts +20 -0
- package/dist/components/OCR/Camera/hooks.js +129 -0
- package/dist/components/OCR/Camera/index.d.ts +10 -0
- package/dist/components/OCR/Camera/index.js +28 -0
- package/dist/components/OCR/Camera/wsCamera.d.ts +22 -0
- package/dist/components/OCR/Camera/wsCamera.js +456 -0
- package/dist/components/OCR/CanvasCom.d.ts +7 -0
- package/dist/components/OCR/CanvasCom.js +22 -0
- package/dist/components/OCR/LoadPicture.d.ts +11 -0
- package/dist/components/OCR/LoadPicture.js +56 -0
- package/dist/components/OCR/SelectTemplate.d.ts +9 -0
- package/dist/components/OCR/SelectTemplate.js +15 -0
- package/dist/components/OCR/SettingCom.d.ts +8 -0
- package/dist/components/OCR/SettingCom.js +38 -0
- package/dist/components/OCR/constants.d.ts +1 -0
- package/dist/components/OCR/constants.js +2 -0
- package/dist/components/OCR/data.d.ts +6 -0
- package/dist/components/OCR/data.js +596 -0
- package/dist/components/OCR/hooks.d.ts +21 -0
- package/dist/components/OCR/hooks.js +270 -0
- package/dist/components/OCR/index.d.ts +6 -0
- package/dist/components/OCR/index.js +35 -0
- package/dist/components/OCR/selectTemplateHooks.d.ts +9 -0
- package/dist/components/OCR/selectTemplateHooks.js +69 -0
- package/dist/components/OCR/settingHooks.d.ts +5 -0
- package/dist/components/OCR/settingHooks.js +37 -0
- package/dist/components/OCR/utils.d.ts +6 -0
- package/dist/components/OCR/utils.js +153 -0
- package/dist/components/PrintContainer/handle.js +117 -47
- package/dist/components/PrintContainer/print-container.d.ts +8 -0
- package/dist/components/PrintContainer/print-container.js +320 -349
- package/dist/components/PrintContainer/sealHooks.d.ts +19 -0
- package/dist/components/PrintContainer/sealHooks.js +215 -0
- package/dist/components/PrintContainer/service.d.ts +9 -0
- package/dist/components/PrintContainer/service.js +69 -2
- package/dist/components/PrintContainer/useAboutExport.d.ts +7 -0
- package/dist/components/PrintContainer/useAboutExport.js +134 -0
- package/dist/components/PrintContainer/useFont.d.ts +5 -0
- package/dist/components/PrintContainer/useFont.js +74 -0
- package/dist/components/PrintContainer/utils.js +5 -5
- package/dist/components/ProForm/index.js +58 -5
- package/dist/components/ProForm/interface.d.ts +59 -2
- package/dist/components/ProForm/item.d.ts +13 -0
- package/dist/components/ProForm/item.js +173 -0
- package/dist/components/ProForm/items.js +19 -119
- package/dist/components/ProModal/ModalForm.d.ts +8 -0
- package/dist/components/ProModal/ModalForm.js +32 -0
- package/dist/components/ProModal/ModalTable.d.ts +8 -0
- package/dist/components/ProModal/ModalTable.js +32 -0
- package/dist/components/ProModal/hooks.d.ts +33 -0
- package/dist/components/ProModal/hooks.js +193 -0
- package/dist/components/ProModal/index.d.ts +17 -0
- package/dist/components/ProModal/index.js +80 -0
- package/dist/components/ProModal/interface.d.ts +47 -0
- package/dist/components/ProTable/hooks.d.ts +13 -3
- package/dist/components/ProTable/hooks.js +120 -26
- package/dist/components/ProTable/index.js +17 -6
- package/dist/components/ProTable/interface.d.ts +24 -4
- package/dist/components/Table/constants.d.ts +2 -0
- package/dist/components/Table/constants.js +2 -0
- package/dist/components/Table/hooks/useColumns.d.ts +12 -4
- package/dist/components/Table/hooks/useColumns.js +349 -188
- package/dist/components/Table/hooks/useDropRef.js +2 -1
- package/dist/components/Table/hooks/useInnerPagination.js +1 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/table-adddel-column.d.ts +2 -1
- package/dist/components/Table/table-adddel-column.js +5 -3
- package/dist/components/Table/table-dynamic.js +63 -5
- package/dist/components/Table/table-enhance-cell.d.ts +6 -3
- package/dist/components/Table/table-enhance-cell.js +190 -109
- package/dist/components/Table/table-enhance-row.d.ts +4 -4
- package/dist/components/Table/table-enhance-row.js +10 -11
- package/dist/components/Table/table-headTooltip.d.ts +6 -0
- package/dist/components/Table/table-headTooltip.js +13 -0
- package/dist/components/Table/table-resizable-title.d.ts +4 -5
- package/dist/components/Table/table-resizable-title.js +31 -6
- package/dist/components/Table/table-sort.d.ts +10 -0
- package/dist/components/Table/table-sort.js +64 -0
- package/dist/components/Table/table.d.ts +3 -0
- package/dist/components/Table/table.js +322 -173
- package/dist/components/Table/utils/getSummaryData.js +2 -1
- package/dist/components/Table/utils/shallowEqual.d.ts +2 -0
- package/dist/components/Table/utils/shallowEqual.js +34 -0
- package/dist/components/Table/utils/validate.js +0 -3
- package/dist/components/Tabs/DraggableTabNode.d.ts +7 -0
- package/dist/components/Tabs/DraggableTabNode.js +33 -0
- package/dist/components/Tabs/hooks.d.ts +3 -0
- package/dist/components/Tabs/hooks.js +59 -0
- package/dist/components/Tabs/tabs.d.ts +3 -0
- package/dist/components/Tabs/tabs.js +8 -2
- package/dist/components/Upload/upload.js +6 -1
- package/dist/components/basic/message.js +7 -6
- package/dist/components/business/Common/UserForgetPassword/index.js +16 -6
- package/dist/components/business/Common/UserPassword/index.js +17 -7
- package/dist/components/business/Container/operation-middle.js +1 -1
- package/dist/components/business/Footer/index.d.ts +2 -0
- package/dist/components/business/Footer/index.js +21 -7
- package/dist/components/business/SearchContainer/hooks/useDynamic.js +130 -16
- package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
- package/dist/components/business/SearchContainer/hooks/useToggle.js +11 -8
- package/dist/components/business/SearchContainer/search-container.d.ts +6 -0
- package/dist/components/business/SearchContainer/search-container.js +8 -2
- package/dist/components/business/SearchContainer/search-item.js +13 -1
- package/dist/components/business/SearchContainer/search-left.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-left.js +5 -5
- package/dist/components/business/SearchContainer/search-right.d.ts +2 -0
- package/dist/components/business/SearchContainer/search-right.js +56 -5
- package/dist/components/business/Signatures/components/DetailTable.d.ts +2 -0
- package/dist/components/business/Signatures/components/DetailTable.js +19 -10
- package/dist/components/business/Signatures/components/QunjSeal.js +4 -3
- package/dist/components/business/Signatures/components/SealCheckbox.js +1 -0
- package/dist/components/business/Signatures/index.js +67 -46
- package/dist/components/business/Signatures/props.d.ts +8 -0
- package/dist/components/utils/isEqual.d.ts +2 -0
- package/dist/components/utils/isEqual.js +43 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/hooks/useFormatter.js +34 -2
- package/dist/index.css +135 -8
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/package.json +9 -3
- package/dist/UI/Table/ProEditTable/hooks.d.ts +0 -18
- package/dist/UI/Table/ProEditTable/hooks.js +0 -178
- package/dist/UI/Table/ProEditTable/index.d.ts +0 -8
- package/dist/UI/Table/ProEditTable/index.js +0 -67
- package/dist/UI/Table/ProEditTable/interface.d.ts +0 -31
- /package/dist/{UI/Table/ProEditTable → components/ProModal}/interface.js +0 -0
package/README.md
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
# 前端ui库
|
|
2
|
-
|
|
3
|
-
## 关于 typescript 相关配置说明
|
|
4
|
-
|
|
5
|
-
_[tsconfig.json](https://www.tslang.cn/docs/handbook/tsconfig-json.html) 如果一个目录下存在一个 tsconfig.json 文件,那么它意味着这个目录是 TypeScript 项目的根目录。tsconfig.json 文件中指定了用来编译这个项目的根文件和编译选现_
|
|
6
|
-
|
|
7
|
-
- compilerOptions 可以忽略,如果忽略 会使用默认值
|
|
8
|
-
- outDir 指定的目录下的文件永远会被编译器排除,除非使用 files 包含
|
|
9
|
-
- typeRoots 默认所有可见的 @types 包会在编译过程中被包含进来,如果指定了这个配置 只有他下面的包才会被包含进来
|
|
10
|
-
|
|
11
|
-
* files 指定一个包含相对或绝对文件路径的列表,优先级最高
|
|
12
|
-
* include 需要编译的文件 优先级最低
|
|
13
|
-
* exclude 不需要编译的文件 优先级中等
|
|
14
|
-
* extends 继承配置 继承的文件会覆盖源文件
|
|
15
|
-
|
|
16
|
-
_[eslint](https://eslint.bootcss.com/docs/user-guide/getting-started)ESLint 是在 ECMAScript/JavaScript 代码中识别和报告模式匹配的工具,它的目标是保证代码的一致性和避免错误_
|
|
17
|
-
|
|
18
|
-
- parser 解析器(eslint 默认使用 Espree 作为其解析器)
|
|
19
|
-
- parserOptions 解析器配置选项
|
|
20
|
-
- env 和 globals 环境和全局变量
|
|
21
|
-
|
|
22
|
-
* rules 规则(off 或 0,关闭规则;warn 或 1,开启规则;error 或 2,开启规则,并会出错阻止代码运行)
|
|
23
|
-
- semi 是否使用分号(当前不使用 错误级别 1)
|
|
24
|
-
- no-trailing-spaces 禁止行尾空格
|
|
25
|
-
- array-bracket-spacing 强制数组括号内的空格一致
|
|
26
|
-
- operator-linebreak 强制操作符使用一致的换行符
|
|
27
|
-
- function-paren-newline 强制函数括号内使用一致的换行
|
|
28
|
-
* no-magic-numbers 禁止使用魔术数字
|
|
29
|
-
- ignoreArrayIndexes 数字可否作为数组的索引
|
|
30
|
-
- block-spacing 禁止或强制在代码块中开括号前和闭括号后有空格
|
|
31
|
-
- brace-style 大括号风格要求
|
|
32
|
-
- no-multiple-empty-lines 最大换行数
|
|
33
|
-
- object-curly-spacing 强制在花括号中使用一致的空格
|
|
34
|
-
* comma-spacing 强制在逗号周围使用空格
|
|
35
|
-
- before false 禁止逗号前使用空格
|
|
36
|
-
- after true 要求逗号后使用一个或多个空格
|
|
37
|
-
* keyword-spacing 强制关键字周围空格的一致性
|
|
38
|
-
- before true (默认) 要求在关键字之前至少有一个空格
|
|
39
|
-
- after true (默认) 要求在关键字之后至少有一个空格
|
|
40
|
-
* comma-style 逗号风格
|
|
41
|
-
- last (默认) 要求逗号放在数组元素、对象属性或变量声明之后,且在同一行
|
|
42
|
-
- no-multi-spaces 禁止出现多个空格
|
|
43
|
-
|
|
44
|
-
- plugins 插件(插件可以提供处理器 配置在 processor 中 通过 pluginName/parserName)
|
|
45
|
-
- overrides 为特定类型的文件指定处理器,请使用 overrides 和 processor 的组合
|
|
46
|
-
- extends 拓展 一个配置文件可以被基础配置中的已启用的规则继承
|
|
47
|
-
- settings 提供给每一个将被执行的规则
|
|
48
|
-
- root 如果为 true 则项目中的 eslint 规则 在根目录中找
|
|
49
|
-
|
|
50
|
-
## 本地调试
|
|
51
|
-
|
|
52
|
-
```json
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"react": ">=16.9.0",
|
|
55
|
-
"react-dom": ">=16.9.0"
|
|
56
|
-
}
|
|
57
|
-
```
|
|
1
|
+
# 前端ui库
|
|
2
|
+
|
|
3
|
+
## 关于 typescript 相关配置说明
|
|
4
|
+
|
|
5
|
+
_[tsconfig.json](https://www.tslang.cn/docs/handbook/tsconfig-json.html) 如果一个目录下存在一个 tsconfig.json 文件,那么它意味着这个目录是 TypeScript 项目的根目录。tsconfig.json 文件中指定了用来编译这个项目的根文件和编译选现_
|
|
6
|
+
|
|
7
|
+
- compilerOptions 可以忽略,如果忽略 会使用默认值
|
|
8
|
+
- outDir 指定的目录下的文件永远会被编译器排除,除非使用 files 包含
|
|
9
|
+
- typeRoots 默认所有可见的 @types 包会在编译过程中被包含进来,如果指定了这个配置 只有他下面的包才会被包含进来
|
|
10
|
+
|
|
11
|
+
* files 指定一个包含相对或绝对文件路径的列表,优先级最高
|
|
12
|
+
* include 需要编译的文件 优先级最低
|
|
13
|
+
* exclude 不需要编译的文件 优先级中等
|
|
14
|
+
* extends 继承配置 继承的文件会覆盖源文件
|
|
15
|
+
|
|
16
|
+
_[eslint](https://eslint.bootcss.com/docs/user-guide/getting-started)ESLint 是在 ECMAScript/JavaScript 代码中识别和报告模式匹配的工具,它的目标是保证代码的一致性和避免错误_
|
|
17
|
+
|
|
18
|
+
- parser 解析器(eslint 默认使用 Espree 作为其解析器)
|
|
19
|
+
- parserOptions 解析器配置选项
|
|
20
|
+
- env 和 globals 环境和全局变量
|
|
21
|
+
|
|
22
|
+
* rules 规则(off 或 0,关闭规则;warn 或 1,开启规则;error 或 2,开启规则,并会出错阻止代码运行)
|
|
23
|
+
- semi 是否使用分号(当前不使用 错误级别 1)
|
|
24
|
+
- no-trailing-spaces 禁止行尾空格
|
|
25
|
+
- array-bracket-spacing 强制数组括号内的空格一致
|
|
26
|
+
- operator-linebreak 强制操作符使用一致的换行符
|
|
27
|
+
- function-paren-newline 强制函数括号内使用一致的换行
|
|
28
|
+
* no-magic-numbers 禁止使用魔术数字
|
|
29
|
+
- ignoreArrayIndexes 数字可否作为数组的索引
|
|
30
|
+
- block-spacing 禁止或强制在代码块中开括号前和闭括号后有空格
|
|
31
|
+
- brace-style 大括号风格要求
|
|
32
|
+
- no-multiple-empty-lines 最大换行数
|
|
33
|
+
- object-curly-spacing 强制在花括号中使用一致的空格
|
|
34
|
+
* comma-spacing 强制在逗号周围使用空格
|
|
35
|
+
- before false 禁止逗号前使用空格
|
|
36
|
+
- after true 要求逗号后使用一个或多个空格
|
|
37
|
+
* keyword-spacing 强制关键字周围空格的一致性
|
|
38
|
+
- before true (默认) 要求在关键字之前至少有一个空格
|
|
39
|
+
- after true (默认) 要求在关键字之后至少有一个空格
|
|
40
|
+
* comma-style 逗号风格
|
|
41
|
+
- last (默认) 要求逗号放在数组元素、对象属性或变量声明之后,且在同一行
|
|
42
|
+
- no-multi-spaces 禁止出现多个空格
|
|
43
|
+
|
|
44
|
+
- plugins 插件(插件可以提供处理器 配置在 processor 中 通过 pluginName/parserName)
|
|
45
|
+
- overrides 为特定类型的文件指定处理器,请使用 overrides 和 processor 的组合
|
|
46
|
+
- extends 拓展 一个配置文件可以被基础配置中的已启用的规则继承
|
|
47
|
+
- settings 提供给每一个将被执行的规则
|
|
48
|
+
- root 如果为 true 则项目中的 eslint 规则 在根目录中找
|
|
49
|
+
|
|
50
|
+
## 本地调试
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"react": ">=16.9.0",
|
|
55
|
+
"react-dom": ">=16.9.0"
|
|
56
|
+
}
|
|
57
|
+
```
|
package/dist/Demo.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import EnhanceSelect from 'components/EnhanceSelect';
|
|
2
|
+
import { Button } from './';
|
|
2
3
|
import { useEffect, useState } from 'react';
|
|
3
4
|
import { stringify } from 'qs';
|
|
4
5
|
import { Link } from 'react-router-dom';
|
|
@@ -63,8 +64,14 @@ function Demo() {
|
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
66
|
}, []);
|
|
67
|
+
var _j = useState(1), num = _j[0], setNum = _j[1];
|
|
66
68
|
return (React.createElement("div", { style: { height: 2000 } },
|
|
67
69
|
React.createElement(Link, { to: "/test" }, "test"),
|
|
70
|
+
React.createElement("div", { onClick: function () {
|
|
71
|
+
setNum(num + 1);
|
|
72
|
+
} },
|
|
73
|
+
"\u8BBE\u7F6E",
|
|
74
|
+
num),
|
|
68
75
|
React.createElement("div", null,
|
|
69
76
|
React.createElement(EnhanceSelect, { style: selectStyle, list: list, isHandAddItem: true, value: value1, showAll: true, onChange: function (value) {
|
|
70
77
|
console.log(value, typeof value);
|
|
@@ -121,9 +128,31 @@ function Demo() {
|
|
|
121
128
|
// defaultList={defaultList}
|
|
122
129
|
isClickRequest: true }),
|
|
123
130
|
React.createElement("p", null, "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E"),
|
|
124
|
-
React.createElement(EnhanceSelect, { style: selectStyle, placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E",
|
|
131
|
+
React.createElement(EnhanceSelect, { style: selectStyle, placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E",
|
|
132
|
+
// url="http://192.168.0.83:8000/api/zmdms-system/company/list"
|
|
133
|
+
request: request,
|
|
134
|
+
// dataKey="id"
|
|
135
|
+
// titleKey="name"
|
|
136
|
+
// isPaste
|
|
137
|
+
// mode="multiple"
|
|
138
|
+
value: value3, isCatch: true, onChange: function (value, option, fullData) {
|
|
125
139
|
console.log(value);
|
|
126
140
|
setValue3(value);
|
|
141
|
+
}, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET",
|
|
142
|
+
// isCatch
|
|
143
|
+
// request={request}
|
|
144
|
+
transformData: function (res) {
|
|
145
|
+
var dataList = [];
|
|
146
|
+
for (var item in res.data.data) {
|
|
147
|
+
dataList.push({ key: item, name: res.data.data[item] });
|
|
148
|
+
}
|
|
149
|
+
res.data.data = dataList;
|
|
150
|
+
return res;
|
|
151
|
+
}, dropdownRenderBtns: function () {
|
|
152
|
+
return (React.createElement(Button, { onClick: function (e) {
|
|
153
|
+
e.preventDefault();
|
|
154
|
+
console.log(111);
|
|
155
|
+
} }, "\u6D4B\u8BD5"));
|
|
127
156
|
} }),
|
|
128
157
|
React.createElement("p", null, "\u5F02\u6B65\u83B7\u53D6\u6570\u636E"),
|
|
129
158
|
React.createElement("button", { onClick: function () {
|
|
@@ -2,7 +2,7 @@ import Collapse from 'components/Collapse';
|
|
|
2
2
|
import GridList from 'components/business/NewList';
|
|
3
3
|
function CollapseDemo() {
|
|
4
4
|
return (React.createElement("div", { style: { padding: 20 } },
|
|
5
|
-
React.createElement(Collapse, { showBackground: true },
|
|
5
|
+
React.createElement(Collapse, { showBackground: true, collapsible: "icon" },
|
|
6
6
|
React.createElement(Collapse.Panel, { key: "1", header: "\u4E2A\u4EBA\u4FE1\u606F" },
|
|
7
7
|
React.createElement(GridList, null,
|
|
8
8
|
React.createElement(GridList.FormItem, { span: 8, title: "\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5", showDiff: true, isBlod: true }, "\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1"),
|
package/dist/DemoCom/FormDemo.js
CHANGED
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import React, { useState, useMemo, useRef } from 'react';
|
|
12
|
+
import React, { useState, useMemo, useRef, useEffect } from 'react';
|
|
13
13
|
import SearchContainer from '../components/business/SearchContainer';
|
|
14
14
|
import Form from '../components/Form';
|
|
15
15
|
import Input from '../components/Input';
|
|
@@ -18,8 +18,23 @@ import DatePicker from '../components/DatePicker';
|
|
|
18
18
|
import Checkbox from '../components/Checkbox';
|
|
19
19
|
import Radio from '../components/Radio';
|
|
20
20
|
import InputNumber from '../components/InputNumber';
|
|
21
|
+
import EnhanceSelect from '../components/EnhanceSelect';
|
|
22
|
+
import { stringify } from 'qs';
|
|
23
|
+
import { token } from '../constants';
|
|
21
24
|
var SearchItem = SearchContainer.SearchItem, SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight;
|
|
22
25
|
var RangePicker = DatePicker.RangePicker;
|
|
26
|
+
function request(options) {
|
|
27
|
+
return fetch(options.url + "?" + stringify(options.params), {
|
|
28
|
+
headers: {
|
|
29
|
+
'Zmdms-Auth': "bearer " + token,
|
|
30
|
+
},
|
|
31
|
+
method: options.method,
|
|
32
|
+
})
|
|
33
|
+
.then(function (response) { return response.json(); })
|
|
34
|
+
.then(function (res) {
|
|
35
|
+
return { status: 200, data: res };
|
|
36
|
+
});
|
|
37
|
+
}
|
|
23
38
|
var configInfo = {
|
|
24
39
|
pwNoCopy: {
|
|
25
40
|
isRequired: 1,
|
|
@@ -54,30 +69,44 @@ var getCustomDom = function () {
|
|
|
54
69
|
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
55
70
|
React.createElement(Select, null)),
|
|
56
71
|
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
57
|
-
React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true }))
|
|
72
|
+
React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true })),
|
|
73
|
+
React.createElement(SearchItem, { name: "type6", width: "all", label: "\u4F60\u597D" },
|
|
74
|
+
React.createElement(Input.TextArea, { showCount: {
|
|
75
|
+
formatter: function () { return '111'; },
|
|
76
|
+
}, maxLength: 10 }))));
|
|
58
77
|
};
|
|
59
78
|
var FormDemo = function () {
|
|
60
79
|
var form = Form.useForm()[0];
|
|
61
80
|
var _a = useState('1'), status = _a[0], setStatus = _a[1];
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
81
|
+
var _b = useState({}), formData = _b[0], setFormData = _b[1];
|
|
82
|
+
var _c = useState(1), num = _c[0], setNum = _c[1];
|
|
83
|
+
useEffect(function () {
|
|
84
|
+
form.setFieldsValue(formData);
|
|
85
|
+
}, [formData, form]);
|
|
65
86
|
var configInfoMemo = useMemo(function () {
|
|
66
87
|
return __assign(__assign({}, configInfo), { startTime: __assign(__assign({}, configInfo === null || configInfo === void 0 ? void 0 : configInfo.startTime), { isDisplay: status === '1' ? true : false }) });
|
|
67
88
|
}, [status]);
|
|
68
89
|
var handleRef = useRef(null);
|
|
69
90
|
return (React.createElement(React.Fragment, null,
|
|
70
|
-
React.createElement(Form, { name: "test-list", form: form
|
|
91
|
+
React.createElement(Form, { name: "test-list", form: form, onKeyDown: function (event) {
|
|
92
|
+
if (event.key === 'Enter') {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
event.stopPropagation();
|
|
95
|
+
console.log('提交');
|
|
96
|
+
}
|
|
97
|
+
} },
|
|
71
98
|
React.createElement(SearchContainer, { dark: true },
|
|
72
|
-
React.createElement(SearchLeft, { configInfo: configInfoMemo, isDynamic: true, dynamicStorageKey: "symbol-key-00001", isToggle: true, handleRef: handleRef },
|
|
99
|
+
React.createElement(SearchLeft, { configInfo: configInfoMemo, isDynamic: true, dynamicStorageKey: "symbol-key-00001", isToggle: true, toggleNum: 3, handleRef: handleRef },
|
|
73
100
|
React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", disabled: true, rules: [
|
|
74
101
|
{
|
|
75
102
|
required: true,
|
|
76
103
|
message: '采购基本数据-请选择入库单号',
|
|
77
104
|
},
|
|
78
105
|
] },
|
|
79
|
-
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true,
|
|
80
|
-
|
|
106
|
+
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onBlur: function (e) {
|
|
107
|
+
setFormData(function (preState) {
|
|
108
|
+
return __assign(__assign({}, preState), { pwNo: e.target.value });
|
|
109
|
+
});
|
|
81
110
|
} })),
|
|
82
111
|
React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", dynamicdisabled: "1", rules: [
|
|
83
112
|
{
|
|
@@ -89,6 +118,9 @@ var FormDemo = function () {
|
|
|
89
118
|
React.createElement(SearchItem, { width: "half", name: "status", label: "\u5355\u636E\u72B6\u6001" },
|
|
90
119
|
React.createElement(Select, { onChange: function (value) {
|
|
91
120
|
setStatus(value);
|
|
121
|
+
setFormData(function (preState) {
|
|
122
|
+
return __assign(__assign({}, preState), { status: value });
|
|
123
|
+
});
|
|
92
124
|
} },
|
|
93
125
|
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
94
126
|
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
@@ -101,7 +133,14 @@ var FormDemo = function () {
|
|
|
101
133
|
React.createElement(SearchItem, { name: "companyId", label: "\u516C\u53F8\u540D\u79F0" },
|
|
102
134
|
React.createElement(Select, null)),
|
|
103
135
|
React.createElement(SearchItem, { name: "companyId1", label: "\u516C\u53F8\u540D\u79F01" },
|
|
104
|
-
React.createElement(
|
|
136
|
+
React.createElement(EnhanceSelect, { placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E", request: request, isCatch: true, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET", transformData: function (res) {
|
|
137
|
+
var dataList = [];
|
|
138
|
+
for (var item in res.data.data) {
|
|
139
|
+
dataList.push({ key: item, name: res.data.data[item] });
|
|
140
|
+
}
|
|
141
|
+
res.data.data = dataList;
|
|
142
|
+
return res;
|
|
143
|
+
} })),
|
|
105
144
|
React.createElement(SearchItem, { name: "depId", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择部门名称' }] },
|
|
106
145
|
React.createElement(Select, { allowClear: true },
|
|
107
146
|
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
@@ -134,7 +173,12 @@ var FormDemo = function () {
|
|
|
134
173
|
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
135
174
|
var _a;
|
|
136
175
|
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
137
|
-
console.log(form.getFieldsValue());
|
|
138
|
-
}, onResetHandle: function () { } })))
|
|
176
|
+
console.log(form.getFieldsValue(), formData);
|
|
177
|
+
}, onResetHandle: function () { } }))),
|
|
178
|
+
React.createElement("button", { onClick: function () {
|
|
179
|
+
setNum(num + 1);
|
|
180
|
+
} },
|
|
181
|
+
"\u8BBE\u7F6E",
|
|
182
|
+
num)));
|
|
139
183
|
};
|
|
140
184
|
export default FormDemo;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (_) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import React, { memo, useEffect } from 'react';
|
|
38
|
+
import SearchContainer from '../components/business/SearchContainer';
|
|
39
|
+
import Form from '../components/Form';
|
|
40
|
+
import Input from '../components/Input';
|
|
41
|
+
import EnhanceSelect from 'components/EnhanceSelect';
|
|
42
|
+
var SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight, Item = SearchContainer.SearchItem;
|
|
43
|
+
var options = [
|
|
44
|
+
{
|
|
45
|
+
label: '小金鱼',
|
|
46
|
+
value: '213',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: '周还会',
|
|
50
|
+
value: '333',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
for (var i = 10; i < 1000; i++) {
|
|
54
|
+
options.push({
|
|
55
|
+
label: i.toString(36) + i,
|
|
56
|
+
value: i.toString(36) + i,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
var SearchForm = function () {
|
|
60
|
+
var form = Form.useForm()[0];
|
|
61
|
+
/**
|
|
62
|
+
* 搜索数据
|
|
63
|
+
*/
|
|
64
|
+
function onSearchHandle() {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
+
return __generator(this, function (_a) {
|
|
67
|
+
console.log(form.getFieldsValue());
|
|
68
|
+
return [2 /*return*/];
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 重置表单数据
|
|
74
|
+
*/
|
|
75
|
+
function onResetHandle() {
|
|
76
|
+
form.resetFields();
|
|
77
|
+
}
|
|
78
|
+
useEffect(function () {
|
|
79
|
+
form &&
|
|
80
|
+
form.setFieldsValue({
|
|
81
|
+
type123: 12323,
|
|
82
|
+
});
|
|
83
|
+
}, [form]);
|
|
84
|
+
return (React.createElement(Form, { name: "codeQuery-making", form: form },
|
|
85
|
+
React.createElement(SearchContainer, null,
|
|
86
|
+
React.createElement(SearchLeft, null,
|
|
87
|
+
React.createElement(Item, { name: "type123", label: "\u7F16\u7801\u7C7B\u578B", width: "double", disabled: true, rules: [{ required: true, message: '请填写编码类型' }] },
|
|
88
|
+
React.createElement(Input, null)),
|
|
89
|
+
React.createElement(Item, { name: "name", label: "\u63CF\u8FF0" },
|
|
90
|
+
React.createElement(Input, { allowClear: true })),
|
|
91
|
+
React.createElement(Item, { name: "selcet", label: "\u591A\u9009\u6846" },
|
|
92
|
+
React.createElement(EnhanceSelect, { mode: "multiple", list: options, dataKey: 'value', titleKey: 'label' }))),
|
|
93
|
+
React.createElement(SearchRight, { onSearchHandle: onSearchHandle, onResetHandle: onResetHandle }))));
|
|
94
|
+
};
|
|
95
|
+
export default memo(SearchForm);
|
|
@@ -27,6 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import React, { useEffect, useState } from 'react';
|
|
28
28
|
// redux
|
|
29
29
|
// ztxkui公共组件
|
|
30
|
+
// import { PrintContainer } from '../index';
|
|
30
31
|
import { PrintContainer } from '../index';
|
|
31
32
|
// import Table, { ColumnsType } from 'components/Table';
|
|
32
33
|
// 路由配置
|
|
@@ -34,11 +35,13 @@ import { PrintContainer } from '../index';
|
|
|
34
35
|
// 自定义组件
|
|
35
36
|
// 其他文件
|
|
36
37
|
import axios from 'axios';
|
|
37
|
-
import water from '../assets/img/water.png';
|
|
38
38
|
import { createDownloadUrl } from 'ztxkutils/dist/fileOperation';
|
|
39
39
|
import './print.scss';
|
|
40
40
|
import { token } from '../constants';
|
|
41
|
-
import
|
|
41
|
+
// import { Diaobodan2 } from './diaobodan';
|
|
42
|
+
// import { Diaobodan } from './diaobodan';
|
|
43
|
+
// import TestDemo from './TestDemo';
|
|
44
|
+
import Tidan from './tidan';
|
|
42
45
|
function request(options) {
|
|
43
46
|
var headers = options.headers, restOptions = __rest(options, ["headers"]);
|
|
44
47
|
return axios(__assign({ baseURL: options.baseURL ? options.baseURL : 'http://192.168.0.83:8000', url: options.url, headers: __assign({ 'Zmdms-Auth': "bearer " + token }, options.headers), method: options.method, data: options.data, params: options.params }, restOptions));
|
|
@@ -104,122 +107,46 @@ var PrintContainerDemo = function () {
|
|
|
104
107
|
setBase64Img(dataURL);
|
|
105
108
|
};
|
|
106
109
|
}, []);
|
|
107
|
-
return (React.createElement(PrintContainer
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
React.createElement("td", { colSpan: 2 }),
|
|
149
|
-
React.createElement("td", null, "\u4ED3\u5E93\u8054\u7CFB\u4EBA"),
|
|
150
|
-
React.createElement("td", { colSpan: 2 }),
|
|
151
|
-
React.createElement("td", null, "\u4ED3\u5E93\u7535\u8BDD"),
|
|
152
|
-
React.createElement("td", { colSpan: 2 })),
|
|
153
|
-
React.createElement("tr", null,
|
|
154
|
-
React.createElement("td", { rowSpan: 2, colSpan: 4 }, "\u5546\u54C1\u540D\u79F0"),
|
|
155
|
-
React.createElement("td", { width: "100px", rowSpan: 2 }, "\u6279\u6B21\u53F7"),
|
|
156
|
-
React.createElement("td", { colSpan: 2, width: "150px" }, "\u5F00\u5355\u6570\u91CF"),
|
|
157
|
-
React.createElement("td", { colSpan: 2, width: "150px" }, "\u5B9E\u53D1\u6570\u91CF"),
|
|
158
|
-
React.createElement("td", { rowSpan: 2 }, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
159
|
-
React.createElement("td", { width: "56px", rowSpan: 2 }, "\u662F\u5426\u542B\u8FD0\u8F93\u8D39"),
|
|
160
|
-
React.createElement("td", { width: "56px", rowSpan: 2 }, "\u662F\u5426\u542B\u51FA\u5E93\u8D39")),
|
|
161
|
-
React.createElement("tr", null,
|
|
162
|
-
React.createElement("td", { width: "50px" }, "\u4EF6"),
|
|
163
|
-
React.createElement("td", { width: "100px" }, "\u91CD\u91CF(\u5428)"),
|
|
164
|
-
React.createElement("td", { width: "50px" }, "\u4EF6"),
|
|
165
|
-
React.createElement("td", { width: "100px" }, "\u91CD\u91CF(\u5428)")),
|
|
166
|
-
React.createElement("tr", null,
|
|
167
|
-
React.createElement("td", { colSpan: 4, style: { height: '23px' } }),
|
|
168
|
-
React.createElement("td", null),
|
|
169
|
-
React.createElement("td", null),
|
|
170
|
-
React.createElement("td", null),
|
|
171
|
-
React.createElement("td", null),
|
|
172
|
-
React.createElement("td", null),
|
|
173
|
-
React.createElement("td", null),
|
|
174
|
-
React.createElement("td", null),
|
|
175
|
-
React.createElement("td", null)),
|
|
176
|
-
React.createElement("tr", null,
|
|
177
|
-
React.createElement("td", { colSpan: 4, align: "left", style: { padding: '0px 30px' } }, "\u5408\u8BA1"),
|
|
178
|
-
React.createElement("td", null),
|
|
179
|
-
React.createElement("td", null),
|
|
180
|
-
React.createElement("td", null),
|
|
181
|
-
React.createElement("td", null),
|
|
182
|
-
React.createElement("td", null),
|
|
183
|
-
React.createElement("td", null),
|
|
184
|
-
React.createElement("td", null),
|
|
185
|
-
React.createElement("td", null)),
|
|
186
|
-
React.createElement("tr", null,
|
|
187
|
-
React.createElement("td", null, "\u5907\u6CE8"),
|
|
188
|
-
React.createElement("td", { colSpan: 5 }),
|
|
189
|
-
React.createElement("td", null, "\u63D0\u5355\u6709\u6548\u671F"),
|
|
190
|
-
React.createElement("td", { colSpan: 2 }),
|
|
191
|
-
React.createElement("td", null, "\u51FA\u5E93\u65B9\u5F0F"),
|
|
192
|
-
React.createElement("td", { colSpan: 2 })),
|
|
193
|
-
React.createElement("tr", null,
|
|
194
|
-
React.createElement("td", null, "\u63D0\u8D27\u4EBA"),
|
|
195
|
-
React.createElement("td", { colSpan: 2 }),
|
|
196
|
-
React.createElement("td", null, "\u63D0\u8D27\u8F66\u724C"),
|
|
197
|
-
React.createElement("td", { colSpan: 2 }),
|
|
198
|
-
React.createElement("td", null, "\u6253\u5370\u6B21\u6570"),
|
|
199
|
-
React.createElement("td", { colSpan: 2 }),
|
|
200
|
-
React.createElement("td", null, "\u5B58\u8D27\u5355\u4F4D"),
|
|
201
|
-
React.createElement("td", { colSpan: 2 })),
|
|
202
|
-
React.createElement("tr", null,
|
|
203
|
-
React.createElement("td", null, "\u53D1\u8D27\u4EBA"),
|
|
204
|
-
React.createElement("td", { colSpan: 2 }),
|
|
205
|
-
React.createElement("td", null, "\u5236\u5355\u4EBA"),
|
|
206
|
-
React.createElement("td", { colSpan: 2 }),
|
|
207
|
-
React.createElement("td", null, "\u90E8\u95E8"),
|
|
208
|
-
React.createElement("td", { colSpan: 2 }),
|
|
209
|
-
React.createElement("td", null, "\u4E1A\u52A1\u4EE3\u8868"),
|
|
210
|
-
React.createElement("td", { colSpan: 2 }))))),
|
|
211
|
-
React.createElement("div", { className: "pt_bottom" },
|
|
212
|
-
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } },
|
|
213
|
-
React.createElement("div", { className: "ant-col ant-col-17", style: { paddingLeft: 0 } },
|
|
214
|
-
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } }, "1\u3001\u672C\u63D0\u5355\u5728\u4E0A\u8FF0\u6709\u6548\u671F\u5185\u6709\u6548\uFF0C\u8FC7\u671F\u4F5C\u5E9F\uFF1B"),
|
|
215
|
-
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } }, "2\u3001\u672C\u63D0\u8D27\u5355\u4F4D\u7ECF\u8D22\u52A1\u6536\u6B3E\u76D6\u7AE0\u540E\u63D0\u8D27\uFF1B\u6B64\u63D0\u8D27\u5355\u9057\u5931\uFF0C\u63D0\u8D27\u5355\u4F4D\u8D23\u4EFB\u81EA\u8D1F\uFF1B\u51ED\u6B64\u63D0\u8D27\u5355\u4EA4\u4ED8\u8D27\u7269\u540E\uFF0C\u8D27\u7269\u6240\u6709\u98CE\u9669\u8F6C\u79FB\u5230\u63D0\u8D27\u5355\u4F4D\u3002"),
|
|
216
|
-
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } })),
|
|
217
|
-
React.createElement("div", { className: "ant-col ant-col-7", style: { paddingRight: 0 } },
|
|
218
|
-
React.createElement("div", { className: "ant-row", style: { justifyContent: 'flex-end', rowGap: '0px' } },
|
|
219
|
-
React.createElement("span", null, "\u6253\u5370\u65F6\u95F4\uFF1A"),
|
|
220
|
-
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })),
|
|
221
|
-
React.createElement("div", { className: "ant-row", style: { justifyContent: 'flex-end', rowGap: '0px' } },
|
|
222
|
-
React.createElement("span", null, "\u6253\u5370\u4EBA\uFF1A"),
|
|
223
|
-
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })))))))));
|
|
110
|
+
return (React.createElement(PrintContainer
|
|
111
|
+
// isAddExportPage={true}
|
|
112
|
+
// loading={loading}
|
|
113
|
+
, {
|
|
114
|
+
// isAddExportPage={true}
|
|
115
|
+
// loading={loading}
|
|
116
|
+
request: request,
|
|
117
|
+
// deptId="1295909543961944065"
|
|
118
|
+
flowId: "scm_order_contract_cght",
|
|
119
|
+
// fileId="1551733945007517697"
|
|
120
|
+
// // keywordList={keywordList}
|
|
121
|
+
// imgWaterBg={water}
|
|
122
|
+
// isSetPosition={false}
|
|
123
|
+
// showPrintMessage
|
|
124
|
+
showAddSeal: true, apiUrl: "http://192.168.0.83:8000",
|
|
125
|
+
// fileBaseUrl="http://192.168.0.83:88"
|
|
126
|
+
// showAboutExport
|
|
127
|
+
// aboutExportIds="7476520567474487367,7476520567474487365,7476520567474487366"
|
|
128
|
+
// aboutExportZipName="测试zip包"
|
|
129
|
+
// // defaultAddWater
|
|
130
|
+
// onPrintBeforeCallback={() => {
|
|
131
|
+
// setLoading(true);
|
|
132
|
+
// return new Promise((resolve, reject) => {
|
|
133
|
+
// setTimeout(() => {
|
|
134
|
+
// setLoading(false);
|
|
135
|
+
// // 这样子会导致不会执行
|
|
136
|
+
// // reject(false);
|
|
137
|
+
// // 这样子会执行
|
|
138
|
+
// resolve(true);
|
|
139
|
+
// }, 2000);
|
|
140
|
+
// });
|
|
141
|
+
// }}
|
|
142
|
+
isAddExportPage: true, deptId: "1295909543961944065",
|
|
143
|
+
// flowId="scm_print_tdtd"
|
|
144
|
+
loading: loading, showAboutExport: true, isAboutExportSeal: true,
|
|
145
|
+
// aboutExportIds="7476520567474487367,7476520567474487365,7476520567474487366"
|
|
146
|
+
aboutExportZipName: "\u6D4B\u8BD5zip\u5305" },
|
|
147
|
+
React.createElement(Tidan, { title: "1" }),
|
|
148
|
+
React.createElement(Tidan, { title: "2" }),
|
|
149
|
+
React.createElement(Tidan, { title: "3" }),
|
|
150
|
+
React.createElement(Tidan, { title: "4" })));
|
|
224
151
|
};
|
|
225
152
|
export default PrintContainerDemo;
|
|
@@ -137,12 +137,15 @@ var list = [
|
|
|
137
137
|
isCustomerReference: true,
|
|
138
138
|
isWatermark: true,
|
|
139
139
|
isElectronicSeal: true,
|
|
140
|
+
fmsIsElectronicSeal: 1,
|
|
141
|
+
showFmsIsElectronicSeal: 1,
|
|
140
142
|
},
|
|
141
143
|
{
|
|
142
144
|
attachId: '1540242898414874626',
|
|
143
145
|
attachName: '源文件1.jpg',
|
|
144
146
|
templateAttachId: '1540242898414874626',
|
|
145
147
|
templateAttachName: '模板文件1.jpg',
|
|
148
|
+
fmsIsElectronicSeal: 0,
|
|
146
149
|
},
|
|
147
150
|
];
|
|
148
151
|
/** 已选中群杰印章信息 */
|
|
@@ -180,6 +183,7 @@ var SinaturesDemo = function () {
|
|
|
180
183
|
var showAddBtn = 1;
|
|
181
184
|
var params = {
|
|
182
185
|
// cancelDefaultCheckedQj: 1,
|
|
186
|
+
isCheckedEconomic: 0,
|
|
183
187
|
showDeleteBtn: true,
|
|
184
188
|
needQj: 1,
|
|
185
189
|
needDg: 1,
|
|
@@ -197,7 +201,7 @@ var SinaturesDemo = function () {
|
|
|
197
201
|
flowStatus: 1,
|
|
198
202
|
caseId: 'bf21be574ce741398e8f0769b61ac983',
|
|
199
203
|
contractId: '2982140578506318463',
|
|
200
|
-
docAttachMap: {},
|
|
204
|
+
docAttachMap: '{"needYjzrr":"true","7387507164083699859":"3074238059057103781"}',
|
|
201
205
|
checkAttachIdList: [],
|
|
202
206
|
documentIdList: [],
|
|
203
207
|
};
|