bxs-tools-ui 1.5.2 → 1.5.3
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 +6 -3
- package/lib/adjust-baoe/index.js +6 -3
- package/lib/bxs-utils/index.js +6 -3
- package/lib/index.js +38 -28
- package/lib/insure-calculate/index.js +6 -3
- package/lib/person-info/index.js +21 -12
- package/lib/product-info/index.js +18 -11
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/product.ts +6 -3
- package/packages/person-info/index.vue +7 -2
- package/packages/planbook-input/components/person-pop.vue +13 -3
- package/packages/planbook-input/components/product-table.vue +5 -1
- package/packages/planbook-input/helper.js +5 -1
- package/packages/planbook-input/index.vue +10 -7
- package/packages/product-info/index.vue +3 -1
|
@@ -1527,7 +1527,7 @@ function initProductData(prodData) {
|
|
|
1527
1527
|
});
|
|
1528
1528
|
return prodData;
|
|
1529
1529
|
}
|
|
1530
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
1530
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
1531
1531
|
var _a;
|
|
1532
1532
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
1533
1533
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -1542,7 +1542,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
1542
1542
|
multipleInsuredHandler(personData);
|
|
1543
1543
|
}
|
|
1544
1544
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
1545
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
1545
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
1546
1546
|
case 1:
|
|
1547
1547
|
productVerifyData = _b.sent();
|
|
1548
1548
|
return [3, 3];
|
|
@@ -1761,8 +1761,9 @@ function multipleInsuredHandler(personData) {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
return personData;
|
|
1763
1763
|
}
|
|
1764
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
1764
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
1765
1765
|
var _a, _b;
|
|
1766
|
+
if (parmas === void 0) { parmas = {}; }
|
|
1766
1767
|
var personOrderList = personData.personOrderList;
|
|
1767
1768
|
if (!(personOrderList && personOrderList.length)) {
|
|
1768
1769
|
return null;
|
|
@@ -1787,6 +1788,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
1787
1788
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
1788
1789
|
}, []);
|
|
1789
1790
|
return getAndCacheInsurancesVerifyData({
|
|
1791
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
1792
|
+
productId: prodData.key,
|
|
1790
1793
|
insuredList: insuredList,
|
|
1791
1794
|
insuranceIdList: insuranceIdList
|
|
1792
1795
|
});
|
package/lib/adjust-baoe/index.js
CHANGED
|
@@ -19675,7 +19675,7 @@ function initProductData(prodData) {
|
|
|
19675
19675
|
});
|
|
19676
19676
|
return prodData;
|
|
19677
19677
|
}
|
|
19678
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
19678
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
19679
19679
|
var _a;
|
|
19680
19680
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
19681
19681
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -19690,7 +19690,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
19690
19690
|
multipleInsuredHandler(personData);
|
|
19691
19691
|
}
|
|
19692
19692
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
19693
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
19693
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
19694
19694
|
case 1:
|
|
19695
19695
|
productVerifyData = _b.sent();
|
|
19696
19696
|
return [3, 3];
|
|
@@ -19909,8 +19909,9 @@ function multipleInsuredHandler(personData) {
|
|
|
19909
19909
|
}
|
|
19910
19910
|
return personData;
|
|
19911
19911
|
}
|
|
19912
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
19912
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
19913
19913
|
var _a, _b;
|
|
19914
|
+
if (parmas === void 0) { parmas = {}; }
|
|
19914
19915
|
var personOrderList = personData.personOrderList;
|
|
19915
19916
|
if (!(personOrderList && personOrderList.length)) {
|
|
19916
19917
|
return null;
|
|
@@ -19935,6 +19936,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
19935
19936
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
19936
19937
|
}, []);
|
|
19937
19938
|
return getAndCacheInsurancesVerifyData({
|
|
19939
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
19940
|
+
productId: prodData.key,
|
|
19938
19941
|
insuredList: insuredList,
|
|
19939
19942
|
insuranceIdList: insuranceIdList
|
|
19940
19943
|
});
|
package/lib/bxs-utils/index.js
CHANGED
|
@@ -19938,7 +19938,7 @@ function initProductData(prodData) {
|
|
|
19938
19938
|
});
|
|
19939
19939
|
return prodData;
|
|
19940
19940
|
}
|
|
19941
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
19941
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
19942
19942
|
var _a;
|
|
19943
19943
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
19944
19944
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -19953,7 +19953,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
19953
19953
|
multipleInsuredHandler(personData);
|
|
19954
19954
|
}
|
|
19955
19955
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
19956
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
19956
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
19957
19957
|
case 1:
|
|
19958
19958
|
productVerifyData = _b.sent();
|
|
19959
19959
|
return [3, 3];
|
|
@@ -20172,8 +20172,9 @@ function multipleInsuredHandler(personData) {
|
|
|
20172
20172
|
}
|
|
20173
20173
|
return personData;
|
|
20174
20174
|
}
|
|
20175
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
20175
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
20176
20176
|
var _a, _b;
|
|
20177
|
+
if (parmas === void 0) { parmas = {}; }
|
|
20177
20178
|
var personOrderList = personData.personOrderList;
|
|
20178
20179
|
if (!(personOrderList && personOrderList.length)) {
|
|
20179
20180
|
return null;
|
|
@@ -20198,6 +20199,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
20198
20199
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
20199
20200
|
}, []);
|
|
20200
20201
|
return getAndCacheInsurancesVerifyData({
|
|
20202
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
20203
|
+
productId: prodData.key,
|
|
20201
20204
|
insuredList: insuredList,
|
|
20202
20205
|
insuranceIdList: insuranceIdList
|
|
20203
20206
|
});
|
package/lib/index.js
CHANGED
|
@@ -23000,7 +23000,7 @@ function initProductData(prodData) {
|
|
|
23000
23000
|
});
|
|
23001
23001
|
return prodData;
|
|
23002
23002
|
}
|
|
23003
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
23003
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
23004
23004
|
var _a;
|
|
23005
23005
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
23006
23006
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -23015,7 +23015,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
23015
23015
|
multipleInsuredHandler(personData);
|
|
23016
23016
|
}
|
|
23017
23017
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
23018
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
23018
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
23019
23019
|
case 1:
|
|
23020
23020
|
productVerifyData = _b.sent();
|
|
23021
23021
|
return [3, 3];
|
|
@@ -23234,8 +23234,9 @@ function multipleInsuredHandler(personData) {
|
|
|
23234
23234
|
}
|
|
23235
23235
|
return personData;
|
|
23236
23236
|
}
|
|
23237
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
23237
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
23238
23238
|
var _a, _b;
|
|
23239
|
+
if (parmas === void 0) { parmas = {}; }
|
|
23239
23240
|
var personOrderList = personData.personOrderList;
|
|
23240
23241
|
if (!(personOrderList && personOrderList.length)) {
|
|
23241
23242
|
return null;
|
|
@@ -23260,6 +23261,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
23260
23261
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
23261
23262
|
}, []);
|
|
23262
23263
|
return getAndCacheInsurancesVerifyData({
|
|
23264
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
23265
|
+
productId: prodData.key,
|
|
23263
23266
|
insuredList: insuredList,
|
|
23264
23267
|
insuranceIdList: insuranceIdList
|
|
23265
23268
|
});
|
|
@@ -30697,8 +30700,8 @@ module.exports = function spread(callback) {
|
|
|
30697
30700
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30698
30701
|
|
|
30699
30702
|
"use strict";
|
|
30700
|
-
/* harmony import */ var
|
|
30701
|
-
/* harmony import */ var
|
|
30703
|
+
/* 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_b2e93ff0_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88);
|
|
30704
|
+
/* 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_b2e93ff0_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_b2e93ff0_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__);
|
|
30702
30705
|
/* unused harmony reexport * */
|
|
30703
30706
|
|
|
30704
30707
|
|
|
@@ -34056,8 +34059,8 @@ function isSlowBuffer (obj) {
|
|
|
34056
34059
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
34057
34060
|
|
|
34058
34061
|
"use strict";
|
|
34059
|
-
/* harmony import */ var
|
|
34060
|
-
/* harmony import */ var
|
|
34062
|
+
/* 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_fa4891e6_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(92);
|
|
34063
|
+
/* 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_fa4891e6_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_fa4891e6_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
34061
34064
|
/* unused harmony reexport * */
|
|
34062
34065
|
|
|
34063
34066
|
|
|
@@ -39300,8 +39303,8 @@ var insure_calculate_component = normalizeComponent(
|
|
|
39300
39303
|
)
|
|
39301
39304
|
|
|
39302
39305
|
/* harmony default export */ var insure_calculate = (insure_calculate_component.exports);
|
|
39303
|
-
// 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=
|
|
39304
|
-
var
|
|
39306
|
+
// 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=b2e93ff0&
|
|
39307
|
+
var person_infovue_type_template_id_b2e93ff0_render = function render() {
|
|
39305
39308
|
var _vm = this,
|
|
39306
39309
|
_c = _vm._self._c,
|
|
39307
39310
|
_setup = _vm._self._setupProxy;
|
|
@@ -39513,9 +39516,9 @@ var person_infovue_type_template_id_bcf28ff2_render = function render() {
|
|
|
39513
39516
|
})], 1) : _vm._e()] : _vm._e()];
|
|
39514
39517
|
})], 2)], 1);
|
|
39515
39518
|
};
|
|
39516
|
-
var
|
|
39519
|
+
var person_infovue_type_template_id_b2e93ff0_staticRenderFns = [];
|
|
39517
39520
|
|
|
39518
|
-
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=
|
|
39521
|
+
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=b2e93ff0&
|
|
39519
39522
|
|
|
39520
39523
|
// 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&
|
|
39521
39524
|
var title_itemvue_type_template_id_0bfe2bcc_render = function render() {
|
|
@@ -40316,6 +40319,7 @@ var person_infovue_type_script_lang_ts_a;
|
|
|
40316
40319
|
|
|
40317
40320
|
|
|
40318
40321
|
|
|
40322
|
+
|
|
40319
40323
|
var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
40320
40324
|
Object(tslib_es6["d" /* __extends */])(BxtPersonInfo, _super);
|
|
40321
40325
|
function BxtPersonInfo() {
|
|
@@ -40354,11 +40358,11 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40354
40358
|
BxtPersonInfo.prototype.change = function (ele) {
|
|
40355
40359
|
if (ele === void 0) { ele = {}; }
|
|
40356
40360
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
40357
|
-
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1;
|
|
40361
|
+
var _a, inputData, personData, verifyData, params, allPersonsData, productGroupList, promises_1;
|
|
40358
40362
|
return Object(tslib_es6["e" /* __generator */])(this, function (_b) {
|
|
40359
40363
|
switch (_b.label) {
|
|
40360
40364
|
case 0:
|
|
40361
|
-
_a = this, inputData = _a.inputData, personData = _a.personData, verifyData = _a.verifyData;
|
|
40365
|
+
_a = this, inputData = _a.inputData, personData = _a.personData, verifyData = _a.verifyData, params = _a.params;
|
|
40362
40366
|
if (!inputData) {
|
|
40363
40367
|
return [2];
|
|
40364
40368
|
}
|
|
@@ -40377,7 +40381,9 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40377
40381
|
.forEach(function (g) {
|
|
40378
40382
|
g.prodOrderList.map(function (p) {
|
|
40379
40383
|
Object(product["a" /* clearAddAndTakeAndAdjustBaoeData */])(p);
|
|
40380
|
-
promises_1.push(Object(product["d" /* productDataHandler */])(p, verifyData
|
|
40384
|
+
promises_1.push(Object(product["d" /* productDataHandler */])(p, Object(lodash["get"])(verifyData, "[" + p.key + "]"), allPersonsData, {
|
|
40385
|
+
planbookId: Object(lodash["get"])(params, 'planbookId')
|
|
40386
|
+
}));
|
|
40381
40387
|
});
|
|
40382
40388
|
});
|
|
40383
40389
|
return [4, Promise.all(promises_1)];
|
|
@@ -40472,8 +40478,8 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40472
40478
|
|
|
40473
40479
|
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=script&lang=ts&
|
|
40474
40480
|
/* harmony default export */ var packages_person_infovue_type_script_lang_ts_ = (person_infovue_type_script_lang_ts_);
|
|
40475
|
-
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=
|
|
40476
|
-
var
|
|
40481
|
+
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=b2e93ff0&prod&lang=postcss&
|
|
40482
|
+
var person_infovue_type_style_index_0_id_b2e93ff0_prod_lang_postcss_ = __webpack_require__(206);
|
|
40477
40483
|
|
|
40478
40484
|
// CONCATENATED MODULE: ./packages/person-info/index.vue
|
|
40479
40485
|
|
|
@@ -40486,8 +40492,8 @@ var person_infovue_type_style_index_0_id_bcf28ff2_prod_lang_postcss_ = __webpack
|
|
|
40486
40492
|
|
|
40487
40493
|
var person_info_component = normalizeComponent(
|
|
40488
40494
|
packages_person_infovue_type_script_lang_ts_,
|
|
40489
|
-
|
|
40490
|
-
|
|
40495
|
+
person_infovue_type_template_id_b2e93ff0_render,
|
|
40496
|
+
person_infovue_type_template_id_b2e93ff0_staticRenderFns,
|
|
40491
40497
|
false,
|
|
40492
40498
|
null,
|
|
40493
40499
|
null,
|
|
@@ -40496,8 +40502,8 @@ var person_info_component = normalizeComponent(
|
|
|
40496
40502
|
)
|
|
40497
40503
|
|
|
40498
40504
|
/* harmony default export */ var person_info = (person_info_component.exports);
|
|
40499
|
-
// 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=
|
|
40500
|
-
var
|
|
40505
|
+
// 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=fa4891e6&
|
|
40506
|
+
var product_infovue_type_template_id_fa4891e6_render = function render() {
|
|
40501
40507
|
var _vm = this,
|
|
40502
40508
|
_c = _vm._self._c,
|
|
40503
40509
|
_setup = _vm._self._setupProxy;
|
|
@@ -40807,9 +40813,9 @@ var product_infovue_type_template_id_56388a14_render = function render() {
|
|
|
40807
40813
|
})], 2)];
|
|
40808
40814
|
})], 2) : _vm._e();
|
|
40809
40815
|
};
|
|
40810
|
-
var
|
|
40816
|
+
var product_infovue_type_template_id_fa4891e6_staticRenderFns = [];
|
|
40811
40817
|
|
|
40812
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
40818
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=fa4891e6&
|
|
40813
40819
|
|
|
40814
40820
|
// EXTERNAL MODULE: ./node_modules/md5/md5.js
|
|
40815
40821
|
var md5 = __webpack_require__(50);
|
|
@@ -40921,7 +40927,9 @@ function _initPageData() {
|
|
|
40921
40927
|
}).forEach(function (g) {
|
|
40922
40928
|
return g.prodOrderList.forEach(function (p) {
|
|
40923
40929
|
Object(product["c" /* initProductData */])(p);
|
|
40924
|
-
promises.push(Object(product["d" /* productDataHandler */])(p, data.verifyData[p.key], inputData.personData
|
|
40930
|
+
promises.push(Object(product["d" /* productDataHandler */])(p, data.verifyData[p.key], inputData.personData, {
|
|
40931
|
+
planbookId: data.pbId
|
|
40932
|
+
}));
|
|
40925
40933
|
});
|
|
40926
40934
|
});
|
|
40927
40935
|
_context.next = 9;
|
|
@@ -41504,7 +41512,9 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
41504
41512
|
if (options.type === 'change') {
|
|
41505
41513
|
Object(product["a" /* clearAddAndTakeAndAdjustBaoeData */])(productData);
|
|
41506
41514
|
}
|
|
41507
|
-
return [4, Object(product["d" /* productDataHandler */])(productData, this
|
|
41515
|
+
return [4, Object(product["d" /* productDataHandler */])(productData, Object(lodash["get"])(this, "verifyData[" + productData.key + "]"), this.personData, {
|
|
41516
|
+
planbookId: Object(lodash["get"])(this, 'params.planbookId')
|
|
41517
|
+
})];
|
|
41508
41518
|
case 1:
|
|
41509
41519
|
_a.sent();
|
|
41510
41520
|
if (options.type === 'change') {
|
|
@@ -41807,8 +41817,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
41807
41817
|
|
|
41808
41818
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
41809
41819
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
41810
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
41811
|
-
var
|
|
41820
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=fa4891e6&prod&lang=css&
|
|
41821
|
+
var product_infovue_type_style_index_0_id_fa4891e6_prod_lang_css_ = __webpack_require__(232);
|
|
41812
41822
|
|
|
41813
41823
|
// CONCATENATED MODULE: ./packages/product-info/index.vue
|
|
41814
41824
|
|
|
@@ -41821,8 +41831,8 @@ var product_infovue_type_style_index_0_id_56388a14_prod_lang_css_ = __webpack_re
|
|
|
41821
41831
|
|
|
41822
41832
|
var product_info_component = normalizeComponent(
|
|
41823
41833
|
packages_product_infovue_type_script_lang_ts_,
|
|
41824
|
-
|
|
41825
|
-
|
|
41834
|
+
product_infovue_type_template_id_fa4891e6_render,
|
|
41835
|
+
product_infovue_type_template_id_fa4891e6_staticRenderFns,
|
|
41826
41836
|
false,
|
|
41827
41837
|
null,
|
|
41828
41838
|
null,
|
|
@@ -20668,7 +20668,7 @@ function initProductData(prodData) {
|
|
|
20668
20668
|
});
|
|
20669
20669
|
return prodData;
|
|
20670
20670
|
}
|
|
20671
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
20671
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
20672
20672
|
var _a;
|
|
20673
20673
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
20674
20674
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -20683,7 +20683,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
20683
20683
|
multipleInsuredHandler(personData);
|
|
20684
20684
|
}
|
|
20685
20685
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
20686
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
20686
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
20687
20687
|
case 1:
|
|
20688
20688
|
productVerifyData = _b.sent();
|
|
20689
20689
|
return [3, 3];
|
|
@@ -20902,8 +20902,9 @@ function multipleInsuredHandler(personData) {
|
|
|
20902
20902
|
}
|
|
20903
20903
|
return personData;
|
|
20904
20904
|
}
|
|
20905
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
20905
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
20906
20906
|
var _a, _b;
|
|
20907
|
+
if (parmas === void 0) { parmas = {}; }
|
|
20907
20908
|
var personOrderList = personData.personOrderList;
|
|
20908
20909
|
if (!(personOrderList && personOrderList.length)) {
|
|
20909
20910
|
return null;
|
|
@@ -20928,6 +20929,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
20928
20929
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
20929
20930
|
}, []);
|
|
20930
20931
|
return getAndCacheInsurancesVerifyData({
|
|
20932
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
20933
|
+
productId: prodData.key,
|
|
20931
20934
|
insuredList: insuredList,
|
|
20932
20935
|
insuranceIdList: insuranceIdList
|
|
20933
20936
|
});
|
package/lib/person-info/index.js
CHANGED
|
@@ -20668,7 +20668,7 @@ function initProductData(prodData) {
|
|
|
20668
20668
|
});
|
|
20669
20669
|
return prodData;
|
|
20670
20670
|
}
|
|
20671
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
20671
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
20672
20672
|
var _a;
|
|
20673
20673
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
20674
20674
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -20683,7 +20683,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
20683
20683
|
multipleInsuredHandler(personData);
|
|
20684
20684
|
}
|
|
20685
20685
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
20686
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
20686
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
20687
20687
|
case 1:
|
|
20688
20688
|
productVerifyData = _b.sent();
|
|
20689
20689
|
return [3, 3];
|
|
@@ -20902,8 +20902,9 @@ function multipleInsuredHandler(personData) {
|
|
|
20902
20902
|
}
|
|
20903
20903
|
return personData;
|
|
20904
20904
|
}
|
|
20905
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
20905
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
20906
20906
|
var _a, _b;
|
|
20907
|
+
if (parmas === void 0) { parmas = {}; }
|
|
20907
20908
|
var personOrderList = personData.personOrderList;
|
|
20908
20909
|
if (!(personOrderList && personOrderList.length)) {
|
|
20909
20910
|
return null;
|
|
@@ -20928,6 +20929,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
20928
20929
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
20929
20930
|
}, []);
|
|
20930
20931
|
return getAndCacheInsurancesVerifyData({
|
|
20932
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
20933
|
+
productId: prodData.key,
|
|
20931
20934
|
insuredList: insuredList,
|
|
20932
20935
|
insuranceIdList: insuranceIdList
|
|
20933
20936
|
});
|
|
@@ -25808,8 +25811,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
25808
25811
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
25809
25812
|
|
|
25810
25813
|
"use strict";
|
|
25811
|
-
/* harmony import */ var
|
|
25812
|
-
/* harmony import */ var
|
|
25814
|
+
/* 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_b2e93ff0_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(131);
|
|
25815
|
+
/* 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_b2e93ff0_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_b2e93ff0_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__);
|
|
25813
25816
|
/* unused harmony reexport * */
|
|
25814
25817
|
|
|
25815
25818
|
|
|
@@ -25847,7 +25850,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
25847
25850
|
// ESM COMPAT FLAG
|
|
25848
25851
|
__webpack_require__.r(__webpack_exports__);
|
|
25849
25852
|
|
|
25850
|
-
// 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=
|
|
25853
|
+
// 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=b2e93ff0&
|
|
25851
25854
|
var render = function render() {
|
|
25852
25855
|
var _vm = this,
|
|
25853
25856
|
_c = _vm._self._c,
|
|
@@ -26062,7 +26065,7 @@ var render = function render() {
|
|
|
26062
26065
|
};
|
|
26063
26066
|
var staticRenderFns = [];
|
|
26064
26067
|
|
|
26065
|
-
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=
|
|
26068
|
+
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=b2e93ff0&
|
|
26066
26069
|
|
|
26067
26070
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
26068
26071
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -26071,6 +26074,9 @@ var tslib_es6 = __webpack_require__(0);
|
|
|
26071
26074
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(4);
|
|
26072
26075
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default = /*#__PURE__*/__webpack_require__.n(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_);
|
|
26073
26076
|
|
|
26077
|
+
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
26078
|
+
var lodash = __webpack_require__(5);
|
|
26079
|
+
|
|
26074
26080
|
// EXTERNAL MODULE: ./packages/bxs-utils/index.ts + 3 modules
|
|
26075
26081
|
var bxs_utils = __webpack_require__(7);
|
|
26076
26082
|
|
|
@@ -26692,6 +26698,7 @@ var person_infovue_type_script_lang_ts_a;
|
|
|
26692
26698
|
|
|
26693
26699
|
|
|
26694
26700
|
|
|
26701
|
+
|
|
26695
26702
|
var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
26696
26703
|
Object(tslib_es6["d" /* __extends */])(BxtPersonInfo, _super);
|
|
26697
26704
|
function BxtPersonInfo() {
|
|
@@ -26730,11 +26737,11 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
26730
26737
|
BxtPersonInfo.prototype.change = function (ele) {
|
|
26731
26738
|
if (ele === void 0) { ele = {}; }
|
|
26732
26739
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
26733
|
-
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1;
|
|
26740
|
+
var _a, inputData, personData, verifyData, params, allPersonsData, productGroupList, promises_1;
|
|
26734
26741
|
return Object(tslib_es6["e" /* __generator */])(this, function (_b) {
|
|
26735
26742
|
switch (_b.label) {
|
|
26736
26743
|
case 0:
|
|
26737
|
-
_a = this, inputData = _a.inputData, personData = _a.personData, verifyData = _a.verifyData;
|
|
26744
|
+
_a = this, inputData = _a.inputData, personData = _a.personData, verifyData = _a.verifyData, params = _a.params;
|
|
26738
26745
|
if (!inputData) {
|
|
26739
26746
|
return [2];
|
|
26740
26747
|
}
|
|
@@ -26753,7 +26760,9 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
26753
26760
|
.forEach(function (g) {
|
|
26754
26761
|
g.prodOrderList.map(function (p) {
|
|
26755
26762
|
Object(bxs_utils["clearAddAndTakeAndAdjustBaoeData"])(p);
|
|
26756
|
-
promises_1.push(Object(bxs_utils["productDataHandler"])(p, verifyData
|
|
26763
|
+
promises_1.push(Object(bxs_utils["productDataHandler"])(p, Object(lodash["get"])(verifyData, "[" + p.key + "]"), allPersonsData, {
|
|
26764
|
+
planbookId: Object(lodash["get"])(params, 'planbookId')
|
|
26765
|
+
}));
|
|
26757
26766
|
});
|
|
26758
26767
|
});
|
|
26759
26768
|
return [4, Promise.all(promises_1)];
|
|
@@ -26848,8 +26857,8 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
26848
26857
|
|
|
26849
26858
|
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=script&lang=ts&
|
|
26850
26859
|
/* harmony default export */ var packages_person_infovue_type_script_lang_ts_ = (person_infovue_type_script_lang_ts_);
|
|
26851
|
-
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=
|
|
26852
|
-
var
|
|
26860
|
+
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=b2e93ff0&prod&lang=postcss&
|
|
26861
|
+
var person_infovue_type_style_index_0_id_b2e93ff0_prod_lang_postcss_ = __webpack_require__(214);
|
|
26853
26862
|
|
|
26854
26863
|
// CONCATENATED MODULE: ./packages/person-info/index.vue
|
|
26855
26864
|
|
|
@@ -21425,7 +21425,7 @@ function initProductData(prodData) {
|
|
|
21425
21425
|
});
|
|
21426
21426
|
return prodData;
|
|
21427
21427
|
}
|
|
21428
|
-
function productDataHandler(prodData, prodVerifyData, personData) {
|
|
21428
|
+
function productDataHandler(prodData, prodVerifyData, personData, parmas) {
|
|
21429
21429
|
var _a;
|
|
21430
21430
|
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __awaiter */ "b"])(this, void 0, Promise, function () {
|
|
21431
21431
|
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList;
|
|
@@ -21440,7 +21440,7 @@ function productDataHandler(prodData, prodVerifyData, personData) {
|
|
|
21440
21440
|
multipleInsuredHandler(personData);
|
|
21441
21441
|
}
|
|
21442
21442
|
if (!(prodData.feeValidateMode === 'single')) return [3, 2];
|
|
21443
|
-
return [4, getSingleInsurancesVerifyData(prodData, personData).catch(function () { })];
|
|
21443
|
+
return [4, getSingleInsurancesVerifyData(prodData, personData, parmas).catch(function () { })];
|
|
21444
21444
|
case 1:
|
|
21445
21445
|
productVerifyData = _b.sent();
|
|
21446
21446
|
return [3, 3];
|
|
@@ -21659,8 +21659,9 @@ function multipleInsuredHandler(personData) {
|
|
|
21659
21659
|
}
|
|
21660
21660
|
return personData;
|
|
21661
21661
|
}
|
|
21662
|
-
function getSingleInsurancesVerifyData(prodData, personData) {
|
|
21662
|
+
function getSingleInsurancesVerifyData(prodData, personData, parmas) {
|
|
21663
21663
|
var _a, _b;
|
|
21664
|
+
if (parmas === void 0) { parmas = {}; }
|
|
21664
21665
|
var personOrderList = personData.personOrderList;
|
|
21665
21666
|
if (!(personOrderList && personOrderList.length)) {
|
|
21666
21667
|
return null;
|
|
@@ -21685,6 +21686,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
21685
21686
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
21686
21687
|
}, []);
|
|
21687
21688
|
return getAndCacheInsurancesVerifyData({
|
|
21689
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
21690
|
+
productId: prodData.key,
|
|
21688
21691
|
insuredList: insuredList,
|
|
21689
21692
|
insuranceIdList: insuranceIdList
|
|
21690
21693
|
});
|
|
@@ -32553,8 +32556,8 @@ function isSlowBuffer (obj) {
|
|
|
32553
32556
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32554
32557
|
|
|
32555
32558
|
"use strict";
|
|
32556
|
-
/* harmony import */ var
|
|
32557
|
-
/* harmony import */ var
|
|
32559
|
+
/* 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_fa4891e6_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(135);
|
|
32560
|
+
/* 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_fa4891e6_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_fa4891e6_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
32558
32561
|
/* unused harmony reexport * */
|
|
32559
32562
|
|
|
32560
32563
|
|
|
@@ -32568,7 +32571,7 @@ function isSlowBuffer (obj) {
|
|
|
32568
32571
|
// ESM COMPAT FLAG
|
|
32569
32572
|
__webpack_require__.r(__webpack_exports__);
|
|
32570
32573
|
|
|
32571
|
-
// 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=
|
|
32574
|
+
// 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=fa4891e6&
|
|
32572
32575
|
var render = function render() {
|
|
32573
32576
|
var _vm = this,
|
|
32574
32577
|
_c = _vm._self._c,
|
|
@@ -32881,7 +32884,7 @@ var render = function render() {
|
|
|
32881
32884
|
};
|
|
32882
32885
|
var staticRenderFns = [];
|
|
32883
32886
|
|
|
32884
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
32887
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=fa4891e6&
|
|
32885
32888
|
|
|
32886
32889
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
32887
32890
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -33021,7 +33024,9 @@ function _initPageData() {
|
|
|
33021
33024
|
}).forEach(function (g) {
|
|
33022
33025
|
return g.prodOrderList.forEach(function (p) {
|
|
33023
33026
|
Object(bxs_utils["initProductData"])(p);
|
|
33024
|
-
promises.push(Object(bxs_utils["productDataHandler"])(p, data.verifyData[p.key], inputData.personData
|
|
33027
|
+
promises.push(Object(bxs_utils["productDataHandler"])(p, data.verifyData[p.key], inputData.personData, {
|
|
33028
|
+
planbookId: data.pbId
|
|
33029
|
+
}));
|
|
33025
33030
|
});
|
|
33026
33031
|
});
|
|
33027
33032
|
_context.next = 9;
|
|
@@ -33616,7 +33621,9 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
33616
33621
|
if (options.type === 'change') {
|
|
33617
33622
|
Object(bxs_utils["clearAddAndTakeAndAdjustBaoeData"])(productData);
|
|
33618
33623
|
}
|
|
33619
|
-
return [4, Object(bxs_utils["productDataHandler"])(productData, this
|
|
33624
|
+
return [4, Object(bxs_utils["productDataHandler"])(productData, Object(lodash["get"])(this, "verifyData[" + productData.key + "]"), this.personData, {
|
|
33625
|
+
planbookId: Object(lodash["get"])(this, 'params.planbookId')
|
|
33626
|
+
})];
|
|
33620
33627
|
case 1:
|
|
33621
33628
|
_a.sent();
|
|
33622
33629
|
if (options.type === 'change') {
|
|
@@ -33919,8 +33926,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
33919
33926
|
|
|
33920
33927
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
33921
33928
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
33922
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
33923
|
-
var
|
|
33929
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=fa4891e6&prod&lang=css&
|
|
33930
|
+
var product_infovue_type_style_index_0_id_fa4891e6_prod_lang_css_ = __webpack_require__(240);
|
|
33924
33931
|
|
|
33925
33932
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
33926
33933
|
var componentNormalizer = __webpack_require__(9);
|
package/package.json
CHANGED
|
@@ -49,9 +49,10 @@ export function initProductData(prodData : IPbProduct) : IPbProduct {
|
|
|
49
49
|
* @param {IPbProduct} prodData 必传。产品数据(单个)
|
|
50
50
|
* @param {object} productVerifyData 必传。产品校验条件(单个)
|
|
51
51
|
* @param {IPbPersons} personData 必传。人员信息,包括被保人、投保人、投保人配偶
|
|
52
|
+
* @param {object} parmas 补充参数,目前只有 planbookId
|
|
52
53
|
* @returns {IPbProduct} 产品数据(单个)
|
|
53
54
|
*/
|
|
54
|
-
export async function productDataHandler(prodData : IPbProduct, prodVerifyData : any, personData : IPbPersons) : Promise<IPbProduct> {
|
|
55
|
+
export async function productDataHandler(prodData : IPbProduct, prodVerifyData : any, personData : IPbPersons, parmas?: any) : Promise<IPbProduct> {
|
|
55
56
|
if (!prodData) {
|
|
56
57
|
return prodData
|
|
57
58
|
}
|
|
@@ -60,7 +61,7 @@ export async function productDataHandler(prodData : IPbProduct, prodVerifyData :
|
|
|
60
61
|
multipleInsuredHandler(personData)
|
|
61
62
|
}
|
|
62
63
|
if (prodData.feeValidateMode === 'single') {
|
|
63
|
-
productVerifyData = await getSingleInsurancesVerifyData(prodData, personData).catch(() => {})
|
|
64
|
+
productVerifyData = await getSingleInsurancesVerifyData(prodData, personData, parmas).catch(() => {})
|
|
64
65
|
} else {
|
|
65
66
|
productVerifyData = prodVerifyData
|
|
66
67
|
}
|
|
@@ -314,7 +315,7 @@ function multipleInsuredHandler (personData : IPbPersons) {
|
|
|
314
315
|
* @param {IPbPersons} personData 必传。人员信息,包括被保人、投保人、投保人配偶
|
|
315
316
|
* @returns 请求函数的 Promise
|
|
316
317
|
*/
|
|
317
|
-
function getSingleInsurancesVerifyData (prodData : IPbProduct, personData : IPbPersons) {
|
|
318
|
+
function getSingleInsurancesVerifyData (prodData : IPbProduct, personData : IPbPersons, parmas : any = {}) {
|
|
318
319
|
const personOrderList : IPbPerson [] = personData.personOrderList
|
|
319
320
|
if (!(personOrderList && personOrderList.length)) {
|
|
320
321
|
return null
|
|
@@ -338,6 +339,8 @@ function getSingleInsurancesVerifyData (prodData : IPbProduct, personData : IPbP
|
|
|
338
339
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key)
|
|
339
340
|
}, []);
|
|
340
341
|
return getAndCacheInsurancesVerifyData({
|
|
342
|
+
pbId: prodData.isTemp ? null : parmas.planbookId,
|
|
343
|
+
productId: prodData.key,
|
|
341
344
|
insuredList,
|
|
342
345
|
insuranceIdList
|
|
343
346
|
})
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
</template>
|
|
136
136
|
<script lang="ts">
|
|
137
137
|
import Vue from 'vue';
|
|
138
|
+
import { get as _get } from 'lodash';
|
|
138
139
|
import {
|
|
139
140
|
convertEleOrderListToObj,
|
|
140
141
|
personDataHandler,
|
|
@@ -216,7 +217,7 @@ export default class BxtPersonInfo extends Vue {
|
|
|
216
217
|
inputDom.focus();
|
|
217
218
|
}
|
|
218
219
|
async change(ele: any = {}) {
|
|
219
|
-
const { inputData, personData, verifyData } = this;
|
|
220
|
+
const { inputData, personData, verifyData, params } = this;
|
|
220
221
|
if (!inputData) {
|
|
221
222
|
return;
|
|
222
223
|
}
|
|
@@ -237,7 +238,11 @@ export default class BxtPersonInfo extends Vue {
|
|
|
237
238
|
.forEach(g => {
|
|
238
239
|
g.prodOrderList.map(p => {
|
|
239
240
|
clearAddAndTakeAndAdjustBaoeData(p);
|
|
240
|
-
promises.push(
|
|
241
|
+
promises.push(
|
|
242
|
+
productDataHandler(p, _get(verifyData, `[${p.key}]`), allPersonsData, {
|
|
243
|
+
planbookId: _get(params, 'planbookId')
|
|
244
|
+
})
|
|
245
|
+
);
|
|
241
246
|
});
|
|
242
247
|
});
|
|
243
248
|
await Promise.all(promises);
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
<script lang="ts">
|
|
27
27
|
import Vue from 'vue';
|
|
28
|
+
import { get as _get } from 'lodash';
|
|
28
29
|
import { Component, Prop, Watch } from 'vue-property-decorator';
|
|
29
30
|
import {
|
|
30
31
|
deepCopy,
|
|
@@ -61,6 +62,11 @@ export default class BxtPersonPop extends Vue {
|
|
|
61
62
|
})
|
|
62
63
|
verifyData: any;
|
|
63
64
|
|
|
65
|
+
@Prop({
|
|
66
|
+
default: () => ({})
|
|
67
|
+
})
|
|
68
|
+
params: any;
|
|
69
|
+
|
|
64
70
|
@Watch('value', {
|
|
65
71
|
immediate: true,
|
|
66
72
|
deep: true
|
|
@@ -89,11 +95,11 @@ export default class BxtPersonPop extends Vue {
|
|
|
89
95
|
this.currentValue = false;
|
|
90
96
|
}
|
|
91
97
|
async confirm() {
|
|
92
|
-
const { inputData, verifyData, copyInputData } = this;
|
|
98
|
+
const { inputData, verifyData, copyInputData, params } = this;
|
|
93
99
|
if (!inputData) {
|
|
94
100
|
return;
|
|
95
101
|
}
|
|
96
|
-
inputData.personData.personOrderList = copyInputData
|
|
102
|
+
inputData.personData.personOrderList = copyInputData?.personData?.personOrderList;
|
|
97
103
|
const allPersonsData = inputData.personData;
|
|
98
104
|
const productGroupList = inputData.productGroupList || [];
|
|
99
105
|
if (allPersonsData) {
|
|
@@ -103,7 +109,11 @@ export default class BxtPersonPop extends Vue {
|
|
|
103
109
|
g.prodOrderList &&
|
|
104
110
|
g.prodOrderList.map(p => {
|
|
105
111
|
clearAddAndTakeAndAdjustBaoeData(p);
|
|
106
|
-
promises.push(
|
|
112
|
+
promises.push(
|
|
113
|
+
productDataHandler(p, _get(verifyData, `[${p.key}]`), allPersonsData, {
|
|
114
|
+
planbookId: _get(params, 'planbookId')
|
|
115
|
+
})
|
|
116
|
+
);
|
|
107
117
|
});
|
|
108
118
|
});
|
|
109
119
|
await Promise.all(promises);
|
|
@@ -146,7 +146,8 @@
|
|
|
146
146
|
:group-key="params.groupKey"
|
|
147
147
|
:product-key="params.productKey"
|
|
148
148
|
:params="{
|
|
149
|
-
allowCustomResult: true
|
|
149
|
+
allowCustomResult: true,
|
|
150
|
+
planbookId: params.planbookId
|
|
150
151
|
}"
|
|
151
152
|
@change="cgProduct"
|
|
152
153
|
@openCrmPerson="personPopConfig.visible = true"
|
|
@@ -216,6 +217,9 @@
|
|
|
216
217
|
v-model="personPopConfig.visible"
|
|
217
218
|
:input-data="inputData"
|
|
218
219
|
:verify-data="verifyData"
|
|
220
|
+
:params="{
|
|
221
|
+
planbookId: params.planbookId
|
|
222
|
+
}"
|
|
219
223
|
@change="$emit('changePerson')"
|
|
220
224
|
/>
|
|
221
225
|
</div>
|
|
@@ -23,7 +23,11 @@ export async function initPageData(data) {
|
|
|
23
23
|
.forEach(g => {
|
|
24
24
|
return g.prodOrderList.forEach(p => {
|
|
25
25
|
initProductData(p);
|
|
26
|
-
promises.push(
|
|
26
|
+
promises.push(
|
|
27
|
+
productDataHandler(p, data.verifyData[p.key], inputData.personData, {
|
|
28
|
+
planbookId: data.pbId
|
|
29
|
+
})
|
|
30
|
+
);
|
|
27
31
|
});
|
|
28
32
|
});
|
|
29
33
|
await Promise.all(promises);
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
<PersonInfo
|
|
7
7
|
:key="person.key"
|
|
8
8
|
:input-data="inputData"
|
|
9
|
-
:verify-data="planbookData
|
|
9
|
+
:verify-data="planbookData?.verifyData"
|
|
10
10
|
:person-data="person"
|
|
11
11
|
:is-show-crm-person="true"
|
|
12
12
|
:params="{
|
|
13
|
-
brokerFlag: planbookData
|
|
13
|
+
brokerFlag: planbookData?.brokerFlag,
|
|
14
|
+
planbookId: planbookData?.pbId
|
|
14
15
|
}"
|
|
15
16
|
@change="changePersonInfo"
|
|
16
17
|
/>
|
|
@@ -24,13 +25,13 @@
|
|
|
24
25
|
v-if="!p.hide || pi < g.defNum"
|
|
25
26
|
:key="p.key"
|
|
26
27
|
:input-data="inputData"
|
|
27
|
-
:verify-data="planbookData
|
|
28
|
+
:verify-data="planbookData?.verifyData"
|
|
28
29
|
:params="{
|
|
29
|
-
planbookId: URL_PARAM.planbookId,
|
|
30
|
+
planbookId: Number(URL_PARAM.planbookId),
|
|
30
31
|
publicPbUuid: URL_PARAM.publicPbUuid,
|
|
31
32
|
groupKey: g.key,
|
|
32
33
|
productKey: p.key,
|
|
33
|
-
interestProductList: planbookData
|
|
34
|
+
interestProductList: planbookData?.interestProductList
|
|
34
35
|
}"
|
|
35
36
|
@confirm="confirmProduct"
|
|
36
37
|
@changePerson="changePersonInfo"
|
|
@@ -278,7 +279,7 @@ export default class BxtPlanbookInput extends Vue {
|
|
|
278
279
|
totalBaof: calcTotalBaof(inputData.productGroupList),
|
|
279
280
|
userUuid: this.URL_PARAM.userUuid
|
|
280
281
|
};
|
|
281
|
-
let resultData = createPlanbookDataToMake(this.planbookData, options);
|
|
282
|
+
let resultData: any = createPlanbookDataToMake(this.planbookData, options);
|
|
282
283
|
if (!resultData) {
|
|
283
284
|
this.$toast('请选择险种');
|
|
284
285
|
return Promise.reject();
|
|
@@ -295,7 +296,9 @@ export default class BxtPlanbookInput extends Vue {
|
|
|
295
296
|
body: QS.stringify({
|
|
296
297
|
jd: JSON.stringify(resultData),
|
|
297
298
|
userUuid: options.userUuid,
|
|
298
|
-
signature: createMd5Token(resultData
|
|
299
|
+
signature: createMd5Token(resultData, {
|
|
300
|
+
groupDataKey: resultData.productGroupList[0]?.key
|
|
301
|
+
})
|
|
299
302
|
})
|
|
300
303
|
}
|
|
301
304
|
)
|
|
@@ -357,7 +357,9 @@ export default class BxtProductInfo extends Vue {
|
|
|
357
357
|
if (options.type === 'change') {
|
|
358
358
|
clearAddAndTakeAndAdjustBaoeData(productData);
|
|
359
359
|
}
|
|
360
|
-
await productDataHandler(productData, this
|
|
360
|
+
await productDataHandler(productData, _get(this, `verifyData[${productData.key}]`), this.personData, {
|
|
361
|
+
planbookId: _get(this, 'params.planbookId')
|
|
362
|
+
});
|
|
361
363
|
if (options.type === 'change') {
|
|
362
364
|
this.createInsuranceInputResultEle(options.insData, options.eleData);
|
|
363
365
|
} else {
|