bxs-tools-ui 1.4.0-1 → 1.4.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.
- package/lib/add-and-take/index.js +10 -5
- package/lib/adjust-baoe/index.js +10 -5
- package/lib/bxs-utils/index.js +10 -5
- package/lib/index.js +36 -59
- package/lib/insure-calculate/index.js +10 -5
- package/lib/person-info/index.js +17 -26
- package/lib/product-info/index.js +21 -30
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/common.ts +3 -0
- package/packages/bxs-utils/planbook/person.ts +1 -1
- package/packages/bxs-utils/planbook/product.ts +21 -7
- package/packages/person-info/index.vue +0 -15
- package/packages/planbook-input/components/person-pop.vue +0 -15
- package/packages/product-info/index.vue +1 -17
|
@@ -537,6 +537,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
537
537
|
}
|
|
538
538
|
function calcTotalBaof(productGroupList) {
|
|
539
539
|
var totalBaof = 0;
|
|
540
|
+
if (!productGroupList) {
|
|
541
|
+
return totalBaof;
|
|
542
|
+
}
|
|
540
543
|
productGroupList.map(function (group) {
|
|
541
544
|
if (group.isHide) {
|
|
542
545
|
return;
|
|
@@ -720,7 +723,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
720
723
|
e.label = '投保人配偶信息';
|
|
721
724
|
break;
|
|
722
725
|
default:
|
|
723
|
-
e.label = e.label
|
|
726
|
+
e.label = e.label || person.label || '人员信息';
|
|
724
727
|
break;
|
|
725
728
|
}
|
|
726
729
|
break;
|
|
@@ -1527,14 +1530,15 @@ function initProductData(prodData) {
|
|
|
1527
1530
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
1528
1531
|
var _a;
|
|
1529
1532
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
1530
|
-
var
|
|
1533
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
1531
1534
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
1532
1535
|
switch (_b.label) {
|
|
1533
1536
|
case 0:
|
|
1534
|
-
|
|
1537
|
+
if (!prodData) {
|
|
1538
|
+
return [2, prodData];
|
|
1539
|
+
}
|
|
1535
1540
|
productVerifyData = null;
|
|
1536
|
-
if (!
|
|
1537
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
1541
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
1538
1542
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
1539
1543
|
case 1:
|
|
1540
1544
|
productVerifyData = _b.sent();
|
|
@@ -1543,6 +1547,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
1543
1547
|
productVerifyData = prodVerifyData;
|
|
1544
1548
|
_b.label = 3;
|
|
1545
1549
|
case 3:
|
|
1550
|
+
hasProduct = prodData.mulInsOrderList;
|
|
1546
1551
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
1547
1552
|
hasPersonData = personData && personData.personOrderList;
|
|
1548
1553
|
personOrderList = null;
|
package/lib/adjust-baoe/index.js
CHANGED
|
@@ -535,6 +535,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
535
535
|
}
|
|
536
536
|
function calcTotalBaof(productGroupList) {
|
|
537
537
|
var totalBaof = 0;
|
|
538
|
+
if (!productGroupList) {
|
|
539
|
+
return totalBaof;
|
|
540
|
+
}
|
|
538
541
|
productGroupList.map(function (group) {
|
|
539
542
|
if (group.isHide) {
|
|
540
543
|
return;
|
|
@@ -18923,7 +18926,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
18923
18926
|
e.label = '投保人配偶信息';
|
|
18924
18927
|
break;
|
|
18925
18928
|
default:
|
|
18926
|
-
e.label = e.label
|
|
18929
|
+
e.label = e.label || person.label || '人员信息';
|
|
18927
18930
|
break;
|
|
18928
18931
|
}
|
|
18929
18932
|
break;
|
|
@@ -19675,14 +19678,15 @@ function initProductData(prodData) {
|
|
|
19675
19678
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
19676
19679
|
var _a;
|
|
19677
19680
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
19678
|
-
var
|
|
19681
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
19679
19682
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
19680
19683
|
switch (_b.label) {
|
|
19681
19684
|
case 0:
|
|
19682
|
-
|
|
19685
|
+
if (!prodData) {
|
|
19686
|
+
return [2, prodData];
|
|
19687
|
+
}
|
|
19683
19688
|
productVerifyData = null;
|
|
19684
|
-
if (!
|
|
19685
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
19689
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
19686
19690
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
19687
19691
|
case 1:
|
|
19688
19692
|
productVerifyData = _b.sent();
|
|
@@ -19691,6 +19695,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
19691
19695
|
productVerifyData = prodVerifyData;
|
|
19692
19696
|
_b.label = 3;
|
|
19693
19697
|
case 3:
|
|
19698
|
+
hasProduct = prodData.mulInsOrderList;
|
|
19694
19699
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
19695
19700
|
hasPersonData = personData && personData.personOrderList;
|
|
19696
19701
|
personOrderList = null;
|
package/lib/bxs-utils/index.js
CHANGED
|
@@ -535,6 +535,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
535
535
|
}
|
|
536
536
|
function calcTotalBaof(productGroupList) {
|
|
537
537
|
var totalBaof = 0;
|
|
538
|
+
if (!productGroupList) {
|
|
539
|
+
return totalBaof;
|
|
540
|
+
}
|
|
538
541
|
productGroupList.map(function (group) {
|
|
539
542
|
if (group.isHide) {
|
|
540
543
|
return;
|
|
@@ -19152,7 +19155,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
19152
19155
|
e.label = '投保人配偶信息';
|
|
19153
19156
|
break;
|
|
19154
19157
|
default:
|
|
19155
|
-
e.label = e.label
|
|
19158
|
+
e.label = e.label || person.label || '人员信息';
|
|
19156
19159
|
break;
|
|
19157
19160
|
}
|
|
19158
19161
|
break;
|
|
@@ -19938,14 +19941,15 @@ function initProductData(prodData) {
|
|
|
19938
19941
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
19939
19942
|
var _a;
|
|
19940
19943
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
19941
|
-
var
|
|
19944
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
19942
19945
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
19943
19946
|
switch (_b.label) {
|
|
19944
19947
|
case 0:
|
|
19945
|
-
|
|
19948
|
+
if (!prodData) {
|
|
19949
|
+
return [2, prodData];
|
|
19950
|
+
}
|
|
19946
19951
|
productVerifyData = null;
|
|
19947
|
-
if (!
|
|
19948
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
19952
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
19949
19953
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
19950
19954
|
case 1:
|
|
19951
19955
|
productVerifyData = _b.sent();
|
|
@@ -19954,6 +19958,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
19954
19958
|
productVerifyData = prodVerifyData;
|
|
19955
19959
|
_b.label = 3;
|
|
19956
19960
|
case 3:
|
|
19961
|
+
hasProduct = prodData.mulInsOrderList;
|
|
19957
19962
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
19958
19963
|
hasPersonData = personData && personData.personOrderList;
|
|
19959
19964
|
personOrderList = null;
|
package/lib/index.js
CHANGED
|
@@ -18507,6 +18507,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
18507
18507
|
}
|
|
18508
18508
|
function calcTotalBaof(productGroupList) {
|
|
18509
18509
|
var totalBaof = 0;
|
|
18510
|
+
if (!productGroupList) {
|
|
18511
|
+
return totalBaof;
|
|
18512
|
+
}
|
|
18510
18513
|
productGroupList.map(function (group) {
|
|
18511
18514
|
if (group.isHide) {
|
|
18512
18515
|
return;
|
|
@@ -20889,7 +20892,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
20889
20892
|
e.label = '投保人配偶信息';
|
|
20890
20893
|
break;
|
|
20891
20894
|
default:
|
|
20892
|
-
e.label = e.label
|
|
20895
|
+
e.label = e.label || person.label || '人员信息';
|
|
20893
20896
|
break;
|
|
20894
20897
|
}
|
|
20895
20898
|
break;
|
|
@@ -23000,14 +23003,15 @@ function initProductData(prodData) {
|
|
|
23000
23003
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
23001
23004
|
var _a;
|
|
23002
23005
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
23003
|
-
var
|
|
23006
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
23004
23007
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
23005
23008
|
switch (_b.label) {
|
|
23006
23009
|
case 0:
|
|
23007
|
-
|
|
23010
|
+
if (!prodData) {
|
|
23011
|
+
return [2, prodData];
|
|
23012
|
+
}
|
|
23008
23013
|
productVerifyData = null;
|
|
23009
|
-
if (!
|
|
23010
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
23014
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
23011
23015
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
23012
23016
|
case 1:
|
|
23013
23017
|
productVerifyData = _b.sent();
|
|
@@ -23016,6 +23020,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
23016
23020
|
productVerifyData = prodVerifyData;
|
|
23017
23021
|
_b.label = 3;
|
|
23018
23022
|
case 3:
|
|
23023
|
+
hasProduct = prodData.mulInsOrderList;
|
|
23019
23024
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
23020
23025
|
hasPersonData = personData && personData.personOrderList;
|
|
23021
23026
|
personOrderList = null;
|
|
@@ -30693,8 +30698,8 @@ module.exports = function spread(callback) {
|
|
|
30693
30698
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30694
30699
|
|
|
30695
30700
|
"use strict";
|
|
30696
|
-
/* harmony import */ var
|
|
30697
|
-
/* harmony import */ var
|
|
30701
|
+
/* 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_bcf28ff2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88);
|
|
30702
|
+
/* 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_bcf28ff2_prod_lang_postcss___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_bcf28ff2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__);
|
|
30698
30703
|
/* unused harmony reexport * */
|
|
30699
30704
|
|
|
30700
30705
|
|
|
@@ -34052,8 +34057,8 @@ function isSlowBuffer (obj) {
|
|
|
34052
34057
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
34053
34058
|
|
|
34054
34059
|
"use strict";
|
|
34055
|
-
/* harmony import */ var
|
|
34056
|
-
/* harmony import */ var
|
|
34060
|
+
/* 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_56388a14_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(92);
|
|
34061
|
+
/* 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_56388a14_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_56388a14_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
34057
34062
|
/* unused harmony reexport * */
|
|
34058
34063
|
|
|
34059
34064
|
|
|
@@ -39289,8 +39294,8 @@ var insure_calculate_component = normalizeComponent(
|
|
|
39289
39294
|
)
|
|
39290
39295
|
|
|
39291
39296
|
/* harmony default export */ var insure_calculate = (insure_calculate_component.exports);
|
|
39292
|
-
// 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/person-info/index.vue?vue&type=template&id=
|
|
39293
|
-
var
|
|
39297
|
+
// 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/person-info/index.vue?vue&type=template&id=bcf28ff2&
|
|
39298
|
+
var person_infovue_type_template_id_bcf28ff2_render = function render() {
|
|
39294
39299
|
var _vm = this,
|
|
39295
39300
|
_c = _vm._self._c,
|
|
39296
39301
|
_setup = _vm._self._setupProxy;
|
|
@@ -39502,9 +39507,9 @@ var person_infovue_type_template_id_739739f6_render = function render() {
|
|
|
39502
39507
|
})], 1) : _vm._e()] : _vm._e()];
|
|
39503
39508
|
})], 2)], 1);
|
|
39504
39509
|
};
|
|
39505
|
-
var
|
|
39510
|
+
var person_infovue_type_template_id_bcf28ff2_staticRenderFns = [];
|
|
39506
39511
|
|
|
39507
|
-
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=
|
|
39512
|
+
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=bcf28ff2&
|
|
39508
39513
|
|
|
39509
39514
|
// 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/components/form-item/title-item.vue?vue&type=template&id=0bfe2bcc&
|
|
39510
39515
|
var title_itemvue_type_template_id_0bfe2bcc_render = function render() {
|
|
@@ -40343,7 +40348,7 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40343
40348
|
BxtPersonInfo.prototype.change = function (ele) {
|
|
40344
40349
|
if (ele === void 0) { ele = {}; }
|
|
40345
40350
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
40346
|
-
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1
|
|
40351
|
+
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1;
|
|
40347
40352
|
return Object(tslib_es6["e" /* __generator */])(this, function (_b) {
|
|
40348
40353
|
switch (_b.label) {
|
|
40349
40354
|
case 0:
|
|
@@ -40369,23 +40374,9 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40369
40374
|
promises_1.push(Object(product["d" /* productDataHandler */])(p, verifyData && verifyData[p.key], allPersonsData));
|
|
40370
40375
|
});
|
|
40371
40376
|
});
|
|
40372
|
-
hasMultipleInsuredProduct = false;
|
|
40373
|
-
if (verifyData) {
|
|
40374
|
-
for (k in verifyData) {
|
|
40375
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
40376
|
-
hasMultipleInsuredProduct = true;
|
|
40377
|
-
}
|
|
40378
|
-
}
|
|
40379
|
-
}
|
|
40380
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
40381
|
-
window.appBridge.showLoading();
|
|
40382
|
-
}
|
|
40383
40377
|
return [4, Promise.all(promises_1)];
|
|
40384
40378
|
case 1:
|
|
40385
40379
|
_b.sent();
|
|
40386
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
40387
|
-
window.appBridge.hideLoading();
|
|
40388
|
-
}
|
|
40389
40380
|
_b.label = 2;
|
|
40390
40381
|
case 2:
|
|
40391
40382
|
if (personData.key && ele.key && !['age'].includes(ele.key)) {
|
|
@@ -40475,8 +40466,8 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40475
40466
|
|
|
40476
40467
|
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=script&lang=ts&
|
|
40477
40468
|
/* harmony default export */ var packages_person_infovue_type_script_lang_ts_ = (person_infovue_type_script_lang_ts_);
|
|
40478
|
-
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=
|
|
40479
|
-
var
|
|
40469
|
+
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=bcf28ff2&prod&lang=postcss&
|
|
40470
|
+
var person_infovue_type_style_index_0_id_bcf28ff2_prod_lang_postcss_ = __webpack_require__(206);
|
|
40480
40471
|
|
|
40481
40472
|
// CONCATENATED MODULE: ./packages/person-info/index.vue
|
|
40482
40473
|
|
|
@@ -40489,8 +40480,8 @@ var person_infovue_type_style_index_0_id_739739f6_prod_lang_postcss_ = __webpack
|
|
|
40489
40480
|
|
|
40490
40481
|
var person_info_component = normalizeComponent(
|
|
40491
40482
|
packages_person_infovue_type_script_lang_ts_,
|
|
40492
|
-
|
|
40493
|
-
|
|
40483
|
+
person_infovue_type_template_id_bcf28ff2_render,
|
|
40484
|
+
person_infovue_type_template_id_bcf28ff2_staticRenderFns,
|
|
40494
40485
|
false,
|
|
40495
40486
|
null,
|
|
40496
40487
|
null,
|
|
@@ -40499,8 +40490,8 @@ var person_info_component = normalizeComponent(
|
|
|
40499
40490
|
)
|
|
40500
40491
|
|
|
40501
40492
|
/* harmony default export */ var person_info = (person_info_component.exports);
|
|
40502
|
-
// 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=
|
|
40503
|
-
var
|
|
40493
|
+
// 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=56388a14&
|
|
40494
|
+
var product_infovue_type_template_id_56388a14_render = function render() {
|
|
40504
40495
|
var _vm = this,
|
|
40505
40496
|
_c = _vm._self._c,
|
|
40506
40497
|
_setup = _vm._self._setupProxy;
|
|
@@ -40810,9 +40801,9 @@ var product_infovue_type_template_id_633c1719_render = function render() {
|
|
|
40810
40801
|
})], 2)];
|
|
40811
40802
|
})], 2) : _vm._e();
|
|
40812
40803
|
};
|
|
40813
|
-
var
|
|
40804
|
+
var product_infovue_type_template_id_56388a14_staticRenderFns = [];
|
|
40814
40805
|
|
|
40815
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
40806
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=56388a14&
|
|
40816
40807
|
|
|
40817
40808
|
// EXTERNAL MODULE: ./node_modules/md5/md5.js
|
|
40818
40809
|
var md5 = __webpack_require__(50);
|
|
@@ -41448,29 +41439,15 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
41448
41439
|
};
|
|
41449
41440
|
BxtProductInfo.prototype.init = function () {
|
|
41450
41441
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
41451
|
-
var
|
|
41452
|
-
return Object(tslib_es6["e" /* __generator */])(this, function (
|
|
41453
|
-
switch (
|
|
41442
|
+
var productData, errorMsg;
|
|
41443
|
+
return Object(tslib_es6["e" /* __generator */])(this, function (_a) {
|
|
41444
|
+
switch (_a.label) {
|
|
41454
41445
|
case 0:
|
|
41455
|
-
|
|
41446
|
+
productData = this.productData;
|
|
41456
41447
|
this.requiestRecommendValues();
|
|
41457
|
-
hasMultipleInsuredProduct = false;
|
|
41458
|
-
if (verifyData) {
|
|
41459
|
-
for (k in verifyData) {
|
|
41460
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
41461
|
-
hasMultipleInsuredProduct = true;
|
|
41462
|
-
}
|
|
41463
|
-
}
|
|
41464
|
-
}
|
|
41465
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
41466
|
-
window.appBridge.showLoading();
|
|
41467
|
-
}
|
|
41468
41448
|
return [4, this.changeProduct(productData, {})];
|
|
41469
41449
|
case 1:
|
|
41470
|
-
errorMsg =
|
|
41471
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
41472
|
-
window.appBridge.hideLoading();
|
|
41473
|
-
}
|
|
41450
|
+
errorMsg = _a.sent();
|
|
41474
41451
|
this.$emit('change', productData, { errorMsg: errorMsg }, this);
|
|
41475
41452
|
return [2];
|
|
41476
41453
|
}
|
|
@@ -41824,8 +41801,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
41824
41801
|
|
|
41825
41802
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
41826
41803
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
41827
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
41828
|
-
var
|
|
41804
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=56388a14&prod&lang=css&
|
|
41805
|
+
var product_infovue_type_style_index_0_id_56388a14_prod_lang_css_ = __webpack_require__(232);
|
|
41829
41806
|
|
|
41830
41807
|
// CONCATENATED MODULE: ./packages/product-info/index.vue
|
|
41831
41808
|
|
|
@@ -41838,8 +41815,8 @@ var product_infovue_type_style_index_0_id_633c1719_prod_lang_css_ = __webpack_re
|
|
|
41838
41815
|
|
|
41839
41816
|
var product_info_component = normalizeComponent(
|
|
41840
41817
|
packages_product_infovue_type_script_lang_ts_,
|
|
41841
|
-
|
|
41842
|
-
|
|
41818
|
+
product_infovue_type_template_id_56388a14_render,
|
|
41819
|
+
product_infovue_type_template_id_56388a14_staticRenderFns,
|
|
41843
41820
|
false,
|
|
41844
41821
|
null,
|
|
41845
41822
|
null,
|
|
@@ -535,6 +535,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
535
535
|
}
|
|
536
536
|
function calcTotalBaof(productGroupList) {
|
|
537
537
|
var totalBaof = 0;
|
|
538
|
+
if (!productGroupList) {
|
|
539
|
+
return totalBaof;
|
|
540
|
+
}
|
|
538
541
|
productGroupList.map(function (group) {
|
|
539
542
|
if (group.isHide) {
|
|
540
543
|
return;
|
|
@@ -19882,7 +19885,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
19882
19885
|
e.label = '投保人配偶信息';
|
|
19883
19886
|
break;
|
|
19884
19887
|
default:
|
|
19885
|
-
e.label = e.label
|
|
19888
|
+
e.label = e.label || person.label || '人员信息';
|
|
19886
19889
|
break;
|
|
19887
19890
|
}
|
|
19888
19891
|
break;
|
|
@@ -20668,14 +20671,15 @@ function initProductData(prodData) {
|
|
|
20668
20671
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
20669
20672
|
var _a;
|
|
20670
20673
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
20671
|
-
var
|
|
20674
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
20672
20675
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
20673
20676
|
switch (_b.label) {
|
|
20674
20677
|
case 0:
|
|
20675
|
-
|
|
20678
|
+
if (!prodData) {
|
|
20679
|
+
return [2, prodData];
|
|
20680
|
+
}
|
|
20676
20681
|
productVerifyData = null;
|
|
20677
|
-
if (!
|
|
20678
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
20682
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
20679
20683
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
20680
20684
|
case 1:
|
|
20681
20685
|
productVerifyData = _b.sent();
|
|
@@ -20684,6 +20688,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
20684
20688
|
productVerifyData = prodVerifyData;
|
|
20685
20689
|
_b.label = 3;
|
|
20686
20690
|
case 3:
|
|
20691
|
+
hasProduct = prodData.mulInsOrderList;
|
|
20687
20692
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
20688
20693
|
hasPersonData = personData && personData.personOrderList;
|
|
20689
20694
|
personOrderList = null;
|
package/lib/person-info/index.js
CHANGED
|
@@ -535,6 +535,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
535
535
|
}
|
|
536
536
|
function calcTotalBaof(productGroupList) {
|
|
537
537
|
var totalBaof = 0;
|
|
538
|
+
if (!productGroupList) {
|
|
539
|
+
return totalBaof;
|
|
540
|
+
}
|
|
538
541
|
productGroupList.map(function (group) {
|
|
539
542
|
if (group.isHide) {
|
|
540
543
|
return;
|
|
@@ -19882,7 +19885,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
19882
19885
|
e.label = '投保人配偶信息';
|
|
19883
19886
|
break;
|
|
19884
19887
|
default:
|
|
19885
|
-
e.label = e.label
|
|
19888
|
+
e.label = e.label || person.label || '人员信息';
|
|
19886
19889
|
break;
|
|
19887
19890
|
}
|
|
19888
19891
|
break;
|
|
@@ -20668,14 +20671,15 @@ function initProductData(prodData) {
|
|
|
20668
20671
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
20669
20672
|
var _a;
|
|
20670
20673
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
20671
|
-
var
|
|
20674
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
20672
20675
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
20673
20676
|
switch (_b.label) {
|
|
20674
20677
|
case 0:
|
|
20675
|
-
|
|
20678
|
+
if (!prodData) {
|
|
20679
|
+
return [2, prodData];
|
|
20680
|
+
}
|
|
20676
20681
|
productVerifyData = null;
|
|
20677
|
-
if (!
|
|
20678
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
20682
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
20679
20683
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
20680
20684
|
case 1:
|
|
20681
20685
|
productVerifyData = _b.sent();
|
|
@@ -20684,6 +20688,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
20684
20688
|
productVerifyData = prodVerifyData;
|
|
20685
20689
|
_b.label = 3;
|
|
20686
20690
|
case 3:
|
|
20691
|
+
hasProduct = prodData.mulInsOrderList;
|
|
20687
20692
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
20688
20693
|
hasPersonData = personData && personData.personOrderList;
|
|
20689
20694
|
personOrderList = null;
|
|
@@ -25804,8 +25809,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
25804
25809
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
25805
25810
|
|
|
25806
25811
|
"use strict";
|
|
25807
|
-
/* harmony import */ var
|
|
25808
|
-
/* harmony import */ var
|
|
25812
|
+
/* 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_bcf28ff2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(131);
|
|
25813
|
+
/* 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_bcf28ff2_prod_lang_postcss___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_bcf28ff2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__);
|
|
25809
25814
|
/* unused harmony reexport * */
|
|
25810
25815
|
|
|
25811
25816
|
|
|
@@ -25843,7 +25848,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
25843
25848
|
// ESM COMPAT FLAG
|
|
25844
25849
|
__webpack_require__.r(__webpack_exports__);
|
|
25845
25850
|
|
|
25846
|
-
// 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/person-info/index.vue?vue&type=template&id=
|
|
25851
|
+
// 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/person-info/index.vue?vue&type=template&id=bcf28ff2&
|
|
25847
25852
|
var render = function render() {
|
|
25848
25853
|
var _vm = this,
|
|
25849
25854
|
_c = _vm._self._c,
|
|
@@ -26058,7 +26063,7 @@ var render = function render() {
|
|
|
26058
26063
|
};
|
|
26059
26064
|
var staticRenderFns = [];
|
|
26060
26065
|
|
|
26061
|
-
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=
|
|
26066
|
+
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=bcf28ff2&
|
|
26062
26067
|
|
|
26063
26068
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
26064
26069
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -26726,7 +26731,7 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
26726
26731
|
BxtPersonInfo.prototype.change = function (ele) {
|
|
26727
26732
|
if (ele === void 0) { ele = {}; }
|
|
26728
26733
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
26729
|
-
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1
|
|
26734
|
+
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1;
|
|
26730
26735
|
return Object(tslib_es6["e" /* __generator */])(this, function (_b) {
|
|
26731
26736
|
switch (_b.label) {
|
|
26732
26737
|
case 0:
|
|
@@ -26752,23 +26757,9 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
26752
26757
|
promises_1.push(Object(bxs_utils["productDataHandler"])(p, verifyData && verifyData[p.key], allPersonsData));
|
|
26753
26758
|
});
|
|
26754
26759
|
});
|
|
26755
|
-
hasMultipleInsuredProduct = false;
|
|
26756
|
-
if (verifyData) {
|
|
26757
|
-
for (k in verifyData) {
|
|
26758
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
26759
|
-
hasMultipleInsuredProduct = true;
|
|
26760
|
-
}
|
|
26761
|
-
}
|
|
26762
|
-
}
|
|
26763
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
26764
|
-
window.appBridge.showLoading();
|
|
26765
|
-
}
|
|
26766
26760
|
return [4, Promise.all(promises_1)];
|
|
26767
26761
|
case 1:
|
|
26768
26762
|
_b.sent();
|
|
26769
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
26770
|
-
window.appBridge.hideLoading();
|
|
26771
|
-
}
|
|
26772
26763
|
_b.label = 2;
|
|
26773
26764
|
case 2:
|
|
26774
26765
|
if (personData.key && ele.key && !['age'].includes(ele.key)) {
|
|
@@ -26858,8 +26849,8 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
26858
26849
|
|
|
26859
26850
|
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=script&lang=ts&
|
|
26860
26851
|
/* harmony default export */ var packages_person_infovue_type_script_lang_ts_ = (person_infovue_type_script_lang_ts_);
|
|
26861
|
-
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=
|
|
26862
|
-
var
|
|
26852
|
+
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=bcf28ff2&prod&lang=postcss&
|
|
26853
|
+
var person_infovue_type_style_index_0_id_bcf28ff2_prod_lang_postcss_ = __webpack_require__(214);
|
|
26863
26854
|
|
|
26864
26855
|
// CONCATENATED MODULE: ./packages/person-info/index.vue
|
|
26865
26856
|
|
|
@@ -535,6 +535,9 @@ function convertEleOrderListToObj(obj) {
|
|
|
535
535
|
}
|
|
536
536
|
function calcTotalBaof(productGroupList) {
|
|
537
537
|
var totalBaof = 0;
|
|
538
|
+
if (!productGroupList) {
|
|
539
|
+
return totalBaof;
|
|
540
|
+
}
|
|
538
541
|
productGroupList.map(function (group) {
|
|
539
542
|
if (group.isHide) {
|
|
540
543
|
return;
|
|
@@ -19882,7 +19885,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
19882
19885
|
e.label = '投保人配偶信息';
|
|
19883
19886
|
break;
|
|
19884
19887
|
default:
|
|
19885
|
-
e.label = e.label
|
|
19888
|
+
e.label = e.label || person.label || '人员信息';
|
|
19886
19889
|
break;
|
|
19887
19890
|
}
|
|
19888
19891
|
break;
|
|
@@ -21425,14 +21428,15 @@ function initProductData(prodData) {
|
|
|
21425
21428
|
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
21426
21429
|
var _a;
|
|
21427
21430
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
21428
|
-
var
|
|
21431
|
+
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
21429
21432
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __generator */ "e"])(this, function (_b) {
|
|
21430
21433
|
switch (_b.label) {
|
|
21431
21434
|
case 0:
|
|
21432
|
-
|
|
21435
|
+
if (!prodData) {
|
|
21436
|
+
return [2, prodData];
|
|
21437
|
+
}
|
|
21433
21438
|
productVerifyData = null;
|
|
21434
|
-
if (!
|
|
21435
|
-
if (!prodVerifyData.multipleInsured) return [3, 2];
|
|
21439
|
+
if (!prodData.multipleInsured) return [3, 2];
|
|
21436
21440
|
return [4, multipleInsuredHandler(prodData, personData).catch(function () { })];
|
|
21437
21441
|
case 1:
|
|
21438
21442
|
productVerifyData = _b.sent();
|
|
@@ -21441,6 +21445,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
21441
21445
|
productVerifyData = prodVerifyData;
|
|
21442
21446
|
_b.label = 3;
|
|
21443
21447
|
case 3:
|
|
21448
|
+
hasProduct = prodData.mulInsOrderList;
|
|
21444
21449
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
21445
21450
|
hasPersonData = personData && personData.personOrderList;
|
|
21446
21451
|
personOrderList = null;
|
|
@@ -32549,8 +32554,8 @@ function isSlowBuffer (obj) {
|
|
|
32549
32554
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32550
32555
|
|
|
32551
32556
|
"use strict";
|
|
32552
|
-
/* harmony import */ var
|
|
32553
|
-
/* harmony import */ var
|
|
32557
|
+
/* 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_56388a14_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(135);
|
|
32558
|
+
/* 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_56388a14_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_56388a14_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
32554
32559
|
/* unused harmony reexport * */
|
|
32555
32560
|
|
|
32556
32561
|
|
|
@@ -32564,7 +32569,7 @@ function isSlowBuffer (obj) {
|
|
|
32564
32569
|
// ESM COMPAT FLAG
|
|
32565
32570
|
__webpack_require__.r(__webpack_exports__);
|
|
32566
32571
|
|
|
32567
|
-
// 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=
|
|
32572
|
+
// 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=56388a14&
|
|
32568
32573
|
var render = function render() {
|
|
32569
32574
|
var _vm = this,
|
|
32570
32575
|
_c = _vm._self._c,
|
|
@@ -32877,7 +32882,7 @@ var render = function render() {
|
|
|
32877
32882
|
};
|
|
32878
32883
|
var staticRenderFns = [];
|
|
32879
32884
|
|
|
32880
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
32885
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=56388a14&
|
|
32881
32886
|
|
|
32882
32887
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
32883
32888
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -33553,29 +33558,15 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
33553
33558
|
};
|
|
33554
33559
|
BxtProductInfo.prototype.init = function () {
|
|
33555
33560
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
33556
|
-
var
|
|
33557
|
-
return Object(tslib_es6["e" /* __generator */])(this, function (
|
|
33558
|
-
switch (
|
|
33561
|
+
var productData, errorMsg;
|
|
33562
|
+
return Object(tslib_es6["e" /* __generator */])(this, function (_a) {
|
|
33563
|
+
switch (_a.label) {
|
|
33559
33564
|
case 0:
|
|
33560
|
-
|
|
33565
|
+
productData = this.productData;
|
|
33561
33566
|
this.requiestRecommendValues();
|
|
33562
|
-
hasMultipleInsuredProduct = false;
|
|
33563
|
-
if (verifyData) {
|
|
33564
|
-
for (k in verifyData) {
|
|
33565
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
33566
|
-
hasMultipleInsuredProduct = true;
|
|
33567
|
-
}
|
|
33568
|
-
}
|
|
33569
|
-
}
|
|
33570
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
33571
|
-
window.appBridge.showLoading();
|
|
33572
|
-
}
|
|
33573
33567
|
return [4, this.changeProduct(productData, {})];
|
|
33574
33568
|
case 1:
|
|
33575
|
-
errorMsg =
|
|
33576
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
33577
|
-
window.appBridge.hideLoading();
|
|
33578
|
-
}
|
|
33569
|
+
errorMsg = _a.sent();
|
|
33579
33570
|
this.$emit('change', productData, { errorMsg: errorMsg }, this);
|
|
33580
33571
|
return [2];
|
|
33581
33572
|
}
|
|
@@ -33929,8 +33920,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
33929
33920
|
|
|
33930
33921
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
33931
33922
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
33932
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
33933
|
-
var
|
|
33923
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=56388a14&prod&lang=css&
|
|
33924
|
+
var product_infovue_type_style_index_0_id_56388a14_prod_lang_css_ = __webpack_require__(240);
|
|
33934
33925
|
|
|
33935
33926
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
33936
33927
|
var componentNormalizer = __webpack_require__(9);
|
package/package.json
CHANGED
|
@@ -49,6 +49,9 @@ export function convertEleOrderListToObj(obj : any) : any {
|
|
|
49
49
|
*/
|
|
50
50
|
export function calcTotalBaof(productGroupList : IPbProductGroup []) : number {
|
|
51
51
|
let totalBaof : number = 0;
|
|
52
|
+
if (!productGroupList) {
|
|
53
|
+
return totalBaof
|
|
54
|
+
}
|
|
52
55
|
productGroupList.map((group : IPbProductGroup) => {
|
|
53
56
|
if (group.isHide) {
|
|
54
57
|
return;
|
|
@@ -107,7 +107,7 @@ export function initPersonData(inputData : IPbInput, verifyData : any) : void {
|
|
|
107
107
|
e.label = '投保人配偶信息';
|
|
108
108
|
break;
|
|
109
109
|
default:
|
|
110
|
-
e.label = e.label
|
|
110
|
+
e.label = e.label || person.label || '人员信息';
|
|
111
111
|
break;
|
|
112
112
|
}
|
|
113
113
|
break;
|
|
@@ -52,15 +52,17 @@ export function initProductData(prodData : IPbProduct) : IPbProduct {
|
|
|
52
52
|
* @returns {IPbProduct} 产品数据(单个)
|
|
53
53
|
*/
|
|
54
54
|
export async function productDataHandler(prodData : IPbProduct, prodVerifyData : any, personData : IPbPersons) : Promise<IPbProduct> {
|
|
55
|
-
|
|
55
|
+
if (!prodData) {
|
|
56
|
+
return prodData
|
|
57
|
+
}
|
|
56
58
|
let productVerifyData : any = null
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
productVerifyData = prodVerifyData
|
|
62
|
-
}
|
|
59
|
+
if (prodData.multipleInsured) {
|
|
60
|
+
productVerifyData = await multipleInsuredHandler(prodData, personData).catch(() => {})
|
|
61
|
+
} else {
|
|
62
|
+
productVerifyData = prodVerifyData
|
|
63
63
|
}
|
|
64
|
+
|
|
65
|
+
const hasProduct = prodData.mulInsOrderList
|
|
64
66
|
const hasVerifyData = productVerifyData && Object.keys(productVerifyData).length
|
|
65
67
|
const hasPersonData = personData && personData.personOrderList
|
|
66
68
|
let personOrderList : any = null;
|
|
@@ -269,6 +271,16 @@ export async function productDataHandler(prodData : IPbProduct, prodVerifyData :
|
|
|
269
271
|
return prodData;
|
|
270
272
|
}
|
|
271
273
|
|
|
274
|
+
/**
|
|
275
|
+
* **处理多被保人,返回产品费率**
|
|
276
|
+
* - 是否新增第二被保人信息
|
|
277
|
+
* - 请求多被保人产品的费率
|
|
278
|
+
* @author Lizhao <lz@winbaoxian.com>
|
|
279
|
+
* @date 2023-12-28
|
|
280
|
+
* @param {IPbProduct} prodData 必传。产品数据(单个)
|
|
281
|
+
* @param {IPbPersons} personData 必传。人员信息,包括被保人、投保人、投保人配偶
|
|
282
|
+
* @returns 产品费率
|
|
283
|
+
*/
|
|
272
284
|
async function multipleInsuredHandler (prodData : IPbProduct, personData : IPbPersons) {
|
|
273
285
|
const personOrderList : IPbPerson [] = personData.personOrderList
|
|
274
286
|
if (!(personOrderList && personOrderList.length)) {
|
|
@@ -318,6 +330,8 @@ async function multipleInsuredHandler (prodData : IPbProduct, personData : IPbPe
|
|
|
318
330
|
|
|
319
331
|
/**
|
|
320
332
|
* **多被保人,获取并缓存多个险种信息的费率信息**
|
|
333
|
+
* @author Lizhao <lz@winbaoxian.com>
|
|
334
|
+
* @date 2023-12-28
|
|
321
335
|
* @param { any } params 必传。接口请求信息
|
|
322
336
|
* @returns {Promise<any>} 产品下所有险种的费率
|
|
323
337
|
*/
|
|
@@ -240,22 +240,7 @@ export default class BxtPersonInfo extends Vue {
|
|
|
240
240
|
promises.push(productDataHandler(p, verifyData && verifyData[p.key], allPersonsData));
|
|
241
241
|
});
|
|
242
242
|
});
|
|
243
|
-
|
|
244
|
-
let hasMultipleInsuredProduct = false;
|
|
245
|
-
if (verifyData) {
|
|
246
|
-
for (const k in verifyData) {
|
|
247
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
248
|
-
hasMultipleInsuredProduct = true;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
253
|
-
window.appBridge.showLoading();
|
|
254
|
-
}
|
|
255
243
|
await Promise.all(promises);
|
|
256
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
257
|
-
window.appBridge.hideLoading();
|
|
258
|
-
}
|
|
259
244
|
}
|
|
260
245
|
if (personData.key && ele.key && !['age'].includes(ele.key)) {
|
|
261
246
|
window.WeiyiStatSDK && window.WeiyiStatSDK.submit(`${personData.key}_${ele.key}`);
|
|
@@ -106,22 +106,7 @@ export default class BxtPersonPop extends Vue {
|
|
|
106
106
|
promises.push(productDataHandler(p, verifyData && verifyData[p.key], allPersonsData));
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
|
|
110
|
-
let hasMultipleInsuredProduct = false;
|
|
111
|
-
if (verifyData) {
|
|
112
|
-
for (const k in verifyData) {
|
|
113
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
114
|
-
hasMultipleInsuredProduct = true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
119
|
-
window.appBridge.showLoading();
|
|
120
|
-
}
|
|
121
109
|
await Promise.all(promises);
|
|
122
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
123
|
-
window.appBridge.hideLoading();
|
|
124
|
-
}
|
|
125
110
|
}
|
|
126
111
|
this.$emit('change');
|
|
127
112
|
this.closeSheet();
|
|
@@ -317,25 +317,9 @@ export default class BxtProductInfo extends Vue {
|
|
|
317
317
|
this.init();
|
|
318
318
|
}
|
|
319
319
|
async init() {
|
|
320
|
-
const { productData
|
|
320
|
+
const { productData } = this;
|
|
321
321
|
this.requiestRecommendValues();
|
|
322
|
-
|
|
323
|
-
let hasMultipleInsuredProduct = false;
|
|
324
|
-
if (verifyData) {
|
|
325
|
-
for (const k in verifyData) {
|
|
326
|
-
if (verifyData[k] && verifyData[k].multipleInsured) {
|
|
327
|
-
hasMultipleInsuredProduct = true;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
332
|
-
window.appBridge.showLoading();
|
|
333
|
-
}
|
|
334
322
|
const errorMsg = await this.changeProduct(productData, {});
|
|
335
|
-
if (hasMultipleInsuredProduct && window.appBridge) {
|
|
336
|
-
window.appBridge.hideLoading();
|
|
337
|
-
}
|
|
338
|
-
|
|
339
323
|
this.$emit('change', productData, { errorMsg }, this);
|
|
340
324
|
}
|
|
341
325
|
onChange(options: any = {}) {
|