bxs-tools-ui 1.2.16 → 1.2.18
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/lib/add-and-take/index.js +2 -2
- package/lib/adjust-baoe/index.js +2 -2
- package/lib/bxs-utils/index.js +2 -2
- package/lib/index.js +17 -15
- package/lib/insure-calculate/index.js +2 -2
- package/lib/person-info/index.js +2 -2
- package/lib/product-info/index.js +13 -11
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/insurance.ts +1 -1
- package/packages/bxs-utils/planbook/product.ts +1 -1
- package/packages/product-info/index.vue +5 -3
|
@@ -1178,7 +1178,7 @@ function initInsuranceData(insData) {
|
|
|
1178
1178
|
e.placeholder = e.placeholder || '请输入保费';
|
|
1179
1179
|
break;
|
|
1180
1180
|
}
|
|
1181
|
-
if (e.optConf && e.optConf.length) {
|
|
1181
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
1182
1182
|
var options = [];
|
|
1183
1183
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
1184
1184
|
options.push({
|
|
@@ -2388,7 +2388,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
2388
2388
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
2389
2389
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
2390
2390
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
2391
|
-
var curEle = {};
|
|
2391
|
+
var curEle = curIns ? {} : null;
|
|
2392
2392
|
if (curIns) {
|
|
2393
2393
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
2394
2394
|
}
|
package/lib/adjust-baoe/index.js
CHANGED
|
@@ -1178,7 +1178,7 @@ function initInsuranceData(insData) {
|
|
|
1178
1178
|
e.placeholder = e.placeholder || '请输入保费';
|
|
1179
1179
|
break;
|
|
1180
1180
|
}
|
|
1181
|
-
if (e.optConf && e.optConf.length) {
|
|
1181
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
1182
1182
|
var options = [];
|
|
1183
1183
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
1184
1184
|
options.push({
|
|
@@ -2388,7 +2388,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
2388
2388
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
2389
2389
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
2390
2390
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
2391
|
-
var curEle = {};
|
|
2391
|
+
var curEle = curIns ? {} : null;
|
|
2392
2392
|
if (curIns) {
|
|
2393
2393
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
2394
2394
|
}
|
package/lib/bxs-utils/index.js
CHANGED
|
@@ -908,7 +908,7 @@ function initInsuranceData(insData) {
|
|
|
908
908
|
e.placeholder = e.placeholder || '请输入保费';
|
|
909
909
|
break;
|
|
910
910
|
}
|
|
911
|
-
if (e.optConf && e.optConf.length) {
|
|
911
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
912
912
|
var options = [];
|
|
913
913
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
914
914
|
options.push({
|
|
@@ -2670,7 +2670,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
2670
2670
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
2671
2671
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
2672
2672
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
2673
|
-
var curEle = {};
|
|
2673
|
+
var curEle = curIns ? {} : null;
|
|
2674
2674
|
if (curIns) {
|
|
2675
2675
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
2676
2676
|
}
|
package/lib/index.js
CHANGED
|
@@ -3192,7 +3192,7 @@ function initInsuranceData(insData) {
|
|
|
3192
3192
|
e.placeholder = e.placeholder || '请输入保费';
|
|
3193
3193
|
break;
|
|
3194
3194
|
}
|
|
3195
|
-
if (e.optConf && e.optConf.length) {
|
|
3195
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
3196
3196
|
var options = [];
|
|
3197
3197
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
3198
3198
|
options.push({
|
|
@@ -6540,7 +6540,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
6540
6540
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
6541
6541
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
6542
6542
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
6543
|
-
var curEle = {};
|
|
6543
|
+
var curEle = curIns ? {} : null;
|
|
6544
6544
|
if (curIns) {
|
|
6545
6545
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
6546
6546
|
}
|
|
@@ -16574,8 +16574,8 @@ function isSlowBuffer (obj) {
|
|
|
16574
16574
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16575
16575
|
|
|
16576
16576
|
"use strict";
|
|
16577
|
-
/* harmony import */ var
|
|
16578
|
-
/* harmony import */ var
|
|
16577
|
+
/* 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_e116ecb2_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87);
|
|
16578
|
+
/* 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_e116ecb2_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_e116ecb2_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
16579
16579
|
/* unused harmony reexport * */
|
|
16580
16580
|
|
|
16581
16581
|
|
|
@@ -22659,8 +22659,8 @@ var person_info_component = normalizeComponent(
|
|
|
22659
22659
|
)
|
|
22660
22660
|
|
|
22661
22661
|
/* harmony default export */ var person_info = (person_info_component.exports);
|
|
22662
|
-
// 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/product-info/index.vue?vue&type=template&id=
|
|
22663
|
-
var
|
|
22662
|
+
// 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/product-info/index.vue?vue&type=template&id=e116ecb2&
|
|
22663
|
+
var product_infovue_type_template_id_e116ecb2_render = function render() {
|
|
22664
22664
|
var _vm = this,
|
|
22665
22665
|
_c = _vm._self._c,
|
|
22666
22666
|
_setup = _vm._self._setupProxy;
|
|
@@ -22943,9 +22943,9 @@ var product_infovue_type_template_id_15a1200a_render = function render() {
|
|
|
22943
22943
|
})], 2) : _vm._e();
|
|
22944
22944
|
};
|
|
22945
22945
|
|
|
22946
|
-
var
|
|
22946
|
+
var product_infovue_type_template_id_e116ecb2_staticRenderFns = [];
|
|
22947
22947
|
|
|
22948
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
22948
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=e116ecb2&
|
|
22949
22949
|
|
|
22950
22950
|
// EXTERNAL MODULE: ./node_modules/md5/md5.js
|
|
22951
22951
|
var md5 = __webpack_require__(47);
|
|
@@ -23606,7 +23606,9 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23606
23606
|
BxtProductInfo.prototype.change = function (options) {
|
|
23607
23607
|
var _this = this;
|
|
23608
23608
|
var self = this;
|
|
23609
|
-
|
|
23609
|
+
if (!options.eleData || !['title'].includes(options.eleData.key)) {
|
|
23610
|
+
self.requiestRecommendValues();
|
|
23611
|
+
}
|
|
23610
23612
|
if (options.type === 'change') {
|
|
23611
23613
|
self.$nextTick(function () {
|
|
23612
23614
|
self.$emit('change', self.productData, Object(tslib_es6["a" /* __assign */])(Object(tslib_es6["a" /* __assign */])({}, options), { errorMsg: self.changeProduct(self.productData, options) }), _this);
|
|
@@ -23758,11 +23760,11 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23758
23760
|
return [4, createdProductDataToCalc(inputData, {
|
|
23759
23761
|
groupKey: groupData.key,
|
|
23760
23762
|
productKey: productData.key
|
|
23761
|
-
})];
|
|
23763
|
+
}).catch(function () { })];
|
|
23762
23764
|
case 1:
|
|
23763
23765
|
calcData = _b.sent();
|
|
23764
23766
|
reqParams = [];
|
|
23765
|
-
calcInputData = JSON.parse(calcData.jd);
|
|
23767
|
+
calcInputData = calcData && JSON.parse(calcData.jd);
|
|
23766
23768
|
calcProductData = calcInputData && calcInputData.productGroupList[0].prodOrderList[0];
|
|
23767
23769
|
if (calcProductData && calcProductData.mulInsOrderList) {
|
|
23768
23770
|
calcProductData.mulInsOrderList.forEach(function (ins) {
|
|
@@ -23867,8 +23869,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23867
23869
|
|
|
23868
23870
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
23869
23871
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
23870
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
23871
|
-
var
|
|
23872
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=e116ecb2&prod&lang=css&
|
|
23873
|
+
var product_infovue_type_style_index_0_id_e116ecb2_prod_lang_css_ = __webpack_require__(226);
|
|
23872
23874
|
|
|
23873
23875
|
// CONCATENATED MODULE: ./packages/product-info/index.vue
|
|
23874
23876
|
|
|
@@ -23881,8 +23883,8 @@ var product_infovue_type_style_index_0_id_15a1200a_prod_lang_css_ = __webpack_re
|
|
|
23881
23883
|
|
|
23882
23884
|
var product_info_component = normalizeComponent(
|
|
23883
23885
|
packages_product_infovue_type_script_lang_ts_,
|
|
23884
|
-
|
|
23885
|
-
|
|
23886
|
+
product_infovue_type_template_id_e116ecb2_render,
|
|
23887
|
+
product_infovue_type_template_id_e116ecb2_staticRenderFns,
|
|
23886
23888
|
false,
|
|
23887
23889
|
null,
|
|
23888
23890
|
null,
|
|
@@ -1081,7 +1081,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
1081
1081
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
1082
1082
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
1083
1083
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
1084
|
-
var curEle = {};
|
|
1084
|
+
var curEle = curIns ? {} : null;
|
|
1085
1085
|
if (curIns) {
|
|
1086
1086
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
1087
1087
|
}
|
|
@@ -4905,7 +4905,7 @@ function initInsuranceData(insData) {
|
|
|
4905
4905
|
e.placeholder = e.placeholder || '请输入保费';
|
|
4906
4906
|
break;
|
|
4907
4907
|
}
|
|
4908
|
-
if (e.optConf && e.optConf.length) {
|
|
4908
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
4909
4909
|
var options = [];
|
|
4910
4910
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
4911
4911
|
options.push({
|
package/lib/person-info/index.js
CHANGED
|
@@ -1081,7 +1081,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
1081
1081
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
1082
1082
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
1083
1083
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
1084
|
-
var curEle = {};
|
|
1084
|
+
var curEle = curIns ? {} : null;
|
|
1085
1085
|
if (curIns) {
|
|
1086
1086
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
1087
1087
|
}
|
|
@@ -4990,7 +4990,7 @@ function initInsuranceData(insData) {
|
|
|
4990
4990
|
e.placeholder = e.placeholder || '请输入保费';
|
|
4991
4991
|
break;
|
|
4992
4992
|
}
|
|
4993
|
-
if (e.optConf && e.optConf.length) {
|
|
4993
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
4994
4994
|
var options = [];
|
|
4995
4995
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
4996
4996
|
options.push({
|
|
@@ -1535,7 +1535,7 @@ function initInsuranceData(insData) {
|
|
|
1535
1535
|
e.placeholder = e.placeholder || '请输入保费';
|
|
1536
1536
|
break;
|
|
1537
1537
|
}
|
|
1538
|
-
if (e.optConf && e.optConf.length) {
|
|
1538
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
1539
1539
|
var options = [];
|
|
1540
1540
|
for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
1541
1541
|
options.push({
|
|
@@ -4157,7 +4157,7 @@ function restrictInsurancesInProduct(_a) {
|
|
|
4157
4157
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\d+)(\.*\w*)(%)/g, 'verifyData.i$2$3');
|
|
4158
4158
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
4159
4159
|
var curIns = productData.mulInsOrderList.find(function (ins) { return ins.key === restrict.rInsKey; });
|
|
4160
|
-
var curEle = {};
|
|
4160
|
+
var curEle = curIns ? {} : null;
|
|
4161
4161
|
if (curIns) {
|
|
4162
4162
|
curEle = curIns.eleOrderList.find(function (e) { return e.key === restrict.rEleKey; });
|
|
4163
4163
|
}
|
|
@@ -12961,8 +12961,8 @@ function isSlowBuffer (obj) {
|
|
|
12961
12961
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12962
12962
|
|
|
12963
12963
|
"use strict";
|
|
12964
|
-
/* harmony import */ var
|
|
12965
|
-
/* harmony import */ var
|
|
12964
|
+
/* 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_e116ecb2_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(188);
|
|
12965
|
+
/* 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_e116ecb2_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_e116ecb2_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
12966
12966
|
/* unused harmony reexport * */
|
|
12967
12967
|
|
|
12968
12968
|
|
|
@@ -12976,7 +12976,7 @@ function isSlowBuffer (obj) {
|
|
|
12976
12976
|
// ESM COMPAT FLAG
|
|
12977
12977
|
__webpack_require__.r(__webpack_exports__);
|
|
12978
12978
|
|
|
12979
|
-
// 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/product-info/index.vue?vue&type=template&id=
|
|
12979
|
+
// 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/product-info/index.vue?vue&type=template&id=e116ecb2&
|
|
12980
12980
|
var render = function render() {
|
|
12981
12981
|
var _vm = this,
|
|
12982
12982
|
_c = _vm._self._c,
|
|
@@ -13262,7 +13262,7 @@ var render = function render() {
|
|
|
13262
13262
|
|
|
13263
13263
|
var staticRenderFns = [];
|
|
13264
13264
|
|
|
13265
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
13265
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=e116ecb2&
|
|
13266
13266
|
|
|
13267
13267
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
13268
13268
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -13952,7 +13952,9 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
13952
13952
|
BxtProductInfo.prototype.change = function (options) {
|
|
13953
13953
|
var _this = this;
|
|
13954
13954
|
var self = this;
|
|
13955
|
-
|
|
13955
|
+
if (!options.eleData || !['title'].includes(options.eleData.key)) {
|
|
13956
|
+
self.requiestRecommendValues();
|
|
13957
|
+
}
|
|
13956
13958
|
if (options.type === 'change') {
|
|
13957
13959
|
self.$nextTick(function () {
|
|
13958
13960
|
self.$emit('change', self.productData, Object(tslib_es6["a" /* __assign */])(Object(tslib_es6["a" /* __assign */])({}, options), { errorMsg: self.changeProduct(self.productData, options) }), _this);
|
|
@@ -14104,11 +14106,11 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
14104
14106
|
return [4, createdProductDataToCalc(inputData, {
|
|
14105
14107
|
groupKey: groupData.key,
|
|
14106
14108
|
productKey: productData.key
|
|
14107
|
-
})];
|
|
14109
|
+
}).catch(function () { })];
|
|
14108
14110
|
case 1:
|
|
14109
14111
|
calcData = _b.sent();
|
|
14110
14112
|
reqParams = [];
|
|
14111
|
-
calcInputData = JSON.parse(calcData.jd);
|
|
14113
|
+
calcInputData = calcData && JSON.parse(calcData.jd);
|
|
14112
14114
|
calcProductData = calcInputData && calcInputData.productGroupList[0].prodOrderList[0];
|
|
14113
14115
|
if (calcProductData && calcProductData.mulInsOrderList) {
|
|
14114
14116
|
calcProductData.mulInsOrderList.forEach(function (ins) {
|
|
@@ -14213,8 +14215,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
14213
14215
|
|
|
14214
14216
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
14215
14217
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
14216
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
14217
|
-
var
|
|
14218
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=e116ecb2&prod&lang=css&
|
|
14219
|
+
var product_infovue_type_style_index_0_id_e116ecb2_prod_lang_css_ = __webpack_require__(234);
|
|
14218
14220
|
|
|
14219
14221
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
14220
14222
|
var componentNormalizer = __webpack_require__(8);
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ export function initInsuranceData(insData : IProdInsurance) : void {
|
|
|
53
53
|
e.placeholder = e.placeholder || '请输入保费';
|
|
54
54
|
break;
|
|
55
55
|
}
|
|
56
|
-
if (e.optConf && e.optConf.length) {
|
|
56
|
+
if (e.optConf && e.optConf.length && e.optConf[1]) {
|
|
57
57
|
let options : any = [];
|
|
58
58
|
for (let i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
|
|
59
59
|
options.push({
|
|
@@ -662,7 +662,7 @@ export function restrictInsurancesInProduct({
|
|
|
662
662
|
restrict.rCondition = restrict.rCondition.replace(/(%)(\w*\.*\w*)(%)/g, 'verifyData.$2');
|
|
663
663
|
|
|
664
664
|
const curIns = (<IProdInsurance []>productData.mulInsOrderList).find(ins => ins.key === restrict.rInsKey) as IProdInsurance;
|
|
665
|
-
let curEle : any = {}
|
|
665
|
+
let curEle : any = curIns ? {} : null
|
|
666
666
|
if (curIns) {
|
|
667
667
|
curEle = (<IInsElement []>curIns.eleOrderList).find(e => e.key === restrict.rEleKey);
|
|
668
668
|
}
|
|
@@ -300,7 +300,9 @@ export default class BxtProductInfo extends Vue {
|
|
|
300
300
|
}
|
|
301
301
|
change(options) {
|
|
302
302
|
const self = this;
|
|
303
|
-
|
|
303
|
+
if (!options.eleData || !['title'].includes(options.eleData.key)) {
|
|
304
|
+
self.requiestRecommendValues();
|
|
305
|
+
}
|
|
304
306
|
if (options.type === 'change') {
|
|
305
307
|
self.$nextTick(() => {
|
|
306
308
|
self.$emit(
|
|
@@ -450,10 +452,10 @@ export default class BxtProductInfo extends Vue {
|
|
|
450
452
|
const calcData = await createdProductDataToCalc(inputData, {
|
|
451
453
|
groupKey: groupData.key,
|
|
452
454
|
productKey: productData.key
|
|
453
|
-
});
|
|
455
|
+
}).catch(() => {});
|
|
454
456
|
|
|
455
457
|
const reqParams: any = [];
|
|
456
|
-
const calcInputData = JSON.parse(calcData.jd);
|
|
458
|
+
const calcInputData = calcData && JSON.parse(calcData.jd);
|
|
457
459
|
const calcProductData = calcInputData && calcInputData.productGroupList[0].prodOrderList[0];
|
|
458
460
|
if (calcProductData && calcProductData.mulInsOrderList) {
|
|
459
461
|
calcProductData.mulInsOrderList.forEach(ins => {
|