bxs-tools-ui 3.1.2 → 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.css +1 -1
- package/es/index.js +264 -66
- 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.css +1 -1
- package/es/share-sheet/index.js +4 -11
- 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.css +1 -1
- package/lib/index.js +264 -66
- 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.css +1 -1
- package/lib/share-sheet/index.js +4 -11
- 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/packages/share-sheet/index.css +1 -3
- package/packages/share-sheet/index.vue +2 -5
- package/packages/share-sheet/readme.md +99 -61
|
@@ -8946,6 +8946,14 @@
|
|
|
8946
8946
|
return _searchStr ? QS.parse(_searchStr) : {};
|
|
8947
8947
|
}
|
|
8948
8948
|
|
|
8949
|
+
var enableLizhaoDebug = document && document.cookie && document.cookie.match('ENABLE_LIZHAO_DEBUG=1');
|
|
8950
|
+
function consoleLogWhenEnable() {
|
|
8951
|
+
if (enableLizhaoDebug) {
|
|
8952
|
+
var _console;
|
|
8953
|
+
(_console = console).log.apply(_console, arguments);
|
|
8954
|
+
}
|
|
8955
|
+
}
|
|
8956
|
+
|
|
8949
8957
|
/**
|
|
8950
8958
|
* **将对象下的 eleOrderList 数组中的子元素下的 value,转换为 key-value 键值对**
|
|
8951
8959
|
* @author Lizhao <lz@winbaoxian.com>
|
|
@@ -9146,6 +9154,167 @@
|
|
|
9146
9154
|
}
|
|
9147
9155
|
return age;
|
|
9148
9156
|
}
|
|
9157
|
+
function getExpressionParamMap(personData, product, ins, options) {
|
|
9158
|
+
var map = {
|
|
9159
|
+
planbookId: null,
|
|
9160
|
+
// 计划书id
|
|
9161
|
+
productId: null,
|
|
9162
|
+
// 产品id
|
|
9163
|
+
insured: {},
|
|
9164
|
+
// 被保人
|
|
9165
|
+
insured2: {},
|
|
9166
|
+
// 第二被保人
|
|
9167
|
+
applicant: {},
|
|
9168
|
+
// 投保人
|
|
9169
|
+
recipient: {},
|
|
9170
|
+
// 收件人
|
|
9171
|
+
p: {},
|
|
9172
|
+
// 当前产品
|
|
9173
|
+
m: {},
|
|
9174
|
+
// 主险
|
|
9175
|
+
me: {},
|
|
9176
|
+
// 当前险种
|
|
9177
|
+
common: {},
|
|
9178
|
+
// 通用信息
|
|
9179
|
+
customVariable: null,
|
|
9180
|
+
// 自定义变量
|
|
9181
|
+
cv: null // 简写,自定义变量
|
|
9182
|
+
};
|
|
9183
|
+
if (personData) {
|
|
9184
|
+
var insuredInfo = (personData.personOrderList || []).find(function (p) {
|
|
9185
|
+
return p.key === 'insuredInfo';
|
|
9186
|
+
});
|
|
9187
|
+
var insured2Info = (personData.personOrderList || []).find(function (p) {
|
|
9188
|
+
return p.key === 'insured2Info';
|
|
9189
|
+
});
|
|
9190
|
+
var applicantInfo = (personData.personOrderList || []).find(function (p) {
|
|
9191
|
+
return p.key === 'applicantInfo';
|
|
9192
|
+
});
|
|
9193
|
+
var recipientInfo = personData !== null && personData !== void 0 && personData.recipientInfo ? personData.recipientInfo : null;
|
|
9194
|
+
map.insured = insuredInfo ? convertEleOrderListToObj(insuredInfo) : {};
|
|
9195
|
+
map.insured2 = insured2Info ? convertEleOrderListToObj(insured2Info) : {};
|
|
9196
|
+
map.applicant = applicantInfo ? convertEleOrderListToObj(applicantInfo) : {};
|
|
9197
|
+
map.recipient = recipientInfo ? convertEleOrderListToObj(recipientInfo) : {};
|
|
9198
|
+
}
|
|
9199
|
+
if (ins) {
|
|
9200
|
+
map.me = ins ? convertEleOrderListToObj(ins) : {};
|
|
9201
|
+
map["i".concat(ins.key)] = ins;
|
|
9202
|
+
}
|
|
9203
|
+
if (product) {
|
|
9204
|
+
map.productId = product.key;
|
|
9205
|
+
Object.keys(product).filter(function (k) {
|
|
9206
|
+
return !['mulInsOrderList'].includes(k);
|
|
9207
|
+
}).forEach(function (k) {
|
|
9208
|
+
map.p[k] = product[k];
|
|
9209
|
+
});
|
|
9210
|
+
if (Array.isArray(product.mulInsOrderList)) {
|
|
9211
|
+
var common = product.mulInsOrderList.find(function (item) {
|
|
9212
|
+
return item.key === 'common';
|
|
9213
|
+
});
|
|
9214
|
+
var insuranceList = product.mulInsOrderList.filter(function (item) {
|
|
9215
|
+
return !['common'].includes(item.key);
|
|
9216
|
+
}).map(function (item) {
|
|
9217
|
+
return convertEleOrderListToObj(item);
|
|
9218
|
+
});
|
|
9219
|
+
map.m = insuranceList[0] ? insuranceList[0] : {};
|
|
9220
|
+
map.me = ins && ins.key ? insuranceList.find(function (e) {
|
|
9221
|
+
return e.key === ins.key;
|
|
9222
|
+
}) || {} : {};
|
|
9223
|
+
map.common = common ? convertEleOrderListToObj(common) : {};
|
|
9224
|
+
insuranceList.forEach(function (item) {
|
|
9225
|
+
map["i".concat(item.key)] = item;
|
|
9226
|
+
});
|
|
9227
|
+
}
|
|
9228
|
+
}
|
|
9229
|
+
if (options && options.planbookId) {
|
|
9230
|
+
map.planbookId = options.planbookId;
|
|
9231
|
+
}
|
|
9232
|
+
if (ins && ins.customVariableExp) {
|
|
9233
|
+
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9234
|
+
map.customVariable = eval(exp);
|
|
9235
|
+
map.cv = map.customVariable;
|
|
9236
|
+
}
|
|
9237
|
+
return map;
|
|
9238
|
+
}
|
|
9239
|
+
function executeElementRule(personData, product, ins, ele) {
|
|
9240
|
+
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
9241
|
+
var paramMap = getExpressionParamMap(personData, product, ins, options);
|
|
9242
|
+
var newEleMap = {};
|
|
9243
|
+
if (paramMap) {
|
|
9244
|
+
if (['cmCommonTitle'].includes(ele.componentName)) {
|
|
9245
|
+
if (ele.underwriteExp) {
|
|
9246
|
+
var exp = ele.underwriteExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9247
|
+
var evalValue = eval(exp);
|
|
9248
|
+
if (Array.isArray(evalValue)) {
|
|
9249
|
+
if ([0, 1].includes(evalValue[0])) {
|
|
9250
|
+
newEleMap.value = evalValue[0] === 1;
|
|
9251
|
+
}
|
|
9252
|
+
if ([0, 1].includes(evalValue[1])) {
|
|
9253
|
+
newEleMap.isDisabled = evalValue[1] === 0;
|
|
9254
|
+
}
|
|
9255
|
+
}
|
|
9256
|
+
consoleLogWhenEnable("".concat(ele.key, ": underwriteExp"), exp, evalValue);
|
|
9257
|
+
}
|
|
9258
|
+
}
|
|
9259
|
+
if (['cmCommonSelect', 'cmCommonRadioBtn', 'cmCommonRadio', 'cmCommonCheckbox'].includes(ele.componentName)) {
|
|
9260
|
+
if (ele.defaultValueExp) {
|
|
9261
|
+
if (ele.value !== 0 && !ele.value) {
|
|
9262
|
+
var _exp = ele.defaultValueExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9263
|
+
newEleMap.value = eval(_exp);
|
|
9264
|
+
consoleLogWhenEnable("".concat(ele.key, ": defaultValueExp"), _exp, newEleMap.value);
|
|
9265
|
+
}
|
|
9266
|
+
}
|
|
9267
|
+
if (ele.underwriteExp) {
|
|
9268
|
+
var _exp2 = ele.underwriteExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9269
|
+
var _evalValue = eval(_exp2);
|
|
9270
|
+
if (Array.isArray(_evalValue) && Array.isArray(ele.opts)) {
|
|
9271
|
+
if (_evalValue.length === 2) {
|
|
9272
|
+
newEleMap.opts = (ele.opts || []).filter(function (o) {
|
|
9273
|
+
return o.val >= _evalValue[0] && o.val <= _evalValue[1];
|
|
9274
|
+
});
|
|
9275
|
+
} else {
|
|
9276
|
+
newEleMap.opts = (ele.opts || []).filter(function (o) {
|
|
9277
|
+
return _evalValue.includes(o.val);
|
|
9278
|
+
});
|
|
9279
|
+
}
|
|
9280
|
+
}
|
|
9281
|
+
if (Array.isArray(newEleMap.opts)) {
|
|
9282
|
+
if (newEleMap.opts.length && !newEleMap.opts.some(function (o) {
|
|
9283
|
+
return o.val === ele.value;
|
|
9284
|
+
})) {
|
|
9285
|
+
newEleMap.value = newEleMap.opts[0].val;
|
|
9286
|
+
}
|
|
9287
|
+
}
|
|
9288
|
+
consoleLogWhenEnable("".concat(ele.key, ": underwriteExp"), _exp2, _evalValue);
|
|
9289
|
+
}
|
|
9290
|
+
}
|
|
9291
|
+
if (['cmCommonInput'].includes(ele.componentName)) {
|
|
9292
|
+
if (ele.defaultValueExp) {
|
|
9293
|
+
if (!ele.value) {
|
|
9294
|
+
var _exp3 = ele.defaultValueExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9295
|
+
newEleMap.value = eval(_exp3);
|
|
9296
|
+
consoleLogWhenEnable("".concat(ele.key, ": defaultValueExp"), _exp3, newEleMap.value);
|
|
9297
|
+
}
|
|
9298
|
+
}
|
|
9299
|
+
if (ele.minExp) {
|
|
9300
|
+
var _exp4 = ele.minExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9301
|
+
newEleMap.min = eval(_exp4);
|
|
9302
|
+
consoleLogWhenEnable("".concat(ele.key, ": minExp"), _exp4, newEleMap.min);
|
|
9303
|
+
}
|
|
9304
|
+
if (ele.maxExp) {
|
|
9305
|
+
var _exp5 = ele.maxExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9306
|
+
newEleMap.max = eval(_exp5);
|
|
9307
|
+
consoleLogWhenEnable("".concat(ele.key, ": maxExp"), _exp5, newEleMap.max);
|
|
9308
|
+
}
|
|
9309
|
+
if (ele.multiExp) {
|
|
9310
|
+
var _exp6 = ele.multiExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2');
|
|
9311
|
+
newEleMap.multi = eval(_exp6);
|
|
9312
|
+
consoleLogWhenEnable("".concat(ele.key, ": multiExp"), _exp6, newEleMap.multi);
|
|
9313
|
+
}
|
|
9314
|
+
}
|
|
9315
|
+
}
|
|
9316
|
+
return newEleMap;
|
|
9317
|
+
}
|
|
9149
9318
|
|
|
9150
9319
|
/**
|
|
9151
9320
|
* **转换人员数据**
|
|
@@ -9227,8 +9396,8 @@
|
|
|
9227
9396
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
|
|
9228
9397
|
}
|
|
9229
9398
|
|
|
9230
|
-
function ownKeys$
|
|
9231
|
-
function _objectSpread$
|
|
9399
|
+
function ownKeys$2(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; }
|
|
9400
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9232
9401
|
|
|
9233
9402
|
/**
|
|
9234
9403
|
* **处理险种数据**
|
|
@@ -9449,7 +9618,7 @@
|
|
|
9449
9618
|
var insuranceInfo = convertEleOrderListToObj(insData);
|
|
9450
9619
|
var insVerifyData;
|
|
9451
9620
|
if (insuredInfo) {
|
|
9452
|
-
insVerifyData = _objectSpread$
|
|
9621
|
+
insVerifyData = _objectSpread$2({
|
|
9453
9622
|
sex: insuredInfo.sex,
|
|
9454
9623
|
age: insuredInfo.age
|
|
9455
9624
|
}, insuranceInfo);
|
|
@@ -9507,8 +9676,8 @@
|
|
|
9507
9676
|
return errorMsg;
|
|
9508
9677
|
}
|
|
9509
9678
|
|
|
9510
|
-
function ownKeys$
|
|
9511
|
-
function _objectSpread$
|
|
9679
|
+
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; }
|
|
9680
|
+
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; }
|
|
9512
9681
|
|
|
9513
9682
|
/**
|
|
9514
9683
|
* **处理产品数据(单个)**
|
|
@@ -9580,8 +9749,8 @@
|
|
|
9580
9749
|
insuranceDataHandler(ins, prodData);
|
|
9581
9750
|
var insuranceVerifyData = productVerifyData[ins.key];
|
|
9582
9751
|
if (!insuranceVerifyData) {
|
|
9583
|
-
if (
|
|
9584
|
-
|
|
9752
|
+
if (ins.key !== 'common') {
|
|
9753
|
+
consoleLogWhenEnable("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
9585
9754
|
}
|
|
9586
9755
|
return;
|
|
9587
9756
|
}
|
|
@@ -9633,9 +9802,7 @@
|
|
|
9633
9802
|
if (isNotAllowSelect) {
|
|
9634
9803
|
eleTitle.isDisabled = true;
|
|
9635
9804
|
eleTitle.value = false;
|
|
9636
|
-
|
|
9637
|
-
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"));
|
|
9638
|
-
}
|
|
9805
|
+
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"));
|
|
9639
9806
|
} else {
|
|
9640
9807
|
// 存在费率,险种可选
|
|
9641
9808
|
eleTitle.isDisabled = false;
|
|
@@ -9643,9 +9810,7 @@
|
|
|
9643
9810
|
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
9644
9811
|
eleTitle.value = true;
|
|
9645
9812
|
eleTitle.isDisabled = true;
|
|
9646
|
-
|
|
9647
|
-
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)"));
|
|
9648
|
-
}
|
|
9813
|
+
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)"));
|
|
9649
9814
|
}
|
|
9650
9815
|
}
|
|
9651
9816
|
if (!curCondition) {
|
|
@@ -9664,9 +9829,7 @@
|
|
|
9664
9829
|
});
|
|
9665
9830
|
}
|
|
9666
9831
|
if (!eleData) {
|
|
9667
|
-
|
|
9668
|
-
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
9669
|
-
}
|
|
9832
|
+
consoleLogWhenEnable("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
9670
9833
|
curCondition = null;
|
|
9671
9834
|
return 0; // break
|
|
9672
9835
|
}
|
|
@@ -9695,9 +9858,7 @@
|
|
|
9695
9858
|
eleData.value = refEleData.value;
|
|
9696
9859
|
}
|
|
9697
9860
|
} else {
|
|
9698
|
-
|
|
9699
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
9700
|
-
}
|
|
9861
|
+
consoleLogWhenEnable("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
9701
9862
|
}
|
|
9702
9863
|
} else {
|
|
9703
9864
|
var backupOpts = eleData.opts && eleData.opts.length ? eleData.opts.slice(0) : [];
|
|
@@ -9766,9 +9927,7 @@
|
|
|
9766
9927
|
if (!curCondition) {
|
|
9767
9928
|
eleTitle.isDisabled = true;
|
|
9768
9929
|
eleTitle.value = false;
|
|
9769
|
-
|
|
9770
|
-
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
9771
|
-
}
|
|
9930
|
+
consoleLogWhenEnable("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
9772
9931
|
}
|
|
9773
9932
|
|
|
9774
9933
|
// 如果当前元素是隐藏的且不可修改,则过滤上一元素的选项,即,删除上一元素中不包含当前元素值的选项。
|
|
@@ -9805,6 +9964,15 @@
|
|
|
9805
9964
|
_ret = _loop2();
|
|
9806
9965
|
if (_ret === 0) break;
|
|
9807
9966
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
9967
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
9968
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
9969
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
9970
|
+
for (var k in newEleMap) {
|
|
9971
|
+
ele[k] = newEleMap[k];
|
|
9972
|
+
}
|
|
9973
|
+
});
|
|
9974
|
+
insuranceDataHandler(ins, prodData);
|
|
9975
|
+
}
|
|
9808
9976
|
});
|
|
9809
9977
|
}
|
|
9810
9978
|
setGroupInsurance(prodData);
|
|
@@ -9953,10 +10121,10 @@
|
|
|
9953
10121
|
var insuranceInfo = {};
|
|
9954
10122
|
insurances.forEach(function (ins) {
|
|
9955
10123
|
if (['common', option.insuranceKey].includes(ins.key)) {
|
|
9956
|
-
insuranceInfo = _objectSpread$
|
|
10124
|
+
insuranceInfo = _objectSpread$1(_objectSpread$1({}, insuranceInfo), convertEleOrderListToObj(ins));
|
|
9957
10125
|
}
|
|
9958
10126
|
});
|
|
9959
|
-
insuranceInfo = _objectSpread$
|
|
10127
|
+
insuranceInfo = _objectSpread$1(_objectSpread$1({}, insuranceInfo), option);
|
|
9960
10128
|
var temp = verify;
|
|
9961
10129
|
var hasElementKey = verify.key === option.elementKey;
|
|
9962
10130
|
while (temp && temp.key && temp.key !== option.elementKey) {
|
|
@@ -10474,7 +10642,7 @@
|
|
|
10474
10642
|
if (!prodData.mulInsOrderList) {
|
|
10475
10643
|
return prodData;
|
|
10476
10644
|
}
|
|
10477
|
-
var productData = _objectSpread$
|
|
10645
|
+
var productData = _objectSpread$1(_objectSpread$1({}, prodData), {}, {
|
|
10478
10646
|
common: {},
|
|
10479
10647
|
mulInsOrderList: []
|
|
10480
10648
|
});
|
|
@@ -10548,10 +10716,6 @@
|
|
|
10548
10716
|
return productData;
|
|
10549
10717
|
}
|
|
10550
10718
|
|
|
10551
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
10552
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
10553
|
-
}
|
|
10554
|
-
|
|
10555
10719
|
function showLoading() {
|
|
10556
10720
|
if (IS_CPPOC_HOST) {
|
|
10557
10721
|
_Toast.loading({
|
|
@@ -10623,8 +10787,8 @@
|
|
|
10623
10787
|
return Promise.reject(error);
|
|
10624
10788
|
});
|
|
10625
10789
|
|
|
10626
|
-
function ownKeys
|
|
10627
|
-
function _objectSpread
|
|
10790
|
+
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; }
|
|
10791
|
+
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; }
|
|
10628
10792
|
function createMd5Token(reqData, obj) {
|
|
10629
10793
|
var personList = reqData.personData.personOrderList;
|
|
10630
10794
|
var signInfo = {};
|
|
@@ -10683,7 +10847,7 @@
|
|
|
10683
10847
|
// signMd5: MD5(signInfoTx)
|
|
10684
10848
|
// }))
|
|
10685
10849
|
|
|
10686
|
-
return CryptoJS.AES.encrypt(JSON.stringify(_objectSpread
|
|
10850
|
+
return CryptoJS.AES.encrypt(JSON.stringify(_objectSpread(_objectSpread({}, signInfo), {}, {
|
|
10687
10851
|
signMd5: MD5(signInfoTx)
|
|
10688
10852
|
})), CryptoJS.enc.Utf8.parse('67u3Dg5fcc06UntP'), {
|
|
10689
10853
|
mode: CryptoJS.mode.ECB,
|
|
@@ -11628,8 +11792,6 @@
|
|
|
11628
11792
|
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; } } }; }
|
|
11629
11793
|
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; } }
|
|
11630
11794
|
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; }
|
|
11631
|
-
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; }
|
|
11632
|
-
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; }
|
|
11633
11795
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11634
11796
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11635
11797
|
var BxtProductInfo = (_dec = Component({
|
|
@@ -11825,27 +11987,66 @@
|
|
|
11825
11987
|
key: "changeProduct",
|
|
11826
11988
|
value: function () {
|
|
11827
11989
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(productData, options) {
|
|
11990
|
+
var _this5 = this;
|
|
11991
|
+
var $listeners, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, errorMsg, hasRevalidateFlag;
|
|
11828
11992
|
return _regeneratorRuntime.wrap(function (_context3) {
|
|
11829
11993
|
while (1) switch (_context3.prev = _context3.next) {
|
|
11830
11994
|
case 0:
|
|
11831
|
-
|
|
11995
|
+
$listeners = this.$listeners, inputData = this.inputData, verifyData = this.verifyData, personData = this.personData, groupKey = this.groupKey, productKey = this.productKey, params = this.params;
|
|
11996
|
+
type = options.type, insData = options.insData, eleData = options.eleData;
|
|
11997
|
+
planbookId = lodash.get(params, 'planbookId');
|
|
11998
|
+
publicPbUuid = lodash.get(params, 'publicPbUuid');
|
|
11999
|
+
productVerifyData = lodash.get(verifyData, "[".concat(productKey, "]"));
|
|
12000
|
+
if (type === 'change') {
|
|
11832
12001
|
clearAddAndTakeAndAdjustBaoeData(productData);
|
|
11833
12002
|
}
|
|
11834
12003
|
_context3.next = 1;
|
|
11835
|
-
return productDataHandler(productData,
|
|
11836
|
-
planbookId:
|
|
12004
|
+
return productDataHandler(productData, productVerifyData, personData, {
|
|
12005
|
+
planbookId: planbookId
|
|
11837
12006
|
});
|
|
11838
12007
|
case 1:
|
|
11839
|
-
if (
|
|
11840
|
-
this.createInsuranceInputResultEle(
|
|
12008
|
+
if (type === 'change') {
|
|
12009
|
+
this.createInsuranceInputResultEle(insData, eleData);
|
|
11841
12010
|
} else {
|
|
11842
12011
|
this.createInsuranceInputResultEle();
|
|
11843
12012
|
}
|
|
11844
|
-
|
|
11845
|
-
personData:
|
|
11846
|
-
productData: productData
|
|
11847
|
-
|
|
12013
|
+
errorMsg = verifyProductRules({
|
|
12014
|
+
personData: personData,
|
|
12015
|
+
productData: productData,
|
|
12016
|
+
insData: insData,
|
|
12017
|
+
eleData: eleData
|
|
12018
|
+
});
|
|
12019
|
+
if (errorMsg) {
|
|
12020
|
+
_context3.next = 3;
|
|
12021
|
+
break;
|
|
12022
|
+
}
|
|
12023
|
+
hasRevalidateFlag = (lodash.get(productData, 'mulInsOrderList') || []).some(function (ins) {
|
|
12024
|
+
return ins.revalidateFlag;
|
|
12025
|
+
});
|
|
12026
|
+
if (!(hasRevalidateFlag && $listeners.reCalculate)) {
|
|
12027
|
+
_context3.next = 3;
|
|
12028
|
+
break;
|
|
12029
|
+
}
|
|
12030
|
+
_context3.next = 2;
|
|
12031
|
+
return new Promise(function (resolve, reject) {
|
|
12032
|
+
_this5.$emit('reCalculate', inputData, {
|
|
12033
|
+
planbookId: planbookId,
|
|
12034
|
+
publicPbUuid: publicPbUuid,
|
|
12035
|
+
groupKey: groupKey,
|
|
12036
|
+
productKey: productKey,
|
|
12037
|
+
isIgnoreError: true
|
|
12038
|
+
}, resolve, reject);
|
|
12039
|
+
}).catch(function (err) {
|
|
12040
|
+
errorMsg = lodash.get(err, '[0].message') || lodash.get(err, 'message');
|
|
12041
|
+
});
|
|
11848
12042
|
case 2:
|
|
12043
|
+
_context3.next = 3;
|
|
12044
|
+
return productDataHandler(productData, productVerifyData, personData, {
|
|
12045
|
+
planbookId: planbookId
|
|
12046
|
+
});
|
|
12047
|
+
case 3:
|
|
12048
|
+
return _context3.abrupt("return", errorMsg);
|
|
12049
|
+
case 4:
|
|
11849
12050
|
case "end":
|
|
11850
12051
|
return _context3.stop();
|
|
11851
12052
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0}body{color:#333}dl,ul{list-style:none}img{max-width:100%}a{color:#333;display:block;text-decoration:none}em{font-style:normal}article,aside,footer,header,nav,section{display:block}.bxt-share-sheet{background-color:transparent;color:#333}.bxt-share-sheet .bxt-share-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-justify-content:flex-end;justify-content:flex-end;left:0;overflow:hidden;position:absolute;width:100%}.bxt-share-sheet .bxt-share-image{padding:30px 40px}.bxt-share-sheet .bxt-share-image img{width:100%}.bxt-share-sheet .bxt-share-content{background:#fff}.bxt-share-sheet .bxt-expire{padding:15px 15px 15px 21px}.bxt-share-sheet .bxt-expire .bxt-title{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.bxt-share-sheet .bxt-expire .bxt-title .bxt-tx{font-size:14px;font-weight:700;font-weight:500;line-height:17px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description{color:#666;font-size:13px;line-height:16px;margin-left:18px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description .van-icon{color:#b5b5b5;font-size:15px;vertical-align:middle}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description span{margin-left:3px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group{margin-top:6px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:0;margin-top:12px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__icon{color:#0a64fe;font-size:15px;line-height:20px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__label{margin-left:6px;vertical-align:middle}.bxt-share-sheet .bxt-explain{color:#666;font-size:13px;line-height:19px}.bxt-share-sheet .bxt-explain-title{padding:15px 21px}.bxt-share-sheet .bxt-explain-text{padding:12px 15px}.bxt-share-sheet .bxt-explain-text .bxt-explain-text-content{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;width:100%}.bxt-share-sheet .bxt-explain-text--copy{padding:12px 15px}.bxt-share-sheet .bxt-explain-text--copy .bxt-explain-text-wrapper{background:#f5f5f5;border-radius:6px;padding:12px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper{-webkit-box-pack:
|
|
1
|
+
*{margin:0;padding:0}body{color:#333}dl,ul{list-style:none}img{max-width:100%}a{color:#333;display:block;text-decoration:none}em{font-style:normal}article,aside,footer,header,nav,section{display:block}.bxt-share-sheet{background-color:transparent;color:#333}.bxt-share-sheet .bxt-share-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-justify-content:flex-end;justify-content:flex-end;left:0;overflow:hidden;position:absolute;width:100%}.bxt-share-sheet .bxt-share-image{padding:30px 40px}.bxt-share-sheet .bxt-share-image img{width:100%}.bxt-share-sheet .bxt-share-content{background:#fff}.bxt-share-sheet .bxt-expire{padding:15px 15px 15px 21px}.bxt-share-sheet .bxt-expire .bxt-title{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.bxt-share-sheet .bxt-expire .bxt-title .bxt-tx{font-size:14px;font-weight:700;font-weight:500;line-height:17px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description{color:#666;font-size:13px;line-height:16px;margin-left:18px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description .van-icon{color:#b5b5b5;font-size:15px;vertical-align:middle}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description span{margin-left:3px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group{margin-top:6px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:0;margin-top:12px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__icon{color:#0a64fe;font-size:15px;line-height:20px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__label{margin-left:6px;vertical-align:middle}.bxt-share-sheet .bxt-explain{color:#666;font-size:13px;line-height:19px}.bxt-share-sheet .bxt-explain-title{padding:15px 21px}.bxt-share-sheet .bxt-explain-text{padding:12px 15px}.bxt-share-sheet .bxt-explain-text .bxt-explain-text-content{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;width:100%}.bxt-share-sheet .bxt-explain-text--copy{padding:12px 15px}.bxt-share-sheet .bxt-explain-text--copy .bxt-explain-text-wrapper{background:#f5f5f5;border-radius:6px;padding:12px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper{-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-start;justify-content:flex-start;overflow:auto;padding:20px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper::-webkit-scrollbar{display:none}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure,.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{background:#f3f7f9;border-radius:50px;height:50px;overflow:hidden;width:50px}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image img{display:block;margin:0 auto;width:100%}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure figcaption{color:#666;font-size:12px;height:15px;line-height:15px;margin-top:5px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.bxt-share-sheet .bxt-share .bxt-share-wrapper.more figure{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 23%;-ms-flex:0 0 23%;flex:0 0 23%}.bxt-share-sheet .bxt-fooer:after{content:"";display:block;height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.bxt-share-sheet .bxt-fooer{font-size:15px;line-height:18px;padding:16px 15px;text-align:center}.bxt-share-sheet .bxt-bottom-border{overflow:hidden;position:relative}.bxt-share-sheet .bxt-bottom-border:before{border-bottom:1px solid #e5e5e5;bottom:0;content:"";left:15px;position:absolute;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left center;transform-origin:left center;width:200%}
|
package/lib/share-sheet/index.js
CHANGED
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
}) : e[r] = t, e;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
document && document.cookie && document.cookie.match('ENABLE_LIZHAO_DEBUG=1');
|
|
43
|
+
|
|
42
44
|
/**
|
|
43
45
|
* 截取指定字数字符串
|
|
44
46
|
* @param str
|
|
@@ -8521,10 +8523,6 @@
|
|
|
8521
8523
|
return QS.stringify(params);
|
|
8522
8524
|
});
|
|
8523
8525
|
|
|
8524
|
-
if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_FLAG=1')) {
|
|
8525
|
-
window.DEBUG_TEMP_CONSOLE_FLAG = true;
|
|
8526
|
-
}
|
|
8527
|
-
|
|
8528
8526
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
8529
8527
|
var EXPIRE_ENUM = [{
|
|
8530
8528
|
value: 'NEVER',
|
|
@@ -8762,11 +8760,6 @@
|
|
|
8762
8760
|
});
|
|
8763
8761
|
}
|
|
8764
8762
|
return options;
|
|
8765
|
-
},
|
|
8766
|
-
actionTypeLength: function actionTypeLength() {
|
|
8767
|
-
return [this.shareOptions, this.actionOptions].filter(function (e) {
|
|
8768
|
-
return e.length;
|
|
8769
|
-
}).length;
|
|
8770
8763
|
}
|
|
8771
8764
|
},
|
|
8772
8765
|
created: function created() {
|
|
@@ -8933,7 +8926,7 @@
|
|
|
8933
8926
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8934
8927
|
}, [_c('div', {
|
|
8935
8928
|
staticClass: "bxt-share-wrapper",
|
|
8936
|
-
class: [_vm.shareOptions.length > 4
|
|
8929
|
+
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
8937
8930
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
8938
8931
|
return _c('figure', {
|
|
8939
8932
|
key: o.action,
|
|
@@ -8954,7 +8947,7 @@
|
|
|
8954
8947
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8955
8948
|
}, [_c('div', {
|
|
8956
8949
|
staticClass: "bxt-share-wrapper",
|
|
8957
|
-
class: [_vm.actionOptions.length > 4
|
|
8950
|
+
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
8958
8951
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
8959
8952
|
return _c('figure', {
|
|
8960
8953
|
key: o.action,
|