bxs-tools-ui 3.1.3 → 3.2.0-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/es/add-and-take/index.js +2 -4
- package/es/adjust-baoe/index.js +2 -4
- package/es/index.js +262 -59
- package/es/insure-calculate/index.js +2 -4
- package/es/person-info/index.js +185 -21
- package/es/product-info/index.js +244 -43
- package/es/share-sheet/index.js +2 -4
- package/es/utils/index.js +191 -25
- package/lib/add-and-take/index.js +2 -4
- package/lib/adjust-baoe/index.js +2 -4
- package/lib/index.js +262 -59
- package/lib/insure-calculate/index.js +2 -4
- package/lib/person-info/index.js +185 -21
- package/lib/product-info/index.js +244 -43
- package/lib/share-sheet/index.js +2 -4
- package/lib/utils/index.js +194 -24
- package/package.json +1 -1
- package/packages/add-and-take/demo/index.vue +2 -2
- package/packages/bxs-utils/planbook/common.ts +144 -0
- package/packages/bxs-utils/planbook/index.ts +1 -4
- package/packages/bxs-utils/planbook/person.ts +2 -4
- package/packages/bxs-utils/planbook/product.ts +21 -20
- package/packages/index.ts +1 -1
- package/packages/planbook-input/components/product-table.vue +8 -9
- package/packages/planbook-input/helper.js +134 -11
- package/packages/planbook-input/index.vue +39 -9
- package/packages/product-info/index.vue +42 -8
package/es/add-and-take/index.js
CHANGED
|
@@ -8621,6 +8621,8 @@ var PURPOSE_OPTIONS = [{
|
|
|
8621
8621
|
desc: '自定义'
|
|
8622
8622
|
}];
|
|
8623
8623
|
|
|
8624
|
+
document && document.cookie && document.cookie.match('ENABLE_LIZHAO_DEBUG=1');
|
|
8625
|
+
|
|
8624
8626
|
/**
|
|
8625
8627
|
* 将数值转换为千分位
|
|
8626
8628
|
* @author Lizhao <lz@winbaoxian.com>
|
|
@@ -8670,10 +8672,6 @@ memoize(function (params) {
|
|
|
8670
8672
|
return QS.stringify(params);
|
|
8671
8673
|
});
|
|
8672
8674
|
|
|
8673
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
8674
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
8675
|
-
}
|
|
8676
|
-
|
|
8677
8675
|
//
|
|
8678
8676
|
//
|
|
8679
8677
|
//
|
package/es/adjust-baoe/index.js
CHANGED
|
@@ -472,6 +472,8 @@ function Watch(path, options) {
|
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
+
document && document.cookie && document.cookie.match('ENABLE_LIZHAO_DEBUG=1');
|
|
476
|
+
|
|
475
477
|
/**
|
|
476
478
|
* **将对象下的 eleOrderList 数组中的子元素下的 value,转换为 key-value 键值对**
|
|
477
479
|
* @author Lizhao <lz@winbaoxian.com>
|
|
@@ -9128,10 +9130,6 @@ function convertProductData(prodData) {
|
|
|
9128
9130
|
return productData;
|
|
9129
9131
|
}
|
|
9130
9132
|
|
|
9131
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
9132
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
9133
|
-
}
|
|
9134
|
-
|
|
9135
9133
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
9136
9134
|
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; }
|
|
9137
9135
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty$1(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; }
|
package/es/index.js
CHANGED
|
@@ -8633,6 +8633,14 @@ var PURPOSE_OPTIONS = [{
|
|
|
8633
8633
|
desc: '自定义'
|
|
8634
8634
|
}];
|
|
8635
8635
|
|
|
8636
|
+
var enableLizhaoDebug = document && document.cookie && document.cookie.match('ENABLE_LIZHAO_DEBUG=1');
|
|
8637
|
+
function consoleLogWhenEnable() {
|
|
8638
|
+
if (enableLizhaoDebug) {
|
|
8639
|
+
var _console;
|
|
8640
|
+
(_console = console).log.apply(_console, arguments);
|
|
8641
|
+
}
|
|
8642
|
+
}
|
|
8643
|
+
|
|
8636
8644
|
/**
|
|
8637
8645
|
* **将对象下的 eleOrderList 数组中的子元素下的 value,转换为 key-value 键值对**
|
|
8638
8646
|
* @author Lizhao <lz@winbaoxian.com>
|
|
@@ -8895,6 +8903,167 @@ function textOverflowEllipsis(str, n) {
|
|
|
8895
8903
|
}
|
|
8896
8904
|
return text;
|
|
8897
8905
|
}
|
|
8906
|
+
function getExpressionParamMap(personData, product, ins, options) {
|
|
8907
|
+
var map = {
|
|
8908
|
+
planbookId: null,
|
|
8909
|
+
// 计划书id
|
|
8910
|
+
productId: null,
|
|
8911
|
+
// 产品id
|
|
8912
|
+
insured: {},
|
|
8913
|
+
// 被保人
|
|
8914
|
+
insured2: {},
|
|
8915
|
+
// 第二被保人
|
|
8916
|
+
applicant: {},
|
|
8917
|
+
// 投保人
|
|
8918
|
+
recipient: {},
|
|
8919
|
+
// 收件人
|
|
8920
|
+
p: {},
|
|
8921
|
+
// 当前产品
|
|
8922
|
+
m: {},
|
|
8923
|
+
// 主险
|
|
8924
|
+
me: {},
|
|
8925
|
+
// 当前险种
|
|
8926
|
+
common: {},
|
|
8927
|
+
// 通用信息
|
|
8928
|
+
customVariable: null,
|
|
8929
|
+
// 自定义变量
|
|
8930
|
+
cv: null // 简写,自定义变量
|
|
8931
|
+
};
|
|
8932
|
+
if (personData) {
|
|
8933
|
+
var insuredInfo = (personData.personOrderList || []).find(function (p) {
|
|
8934
|
+
return p.key === 'insuredInfo';
|
|
8935
|
+
});
|
|
8936
|
+
var insured2Info = (personData.personOrderList || []).find(function (p) {
|
|
8937
|
+
return p.key === 'insured2Info';
|
|
8938
|
+
});
|
|
8939
|
+
var applicantInfo = (personData.personOrderList || []).find(function (p) {
|
|
8940
|
+
return p.key === 'applicantInfo';
|
|
8941
|
+
});
|
|
8942
|
+
var recipientInfo = personData !== null && personData !== void 0 && personData.recipientInfo ? personData.recipientInfo : null;
|
|
8943
|
+
map.insured = insuredInfo ? convertEleOrderListToObj(insuredInfo) : {};
|
|
8944
|
+
map.insured2 = insured2Info ? convertEleOrderListToObj(insured2Info) : {};
|
|
8945
|
+
map.applicant = applicantInfo ? convertEleOrderListToObj(applicantInfo) : {};
|
|
8946
|
+
map.recipient = recipientInfo ? convertEleOrderListToObj(recipientInfo) : {};
|
|
8947
|
+
}
|
|
8948
|
+
if (ins) {
|
|
8949
|
+
map.me = ins ? convertEleOrderListToObj(ins) : {};
|
|
8950
|
+
map["i".concat(ins.key)] = ins;
|
|
8951
|
+
}
|
|
8952
|
+
if (product) {
|
|
8953
|
+
map.productId = product.key;
|
|
8954
|
+
Object.keys(product).filter(function (k) {
|
|
8955
|
+
return !['mulInsOrderList'].includes(k);
|
|
8956
|
+
}).forEach(function (k) {
|
|
8957
|
+
map.p[k] = product[k];
|
|
8958
|
+
});
|
|
8959
|
+
if (Array.isArray(product.mulInsOrderList)) {
|
|
8960
|
+
var common = product.mulInsOrderList.find(function (item) {
|
|
8961
|
+
return item.key === 'common';
|
|
8962
|
+
});
|
|
8963
|
+
var insuranceList = product.mulInsOrderList.filter(function (item) {
|
|
8964
|
+
return !['common'].includes(item.key);
|
|
8965
|
+
}).map(function (item) {
|
|
8966
|
+
return convertEleOrderListToObj(item);
|
|
8967
|
+
});
|
|
8968
|
+
map.m = insuranceList[0] ? insuranceList[0] : {};
|
|
8969
|
+
map.me = ins && ins.key ? insuranceList.find(function (e) {
|
|
8970
|
+
return e.key === ins.key;
|
|
8971
|
+
}) || {} : {};
|
|
8972
|
+
map.common = common ? convertEleOrderListToObj(common) : {};
|
|
8973
|
+
insuranceList.forEach(function (item) {
|
|
8974
|
+
map["i".concat(item.key)] = item;
|
|
8975
|
+
});
|
|
8976
|
+
}
|
|
8977
|
+
}
|
|
8978
|
+
if (options && options.planbookId) {
|
|
8979
|
+
map.planbookId = options.planbookId;
|
|
8980
|
+
}
|
|
8981
|
+
if (ins && ins.customVariableExp) {
|
|
8982
|
+
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
8983
|
+
map.customVariable = eval(exp);
|
|
8984
|
+
map.cv = map.customVariable;
|
|
8985
|
+
}
|
|
8986
|
+
return map;
|
|
8987
|
+
}
|
|
8988
|
+
function executeElementRule(personData, product, ins, ele) {
|
|
8989
|
+
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
8990
|
+
var paramMap = getExpressionParamMap(personData, product, ins, options);
|
|
8991
|
+
var newEleMap = {};
|
|
8992
|
+
if (paramMap) {
|
|
8993
|
+
if (['cmCommonTitle'].includes(ele.componentName)) {
|
|
8994
|
+
if (ele.underwriteExp) {
|
|
8995
|
+
var exp = ele.underwriteExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
8996
|
+
var evalValue = eval(exp);
|
|
8997
|
+
if (Array.isArray(evalValue)) {
|
|
8998
|
+
if ([0, 1].includes(evalValue[0])) {
|
|
8999
|
+
newEleMap.value = evalValue[0] === 1;
|
|
9000
|
+
}
|
|
9001
|
+
if ([0, 1].includes(evalValue[1])) {
|
|
9002
|
+
newEleMap.isDisabled = evalValue[1] === 0;
|
|
9003
|
+
}
|
|
9004
|
+
}
|
|
9005
|
+
consoleLogWhenEnable("".concat(ele.key, ": underwriteExp"), exp, evalValue);
|
|
9006
|
+
}
|
|
9007
|
+
}
|
|
9008
|
+
if (['cmCommonSelect', 'cmCommonRadioBtn', 'cmCommonRadio', 'cmCommonCheckbox'].includes(ele.componentName)) {
|
|
9009
|
+
if (ele.defaultValueExp) {
|
|
9010
|
+
if (ele.value !== 0 && !ele.value) {
|
|
9011
|
+
var _exp = ele.defaultValueExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9012
|
+
newEleMap.value = eval(_exp);
|
|
9013
|
+
consoleLogWhenEnable("".concat(ele.key, ": defaultValueExp"), _exp, newEleMap.value);
|
|
9014
|
+
}
|
|
9015
|
+
}
|
|
9016
|
+
if (ele.underwriteExp) {
|
|
9017
|
+
var _exp2 = ele.underwriteExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9018
|
+
var _evalValue = eval(_exp2);
|
|
9019
|
+
if (Array.isArray(_evalValue) && Array.isArray(ele.opts)) {
|
|
9020
|
+
if (_evalValue.length === 2) {
|
|
9021
|
+
newEleMap.opts = (ele.opts || []).filter(function (o) {
|
|
9022
|
+
return o.val >= _evalValue[0] && o.val <= _evalValue[1];
|
|
9023
|
+
});
|
|
9024
|
+
} else {
|
|
9025
|
+
newEleMap.opts = (ele.opts || []).filter(function (o) {
|
|
9026
|
+
return _evalValue.includes(o.val);
|
|
9027
|
+
});
|
|
9028
|
+
}
|
|
9029
|
+
}
|
|
9030
|
+
if (Array.isArray(newEleMap.opts)) {
|
|
9031
|
+
if (newEleMap.opts.length && !newEleMap.opts.some(function (o) {
|
|
9032
|
+
return o.val === ele.value;
|
|
9033
|
+
})) {
|
|
9034
|
+
newEleMap.value = newEleMap.opts[0].val;
|
|
9035
|
+
}
|
|
9036
|
+
}
|
|
9037
|
+
consoleLogWhenEnable("".concat(ele.key, ": underwriteExp"), _exp2, _evalValue);
|
|
9038
|
+
}
|
|
9039
|
+
}
|
|
9040
|
+
if (['cmCommonInput'].includes(ele.componentName)) {
|
|
9041
|
+
if (ele.defaultValueExp) {
|
|
9042
|
+
if (!ele.value) {
|
|
9043
|
+
var _exp3 = ele.defaultValueExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9044
|
+
newEleMap.value = eval(_exp3);
|
|
9045
|
+
consoleLogWhenEnable("".concat(ele.key, ": defaultValueExp"), _exp3, newEleMap.value);
|
|
9046
|
+
}
|
|
9047
|
+
}
|
|
9048
|
+
if (ele.minExp) {
|
|
9049
|
+
var _exp4 = ele.minExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9050
|
+
newEleMap.min = eval(_exp4);
|
|
9051
|
+
consoleLogWhenEnable("".concat(ele.key, ": minExp"), _exp4, newEleMap.min);
|
|
9052
|
+
}
|
|
9053
|
+
if (ele.maxExp) {
|
|
9054
|
+
var _exp5 = ele.maxExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9055
|
+
newEleMap.max = eval(_exp5);
|
|
9056
|
+
consoleLogWhenEnable("".concat(ele.key, ": maxExp"), _exp5, newEleMap.max);
|
|
9057
|
+
}
|
|
9058
|
+
if (ele.multiExp) {
|
|
9059
|
+
var _exp6 = ele.multiExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9060
|
+
newEleMap.multi = eval(_exp6);
|
|
9061
|
+
consoleLogWhenEnable("".concat(ele.key, ": multiExp"), _exp6, newEleMap.multi);
|
|
9062
|
+
}
|
|
9063
|
+
}
|
|
9064
|
+
}
|
|
9065
|
+
return newEleMap;
|
|
9066
|
+
}
|
|
8898
9067
|
|
|
8899
9068
|
/**
|
|
8900
9069
|
* **初始化人员数据**
|
|
@@ -9198,9 +9367,7 @@ function getInsuredAgeRange(inputData, verifyData) {
|
|
|
9198
9367
|
prod.mulInsOrderList.forEach(function (ins) {
|
|
9199
9368
|
// 险种是否有费率
|
|
9200
9369
|
if (!verifyData[prod.key][ins.key]) {
|
|
9201
|
-
|
|
9202
|
-
console.log("".concat(prod.titleName, "-").concat(prod.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
9203
|
-
}
|
|
9370
|
+
consoleLogWhenEnable("".concat(prod.titleName, "-").concat(prod.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
9204
9371
|
return;
|
|
9205
9372
|
}
|
|
9206
9373
|
// 产品中是否有必选险种
|
|
@@ -9385,8 +9552,8 @@ function _slicedToArray(r, e) {
|
|
|
9385
9552
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
9386
9553
|
}
|
|
9387
9554
|
|
|
9388
|
-
function ownKeys$
|
|
9389
|
-
function _objectSpread$
|
|
9555
|
+
function ownKeys$5(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; }
|
|
9556
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9390
9557
|
|
|
9391
9558
|
/**
|
|
9392
9559
|
* **初始化险种数据**
|
|
@@ -9464,7 +9631,7 @@ function initInsuranceData(insData) {
|
|
|
9464
9631
|
}
|
|
9465
9632
|
if (e.opts && e.opts.length) {
|
|
9466
9633
|
e.opts = e.opts.map(function (o) {
|
|
9467
|
-
return _objectSpread$
|
|
9634
|
+
return _objectSpread$4(_objectSpread$4({}, o), {}, {
|
|
9468
9635
|
desc: o.desc || o.val,
|
|
9469
9636
|
isHide: o.isHide || null,
|
|
9470
9637
|
isDisabled: o.isDisabled || null,
|
|
@@ -9694,7 +9861,7 @@ function restrictElementsInInsurance(_ref4) {
|
|
|
9694
9861
|
var insuranceInfo = convertEleOrderListToObj(insData);
|
|
9695
9862
|
var insVerifyData;
|
|
9696
9863
|
if (insuredInfo) {
|
|
9697
|
-
insVerifyData = _objectSpread$
|
|
9864
|
+
insVerifyData = _objectSpread$4({
|
|
9698
9865
|
sex: insuredInfo.sex,
|
|
9699
9866
|
age: insuredInfo.age
|
|
9700
9867
|
}, insuranceInfo);
|
|
@@ -9752,8 +9919,8 @@ function restrictElementsInInsurance(_ref4) {
|
|
|
9752
9919
|
return errorMsg;
|
|
9753
9920
|
}
|
|
9754
9921
|
|
|
9755
|
-
function ownKeys$
|
|
9756
|
-
function _objectSpread$
|
|
9922
|
+
function ownKeys$4(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; }
|
|
9923
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9757
9924
|
|
|
9758
9925
|
/**
|
|
9759
9926
|
* **初始化产品数据(单个)**
|
|
@@ -9853,8 +10020,8 @@ function _productDataHandler() {
|
|
|
9853
10020
|
insuranceDataHandler(ins, prodData);
|
|
9854
10021
|
var insuranceVerifyData = productVerifyData[ins.key];
|
|
9855
10022
|
if (!insuranceVerifyData) {
|
|
9856
|
-
if (
|
|
9857
|
-
|
|
10023
|
+
if (ins.key !== 'common') {
|
|
10024
|
+
consoleLogWhenEnable("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
9858
10025
|
}
|
|
9859
10026
|
return;
|
|
9860
10027
|
}
|
|
@@ -9906,9 +10073,7 @@ function _productDataHandler() {
|
|
|
9906
10073
|
if (isNotAllowSelect) {
|
|
9907
10074
|
eleTitle.isDisabled = true;
|
|
9908
10075
|
eleTitle.value = false;
|
|
9909
|
-
|
|
9910
|
-
console.log(curCondition ? "".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u5B58\u5728\uFF01\u4F46\u6295\u4FDD\u4EBA\u672A\u9009\u4E2D\u6216\u6295\u88AB\u4FDD\u4EBA\u4E3A\u540C\u4E00\u4EBA\uFF0C\u8BE5\u8C41\u514D\u9669\uFF08\u4E0D\u80FD\u9644\u52A0\u5230\u88AB\u4FDD\u4EBA\uFF09\u4E0D\u53EF\u9009") : "".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
9911
|
-
}
|
|
10076
|
+
consoleLogWhenEnable(curCondition ? "".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u5B58\u5728\uFF01\u4F46\u6295\u4FDD\u4EBA\u672A\u9009\u4E2D\u6216\u6295\u88AB\u4FDD\u4EBA\u4E3A\u540C\u4E00\u4EBA\uFF0C\u8BE5\u8C41\u514D\u9669\uFF08\u4E0D\u80FD\u9644\u52A0\u5230\u88AB\u4FDD\u4EBA\uFF09\u4E0D\u53EF\u9009") : "".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
9912
10077
|
} else {
|
|
9913
10078
|
// 存在费率,险种可选
|
|
9914
10079
|
eleTitle.isDisabled = false;
|
|
@@ -9916,9 +10081,7 @@ function _productDataHandler() {
|
|
|
9916
10081
|
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
9917
10082
|
eleTitle.value = true;
|
|
9918
10083
|
eleTitle.isDisabled = true;
|
|
9919
|
-
|
|
9920
|
-
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u5B58\u5728\uFF0C\u9669\u79CD\u4E3A\u5FC5\u9009\u9669\u4E14(\u4E3A\u975E\u7EC4\u5408\u9669\u6216\u4E3A\u591A\u9009\u4E00\u9669\u79CD)"));
|
|
9921
|
-
}
|
|
10084
|
+
consoleLogWhenEnable("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u5B58\u5728\uFF0C\u9669\u79CD\u4E3A\u5FC5\u9009\u9669\u4E14(\u4E3A\u975E\u7EC4\u5408\u9669\u6216\u4E3A\u591A\u9009\u4E00\u9669\u79CD)"));
|
|
9922
10085
|
}
|
|
9923
10086
|
}
|
|
9924
10087
|
if (!curCondition) {
|
|
@@ -9937,9 +10100,7 @@ function _productDataHandler() {
|
|
|
9937
10100
|
});
|
|
9938
10101
|
}
|
|
9939
10102
|
if (!eleData) {
|
|
9940
|
-
|
|
9941
|
-
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
9942
|
-
}
|
|
10103
|
+
consoleLogWhenEnable("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
9943
10104
|
curCondition = null;
|
|
9944
10105
|
return 0; // break
|
|
9945
10106
|
}
|
|
@@ -9968,9 +10129,7 @@ function _productDataHandler() {
|
|
|
9968
10129
|
eleData.value = refEleData.value;
|
|
9969
10130
|
}
|
|
9970
10131
|
} else {
|
|
9971
|
-
|
|
9972
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
9973
|
-
}
|
|
10132
|
+
consoleLogWhenEnable("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
9974
10133
|
}
|
|
9975
10134
|
} else {
|
|
9976
10135
|
var backupOpts = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
@@ -10039,9 +10198,7 @@ function _productDataHandler() {
|
|
|
10039
10198
|
if (!curCondition) {
|
|
10040
10199
|
eleTitle.isDisabled = true;
|
|
10041
10200
|
eleTitle.value = false;
|
|
10042
|
-
|
|
10043
|
-
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
10044
|
-
}
|
|
10201
|
+
consoleLogWhenEnable("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
10045
10202
|
}
|
|
10046
10203
|
|
|
10047
10204
|
// 如果当前元素是隐藏的且不可修改,则过滤上一元素的选项,即,删除上一元素中不包含当前元素值的选项。
|
|
@@ -10078,6 +10235,15 @@ function _productDataHandler() {
|
|
|
10078
10235
|
_ret = _loop2();
|
|
10079
10236
|
if (_ret === 0) break;
|
|
10080
10237
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10238
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10239
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10240
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10241
|
+
for (var k in newEleMap) {
|
|
10242
|
+
ele[k] = newEleMap[k];
|
|
10243
|
+
}
|
|
10244
|
+
});
|
|
10245
|
+
insuranceDataHandler(ins, prodData);
|
|
10246
|
+
}
|
|
10081
10247
|
});
|
|
10082
10248
|
}
|
|
10083
10249
|
setGroupInsurance(prodData);
|
|
@@ -10226,10 +10392,10 @@ function getElementVerifyFromProductVerify(verify, insurances, option) {
|
|
|
10226
10392
|
var insuranceInfo = {};
|
|
10227
10393
|
insurances.forEach(function (ins) {
|
|
10228
10394
|
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
10229
|
-
insuranceInfo = _objectSpread$
|
|
10395
|
+
insuranceInfo = _objectSpread$3(_objectSpread$3({}, insuranceInfo), convertEleOrderListToObj(ins));
|
|
10230
10396
|
}
|
|
10231
10397
|
});
|
|
10232
|
-
insuranceInfo = _objectSpread$
|
|
10398
|
+
insuranceInfo = _objectSpread$3(_objectSpread$3({}, insuranceInfo), option);
|
|
10233
10399
|
var temp = verify;
|
|
10234
10400
|
var hasElementKey = verify.key === option.elementKey;
|
|
10235
10401
|
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
@@ -10747,7 +10913,7 @@ function convertProductData(prodData) {
|
|
|
10747
10913
|
if (!prodData.mulInsOrderList) {
|
|
10748
10914
|
return prodData;
|
|
10749
10915
|
}
|
|
10750
|
-
var productData = _objectSpread$
|
|
10916
|
+
var productData = _objectSpread$3(_objectSpread$3({}, prodData), {}, {
|
|
10751
10917
|
common: {},
|
|
10752
10918
|
mulInsOrderList: []
|
|
10753
10919
|
});
|
|
@@ -10821,22 +10987,22 @@ function clearAddAndTakeAndAdjustBaoeData(productData) {
|
|
|
10821
10987
|
return productData;
|
|
10822
10988
|
}
|
|
10823
10989
|
|
|
10824
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
10825
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
10826
|
-
}
|
|
10827
|
-
|
|
10828
10990
|
const planbook = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
10829
10991
|
__proto__: null,
|
|
10830
10992
|
calcTotalBaof,
|
|
10831
10993
|
clearAddAndTakeAndAdjustBaoeData,
|
|
10994
|
+
consoleLogWhenEnable,
|
|
10832
10995
|
converUnit10000,
|
|
10833
10996
|
convertEleOrderListToObj,
|
|
10834
10997
|
convertPersonData,
|
|
10835
10998
|
convertProductData,
|
|
10836
10999
|
deepCopy,
|
|
11000
|
+
enableLizhaoDebug,
|
|
11001
|
+
executeElementRule,
|
|
10837
11002
|
formatNumberToThousand,
|
|
10838
11003
|
getAgeFromBirth,
|
|
10839
11004
|
getElementVerifyFromProductVerify,
|
|
11005
|
+
getExpressionParamMap,
|
|
10840
11006
|
getHuomianPeriodValue,
|
|
10841
11007
|
getInsuredAgeRange,
|
|
10842
11008
|
getNumberFromYear,
|
|
@@ -13590,8 +13756,8 @@ function Watch(path, options) {
|
|
|
13590
13756
|
}
|
|
13591
13757
|
|
|
13592
13758
|
var _dec$7, _dec2$7, _dec3$7, _dec4$6, _dec5$5, _dec6$5, _class$7, _class2$7, _descriptor$7, _descriptor2$7, _descriptor3$6, _descriptor4$4;
|
|
13593
|
-
function ownKeys$
|
|
13594
|
-
function _objectSpread$
|
|
13759
|
+
function ownKeys$3(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; }
|
|
13760
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13595
13761
|
function _callSuper$7(t, o, e) { return o = _getPrototypeOf$1(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$8() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e)); }
|
|
13596
13762
|
function _isNativeReflectConstruct$8() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$8 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13597
13763
|
Vue.use(_Toast);
|
|
@@ -13675,7 +13841,7 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
|
|
|
13675
13841
|
if (!(productData && productData.mulInsOrderList && productData.mulInsOrderList.length)) {
|
|
13676
13842
|
return null;
|
|
13677
13843
|
}
|
|
13678
|
-
var options = [_objectSpread$
|
|
13844
|
+
var options = [_objectSpread$2({
|
|
13679
13845
|
year: '年度',
|
|
13680
13846
|
age: '年龄'
|
|
13681
13847
|
}, adjustBaoeInsTitles)];
|
|
@@ -13695,7 +13861,7 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
|
|
|
13695
13861
|
}
|
|
13696
13862
|
}
|
|
13697
13863
|
}
|
|
13698
|
-
options.push(_objectSpread$
|
|
13864
|
+
options.push(_objectSpread$2(_objectSpread$2({}, adjustRecord || defaultAdjustRecord), {}, {
|
|
13699
13865
|
year: options.length,
|
|
13700
13866
|
age: k
|
|
13701
13867
|
}));
|
|
@@ -13823,7 +13989,7 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
|
|
|
13823
13989
|
},
|
|
13824
13990
|
productGroupList: [{
|
|
13825
13991
|
key: params.groupKey,
|
|
13826
|
-
prodOrderList: [_objectSpread$
|
|
13992
|
+
prodOrderList: [_objectSpread$2(_objectSpread$2({}, cloneProductData), {}, {
|
|
13827
13993
|
adjustBaoeData: this.adjustBaoeData
|
|
13828
13994
|
})]
|
|
13829
13995
|
}]
|
|
@@ -13889,7 +14055,7 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
|
|
|
13889
14055
|
if (index === 0) {
|
|
13890
14056
|
return;
|
|
13891
14057
|
}
|
|
13892
|
-
var temp = _objectSpread$
|
|
14058
|
+
var temp = _objectSpread$2({}, item);
|
|
13893
14059
|
delete temp.year;
|
|
13894
14060
|
for (var k in temp) {
|
|
13895
14061
|
if (!['age'].includes(k)) {
|
|
@@ -21685,14 +21851,14 @@ var objectGetOwnPropertySymbols = {
|
|
|
21685
21851
|
};
|
|
21686
21852
|
|
|
21687
21853
|
// all object keys, includes non-enumerable and symbols
|
|
21688
|
-
var ownKeys$
|
|
21854
|
+
var ownKeys$2 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
21689
21855
|
var keys = objectGetOwnPropertyNames.f(anObject$1(it));
|
|
21690
21856
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
21691
21857
|
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
21692
21858
|
};
|
|
21693
21859
|
|
|
21694
21860
|
var copyConstructorProperties = function (target, source) {
|
|
21695
|
-
var keys = ownKeys$
|
|
21861
|
+
var keys = ownKeys$2(source);
|
|
21696
21862
|
var defineProperty = objectDefineProperty$1.f;
|
|
21697
21863
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor$1.f;
|
|
21698
21864
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -43503,8 +43669,8 @@ const index$1 = {
|
|
|
43503
43669
|
};
|
|
43504
43670
|
|
|
43505
43671
|
var _dec$4, _dec2$4, _dec3$4, _dec4$4, _dec5$4, _dec6$4, _dec7$2, _dec8$1, _dec9$1, _dec0$1, _dec1$1, _dec10$1, _dec11, _class$4, _class2$4, _descriptor$4, _descriptor2$4, _descriptor3$4, _descriptor4$3, _descriptor5$3, _descriptor6$2, _descriptor7$1, _descriptor8$1, _descriptor9$1, _descriptor0$1, _descriptor1, _descriptor10;
|
|
43506
|
-
function ownKeys$
|
|
43507
|
-
function _objectSpread$
|
|
43672
|
+
function ownKeys$1(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; }
|
|
43673
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43508
43674
|
function _callSuper$4(t, o, e) { return o = _getPrototypeOf$1(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e)); }
|
|
43509
43675
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
43510
43676
|
Vue.use(_Toast);
|
|
@@ -44267,7 +44433,7 @@ var InsureCalculate = (_dec$4 = Component({
|
|
|
44267
44433
|
vm.getArea(item.children, tempDes, res);
|
|
44268
44434
|
} else {
|
|
44269
44435
|
var _tempDes = "".concat(des).concat(item.areaName);
|
|
44270
|
-
res.push(_objectSpread$
|
|
44436
|
+
res.push(_objectSpread$1(_objectSpread$1({}, item), {}, {
|
|
44271
44437
|
des: _tempDes
|
|
44272
44438
|
}));
|
|
44273
44439
|
}
|
|
@@ -46503,8 +46669,8 @@ var __vue_component__$2 = /*#__PURE__*/normalizeComponent$1({
|
|
|
46503
46669
|
staticRenderFns: __vue_staticRenderFns__$2
|
|
46504
46670
|
}, __vue_inject_styles__$2, __vue_script__$2);
|
|
46505
46671
|
|
|
46506
|
-
function ownKeys
|
|
46507
|
-
function _objectSpread
|
|
46672
|
+
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; }
|
|
46673
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty$1(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; }
|
|
46508
46674
|
function createMd5Token(reqData, obj) {
|
|
46509
46675
|
var personList = reqData.personData.personOrderList;
|
|
46510
46676
|
var signInfo = {};
|
|
@@ -46563,7 +46729,7 @@ function createMd5Token(reqData, obj) {
|
|
|
46563
46729
|
// signMd5: MD5(signInfoTx)
|
|
46564
46730
|
// }))
|
|
46565
46731
|
|
|
46566
|
-
return CryptoJS.AES.encrypt(JSON.stringify(_objectSpread
|
|
46732
|
+
return CryptoJS.AES.encrypt(JSON.stringify(_objectSpread(_objectSpread({}, signInfo), {}, {
|
|
46567
46733
|
signMd5: MD5(signInfoTx)
|
|
46568
46734
|
})), CryptoJS.enc.Utf8.parse('67u3Dg5fcc06UntP'), {
|
|
46569
46735
|
mode: CryptoJS.mode.ECB,
|
|
@@ -46656,8 +46822,6 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor
|
|
|
46656
46822
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
46657
46823
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
46658
46824
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
46659
|
-
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; }
|
|
46660
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty$1(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; }
|
|
46661
46825
|
function _callSuper(t, o, e) { return o = _getPrototypeOf$1(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e)); }
|
|
46662
46826
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
46663
46827
|
var BxtProductInfo = (_dec = Component({
|
|
@@ -46853,27 +47017,66 @@ var BxtProductInfo = (_dec = Component({
|
|
|
46853
47017
|
key: "changeProduct",
|
|
46854
47018
|
value: function () {
|
|
46855
47019
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(productData, options) {
|
|
47020
|
+
var _this5 = this;
|
|
47021
|
+
var $listeners, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, errorMsg, hasRevalidateFlag;
|
|
46856
47022
|
return _regeneratorRuntime.wrap(function (_context3) {
|
|
46857
47023
|
while (1) switch (_context3.prev = _context3.next) {
|
|
46858
47024
|
case 0:
|
|
46859
|
-
|
|
47025
|
+
$listeners = this.$listeners, inputData = this.inputData, verifyData = this.verifyData, personData = this.personData, groupKey = this.groupKey, productKey = this.productKey, params = this.params;
|
|
47026
|
+
type = options.type, insData = options.insData, eleData = options.eleData;
|
|
47027
|
+
planbookId = get$3(params, 'planbookId');
|
|
47028
|
+
publicPbUuid = get$3(params, 'publicPbUuid');
|
|
47029
|
+
productVerifyData = get$3(verifyData, "[".concat(productKey, "]"));
|
|
47030
|
+
if (type === 'change') {
|
|
46860
47031
|
clearAddAndTakeAndAdjustBaoeData(productData);
|
|
46861
47032
|
}
|
|
46862
47033
|
_context3.next = 1;
|
|
46863
|
-
return productDataHandler(productData,
|
|
46864
|
-
planbookId:
|
|
47034
|
+
return productDataHandler(productData, productVerifyData, personData, {
|
|
47035
|
+
planbookId: planbookId
|
|
46865
47036
|
});
|
|
46866
47037
|
case 1:
|
|
46867
|
-
if (
|
|
46868
|
-
this.createInsuranceInputResultEle(
|
|
47038
|
+
if (type === 'change') {
|
|
47039
|
+
this.createInsuranceInputResultEle(insData, eleData);
|
|
46869
47040
|
} else {
|
|
46870
47041
|
this.createInsuranceInputResultEle();
|
|
46871
47042
|
}
|
|
46872
|
-
|
|
46873
|
-
personData:
|
|
46874
|
-
productData: productData
|
|
46875
|
-
|
|
47043
|
+
errorMsg = verifyProductRules({
|
|
47044
|
+
personData: personData,
|
|
47045
|
+
productData: productData,
|
|
47046
|
+
insData: insData,
|
|
47047
|
+
eleData: eleData
|
|
47048
|
+
});
|
|
47049
|
+
if (errorMsg) {
|
|
47050
|
+
_context3.next = 3;
|
|
47051
|
+
break;
|
|
47052
|
+
}
|
|
47053
|
+
hasRevalidateFlag = (get$3(productData, 'mulInsOrderList') || []).some(function (ins) {
|
|
47054
|
+
return ins.revalidateFlag;
|
|
47055
|
+
});
|
|
47056
|
+
if (!(hasRevalidateFlag && $listeners.reCalculate)) {
|
|
47057
|
+
_context3.next = 3;
|
|
47058
|
+
break;
|
|
47059
|
+
}
|
|
47060
|
+
_context3.next = 2;
|
|
47061
|
+
return new Promise(function (resolve, reject) {
|
|
47062
|
+
_this5.$emit('reCalculate', inputData, {
|
|
47063
|
+
planbookId: planbookId,
|
|
47064
|
+
publicPbUuid: publicPbUuid,
|
|
47065
|
+
groupKey: groupKey,
|
|
47066
|
+
productKey: productKey,
|
|
47067
|
+
isIgnoreError: true
|
|
47068
|
+
}, resolve, reject);
|
|
47069
|
+
}).catch(function (err) {
|
|
47070
|
+
errorMsg = get$3(err, '[0].message') || get$3(err, 'message');
|
|
47071
|
+
});
|
|
46876
47072
|
case 2:
|
|
47073
|
+
_context3.next = 3;
|
|
47074
|
+
return productDataHandler(productData, productVerifyData, personData, {
|
|
47075
|
+
planbookId: planbookId
|
|
47076
|
+
});
|
|
47077
|
+
case 3:
|
|
47078
|
+
return _context3.abrupt("return", errorMsg);
|
|
47079
|
+
case 4:
|
|
46877
47080
|
case "end":
|
|
46878
47081
|
return _context3.stop();
|
|
46879
47082
|
}
|
|
@@ -48122,7 +48325,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48122
48325
|
install(window.Vue);
|
|
48123
48326
|
}
|
|
48124
48327
|
const index = {
|
|
48125
|
-
version: '3.
|
|
48328
|
+
version: '3.2.0-0',
|
|
48126
48329
|
install: install
|
|
48127
48330
|
};
|
|
48128
48331
|
|
|
@@ -37349,6 +37349,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
37349
37349
|
install$1(window.Vue);
|
|
37350
37350
|
}
|
|
37351
37351
|
|
|
37352
|
+
document && document.cookie && document.cookie.match('ENABLE_LIZHAO_DEBUG=1');
|
|
37353
|
+
|
|
37352
37354
|
/**
|
|
37353
37355
|
* **多被保人,获取并缓存多个险种信息的费率信息**
|
|
37354
37356
|
* @author Lizhao <lz@winbaoxian.com>
|
|
@@ -37380,10 +37382,6 @@ memoize(function (params) {
|
|
|
37380
37382
|
return QS.stringify(params);
|
|
37381
37383
|
});
|
|
37382
37384
|
|
|
37383
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
37384
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
37385
|
-
}
|
|
37386
|
-
|
|
37387
37385
|
function showLoading() {
|
|
37388
37386
|
if (IS_CPPOC_HOST) {
|
|
37389
37387
|
_Toast.loading({
|