ydb-components-material 0.1.155 → 0.1.157
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.1ce2431a.js → umi.546488d9.js} +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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/index.js +1 -1
- package/es/components/file-list/item.js +12 -12
- package/es/components/file-list/seal.js +17 -2
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/file-list/item.js +12 -12
- package/lib/components/file-list/seal.js +17 -2
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
|
@@ -276,7 +276,7 @@ var FileList = function FileList(_ref) {
|
|
|
276
276
|
key: child.fileList.length
|
|
277
277
|
}, /*#__PURE__*/React.createElement("p", {
|
|
278
278
|
className: "name_level_two"
|
|
279
|
-
}, subIndex + 1, "\u3001", child.materialName), /*#__PURE__*/React.createElement("span", {
|
|
279
|
+
}, subIndex + 1, "\u3001", child.declareMaterialName || child.materialName), /*#__PURE__*/React.createElement("span", {
|
|
280
280
|
className: "required"
|
|
281
281
|
}, "*"), /*#__PURE__*/React.createElement(_Balloon, {
|
|
282
282
|
v2: true,
|
|
@@ -128,17 +128,17 @@ var FileItem = function FileItem(_ref) {
|
|
|
128
128
|
console.log('prerequisite', prerequisite);
|
|
129
129
|
if (!prerequisite) {
|
|
130
130
|
setShowSignBtn(false);
|
|
131
|
-
|
|
131
|
+
return;
|
|
132
132
|
}
|
|
133
133
|
// 会签暂时不上线
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
if (Object.keys(signerInfo).length) {
|
|
135
|
+
// 代办场景
|
|
136
|
+
setShowSignBtn(!((signatureAgentRole !== null && signatureAgentRole !== void 0 ? signatureAgentRole : []).includes(OTHER) || (signAgentRole !== null && signAgentRole !== void 0 ? signAgentRole : []).includes(OTHER)));
|
|
137
|
+
} else {
|
|
138
|
+
console.log('signatureSelfRole---', signatureSelfRole);
|
|
139
|
+
// 本人场景
|
|
140
|
+
setShowSignBtn(!((signatureSelfRole !== null && signatureSelfRole !== void 0 ? signatureSelfRole : []).includes(OTHER) || (signSelfRole !== null && signSelfRole !== void 0 ? signSelfRole : []).includes(OTHER)));
|
|
141
|
+
}
|
|
142
142
|
}, [signatureEnable, signEnable, userInfo, signerInfo, signatureAgentRole, signAgentRole, signatureSelfRole, signSelfRole]);
|
|
143
143
|
var _useState = useState(false),
|
|
144
144
|
isShowMaterialLib = _useState[0],
|
|
@@ -497,7 +497,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
497
497
|
});
|
|
498
498
|
case 2:
|
|
499
499
|
sealList = _context4.sent;
|
|
500
|
-
if (!(userInfo.
|
|
500
|
+
if (!(userInfo.certificateSno && userInfo.certificateSno.substring(0, 2) === '92')) {
|
|
501
501
|
_context4.next = 3;
|
|
502
502
|
break;
|
|
503
503
|
}
|
|
@@ -600,7 +600,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
600
600
|
}
|
|
601
601
|
valChange(val, fileIndex, index, subIndex);
|
|
602
602
|
// invalidHandle()
|
|
603
|
-
needOtherSign && setShowSignerInfo(true)
|
|
603
|
+
// needOtherSign && setShowSignerInfo(true)
|
|
604
604
|
};
|
|
605
605
|
|
|
606
606
|
// 获取签章结果
|
|
@@ -617,7 +617,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
617
617
|
}
|
|
618
618
|
valChange(val, fileIndex, index, subIndex);
|
|
619
619
|
// invalidHandle()
|
|
620
|
-
needOtherSign && setShowSignerInfo(true)
|
|
620
|
+
// needOtherSign && setShowSignerInfo(true)
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
var queryFileLibs = function queryFileLibs() {
|
|
@@ -183,7 +183,22 @@ function SealPage(props) {
|
|
|
183
183
|
timerRef.current = null;
|
|
184
184
|
};
|
|
185
185
|
useEffect(function () {
|
|
186
|
-
|
|
186
|
+
// PC端签批 获取签章结果 (文件地址)
|
|
187
|
+
window.addEventListener('message', function (e) {
|
|
188
|
+
console.log('e-------', e);
|
|
189
|
+
if (e.data.type === 'signal' && e.data.data && e.data.data.length) {
|
|
190
|
+
setHideClose(true);
|
|
191
|
+
console.log('pc端签章结果', e.data.data[0]); // 文件路径
|
|
192
|
+
signFileDown(e.data.data[0]);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
return function () {
|
|
196
|
+
window.removeEventListener('message', function (e) {});
|
|
197
|
+
};
|
|
198
|
+
}, []);
|
|
199
|
+
useEffect(function () {
|
|
200
|
+
// 移动端轮询签章结果
|
|
201
|
+
if (orderId && !isPC) {
|
|
187
202
|
handleClearInterval();
|
|
188
203
|
timerRef.current = setInterval(function () {
|
|
189
204
|
getSignFileFun();
|
|
@@ -192,7 +207,7 @@ function SealPage(props) {
|
|
|
192
207
|
return function () {
|
|
193
208
|
handleClearInterval();
|
|
194
209
|
};
|
|
195
|
-
}, [orderId]);
|
|
210
|
+
}, [orderId, isPC]);
|
|
196
211
|
var handleTouchMove = function handleTouchMove(e) {
|
|
197
212
|
e.preventDefault(); // 只有在 passive: false 时才能调用
|
|
198
213
|
console.log('Touch move');
|
|
@@ -282,7 +282,7 @@ var FileList = function FileList(_ref) {
|
|
|
282
282
|
key: child.fileList.length
|
|
283
283
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
284
284
|
className: "name_level_two"
|
|
285
|
-
}, subIndex + 1, "\u3001", child.materialName), /*#__PURE__*/_react["default"].createElement("span", {
|
|
285
|
+
}, subIndex + 1, "\u3001", child.declareMaterialName || child.materialName), /*#__PURE__*/_react["default"].createElement("span", {
|
|
286
286
|
className: "required"
|
|
287
287
|
}, "*"), /*#__PURE__*/_react["default"].createElement(_balloon["default"], {
|
|
288
288
|
v2: true,
|
|
@@ -134,17 +134,17 @@ var FileItem = function FileItem(_ref) {
|
|
|
134
134
|
console.log('prerequisite', prerequisite);
|
|
135
135
|
if (!prerequisite) {
|
|
136
136
|
setShowSignBtn(false);
|
|
137
|
-
|
|
137
|
+
return;
|
|
138
138
|
}
|
|
139
139
|
// 会签暂时不上线
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
if (Object.keys(signerInfo).length) {
|
|
141
|
+
// 代办场景
|
|
142
|
+
setShowSignBtn(!((signatureAgentRole !== null && signatureAgentRole !== void 0 ? signatureAgentRole : []).includes(OTHER) || (signAgentRole !== null && signAgentRole !== void 0 ? signAgentRole : []).includes(OTHER)));
|
|
143
|
+
} else {
|
|
144
|
+
console.log('signatureSelfRole---', signatureSelfRole);
|
|
145
|
+
// 本人场景
|
|
146
|
+
setShowSignBtn(!((signatureSelfRole !== null && signatureSelfRole !== void 0 ? signatureSelfRole : []).includes(OTHER) || (signSelfRole !== null && signSelfRole !== void 0 ? signSelfRole : []).includes(OTHER)));
|
|
147
|
+
}
|
|
148
148
|
}, [signatureEnable, signEnable, userInfo, signerInfo, signatureAgentRole, signAgentRole, signatureSelfRole, signSelfRole]);
|
|
149
149
|
var _useState = (0, _react.useState)(false),
|
|
150
150
|
isShowMaterialLib = _useState[0],
|
|
@@ -503,7 +503,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
503
503
|
});
|
|
504
504
|
case 2:
|
|
505
505
|
sealList = _context4.sent;
|
|
506
|
-
if (!(userInfo.
|
|
506
|
+
if (!(userInfo.certificateSno && userInfo.certificateSno.substring(0, 2) === '92')) {
|
|
507
507
|
_context4.next = 3;
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -606,7 +606,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
606
606
|
}
|
|
607
607
|
valChange(val, fileIndex, index, subIndex);
|
|
608
608
|
// invalidHandle()
|
|
609
|
-
needOtherSign && setShowSignerInfo(true)
|
|
609
|
+
// needOtherSign && setShowSignerInfo(true)
|
|
610
610
|
};
|
|
611
611
|
|
|
612
612
|
// 获取签章结果
|
|
@@ -623,7 +623,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
623
623
|
}
|
|
624
624
|
valChange(val, fileIndex, index, subIndex);
|
|
625
625
|
// invalidHandle()
|
|
626
|
-
needOtherSign && setShowSignerInfo(true)
|
|
626
|
+
// needOtherSign && setShowSignerInfo(true)
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
629
|
var queryFileLibs = function queryFileLibs() {
|
|
@@ -189,7 +189,22 @@ function SealPage(props) {
|
|
|
189
189
|
timerRef.current = null;
|
|
190
190
|
};
|
|
191
191
|
(0, _react.useEffect)(function () {
|
|
192
|
-
|
|
192
|
+
// PC端签批 获取签章结果 (文件地址)
|
|
193
|
+
window.addEventListener('message', function (e) {
|
|
194
|
+
console.log('e-------', e);
|
|
195
|
+
if (e.data.type === 'signal' && e.data.data && e.data.data.length) {
|
|
196
|
+
setHideClose(true);
|
|
197
|
+
console.log('pc端签章结果', e.data.data[0]); // 文件路径
|
|
198
|
+
signFileDown(e.data.data[0]);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
return function () {
|
|
202
|
+
window.removeEventListener('message', function (e) {});
|
|
203
|
+
};
|
|
204
|
+
}, []);
|
|
205
|
+
(0, _react.useEffect)(function () {
|
|
206
|
+
// 移动端轮询签章结果
|
|
207
|
+
if (orderId && !isPC) {
|
|
193
208
|
handleClearInterval();
|
|
194
209
|
timerRef.current = setInterval(function () {
|
|
195
210
|
getSignFileFun();
|
|
@@ -198,7 +213,7 @@ function SealPage(props) {
|
|
|
198
213
|
return function () {
|
|
199
214
|
handleClearInterval();
|
|
200
215
|
};
|
|
201
|
-
}, [orderId]);
|
|
216
|
+
}, [orderId, isPC]);
|
|
202
217
|
var handleTouchMove = function handleTouchMove(e) {
|
|
203
218
|
e.preventDefault(); // 只有在 passive: false 时才能调用
|
|
204
219
|
console.log('Touch move');
|
package/lowcode_es/meta.js
CHANGED
|
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
98
98
|
packageName = 'ydb-components-material';
|
|
99
99
|
}
|
|
100
100
|
if (version === void 0) {
|
|
101
|
-
version = '0.1.
|
|
101
|
+
version = '0.1.157';
|
|
102
102
|
}
|
|
103
103
|
if (basicLibraryVersion === void 0) {
|
|
104
104
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
103
103
|
packageName = 'ydb-components-material';
|
|
104
104
|
}
|
|
105
105
|
if (version === void 0) {
|
|
106
|
-
version = '0.1.
|
|
106
|
+
version = '0.1.157';
|
|
107
107
|
}
|
|
108
108
|
if (basicLibraryVersion === void 0) {
|
|
109
109
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.157",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
},
|
|
103
103
|
"componentConfig": {
|
|
104
104
|
"isComponentLibrary": true,
|
|
105
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
105
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.157/build/lowcode/assets-prod.json"
|
|
106
106
|
},
|
|
107
107
|
"lcMeta": {
|
|
108
108
|
"type": "component"
|
|
109
109
|
},
|
|
110
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
110
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.157/build/index.html"
|
|
111
111
|
}
|