bxs-tools-ui 1.4.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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_9fbec60c_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_9fbec60c_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_9fbec60c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
1348
1348
|
/* unused harmony reexport * */
|
|
1349
1349
|
|
|
1350
1350
|
|
|
@@ -3345,11 +3345,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3345
3345
|
var defineProperty = __webpack_require__(26);
|
|
3346
3346
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
3347
3347
|
|
|
3348
|
-
// 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=
|
|
3348
|
+
// 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=9fbec60c&
|
|
3349
3349
|
|
|
3350
3350
|
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; }
|
|
3351
3351
|
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; }
|
|
3352
|
-
var
|
|
3352
|
+
var add_and_takevue_type_template_id_9fbec60c_render = function render() {
|
|
3353
3353
|
var _vm = this,
|
|
3354
3354
|
_c = _vm._self._c,
|
|
3355
3355
|
_setup = _vm._self._setupProxy;
|
|
@@ -3583,7 +3583,7 @@ var add_and_takevue_type_template_id_dc62a686_render = function render() {
|
|
|
3583
3583
|
return _vm.openFormPicker('add');
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
3586
|
-
}, [_vm._v("追加")]) : _vm._e(),
|
|
3586
|
+
}, [_vm._v("追加")]) : _vm._e(), ['reduceBaof'].includes(_vm.type) ? _c('span', {
|
|
3587
3587
|
staticClass: "bxt-aat-footer-recommend-btn",
|
|
3588
3588
|
attrs: {
|
|
3589
3589
|
"data-stat-id": "tjfa",
|
|
@@ -3645,7 +3645,7 @@ var add_and_takevue_type_template_id_dc62a686_render = function render() {
|
|
|
3645
3645
|
};
|
|
3646
3646
|
var staticRenderFns = [];
|
|
3647
3647
|
|
|
3648
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
3648
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=9fbec60c&
|
|
3649
3649
|
|
|
3650
3650
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
3651
3651
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -4616,11 +4616,11 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4616
4616
|
console.log(error);
|
|
4617
4617
|
});
|
|
4618
4618
|
};
|
|
4619
|
-
AddAndTake.prototype.getAddAndTakeData = function (
|
|
4619
|
+
AddAndTake.prototype.getAddAndTakeData = function (newAccountData) {
|
|
4620
4620
|
var _a;
|
|
4621
|
-
if (
|
|
4621
|
+
if (newAccountData === void 0) { newAccountData = null; }
|
|
4622
4622
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
4623
|
-
var _formValus, _b, params, type, personData, productData, accountData, _resultUuid,
|
|
4623
|
+
var _formValus, _b, params, type, personData, productData, accountData, _resultUuid, apis, api, url, reqParams, cloneProductData_2;
|
|
4624
4624
|
var _c;
|
|
4625
4625
|
var _this = this;
|
|
4626
4626
|
return Object(tslib_es6["e" /* __generator */])(this, function (_d) {
|
|
@@ -4633,7 +4633,6 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4633
4633
|
}
|
|
4634
4634
|
_b = this, params = _b.params, type = _b.type, personData = _b.personData, productData = _b.productData, accountData = _b.accountData;
|
|
4635
4635
|
_resultUuid = Object(lodash["get"])(this, 'resultData.uuid');
|
|
4636
|
-
caclAccountData = rebuildAccountDataBySetting(values, Object(lodash["cloneDeep"])(accountData));
|
|
4637
4636
|
apis = {
|
|
4638
4637
|
addAndTake: '/interest/addAndTake/detail',
|
|
4639
4638
|
draw: '/interest/draw/detail',
|
|
@@ -4656,7 +4655,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4656
4655
|
},
|
|
4657
4656
|
_c.yearBonusRate = _formValus.yearBonusRate,
|
|
4658
4657
|
_c.latestYearBonusRate = _formValus.latestYearBonusRate,
|
|
4659
|
-
_c[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] =
|
|
4658
|
+
_c[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] = newAccountData ? newAccountData.addAndTakeData : null,
|
|
4660
4659
|
_c);
|
|
4661
4660
|
if (!_resultUuid) {
|
|
4662
4661
|
cloneProductData_2 = Object(planbook["f" /* convertProductData */])(Object(lodash["cloneDeep"])(productData));
|
|
@@ -4804,17 +4803,18 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4804
4803
|
var _this = this;
|
|
4805
4804
|
var _addAndTakeData = Object(lodash["get"])(this, 'accountData.addAndTakeData', []) || [];
|
|
4806
4805
|
var _addAndTakeDetailData = Object(lodash["get"])(this, 'addAndTakeDetailData', []) || [];
|
|
4806
|
+
var newDetailsData = Object(lodash["cloneDeep"])(_addAndTakeDetailData);
|
|
4807
4807
|
_addAndTakeData.forEach(function (e) {
|
|
4808
4808
|
e.adjustData = [];
|
|
4809
4809
|
var recommendValueKey = _this.type === 'reduceBaof' && e.key === 'take' ? 'draw_value' : e.key;
|
|
4810
|
-
var _detail =
|
|
4810
|
+
var _detail = newDetailsData.find(function (d) { return recommendValueKey === d.key; });
|
|
4811
4811
|
if (_detail) {
|
|
4812
4812
|
_detail.details = _detail.recommendDetails;
|
|
4813
4813
|
_detail.values = _detail.recommendValues;
|
|
4814
4814
|
}
|
|
4815
4815
|
});
|
|
4816
|
-
|
|
4817
|
-
this.getAddAndTakeData();
|
|
4816
|
+
var newAccountData = rebuildAccountDataByResult(newDetailsData, Object(lodash["cloneDeep"])(this.accountData), this.type);
|
|
4817
|
+
this.getAddAndTakeData(newAccountData);
|
|
4818
4818
|
};
|
|
4819
4819
|
AddAndTake.prototype.deleteAllData = function () {
|
|
4820
4820
|
this.accountData.addAndTakeData.forEach(function (d) {
|
|
@@ -4824,7 +4824,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4824
4824
|
};
|
|
4825
4825
|
AddAndTake.prototype.updateData = function (values) {
|
|
4826
4826
|
var _this = this;
|
|
4827
|
-
|
|
4827
|
+
var newAccountData = rebuildAccountDataBySetting(values, Object(lodash["cloneDeep"])(this.accountData));
|
|
4828
|
+
return this.getAddAndTakeData(newAccountData)
|
|
4828
4829
|
.then(function () { return _this.goToTable(); })
|
|
4829
4830
|
.catch(function () { });
|
|
4830
4831
|
};
|
|
@@ -4976,8 +4977,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
4976
4977
|
|
|
4977
4978
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
4978
4979
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
4979
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
4980
|
-
var
|
|
4980
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=9fbec60c&prod&lang=css&
|
|
4981
|
+
var add_and_takevue_type_style_index_0_id_9fbec60c_prod_lang_css_ = __webpack_require__(137);
|
|
4981
4982
|
|
|
4982
4983
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue
|
|
4983
4984
|
|
|
@@ -4990,7 +4991,7 @@ var add_and_takevue_type_style_index_0_id_dc62a686_prod_lang_css_ = __webpack_re
|
|
|
4990
4991
|
|
|
4991
4992
|
var add_and_take_component = Object(componentNormalizer["a" /* default */])(
|
|
4992
4993
|
packages_add_and_takevue_type_script_lang_ts_,
|
|
4993
|
-
|
|
4994
|
+
add_and_takevue_type_template_id_9fbec60c_render,
|
|
4994
4995
|
staticRenderFns,
|
|
4995
4996
|
false,
|
|
4996
4997
|
null,
|
package/lib/index.js
CHANGED
|
@@ -27225,8 +27225,8 @@ module.exports = function (str, opts) {
|
|
|
27225
27225
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27226
27226
|
|
|
27227
27227
|
"use strict";
|
|
27228
|
-
/* harmony import */ var
|
|
27229
|
-
/* harmony import */ var
|
|
27228
|
+
/* 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_9fbec60c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
|
|
27229
|
+
/* 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_9fbec60c_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_9fbec60c_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
27230
27230
|
/* unused harmony reexport * */
|
|
27231
27231
|
|
|
27232
27232
|
|
|
@@ -34084,11 +34084,11 @@ __webpack_require__.d(__webpack_exports__, "ProductInfo", function() { return /*
|
|
|
34084
34084
|
var defineProperty = __webpack_require__(8);
|
|
34085
34085
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
34086
34086
|
|
|
34087
|
-
// 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=
|
|
34087
|
+
// 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=9fbec60c&
|
|
34088
34088
|
|
|
34089
34089
|
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; }
|
|
34090
34090
|
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; }
|
|
34091
|
-
var
|
|
34091
|
+
var add_and_takevue_type_template_id_9fbec60c_render = function render() {
|
|
34092
34092
|
var _vm = this,
|
|
34093
34093
|
_c = _vm._self._c,
|
|
34094
34094
|
_setup = _vm._self._setupProxy;
|
|
@@ -34322,7 +34322,7 @@ var add_and_takevue_type_template_id_dc62a686_render = function render() {
|
|
|
34322
34322
|
return _vm.openFormPicker('add');
|
|
34323
34323
|
}
|
|
34324
34324
|
}
|
|
34325
|
-
}, [_vm._v("追加")]) : _vm._e(),
|
|
34325
|
+
}, [_vm._v("追加")]) : _vm._e(), ['reduceBaof'].includes(_vm.type) ? _c('span', {
|
|
34326
34326
|
staticClass: "bxt-aat-footer-recommend-btn",
|
|
34327
34327
|
attrs: {
|
|
34328
34328
|
"data-stat-id": "tjfa",
|
|
@@ -34384,7 +34384,7 @@ var add_and_takevue_type_template_id_dc62a686_render = function render() {
|
|
|
34384
34384
|
};
|
|
34385
34385
|
var staticRenderFns = [];
|
|
34386
34386
|
|
|
34387
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
34387
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=9fbec60c&
|
|
34388
34388
|
|
|
34389
34389
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
34390
34390
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -36221,11 +36221,11 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36221
36221
|
console.log(error);
|
|
36222
36222
|
});
|
|
36223
36223
|
};
|
|
36224
|
-
AddAndTake.prototype.getAddAndTakeData = function (
|
|
36224
|
+
AddAndTake.prototype.getAddAndTakeData = function (newAccountData) {
|
|
36225
36225
|
var _a;
|
|
36226
|
-
if (
|
|
36226
|
+
if (newAccountData === void 0) { newAccountData = null; }
|
|
36227
36227
|
return Object(tslib_es6["b" /* __awaiter */])(this, void 0, void 0, function () {
|
|
36228
|
-
var _formValus, _b, params, type, personData, productData, accountData, _resultUuid,
|
|
36228
|
+
var _formValus, _b, params, type, personData, productData, accountData, _resultUuid, apis, api, url, reqParams, cloneProductData_2;
|
|
36229
36229
|
var _c;
|
|
36230
36230
|
var _this = this;
|
|
36231
36231
|
return Object(tslib_es6["e" /* __generator */])(this, function (_d) {
|
|
@@ -36238,7 +36238,6 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36238
36238
|
}
|
|
36239
36239
|
_b = this, params = _b.params, type = _b.type, personData = _b.personData, productData = _b.productData, accountData = _b.accountData;
|
|
36240
36240
|
_resultUuid = Object(lodash["get"])(this, 'resultData.uuid');
|
|
36241
|
-
caclAccountData = rebuildAccountDataBySetting(values, Object(lodash["cloneDeep"])(accountData));
|
|
36242
36241
|
apis = {
|
|
36243
36242
|
addAndTake: '/interest/addAndTake/detail',
|
|
36244
36243
|
draw: '/interest/draw/detail',
|
|
@@ -36261,7 +36260,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36261
36260
|
},
|
|
36262
36261
|
_c.yearBonusRate = _formValus.yearBonusRate,
|
|
36263
36262
|
_c.latestYearBonusRate = _formValus.latestYearBonusRate,
|
|
36264
|
-
_c[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] =
|
|
36263
|
+
_c[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] = newAccountData ? newAccountData.addAndTakeData : null,
|
|
36265
36264
|
_c);
|
|
36266
36265
|
if (!_resultUuid) {
|
|
36267
36266
|
cloneProductData_2 = Object(product["b" /* convertProductData */])(Object(lodash["cloneDeep"])(productData));
|
|
@@ -36409,17 +36408,18 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36409
36408
|
var _this = this;
|
|
36410
36409
|
var _addAndTakeData = Object(lodash["get"])(this, 'accountData.addAndTakeData', []) || [];
|
|
36411
36410
|
var _addAndTakeDetailData = Object(lodash["get"])(this, 'addAndTakeDetailData', []) || [];
|
|
36411
|
+
var newDetailsData = Object(lodash["cloneDeep"])(_addAndTakeDetailData);
|
|
36412
36412
|
_addAndTakeData.forEach(function (e) {
|
|
36413
36413
|
e.adjustData = [];
|
|
36414
36414
|
var recommendValueKey = _this.type === 'reduceBaof' && e.key === 'take' ? 'draw_value' : e.key;
|
|
36415
|
-
var _detail =
|
|
36415
|
+
var _detail = newDetailsData.find(function (d) { return recommendValueKey === d.key; });
|
|
36416
36416
|
if (_detail) {
|
|
36417
36417
|
_detail.details = _detail.recommendDetails;
|
|
36418
36418
|
_detail.values = _detail.recommendValues;
|
|
36419
36419
|
}
|
|
36420
36420
|
});
|
|
36421
|
-
|
|
36422
|
-
this.getAddAndTakeData();
|
|
36421
|
+
var newAccountData = rebuildAccountDataByResult(newDetailsData, Object(lodash["cloneDeep"])(this.accountData), this.type);
|
|
36422
|
+
this.getAddAndTakeData(newAccountData);
|
|
36423
36423
|
};
|
|
36424
36424
|
AddAndTake.prototype.deleteAllData = function () {
|
|
36425
36425
|
this.accountData.addAndTakeData.forEach(function (d) {
|
|
@@ -36429,7 +36429,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36429
36429
|
};
|
|
36430
36430
|
AddAndTake.prototype.updateData = function (values) {
|
|
36431
36431
|
var _this = this;
|
|
36432
|
-
|
|
36432
|
+
var newAccountData = rebuildAccountDataBySetting(values, Object(lodash["cloneDeep"])(this.accountData));
|
|
36433
|
+
return this.getAddAndTakeData(newAccountData)
|
|
36433
36434
|
.then(function () { return _this.goToTable(); })
|
|
36434
36435
|
.catch(function () { });
|
|
36435
36436
|
};
|
|
@@ -36581,8 +36582,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
36581
36582
|
|
|
36582
36583
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
36583
36584
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
36584
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
36585
|
-
var
|
|
36585
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=9fbec60c&prod&lang=css&
|
|
36586
|
+
var add_and_takevue_type_style_index_0_id_9fbec60c_prod_lang_css_ = __webpack_require__(110);
|
|
36586
36587
|
|
|
36587
36588
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue
|
|
36588
36589
|
|
|
@@ -36595,7 +36596,7 @@ var add_and_takevue_type_style_index_0_id_dc62a686_prod_lang_css_ = __webpack_re
|
|
|
36595
36596
|
|
|
36596
36597
|
var add_and_take_component = normalizeComponent(
|
|
36597
36598
|
packages_add_and_takevue_type_script_lang_ts_,
|
|
36598
|
-
|
|
36599
|
+
add_and_takevue_type_template_id_9fbec60c_render,
|
|
36599
36600
|
staticRenderFns,
|
|
36600
36601
|
false,
|
|
36601
36602
|
null,
|
package/package.json
CHANGED
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
>追加</span
|
|
204
204
|
>
|
|
205
205
|
<span
|
|
206
|
-
v-if="
|
|
206
|
+
v-if="['reduceBaof'].includes(type)"
|
|
207
207
|
class="bxt-aat-footer-recommend-btn"
|
|
208
208
|
data-stat-id="tjfa"
|
|
209
209
|
:data-stat-ep="JSON.stringify({ type })"
|
|
@@ -549,14 +549,13 @@ export default class AddAndTake extends Vue {
|
|
|
549
549
|
console.log(error);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
async getAddAndTakeData(
|
|
552
|
+
async getAddAndTakeData(newAccountData: any = null) {
|
|
553
553
|
const _formValus = await this.validateInterestFormValues().catch(() => {});
|
|
554
554
|
if (!_formValus) {
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
557
|
const { params, type, personData, productData, accountData } = this;
|
|
558
558
|
const _resultUuid = _get(this, 'resultData.uuid');
|
|
559
|
-
const caclAccountData = rebuildAccountDataBySetting(values, cloneDeep(accountData));
|
|
560
559
|
const apis = {
|
|
561
560
|
addAndTake: '/interest/addAndTake/detail',
|
|
562
561
|
draw: '/interest/draw/detail',
|
|
@@ -578,7 +577,7 @@ export default class AddAndTake extends Vue {
|
|
|
578
577
|
},
|
|
579
578
|
yearBonusRate: _formValus.yearBonusRate,
|
|
580
579
|
latestYearBonusRate: _formValus.latestYearBonusRate,
|
|
581
|
-
[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData']:
|
|
580
|
+
[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData']: newAccountData ? newAccountData.addAndTakeData : null
|
|
582
581
|
};
|
|
583
582
|
if (!_resultUuid) {
|
|
584
583
|
const cloneProductData = convertProductData(cloneDeep(productData));
|
|
@@ -728,19 +727,20 @@ export default class AddAndTake extends Vue {
|
|
|
728
727
|
onClickRecommendCase() {
|
|
729
728
|
const _addAndTakeData = _get(this, 'accountData.addAndTakeData', []) || [];
|
|
730
729
|
const _addAndTakeDetailData = _get(this, 'addAndTakeDetailData', []) || [];
|
|
730
|
+
const newDetailsData = cloneDeep(_addAndTakeDetailData);
|
|
731
731
|
_addAndTakeData.forEach(e => {
|
|
732
732
|
e.adjustData = [];
|
|
733
733
|
// WYJHS-13, 追加领取、减保领取并存,利益结果中的 take key 拆分为 take / draw_value,后者用于减保领取
|
|
734
734
|
// 提交时的类型数据在外层区分,为 addAndTakeData: [{key: take},...], drawData: [{key: take}, ...]
|
|
735
735
|
const recommendValueKey = this.type === 'reduceBaof' && e.key === 'take' ? 'draw_value' : e.key;
|
|
736
|
-
const _detail =
|
|
736
|
+
const _detail = newDetailsData.find(d => recommendValueKey === d.key);
|
|
737
737
|
if (_detail) {
|
|
738
738
|
_detail.details = _detail.recommendDetails;
|
|
739
739
|
_detail.values = _detail.recommendValues;
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
|
-
|
|
743
|
-
this.getAddAndTakeData();
|
|
742
|
+
const newAccountData = rebuildAccountDataByResult(newDetailsData, cloneDeep(this.accountData), this.type);
|
|
743
|
+
this.getAddAndTakeData(newAccountData);
|
|
744
744
|
}
|
|
745
745
|
deleteAllData() {
|
|
746
746
|
this.accountData.addAndTakeData.forEach(d => {
|
|
@@ -749,7 +749,8 @@ export default class AddAndTake extends Vue {
|
|
|
749
749
|
this.getAddAndTakeData();
|
|
750
750
|
}
|
|
751
751
|
updateData(values) {
|
|
752
|
-
|
|
752
|
+
const newAccountData = rebuildAccountDataBySetting(values, cloneDeep(this.accountData));
|
|
753
|
+
return this.getAddAndTakeData(newAccountData)
|
|
753
754
|
.then(() => this.goToTable())
|
|
754
755
|
.catch(() => {});
|
|
755
756
|
}
|
|
@@ -101,6 +101,8 @@ export default class BxtPlanbookInput extends Vue {
|
|
|
101
101
|
parmas.resultUuid = this.URL_PARAM.uuid;
|
|
102
102
|
} else if (this.URL_PARAM.publicPbUuid) {
|
|
103
103
|
parmas.publicPbUuid = this.URL_PARAM.publicPbUuid || '5d6499946bbb47bb8f6a286e9d4eee77';
|
|
104
|
+
} else {
|
|
105
|
+
parmas.insuranceTypeId = '3933';
|
|
104
106
|
}
|
|
105
107
|
let apiPromise = fetch('https://app.winbaoxian.cn/planBook/public/init', {
|
|
106
108
|
method: 'POST',
|