bxs-tools-ui 1.2.0-6 → 1.2.0

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.
@@ -217,7 +217,7 @@ footer {
217
217
  }
218
218
  .bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-cell__purpose span:nth-child(2) {
219
219
  display: inline-block;
220
- margin-left: 3px;
220
+ margin-left: 5px;
221
221
  padding: 1px 3px;
222
222
  color: rgba(10, 100, 254, 1);
223
223
  background: rgba(10, 100, 254, 0.1);
@@ -3010,9 +3010,7 @@ module.exports = copyObject;
3010
3010
 
3011
3011
 
3012
3012
  /***/ }),
3013
- /* 36 */,
3014
- /* 37 */,
3015
- /* 38 */
3013
+ /* 36 */
3016
3014
  /***/ (function(module, exports, __webpack_require__) {
3017
3015
 
3018
3016
  var baseClone = __webpack_require__(90);
@@ -3047,6 +3045,8 @@ module.exports = cloneDeep;
3047
3045
 
3048
3046
 
3049
3047
  /***/ }),
3048
+ /* 37 */,
3049
+ /* 38 */,
3050
3050
  /* 39 */
3051
3051
  /***/ (function(module, exports, __webpack_require__) {
3052
3052
 
@@ -6142,8 +6142,8 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
6142
6142
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6143
6143
 
6144
6144
  "use strict";
6145
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5e398c6c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(165);
6146
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5e398c6c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5e398c6c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6145
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3fa35120_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(165);
6146
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3fa35120_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3fa35120_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6147
6147
  /* unused harmony reexport * */
6148
6148
 
6149
6149
 
@@ -6179,7 +6179,7 @@ __webpack_require__.r(__webpack_exports__);
6179
6179
  var defineProperty = __webpack_require__(175);
6180
6180
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
6181
6181
 
6182
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=5e398c6c&
6182
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=3fa35120&
6183
6183
 
6184
6184
 
6185
6185
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -6200,33 +6200,33 @@ var render = function render() {
6200
6200
  staticClass: "bxt-aat-table"
6201
6201
  }, [['addAndTake', 'add', 'take'].includes(_vm.type) ? _c('ul', {
6202
6202
  staticClass: "bxt-aat-bonus"
6203
- }, [_vm._l(['bonus', 'rate'], function (key) {
6204
- return [_vm.initInterestData[key] && _vm.initInterestData[key].opts ? _c('li', {
6205
- key: key
6203
+ }, [_vm._l(_vm.interestOptions, function (item) {
6204
+ return [_c('li', {
6205
+ key: item.key
6206
6206
  }, [_c('header', {
6207
6207
  staticClass: "bxt-aat-bonus-title"
6208
- }, [_vm._v("\n " + _vm._s(_vm.initInterestData[key].title) + "\n ")]), _c('div', {
6208
+ }, [_vm._v("\n " + _vm._s(item.title) + "\n ")]), _c('div', {
6209
6209
  staticClass: "bxt-aat-bonus-descs"
6210
- }, _vm._l(_vm.initInterestData[key].opts, function (o, i) {
6210
+ }, _vm._l(item.options, function (o, i) {
6211
6211
  return _c('span', {
6212
- key: o.value,
6212
+ key: o.value + o.description,
6213
6213
  class: {
6214
6214
  'bxt-aat-bonus-desc': true,
6215
- active: _vm.interestFormData[key] === o.value
6215
+ active: _vm.interestFormData[item.key] === o.value
6216
6216
  },
6217
6217
  attrs: {
6218
- "data-stat-id": key === 'bonus' ? 'zjlqbfhqh' : 'zjlqblyqh',
6218
+ "data-stat-id": item.stat,
6219
6219
  "data-stat-ep": JSON.stringify({
6220
- key: key === 'bonus' ? o.value : i
6220
+ key: item.key === 'bonus' ? o.value : i
6221
6221
  })
6222
6222
  },
6223
6223
  on: {
6224
6224
  "click": function click($event) {
6225
- return _vm.onClickBonusOptions(key, o);
6225
+ return _vm.onClickBonusOptions(item.key, o);
6226
6226
  }
6227
6227
  }
6228
6228
  }, [_vm._v("\n " + _vm._s(o.description) + "\n ")]);
6229
- }), 0)]) : _vm._e()];
6229
+ }), 0)])];
6230
6230
  })], 2) : _vm._e(), _c('div', {
6231
6231
  staticClass: "bxt-aat-table-content"
6232
6232
  }, [_c('div', {
@@ -6243,7 +6243,7 @@ var render = function render() {
6243
6243
  }), 0);
6244
6244
  }), 0), _c('div', {
6245
6245
  staticClass: "bxt-aat-table-content-right"
6246
- }, _vm._l(_vm.addAndTakeTable, function (record) {
6246
+ }, _vm._l(_vm.addAndTakeTable, function (record, recordIndex) {
6247
6247
  return _c('div', {
6248
6248
  key: JSON.stringify(record),
6249
6249
  staticClass: "bxt-aat-table-content-record"
@@ -6266,7 +6266,7 @@ var render = function render() {
6266
6266
  },
6267
6267
  on: {
6268
6268
  "click": function click($event) {
6269
- return _vm.onClickToForm(key, record);
6269
+ return _vm.onClickToForm(key, record, recordIndex);
6270
6270
  }
6271
6271
  }
6272
6272
  }, [_c('span', {
@@ -6350,9 +6350,7 @@ var render = function render() {
6350
6350
  },
6351
6351
  expression: "formData.baof"
6352
6352
  }
6353
- }), !['reduceBaof'].includes(_vm.type) && ['take'].includes(_vm.formData.type) ? _c('p', {
6354
- staticClass: "bxt-aat-form-baof-tips"
6355
- }, [_vm._v("\n 根据低档收益,最大领取金额约\n "), _c('span', [_vm._v(_vm._s(_vm.ensureCanTakeAmount))]), _vm._v(" 元,仅供参考,实际领取以保单账户价值为准;\n ")]) : _vm._e()], 1)]), ['take'].includes(_vm.formData.type) ? _c('bxs-form-item', {
6353
+ })], 1)]), ['take'].includes(_vm.formData.type) ? _c('bxs-form-item', {
6356
6354
  staticClass: "bxt-aat-form-purpose"
6357
6355
  }, [_c('header', {
6358
6356
  staticClass: "bxt-aat-form-item-title"
@@ -6474,13 +6472,13 @@ var render = function render() {
6474
6472
 
6475
6473
  var staticRenderFns = [];
6476
6474
 
6477
- // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=5e398c6c&
6475
+ // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=3fa35120&
6478
6476
 
6479
6477
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
6480
6478
  var tslib_es6 = __webpack_require__(0);
6481
6479
 
6482
6480
  // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js
6483
- var cloneDeep = __webpack_require__(38);
6481
+ var cloneDeep = __webpack_require__(36);
6484
6482
  var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep);
6485
6483
 
6486
6484
  // EXTERNAL MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js + 1 modules
@@ -6690,7 +6688,7 @@ function getEnsureCanTakeAmount(initialData) {
6690
6688
  endYear = options.endYear;
6691
6689
  var rate = options.rate + 1;
6692
6690
  var accountValue = initialData.find(function (ele) {
6693
- return ele.key === 'account_value';
6691
+ return ele.uniKey === 'account_value_1';
6694
6692
  });
6695
6693
  var ensureAmount = 0;
6696
6694
 
@@ -6787,6 +6785,45 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
6787
6785
  enumerable: false,
6788
6786
  configurable: true
6789
6787
  });
6788
+ Object.defineProperty(AddAndTake.prototype, "interestOptions", {
6789
+ get: function () {
6790
+ var _a = this, params = _a.params, initInterestData = _a.initInterestData;
6791
+ if (!initInterestData) {
6792
+ return [];
6793
+ }
6794
+ var options = [];
6795
+ var bonus = initInterestData.bonus;
6796
+ if (bonus && bonus.opts && bonus.opts.length) {
6797
+ options.push({
6798
+ key: 'bonus',
6799
+ stat: 'zjlqbfhqh',
6800
+ title: bonus.title,
6801
+ options: bonus.opts
6802
+ });
6803
+ }
6804
+ var rate = initInterestData.rate;
6805
+ if (rate && rate.opts && rate.opts.length) {
6806
+ var tempOptions = cloneDeep_default()(rate.opts);
6807
+ if (params.rate && !tempOptions.find(function (o) { return o.value === params.rate; })) {
6808
+ tempOptions.forEach(function (o, i) {
6809
+ if (i === 3) {
6810
+ o.value = params.rate;
6811
+ o.description = o.description.replace(/\((.+)%\)$/, "(" + (params.rate * 100).toFixed(2) + "%)");
6812
+ }
6813
+ });
6814
+ }
6815
+ options.push({
6816
+ key: 'rate',
6817
+ stat: 'zjlqblyqh',
6818
+ title: rate.title,
6819
+ options: tempOptions
6820
+ });
6821
+ }
6822
+ return options;
6823
+ },
6824
+ enumerable: false,
6825
+ configurable: true
6826
+ });
6790
6827
  Object.defineProperty(AddAndTake.prototype, "addAndTakeTable", {
6791
6828
  get: function () {
6792
6829
  var _a = this, insuredAge = _a.insuredAge, initInterestData = _a.initInterestData, initAddAndTakeData = _a.initAddAndTakeData;
@@ -7026,8 +7063,11 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
7026
7063
  this.interestFormData[key] = item.value;
7027
7064
  this.getAddAndTakeData();
7028
7065
  };
7029
- AddAndTake.prototype.onClickToForm = function (key, item) {
7066
+ AddAndTake.prototype.onClickToForm = function (key, item, index) {
7030
7067
  var _this = this;
7068
+ if (index <= 0) {
7069
+ return;
7070
+ }
7031
7071
  if (!['add', 'take'].includes(key)) {
7032
7072
  return;
7033
7073
  }
@@ -7221,8 +7261,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
7221
7261
 
7222
7262
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
7223
7263
  /* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
7224
- // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=5e398c6c&prod&lang=css&
7225
- var add_and_takevue_type_style_index_0_id_5e398c6c_prod_lang_css_ = __webpack_require__(177);
7264
+ // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=3fa35120&prod&lang=css&
7265
+ var add_and_takevue_type_style_index_0_id_3fa35120_prod_lang_css_ = __webpack_require__(177);
7226
7266
 
7227
7267
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
7228
7268
  var componentNormalizer = __webpack_require__(7);
@@ -3011,19 +3011,6 @@ module.exports = copyObject;
3011
3011
 
3012
3012
  /***/ }),
3013
3013
  /* 36 */
3014
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3015
-
3016
- "use strict";
3017
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IS_PRODUCT_ENV; });
3018
- /* unused harmony export IS_TEST_ENV */
3019
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IS_LOCALHOST_ENV; });
3020
- var IS_PRODUCT_ENV = location.hostname.search(/pbf\.winbaoxian\.com/) !== -1;
3021
- var IS_TEST_ENV = location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1;
3022
- var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1|0\.0\.0\.0/) !== -1;
3023
-
3024
- /***/ }),
3025
- /* 37 */,
3026
- /* 38 */
3027
3014
  /***/ (function(module, exports, __webpack_require__) {
3028
3015
 
3029
3016
  var baseClone = __webpack_require__(90);
@@ -3058,6 +3045,19 @@ module.exports = cloneDeep;
3058
3045
 
3059
3046
 
3060
3047
  /***/ }),
