bxs-tools-ui 3.0.0 → 3.0.2-1

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/index.js CHANGED
@@ -1362,6 +1362,9 @@ function initInsuranceData(insData) {
1362
1362
  case 'baof':
1363
1363
  e.placeholder = e.placeholder || '请输入保费';
1364
1364
  break;
1365
+ case 'payModePremium':
1366
+ e.placeholder = e.placeholder || '请输入期交保费';
1367
+ break;
1365
1368
  }
1366
1369
  if (e.optConf && e.optConf.length && e.optConf[1]) {
1367
1370
  var options = [];
@@ -1418,6 +1421,8 @@ function insuranceDataHandler(insData, productData) {
1418
1421
  });
1419
1422
  var baof = insData.eleOrderList.find(function (e) {
1420
1423
  return e.key === 'baof';
1424
+ }) || insData.eleOrderList.find(function (e) {
1425
+ return e.key === 'payModePremium';
1421
1426
  });
1422
1427
  var plan = insData.eleOrderList.find(function (e) {
1423
1428
  return e.key === 'plan';
@@ -1735,7 +1740,7 @@ function _productDataHandler() {
1735
1740
  if (prodData.multipleInsured) {
1736
1741
  multipleInsuredHandler(personData);
1737
1742
  }
1738
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1743
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1739
1744
  _context.next = 3;
1740
1745
  break;
1741
1746
  }
@@ -39103,6 +39108,8 @@ var BxtProductInfo = (_dec = Component({
39103
39108
  });
39104
39109
  var baof = ins.eleOrderList.find(function (e) {
39105
39110
  return e.key === 'baof';
39111
+ }) || ins.eleOrderList.find(function (e) {
39112
+ return e.key === 'payModePremium';
39106
39113
  });
39107
39114
  var inputResult = ins.eleOrderList.find(function (e) {
39108
39115
  return e.key === 'inputResult';
@@ -39538,7 +39545,7 @@ if (typeof window !== 'undefined' && window.Vue) {
39538
39545
  install(window.Vue);
39539
39546
  }
39540
39547
  const index = {
39541
- version: '3.0.0',
39548
+ version: '3.0.2-1',
39542
39549
  install: install
39543
39550
  };
39544
39551
 
@@ -1387,6 +1387,8 @@ function insuranceDataHandler(insData, productData) {
1387
1387
  });
1388
1388
  var baof = insData.eleOrderList.find(function (e) {
1389
1389
  return e.key === 'baof';
1390
+ }) || insData.eleOrderList.find(function (e) {
1391
+ return e.key === 'payModePremium';
1390
1392
  });
1391
1393
  var plan = insData.eleOrderList.find(function (e) {
1392
1394
  return e.key === 'plan';
@@ -1595,7 +1597,7 @@ function _productDataHandler() {
1595
1597
  if (prodData.multipleInsured) {
1596
1598
  multipleInsuredHandler(personData);
1597
1599
  }
1598
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1600
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1599
1601
  _context.next = 3;
1600
1602
  break;
1601
1603
  }
@@ -1281,6 +1281,8 @@ function insuranceDataHandler(insData, productData) {
1281
1281
  });
1282
1282
  var baof = insData.eleOrderList.find(function (e) {
1283
1283
  return e.key === 'baof';
1284
+ }) || insData.eleOrderList.find(function (e) {
1285
+ return e.key === 'payModePremium';
1284
1286
  });
1285
1287
  var plan = insData.eleOrderList.find(function (e) {
1286
1288
  return e.key === 'plan';
@@ -1570,7 +1572,7 @@ function _productDataHandler() {
1570
1572
  if (prodData.multipleInsured) {
1571
1573
  multipleInsuredHandler(personData);
1572
1574
  }
1573
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1575
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1574
1576
  _context.next = 3;
1575
1577
  break;
1576
1578
  }
@@ -4166,6 +4168,8 @@ var BxtProductInfo = (_dec = Component({
4166
4168
  });
4167
4169
  var baof = ins.eleOrderList.find(function (e) {
4168
4170
  return e.key === 'baof';
4171
+ }) || ins.eleOrderList.find(function (e) {
4172
+ return e.key === 'payModePremium';
4169
4173
  });
4170
4174
  var inputResult = ins.eleOrderList.find(function (e) {
4171
4175
  return e.key === 'inputResult';
package/es/utils/index.js CHANGED
@@ -1250,6 +1250,9 @@ function initInsuranceData(insData) {
1250
1250
  case 'baof':
1251
1251
  e.placeholder = e.placeholder || '请输入保费';
1252
1252
  break;
1253
+ case 'payModePremium':
1254
+ e.placeholder = e.placeholder || '请输入期交保费';
1255
+ break;
1253
1256
  }
1254
1257
  if (e.optConf && e.optConf.length && e.optConf[1]) {
1255
1258
  var options = [];
@@ -1306,6 +1309,8 @@ function insuranceDataHandler(insData, productData) {
1306
1309
  });
1307
1310
  var baof = insData.eleOrderList.find(function (e) {
1308
1311
  return e.key === 'baof';
1312
+ }) || insData.eleOrderList.find(function (e) {
1313
+ return e.key === 'payModePremium';
1309
1314
  });
1310
1315
  var plan = insData.eleOrderList.find(function (e) {
1311
1316
  return e.key === 'plan';
@@ -1623,7 +1628,7 @@ function _productDataHandler() {
1623
1628
  if (prodData.multipleInsured) {
1624
1629
  multipleInsuredHandler(personData);
1625
1630
  }
1626
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1631
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1627
1632
  _context.next = 3;
1628
1633
  break;
1629
1634
  }
package/lib/index.js CHANGED
@@ -1352,6 +1352,9 @@
1352
1352
  case 'baof':
1353
1353
  e.placeholder = e.placeholder || '请输入保费';
1354
1354
  break;
1355
+ case 'payModePremium':
1356
+ e.placeholder = e.placeholder || '请输入期交保费';
1357
+ break;
1355
1358
  }
1356
1359
  if (e.optConf && e.optConf.length && e.optConf[1]) {
1357
1360
  var options = [];
@@ -1408,6 +1411,8 @@
1408
1411
  });
1409
1412
  var baof = insData.eleOrderList.find(function (e) {
1410
1413
  return e.key === 'baof';
1414
+ }) || insData.eleOrderList.find(function (e) {
1415
+ return e.key === 'payModePremium';
1411
1416
  });
1412
1417
  var plan = insData.eleOrderList.find(function (e) {
1413
1418
  return e.key === 'plan';
@@ -1725,7 +1730,7 @@
1725
1730
  if (prodData.multipleInsured) {
1726
1731
  multipleInsuredHandler(personData);
1727
1732
  }
1728
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1733
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1729
1734
  _context.next = 3;
1730
1735
  break;
1731
1736
  }
@@ -39093,6 +39098,8 @@
39093
39098
  });
39094
39099
  var baof = ins.eleOrderList.find(function (e) {
39095
39100
  return e.key === 'baof';
39101
+ }) || ins.eleOrderList.find(function (e) {
39102
+ return e.key === 'payModePremium';
39096
39103
  });
39097
39104
  var inputResult = ins.eleOrderList.find(function (e) {
39098
39105
  return e.key === 'inputResult';
@@ -39528,7 +39535,7 @@
39528
39535
  install(window.Vue);
39529
39536
  }
39530
39537
  var index = {
39531
- version: '3.0.0',
39538
+ version: '3.0.2-1',
39532
39539
  install: install
39533
39540
  };
39534
39541
 
@@ -1386,6 +1386,8 @@
1386
1386
  });
1387
1387
  var baof = insData.eleOrderList.find(function (e) {
1388
1388
  return e.key === 'baof';
1389
+ }) || insData.eleOrderList.find(function (e) {
1390
+ return e.key === 'payModePremium';
1389
1391
  });
1390
1392
  var plan = insData.eleOrderList.find(function (e) {
1391
1393
  return e.key === 'plan';
@@ -1594,7 +1596,7 @@
1594
1596
  if (prodData.multipleInsured) {
1595
1597
  multipleInsuredHandler(personData);
1596
1598
  }
1597
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1599
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1598
1600
  _context.next = 3;
1599
1601
  break;
1600
1602
  }
@@ -1278,6 +1278,8 @@
1278
1278
  });
1279
1279
  var baof = insData.eleOrderList.find(function (e) {
1280
1280
  return e.key === 'baof';
1281
+ }) || insData.eleOrderList.find(function (e) {
1282
+ return e.key === 'payModePremium';
1281
1283
  });
1282
1284
  var plan = insData.eleOrderList.find(function (e) {
1283
1285
  return e.key === 'plan';
@@ -1567,7 +1569,7 @@
1567
1569
  if (prodData.multipleInsured) {
1568
1570
  multipleInsuredHandler(personData);
1569
1571
  }
1570
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1572
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1571
1573
  _context.next = 3;
1572
1574
  break;
1573
1575
  }
@@ -4163,6 +4165,8 @@
4163
4165
  });
4164
4166
  var baof = ins.eleOrderList.find(function (e) {
4165
4167
  return e.key === 'baof';
4168
+ }) || ins.eleOrderList.find(function (e) {
4169
+ return e.key === 'payModePremium';
4166
4170
  });
4167
4171
  var inputResult = ins.eleOrderList.find(function (e) {
4168
4172
  return e.key === 'inputResult';
@@ -1252,6 +1252,9 @@
1252
1252
  case 'baof':
1253
1253
  e.placeholder = e.placeholder || '请输入保费';
1254
1254
  break;
1255
+ case 'payModePremium':
1256
+ e.placeholder = e.placeholder || '请输入期交保费';
1257
+ break;
1255
1258
  }
1256
1259
  if (e.optConf && e.optConf.length && e.optConf[1]) {
1257
1260
  var options = [];
@@ -1308,6 +1311,8 @@
1308
1311
  });
1309
1312
  var baof = insData.eleOrderList.find(function (e) {
1310
1313
  return e.key === 'baof';
1314
+ }) || insData.eleOrderList.find(function (e) {
1315
+ return e.key === 'payModePremium';
1311
1316
  });
1312
1317
  var plan = insData.eleOrderList.find(function (e) {
1313
1318
  return e.key === 'plan';
@@ -1625,7 +1630,7 @@
1625
1630
  if (prodData.multipleInsured) {
1626
1631
  multipleInsuredHandler(personData);
1627
1632
  }
1628
- if (!(prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single')) {
1633
+ if (!(prodData.feeValidateMode === 'single' || prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
1629
1634
  _context.next = 3;
1630
1635
  break;
1631
1636
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.2-1",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -52,6 +52,9 @@ export function initInsuranceData(insData : IProdInsurance) : void {
52
52
  case 'baof':
53
53
  e.placeholder = e.placeholder || '请输入保费';
54
54
  break;
55
+ case 'payModePremium':
56
+ e.placeholder = e.placeholder || '请输入期交保费';
57
+ break;
55
58
  }
56
59
  if (e.optConf && e.optConf.length && e.optConf[1]) {
57
60
  let options : any = [];
@@ -104,7 +107,7 @@ export function insuranceDataHandler(insData : IProdInsurance, productData : IPb
104
107
 
105
108
  const calMethod = insData.eleOrderList.find(e => e.key === 'calMethod');
106
109
  const baoe = insData.eleOrderList.find(e => e.key === 'baoe');
107
- const baof = insData.eleOrderList.find(e => e.key === 'baof');
110
+ const baof = insData.eleOrderList.find(e => e.key === 'baof') || insData.eleOrderList.find(e => e.key === 'payModePremium');
108
111
  const plan = insData.eleOrderList.find(e => e.key === 'plan');
109
112
  // 同时有保额和计划时,若保额被隐藏则显示计划 2019.09.11)
110
113
  if (!calMethod && baoe && plan) {
@@ -61,7 +61,7 @@ export async function productDataHandler(prodData : IPbProduct, prodVerifyData :
61
61
  if (prodData.multipleInsured) {
62
62
  multipleInsuredHandler(personData)
63
63
  }
64
- if (prodData.feeValidateMode === 'single' || prodVerifyData.feeValidateMode === 'single') {
64
+ if (prodData.feeValidateMode === 'single' || (prodVerifyData && prodVerifyData.feeValidateMode === 'single')) {
65
65
  productVerifyData = await getSingleInsurancesVerifyData(prodData, personData, parmas).catch(() => {})
66
66
  } else {
67
67
  productVerifyData = prodVerifyData
package/packages/index.ts CHANGED
@@ -47,6 +47,6 @@ export {
47
47
  }
48
48
 
49
49
  export default {
50
- version: '3.0.0',
50
+ version: '3.0.2-1',
51
51
  install
52
52
  }
@@ -99,7 +99,7 @@ export function setPageDataBaseOnResult(data) {
99
99
  // 下为处理从结果页中导入数值时,保额保费互算问题 2018.12.11
100
100
  let calMethod = ins.eleOrderList.find(e => e.key === 'calMethod');
101
101
  let baoe = ins.eleOrderList.find(e => e.key === 'baoe');
102
- let baof = ins.eleOrderList.find(e => e.key === 'baof');
102
+ let baof = ins.eleOrderList.find(e => e.key === 'baof') || ins.eleOrderList.find(e => e.key === 'payModePremium');
103
103
  if (calMethod && baoe && baof && eInsuranceData.calMethod) {
104
104
  baoe.isHide = eInsuranceData.calMethod !== 'baoe2baof';
105
105
  baof.isHide = eInsuranceData.calMethod === 'baoe2baof';
@@ -276,15 +276,20 @@ export function receiveProductData(inputData, rProductData, options = {}) {
276
276
  if (rProductData.insShowArr) {
277
277
  insShowArr = rProductData.insShowArr;
278
278
  } else if (hasSomeCheckedIns) {
279
- insShowArr = [['险种', '保额', '保费', '交费期']];
279
+ const hasPayModePremium = rProductData.mulInsOrderList.some(ins => 'payModePremium' in ins && (ins.payModePremium || ins.payModePremium === 0));
280
+ insShowArr = [['险种', '保额', '保费', '交费期', hasPayModePremium ? '期交保费' : ''].filter(Boolean)];
280
281
  rProductData.mulInsOrderList.forEach(function(ins) {
281
282
  if (ins.title && !ins.resultFormulaRef) {
282
- insShowArr.push([
283
+ const insResultItem = [
283
284
  ins.name,
284
285
  ins.showPlanDesc ? ins.planDesc : ins.baoeDesc || '-',
285
286
  ins.baofDesc === 0 || ins.baofDesc === '0' || ins.baofDesc ? ins.baof : '-',
286
287
  ins.pPeriodDesc
287
- ]);
288
+ ];
289
+ if (hasPayModePremium) {
290
+ insResultItem.push(ins.payModePremiumDesc || '-');
291
+ }
292
+ insShowArr.push(insResultItem);
288
293
  }
289
294
  });
290
295
  }
@@ -565,7 +565,7 @@ export default class BxtProductInfo extends Vue {
565
565
  }
566
566
 
567
567
  const calMethod = ins.eleOrderList.find(e => e.key === 'calMethod');
568
- const baof = ins.eleOrderList.find(e => e.key === 'baof');
568
+ const baof = ins.eleOrderList.find(e => e.key === 'baof') || ins.eleOrderList.find(e => e.key === 'payModePremium');
569
569
  let inputResult = ins.eleOrderList.find(e => e.key === 'inputResult');
570
570
  const labelName = calMethod ? (calMethod.value === 'baof2baoe' ? '保额' : '保费') : baof ? '保额' : '保费';
571
571
  let value = ins.inputResult === undefined ? null : ins.inputResult;