bxs-tools-ui 1.5.7 → 1.5.8

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.
@@ -1768,6 +1768,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
1768
1768
  if (!(personOrderList && personOrderList.length)) {
1769
1769
  return null;
1770
1770
  }
1771
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
1772
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
1771
1773
  var insuredList = personOrderList
1772
1774
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
1773
1775
  .filter(function (p) {
@@ -1788,8 +1790,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
1788
1790
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
1789
1791
  }, []);
1790
1792
  return getAndCacheInsurancesVerifyData({
1791
- pbId: prodData.isTemp ? null : parmas.planbookId,
1792
- productId: prodData.key,
1793
+ pbId: pbId,
1794
+ productId: productId,
1793
1795
  insuredList: insuredList,
1794
1796
  insuranceIdList: insuranceIdList
1795
1797
  });
@@ -19916,6 +19916,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
19916
19916
  if (!(personOrderList && personOrderList.length)) {
19917
19917
  return null;
19918
19918
  }
19919
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
19920
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
19919
19921
  var insuredList = personOrderList
19920
19922
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
19921
19923
  .filter(function (p) {
@@ -19936,8 +19938,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
19936
19938
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
19937
19939
  }, []);
19938
19940
  return getAndCacheInsurancesVerifyData({
19939
- pbId: prodData.isTemp ? null : parmas.planbookId,
19940
- productId: prodData.key,
19941
+ pbId: pbId,
19942
+ productId: productId,
19941
19943
  insuredList: insuredList,
19942
19944
  insuranceIdList: insuranceIdList
19943
19945
  });
@@ -20179,6 +20179,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
20179
20179
  if (!(personOrderList && personOrderList.length)) {
20180
20180
  return null;
20181
20181
  }
20182
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
20183
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
20182
20184
  var insuredList = personOrderList
20183
20185
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
20184
20186
  .filter(function (p) {
@@ -20199,8 +20201,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
20199
20201
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
20200
20202
  }, []);
20201
20203
  return getAndCacheInsurancesVerifyData({
20202
- pbId: prodData.isTemp ? null : parmas.planbookId,
20203
- productId: prodData.key,
20204
+ pbId: pbId,
20205
+ productId: productId,
20204
20206
  insuredList: insuredList,
20205
20207
  insuranceIdList: insuranceIdList
20206
20208
  });
package/lib/index.js CHANGED
@@ -23241,6 +23241,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
23241
23241
  if (!(personOrderList && personOrderList.length)) {
23242
23242
  return null;
23243
23243
  }
23244
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
23245
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
23244
23246
  var insuredList = personOrderList
23245
23247
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
23246
23248
  .filter(function (p) {
@@ -23261,8 +23263,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
23261
23263
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
23262
23264
  }, []);
23263
23265
  return getAndCacheInsurancesVerifyData({
23264
- pbId: prodData.isTemp ? null : parmas.planbookId,
23265
- productId: prodData.key,
23266
+ pbId: pbId,
23267
+ productId: productId,
23266
23268
  insuredList: insuredList,
23267
23269
  insuranceIdList: insuranceIdList
23268
23270
  });
@@ -20909,6 +20909,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
20909
20909
  if (!(personOrderList && personOrderList.length)) {
20910
20910
  return null;
20911
20911
  }
20912
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
20913
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
20912
20914
  var insuredList = personOrderList
20913
20915
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
20914
20916
  .filter(function (p) {
@@ -20929,8 +20931,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
20929
20931
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
20930
20932
  }, []);
20931
20933
  return getAndCacheInsurancesVerifyData({
20932
- pbId: prodData.isTemp ? null : parmas.planbookId,
20933
- productId: prodData.key,
20934
+ pbId: pbId,
20935
+ productId: productId,
20934
20936
  insuredList: insuredList,
20935
20937
  insuranceIdList: insuranceIdList
20936
20938
  });
@@ -20909,6 +20909,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
20909
20909
  if (!(personOrderList && personOrderList.length)) {
20910
20910
  return null;
20911
20911
  }
20912
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
20913
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
20912
20914
  var insuredList = personOrderList
20913
20915
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
20914
20916
  .filter(function (p) {
@@ -20929,8 +20931,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
20929
20931
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
20930
20932
  }, []);
20931
20933
  return getAndCacheInsurancesVerifyData({
20932
- pbId: prodData.isTemp ? null : parmas.planbookId,
20933
- productId: prodData.key,
20934
+ pbId: pbId,
20935
+ productId: productId,
20934
20936
  insuredList: insuredList,
20935
20937
  insuranceIdList: insuranceIdList
20936
20938
  });
@@ -21666,6 +21666,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
21666
21666
  if (!(personOrderList && personOrderList.length)) {
21667
21667
  return null;
21668
21668
  }
21669
+ var pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId;
21670
+ var productId = prodData.policyType === 'single_insurance' ? null : prodData.key;
21669
21671
  var insuredList = personOrderList
21670
21672
  .filter(function (p) { return ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList; })
21671
21673
  .filter(function (p) {
@@ -21686,8 +21688,8 @@ function getSingleInsurancesVerifyData(prodData, personData, parmas) {
21686
21688
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
21687
21689
  }, []);
21688
21690
  return getAndCacheInsurancesVerifyData({
21689
- pbId: prodData.isTemp ? null : parmas.planbookId,
21690
- productId: prodData.key,
21691
+ pbId: pbId,
21692
+ productId: productId,
21691
21693
  insuredList: insuredList,
21692
21694
  insuranceIdList: insuranceIdList
21693
21695
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -320,7 +320,8 @@ function getSingleInsurancesVerifyData (prodData : IPbProduct, personData : IPbP
320
320
  if (!(personOrderList && personOrderList.length)) {
321
321
  return null
322
322
  }
323
-
323
+ const pbId = prodData.isTemp || (prodData.policyType === 'single_insurance') ? null : parmas.planbookId
324
+ const productId = prodData.policyType === 'single_insurance' ? null : prodData.key
324
325
  const insuredList = personOrderList
325
326
  .filter((p : IPbPerson) => ['insuredInfo', 'insured2Info'].includes(p.key) && p.eleOrderList )
326
327
  .filter((p : IPbPerson) => {
@@ -339,8 +340,8 @@ function getSingleInsurancesVerifyData (prodData : IPbProduct, personData : IPbP
339
340
  return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key)
340
341
  }, []);
341
342
  return getAndCacheInsurancesVerifyData({
342
- pbId: prodData.isTemp ? null : parmas.planbookId,
343
- productId: prodData.key,
343
+ pbId,
344
+ productId,
344
345
  insuredList,
345
346
  insuranceIdList
346
347
  })