ydb-components-material 0.1.154 → 0.1.156

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.
@@ -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
- // return;
131
+ return;
132
132
  }
133
133
  // 会签暂时不上线
134
- // if (Object.keys(signerInfo).length) {
135
- // // 代办场景
136
- // setShowSignBtn(!((signatureAgentRole ?? []).includes(OTHER) || (signAgentRole ?? []).includes(OTHER)));
137
- // } else {
138
- // console.log('signatureSelfRole---', signatureSelfRole)
139
- // // 本人场景
140
- // setShowSignBtn(!((signatureSelfRole ?? []).includes(OTHER) || (signSelfRole ?? []).includes(OTHER)));
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],
@@ -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() {
@@ -124,6 +124,7 @@ function SignerInfo(props) {
124
124
  }
125
125
 
126
126
  // 保存签署人信息到草稿中
127
+ console.log('saveSignerInfo is async?', saveSignerInfo.constructor.name, saveSignerInfo.toString().substring(0, 80));
127
128
  _context.next = 6;
128
129
  return saveSignerInfo({
129
130
  list: signerInfoList,
@@ -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
- // return;
137
+ return;
138
138
  }
139
139
  // 会签暂时不上线
140
- // if (Object.keys(signerInfo).length) {
141
- // // 代办场景
142
- // setShowSignBtn(!((signatureAgentRole ?? []).includes(OTHER) || (signAgentRole ?? []).includes(OTHER)));
143
- // } else {
144
- // console.log('signatureSelfRole---', signatureSelfRole)
145
- // // 本人场景
146
- // setShowSignBtn(!((signatureSelfRole ?? []).includes(OTHER) || (signSelfRole ?? []).includes(OTHER)));
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],
@@ -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() {
@@ -130,6 +130,7 @@ function SignerInfo(props) {
130
130
  }
131
131
 
132
132
  // 保存签署人信息到草稿中
133
+ console.log('saveSignerInfo is async?', saveSignerInfo.constructor.name, saveSignerInfo.toString().substring(0, 80));
133
134
  _context.next = 6;
134
135
  return saveSignerInfo({
135
136
  list: signerInfoList,
@@ -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.154';
101
+ version = '0.1.156';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -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.154';
106
+ version = '0.1.156';
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.154",
3
+ "version": "0.1.156",
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.154/build/lowcode/assets-prod.json"
105
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.156/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.154/build/index.html"
110
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.156/build/index.html"
111
111
  }