bxs-tools-ui 1.2.19 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/.DS_Store +0 -0
- package/lib/index.css +34 -2
- package/lib/index.js +106 -18
- package/lib/product-info/index.css +34 -2
- package/lib/product-info/index.js +95 -7
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/insurance.ts +1 -1
- package/packages/planbook-input/components/product-table.vue +3 -0
- package/packages/planbook-input/index.vue +6 -0
- package/packages/product-info/demo/constant.js +993 -0
- package/packages/product-info/index.css +38 -2
- package/packages/product-info/index.vue +77 -2
- package/packages/product-info/readme.md +11 -74
package/lib/.DS_Store
ADDED
|
Binary file
|
package/lib/index.css
CHANGED
|
@@ -2099,8 +2099,40 @@ footer {
|
|
|
2099
2099
|
.bxt-product-info {
|
|
2100
2100
|
padding: 10px
|
|
2101
2101
|
}
|
|
2102
|
+
.bxt-product-info .bxt-custom-result {
|
|
2103
|
+
margin-bottom: 9px;
|
|
2104
|
+
background: white;
|
|
2105
|
+
font-size: 15px;
|
|
2106
|
+
color: #333
|
|
2107
|
+
}
|
|
2108
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title {
|
|
2109
|
+
padding: 15px;
|
|
2110
|
+
position: relative
|
|
2111
|
+
}
|
|
2112
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bxt-custom-result-title_desc .icon-arrows_up,
|
|
2113
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bxt-custom-result-title_desc .icon-arrows_down {
|
|
2114
|
+
color: #ccc;
|
|
2115
|
+
}
|
|
2116
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bx-switch-box {
|
|
2117
|
+
position: absolute;
|
|
2118
|
+
top: 50%;
|
|
2119
|
+
right: 0;
|
|
2120
|
+
-webkit-transform: translateY(-50%);
|
|
2121
|
+
transform: translateY(-50%);
|
|
2122
|
+
|
|
2123
|
+
right: 15px
|
|
2124
|
+
}
|
|
2125
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bx-switch-box .bx-switch-circle {
|
|
2126
|
+
pointer-events: none;
|
|
2127
|
+
}
|
|
2128
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-tips {
|
|
2129
|
+
padding: 0 15px 15px;
|
|
2130
|
+
font-size: 14px;
|
|
2131
|
+
line-height: normal;
|
|
2132
|
+
color: #999;
|
|
2133
|
+
}
|
|
2102
2134
|
.bxt-product-info .bxt-product-info-form {
|
|
2103
|
-
background:
|
|
2135
|
+
background: white;
|
|
2104
2136
|
margin-bottom: 9px;
|
|
2105
2137
|
border-radius: 6px
|
|
2106
2138
|
}
|
|
@@ -2214,7 +2246,7 @@ footer {
|
|
|
2214
2246
|
padding: 1px 12px;
|
|
2215
2247
|
line-height: normal;
|
|
2216
2248
|
background: #666;
|
|
2217
|
-
color:
|
|
2249
|
+
color: white;
|
|
2218
2250
|
font-size: 12px;
|
|
2219
2251
|
border-radius: 4px;
|
|
2220
2252
|
}
|
package/lib/index.js
CHANGED
|
@@ -3141,10 +3141,10 @@ module.exports = getNative;
|
|
|
3141
3141
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3142
3142
|
|
|
3143
3143
|
"use strict";
|
|
3144
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3145
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3146
|
-
/*
|
|
3147
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3144
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return initInsuranceData; });
|
|
3145
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insuranceDataHandler; });
|
|
3146
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initElementValidateRules; });
|
|
3147
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return restrictElementsInInsurance; });
|
|
3148
3148
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
3149
3149
|
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
3150
3150
|
|
|
@@ -6075,7 +6075,7 @@ function initProductData(prodData) {
|
|
|
6075
6075
|
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
6076
6076
|
}
|
|
6077
6077
|
prodData.mulInsOrderList.forEach(function (ins) {
|
|
6078
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* initInsuranceData */ "
|
|
6078
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* initInsuranceData */ "b"])(ins);
|
|
6079
6079
|
});
|
|
6080
6080
|
return prodData;
|
|
6081
6081
|
}
|
|
@@ -6090,7 +6090,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
|
|
|
6090
6090
|
setCommonInfo(prodData);
|
|
6091
6091
|
(_a = prodData.mulInsOrderList) === null || _a === void 0 ? void 0 : _a.forEach(function (ins, ii, insList) {
|
|
6092
6092
|
var _a, _b, _c;
|
|
6093
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* insuranceDataHandler */ "
|
|
6093
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
6094
6094
|
var insuranceVerifyData = productVerifyData[ins.key];
|
|
6095
6095
|
if (!insuranceVerifyData) {
|
|
6096
6096
|
if (window.DEBUG_TEMP_CONSOLE_FLAG) {
|
|
@@ -6510,7 +6510,7 @@ function verifyProductRules(_a) {
|
|
|
6510
6510
|
ins.eleOrderList.forEach(function (ele) {
|
|
6511
6511
|
errorMsg =
|
|
6512
6512
|
errorMsg ||
|
|
6513
|
-
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* restrictElementsInInsurance */ "
|
|
6513
|
+
Object(_insurance__WEBPACK_IMPORTED_MODULE_3__[/* restrictElementsInInsurance */ "d"])({
|
|
6514
6514
|
personOrderList: personOrderList,
|
|
6515
6515
|
insData: ins,
|
|
6516
6516
|
eleData: ele
|
|
@@ -16574,8 +16574,8 @@ function isSlowBuffer (obj) {
|
|
|
16574
16574
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16575
16575
|
|
|
16576
16576
|
"use strict";
|
|
16577
|
-
/* harmony import */ var
|
|
16578
|
-
/* harmony import */ var
|
|
16577
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_403daf62_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87);
|
|
16578
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_403daf62_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_403daf62_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
16579
16579
|
/* unused harmony reexport * */
|
|
16580
16580
|
|
|
16581
16581
|
|
|
@@ -22659,15 +22659,44 @@ var person_info_component = normalizeComponent(
|
|
|
22659
22659
|
)
|
|
22660
22660
|
|
|
22661
22661
|
/* harmony default export */ var person_info = (person_info_component.exports);
|
|
22662
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/product-info/index.vue?vue&type=template&id=
|
|
22663
|
-
var
|
|
22662
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/product-info/index.vue?vue&type=template&id=403daf62&
|
|
22663
|
+
var product_infovue_type_template_id_403daf62_render = function render() {
|
|
22664
22664
|
var _vm = this,
|
|
22665
22665
|
_c = _vm._self._c,
|
|
22666
22666
|
_setup = _vm._self._setupProxy;
|
|
22667
22667
|
|
|
22668
22668
|
return _vm.productData && _vm.productData.mulInsOrderList ? _c('div', {
|
|
22669
22669
|
staticClass: "bxt-product-info"
|
|
22670
|
-
}, [_vm.
|
|
22670
|
+
}, [_vm.params.allowCustomResult ? _c('section', {
|
|
22671
|
+
staticClass: "bxt-custom-result"
|
|
22672
|
+
}, [_c('div', {
|
|
22673
|
+
staticClass: "bxt-custom-result-title"
|
|
22674
|
+
}, [_c('span', {
|
|
22675
|
+
staticClass: "bxt-custom-result-title_desc",
|
|
22676
|
+
on: {
|
|
22677
|
+
"click": function click($event) {
|
|
22678
|
+
_vm.isShowCustomValueTips = !_vm.isShowCustomValueTips;
|
|
22679
|
+
}
|
|
22680
|
+
}
|
|
22681
|
+
}, [_vm._v("\n 自定义保费\n "), _c('i', {
|
|
22682
|
+
staticClass: "iconfont",
|
|
22683
|
+
class: _vm.isShowCustomValueTips ? 'icon-arrows_up' : 'icon-arrows_down'
|
|
22684
|
+
})]), _c('bxs-switch', {
|
|
22685
|
+
on: {
|
|
22686
|
+
"change": function change($event) {
|
|
22687
|
+
return _vm.createInsuranceInputResultEle();
|
|
22688
|
+
}
|
|
22689
|
+
},
|
|
22690
|
+
model: {
|
|
22691
|
+
value: _vm.productData.inputResultSwitch,
|
|
22692
|
+
callback: function callback($$v) {
|
|
22693
|
+
_vm.$set(_vm.productData, "inputResultSwitch", $$v);
|
|
22694
|
+
},
|
|
22695
|
+
expression: "productData.inputResultSwitch"
|
|
22696
|
+
}
|
|
22697
|
+
})], 1), _vm.isShowCustomValueTips ? _c('div', {
|
|
22698
|
+
staticClass: "bxt-custom-result-tips"
|
|
22699
|
+
}, [_vm._v("\n 保险公司会因非标准体等原因修改费率。"), _c('br'), _vm._v("\n 打开\"自定义保费\"功能,按保单填写实际保费/保额\n ")]) : _vm._e()]) : _vm._e(), _vm._l(_vm.filterInsuranceList, function (ins) {
|
|
22671
22700
|
return [_c('bxs-form', {
|
|
22672
22701
|
key: ins.key,
|
|
22673
22702
|
ref: "insuranceForm".concat(ins.key),
|
|
@@ -22943,9 +22972,9 @@ var product_infovue_type_template_id_e116ecb2_render = function render() {
|
|
|
22943
22972
|
})], 2) : _vm._e();
|
|
22944
22973
|
};
|
|
22945
22974
|
|
|
22946
|
-
var
|
|
22975
|
+
var product_infovue_type_template_id_403daf62_staticRenderFns = [];
|
|
22947
22976
|
|
|
22948
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
22977
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=403daf62&
|
|
22949
22978
|
|
|
22950
22979
|
// EXTERNAL MODULE: ./node_modules/md5/md5.js
|
|
22951
22980
|
var md5 = __webpack_require__(47);
|
|
@@ -23526,6 +23555,7 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23526
23555
|
_this.numberUnitStr = '';
|
|
23527
23556
|
_this.recommendValues = {};
|
|
23528
23557
|
_this.recommendValuesCache = {};
|
|
23558
|
+
_this.isShowCustomValueTips = true;
|
|
23529
23559
|
return _this;
|
|
23530
23560
|
}
|
|
23531
23561
|
Object.defineProperty(BxtProductInfo.prototype, "personData", {
|
|
@@ -23626,6 +23656,12 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23626
23656
|
Object(product["a" /* clearAddAndTakeAndAdjustBaoeData */])(productData);
|
|
23627
23657
|
}
|
|
23628
23658
|
Object(product["d" /* productDataHandler */])(productData, this.verifyData && this.verifyData[productData.key], this.personData);
|
|
23659
|
+
if (options.type === 'change') {
|
|
23660
|
+
this.createInsuranceInputResultEle(options.insData, options.eleData);
|
|
23661
|
+
}
|
|
23662
|
+
else {
|
|
23663
|
+
this.createInsuranceInputResultEle();
|
|
23664
|
+
}
|
|
23629
23665
|
return Object(product["e" /* verifyProductRules */])(Object(tslib_es6["a" /* __assign */])({ personData: this.personData, productData: productData }, options));
|
|
23630
23666
|
};
|
|
23631
23667
|
BxtProductInfo.prototype.isInsuranceChecked = function (ins) {
|
|
@@ -23824,6 +23860,51 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23824
23860
|
}
|
|
23825
23861
|
});
|
|
23826
23862
|
};
|
|
23863
|
+
BxtProductInfo.prototype.createInsuranceInputResultEle = function (insData, eleData) {
|
|
23864
|
+
var _a = this, params = _a.params, productData = _a.productData;
|
|
23865
|
+
if (!params.allowCustomResult) {
|
|
23866
|
+
return;
|
|
23867
|
+
}
|
|
23868
|
+
productData.mulInsOrderList
|
|
23869
|
+
.filter(function (e) { return e.key !== 'common' || e.eleOrderList; })
|
|
23870
|
+
.forEach(function (ins) {
|
|
23871
|
+
if (ins.groupKey) {
|
|
23872
|
+
return;
|
|
23873
|
+
}
|
|
23874
|
+
if (insData && eleData && !insData.isGroup && insData.key === ins.key && eleData.key !== 'calMethod') {
|
|
23875
|
+
return;
|
|
23876
|
+
}
|
|
23877
|
+
var calMethod = ins.eleOrderList.find(function (e) { return e.key === 'calMethod'; });
|
|
23878
|
+
var baof = ins.eleOrderList.find(function (e) { return e.key === 'baof'; });
|
|
23879
|
+
var inputResult = ins.eleOrderList.find(function (e) { return e.key === 'inputResult'; });
|
|
23880
|
+
var labelName = calMethod ? (calMethod.value === 'baof2baoe' ? '保额' : '保费') : baof ? '保额' : '保费';
|
|
23881
|
+
var value = ins.inputResult === undefined ? null : ins.inputResult;
|
|
23882
|
+
if (inputResult) {
|
|
23883
|
+
value = inputResult.value;
|
|
23884
|
+
}
|
|
23885
|
+
if (insData && eleData && insData.key === ins.key && eleData.key === 'inputResult') {
|
|
23886
|
+
value = eleData.value;
|
|
23887
|
+
}
|
|
23888
|
+
inputResult = {
|
|
23889
|
+
componentName: 'cmCommonInput',
|
|
23890
|
+
placeholder: "\u6309\u7167\u4FDD\u5355\u586B\u5199" + labelName,
|
|
23891
|
+
isHide: !productData.inputResultSwitch,
|
|
23892
|
+
key: 'inputResult',
|
|
23893
|
+
labelName: "\u81EA\u5B9A\u4E49" + labelName,
|
|
23894
|
+
inputType: 'text',
|
|
23895
|
+
required: false,
|
|
23896
|
+
regExp: '/^\\d{1,}(\\.\\d{1,2})?$/',
|
|
23897
|
+
regExpMessage: '请输入1-2位小数的值',
|
|
23898
|
+
value: value
|
|
23899
|
+
};
|
|
23900
|
+
inputResult.rules = Object(planbook_insurance["a" /* initElementValidateRules */])(inputResult);
|
|
23901
|
+
delete ins.inputResult;
|
|
23902
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (e) { return e.key !== 'inputResult'; });
|
|
23903
|
+
if (productData.inputResultSwitch) {
|
|
23904
|
+
ins.eleOrderList.push(inputResult);
|
|
23905
|
+
}
|
|
23906
|
+
});
|
|
23907
|
+
};
|
|
23827
23908
|
Object(tslib_es6["c" /* __decorate */])([
|
|
23828
23909
|
Prop({
|
|
23829
23910
|
default: function () { return ({}); }
|
|
@@ -23848,6 +23929,12 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23848
23929
|
}),
|
|
23849
23930
|
Object(tslib_es6["f" /* __metadata */])("design:type", Object)
|
|
23850
23931
|
], BxtProductInfo.prototype, "productKey", void 0);
|
|
23932
|
+
Object(tslib_es6["c" /* __decorate */])([
|
|
23933
|
+
Prop({
|
|
23934
|
+
default: function () { return ({}); }
|
|
23935
|
+
}),
|
|
23936
|
+
Object(tslib_es6["f" /* __metadata */])("design:type", Object)
|
|
23937
|
+
], BxtProductInfo.prototype, "params", void 0);
|
|
23851
23938
|
BxtProductInfo = Object(tslib_es6["c" /* __decorate */])([
|
|
23852
23939
|
vue_class_component_esm({
|
|
23853
23940
|
name: 'BxtProductInfo',
|
|
@@ -23860,6 +23947,7 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23860
23947
|
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Input"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Input"],
|
|
23861
23948
|
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["RadioGroup"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["RadioGroup"],
|
|
23862
23949
|
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Radio"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Radio"],
|
|
23950
|
+
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Switch"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Switch"],
|
|
23863
23951
|
product_infovue_type_script_lang_ts_a)
|
|
23864
23952
|
})
|
|
23865
23953
|
], BxtProductInfo);
|
|
@@ -23869,8 +23957,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
23869
23957
|
|
|
23870
23958
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
23871
23959
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
23872
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
23873
|
-
var
|
|
23960
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=403daf62&prod&lang=css&
|
|
23961
|
+
var product_infovue_type_style_index_0_id_403daf62_prod_lang_css_ = __webpack_require__(226);
|
|
23874
23962
|
|
|
23875
23963
|
// CONCATENATED MODULE: ./packages/product-info/index.vue
|
|
23876
23964
|
|
|
@@ -23883,8 +23971,8 @@ var product_infovue_type_style_index_0_id_e116ecb2_prod_lang_css_ = __webpack_re
|
|
|
23883
23971
|
|
|
23884
23972
|
var product_info_component = normalizeComponent(
|
|
23885
23973
|
packages_product_infovue_type_script_lang_ts_,
|
|
23886
|
-
|
|
23887
|
-
|
|
23974
|
+
product_infovue_type_template_id_403daf62_render,
|
|
23975
|
+
product_infovue_type_template_id_403daf62_staticRenderFns,
|
|
23888
23976
|
false,
|
|
23889
23977
|
null,
|
|
23890
23978
|
null,
|
|
@@ -314,8 +314,40 @@ footer {
|
|
|
314
314
|
.bxt-product-info {
|
|
315
315
|
padding: 10px
|
|
316
316
|
}
|
|
317
|
+
.bxt-product-info .bxt-custom-result {
|
|
318
|
+
margin-bottom: 9px;
|
|
319
|
+
background: white;
|
|
320
|
+
font-size: 15px;
|
|
321
|
+
color: #333
|
|
322
|
+
}
|
|
323
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title {
|
|
324
|
+
padding: 15px;
|
|
325
|
+
position: relative
|
|
326
|
+
}
|
|
327
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bxt-custom-result-title_desc .icon-arrows_up,
|
|
328
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bxt-custom-result-title_desc .icon-arrows_down {
|
|
329
|
+
color: #ccc;
|
|
330
|
+
}
|
|
331
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bx-switch-box {
|
|
332
|
+
position: absolute;
|
|
333
|
+
top: 50%;
|
|
334
|
+
right: 0;
|
|
335
|
+
-webkit-transform: translateY(-50%);
|
|
336
|
+
transform: translateY(-50%);
|
|
337
|
+
|
|
338
|
+
right: 15px
|
|
339
|
+
}
|
|
340
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-title .bx-switch-box .bx-switch-circle {
|
|
341
|
+
pointer-events: none;
|
|
342
|
+
}
|
|
343
|
+
.bxt-product-info .bxt-custom-result .bxt-custom-result-tips {
|
|
344
|
+
padding: 0 15px 15px;
|
|
345
|
+
font-size: 14px;
|
|
346
|
+
line-height: normal;
|
|
347
|
+
color: #999;
|
|
348
|
+
}
|
|
317
349
|
.bxt-product-info .bxt-product-info-form {
|
|
318
|
-
background:
|
|
350
|
+
background: white;
|
|
319
351
|
margin-bottom: 9px;
|
|
320
352
|
border-radius: 6px
|
|
321
353
|
}
|
|
@@ -429,7 +461,7 @@ footer {
|
|
|
429
461
|
padding: 1px 12px;
|
|
430
462
|
line-height: normal;
|
|
431
463
|
background: #666;
|
|
432
|
-
color:
|
|
464
|
+
color: white;
|
|
433
465
|
font-size: 12px;
|
|
434
466
|
border-radius: 4px;
|
|
435
467
|
}
|
|
@@ -12961,8 +12961,8 @@ function isSlowBuffer (obj) {
|
|
|
12961
12961
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12962
12962
|
|
|
12963
12963
|
"use strict";
|
|
12964
|
-
/* harmony import */ var
|
|
12965
|
-
/* harmony import */ var
|
|
12964
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_403daf62_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(188);
|
|
12965
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_403daf62_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_403daf62_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
12966
12966
|
/* unused harmony reexport * */
|
|
12967
12967
|
|
|
12968
12968
|
|
|
@@ -12976,7 +12976,7 @@ function isSlowBuffer (obj) {
|
|
|
12976
12976
|
// ESM COMPAT FLAG
|
|
12977
12977
|
__webpack_require__.r(__webpack_exports__);
|
|
12978
12978
|
|
|
12979
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/product-info/index.vue?vue&type=template&id=
|
|
12979
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/product-info/index.vue?vue&type=template&id=403daf62&
|
|
12980
12980
|
var render = function render() {
|
|
12981
12981
|
var _vm = this,
|
|
12982
12982
|
_c = _vm._self._c,
|
|
@@ -12984,7 +12984,36 @@ var render = function render() {
|
|
|
12984
12984
|
|
|
12985
12985
|
return _vm.productData && _vm.productData.mulInsOrderList ? _c('div', {
|
|
12986
12986
|
staticClass: "bxt-product-info"
|
|
12987
|
-
}, [_vm.
|
|
12987
|
+
}, [_vm.params.allowCustomResult ? _c('section', {
|
|
12988
|
+
staticClass: "bxt-custom-result"
|
|
12989
|
+
}, [_c('div', {
|
|
12990
|
+
staticClass: "bxt-custom-result-title"
|
|
12991
|
+
}, [_c('span', {
|
|
12992
|
+
staticClass: "bxt-custom-result-title_desc",
|
|
12993
|
+
on: {
|
|
12994
|
+
"click": function click($event) {
|
|
12995
|
+
_vm.isShowCustomValueTips = !_vm.isShowCustomValueTips;
|
|
12996
|
+
}
|
|
12997
|
+
}
|
|
12998
|
+
}, [_vm._v("\n 自定义保费\n "), _c('i', {
|
|
12999
|
+
staticClass: "iconfont",
|
|
13000
|
+
class: _vm.isShowCustomValueTips ? 'icon-arrows_up' : 'icon-arrows_down'
|
|
13001
|
+
})]), _c('bxs-switch', {
|
|
13002
|
+
on: {
|
|
13003
|
+
"change": function change($event) {
|
|
13004
|
+
return _vm.createInsuranceInputResultEle();
|
|
13005
|
+
}
|
|
13006
|
+
},
|
|
13007
|
+
model: {
|
|
13008
|
+
value: _vm.productData.inputResultSwitch,
|
|
13009
|
+
callback: function callback($$v) {
|
|
13010
|
+
_vm.$set(_vm.productData, "inputResultSwitch", $$v);
|
|
13011
|
+
},
|
|
13012
|
+
expression: "productData.inputResultSwitch"
|
|
13013
|
+
}
|
|
13014
|
+
})], 1), _vm.isShowCustomValueTips ? _c('div', {
|
|
13015
|
+
staticClass: "bxt-custom-result-tips"
|
|
13016
|
+
}, [_vm._v("\n 保险公司会因非标准体等原因修改费率。"), _c('br'), _vm._v("\n 打开\"自定义保费\"功能,按保单填写实际保费/保额\n ")]) : _vm._e()]) : _vm._e(), _vm._l(_vm.filterInsuranceList, function (ins) {
|
|
12988
13017
|
return [_c('bxs-form', {
|
|
12989
13018
|
key: ins.key,
|
|
12990
13019
|
ref: "insuranceForm".concat(ins.key),
|
|
@@ -13262,7 +13291,7 @@ var render = function render() {
|
|
|
13262
13291
|
|
|
13263
13292
|
var staticRenderFns = [];
|
|
13264
13293
|
|
|
13265
|
-
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=
|
|
13294
|
+
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=403daf62&
|
|
13266
13295
|
|
|
13267
13296
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
13268
13297
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -13872,6 +13901,7 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
13872
13901
|
_this.numberUnitStr = '';
|
|
13873
13902
|
_this.recommendValues = {};
|
|
13874
13903
|
_this.recommendValuesCache = {};
|
|
13904
|
+
_this.isShowCustomValueTips = true;
|
|
13875
13905
|
return _this;
|
|
13876
13906
|
}
|
|
13877
13907
|
Object.defineProperty(BxtProductInfo.prototype, "personData", {
|
|
@@ -13972,6 +14002,12 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
13972
14002
|
Object(bxs_utils["clearAddAndTakeAndAdjustBaoeData"])(productData);
|
|
13973
14003
|
}
|
|
13974
14004
|
Object(bxs_utils["productDataHandler"])(productData, this.verifyData && this.verifyData[productData.key], this.personData);
|
|
14005
|
+
if (options.type === 'change') {
|
|
14006
|
+
this.createInsuranceInputResultEle(options.insData, options.eleData);
|
|
14007
|
+
}
|
|
14008
|
+
else {
|
|
14009
|
+
this.createInsuranceInputResultEle();
|
|
14010
|
+
}
|
|
13975
14011
|
return Object(bxs_utils["verifyProductRules"])(Object(tslib_es6["a" /* __assign */])({ personData: this.personData, productData: productData }, options));
|
|
13976
14012
|
};
|
|
13977
14013
|
BxtProductInfo.prototype.isInsuranceChecked = function (ins) {
|
|
@@ -14170,6 +14206,51 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
14170
14206
|
}
|
|
14171
14207
|
});
|
|
14172
14208
|
};
|
|
14209
|
+
BxtProductInfo.prototype.createInsuranceInputResultEle = function (insData, eleData) {
|
|
14210
|
+
var _a = this, params = _a.params, productData = _a.productData;
|
|
14211
|
+
if (!params.allowCustomResult) {
|
|
14212
|
+
return;
|
|
14213
|
+
}
|
|
14214
|
+
productData.mulInsOrderList
|
|
14215
|
+
.filter(function (e) { return e.key !== 'common' || e.eleOrderList; })
|
|
14216
|
+
.forEach(function (ins) {
|
|
14217
|
+
if (ins.groupKey) {
|
|
14218
|
+
return;
|
|
14219
|
+
}
|
|
14220
|
+
if (insData && eleData && !insData.isGroup && insData.key === ins.key && eleData.key !== 'calMethod') {
|
|
14221
|
+
return;
|
|
14222
|
+
}
|
|
14223
|
+
var calMethod = ins.eleOrderList.find(function (e) { return e.key === 'calMethod'; });
|
|
14224
|
+
var baof = ins.eleOrderList.find(function (e) { return e.key === 'baof'; });
|
|
14225
|
+
var inputResult = ins.eleOrderList.find(function (e) { return e.key === 'inputResult'; });
|
|
14226
|
+
var labelName = calMethod ? (calMethod.value === 'baof2baoe' ? '保额' : '保费') : baof ? '保额' : '保费';
|
|
14227
|
+
var value = ins.inputResult === undefined ? null : ins.inputResult;
|
|
14228
|
+
if (inputResult) {
|
|
14229
|
+
value = inputResult.value;
|
|
14230
|
+
}
|
|
14231
|
+
if (insData && eleData && insData.key === ins.key && eleData.key === 'inputResult') {
|
|
14232
|
+
value = eleData.value;
|
|
14233
|
+
}
|
|
14234
|
+
inputResult = {
|
|
14235
|
+
componentName: 'cmCommonInput',
|
|
14236
|
+
placeholder: "\u6309\u7167\u4FDD\u5355\u586B\u5199" + labelName,
|
|
14237
|
+
isHide: !productData.inputResultSwitch,
|
|
14238
|
+
key: 'inputResult',
|
|
14239
|
+
labelName: "\u81EA\u5B9A\u4E49" + labelName,
|
|
14240
|
+
inputType: 'text',
|
|
14241
|
+
required: false,
|
|
14242
|
+
regExp: '/^\\d{1,}(\\.\\d{1,2})?$/',
|
|
14243
|
+
regExpMessage: '请输入1-2位小数的值',
|
|
14244
|
+
value: value
|
|
14245
|
+
};
|
|
14246
|
+
inputResult.rules = Object(bxs_utils["initElementValidateRules"])(inputResult);
|
|
14247
|
+
delete ins.inputResult;
|
|
14248
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (e) { return e.key !== 'inputResult'; });
|
|
14249
|
+
if (productData.inputResultSwitch) {
|
|
14250
|
+
ins.eleOrderList.push(inputResult);
|
|
14251
|
+
}
|
|
14252
|
+
});
|
|
14253
|
+
};
|
|
14173
14254
|
Object(tslib_es6["c" /* __decorate */])([
|
|
14174
14255
|
Object(vue_property_decorator["c" /* Prop */])({
|
|
14175
14256
|
default: function () { return ({}); }
|
|
@@ -14194,6 +14275,12 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
14194
14275
|
}),
|
|
14195
14276
|
Object(tslib_es6["f" /* __metadata */])("design:type", Object)
|
|
14196
14277
|
], BxtProductInfo.prototype, "productKey", void 0);
|
|
14278
|
+
Object(tslib_es6["c" /* __decorate */])([
|
|
14279
|
+
Object(vue_property_decorator["c" /* Prop */])({
|
|
14280
|
+
default: function () { return ({}); }
|
|
14281
|
+
}),
|
|
14282
|
+
Object(tslib_es6["f" /* __metadata */])("design:type", Object)
|
|
14283
|
+
], BxtProductInfo.prototype, "params", void 0);
|
|
14197
14284
|
BxtProductInfo = Object(tslib_es6["c" /* __decorate */])([
|
|
14198
14285
|
Object(vue_property_decorator["a" /* Component */])({
|
|
14199
14286
|
name: 'BxtProductInfo',
|
|
@@ -14206,6 +14293,7 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
14206
14293
|
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Input"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Input"],
|
|
14207
14294
|
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["RadioGroup"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["RadioGroup"],
|
|
14208
14295
|
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Radio"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Radio"],
|
|
14296
|
+
product_infovue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Switch"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Switch"],
|
|
14209
14297
|
product_infovue_type_script_lang_ts_a)
|
|
14210
14298
|
})
|
|
14211
14299
|
], BxtProductInfo);
|
|
@@ -14215,8 +14303,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
|
|
|
14215
14303
|
|
|
14216
14304
|
// CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
|
|
14217
14305
|
/* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
|
|
14218
|
-
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=
|
|
14219
|
-
var
|
|
14306
|
+
// EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=403daf62&prod&lang=css&
|
|
14307
|
+
var product_infovue_type_style_index_0_id_403daf62_prod_lang_css_ = __webpack_require__(234);
|
|
14220
14308
|
|
|
14221
14309
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
14222
14310
|
var componentNormalizer = __webpack_require__(8);
|
package/package.json
CHANGED
|
@@ -130,7 +130,7 @@ export function insuranceDataHandler(insData : IProdInsurance, productData : IPb
|
|
|
130
130
|
* @param {IPbProduct} productData 可不传。产品数据(单个)
|
|
131
131
|
* @returns {object} 元素的校验规则
|
|
132
132
|
*/
|
|
133
|
-
export function initElementValidateRules(ele : IInsElement, productData : IPbProduct) : any {
|
|
133
|
+
export function initElementValidateRules(ele : IInsElement, productData? : IPbProduct) : any {
|
|
134
134
|
let rules : any = [];
|
|
135
135
|
// 必填及正则校验
|
|
136
136
|
if (['cmCommonInput'].indexOf(String(ele.componentName)) !== -1) {
|
|
@@ -98,6 +98,7 @@ export default class BxtPlanbookInput extends Vue {
|
|
|
98
98
|
const parmas: any = {};
|
|
99
99
|
if (this.URL_PARAM.planbookId) {
|
|
100
100
|
parmas.insuranceTypeId = this.URL_PARAM.planbookId;
|
|
101
|
+
parmas.resultUuid = this.URL_PARAM.uuid;
|
|
101
102
|
} else if (this.URL_PARAM.publicPbUuid) {
|
|
102
103
|
parmas.publicPbUuid = this.URL_PARAM.publicPbUuid || '5d6499946bbb47bb8f6a286e9d4eee77';
|
|
103
104
|
}
|
|
@@ -124,6 +125,11 @@ export default class BxtPlanbookInput extends Vue {
|
|
|
124
125
|
initPageData(data);
|
|
125
126
|
initRecipientData(data.initData.inputData.personData.recipientInfo);
|
|
126
127
|
setPageDataBaseOnResult(data);
|
|
128
|
+
data.initData.inputData.productGroupList.map((g: IPbProductGroup) => {
|
|
129
|
+
g.prodOrderList.map((p: IPbProduct, pi) => {
|
|
130
|
+
p.inputResultSwitch = !!p.inputResultSwitch;
|
|
131
|
+
});
|
|
132
|
+
});
|
|
127
133
|
this.planbookData = data;
|
|
128
134
|
document.title = `DEMO:${this.planbookData.title}`;
|
|
129
135
|
this.autoImportData();
|