bxs-tools-ui 3.2.0-0 → 3.2.0-1
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/adjust-baoe/index.js +1 -1
- package/es/index.js +126 -141
- package/es/person-info/index.js +105 -134
- package/es/product-info/index.js +118 -139
- package/es/utils/index.js +99 -134
- package/lib/adjust-baoe/index.js +1 -1
- package/lib/index.js +126 -141
- package/lib/person-info/index.js +105 -134
- package/lib/product-info/index.js +118 -139
- package/lib/utils/index.js +99 -134
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/common.ts +10 -4
- package/packages/bxs-utils/planbook/product.ts +64 -121
- package/packages/index.ts +1 -1
- package/packages/person-info/index.vue +6 -1
- package/packages/planbook-input/helper.js +9 -4
- package/packages/planbook-input/index.vue +5 -1
- package/packages/product-info/index.vue +12 -3
package/es/adjust-baoe/index.js
CHANGED
|
@@ -9106,7 +9106,7 @@ function convertProductData(prodData) {
|
|
|
9106
9106
|
if (insuranceData.title && !insuranceData.groupKey) {
|
|
9107
9107
|
if (insuranceData.isGroup) {
|
|
9108
9108
|
//组合险,则遍历其所选中的险种,并转换数据
|
|
9109
|
-
var insuranceId = insuranceData.insuranceId
|
|
9109
|
+
var insuranceId = Array.isArray(insuranceData.insuranceId) ? insuranceData.insuranceId : [insuranceData.insuranceId];
|
|
9110
9110
|
insuranceId.forEach(function (insId) {
|
|
9111
9111
|
var checkedIns = prodData.mulInsOrderList.find(function (p) {
|
|
9112
9112
|
return p.key === insId;
|
package/es/index.js
CHANGED
|
@@ -8927,7 +8927,9 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
8927
8927
|
// 通用信息
|
|
8928
8928
|
customVariable: null,
|
|
8929
8929
|
// 自定义变量
|
|
8930
|
-
cv: null
|
|
8930
|
+
cv: null,
|
|
8931
|
+
// 简写,自定义变量
|
|
8932
|
+
t: {} // 事件目标
|
|
8931
8933
|
};
|
|
8932
8934
|
if (personData) {
|
|
8933
8935
|
var insuredInfo = (personData.personOrderList || []).find(function (p) {
|
|
@@ -8975,8 +8977,13 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
8975
8977
|
});
|
|
8976
8978
|
}
|
|
8977
8979
|
}
|
|
8978
|
-
if (options
|
|
8979
|
-
|
|
8980
|
+
if (options) {
|
|
8981
|
+
if (options.planbookId) {
|
|
8982
|
+
map.planbookId = options.planbookId;
|
|
8983
|
+
}
|
|
8984
|
+
if (options.eventTarget) {
|
|
8985
|
+
map.t = options.eventTarget;
|
|
8986
|
+
}
|
|
8980
8987
|
}
|
|
8981
8988
|
if (ins && ins.customVariableExp) {
|
|
8982
8989
|
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
@@ -9007,7 +9014,7 @@ function executeElementRule(personData, product, ins, ele) {
|
|
|
9007
9014
|
}
|
|
9008
9015
|
if (['cmCommonSelect', 'cmCommonRadioBtn', 'cmCommonRadio', 'cmCommonCheckbox'].includes(ele.componentName)) {
|
|
9009
9016
|
if (ele.defaultValueExp) {
|
|
9010
|
-
if (ele.value !== 0 && !ele.value) {
|
|
9017
|
+
if (ele.value !== 0 && !ele.value && paramMap.t.elementKey !== ele.key) {
|
|
9011
9018
|
var _exp = ele.defaultValueExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9012
9019
|
newEleMap.value = eval(_exp);
|
|
9013
9020
|
consoleLogWhenEnable("".concat(ele.key, ": defaultValueExp"), _exp, newEleMap.value);
|
|
@@ -9039,7 +9046,7 @@ function executeElementRule(personData, product, ins, ele) {
|
|
|
9039
9046
|
}
|
|
9040
9047
|
if (['cmCommonInput'].includes(ele.componentName)) {
|
|
9041
9048
|
if (ele.defaultValueExp) {
|
|
9042
|
-
if (!ele.value) {
|
|
9049
|
+
if (ele.value !== 0 && !ele.value && paramMap.t.elementKey !== ele.key) {
|
|
9043
9050
|
var _exp3 = ele.defaultValueExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9044
9051
|
newEleMap.value = eval(_exp3);
|
|
9045
9052
|
consoleLogWhenEnable("".concat(ele.key, ": defaultValueExp"), _exp3, newEleMap.value);
|
|
@@ -9979,7 +9986,7 @@ function productDataHandler(_x, _x2, _x3, _x4) {
|
|
|
9979
9986
|
*/
|
|
9980
9987
|
function _productDataHandler() {
|
|
9981
9988
|
_productDataHandler = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(prodData, prodVerifyData, personData, parmas) {
|
|
9982
|
-
var productVerifyData, hasProduct, hasVerifyData, hasPersonData, personOrderList, _prodData$mulInsOrder3;
|
|
9989
|
+
var productVerifyData, _parmas$eventTarget, insuranceKey, elementKey, groupInsurance, groupInsuranceIdEle, subInsurances, hasProduct, hasVerifyData, hasPersonData, personOrderList, _prodData$mulInsOrder3;
|
|
9983
9990
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
9984
9991
|
while (1) switch (_context.prev = _context.next) {
|
|
9985
9992
|
case 0:
|
|
@@ -10006,6 +10013,29 @@ function _productDataHandler() {
|
|
|
10006
10013
|
case 3:
|
|
10007
10014
|
productVerifyData = prodVerifyData;
|
|
10008
10015
|
case 4:
|
|
10016
|
+
// 组合险种特殊处理:当用户点击组合险种的子险种选项时,将其他子险种的标题设置为未选中状态
|
|
10017
|
+
if (parmas && parmas.eventTarget) {
|
|
10018
|
+
_parmas$eventTarget = parmas.eventTarget, insuranceKey = _parmas$eventTarget.insuranceKey, elementKey = _parmas$eventTarget.elementKey;
|
|
10019
|
+
if (insuranceKey && elementKey === 'insuranceId') {
|
|
10020
|
+
groupInsurance = (prodData.mulInsOrderList || []).find(function (ins) {
|
|
10021
|
+
return ins.key === insuranceKey;
|
|
10022
|
+
});
|
|
10023
|
+
groupInsuranceIdEle = ((groupInsurance === null || groupInsurance === void 0 ? void 0 : groupInsurance.eleOrderList) || []).find(function (e) {
|
|
10024
|
+
return e.key === 'insuranceId';
|
|
10025
|
+
});
|
|
10026
|
+
subInsurances = (prodData.mulInsOrderList || []).filter(function (ins) {
|
|
10027
|
+
return ins.groupKey === insuranceKey;
|
|
10028
|
+
});
|
|
10029
|
+
subInsurances.forEach(function (ins) {
|
|
10030
|
+
var titleEle = (ins.eleOrderList || []).find(function (e) {
|
|
10031
|
+
return e.key === 'title';
|
|
10032
|
+
});
|
|
10033
|
+
if (titleEle && groupInsuranceIdEle && !Array.isArray(titleEle.value)) {
|
|
10034
|
+
titleEle.value = groupInsuranceIdEle.value === ins.key;
|
|
10035
|
+
}
|
|
10036
|
+
});
|
|
10037
|
+
}
|
|
10038
|
+
}
|
|
10009
10039
|
hasProduct = prodData.mulInsOrderList;
|
|
10010
10040
|
hasVerifyData = productVerifyData && Object.keys(productVerifyData).length;
|
|
10011
10041
|
hasPersonData = personData && personData.personOrderList;
|
|
@@ -10473,40 +10503,21 @@ function setCommonInfo(prodData) {
|
|
|
10473
10503
|
* @returns {IPbProduct} 产品数据(单个)
|
|
10474
10504
|
*/
|
|
10475
10505
|
function setGroupInsurance(prodData) {
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
var groupInsuranceList = prodData && prodData.mulInsOrderList && prodData.mulInsOrderList.filter(function (ins) {
|
|
10480
|
-
return !!ins.groupKey;
|
|
10481
|
-
});
|
|
10482
|
-
if (!groupInsuranceList || !groupInsuranceList.length) {
|
|
10483
|
-
return prodData;
|
|
10484
|
-
}
|
|
10485
|
-
var oldGroupInsList = prodData.mulInsOrderList.filter(function (ins) {
|
|
10486
|
-
return ins.isGroup;
|
|
10487
|
-
});
|
|
10488
|
-
var newGroupInsMap = {};
|
|
10489
|
-
//清空险种列表中的已有的险种组合
|
|
10490
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
10506
|
+
var mulInsOrderList = prodData && prodData.mulInsOrderList ? prodData.mulInsOrderList : [];
|
|
10507
|
+
// 清空险种列表中的已有的险种组合
|
|
10508
|
+
prodData.mulInsOrderList = mulInsOrderList.filter(function (ins) {
|
|
10491
10509
|
return !ins.isGroup;
|
|
10492
10510
|
});
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
var
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
return e.key === 'title';
|
|
10504
|
-
});
|
|
10505
|
-
oldInsuranceIdEle = oldGroupIns.eleOrderList.find(function (e) {
|
|
10506
|
-
return e.key === 'insuranceId';
|
|
10507
|
-
});
|
|
10508
|
-
}
|
|
10509
|
-
if (ins.groupKey) {
|
|
10511
|
+
|
|
10512
|
+
// 多险种选一,或多险种选多。生成一个组合,如多个险种合成豁免险
|
|
10513
|
+
var groupInsuranceList = mulInsOrderList.filter(function (ins) {
|
|
10514
|
+
return !!ins.groupKey;
|
|
10515
|
+
});
|
|
10516
|
+
if (groupInsuranceList.length) {
|
|
10517
|
+
var newGroupInsMap = {};
|
|
10518
|
+
groupInsuranceList.filter(function (ins) {
|
|
10519
|
+
return ins.groupKey;
|
|
10520
|
+
}).forEach(function (ins) {
|
|
10510
10521
|
newGroupInsMap[ins.groupKey] = newGroupInsMap[ins.groupKey] || {
|
|
10511
10522
|
key: ins.groupKey,
|
|
10512
10523
|
name: ins.groupName,
|
|
@@ -10514,19 +10525,19 @@ function setGroupInsurance(prodData) {
|
|
|
10514
10525
|
isGroup: true,
|
|
10515
10526
|
eleOrderList: [{
|
|
10516
10527
|
key: 'title',
|
|
10517
|
-
value:
|
|
10528
|
+
value: false,
|
|
10518
10529
|
isDisabled: false,
|
|
10519
10530
|
componentName: 'cmCommonTitle',
|
|
10520
10531
|
labelName: ins.groupName
|
|
10521
10532
|
}, {
|
|
10522
10533
|
key: 'insuranceId',
|
|
10523
|
-
value:
|
|
10534
|
+
value: ins.isCheckbox ? [] : null,
|
|
10524
10535
|
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
10525
10536
|
opts: []
|
|
10526
10537
|
}]
|
|
10527
10538
|
};
|
|
10528
10539
|
|
|
10529
|
-
//
|
|
10540
|
+
// 将子险种转换成险种组合的选项
|
|
10530
10541
|
var titleEle = ins.eleOrderList.find(function (e) {
|
|
10531
10542
|
return e.key === 'title';
|
|
10532
10543
|
});
|
|
@@ -10539,119 +10550,73 @@ function setGroupInsurance(prodData) {
|
|
|
10539
10550
|
desc: titleEle.labelName,
|
|
10540
10551
|
isDisabled: titleEle.isDisabled
|
|
10541
10552
|
});
|
|
10542
|
-
}
|
|
10543
|
-
});
|
|
10544
|
-
|
|
10545
|
-
// 处理组合险中的逻辑,并加入到产品险种列表中
|
|
10546
|
-
var _loop = function _loop(k) {
|
|
10547
|
-
var nGroupTitle = newGroupInsMap[k].eleOrderList.find(function (e) {
|
|
10548
|
-
return e.key === 'title';
|
|
10549
10553
|
});
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
nGroupTitle.isDisabled = true;
|
|
10561
|
-
} else {
|
|
10562
|
-
nGroupTitle.isDisabled = false;
|
|
10563
|
-
}
|
|
10564
|
-
}
|
|
10565
|
-
var groupInsList = prodData.mulInsOrderList.filter(function (ins) {
|
|
10554
|
+
|
|
10555
|
+
// 处理组合险中的逻辑,并加入到产品险种列表中
|
|
10556
|
+
var _loop = function _loop(k) {
|
|
10557
|
+
var nGroupTitleEle = newGroupInsMap[k].eleOrderList.find(function (e) {
|
|
10558
|
+
return e.key === 'title';
|
|
10559
|
+
});
|
|
10560
|
+
var nGroupInsuranceIdEle = newGroupInsMap[k].eleOrderList.find(function (e) {
|
|
10561
|
+
return e.key === 'insuranceId';
|
|
10562
|
+
});
|
|
10563
|
+
var groupInsList = mulInsOrderList.filter(function (ins) {
|
|
10566
10564
|
return ins.groupKey == k;
|
|
10567
10565
|
});
|
|
10568
|
-
if (
|
|
10569
|
-
// 如果组合险中有一款是必选的,则整个组合险为选中状态
|
|
10570
|
-
if (groupInsList.some(function (ins) {
|
|
10571
|
-
var subTitle = ins.eleOrderList.find(function (e) {
|
|
10572
|
-
return e.key === 'title';
|
|
10573
|
-
});
|
|
10574
|
-
return ins.required && subTitle && !subTitle.isDisabled;
|
|
10575
|
-
})) {
|
|
10576
|
-
nGroupTitle.value = true;
|
|
10577
|
-
nGroupTitle.isDisabled = true;
|
|
10578
|
-
}
|
|
10579
|
-
|
|
10580
|
-
// 初始化时,设置组合险默认值
|
|
10566
|
+
if (nGroupTitleEle && nGroupInsuranceIdEle && groupInsList.length) {
|
|
10581
10567
|
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
10582
|
-
var
|
|
10568
|
+
var titleEle = (ins.eleOrderList || []).find(function (e) {
|
|
10583
10569
|
return e.key === 'title';
|
|
10584
10570
|
});
|
|
10585
|
-
return
|
|
10571
|
+
return titleEle && !titleEle.isDisabled;
|
|
10586
10572
|
});
|
|
10587
|
-
var checkedInsurances = notDisabledInsurances.
|
|
10588
|
-
var
|
|
10589
|
-
return
|
|
10573
|
+
var checkedInsurances = notDisabledInsurances.filter(function (ins) {
|
|
10574
|
+
var titleEle = (ins.eleOrderList || []).find(function (ele) {
|
|
10575
|
+
return ele.key === 'title';
|
|
10590
10576
|
});
|
|
10591
|
-
return
|
|
10577
|
+
return titleEle && titleEle.value;
|
|
10592
10578
|
});
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
}
|
|
10602
|
-
}
|
|
10603
|
-
}
|
|
10604
|
-
}
|
|
10605
|
-
if (nGroupInsuranceId) {
|
|
10606
|
-
if (nGroupInsuranceId.value) {
|
|
10607
|
-
if (nGroupInsuranceId.value.constructor === Array) {
|
|
10608
|
-
if (nGroupInsuranceId.opts) {
|
|
10609
|
-
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) {
|
|
10610
|
-
return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled;
|
|
10611
|
-
});
|
|
10612
|
-
}
|
|
10613
|
-
} else {
|
|
10614
|
-
var opt = nGroupInsuranceId.opts.find(function (o) {
|
|
10615
|
-
return o.val === nGroupInsuranceId.value;
|
|
10616
|
-
});
|
|
10617
|
-
if (opt && opt.isDisabled) {
|
|
10618
|
-
nGroupInsuranceId.value = '';
|
|
10619
|
-
}
|
|
10620
|
-
}
|
|
10621
|
-
}
|
|
10622
|
-
if (nGroupInsuranceId.value) {
|
|
10623
|
-
var checkedIns = prodData.mulInsOrderList.find(function (ins) {
|
|
10624
|
-
return ins.key === nGroupInsuranceId.value;
|
|
10579
|
+
var hasRequiredIns = notDisabledInsurances.some(function (ins) {
|
|
10580
|
+
return ins.required;
|
|
10581
|
+
});
|
|
10582
|
+
var checkedInsurance = checkedInsurances[0];
|
|
10583
|
+
// hasRequiredIns:如果组合险中有一款是必选的,则整个组合险为选中状态
|
|
10584
|
+
// 所有险种都不可选,则组合险不可修改且不选中。否则,组合险种可选
|
|
10585
|
+
nGroupTitleEle.value = hasRequiredIns || (nGroupInsuranceIdEle.opts || []).some(function (opt) {
|
|
10586
|
+
return !opt.isDisabled;
|
|
10625
10587
|
});
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10588
|
+
nGroupTitleEle.isDisabled = hasRequiredIns || (nGroupInsuranceIdEle.opts || []).every(function (opt) {
|
|
10589
|
+
return !!opt.isDisabled;
|
|
10590
|
+
});
|
|
10591
|
+
nGroupInsuranceIdEle.value = checkedInsurance ? checkedInsurance.key : null;
|
|
10592
|
+
|
|
10593
|
+
//将当前选中险种的部分数据复制到组合险中
|
|
10594
|
+
if (checkedInsurance) {
|
|
10595
|
+
// 定义组件险中的元素:自身eleOrderList + 所选险种的eleOrderList(不包含标题)
|
|
10596
|
+
var keys = ['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData'];
|
|
10597
|
+
for (var ck in checkedInsurance) {
|
|
10598
|
+
if (!keys.includes(ck)) {
|
|
10631
10599
|
if (ck === 'eleOrderList') {
|
|
10632
|
-
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(
|
|
10600
|
+
newGroupInsMap[k][ck] = newGroupInsMap[k][ck].concat(checkedInsurance[ck].filter(function (ele) {
|
|
10633
10601
|
return ele.key !== 'title';
|
|
10634
10602
|
}));
|
|
10635
10603
|
} else {
|
|
10636
|
-
newGroupInsMap[k][ck] =
|
|
10604
|
+
newGroupInsMap[k][ck] = checkedInsurance[ck];
|
|
10637
10605
|
}
|
|
10638
10606
|
}
|
|
10639
10607
|
}
|
|
10640
10608
|
}
|
|
10641
10609
|
}
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
if (
|
|
10646
|
-
index
|
|
10610
|
+
var index = mulInsOrderList.findLastIndex(function (ins) {
|
|
10611
|
+
return ins.groupKey === k;
|
|
10612
|
+
});
|
|
10613
|
+
if (index >= 0) {
|
|
10614
|
+
prodData.mulInsOrderList.splice(index + 1, 0, newGroupInsMap[k]);
|
|
10647
10615
|
}
|
|
10648
|
-
}
|
|
10649
|
-
|
|
10650
|
-
|
|
10616
|
+
};
|
|
10617
|
+
for (var k in newGroupInsMap) {
|
|
10618
|
+
_loop(k);
|
|
10651
10619
|
}
|
|
10652
|
-
};
|
|
10653
|
-
for (var k in newGroupInsMap) {
|
|
10654
|
-
_loop(k);
|
|
10655
10620
|
}
|
|
10656
10621
|
return prodData;
|
|
10657
10622
|
}
|
|
@@ -10926,7 +10891,7 @@ function convertProductData(prodData) {
|
|
|
10926
10891
|
if (insuranceData.title && !insuranceData.groupKey) {
|
|
10927
10892
|
if (insuranceData.isGroup) {
|
|
10928
10893
|
//组合险,则遍历其所选中的险种,并转换数据
|
|
10929
|
-
var insuranceId = insuranceData.insuranceId
|
|
10894
|
+
var insuranceId = Array.isArray(insuranceData.insuranceId) ? insuranceData.insuranceId : [insuranceData.insuranceId];
|
|
10930
10895
|
insuranceId.forEach(function (insId) {
|
|
10931
10896
|
var checkedIns = prodData.mulInsOrderList.find(function (p) {
|
|
10932
10897
|
return p.key === insId;
|
|
@@ -46318,6 +46283,7 @@ var BxtPersonInfo = (_dec$1 = Component({
|
|
|
46318
46283
|
params,
|
|
46319
46284
|
allPersonsData,
|
|
46320
46285
|
productGroupList,
|
|
46286
|
+
eventTarget,
|
|
46321
46287
|
promises,
|
|
46322
46288
|
_args = arguments;
|
|
46323
46289
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
@@ -46333,6 +46299,10 @@ var BxtPersonInfo = (_dec$1 = Component({
|
|
|
46333
46299
|
case 1:
|
|
46334
46300
|
allPersonsData = inputData.personData;
|
|
46335
46301
|
productGroupList = inputData.productGroupList || [];
|
|
46302
|
+
eventTarget = {
|
|
46303
|
+
personKey: personData.key,
|
|
46304
|
+
elementKey: ele.key
|
|
46305
|
+
};
|
|
46336
46306
|
if (!allPersonsData) {
|
|
46337
46307
|
_context.next = 2;
|
|
46338
46308
|
break;
|
|
@@ -46350,7 +46320,8 @@ var BxtPersonInfo = (_dec$1 = Component({
|
|
|
46350
46320
|
g.prodOrderList.map(function (p) {
|
|
46351
46321
|
clearAddAndTakeAndAdjustBaoeData(p);
|
|
46352
46322
|
promises.push(productDataHandler(p, get$3(verifyData, "[".concat(p.key, "]")), allPersonsData, {
|
|
46353
|
-
planbookId: get$3(params, 'planbookId')
|
|
46323
|
+
planbookId: get$3(params, 'planbookId'),
|
|
46324
|
+
eventTarget: eventTarget
|
|
46354
46325
|
}));
|
|
46355
46326
|
});
|
|
46356
46327
|
});
|
|
@@ -46756,7 +46727,7 @@ function createdProductDataToCalc(inputData) {
|
|
|
46756
46727
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
46757
46728
|
var tempIns = {};
|
|
46758
46729
|
for (var _k2 in ins) {
|
|
46759
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName'].includes(_k2)) {
|
|
46730
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'customVariableExp', 'calcResultExp', 'revalidateFlag'].includes(_k2)) {
|
|
46760
46731
|
tempIns[_k2] = ins[_k2];
|
|
46761
46732
|
}
|
|
46762
46733
|
}
|
|
@@ -47018,7 +46989,7 @@ var BxtProductInfo = (_dec = Component({
|
|
|
47018
46989
|
value: function () {
|
|
47019
46990
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(productData, options) {
|
|
47020
46991
|
var _this5 = this;
|
|
47021
|
-
var $listeners, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, errorMsg, hasRevalidateFlag;
|
|
46992
|
+
var $listeners, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, eventTarget, errorMsg, hasRevalidateFlag;
|
|
47022
46993
|
return _regeneratorRuntime.wrap(function (_context3) {
|
|
47023
46994
|
while (1) switch (_context3.prev = _context3.next) {
|
|
47024
46995
|
case 0:
|
|
@@ -47027,12 +46998,18 @@ var BxtProductInfo = (_dec = Component({
|
|
|
47027
46998
|
planbookId = get$3(params, 'planbookId');
|
|
47028
46999
|
publicPbUuid = get$3(params, 'publicPbUuid');
|
|
47029
47000
|
productVerifyData = get$3(verifyData, "[".concat(productKey, "]"));
|
|
47001
|
+
eventTarget = {
|
|
47002
|
+
insuranceKey: get$3(insData, 'key') || null,
|
|
47003
|
+
insuranceCode: get$3(insData, 'code') || null,
|
|
47004
|
+
elementKey: get$3(eleData, 'key') || null
|
|
47005
|
+
};
|
|
47030
47006
|
if (type === 'change') {
|
|
47031
47007
|
clearAddAndTakeAndAdjustBaoeData(productData);
|
|
47032
47008
|
}
|
|
47033
47009
|
_context3.next = 1;
|
|
47034
47010
|
return productDataHandler(productData, productVerifyData, personData, {
|
|
47035
|
-
planbookId: planbookId
|
|
47011
|
+
planbookId: planbookId,
|
|
47012
|
+
eventTarget: eventTarget
|
|
47036
47013
|
});
|
|
47037
47014
|
case 1:
|
|
47038
47015
|
if (type === 'change') {
|
|
@@ -47064,7 +47041,8 @@ var BxtProductInfo = (_dec = Component({
|
|
|
47064
47041
|
publicPbUuid: publicPbUuid,
|
|
47065
47042
|
groupKey: groupKey,
|
|
47066
47043
|
productKey: productKey,
|
|
47067
|
-
isIgnoreError: true
|
|
47044
|
+
isIgnoreError: true,
|
|
47045
|
+
eventTarget: eventTarget
|
|
47068
47046
|
}, resolve, reject);
|
|
47069
47047
|
}).catch(function (err) {
|
|
47070
47048
|
errorMsg = get$3(err, '[0].message') || get$3(err, 'message');
|
|
@@ -47072,7 +47050,8 @@ var BxtProductInfo = (_dec = Component({
|
|
|
47072
47050
|
case 2:
|
|
47073
47051
|
_context3.next = 3;
|
|
47074
47052
|
return productDataHandler(productData, productVerifyData, personData, {
|
|
47075
|
-
planbookId: planbookId
|
|
47053
|
+
planbookId: planbookId,
|
|
47054
|
+
eventTarget: eventTarget
|
|
47076
47055
|
});
|
|
47077
47056
|
case 3:
|
|
47078
47057
|
return _context3.abrupt("return", errorMsg);
|
|
@@ -47641,6 +47620,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
47641
47620
|
insData: ins,
|
|
47642
47621
|
eleData: ele
|
|
47643
47622
|
});
|
|
47623
|
+
},
|
|
47624
|
+
"clear": function clear($event) {
|
|
47625
|
+
return _vm.onChange({
|
|
47626
|
+
insData: ins,
|
|
47627
|
+
eleData: ele
|
|
47628
|
+
});
|
|
47644
47629
|
}
|
|
47645
47630
|
},
|
|
47646
47631
|
scopedSlots: _vm._u([!ele.isDisabled ? {
|
|
@@ -48325,7 +48310,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48325
48310
|
install(window.Vue);
|
|
48326
48311
|
}
|
|
48327
48312
|
const index = {
|
|
48328
|
-
version: '3.2.0-
|
|
48313
|
+
version: '3.2.0-1',
|
|
48329
48314
|
install: install
|
|
48330
48315
|
};
|
|
48331
48316
|
|