bxs-tools-ui 1.5.2 → 1.5.4
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/.DS_Store +0 -0
- package/lib/add-and-take/index.js +20 -11
- package/lib/adjust-baoe/index.js +6 -3
- package/lib/bxs-utils/index.js +6 -3
- package/lib/index.js +52 -36
- 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/.DS_Store +0 -0
- package/packages/add-and-take/.DS_Store +0 -0
- package/packages/add-and-take/handler.js +3 -1
- package/packages/add-and-take/index.vue +3 -0
- package/packages/bxs-utils/.DS_Store +0 -0
- package/packages/bxs-utils/planbook/product.ts +6 -3
- package/packages/person-info/index.vue +7 -2
- package/packages/planbook-input/.DS_Store +0 -0
- package/packages/planbook-input/components/person-pop.vue +13 -3
- package/packages/planbook-input/components/product-table.vue +8 -2
- package/packages/planbook-input/helper.js +5 -1
- package/packages/planbook-input/index.vue +10 -7
- package/packages/product-info/index.vue +3 -1
- package/src/.DS_Store +0 -0
package/lib/.DS_Store
ADDED
|
Binary file
|
|
@@ -1343,8 +1343,8 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
1343
1343
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1344
1344
|
|
|
1345
1345
|
"use strict";
|
|
1346
|
-
/* harmony import */ var
|
|
1347
|
-
/* harmony import */ var
|
|
1346
|
+
/* 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_48fd684a_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(108);
|
|
1347
|
+
/* 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_48fd684a_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_48fd684a_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
1348
1348
|
/* unused harmony reexport * */
|
|
1349
1349
|
|
|
1350
1350
|
|
|
@@ -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
|
});
|
|
@@ -3344,11 +3347,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3344
3347
|
var defineProperty = __webpack_require__(26);
|
|
3345
3348
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
3346
3349
|
|
|
3347
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=
|
|
3350
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=48fd684a&
|
|
3348
3351
|
|
|
3349
3352
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3350
3353
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3351
|
-
var
|
|
3354
|
+
var add_and_takevue_type_template_id_48fd684a_render = function render() {
|
|
3352
3355
|
var _vm = this,
|
|
3353
3356
|
_c = _vm._self._c,
|
|
3354
3357
|
_setup = _vm._self._setupProxy;
|
|
@@ -3644,7 +3647,7 @@ var add_and_takevue_type_template_id_709ddead_render = function render() {
|
|
|
3644
3647
|
};
|
|
3645
3648
|
var staticRenderFns = [];
|
|
3646
3649
|
|
|
3647
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
3650
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=48fd684a&
|
|
3648
3651
|
|
|
3649
3652
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
3650
3653
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -3742,6 +3745,7 @@ function initInterestFormValues(values, data) {
|
|
|
3742
3745
|
bonus: values.bonus || null,
|
|
3743
3746
|
customBonusRate: values.customBonusRate || null,
|
|
3744
3747
|
rate: values.rate || null,
|
|
3748
|
+
takeType: values.takeType || null,
|
|
3745
3749
|
customRate: values.customRate || null
|
|
3746
3750
|
};
|
|
3747
3751
|
Object.keys(formData).filter(function (k) {
|
|
@@ -3782,6 +3786,7 @@ function convertInterestFormValues(values, data) {
|
|
|
3782
3786
|
var _highestEndBonusRate = Object(lodash["get"])(data, 'bonusRateData.highestEndBonusRate');
|
|
3783
3787
|
var bonus = values.bonus,
|
|
3784
3788
|
customBonusRate = values.customBonusRate,
|
|
3789
|
+
takeType = values.takeType,
|
|
3785
3790
|
rate = values.rate,
|
|
3786
3791
|
customRate = values.customRate;
|
|
3787
3792
|
var _yearBonusRate = bonus === '_custom' ? customBonusRate || _highestYearBonusRate : null;
|
|
@@ -3791,6 +3796,7 @@ function convertInterestFormValues(values, data) {
|
|
|
3791
3796
|
bonus: bonus === '_custom' ? 'mid' : bonus,
|
|
3792
3797
|
yearBonusRate: _yearBonusRate ? Number((_yearBonusRate / 100).toFixed(2)) : null,
|
|
3793
3798
|
endBonusRate: _endBonusRate ? Number((_endBonusRate / 100).toFixed(2)) : null,
|
|
3799
|
+
takeType: takeType,
|
|
3794
3800
|
rate: rate === '_custom' ? _customRate : rate,
|
|
3795
3801
|
customRate: rate === '_custom' ? _customRate || _initRate || 4 : null
|
|
3796
3802
|
};
|
|
@@ -4650,6 +4656,9 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4650
4656
|
_c.bonus = {
|
|
4651
4657
|
value: _formValus.bonus
|
|
4652
4658
|
},
|
|
4659
|
+
_c.takeType = {
|
|
4660
|
+
value: _formValus.takeType
|
|
4661
|
+
},
|
|
4653
4662
|
_c.rate = {
|
|
4654
4663
|
value: _formValus.customRate || _formValus.rate
|
|
4655
4664
|
},
|
|
@@ -4979,8 +4988,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4979
4988
|
|
|
4980
4989
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
4981
4990
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
4982
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
4983
|
-
var
|
|
4991
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=48fd684a&prod&lang=css&
|
|
4992
|
+
var add_and_takevue_type_style_index_0_id_48fd684a_prod_lang_css_ = __webpack_require__(137);
|
|
4984
4993
|
|
|
4985
4994
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue
|
|
4986
4995
|
|
|
@@ -4993,7 +5002,7 @@ var add_and_takevue_type_style_index_0_id_709ddead_prod_lang_css_ = __webpack_re
|
|
|
4993
5002
|
|
|
4994
5003
|
var add_and_take_component = Object(componentNormalizer["a" /* default */])(
|
|
4995
5004
|
packages_add_and_takevue_type_script_lang_ts_,
|
|
4996
|
-
|
|
5005
|
+
add_and_takevue_type_template_id_48fd684a_render,
|
|
4997
5006
|
staticRenderFns,
|
|
4998
5007
|
false,
|
|
4999
5008
|
null,
|
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
|
});
|
|
@@ -27224,8 +27227,8 @@ module.exports = function (str, opts) {
|
|
|
27224
27227
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27225
27228
|
|
|
27226
27229
|
"use strict";
|
|
27227
|
-
/* harmony import */ var
|
|
27228
|
-
/* harmony import */ var
|
|
27230
|
+
/* 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_48fd684a_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
|
|
27231
|
+
/* 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_48fd684a_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_48fd684a_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
27229
27232
|
/* unused harmony reexport * */
|
|
27230
27233
|
|
|
27231
27234
|
|
|
@@ -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
|
|
|
@@ -34083,11 +34086,11 @@ __webpack_require__.d(__webpack_exports__, "ProductInfo", function() { return /*
|
|
|
34083
34086
|
var defineProperty = __webpack_require__(8);
|
|
34084
34087
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
34085
34088
|
|
|
34086
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=
|
|
34089
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=48fd684a&
|
|
34087
34090
|
|
|
34088
34091
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34089
34092
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34090
|
-
var
|
|
34093
|
+
var add_and_takevue_type_template_id_48fd684a_render = function render() {
|
|
34091
34094
|
var _vm = this,
|
|
34092
34095
|
_c = _vm._self._c,
|
|
34093
34096
|
_setup = _vm._self._setupProxy;
|
|
@@ -34383,7 +34386,7 @@ var add_and_takevue_type_template_id_709ddead_render = function render() {
|
|
|
34383
34386
|
};
|
|
34384
34387
|
var staticRenderFns = [];
|
|
34385
34388
|
|
|
34386
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
34389
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=48fd684a&
|
|
34387
34390
|
|
|
34388
34391
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
34389
34392
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -35098,6 +35101,7 @@ function initInterestFormValues(values, data) {
|
|
|
35098
35101
|
bonus: values.bonus || null,
|
|
35099
35102
|
customBonusRate: values.customBonusRate || null,
|
|
35100
35103
|
rate: values.rate || null,
|
|
35104
|
+
takeType: values.takeType || null,
|
|
35101
35105
|
customRate: values.customRate || null
|
|
35102
35106
|
};
|
|
35103
35107
|
Object.keys(formData).filter(function (k) {
|
|
@@ -35138,6 +35142,7 @@ function convertInterestFormValues(values, data) {
|
|
|
35138
35142
|
var _highestEndBonusRate = Object(lodash["get"])(data, 'bonusRateData.highestEndBonusRate');
|
|
35139
35143
|
var bonus = values.bonus,
|
|
35140
35144
|
customBonusRate = values.customBonusRate,
|
|
35145
|
+
takeType = values.takeType,
|
|
35141
35146
|
rate = values.rate,
|
|
35142
35147
|
customRate = values.customRate;
|
|
35143
35148
|
var _yearBonusRate = bonus === '_custom' ? customBonusRate || _highestYearBonusRate : null;
|
|
@@ -35147,6 +35152,7 @@ function convertInterestFormValues(values, data) {
|
|
|
35147
35152
|
bonus: bonus === '_custom' ? 'mid' : bonus,
|
|
35148
35153
|
yearBonusRate: _yearBonusRate ? Number((_yearBonusRate / 100).toFixed(2)) : null,
|
|
35149
35154
|
endBonusRate: _endBonusRate ? Number((_endBonusRate / 100).toFixed(2)) : null,
|
|
35155
|
+
takeType: takeType,
|
|
35150
35156
|
rate: rate === '_custom' ? _customRate : rate,
|
|
35151
35157
|
customRate: rate === '_custom' ? _customRate || _initRate || 4 : null
|
|
35152
35158
|
};
|
|
@@ -36255,6 +36261,9 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36255
36261
|
_c.bonus = {
|
|
36256
36262
|
value: _formValus.bonus
|
|
36257
36263
|
},
|
|
36264
|
+
_c.takeType = {
|
|
36265
|
+
value: _formValus.takeType
|
|
36266
|
+
},
|
|
36258
36267
|
_c.rate = {
|
|
36259
36268
|
value: _formValus.customRate || _formValus.rate
|
|
36260
36269
|
},
|
|
@@ -36584,8 +36593,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36584
36593
|
|
|
36585
36594
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
36586
36595
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
36587
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
36588
|
-
var
|
|
36596
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=48fd684a&prod&lang=css&
|
|
36597
|
+
var add_and_takevue_type_style_index_0_id_48fd684a_prod_lang_css_ = __webpack_require__(110);
|
|
36589
36598
|
|
|
36590
36599
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue
|
|
36591
36600
|
|
|
@@ -36598,7 +36607,7 @@ var add_and_takevue_type_style_index_0_id_709ddead_prod_lang_css_ = __webpack_re
|
|
|
36598
36607
|
|
|
36599
36608
|
var add_and_take_component = normalizeComponent(
|
|
36600
36609
|
packages_add_and_takevue_type_script_lang_ts_,
|
|
36601
|
-
|
|
36610
|
+
add_and_takevue_type_template_id_48fd684a_render,
|
|
36602
36611
|
staticRenderFns,
|
|
36603
36612
|
false,
|
|
36604
36613
|
null,
|
|
@@ -39300,8 +39309,8 @@ var insure_calculate_component = normalizeComponent(
|
|
|
39300
39309
|
)
|
|
39301
39310
|
|
|
39302
39311
|
/* 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
|
|
39312
|
+
// 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&
|
|
39313
|
+
var person_infovue_type_template_id_b2e93ff0_render = function render() {
|
|
39305
39314
|
var _vm = this,
|
|
39306
39315
|
_c = _vm._self._c,
|
|
39307
39316
|
_setup = _vm._self._setupProxy;
|
|
@@ -39513,9 +39522,9 @@ var person_infovue_type_template_id_bcf28ff2_render = function render() {
|
|
|
39513
39522
|
})], 1) : _vm._e()] : _vm._e()];
|
|
39514
39523
|
})], 2)], 1);
|
|
39515
39524
|
};
|
|
39516
|
-
var
|
|
39525
|
+
var person_infovue_type_template_id_b2e93ff0_staticRenderFns = [];
|
|
39517
39526
|
|
|
39518
|
-
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=
|
|
39527
|
+
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=template&id=b2e93ff0&
|
|
39519
39528
|
|
|
39520
39529
|
// 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
39530
|
var title_itemvue_type_template_id_0bfe2bcc_render = function render() {
|
|
@@ -40316,6 +40325,7 @@ var person_infovue_type_script_lang_ts_a;
|
|
|
40316
40325
|
|
|
40317
40326
|
|
|
40318
40327
|
|
|
40328
|
+
|
|
40319
40329
|
var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
40320
40330
|
Object(tslib_es6["d" /* __extends */])(BxtPersonInfo, _super);
|
|
40321
40331
|
function BxtPersonInfo() {
|
|
@@ -40354,11 +40364,11 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40354
40364
|
BxtPersonInfo.prototype.change = function (ele) {
|
|
40355
40365
|
if (ele === void 0) { ele = {}; }
|
|
40356
40366
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
40357
|
-
var _a, inputData, personData, verifyData, allPersonsData, productGroupList, promises_1;
|
|
40367
|
+
var _a, inputData, personData, verifyData, params, allPersonsData, productGroupList, promises_1;
|
|
40358
40368
|
return Object(tslib_es6["e" /* __generator */])(this, function (_b) {
|
|
40359
40369
|
switch (_b.label) {
|
|
40360
40370
|
case 0:
|
|
40361
|
-
_a = this, inputData = _a.inputData, personData = _a.personData, verifyData = _a.verifyData;
|
|
40371
|
+
_a = this, inputData = _a.inputData, personData = _a.personData, verifyData = _a.verifyData, params = _a.params;
|
|
40362
40372
|
if (!inputData) {
|
|
40363
40373
|
return [2];
|
|
40364
40374
|
}
|
|
@@ -40377,7 +40387,9 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40377
40387
|
.forEach(function (g) {
|
|
40378
40388
|
g.prodOrderList.map(function (p) {
|
|
40379
40389
|
Object(product["a" /* clearAddAndTakeAndAdjustBaoeData */])(p);
|
|
40380
|
-
promises_1.push(Object(product["d" /* productDataHandler */])(p, verifyData
|
|
40390
|
+
promises_1.push(Object(product["d" /* productDataHandler */])(p, Object(lodash["get"])(verifyData, "[" + p.key + "]"), allPersonsData, {
|
|
40391
|
+
planbookId: Object(lodash["get"])(params, 'planbookId')
|
|
40392
|
+
}));
|
|
40381
40393
|
});
|
|
40382
40394
|
});
|
|
40383
40395
|
return [4, Promise.all(promises_1)];
|
|
@@ -40472,8 +40484,8 @@ var person_infovue_type_script_lang_ts_BxtPersonInfo = (function (_super) {
|
|
|
40472
40484
|
|
|
40473
40485
|
// CONCATENATED MODULE: ./packages/person-info/index.vue?vue&type=script&lang=ts&
|
|
40474
40486
|
/* 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
|
|
40487
|
+
// EXTERNAL MODULE: ./packages/person-info/index.vue?vue&type=style&index=0&id=b2e93ff0&prod&lang=postcss&
|
|
40488
|
+
var person_infovue_type_style_index_0_id_b2e93ff0_prod_lang_postcss_ = __webpack_require__(206);
|
|
40477
40489
|
|
|
40478
40490
|
// CONCATENATED MODULE: ./packages/person-info/index.vue
|
|
40479
40491
|
|
|
@@ -40486,8 +40498,8 @@ var person_infovue_type_style_index_0_id_bcf28ff2_prod_lang_postcss_ = __webpack
|
|
|
40486
40498
|
|
|
40487
40499
|
var person_info_component = normalizeComponent(
|
|
40488
40500
|
packages_person_infovue_type_script_lang_ts_,
|
|
40489
|
-
|
|
40490
|
-
|
|
40501
|
+
person_infovue_type_template_id_b2e93ff0_render,
|
|
40502
|
+
person_infovue_type_template_id_b2e93ff0_staticRenderFns,
|
|
40491
40503
|
false,
|
|
40492
40504
|
null,
|
|
40493
40505
|
null,
|
|
@@ -40496,8 +40508,8 @@ var person_info_component = normalizeComponent(
|
|
|
40496
40508
|
)
|
|
40497
40509
|
|
|
40498
40510
|
/* 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
|
|
40511
|
+
// 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&
|
|
40512
|
+
var product_infovue_type_template_id_fa4891e6_render = function render() {
|
|
40501
40513
|
var _vm = this,
|
|
40502
40514
|
_c = _vm._self._c,
|
|
40503
40515
|
_setup = _vm._self._setupProxy;
|
|
@@ -40807,9 +40819,9 @@ var product_infovue_type_template_id_56388a14_render = function render() {
|
|
|
40807
40819
|
})], 2)];
|
|
40808
40820
|
})], 2) : _vm._e();
|
|
40809
40821
|
};
|
|
40810
|
-
var
|
|
40822
|
+
var product_infovue_type_template_id_fa4891e6_staticRenderFns = [];
|
|
40811
40823
|
|
|
40812
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
40824
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=fa4891e6&
|
|
40813
40825
|
|
|
40814
40826
|
// EXTERNAL MODULE: ./node_modules/md5/md5.js
|
|
40815
40827
|
var md5 = __webpack_require__(50);
|
|
@@ -40921,7 +40933,9 @@ function _initPageData() {
|
|
|
40921
40933
|
}).forEach(function (g) {
|
|
40922
40934
|
return g.prodOrderList.forEach(function (p) {
|
|
40923
40935
|
Object(product["c" /* initProductData */])(p);
|
|
40924
|
-
promises.push(Object(product["d" /* productDataHandler */])(p, data.verifyData[p.key], inputData.personData
|
|
40936
|
+
promises.push(Object(product["d" /* productDataHandler */])(p, data.verifyData[p.key], inputData.personData, {
|
|
40937
|
+
planbookId: data.pbId
|
|
40938
|
+
}));
|
|
40925
40939
|
});
|
|
40926
40940
|
});
|
|
40927
40941
|
_context.next = 9;
|
|
@@ -41504,7 +41518,9 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
41504
41518
|
if (options.type === 'change') {
|
|
41505
41519
|
Object(product["a" /* clearAddAndTakeAndAdjustBaoeData */])(productData);
|
|
41506
41520
|
}
|
|
41507
|
-
return [4, Object(product["d" /* productDataHandler */])(productData, this
|
|
41521
|
+
return [4, Object(product["d" /* productDataHandler */])(productData, Object(lodash["get"])(this, "verifyData[" + productData.key + "]"), this.personData, {
|
|
41522
|
+
planbookId: Object(lodash["get"])(this, 'params.planbookId')
|
|
41523
|
+
})];
|
|
41508
41524
|
case 1:
|
|
41509
41525
|
_a.sent();
|
|
41510
41526
|
if (options.type === 'change') {
|
|
@@ -41807,8 +41823,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
41807
41823
|
|
|
41808
41824
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
41809
41825
|
/* 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
|
|
41826
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=fa4891e6&prod&lang=css&
|
|
41827
|
+
var product_infovue_type_style_index_0_id_fa4891e6_prod_lang_css_ = __webpack_require__(232);
|
|
41812
41828
|
|
|
41813
41829
|
// CONCATENATED MODULE: ./packages/product-info/index.vue
|
|
41814
41830
|
|
|
@@ -41821,8 +41837,8 @@ var product_infovue_type_style_index_0_id_56388a14_prod_lang_css_ = __webpack_re
|
|
|
41821
41837
|
|
|
41822
41838
|
var product_info_component = normalizeComponent(
|
|
41823
41839
|
packages_product_infovue_type_script_lang_ts_,
|
|
41824
|
-
|
|
41825
|
-
|
|
41840
|
+
product_infovue_type_template_id_fa4891e6_render,
|
|
41841
|
+
product_infovue_type_template_id_fa4891e6_staticRenderFns,
|
|
41826
41842
|
false,
|
|
41827
41843
|
null,
|
|
41828
41844
|
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
|
Binary file
|
|
Binary file
|
|
@@ -51,6 +51,7 @@ export function initInterestFormValues(values, data) {
|
|
|
51
51
|
bonus: values.bonus || null,
|
|
52
52
|
customBonusRate: values.customBonusRate || null,
|
|
53
53
|
rate: values.rate || null,
|
|
54
|
+
takeType: values.takeType || null,
|
|
54
55
|
customRate: values.customRate || null
|
|
55
56
|
};
|
|
56
57
|
|
|
@@ -94,7 +95,7 @@ export function convertInterestFormValues(values, data) {
|
|
|
94
95
|
const _highestYearBonusRate = _get(data, 'bonusRateData.highestYearBonusRate');
|
|
95
96
|
const _highestEndBonusRate = _get(data, 'bonusRateData.highestEndBonusRate');
|
|
96
97
|
|
|
97
|
-
const { bonus, customBonusRate, rate, customRate } = values;
|
|
98
|
+
const { bonus, customBonusRate, takeType, rate, customRate } = values;
|
|
98
99
|
const _yearBonusRate = bonus === '_custom' ? customBonusRate || _highestYearBonusRate : null;
|
|
99
100
|
const _endBonusRate = bonus === '_custom' ? customBonusRate || _highestEndBonusRate : null;
|
|
100
101
|
const _customRate = customRate ? Number((customRate / 100).toFixed(4)) : null;
|
|
@@ -102,6 +103,7 @@ export function convertInterestFormValues(values, data) {
|
|
|
102
103
|
bonus: bonus === '_custom' ? 'mid' : bonus,
|
|
103
104
|
yearBonusRate: _yearBonusRate ? Number((_yearBonusRate / 100).toFixed(2)) : null,
|
|
104
105
|
endBonusRate: _endBonusRate ? Number((_endBonusRate / 100).toFixed(2)) : null,
|
|
106
|
+
takeType,
|
|
105
107
|
rate: rate === '_custom' ? _customRate : rate,
|
|
106
108
|
customRate: rate === '_custom' ? _customRate || _initRate || 4 : null
|
|
107
109
|
};
|
|
Binary file
|
|
@@ -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);
|
|
Binary file
|
|
@@ -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"
|
|
@@ -164,8 +165,9 @@
|
|
|
164
165
|
:input-data="inputData"
|
|
165
166
|
:resultData="{
|
|
166
167
|
// uuid: 'e34ac050a9f14bc2a821dd6833f803cf', // 7080-追加领取 uuid(测试)
|
|
167
|
-
uuid: 'a25ae1bc496045248bb4082e31fa2aec', // 11661-减保领取 uuid(测试)
|
|
168
|
+
// uuid: 'a25ae1bc496045248bb4082e31fa2aec', // 11661-减保领取 uuid(测试)
|
|
168
169
|
// uuid: 'c387da25d0f34d35a4e40d1a1d27c5cb', // 5167-减保领取 uuid(测试)
|
|
170
|
+
// uuid: '862a7ecfba834c8ebe7fe5054aeb08e1', // 13767-追加领取、减保领取 uuid(测试)
|
|
169
171
|
insuredAge: 30,
|
|
170
172
|
accountData: {
|
|
171
173
|
accountName: '',
|
|
@@ -191,6 +193,7 @@
|
|
|
191
193
|
bonus: 'low',
|
|
192
194
|
yearBonusRate: 1.2,
|
|
193
195
|
endBonusRate: 1.2,
|
|
196
|
+
takeType: 'account',
|
|
194
197
|
rate: null,
|
|
195
198
|
customRate: 0.047
|
|
196
199
|
}"
|
|
@@ -216,6 +219,9 @@
|
|
|
216
219
|
v-model="personPopConfig.visible"
|
|
217
220
|
:input-data="inputData"
|
|
218
221
|
:verify-data="verifyData"
|
|
222
|
+
:params="{
|
|
223
|
+
planbookId: params.planbookId
|
|
224
|
+
}"
|
|
219
225
|
@change="$emit('changePerson')"
|
|
220
226
|
/>
|
|
221
227
|
</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 {
|
package/src/.DS_Store
CHANGED
|
Binary file
|