3048
+ /* 37 */
3049
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3050
+
3051
+ "use strict";
3052
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IS_PRODUCT_ENV; });
3053
+ /* unused harmony export IS_TEST_ENV */
3054
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IS_LOCALHOST_ENV; });
3055
+ var IS_PRODUCT_ENV = location.hostname.search(/pbf\.winbaoxian\.com/) !== -1;
3056
+ var IS_TEST_ENV = location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1;
3057
+ var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1|0\.0\.0\.0/) !== -1;
3058
+
3059
+ /***/ }),
3060
+ /* 38 */,
3061
3061
  /* 39 */
3062
3062
  /***/ (function(module, exports, __webpack_require__) {
3063
3063
 
@@ -8426,7 +8426,7 @@ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
8426
8426
  var vue_property_decorator = __webpack_require__(2);
8427
8427
 
8428
8428
  // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js
8429
- var cloneDeep = __webpack_require__(38);
8429
+ var cloneDeep = __webpack_require__(36);
8430
8430
  var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep);
8431
8431
 
8432
8432
  // EXTERNAL MODULE: external {"root":"bxs","commonjs":"bxs-ui-vue","commonjs2":"bxs-ui-vue","amd":"bxs-ui-vue"}
@@ -8439,7 +8439,7 @@ var bxs_ui_vue_lib = __webpack_require__(87);
8439
8439
  var planbook = __webpack_require__(11);
8440
8440
 
8441
8441
  // EXTERNAL MODULE: ./src/js/variables.js
8442
- var variables = __webpack_require__(36);
8442
+ var variables = __webpack_require__(37);
8443
8443
 
8444
8444
  // EXTERNAL MODULE: ./packages/components/form-item/select-item.vue + 4 modules
8445
8445
  var select_item = __webpack_require__(16);
package/lib/index.css CHANGED
@@ -217,7 +217,7 @@ footer {
217
217
  }
218
218
  .bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-cell__purpose span:nth-child(2) {
219
219
  display: inline-block;
220
- margin-left: 3px;
220
+ margin-left: 5px;
221
221
  padding: 1px 3px;
222
222
  color: rgba(10, 100, 254, 1);
223
223
  background: rgba(10, 100, 254, 0.1);
package/lib/index.js CHANGED
@@ -896,29 +896,6 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
896
896
  /* 7 */
897
897
  /***/ (function(module, exports, __webpack_require__) {
898
898
 
899
- var baseIsNative = __webpack_require__(90),
900
- getValue = __webpack_require__(96);
901
-
902
- /**
903
- * Gets the native function at `key` of `object`.
904
- *
905
- * @private
906
- * @param {Object} object The object to query.
907
- * @param {string} key The key of the method to get.
908
- * @returns {*} Returns the function if it's native, else `undefined`.
909
- */
910
- function getNative(object, key) {
911
- var value = getValue(object, key);
912
- return baseIsNative(value) ? value : undefined;
913
- }
914
-
915
- module.exports = getNative;
916
-
917
-
918
- /***/ }),
919
- /* 8 */
920
- /***/ (function(module, exports, __webpack_require__) {
921
-
922
899
  var baseClone = __webpack_require__(78);
923
900
 
924
901
  /** Used to compose bitmasks for cloning. */
@@ -950,6 +927,29 @@ function cloneDeep(value) {
950
927
  module.exports = cloneDeep;
951
928
 
952
929
 
930
+ /***/ }),
931
+ /* 8 */
932
+ /***/ (function(module, exports, __webpack_require__) {
933
+
934
+ var baseIsNative = __webpack_require__(90),
935
+ getValue = __webpack_require__(96);
936
+
937
+ /**
938
+ * Gets the native function at `key` of `object`.
939
+ *
940
+ * @private
941
+ * @param {Object} object The object to query.
942
+ * @param {string} key The key of the method to get.
943
+ * @returns {*} Returns the function if it's native, else `undefined`.
944
+ */
945
+ function getNative(object, key) {
946
+ var value = getValue(object, key);
947
+ return baseIsNative(value) ? value : undefined;
948
+ }
949
+
950
+ module.exports = getNative;
951
+
952
+
953
953
  /***/ }),
954
954
  /* 9 */
955
955
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -1700,7 +1700,7 @@ module.exports = baseGetTag;
1700
1700
  /* 16 */
1701
1701
  /***/ (function(module, exports, __webpack_require__) {
1702
1702
 
1703
- var getNative = __webpack_require__(7);
1703
+ var getNative = __webpack_require__(8);
1704
1704
 
1705
1705
  /* Built-in method references that are verified to be native. */
1706
1706
  var nativeCreate = getNative(Object, 'create');
@@ -1782,7 +1782,7 @@ module.exports = copyObject;
1782
1782
  /* 19 */
1783
1783
  /***/ (function(module, exports, __webpack_require__) {
1784
1784
 
1785
- var getNative = __webpack_require__(7),
1785
+ var getNative = __webpack_require__(8),
1786
1786
  root = __webpack_require__(5);
1787
1787
 
1788
1788
  /* Built-in method references that are verified to be native. */
@@ -5766,7 +5766,7 @@ module.exports = arrayEach;
5766
5766
  /* 111 */
5767
5767
  /***/ (function(module, exports, __webpack_require__) {
5768
5768
 
5769
- var getNative = __webpack_require__(7);
5769
+ var getNative = __webpack_require__(8);
5770
5770
 
5771
5771
  var defineProperty = (function() {
5772
5772
  try {
@@ -6376,7 +6376,7 @@ module.exports = getAllKeysIn;
6376
6376
  /* 132 */
6377
6377
  /***/ (function(module, exports, __webpack_require__) {
6378
6378
 
6379
- var getNative = __webpack_require__(7),
6379
+ var getNative = __webpack_require__(8),
6380
6380
  root = __webpack_require__(5);
6381
6381
 
6382
6382
  /* Built-in method references that are verified to be native. */
@@ -6389,7 +6389,7 @@ module.exports = DataView;
6389
6389
  /* 133 */
6390
6390
  /***/ (function(module, exports, __webpack_require__) {
6391
6391
 
6392
- var getNative = __webpack_require__(7),
6392
+ var getNative = __webpack_require__(8),
6393
6393
  root = __webpack_require__(5);
6394
6394
 
6395
6395
  /* Built-in method references that are verified to be native. */
@@ -6402,7 +6402,7 @@ module.exports = Promise;
6402
6402
  /* 134 */
6403
6403
  /***/ (function(module, exports, __webpack_require__) {
6404
6404
 
6405
- var getNative = __webpack_require__(7),
6405
+ var getNative = __webpack_require__(8),
6406
6406
  root = __webpack_require__(5);
6407
6407
 
6408
6408
  /* Built-in method references that are verified to be native. */
@@ -6415,7 +6415,7 @@ module.exports = Set;
6415
6415
  /* 135 */
6416
6416
  /***/ (function(module, exports, __webpack_require__) {
6417
6417
 
6418
- var getNative = __webpack_require__(7),
6418
+ var getNative = __webpack_require__(8),
6419
6419
  root = __webpack_require__(5);
6420
6420
 
6421
6421
  /* Built-in method references that are verified to be native. */
@@ -6831,8 +6831,8 @@ module.exports = baseIsSet;
6831
6831
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6832
6832
 
6833
6833
  "use strict";
6834
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5e398c6c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55);
6835
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5e398c6c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5e398c6c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6834
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3fa35120_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55);
6835
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3fa35120_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_3fa35120_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6836
6836
  /* unused harmony reexport * */
6837
6837
 
6838
6838
 
@@ -9757,7 +9757,7 @@ __webpack_require__.d(__webpack_exports__, "ProductInfo", function() { return /*
9757
9757
  var defineProperty = __webpack_require__(74);
9758
9758
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
9759
9759
 
9760
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=5e398c6c&
9760
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=3fa35120&
9761
9761
 
9762
9762
 
9763
9763
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -9778,33 +9778,33 @@ var render = function render() {
9778
9778
  staticClass: "bxt-aat-table"
9779
9779
  }, [['addAndTake', 'add', 'take'].includes(_vm.type) ? _c('ul', {
9780
9780
  staticClass: "bxt-aat-bonus"
9781
- }, [_vm._l(['bonus', 'rate'], function (key) {
9782
- return [_vm.initInterestData[key] && _vm.initInterestData[key].opts ? _c('li', {
9783
- key: key
9781
+ }, [_vm._l(_vm.interestOptions, function (item) {
9782
+ return [_c('li', {
9783
+ key: item.key
9784
9784
  }, [_c('header', {
9785
9785
  staticClass: "bxt-aat-bonus-title"
9786
- }, [_vm._v("\n " + _vm._s(_vm.initInterestData[key].title) + "\n ")]), _c('div', {
9786
+ }, [_vm._v("\n " + _vm._s(item.title) + "\n ")]), _c('div', {
9787
9787
  staticClass: "bxt-aat-bonus-descs"
9788
- }, _vm._l(_vm.initInterestData[key].opts, function (o, i) {
9788
+ }, _vm._l(item.options, function (o, i) {
9789
9789
  return _c('span', {
9790
- key: o.value,
9790
+ key: o.value + o.description,
9791
9791
  class: {
9792
9792
  'bxt-aat-bonus-desc': true,
9793
- active: _vm.interestFormData[key] === o.value
9793
+ active: _vm.interestFormData[item.key] === o.value
9794
9794
  },
9795
9795
  attrs: {
9796
- "data-stat-id": key === 'bonus' ? 'zjlqbfhqh' : 'zjlqblyqh',
9796
+ "data-stat-id": item.stat,
9797
9797
  "data-stat-ep": JSON.stringify({
9798
- key: key === 'bonus' ? o.value : i
9798
+ key: item.key === 'bonus' ? o.value : i
9799
9799
  })
9800
9800
  },
9801
9801
  on: {
9802
9802
  "click": function click($event) {
9803
- return _vm.onClickBonusOptions(key, o);
9803
+ return _vm.onClickBonusOptions(item.key, o);
9804
9804
  }
9805
9805
  }
9806
9806
  }, [_vm._v("\n " + _vm._s(o.description) + "\n ")]);
9807
- }), 0)]) : _vm._e()];
9807
+ }), 0)])];
9808
9808
  })], 2) : _vm._e(), _c('div', {
9809
9809
  staticClass: "bxt-aat-table-content"
9810
9810
  }, [_c('div', {
@@ -9821,7 +9821,7 @@ var render = function render() {
9821
9821
  }), 0);
9822
9822
  }), 0), _c('div', {
9823
9823
  staticClass: "bxt-aat-table-content-right"
9824
- }, _vm._l(_vm.addAndTakeTable, function (record) {
9824
+ }, _vm._l(_vm.addAndTakeTable, function (record, recordIndex) {
9825
9825
  return _c('div', {
9826
9826
  key: JSON.stringify(record),
9827
9827
  staticClass: "bxt-aat-table-content-record"
@@ -9844,7 +9844,7 @@ var render = function render() {
9844
9844
  },
9845
9845
  on: {
9846
9846
  "click": function click($event) {
9847
- return _vm.onClickToForm(key, record);
9847
+ return _vm.onClickToForm(key, record, recordIndex);
9848
9848
  }
9849
9849
  }
9850
9850
  }, [_c('span', {
@@ -9928,9 +9928,7 @@ var render = function render() {
9928
9928
  },
9929
9929
  expression: "formData.baof"
9930
9930
  }
9931
- }), !['reduceBaof'].includes(_vm.type) && ['take'].includes(_vm.formData.type) ? _c('p', {
9932
- staticClass: "bxt-aat-form-baof-tips"
9933
- }, [_vm._v("\n 根据低档收益,最大领取金额约\n "), _c('span', [_vm._v(_vm._s(_vm.ensureCanTakeAmount))]), _vm._v(" 元,仅供参考,实际领取以保单账户价值为准;\n ")]) : _vm._e()], 1)]), ['take'].includes(_vm.formData.type) ? _c('bxs-form-item', {
9931
+ })], 1)]), ['take'].includes(_vm.formData.type) ? _c('bxs-form-item', {
9934
9932
  staticClass: "bxt-aat-form-purpose"
9935
9933
  }, [_c('header', {
9936
9934
  staticClass: "bxt-aat-form-item-title"
@@ -10052,13 +10050,13 @@ var render = function render() {
10052
10050
 
10053
10051
  var staticRenderFns = [];
10054
10052
 
10055
- // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=5e398c6c&
10053
+ // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=3fa35120&
10056
10054
 
10057
10055
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
10058
10056
  var tslib_es6 = __webpack_require__(0);
10059
10057
 
10060
10058
  // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js
10061
- var cloneDeep = __webpack_require__(8);
10059
+ var cloneDeep = __webpack_require__(7);
10062
10060
  var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep);
10063
10061
 
10064
10062
  // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
@@ -10885,7 +10883,7 @@ function getEnsureCanTakeAmount(initialData) {
10885
10883
  endYear = options.endYear;
10886
10884
  var rate = options.rate + 1;
10887
10885
  var accountValue = initialData.find(function (ele) {
10888
- return ele.key === 'account_value';
10886
+ return ele.uniKey === 'account_value_1';
10889
10887
  });
10890
10888
  var ensureAmount = 0;
10891
10889
 
@@ -11236,6 +11234,45 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11236
11234
  enumerable: false,
11237
11235
  configurable: true
11238
11236
  });
11237
+ Object.defineProperty(AddAndTake.prototype, "interestOptions", {
11238
+ get: function () {
11239
+ var _a = this, params = _a.params, initInterestData = _a.initInterestData;
11240
+ if (!initInterestData) {
11241
+ return [];
11242
+ }
11243
+ var options = [];
11244
+ var bonus = initInterestData.bonus;
11245
+ if (bonus && bonus.opts && bonus.opts.length) {
11246
+ options.push({
11247
+ key: 'bonus',
11248
+ stat: 'zjlqbfhqh',
11249
+ title: bonus.title,
11250
+ options: bonus.opts
11251
+ });
11252
+ }
11253
+ var rate = initInterestData.rate;
11254
+ if (rate && rate.opts && rate.opts.length) {
11255
+ var tempOptions = cloneDeep_default()(rate.opts);
11256
+ if (params.rate && !tempOptions.find(function (o) { return o.value === params.rate; })) {
11257
+ tempOptions.forEach(function (o, i) {
11258
+ if (i === 3) {
11259
+ o.value = params.rate;
11260
+ o.description = o.description.replace(/\((.+)%\)$/, "(" + (params.rate * 100).toFixed(2) + "%)");
11261
+ }
11262
+ });
11263
+ }
11264
+ options.push({
11265
+ key: 'rate',
11266
+ stat: 'zjlqblyqh',
11267
+ title: rate.title,
11268
+ options: tempOptions
11269
+ });
11270
+ }
11271
+ return options;
11272
+ },
11273
+ enumerable: false,
11274
+ configurable: true
11275
+ });
11239
11276
  Object.defineProperty(AddAndTake.prototype, "addAndTakeTable", {
11240
11277
  get: function () {
11241
11278
  var _a = this, insuredAge = _a.insuredAge, initInterestData = _a.initInterestData, initAddAndTakeData = _a.initAddAndTakeData;
@@ -11475,8 +11512,11 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11475
11512
  this.interestFormData[key] = item.value;
11476
11513
  this.getAddAndTakeData();
11477
11514
  };
11478
- AddAndTake.prototype.onClickToForm = function (key, item) {
11515
+ AddAndTake.prototype.onClickToForm = function (key, item, index) {
11479
11516
  var _this = this;
11517
+ if (index <= 0) {
11518
+ return;
11519
+ }
11480
11520
  if (!['add', 'take'].includes(key)) {
11481
11521
  return;
11482
11522
  }
@@ -11670,8 +11710,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11670
11710
 
11671
11711
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
11672
11712
  /* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
11673
- // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=5e398c6c&prod&lang=css&
11674
- var add_and_takevue_type_style_index_0_id_5e398c6c_prod_lang_css_ = __webpack_require__(150);
11713
+ // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=3fa35120&prod&lang=css&
11714
+ var add_and_takevue_type_style_index_0_id_3fa35120_prod_lang_css_ = __webpack_require__(150);
11675
11715
 
11676
11716
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue
11677
11717
 
@@ -2869,7 +2869,7 @@ var tslib_es6 = __webpack_require__(0);
2869
2869
  var vue_property_decorator = __webpack_require__(2);
2870
2870
 
2871
2871
  // EXTERNAL MODULE: ./src/js/utils.js
2872
- var utils = __webpack_require__(37);
2872
+ var utils = __webpack_require__(38);
2873
2873
 
2874
2874
  // EXTERNAL MODULE: external {"root":"bxs","commonjs":"bxs-ui-vue","commonjs2":"bxs-ui-vue","amd":"bxs-ui-vue"}
2875
2875
  var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ = __webpack_require__(3);
@@ -4329,7 +4329,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__3__;
4329
4329
 
4330
4330
  /***/ }),
4331
4331
 
4332
- /***/ 36:
4332
+ /***/ 37:
4333
4333
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4334
4334
 
4335
4335
  "use strict";
@@ -4342,7 +4342,7 @@ var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1
4342
4342
 
4343
4343
  /***/ }),
4344
4344
 
4345
- /***/ 37:
4345
+ /***/ 38:
4346
4346
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4347
4347
 
4348
4348
  "use strict";
@@ -4350,7 +4350,7 @@ var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1
4350
4350
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return parseTime; });
4351
4351
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
4352
4352
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
4353
- /* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36);
4353
+ /* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
4354
4354
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _variables__WEBPACK_IMPORTED_MODULE_1__["a"]; });
4355
4355
 
4356
4356
 
@@ -4364,7 +4364,8 @@ module.exports = __webpack_require__(53);
4364
4364
  /* 33 */,
4365
4365
  /* 34 */,
4366
4366
  /* 35 */,
4367
- /* 36 */
4367
+ /* 36 */,
4368
+ /* 37 */
4368
4369
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4369
4370
 
4370
4371
  "use strict";
@@ -4376,7 +4377,7 @@ var IS_TEST_ENV = location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1;
4376
4377
  var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1|0\.0\.0\.0/) !== -1;
4377
4378
 
4378
4379
  /***/ }),
4379
- /* 37 */
4380
+ /* 38 */
4380
4381
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4381
4382
 
4382
4383
  "use strict";
@@ -4384,7 +4385,7 @@ var IS_LOCALHOST_ENV = location.hostname.search(/localhost|192\.168|127\.0\.0\.1
4384
4385
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return parseTime; });
4385
4386
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
4386
4387
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
4387
- /* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36);
4388
+ /* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
4388
4389
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _variables__WEBPACK_IMPORTED_MODULE_1__["a"]; });
4389
4390
 
4390
4391
 
@@ -4486,7 +4487,6 @@ function parseTime(time, cFormat) {
4486
4487
  });
4487
4488
 
4488
4489
  /***/ }),
4489
- /* 38 */,
4490
4490
  /* 39 */,
4491
4491
  /* 40 */,
4492
4492
  /* 41 */,
@@ -6506,7 +6506,7 @@ var age_birthday_itemvue_type_template_id_2d4327f0_staticRenderFns = [];
6506
6506
  // CONCATENATED MODULE: ./packages/components/form-item/age-birthday-item.vue?vue&type=template&id=2d4327f0&
6507
6507
 
6508
6508
  // EXTERNAL MODULE: ./src/js/utils.js
6509
- var utils = __webpack_require__(37);
6509
+ var utils = __webpack_require__(38);
6510
6510
 
6511
6511
  // EXTERNAL MODULE: ./packages/bxs-utils/planbook/common.ts
6512
6512
  var common = __webpack_require__(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "1.2.0-6",
3
+ "version": "1.2.0",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -114,7 +114,7 @@ export function getEnsureCanTakeAmount(initialData, options = {}) {
114
114
  }
115
115
  const { beginYear, endYear } = options;
116
116
  const rate = options.rate + 1;
117
- const accountValue = initialData.find(ele => ele.key === 'account_value');
117
+ const accountValue = initialData.find(ele => ele.uniKey === 'account_value_1');
118
118
  let ensureAmount = 0;
119
119
  if (beginYear && endYear && rate && accountValue && accountValue.values) {
120
120
  for (let k = beginYear; k <= endYear; k++) {
@@ -132,7 +132,7 @@
132
132
 
133
133
  & span:nth-child(2) {
134
134
  display: inline-block;
135
- margin-left: 3px;
135
+ margin-left: 5px;
136
136
  padding: 1px 3px;
137
137
  color: rgba(10, 100, 254, 1);
138
138
  background: rgba(10, 100, 254, 0.1);
@@ -8,26 +8,26 @@
8
8
  >
9
9
  <div v-if="subName === 'Table'" class="bxt-aat-table">
10
10
  <ul v-if="['addAndTake', 'add', 'take'].includes(type)" class="bxt-aat-bonus">
11
- <template v-for="key in ['bonus', 'rate']">
12
- <li :key="key" v-if="initInterestData[key] && initInterestData[key].opts">
11
+ <template v-for="item in interestOptions">
12
+ <li :key="item.key">
13
13
  <header class="bxt-aat-bonus-title">
14
- {{ initInterestData[key].title }}
14
+ {{ item.title }}
15
15
  </header>
16
16
  <div class="bxt-aat-bonus-descs">
17
17
  <span
18
- v-for="(o, i) in initInterestData[key].opts"
19
- :key="o.value"
18
+ v-for="(o, i) in item.options"
19
+ :key="o.value + o.description"
20
20
  :class="{
21
21
  'bxt-aat-bonus-desc': true,
22
- active: interestFormData[key] === o.value
22
+ active: interestFormData[item.key] === o.value
23
23
  }"
24
- :data-stat-id="key === 'bonus' ? 'zjlqbfhqh' : 'zjlqblyqh'"
24
+ :data-stat-id="item.stat"
25
25
  :data-stat-ep="
26
26
  JSON.stringify({
27
- key: key === 'bonus' ? o.value : i
27
+ key: item.key === 'bonus' ? o.value : i
28
28
  })
29
29
  "
30
- @click="onClickBonusOptions(key, o)"
30
+ @click="onClickBonusOptions(item.key, o)"
31
31
  >
32
32
  {{ o.description }}
33
33
  </span>
@@ -44,7 +44,11 @@
44
44
  </div>
45
45
  </div>
46
46
  <div class="bxt-aat-table-content-right">
47
- <div v-for="record in addAndTakeTable" :key="JSON.stringify(record)" class="bxt-aat-table-content-record">
47
+ <div
48
+ v-for="(record, recordIndex) in addAndTakeTable"
49
+ :key="JSON.stringify(record)"
50
+ class="bxt-aat-table-content-record"
51
+ >
48
52
  <div
49
53
  v-for="key in Object.keys(record).filter(k => !['year', 'age', 'purpose'].includes(k))"
50
54
  :key="key"
@@ -60,7 +64,7 @@
60
64
  type
61
65
  })
62
66
  "
63
- @click="onClickToForm(key, record)"
67
+ @click="onClickToForm(key, record, recordIndex)"
64
68
  >
65
69
  <span v-html="record[key]"></span>
66
70
  <span v-if="key === 'take' && record.purpose">
@@ -134,10 +138,10 @@
134
138
  })
135
139
  "
136
140
  />
137
- <p v-if="!['reduceBaof'].includes(type) && ['take'].includes(formData.type)" class="bxt-aat-form-baof-tips">
141
+ <!-- <p v-if="!['reduceBaof'].includes(type) && ['take'].includes(formData.type)" class="bxt-aat-form-baof-tips">
138
142
  根据低档收益,最大领取金额约
139
143
  <span>{{ ensureCanTakeAmount }}</span> 元,仅供参考,实际领取以保单账户价值为准;
140
- </p>
144
+ </p> -->
141
145
  </div>
142
146
  </bxs-form-item>
143
147
  <bxs-form-item v-if="['take'].includes(formData.type)" class="bxt-aat-form-purpose">
@@ -341,6 +345,41 @@ export default class AddAndTake extends Vue {
341
345
  get insuranceData() {
342
346
  return this.productData && this.productData.mulInsOrderList.find(ins => ins.key === this.params.insuranceKey);
343
347
  }
348
+ get interestOptions() {
349
+ const { params, initInterestData } = this;
350
+ if (!initInterestData) {
351
+ return [];
352
+ }
353
+ const options: any = [];
354
+ const bonus = initInterestData.bonus;
355
+ if (bonus && bonus.opts && bonus.opts.length) {
356
+ options.push({
357
+ key: 'bonus',
358
+ stat: 'zjlqbfhqh',
359
+ title: bonus.title,
360
+ options: bonus.opts
361
+ });
362
+ }
363
+ const rate = initInterestData.rate;
364
+ if (rate && rate.opts && rate.opts.length) {
365
+ const tempOptions = cloneDeep(rate.opts);
366
+ if (params.rate && !tempOptions.find(o => o.value === params.rate)) {
367
+ tempOptions.forEach((o, i) => {
368
+ if (i === 3) {
369
+ o.value = params.rate;
370
+ o.description = o.description.replace(/\((.+)%\)$/, `(${(params.rate * 100).toFixed(2)}%)`);
371
+ }
372
+ });
373
+ }
374
+ options.push({
375
+ key: 'rate',
376
+ stat: 'zjlqblyqh',
377
+ title: rate.title,
378
+ options: tempOptions
379
+ });
380
+ }
381
+ return options;
382
+ }
344
383
  get addAndTakeTable() {
345
384
  const { insuredAge, initInterestData, initAddAndTakeData } = this;
346
385
  if (!initInterestData || !initAddAndTakeData) {
@@ -585,7 +624,10 @@ export default class AddAndTake extends Vue {
585
624
  this.interestFormData[key] = item.value;
586
625
  this.getAddAndTakeData();
587
626
  }
588
- onClickToForm(key, item) {
627
+ onClickToForm(key, item, index) {
628
+ if (index <= 0) {
629
+ return;
630
+ }
589
631
  if (!['add', 'take'].includes(key)) {
590
632
  return;
591
633
  }
@@ -182,7 +182,8 @@
182
182
  publicPbUuid: params.publicPbUuid,
183
183
  groupKey: params.groupKey,
184
184
  productKey: params.productKey,
185
- insuranceKey: popupConf.data.insuranceKey
185
+ insuranceKey: popupConf.data.insuranceKey,
186
+ rate: 0.047
186
187
  }"
187
188
  @confirm="addAndTakeConfirm"
188
189
  />