ydb-components-material 0.1.70 → 0.1.72

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/api.js CHANGED
@@ -10,9 +10,6 @@ export var post = /*#__PURE__*/function () {
10
10
  noJson = false;
11
11
  }
12
12
  console.log('window.env', window.env, window.tokenTY);
13
- if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
14
- url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
15
- }
16
13
  _context.next = 1;
17
14
  return fetch(url, {
18
15
  method: 'POST',
@@ -0,0 +1,290 @@
1
+ {
2
+ "id": "a90d9373-5f63-46ae-abf4-c22f9c7d45bc",
3
+ "pid": "0",
4
+ "groupId": "cee59c5a315b4e708a4dc1d10df513ce",
5
+ "title": "无前置",
6
+ "nodeType": 1,
7
+ "isMultipleChoice": "1",
8
+ "options": [
9
+ {
10
+ "id": "2d0d976d-1d83-44fa-a760-6c7478e5f295",
11
+ "pid": "a90d9373-5f63-46ae-abf4-c22f9c7d45bc",
12
+ "groupId": "855def327d9e4a9f891866d634412557",
13
+ "name": "测试1",
14
+ "nodeType": 2,
15
+ "canBeDeclared": "1",
16
+ "mutuallyExclusive": "1",
17
+ "children": [
18
+ {
19
+ "id": "8ec4db42-53e6-4a63-9ad6-43b313d98e69",
20
+ "pid": "2d0d976d-1d83-44fa-a760-6c7478e5f295",
21
+ "groupId": "d9b460bde56a4a39a1ea7810672c6d2e",
22
+ "title": "问题1",
23
+ "nodeType": 1,
24
+ "isMultipleChoice": "0",
25
+ "options": [
26
+ {
27
+ "id": "92c65e2e-7367-4545-bc3d-666f97c4fffd",
28
+ "pid": "8ec4db42-53e6-4a63-9ad6-43b313d98e69",
29
+ "groupId": "bec0c7182ddf44f68e845f73b163286c",
30
+ "name": "测试添加",
31
+ "nodeType": 2,
32
+ "canBeDeclared": "0",
33
+ "children": [
34
+ {
35
+ "id": "d3b52547-e06b-4dba-94f2-e5f259326bfd",
36
+ "pid": "92c65e2e-7367-4545-bc3d-666f97c4fffd",
37
+ "groupId": "bab95a057b1448c19aa1a320d4b0b967",
38
+ "title": "问题2",
39
+ "nodeType": 1,
40
+ "isMultipleChoice": "1",
41
+ "options": [
42
+ {
43
+ "id": "9636f9d2-62d6-4d7e-92cc-bcc2e9c17386",
44
+ "pid": "d3b52547-e06b-4dba-94f2-e5f259326bfd",
45
+ "groupId": "879bff9f07454fa49f687e1ef115e36f",
46
+ "name": "2",
47
+ "nodeType": 2,
48
+ "canBeDeclared": "1",
49
+ "mutuallyExclusive": "1",
50
+ "materials": []
51
+ },
52
+ {
53
+ "id": "a2172d5c-fd5c-4c19-871d-bfd6a5ef6e79",
54
+ "pid": "d3b52547-e06b-4dba-94f2-e5f259326bfd",
55
+ "groupId": "e547e69411d047959d3c87ea25543032",
56
+ "name": "3",
57
+ "nodeType": 2,
58
+ "canBeDeclared": "1",
59
+ "mutuallyExclusive": "1",
60
+ "materials": []
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "id": "3f62e455-cc6c-4c45-b292-5d2979d18569",
68
+ "pid": "8ec4db42-53e6-4a63-9ad6-43b313d98e69",
69
+ "groupId": "bd2b56e6915f41d3bc3dac1642180063",
70
+ "name": "性别21",
71
+ "nodeType": 2,
72
+ "canBeDeclared": "1",
73
+ "children": [
74
+ {
75
+ "id": "dc851ed8-7f43-4c89-9c9a-6d8ca0ba23e0",
76
+ "pid": "3f62e455-cc6c-4c45-b292-5d2979d18569",
77
+ "groupId": "00f91fd8d24944c5ab335d9797924795",
78
+ "title": "热热",
79
+ "nodeType": 1,
80
+ "isMultipleChoice": "0",
81
+ "options": [
82
+ {
83
+ "id": "4ccebeb3-6273-40e6-bfa2-8f900c4dce36",
84
+ "pid": "dc851ed8-7f43-4c89-9c9a-6d8ca0ba23e0",
85
+ "groupId": "dd102ef1cfac49809e555f649acb2087",
86
+ "name": "1",
87
+ "nodeType": 2,
88
+ "canBeDeclared": "0",
89
+ "mutuallyExclusive": "0",
90
+ "materials": []
91
+ },
92
+ {
93
+ "id": "b33900e8-db59-4ebc-9682-2757a692df50",
94
+ "pid": "dc851ed8-7f43-4c89-9c9a-6d8ca0ba23e0",
95
+ "groupId": "bf397301628d4e4787a872c4f66fc958",
96
+ "name": "2",
97
+ "nodeType": 2,
98
+ "canBeDeclared": "0",
99
+ "mutuallyExclusive": "0",
100
+ "materials": []
101
+ },
102
+ {
103
+ "id": "47c01386-2398-42b6-b7a8-3f6a9e6c50c1",
104
+ "pid": "dc851ed8-7f43-4c89-9c9a-6d8ca0ba23e0",
105
+ "groupId": "237e822d784b4e92aa7719097ec83006",
106
+ "name": "3",
107
+ "nodeType": 2,
108
+ "canBeDeclared": "0",
109
+ "mutuallyExclusive": "0",
110
+ "materials": []
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "id": "b82017d9-96d8-4120-9284-b58d169a9fb1",
118
+ "pid": "8ec4db42-53e6-4a63-9ad6-43b313d98e69",
119
+ "groupId": "f341b9e038f44949a3fef2cd93a06c31",
120
+ "name": "测试添加111",
121
+ "nodeType": 2,
122
+ "canBeDeclared": "0",
123
+ "children": [
124
+ {
125
+ "id": "cb7fd605-f840-4afc-a44b-87f43fa04330",
126
+ "pid": "b82017d9-96d8-4120-9284-b58d169a9fb1",
127
+ "groupId": "bab95a057b1448c19aa1a320d4b0b967",
128
+ "title": "问题2",
129
+ "nodeType": 1,
130
+ "isMultipleChoice": "1",
131
+ "options": [
132
+ {
133
+ "id": "2c6670dd-e462-4546-b6ea-0965ce7b7c76",
134
+ "pid": "cb7fd605-f840-4afc-a44b-87f43fa04330",
135
+ "groupId": "879bff9f07454fa49f687e1ef115e36f",
136
+ "name": "2",
137
+ "nodeType": 2,
138
+ "canBeDeclared": "1",
139
+ "mutuallyExclusive": "1",
140
+ "materials": []
141
+ },
142
+ {
143
+ "id": "b5766f37-58e3-4d15-9ba5-b9d5cb2683cb",
144
+ "pid": "cb7fd605-f840-4afc-a44b-87f43fa04330",
145
+ "groupId": "e547e69411d047959d3c87ea25543032",
146
+ "name": "3",
147
+ "nodeType": 2,
148
+ "canBeDeclared": "1",
149
+ "mutuallyExclusive": "1",
150
+ "materials": []
151
+ }
152
+ ]
153
+ }
154
+ ]
155
+ }
156
+ ]
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "id": "fd8bbaa7-5696-4bf0-adff-3771259e098f",
162
+ "pid": "a90d9373-5f63-46ae-abf4-c22f9c7d45bc",
163
+ "groupId": "4fb591bdc3f4423cb7109ad80d25fc9d",
164
+ "name": "测试2",
165
+ "nodeType": 2,
166
+ "canBeDeclared": "1",
167
+ "mutuallyExclusive": "1",
168
+ "children": [
169
+ {
170
+ "id": "f515da81-38b6-44b8-a49f-ff4790b9944f",
171
+ "pid": "fd8bbaa7-5696-4bf0-adff-3771259e098f",
172
+ "groupId": "d9b460bde56a4a39a1ea7810672c6d2e",
173
+ "title": "问题1",
174
+ "nodeType": 1,
175
+ "isMultipleChoice": "0",
176
+ "options": [
177
+ {
178
+ "id": "dcd0c7ec-cca5-4063-90b8-740be6b1af74",
179
+ "pid": "f515da81-38b6-44b8-a49f-ff4790b9944f",
180
+ "groupId": "bec0c7182ddf44f68e845f73b163286c",
181
+ "name": "测试添加",
182
+ "nodeType": 2,
183
+ "canBeDeclared": "0",
184
+ "children": [
185
+ {
186
+ "id": "8e63c350-dbff-4ee7-ae66-755432ea909b",
187
+ "pid": "dcd0c7ec-cca5-4063-90b8-740be6b1af74",
188
+ "groupId": "4cf74c63f51041c9937445493511d754",
189
+ "title": "问题3",
190
+ "nodeType": 1,
191
+ "isMultipleChoice": "0",
192
+ "options": [
193
+ {
194
+ "id": "e23e4b72-f3c6-433e-b169-30fd4be9e89a",
195
+ "pid": "8e63c350-dbff-4ee7-ae66-755432ea909b",
196
+ "groupId": "2e8a04757bc343f1a367bf5b314818ea",
197
+ "name": "问题3",
198
+ "nodeType": 2,
199
+ "canBeDeclared": "1",
200
+ "materials": []
201
+ }
202
+ ]
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "id": "d345e45a-db01-42e6-b158-62dcb6b504cd",
208
+ "pid": "f515da81-38b6-44b8-a49f-ff4790b9944f",
209
+ "groupId": "bd2b56e6915f41d3bc3dac1642180063",
210
+ "name": "性别21",
211
+ "nodeType": 2,
212
+ "canBeDeclared": "1",
213
+ "children": [
214
+ {
215
+ "id": "2d15efed-43aa-4a4f-a17e-eb1e99857c3e",
216
+ "pid": "d345e45a-db01-42e6-b158-62dcb6b504cd",
217
+ "groupId": "00f91fd8d24944c5ab335d9797924795",
218
+ "title": "热热",
219
+ "nodeType": 1,
220
+ "isMultipleChoice": "0",
221
+ "options": [
222
+ {
223
+ "id": "f26a4bf4-ca14-46ad-86d8-0fa5f6815ea1",
224
+ "pid": "2d15efed-43aa-4a4f-a17e-eb1e99857c3e",
225
+ "groupId": "dd102ef1cfac49809e555f649acb2087",
226
+ "name": "1",
227
+ "nodeType": 2,
228
+ "canBeDeclared": "0",
229
+ "mutuallyExclusive": "0",
230
+ "materials": []
231
+ },
232
+ {
233
+ "id": "370bfa53-8349-41e7-a854-fbf184aa917f",
234
+ "pid": "2d15efed-43aa-4a4f-a17e-eb1e99857c3e",
235
+ "groupId": "bf397301628d4e4787a872c4f66fc958",
236
+ "name": "2",
237
+ "nodeType": 2,
238
+ "canBeDeclared": "0",
239
+ "mutuallyExclusive": "0",
240
+ "materials": []
241
+ },
242
+ {
243
+ "id": "260aa986-aeeb-4839-b221-62d1f67cadf4",
244
+ "pid": "2d15efed-43aa-4a4f-a17e-eb1e99857c3e",
245
+ "groupId": "237e822d784b4e92aa7719097ec83006",
246
+ "name": "3",
247
+ "nodeType": 2,
248
+ "canBeDeclared": "0",
249
+ "mutuallyExclusive": "0",
250
+ "materials": []
251
+ }
252
+ ]
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "id": "84141633-3e77-4a45-9139-14dbda3b129e",
258
+ "pid": "f515da81-38b6-44b8-a49f-ff4790b9944f",
259
+ "groupId": "f341b9e038f44949a3fef2cd93a06c31",
260
+ "name": "测试添加111",
261
+ "nodeType": 2,
262
+ "canBeDeclared": "0",
263
+ "children": [
264
+ {
265
+ "id": "657aed86-bfe2-4551-883b-26aa8a0a3859",
266
+ "pid": "84141633-3e77-4a45-9139-14dbda3b129e",
267
+ "groupId": "01b235b902df4e2aa03f15568d802615",
268
+ "title": "不给发货",
269
+ "nodeType": 1,
270
+ "isMultipleChoice": "0",
271
+ "options": [
272
+ {
273
+ "id": "7a88d912-c2a9-43d1-b978-ad3a18ea0762",
274
+ "pid": "657aed86-bfe2-4551-883b-26aa8a0a3859",
275
+ "groupId": "f8cf29fd60944ecb96f2ab1da3320d5d",
276
+ "name": "不会放过",
277
+ "nodeType": 2,
278
+ "canBeDeclared": "1",
279
+ "materials": []
280
+ }
281
+ ]
282
+ }
283
+ ]
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ }
289
+ ]
290
+ }
@@ -82,35 +82,7 @@ var FileItem = function FileItem(_ref) {
82
82
  var _useState1 = useState(false),
83
83
  isShowMaterialPreview = _useState1[0],
84
84
  setIsShowMaterialPreview = _useState1[1];
85
- var _useState10 = useState([{
86
- "fileId": "1753419199903092737",
87
- "fileName": "javaScript.jpg",
88
- "uploadTime": "2024-02-03 17:09:34",
89
- "type": 0,
90
- "innerFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419199903092737/javaScript.jpg",
91
- "internetFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419199903092737/javaScript.jpg"
92
- }, {
93
- "fileId": "1753419376331853826",
94
- "fileName": "LQ_z-fynmzrs7874917.jpg",
95
- "uploadTime": "2024-02-03 17:09:34",
96
- "type": 0,
97
- "innerFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419376331853826/LQ_z-fynmzrs7874917.jpg",
98
- "internetFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419376331853826/LQ_z-fynmzrs7874917.jpg"
99
- }, {
100
- "fileId": "1753419180202446850",
101
- "fileName": "mayun.jpg",
102
- "uploadTime": "2024-02-03 17:09:34",
103
- "type": 0,
104
- "innerFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419180202446850/mayun.jpg",
105
- "internetFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419180202446850/mayun.jpg"
106
- }, {
107
- "fileId": "1753419356975140866",
108
- "fileName": "find.png",
109
- "uploadTime": "2024-02-03 17:09:33",
110
- "type": 0,
111
- "innerFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419356975140866/find.png",
112
- "internetFileUrl": "https://zwfwpt.sxzwfw.gov.cn/FS//18a78d3d407-true/master/18b4752f107/2024/2/1753419356975140866/find.png"
113
- }]),
85
+ var _useState10 = useState([]),
114
86
  materialLib = _useState10[0],
115
87
  setMaterialLib = _useState10[1];
116
88
  // const [materialLib, setMaterialLib] = useState([]);
@@ -123,10 +95,6 @@ var FileItem = function FileItem(_ref) {
123
95
  var _useState13 = useState(null),
124
96
  checkPointData = _useState13[0],
125
97
  setCheckPointData = _useState13[1];
126
- var showViewImg = function showViewImg(url) {
127
- setIsShowView(true);
128
- setViewImg(url);
129
- };
130
98
  var upload = function upload() {
131
99
  if (disabled) return;
132
100
  var inputEl = document.createElement('input');
@@ -399,7 +367,7 @@ var FileItem = function FileItem(_ref) {
399
367
  className: "upload",
400
368
  src: uploadIcon,
401
369
  alt: ""
402
- }), "\u4E0A\u4F20\u6750\u6599"), isPC && (isSigned || isSealed) && /*#__PURE__*/React.createElement("div", {
370
+ }), "\u4E0A\u4F20\u6750\u6599"), !isPC && (isSigned || isSealed) && /*#__PURE__*/React.createElement("div", {
403
371
  className: "mask"
404
372
  }, /*#__PURE__*/React.createElement("div", {
405
373
  className: "center"
@@ -3,6 +3,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { getBlob, getFileExtension, upload, dataURLtoBlob, uploadFilePromise } from "./file";
4
4
  import { createbycategory, contractSignUrl, signurl, checkSignState, contractFinish, documentDownload } from "../../api";
5
5
  var categoryId = '3354397552669692408';
6
+ // 预发
7
+ var categoryIdRelease = '3291682531601133765'; // 手写签批id
6
8
  var documentId = ''; // 手写签批生成的文件id
7
9
  var contractId = ''; // 合同id
8
10
 
@@ -120,7 +122,7 @@ function _uploadSignFile() {
120
122
  headers: {
121
123
  Authorization: window.token
122
124
  },
123
- action: "\nhttps://zwfwpt.sxzwfw.gov.cn" + (window.env === 'release' ? ':10010' : '') + "/DeclarationAPI/declaration/center/signapproval/api/createbyfile",
125
+ action: "\nhttps://zwfwpt.sxzwfw.gov.cn" + (window.env === 'release' ? ':10010' : '') + "/declaration/center/signapproval/api/createbyfile",
124
126
  // 上传文件的地址
125
127
  onError: function onError(e) {
126
128
  // uni.$u.toast(e.msg || '手写签批上传文件异常');
@@ -147,7 +149,7 @@ function createbycategoryFun(fileName, documentIdVal) {
147
149
  var params = {
148
150
  subject: fileName,
149
151
  documents: [documentIdVal],
150
- categoryId: categoryId,
152
+ categoryId: window.env === 'release' ? categoryIdRelease : categoryId,
151
153
  send: true,
152
154
  tenantName: '山西省行政审批服务管理局'
153
155
  };
package/lib/api.js CHANGED
@@ -15,9 +15,6 @@ var post = exports.post = /*#__PURE__*/function () {
15
15
  noJson = false;
16
16
  }
17
17
  console.log('window.env', window.env, window.tokenTY);
18
- if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
19
- url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
20
- }
21
18
  _context.next = 1;
22
19
  return fetch(url, {
23
20
  method: 'POST',