ydb-components-material 0.1.122 → 0.1.124

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.
@@ -104,9 +104,13 @@ var FileItem = function FileItem(_ref) {
104
104
  setNeedOtherSign(otherSign);
105
105
  setIsNeedOtherSign(otherSignature);
106
106
  setIsNeedOtherSeal(otherSeal);
107
- setSignBtnText(otherSign ? '联合签署' : '签署文件');
108
- setReSignBtnText(otherSign ? '重新联合签署' : '重新签署');
109
- }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole]);
107
+ // 按钮文字按 signerInfo 区分场景:
108
+ // 代办 signatureAgentRole/signAgentRole 含 OTHER
109
+ // 本人 signatureSelfRole/signSelfRole 含 OTHER
110
+ var signBtnOtherSign = Object.keys(signerInfo).length ? (signatureAgentRole !== null && signatureAgentRole !== void 0 ? signatureAgentRole : []).includes(OTHER) || (signAgentRole !== null && signAgentRole !== void 0 ? signAgentRole : []).includes(OTHER) : (signatureSelfRole !== null && signatureSelfRole !== void 0 ? signatureSelfRole : []).includes(OTHER) || (signSelfRole !== null && signSelfRole !== void 0 ? signSelfRole : []).includes(OTHER);
111
+ setSignBtnText(signBtnOtherSign ? '联合签署' : '签署文件');
112
+ setReSignBtnText(signBtnOtherSign ? '重新联合签署' : '重新签署');
113
+ }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole, signerInfo]);
110
114
 
111
115
  // 是否展示签署按钮
112
116
  // 大前提: signatureEnable 或签章能力开启
@@ -491,7 +495,7 @@ var FileItem = function FileItem(_ref) {
491
495
  var getRes = function getRes(val) {
492
496
  console.log('val---', val);
493
497
  valChange(val, fileIndex, index, subIndex);
494
- needOtherSign && setShowSignerInfo(true);
498
+ // needOtherSign && setShowSignerInfo(true)
495
499
  };
496
500
 
497
501
  // 获取签章结果
@@ -504,7 +508,7 @@ var FileItem = function FileItem(_ref) {
504
508
  sign();
505
509
  } else {
506
510
  valChange(val, fileIndex, index, subIndex);
507
- needOtherSign && setShowSignerInfo(true);
511
+ // needOtherSign && setShowSignerInfo(true)
508
512
  }
509
513
  };
510
514
  var queryFileLibs = function queryFileLibs() {
@@ -110,9 +110,13 @@ var FileItem = function FileItem(_ref) {
110
110
  setNeedOtherSign(otherSign);
111
111
  setIsNeedOtherSign(otherSignature);
112
112
  setIsNeedOtherSeal(otherSeal);
113
- setSignBtnText(otherSign ? '联合签署' : '签署文件');
114
- setReSignBtnText(otherSign ? '重新联合签署' : '重新签署');
115
- }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole]);
113
+ // 按钮文字按 signerInfo 区分场景:
114
+ // 代办 signatureAgentRole/signAgentRole 含 OTHER
115
+ // 本人 signatureSelfRole/signSelfRole 含 OTHER
116
+ var signBtnOtherSign = Object.keys(signerInfo).length ? (signatureAgentRole !== null && signatureAgentRole !== void 0 ? signatureAgentRole : []).includes(OTHER) || (signAgentRole !== null && signAgentRole !== void 0 ? signAgentRole : []).includes(OTHER) : (signatureSelfRole !== null && signatureSelfRole !== void 0 ? signatureSelfRole : []).includes(OTHER) || (signSelfRole !== null && signSelfRole !== void 0 ? signSelfRole : []).includes(OTHER);
117
+ setSignBtnText(signBtnOtherSign ? '联合签署' : '签署文件');
118
+ setReSignBtnText(signBtnOtherSign ? '重新联合签署' : '重新签署');
119
+ }, [signatureSelfRole, signatureAgentRole, signSelfRole, signAgentRole, signerInfo]);
116
120
 
117
121
  // 是否展示签署按钮
118
122
  // 大前提: signatureEnable 或签章能力开启
@@ -497,7 +501,7 @@ var FileItem = function FileItem(_ref) {
497
501
  var getRes = function getRes(val) {
498
502
  console.log('val---', val);
499
503
  valChange(val, fileIndex, index, subIndex);
500
- needOtherSign && setShowSignerInfo(true);
504
+ // needOtherSign && setShowSignerInfo(true)
501
505
  };
502
506
 
503
507
  // 获取签章结果
@@ -510,7 +514,7 @@ var FileItem = function FileItem(_ref) {
510
514
  sign();
511
515
  } else {
512
516
  valChange(val, fileIndex, index, subIndex);
513
- needOtherSign && setShowSignerInfo(true);
517
+ // needOtherSign && setShowSignerInfo(true)
514
518
  }
515
519
  };
516
520
  var queryFileLibs = function queryFileLibs() {
@@ -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.122';
101
+ version = '0.1.124';
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.122';
106
+ version = '0.1.124';
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.122",
3
+ "version": "0.1.124",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -101,10 +101,10 @@
101
101
  },
102
102
  "componentConfig": {
103
103
  "isComponentLibrary": true,
104
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.122/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.124/build/lowcode/assets-prod.json"
105
105
  },
106
106
  "lcMeta": {
107
107
  "type": "component"
108
108
  },
109
- "homepage": "https://unpkg.com/ydb-components-material@0.1.122/build/index.html"
109
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.124/build/index.html"
110
110
  }