ydb-components-material 0.1.93 → 0.1.95
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.9eee7d0d.js → umi.a9f70b86.js} +1 -1
- package/build/docs/{umi.4ce26e30.css → umi.aa947d35.css} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/index.d.ts +2 -0
- package/es/components/file-list/index.js +6 -2
- package/es/components/file-list/item.d.ts +2 -2
- package/es/components/file-list/item.js +16 -13
- package/es/components/file-list/item.scss +23 -0
- package/es/components/file-list/seal.js +11 -1
- package/es/components/file-list/sign.js +7 -1
- package/es/components/file-list-preview/index.d.ts +0 -4
- package/es/components/file-list-preview/index.js +23 -87
- package/es/components/file-list-preview/item.d.ts +0 -3
- package/es/components/file-list-preview/item.js +83 -83
- package/lib/components/file-list/index.d.ts +2 -0
- package/lib/components/file-list/index.js +6 -2
- package/lib/components/file-list/item.d.ts +2 -2
- package/lib/components/file-list/item.js +16 -13
- package/lib/components/file-list/item.scss +23 -0
- package/lib/components/file-list/seal.js +11 -1
- package/lib/components/file-list/sign.js +7 -1
- package/lib/components/file-list-preview/index.d.ts +0 -4
- package/lib/components/file-list-preview/index.js +23 -87
- package/lib/components/file-list-preview/item.d.ts +0 -3
- package/lib/components/file-list-preview/item.js +83 -83
- package/lowcode/file-list/meta.ts +28 -0
- package/lowcode/file-list-preview/meta.ts +1 -54
- package/lowcode_es/file-list/meta.js +26 -0
- package/lowcode_es/file-list-preview/meta.js +1 -51
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/file-list/meta.js +26 -0
- package/lowcode_lib/file-list-preview/meta.js +1 -51
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -38,9 +38,10 @@ var FileList = function FileList(_ref) {
|
|
|
38
38
|
env = _ref.env,
|
|
39
39
|
isPC = _ref.isPC,
|
|
40
40
|
disabled = _ref.disabled,
|
|
41
|
-
isShowLib = _ref.isShowLib,
|
|
42
41
|
style = _ref.style,
|
|
43
42
|
download = _ref.download,
|
|
43
|
+
openLoading = _ref.openLoading,
|
|
44
|
+
closeLoading = _ref.closeLoading,
|
|
44
45
|
valChange = _ref.valChange;
|
|
45
46
|
var convertNumbersToChinese = function convertNumbersToChinese(str) {
|
|
46
47
|
// 定义基础映射关系
|
|
@@ -224,6 +225,8 @@ var FileList = function FileList(_ref) {
|
|
|
224
225
|
disabled: disabled,
|
|
225
226
|
download: download,
|
|
226
227
|
valChange: handleChange,
|
|
228
|
+
openLoading: openLoading,
|
|
229
|
+
closeLoading: closeLoading,
|
|
227
230
|
style: {
|
|
228
231
|
marginBottom: '12px'
|
|
229
232
|
}
|
|
@@ -239,7 +242,6 @@ var FileList = function FileList(_ref) {
|
|
|
239
242
|
fileConfig: item,
|
|
240
243
|
maxFileSize: item.materialSize,
|
|
241
244
|
spec: item.materialSpec,
|
|
242
|
-
isShowLib: isShowLib,
|
|
243
245
|
userInfo: userInfo,
|
|
244
246
|
token: token,
|
|
245
247
|
tokenTY: tokenTY,
|
|
@@ -250,6 +252,8 @@ var FileList = function FileList(_ref) {
|
|
|
250
252
|
disabled: disabled,
|
|
251
253
|
download: download,
|
|
252
254
|
valChange: handleChange,
|
|
255
|
+
openLoading: openLoading,
|
|
256
|
+
closeLoading: closeLoading,
|
|
253
257
|
style: {
|
|
254
258
|
marginBottom: '12px'
|
|
255
259
|
}
|
|
@@ -16,10 +16,10 @@ export interface FileItemProps {
|
|
|
16
16
|
maxFileSize: number;
|
|
17
17
|
spec: string;
|
|
18
18
|
isInValid: boolean;
|
|
19
|
-
isShowLib: boolean;
|
|
20
19
|
userInfo: object;
|
|
21
20
|
style?: object;
|
|
22
|
-
|
|
21
|
+
openLoading: () => void;
|
|
22
|
+
closeLoading: () => void;
|
|
23
23
|
valChange: (value: any, fileIndex: any, index: any, subIndex: any) => void;
|
|
24
24
|
download: (value: any) => void;
|
|
25
25
|
}
|
|
@@ -30,7 +30,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
30
30
|
fileConfig = _ref.fileConfig,
|
|
31
31
|
maxFileSize = _ref.maxFileSize,
|
|
32
32
|
spec = _ref.spec,
|
|
33
|
-
isShowLib = _ref.isShowLib,
|
|
34
33
|
userInfo = _ref.userInfo,
|
|
35
34
|
token = _ref.token,
|
|
36
35
|
tokenTY = _ref.tokenTY,
|
|
@@ -41,7 +40,9 @@ var FileItem = function FileItem(_ref) {
|
|
|
41
40
|
disabled = _ref.disabled,
|
|
42
41
|
style = _ref.style,
|
|
43
42
|
valChange = _ref.valChange,
|
|
44
|
-
download = _ref.download
|
|
43
|
+
download = _ref.download,
|
|
44
|
+
openLoading = _ref.openLoading,
|
|
45
|
+
closeLoading = _ref.closeLoading;
|
|
45
46
|
console.log('fileItem', file, maxFileSize);
|
|
46
47
|
var fileName = file.fileName,
|
|
47
48
|
fileUrl = file.fileUrl,
|
|
@@ -53,7 +54,9 @@ var FileItem = function FileItem(_ref) {
|
|
|
53
54
|
signEnable = fileConfig.signEnable,
|
|
54
55
|
isInValid = fileConfig.isInValid,
|
|
55
56
|
signGuidFileId = fileConfig.signGuidFileId,
|
|
56
|
-
keyPoint = fileConfig.keyPoint
|
|
57
|
+
keyPoint = fileConfig.keyPoint,
|
|
58
|
+
isSmart = fileConfig.isSmart,
|
|
59
|
+
isShareFile = fileConfig.isShareFile;
|
|
57
60
|
var _useState = useState(false),
|
|
58
61
|
isShowMaterialLib = _useState[0],
|
|
59
62
|
setIsShowMaterialLib = _useState[1];
|
|
@@ -128,6 +131,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
128
131
|
var formData = new FormData();
|
|
129
132
|
formData.append('file', fileData);
|
|
130
133
|
formData.append('open', true);
|
|
134
|
+
openLoading();
|
|
131
135
|
fetch(baseUrl + "/declaration/material/file/files/api", {
|
|
132
136
|
method: 'POST',
|
|
133
137
|
body: formData,
|
|
@@ -144,6 +148,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
144
148
|
fileName: fileData.name,
|
|
145
149
|
fileType: fileData.type
|
|
146
150
|
}), fileIndex, index, subIndex);
|
|
151
|
+
closeLoading();
|
|
147
152
|
_Message.notice('上传成功');
|
|
148
153
|
} else {
|
|
149
154
|
_Message.error('上传失败,请重试');
|
|
@@ -157,11 +162,10 @@ var FileItem = function FileItem(_ref) {
|
|
|
157
162
|
// 预览材料
|
|
158
163
|
var preview = /*#__PURE__*/function () {
|
|
159
164
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
160
|
-
var
|
|
165
|
+
var urlRes, res;
|
|
161
166
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
162
167
|
while (1) switch (_context.prev = _context.next) {
|
|
163
168
|
case 0:
|
|
164
|
-
fileUrl = file.fileUrl, fileId = file.fileId;
|
|
165
169
|
if (fileUrl) {
|
|
166
170
|
_context.next = 1;
|
|
167
171
|
break;
|
|
@@ -286,15 +290,13 @@ var FileItem = function FileItem(_ref) {
|
|
|
286
290
|
|
|
287
291
|
// 签章
|
|
288
292
|
var seal = function seal() {
|
|
289
|
-
var fileName = file.fileName,
|
|
290
|
-
fileType = file.fileType;
|
|
291
293
|
console.log('fileType', fileType);
|
|
292
294
|
var type = getFileExtension(fileName);
|
|
293
295
|
if (type !== 'pdf') {
|
|
294
296
|
_Message.notice('只有pdf文件才能使用电子签章');
|
|
295
297
|
return;
|
|
296
298
|
}
|
|
297
|
-
|
|
299
|
+
openLoading();
|
|
298
300
|
setIsShowSealPage(true);
|
|
299
301
|
};
|
|
300
302
|
var signAndSeal = function signAndSeal() {
|
|
@@ -305,6 +307,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
305
307
|
var getRes = function getRes(val) {
|
|
306
308
|
console.log('val---', val);
|
|
307
309
|
valChange(val, fileIndex, index, subIndex);
|
|
310
|
+
closeLoading();
|
|
308
311
|
};
|
|
309
312
|
|
|
310
313
|
// 获取签章结果
|
|
@@ -314,6 +317,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
314
317
|
// 如果还允许签批 就连住一起做了
|
|
315
318
|
if (signatureEnable) {
|
|
316
319
|
sign();
|
|
320
|
+
} else {
|
|
321
|
+
closeLoading();
|
|
317
322
|
}
|
|
318
323
|
};
|
|
319
324
|
var queryFileLibs = function queryFileLibs() {
|
|
@@ -466,8 +471,6 @@ var FileItem = function FileItem(_ref) {
|
|
|
466
471
|
};
|
|
467
472
|
}();
|
|
468
473
|
var onDownload = function onDownload() {
|
|
469
|
-
var fileName = file.fileName,
|
|
470
|
-
fileId = file.fileId;
|
|
471
474
|
if (disabled) return;
|
|
472
475
|
var format = getFileExtension(fileName);
|
|
473
476
|
download({
|
|
@@ -480,13 +483,13 @@ var FileItem = function FileItem(_ref) {
|
|
|
480
483
|
valChange(undefined, fileIndex, index, subIndex);
|
|
481
484
|
};
|
|
482
485
|
useEffect(function () {
|
|
483
|
-
if (userInfo &&
|
|
486
|
+
if (userInfo && tokenTY) {
|
|
484
487
|
console.log('userInfo', tokenTY, userInfo);
|
|
485
488
|
setTimeout(function () {
|
|
486
489
|
queryFileLibs();
|
|
487
490
|
}, 0);
|
|
488
491
|
}
|
|
489
|
-
}, [userInfo,
|
|
492
|
+
}, [userInfo, tokenTY]);
|
|
490
493
|
var extractImageUrls = /*#__PURE__*/function () {
|
|
491
494
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(previewUrl) {
|
|
492
495
|
var response, htmlText, parser, doc, imgElements, srcList;
|
|
@@ -704,7 +707,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
704
707
|
onClick: seal
|
|
705
708
|
}, isSealed ? '重新签章' : '电子签章')) :
|
|
706
709
|
// 展示材料库
|
|
707
|
-
|
|
710
|
+
!isShareFile && !isSmart && !disabled && !!materialLib.length && /*#__PURE__*/React.createElement("div", {
|
|
708
711
|
className: "operation_btn",
|
|
709
712
|
onClick: function onClick() {
|
|
710
713
|
return setIsShowMaterialLib(true);
|
|
@@ -398,6 +398,18 @@
|
|
|
398
398
|
height: 100%;
|
|
399
399
|
z-index: 99;
|
|
400
400
|
background: rgba(0, 0, 0, 0.5);
|
|
401
|
+
|
|
402
|
+
.seal_close {
|
|
403
|
+
position: absolute;
|
|
404
|
+
top: 3px;
|
|
405
|
+
right: 3px;
|
|
406
|
+
width: 30px;
|
|
407
|
+
height: 30px;
|
|
408
|
+
background: #3333337d;
|
|
409
|
+
border-radius: 50%;
|
|
410
|
+
padding: 5px;
|
|
411
|
+
z-index: 999;
|
|
412
|
+
}
|
|
401
413
|
}
|
|
402
414
|
.sign_page {
|
|
403
415
|
position: fixed;
|
|
@@ -407,6 +419,17 @@
|
|
|
407
419
|
height: 100%;
|
|
408
420
|
z-index: 99;
|
|
409
421
|
background: rgba(0, 0, 0, 0.5);
|
|
422
|
+
.sign_close {
|
|
423
|
+
position: absolute;
|
|
424
|
+
top: 3px;
|
|
425
|
+
right: 3px;
|
|
426
|
+
width: 30px;
|
|
427
|
+
height: 30px;
|
|
428
|
+
background: #3333337d;
|
|
429
|
+
border-radius: 50%;
|
|
430
|
+
padding: 5px;
|
|
431
|
+
z-index: 999;
|
|
432
|
+
}
|
|
410
433
|
}
|
|
411
434
|
|
|
412
435
|
}
|
|
@@ -4,6 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React, { useEffect, useState, useRef } from 'react';
|
|
5
5
|
import { initSealPageMethod } from "./sealUtil";
|
|
6
6
|
import { signFileDownApi, getSignFileApi, fileUploadApi } from "../../api";
|
|
7
|
+
import closeIcon from "./icon/close.svg";
|
|
7
8
|
// import { uploadFilePromise, dataURLtoBlob } from './file.js'
|
|
8
9
|
|
|
9
10
|
function SealPage(props) {
|
|
@@ -211,7 +212,16 @@ function SealPage(props) {
|
|
|
211
212
|
return /*#__PURE__*/React.createElement("div", {
|
|
212
213
|
className: "sealPage",
|
|
213
214
|
ref: elementRef
|
|
214
|
-
}, /*#__PURE__*/React.createElement("
|
|
215
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
216
|
+
className: "seal_close",
|
|
217
|
+
src: closeIcon,
|
|
218
|
+
alt: "",
|
|
219
|
+
onClick: function onClick(e) {
|
|
220
|
+
console.log('close');
|
|
221
|
+
e.stopPropagation();
|
|
222
|
+
handleClose();
|
|
223
|
+
}
|
|
224
|
+
}), /*#__PURE__*/React.createElement("iframe", {
|
|
215
225
|
src: srcUrl,
|
|
216
226
|
id: "iframe",
|
|
217
227
|
frameborder: "0",
|
|
@@ -3,6 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import React, { useEffect, useState, useRef } from 'react';
|
|
5
5
|
import { initSignPageMethod, getSignRes } from "./signUtil";
|
|
6
|
+
import closeIcon from "./icon/close.svg";
|
|
6
7
|
function SignPage(props) {
|
|
7
8
|
var userInfo = props.userInfo,
|
|
8
9
|
file = props.file,
|
|
@@ -127,7 +128,12 @@ function SignPage(props) {
|
|
|
127
128
|
}, [srcUrl, documentId, contractId, name]);
|
|
128
129
|
return /*#__PURE__*/React.createElement("div", {
|
|
129
130
|
className: "sign_page"
|
|
130
|
-
}, /*#__PURE__*/React.createElement("
|
|
131
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
132
|
+
className: "sign_close",
|
|
133
|
+
src: closeIcon,
|
|
134
|
+
alt: "",
|
|
135
|
+
onClick: handleClose
|
|
136
|
+
}), /*#__PURE__*/React.createElement("iframe", {
|
|
131
137
|
src: srcUrl,
|
|
132
138
|
id: "iframe",
|
|
133
139
|
frameborder: "0",
|
|
@@ -5,17 +5,13 @@ export interface FileListPreviewProps {
|
|
|
5
5
|
* 列表数据
|
|
6
6
|
*/
|
|
7
7
|
fileList: Array<object>;
|
|
8
|
-
token: string;
|
|
9
8
|
tokenTY: string;
|
|
10
9
|
accessToken: string;
|
|
11
|
-
userInfo: object;
|
|
12
10
|
baseUrl: string;
|
|
13
11
|
env: string;
|
|
14
12
|
isPC?: boolean;
|
|
15
|
-
disabled?: boolean;
|
|
16
13
|
style?: object;
|
|
17
14
|
download: (value: any) => void;
|
|
18
|
-
valChange: (value: any) => void;
|
|
19
15
|
}
|
|
20
16
|
declare const FileListPreview: React.FC<FileListPreviewProps>;
|
|
21
17
|
export default FileListPreview;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _Balloon from "@alifd/next/es/balloon";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
var Tooltip = _Balloon.Tooltip;
|
|
4
3
|
import FileItem from "./item";
|
|
5
4
|
import "./index.scss";
|
|
6
5
|
var MATERIAL_TYPE = {
|
|
@@ -30,18 +29,13 @@ var MATERIAL_FORMAT = {
|
|
|
30
29
|
};
|
|
31
30
|
var FileListPreview = function FileListPreview(_ref) {
|
|
32
31
|
var fileList = _ref.fileList,
|
|
33
|
-
token = _ref.token,
|
|
34
32
|
tokenTY = _ref.tokenTY,
|
|
35
33
|
accessToken = _ref.accessToken,
|
|
36
|
-
userInfo = _ref.userInfo,
|
|
37
34
|
baseUrl = _ref.baseUrl,
|
|
38
35
|
env = _ref.env,
|
|
39
36
|
isPC = _ref.isPC,
|
|
40
|
-
disabled = _ref.disabled,
|
|
41
|
-
isShowLib = _ref.isShowLib,
|
|
42
37
|
style = _ref.style,
|
|
43
|
-
download = _ref.download
|
|
44
|
-
valChange = _ref.valChange;
|
|
38
|
+
download = _ref.download;
|
|
45
39
|
var convertNumbersToChinese = function convertNumbersToChinese(str) {
|
|
46
40
|
// 定义基础映射关系
|
|
47
41
|
var digitMap = {
|
|
@@ -104,58 +98,6 @@ var FileListPreview = function FileListPreview(_ref) {
|
|
|
104
98
|
console.log('text', sizeText);
|
|
105
99
|
return text + "\u9700\u4E0A\u4F20\u3010" + MATERIAL_TYPE[materialType] + "\u3011\uFF0C\u652F\u6301\u3010" + formatText + "\u3011\u683C\u5F0F\u3002" + sizeText;
|
|
106
100
|
};
|
|
107
|
-
var handleChange = function handleChange(value, fileIndex, index, subIndex) {
|
|
108
|
-
console.log('handleChange', value, fileIndex, index, subIndex);
|
|
109
|
-
// 先找到一级目录
|
|
110
|
-
var oneLevelItem = fileList[index];
|
|
111
|
-
// 如果subIndex有值。再去找一下二级目录
|
|
112
|
-
if (subIndex !== undefined) {
|
|
113
|
-
// value为空,说明删除了
|
|
114
|
-
if (!value) {
|
|
115
|
-
oneLevelItem.subMaterials[subIndex].isSmart = false;
|
|
116
|
-
oneLevelItem.subMaterials[subIndex].isShareFile = false;
|
|
117
|
-
// 如果当前文件list中只有一个文件,还得补个空的
|
|
118
|
-
if (oneLevelItem.subMaterials[subIndex].fileList.length === 1) {
|
|
119
|
-
oneLevelItem.subMaterials[subIndex].fileList = [{
|
|
120
|
-
fileId: ''
|
|
121
|
-
}];
|
|
122
|
-
} else {
|
|
123
|
-
oneLevelItem.subMaterials[subIndex].fileList.splice(fileIndex, 1);
|
|
124
|
-
}
|
|
125
|
-
} else {
|
|
126
|
-
// 如果当前这个位置的fileId是空的。说明这次修改是新增
|
|
127
|
-
var isAdd = !oneLevelItem.subMaterials[subIndex].fileList[fileIndex].fileId;
|
|
128
|
-
oneLevelItem.subMaterials[subIndex].fileList[fileIndex] = value;
|
|
129
|
-
if (isAdd && oneLevelItem.subMaterials[subIndex].fileList.length < 10) {
|
|
130
|
-
oneLevelItem.subMaterials[subIndex].fileList.push({
|
|
131
|
-
fileId: ''
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
} else {
|
|
136
|
-
if (!value) {
|
|
137
|
-
oneLevelItem.isSmart = false;
|
|
138
|
-
oneLevelItem.isShareFile = false;
|
|
139
|
-
oneLevelItem.fileList.splice(fileIndex, 1);
|
|
140
|
-
if (oneLevelItem.fileList.length === 0) {
|
|
141
|
-
oneLevelItem.fileList.push({
|
|
142
|
-
fileId: ''
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
} else {
|
|
146
|
-
// 如果当前这个位置的fileId是空的。说明这次修改是新增
|
|
147
|
-
var _isAdd = !oneLevelItem.fileList[fileIndex].fileId;
|
|
148
|
-
oneLevelItem.fileList[fileIndex] = value;
|
|
149
|
-
if (_isAdd && oneLevelItem.fileList.length < 10) {
|
|
150
|
-
oneLevelItem.fileList.push({
|
|
151
|
-
fileId: ''
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
console.log('fileList--------res', fileList);
|
|
157
|
-
valChange(fileList);
|
|
158
|
-
};
|
|
159
101
|
var trigger = function trigger(child) {
|
|
160
102
|
return /*#__PURE__*/React.createElement("div", {
|
|
161
103
|
className: "tag",
|
|
@@ -207,42 +149,36 @@ var FileListPreview = function FileListPreview(_ref) {
|
|
|
207
149
|
align: "t",
|
|
208
150
|
title: "",
|
|
209
151
|
delay: 20
|
|
210
|
-
}, child.isSmart ? '本材料为智能生成材料,系统将根据您填写的信息自动生成申报材料。' : child.isShareFile ? '本材料为共享材料,数据由大数据共享获取,无需用户自行准备。' : '需要用户自行准备申报材料')),
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
token: token,
|
|
216
|
-
tokenTY: tokenTY,
|
|
217
|
-
accessToken: accessToken,
|
|
218
|
-
baseUrl: baseUrl,
|
|
219
|
-
env: env,
|
|
220
|
-
isPC: isPC,
|
|
221
|
-
disabled: disabled,
|
|
222
|
-
download: download,
|
|
223
|
-
style: {
|
|
224
|
-
marginBottom: '12px',
|
|
225
|
-
marginTop: '12px'
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
}));
|
|
229
|
-
})) : /*#__PURE__*/React.createElement(React.Fragment, null, item.fileList.length > 0 && item.fileList[0].fileId && item.fileList.map(function (file, i) {
|
|
230
|
-
return /*#__PURE__*/React.createElement(FileItem, {
|
|
231
|
-
file: file,
|
|
232
|
-
fileConfig: item,
|
|
233
|
-
maxFileSize: item.materialSize,
|
|
234
|
-
token: token,
|
|
152
|
+
}, child.isSmart ? '本材料为智能生成材料,系统将根据您填写的信息自动生成申报材料。' : child.isShareFile ? '本材料为共享材料,数据由大数据共享获取,无需用户自行准备。' : '需要用户自行准备申报材料')), /*#__PURE__*/React.createElement("p", {
|
|
153
|
+
className: "tip"
|
|
154
|
+
}, getTipTextForSubMaterial(item, index, subIndex)), child.fileObj && /*#__PURE__*/React.createElement(FileItem, {
|
|
155
|
+
file: child.fileObj,
|
|
156
|
+
fileConfig: child,
|
|
235
157
|
tokenTY: tokenTY,
|
|
236
158
|
accessToken: accessToken,
|
|
237
159
|
baseUrl: baseUrl,
|
|
238
160
|
env: env,
|
|
239
161
|
isPC: isPC,
|
|
240
|
-
disabled: disabled,
|
|
241
162
|
download: download,
|
|
242
163
|
style: {
|
|
243
|
-
marginBottom: '12px'
|
|
164
|
+
marginBottom: '12px',
|
|
165
|
+
marginTop: '12px'
|
|
244
166
|
}
|
|
245
|
-
});
|
|
167
|
+
}));
|
|
168
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
|
|
169
|
+
className: "tip"
|
|
170
|
+
}, getTipText(item)), item.fileObj && /*#__PURE__*/React.createElement(FileItem, {
|
|
171
|
+
file: item.fileObj,
|
|
172
|
+
fileConfig: item,
|
|
173
|
+
tokenTY: tokenTY,
|
|
174
|
+
accessToken: accessToken,
|
|
175
|
+
baseUrl: baseUrl,
|
|
176
|
+
env: env,
|
|
177
|
+
isPC: isPC,
|
|
178
|
+
download: download,
|
|
179
|
+
style: {
|
|
180
|
+
marginBottom: '12px'
|
|
181
|
+
}
|
|
246
182
|
})));
|
|
247
183
|
}));
|
|
248
184
|
};
|
|
@@ -3,14 +3,11 @@ import './item.scss';
|
|
|
3
3
|
export interface FileItemProps {
|
|
4
4
|
file: object;
|
|
5
5
|
fileConfig: object;
|
|
6
|
-
token: string;
|
|
7
6
|
tokenTY: string;
|
|
8
7
|
accessToken: string;
|
|
9
8
|
baseUrl: string;
|
|
10
9
|
env: string;
|
|
11
10
|
isPC?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
maxFileSize: number;
|
|
14
11
|
style?: object;
|
|
15
12
|
download: (value: any) => void;
|
|
16
13
|
}
|