bxs-tools-ui 1.0.22 → 1.0.26
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/README.md +0 -8
- package/lib/business-card/index.js +13 -13
- package/lib/bxs-utils/index.js +746 -810
- package/lib/canvas-poster/index.js +13 -13
- package/lib/index.css +166 -11
- package/lib/index.js +1062 -1103
- package/lib/insure-calculate/index.css +1 -1
- package/lib/insure-calculate/index.js +1041 -1206
- package/lib/person-info/index.css +144 -7
- package/lib/person-info/index.js +1387 -1398
- package/lib/product-info/index.css +38 -6
- package/lib/product-info/index.js +1024 -1302
- package/package.json +5 -15
- package/packages/business-card/demo/index.vue +2 -8
- package/packages/business-card/index.vue +6 -28
- package/packages/bxs-utils/demo/index.vue +0 -8
- package/packages/bxs-utils/index.js +0 -8
- package/packages/bxs-utils/planbook/common.js +9 -19
- package/packages/bxs-utils/planbook/index.js +0 -8
- package/packages/bxs-utils/planbook/insurance.js +71 -123
- package/packages/bxs-utils/planbook/person.js +215 -297
- package/packages/bxs-utils/planbook/product.js +321 -496
- package/packages/bxs-utils/trade/insureCalculate.js +11 -43
- package/packages/canvas-poster/demo/index.vue +2 -7
- package/packages/canvas-poster/index.vue +5 -37
- package/packages/components/form-item/age-birthday-item.vue +147 -0
- package/packages/components/form-item/select-item.vue +30 -65
- package/packages/components/form-item/title-item.vue +18 -9
- package/packages/insure-calculate/demo/index.vue +1 -4
- package/packages/insure-calculate/index.vue +47 -182
- package/packages/person-info/demo/index.vue +42 -88
- package/packages/person-info/index.css +26 -0
- package/packages/person-info/index.vue +32 -29
- package/packages/person-info/readme.md +1 -4
- package/packages/planbook-input/components/footer.vue +1 -2
- package/packages/planbook-input/components/product-table.css +99 -0
- package/packages/planbook-input/components/product-table.vue +10 -114
- package/packages/planbook-input/demo/index.vue +0 -8
- package/packages/planbook-input/helper.js +20 -84
- package/packages/planbook-input/index.css +26 -1
- package/packages/planbook-input/index.vue +110 -163
- package/packages/product-info/demo/index.vue +53 -543
- package/packages/product-info/index.css +35 -3
- package/packages/product-info/index.vue +26 -41
- package/packages/product-info/readme.md +1 -2
- package/src/js/md5Token.js +6 -8
- package/src/js/request.js +11 -9
- package/src/js/utils.js +2 -70
- package/packages/bxs-utils/index.css +0 -3
package/lib/bxs-utils/index.js
CHANGED
|
@@ -111,15 +111,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
111
111
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
/*
|
|
115
|
-
* @Description:
|
|
116
|
-
* @Author: lizhao
|
|
117
|
-
* @Date: 2020-09-14 18:26:26
|
|
118
|
-
* @LastEditors: lizhao
|
|
119
|
-
* @LastEditTime: 2020-12-10 16:40:12
|
|
120
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/common.js
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
114
|
/**
|
|
124
115
|
* @Author: lizhao
|
|
125
116
|
* @Date: 2020-12-10 15:43:18
|
|
@@ -164,13 +155,15 @@ function convertEleOrderListToObj(obj) {
|
|
|
164
155
|
function calcTotalBaof(productGroupList) {
|
|
165
156
|
var totalBaof = 0;
|
|
166
157
|
productGroupList.map(function (group) {
|
|
167
|
-
if (
|
|
168
|
-
|
|
169
|
-
if (prod.hadChoice && !prod.hide) {
|
|
170
|
-
totalBaof += prod.totalBaof * 1 || 0;
|
|
171
|
-
}
|
|
172
|
-
});
|
|
158
|
+
if (group.isHide) {
|
|
159
|
+
return;
|
|
173
160
|
}
|
|
161
|
+
|
|
162
|
+
group.prodOrderList.map(function (prod) {
|
|
163
|
+
if (prod.hadChoice && !prod.hide) {
|
|
164
|
+
totalBaof += prod.totalBaof * 1 || 0;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
174
167
|
});
|
|
175
168
|
return totalBaof;
|
|
176
169
|
}
|
|
@@ -314,7 +307,9 @@ function getAgeFromBirth(birth, cDate) {
|
|
|
314
307
|
|
|
315
308
|
/***/ }),
|
|
316
309
|
/* 2 */,
|
|
317
|
-
/* 3
|
|
310
|
+
/* 3 */,
|
|
311
|
+
/* 4 */,
|
|
312
|
+
/* 5 */
|
|
318
313
|
/***/ (function(module, exports, __webpack_require__) {
|
|
319
314
|
|
|
320
315
|
"use strict";
|
|
@@ -672,8 +667,6 @@ module.exports = {
|
|
|
672
667
|
|
|
673
668
|
|
|
674
669
|
/***/ }),
|
|
675
|
-
/* 4 */,
|
|
676
|
-
/* 5 */,
|
|
677
670
|
/* 6 */
|
|
678
671
|
/***/ (function(module, exports) {
|
|
679
672
|
|
|
@@ -716,14 +709,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
716
709
|
|
|
717
710
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
718
711
|
|
|
719
|
-
/*
|
|
720
|
-
* @Description:
|
|
721
|
-
* @Author: lizhao
|
|
722
|
-
* @Date: 2020-11-13 18:28:12
|
|
723
|
-
* @LastEditors: lizhao
|
|
724
|
-
* @LastEditTime: 2020-12-10 16:43:10
|
|
725
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/insurance.js
|
|
726
|
-
*/
|
|
727
712
|
|
|
728
713
|
/**
|
|
729
714
|
* @Author: lizhao
|
|
@@ -738,47 +723,49 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
738
723
|
*/
|
|
739
724
|
|
|
740
725
|
function initInsuranceData(insData) {
|
|
741
|
-
if (insData
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
case 'title':
|
|
745
|
-
e.isDisabled = e.isDisabled || null;
|
|
746
|
-
e.isHide = e.isHide || null;
|
|
747
|
-
break;
|
|
726
|
+
if (!insData || !insData.eleOrderList) {
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
748
729
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
730
|
+
insData.eleOrderList.forEach(function (e) {
|
|
731
|
+
switch (e.key) {
|
|
732
|
+
case 'title':
|
|
733
|
+
e.isDisabled = e.isDisabled || null;
|
|
734
|
+
e.isHide = e.isHide || null;
|
|
735
|
+
break;
|
|
752
736
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
737
|
+
case 'baoe':
|
|
738
|
+
e.placeholder = e.placeholder || '请输入保额';
|
|
739
|
+
break;
|
|
757
740
|
|
|
758
|
-
|
|
759
|
-
|
|
741
|
+
case 'baof':
|
|
742
|
+
e.placeholder = e.placeholder || '请输入保费';
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
760
745
|
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
val: e.optConf[2] && e.optConf[2].valfix ? "".concat(i).concat(e.optConf[2].valfix) : i,
|
|
764
|
-
desc: e.optConf[2] && e.optConf[2].desc ? e.optConf[2].desc.replace(/{{&&}}/, i) : i
|
|
765
|
-
});
|
|
766
|
-
}
|
|
746
|
+
if (e.optConf && e.optConf.length) {
|
|
747
|
+
var options = [];
|
|
767
748
|
|
|
768
|
-
|
|
749
|
+
for (var i = e.optConf[0]; i < e.optConf[1]; i += e.optConf[2] && e.optConf[2] && e.optConf[2].step || 1) {
|
|
750
|
+
options.push({
|
|
751
|
+
val: e.optConf[2] && e.optConf[2].valfix ? "".concat(i).concat(e.optConf[2].valfix) : i,
|
|
752
|
+
desc: e.optConf[2] && e.optConf[2].desc ? e.optConf[2].desc.replace(/{{&&}}/, i) : i
|
|
753
|
+
});
|
|
769
754
|
}
|
|
770
755
|
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
756
|
+
e.opts = options;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
if (e.opts && e.opts.length) {
|
|
760
|
+
e.opts = e.opts.map(function (o) {
|
|
761
|
+
return _objectSpread(_objectSpread({}, o), {}, {
|
|
762
|
+
isHide: o.isHide || null,
|
|
763
|
+
isDisabled: o.isDisabled || null,
|
|
764
|
+
isInvalid: o.isInvalid || null
|
|
778
765
|
});
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
}
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
});
|
|
782
769
|
}
|
|
783
770
|
/**
|
|
784
771
|
* @Author: lizhao
|
|
@@ -793,39 +780,41 @@ function initInsuranceData(insData) {
|
|
|
793
780
|
*/
|
|
794
781
|
|
|
795
782
|
function insuranceDataHandler(insData, productData) {
|
|
796
|
-
if (insData
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
783
|
+
if (!insData || !insData.eleOrderList) {
|
|
784
|
+
return insData;
|
|
785
|
+
}
|
|
800
786
|
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
ele.isIgnoreValidate = ele.isIgnoreValidate || null;
|
|
805
|
-
ele.rules = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(initElementValidateRules(ele, productData));
|
|
806
|
-
});
|
|
807
|
-
var calMethod = insData.eleOrderList.find(function (e) {
|
|
808
|
-
return e.key === 'calMethod';
|
|
809
|
-
});
|
|
810
|
-
var baoe = insData.eleOrderList.find(function (e) {
|
|
811
|
-
return e.key === 'baoe';
|
|
812
|
-
});
|
|
813
|
-
var baof = insData.eleOrderList.find(function (e) {
|
|
814
|
-
return e.key === 'baof';
|
|
815
|
-
});
|
|
816
|
-
var plan = insData.eleOrderList.find(function (e) {
|
|
817
|
-
return e.key === 'plan';
|
|
818
|
-
}); // 同时有保额和计划时,若保额被隐藏则显示计划 2019.09.11)
|
|
787
|
+
if (insData.reduceBaof) {
|
|
788
|
+
insData.reduceBaofData = insData.reduceBaofData || null;
|
|
789
|
+
}
|
|
819
790
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
791
|
+
insData.eleOrderList.forEach(function (ele) {
|
|
792
|
+
ele.isDisabled = ele.isDisabled || null;
|
|
793
|
+
ele.isHide = ele.isHide || null;
|
|
794
|
+
ele.isIgnoreValidate = ele.isIgnoreValidate || null;
|
|
795
|
+
ele.rules = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(initElementValidateRules(ele, productData));
|
|
796
|
+
});
|
|
797
|
+
var calMethod = insData.eleOrderList.find(function (e) {
|
|
798
|
+
return e.key === 'calMethod';
|
|
799
|
+
});
|
|
800
|
+
var baoe = insData.eleOrderList.find(function (e) {
|
|
801
|
+
return e.key === 'baoe';
|
|
802
|
+
});
|
|
803
|
+
var baof = insData.eleOrderList.find(function (e) {
|
|
804
|
+
return e.key === 'baof';
|
|
805
|
+
});
|
|
806
|
+
var plan = insData.eleOrderList.find(function (e) {
|
|
807
|
+
return e.key === 'plan';
|
|
808
|
+
}); // 同时有保额和计划时,若保额被隐藏则显示计划 2019.09.11)
|
|
823
809
|
|
|
810
|
+
if (baoe && plan) {
|
|
811
|
+
insData.showPlanDesc = baoe.isHide;
|
|
812
|
+
} // 切换保额保费互算问题 By Lizhao@2020.11.25
|
|
824
813
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
814
|
+
|
|
815
|
+
if (calMethod && baoe && baof) {
|
|
816
|
+
baoe.isHide = calMethod.value !== 'baoe2baof';
|
|
817
|
+
baof.isHide = calMethod.value === 'baoe2baof';
|
|
829
818
|
}
|
|
830
819
|
|
|
831
820
|
return insData;
|
|
@@ -1065,7 +1054,8 @@ function restrictElementsInInsurance(_ref) {
|
|
|
1065
1054
|
}
|
|
1066
1055
|
|
|
1067
1056
|
/***/ }),
|
|
1068
|
-
/* 8
|
|
1057
|
+
/* 8 */,
|
|
1058
|
+
/* 9 */
|
|
1069
1059
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1070
1060
|
|
|
1071
1061
|
"use strict";
|
|
@@ -1075,14 +1065,6 @@ function restrictElementsInInsurance(_ref) {
|
|
|
1075
1065
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setPersonAgeOptions; });
|
|
1076
1066
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return convertPersonData; });
|
|
1077
1067
|
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
1078
|
-
/*
|
|
1079
|
-
* @Description:
|
|
1080
|
-
* @Author: lizhao
|
|
1081
|
-
* @Date: 2020-09-30 10:37:28
|
|
1082
|
-
* @LastEditors: lizhao
|
|
1083
|
-
* @LastEditTime: 2020-12-22 11:15:46
|
|
1084
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/person.js
|
|
1085
|
-
*/
|
|
1086
1068
|
|
|
1087
1069
|
/**
|
|
1088
1070
|
* @Author: lizhao
|
|
@@ -1101,132 +1083,138 @@ function restrictElementsInInsurance(_ref) {
|
|
|
1101
1083
|
function initPersonData(inputData, verifyData) {
|
|
1102
1084
|
var personData = inputData.personData;
|
|
1103
1085
|
|
|
1104
|
-
if (personData
|
|
1105
|
-
|
|
1086
|
+
if (!personData || !personData.personOrderList) {
|
|
1087
|
+
return;
|
|
1088
|
+
}
|
|
1106
1089
|
|
|
1107
|
-
|
|
1108
|
-
personOrderList.forEach(function (person) {
|
|
1109
|
-
if (person.eleOrderList) {
|
|
1110
|
-
// 投保人添加元素:投被保人是同一人
|
|
1111
|
-
if (person.key === 'applicantInfo') {
|
|
1112
|
-
if (person.eleOrderList.every(function (e) {
|
|
1113
|
-
return e.key !== 'applicantAndInsuredSame';
|
|
1114
|
-
})) {
|
|
1115
|
-
person.eleOrderList.splice(1, 0, {
|
|
1116
|
-
key: 'applicantAndInsuredSame',
|
|
1117
|
-
value: 0,
|
|
1118
|
-
label: '投被保人',
|
|
1119
|
-
componentName: 'cmCommonRadio',
|
|
1120
|
-
options: [{
|
|
1121
|
-
val: 0,
|
|
1122
|
-
desc: '非同一人'
|
|
1123
|
-
}, {
|
|
1124
|
-
val: 1,
|
|
1125
|
-
desc: '是同一人'
|
|
1126
|
-
}]
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
} // 添加元素:生日
|
|
1090
|
+
var personOrderList = personData.personOrderList;
|
|
1130
1091
|
|
|
1092
|
+
if (!personOrderList || !personOrderList.length) {
|
|
1093
|
+
return;
|
|
1094
|
+
}
|
|
1131
1095
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1096
|
+
personOrderList.forEach(function (person) {
|
|
1097
|
+
if (!person || !person.eleOrderList) {
|
|
1098
|
+
return;
|
|
1099
|
+
} // 投保人添加元素:投被保人是同一人
|
|
1135
1100
|
|
|
1136
|
-
if (person.eleOrderList.every(function (e) {
|
|
1137
|
-
return e.key !== 'birthday';
|
|
1138
|
-
})) {
|
|
1139
|
-
person.eleOrderList.splice(index + 1, 0, {
|
|
1140
|
-
key: 'birthday',
|
|
1141
|
-
value: null,
|
|
1142
|
-
label: '生日',
|
|
1143
|
-
componentName: 'cmCommonDate',
|
|
1144
|
-
placeholder: '请选择生日',
|
|
1145
|
-
minDate: null,
|
|
1146
|
-
maxDate: null,
|
|
1147
|
-
defaulValue: null
|
|
1148
|
-
});
|
|
1149
|
-
} // 设置计划书年龄范围,即被保人年龄范围
|
|
1150
1101
|
|
|
1102
|
+
if (person.key === 'applicantInfo') {
|
|
1103
|
+
if (person.eleOrderList.every(function (e) {
|
|
1104
|
+
return e.key !== 'applicantAndInsuredSame';
|
|
1105
|
+
})) {
|
|
1106
|
+
person.eleOrderList.splice(1, 0, {
|
|
1107
|
+
key: 'applicantAndInsuredSame',
|
|
1108
|
+
value: 0,
|
|
1109
|
+
label: '投被保人',
|
|
1110
|
+
componentName: 'cmCommonRadio',
|
|
1111
|
+
options: [{
|
|
1112
|
+
val: 0,
|
|
1113
|
+
desc: '非同一人'
|
|
1114
|
+
}, {
|
|
1115
|
+
val: 1,
|
|
1116
|
+
desc: '是同一人'
|
|
1117
|
+
}]
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
} // 添加元素:生日
|
|
1151
1121
|
|
|
1152
|
-
var ageRange = getInsuredAgeRange(inputData, verifyData);
|
|
1153
1122
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
person.eleOrderList.forEach(function (ele) {
|
|
1158
|
-
if (ele.key === 'age') {
|
|
1159
|
-
ele.opts = ageRange["".concat(person.key, "1")]; // 男女年龄取值范围不同
|
|
1123
|
+
var index = person.eleOrderList.findIndex(function (e) {
|
|
1124
|
+
return e.key === 'age';
|
|
1125
|
+
});
|
|
1160
1126
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1127
|
+
if (person.eleOrderList.every(function (e) {
|
|
1128
|
+
return e.key !== 'birthday';
|
|
1129
|
+
})) {
|
|
1130
|
+
person.eleOrderList.splice(index + 1, 0, {
|
|
1131
|
+
key: 'birthday',
|
|
1132
|
+
value: null,
|
|
1133
|
+
label: '生日',
|
|
1134
|
+
componentName: null,
|
|
1135
|
+
placeholder: '请选择生日',
|
|
1136
|
+
minDate: null,
|
|
1137
|
+
maxDate: null,
|
|
1138
|
+
defaulValue: null
|
|
1139
|
+
});
|
|
1140
|
+
} // 设置计划书年龄范围,即被保人年龄范围
|
|
1169
1141
|
|
|
1170
1142
|
|
|
1171
|
-
|
|
1172
|
-
switch (e.key) {
|
|
1173
|
-
case 'title':
|
|
1174
|
-
{
|
|
1175
|
-
e.isDisabled = e.isDisabled || null;
|
|
1176
|
-
e.componentName = 'cmCommonTitle';
|
|
1143
|
+
var ageRange = getInsuredAgeRange(inputData, verifyData);
|
|
1177
1144
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1145
|
+
if (ageRange) {
|
|
1146
|
+
personOrderList.forEach(function (person) {
|
|
1147
|
+
if (person.key === 'insuredInfo' && ageRange["".concat(person.key, "1")] && ageRange["".concat(person.key, "1")].length) {
|
|
1148
|
+
person.eleOrderList.forEach(function (ele) {
|
|
1149
|
+
if (ele.key === 'age') {
|
|
1150
|
+
ele.opts = ageRange["".concat(person.key, "1")]; // 男女年龄取值范围不同
|
|
1183
1151
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1152
|
+
if (ageRange["".concat(person.key, "2")].length && (ele.opts[0] !== ageRange["".concat(person.key, "2")][0] || ele.opts[1] !== ageRange["".concat(person.key, "2")][1])) {
|
|
1153
|
+
ele.optsF = ageRange["".concat(person.key, "2")];
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
} // 转化一些必要数据
|
|
1187
1160
|
|
|
1188
|
-
case 'spouseInfo':
|
|
1189
|
-
e.label = '投保人配偶信息';
|
|
1190
|
-
break;
|
|
1191
1161
|
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1162
|
+
person.eleOrderList.forEach(function (e) {
|
|
1163
|
+
switch (e.key) {
|
|
1164
|
+
case 'title':
|
|
1165
|
+
{
|
|
1166
|
+
e.isDisabled = e.isDisabled || null;
|
|
1167
|
+
e.componentName = 'cmCommonTitle';
|
|
1168
|
+
|
|
1169
|
+
switch (person.key) {
|
|
1170
|
+
case 'insuredInfo':
|
|
1171
|
+
e.isDisabled = true;
|
|
1172
|
+
e.label = '被保人信息';
|
|
1173
|
+
break;
|
|
1174
|
+
|
|
1175
|
+
case 'applicantInfo':
|
|
1176
|
+
e.label = '投保人信息(豁免相关)';
|
|
1177
|
+
break;
|
|
1178
|
+
|
|
1179
|
+
case 'spouseInfo':
|
|
1180
|
+
e.label = '投保人配偶信息';
|
|
1181
|
+
break;
|
|
1182
|
+
|
|
1183
|
+
default:
|
|
1184
|
+
e.label = '人员信息';
|
|
1185
|
+
break;
|
|
1186
|
+
}
|
|
1196
1187
|
|
|
1197
|
-
|
|
1198
|
-
|
|
1188
|
+
break;
|
|
1189
|
+
}
|
|
1199
1190
|
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1191
|
+
case 'sex':
|
|
1192
|
+
{
|
|
1193
|
+
e.label = '性别';
|
|
1194
|
+
e.componentName = 'cmCommonRadio';
|
|
1195
|
+
e.options = [{
|
|
1196
|
+
val: 1,
|
|
1197
|
+
desc: '男'
|
|
1198
|
+
}, {
|
|
1199
|
+
val: 2,
|
|
1200
|
+
desc: '女'
|
|
1201
|
+
}];
|
|
1202
|
+
e.isDisabled = person.key === 'spouseInfo';
|
|
1203
|
+
break;
|
|
1204
|
+
}
|
|
1214
1205
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1206
|
+
case 'age':
|
|
1207
|
+
{
|
|
1208
|
+
e.label = '年龄';
|
|
1209
|
+
e.componentName = 'cmAgeBirthday';
|
|
1210
|
+
e.placeholder = '请选择年龄';
|
|
1211
|
+
e.options = [];
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
setPersonAgeOptions(person);
|
|
1217
|
+
});
|
|
1230
1218
|
}
|
|
1231
1219
|
/**
|
|
1232
1220
|
* @Author: lizhao
|
|
@@ -1248,140 +1236,98 @@ function personDataHandler(allPersonsData) {
|
|
|
1248
1236
|
personKey = _ref.personKey,
|
|
1249
1237
|
eleKey = _ref.eleKey;
|
|
1250
1238
|
|
|
1251
|
-
if (allPersonsData
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1239
|
+
if (!allPersonsData || !allPersonsData.personOrderList) {
|
|
1240
|
+
return allPersonsData;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
allPersonsData.personOrderList.forEach(function (person, i, arr) {
|
|
1244
|
+
setPersonAgeOptions(person);
|
|
1245
|
+
var insuredData = arr.find(function (p) {
|
|
1246
|
+
return p.key === 'insuredInfo';
|
|
1247
|
+
});
|
|
1248
|
+
var applicantData = arr.find(function (p) {
|
|
1249
|
+
return p.key === 'applicantInfo';
|
|
1250
|
+
});
|
|
1251
|
+
var insuredInfo = convertPersonData(allPersonsData, 'insuredInfo');
|
|
1252
|
+
var applicantInfo = convertPersonData(allPersonsData, 'applicantInfo');
|
|
1253
|
+
|
|
1254
|
+
if (person.key === 'insuredInfo' && applicantData) {
|
|
1255
|
+
// 关于被保人、投保人是否是同一人的处理
|
|
1256
|
+
// 被保人所选年龄不在投保人年龄范围内,强制选中投保人。即被保人年龄不能做投保人
|
|
1257
|
+
var applicantAge = applicantData.eleOrderList.find(function (e) {
|
|
1258
|
+
return e.key === 'age';
|
|
1256
1259
|
});
|
|
1257
|
-
var
|
|
1258
|
-
return e.key ===
|
|
1260
|
+
var applicantTitle = applicantData.eleOrderList.find(function (e) {
|
|
1261
|
+
return e.key === 'title';
|
|
1262
|
+
});
|
|
1263
|
+
var applicantSame = applicantData.eleOrderList.find(function (e) {
|
|
1264
|
+
return e.key === 'applicantAndInsuredSame';
|
|
1259
1265
|
});
|
|
1260
1266
|
|
|
1261
|
-
if (
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
// 改变年龄,清空生日
|
|
1266
|
-
var birthday = personData.eleOrderList.find(function (e) {
|
|
1267
|
-
return e.key === 'birthday';
|
|
1268
|
-
});
|
|
1269
|
-
|
|
1270
|
-
if (birthday) {
|
|
1271
|
-
birthday.value = null;
|
|
1272
|
-
birthday.defaultValue = null;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
break;
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
case 'birthday':
|
|
1279
|
-
{
|
|
1280
|
-
// 改变生日,重算年龄
|
|
1281
|
-
var age = personData.eleOrderList.find(function (e) {
|
|
1282
|
-
return e.key === 'age';
|
|
1283
|
-
});
|
|
1267
|
+
if (insuredInfo.age >= applicantAge.opts[0] && insuredInfo.age <= applicantAge.opts[1]) {
|
|
1268
|
+
if (applicantTitle) {
|
|
1269
|
+
applicantTitle.isDisabled = false;
|
|
1270
|
+
}
|
|
1284
1271
|
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1272
|
+
if (applicantSame) {
|
|
1273
|
+
applicantSame.isDisabled = null;
|
|
1274
|
+
applicantSame.isHide = null;
|
|
1275
|
+
}
|
|
1276
|
+
} else {
|
|
1277
|
+
if (applicantTitle) {
|
|
1278
|
+
applicantTitle.value = true;
|
|
1279
|
+
applicantTitle.isDisabled = true;
|
|
1280
|
+
}
|
|
1288
1281
|
|
|
1289
|
-
|
|
1290
|
-
|
|
1282
|
+
if (applicantSame) {
|
|
1283
|
+
applicantSame.value = 0;
|
|
1284
|
+
applicantSame.isDisabled = true;
|
|
1291
1285
|
}
|
|
1292
1286
|
}
|
|
1293
1287
|
}
|
|
1294
1288
|
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
var
|
|
1298
|
-
return
|
|
1299
|
-
});
|
|
1300
|
-
var applicantData = arr.find(function (p) {
|
|
1301
|
-
return p.key === 'applicantInfo';
|
|
1289
|
+
if (person.key === 'applicantInfo') {
|
|
1290
|
+
// 投被保人为是否为同一人的相关逻辑
|
|
1291
|
+
var _applicantSame = person.eleOrderList.find(function (e) {
|
|
1292
|
+
return e.key === 'applicantAndInsuredSame';
|
|
1302
1293
|
});
|
|
1303
|
-
var insuredInfo = convertPersonData(allPersonsData, 'insuredInfo');
|
|
1304
|
-
var applicantInfo = convertPersonData(allPersonsData, 'applicantInfo');
|
|
1305
|
-
|
|
1306
|
-
if (person.key === 'insuredInfo' && applicantData) {
|
|
1307
|
-
// 关于被保人、投保人是否是同一人的处理
|
|
1308
|
-
// 被保人所选年龄不在投保人年龄范围内,强制选中投保人。即被保人年龄不能做投保人
|
|
1309
|
-
var applicantAge = applicantData.eleOrderList.find(function (e) {
|
|
1310
|
-
return e.key === 'age';
|
|
1311
|
-
});
|
|
1312
|
-
var applicantTitle = applicantData.eleOrderList.find(function (e) {
|
|
1313
|
-
return e.key === 'title';
|
|
1314
|
-
});
|
|
1315
|
-
var applicantSame = applicantData.eleOrderList.find(function (e) {
|
|
1316
|
-
return e.key === 'applicantAndInsuredSame';
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
|
-
if (insuredInfo.age >= applicantAge.opts[0] && insuredInfo.age <= applicantAge.opts[1]) {
|
|
1320
|
-
if (applicantTitle) {
|
|
1321
|
-
applicantTitle.isDisabled = false;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
if (applicantSame) {
|
|
1325
|
-
applicantSame.isDisabled = null;
|
|
1326
|
-
applicantSame.isHide = null;
|
|
1327
|
-
}
|
|
1328
|
-
} else {
|
|
1329
|
-
if (applicantTitle) {
|
|
1330
|
-
applicantTitle.value = true;
|
|
1331
|
-
applicantTitle.isDisabled = true;
|
|
1332
|
-
}
|
|
1333
1294
|
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
if (person.key === 'applicantInfo') {
|
|
1342
|
-
// 投被保人为是否为同一人的相关逻辑
|
|
1343
|
-
var _applicantSame = person.eleOrderList.find(function (e) {
|
|
1344
|
-
return e.key === 'applicantAndInsuredSame';
|
|
1345
|
-
});
|
|
1346
|
-
|
|
1347
|
-
if (_applicantSame) {
|
|
1348
|
-
person.eleOrderList.forEach(function (ele) {
|
|
1349
|
-
if (['title', 'applicantAndInsuredSame'].indexOf(ele.key) === -1) {
|
|
1350
|
-
ele.isHide = !!_applicantSame.value;
|
|
1295
|
+
if (_applicantSame) {
|
|
1296
|
+
person.eleOrderList.forEach(function (ele) {
|
|
1297
|
+
if (['title', 'applicantAndInsuredSame'].indexOf(ele.key) === -1) {
|
|
1298
|
+
ele.isHide = !!_applicantSame.value;
|
|
1351
1299
|
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1300
|
+
if (_applicantSame.value) {
|
|
1301
|
+
var insuredEle = insuredData.eleOrderList.find(function (e) {
|
|
1302
|
+
return e.key === ele.key;
|
|
1303
|
+
});
|
|
1356
1304
|
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}
|
|
1305
|
+
if (insuredEle) {
|
|
1306
|
+
ele.value = insuredEle.value;
|
|
1360
1307
|
}
|
|
1361
1308
|
}
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
} // 选中投保人才能选投保人配偶
|
|
1365
|
-
// 配偶性别根据投保人性别取反
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
if (person.key === 'spouseInfo') {
|
|
1369
|
-
person.eleOrderList.forEach(function (ele) {
|
|
1370
|
-
if (ele.key === 'title') {
|
|
1371
|
-
ele.isDisabled = !applicantInfo.title;
|
|
1372
|
-
ele.value = applicantInfo.title ? ele.value : false;
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
if (ele.key === 'sex') {
|
|
1376
|
-
ele.value = applicantInfo.sex === 1 ? 2 : 1;
|
|
1377
1309
|
}
|
|
1378
1310
|
});
|
|
1379
1311
|
}
|
|
1312
|
+
} // 选中投保人才能选投保人配偶
|
|
1313
|
+
// 配偶性别根据投保人性别取反
|
|
1380
1314
|
|
|
1381
|
-
setPersonAgeOptions(person);
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
1315
|
|
|
1316
|
+
if (person.key === 'spouseInfo') {
|
|
1317
|
+
person.eleOrderList.forEach(function (ele) {
|
|
1318
|
+
if (ele.key === 'title') {
|
|
1319
|
+
ele.isDisabled = !applicantInfo.title;
|
|
1320
|
+
ele.value = applicantInfo.title ? ele.value : false;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
if (ele.key === 'sex') {
|
|
1324
|
+
ele.value = applicantInfo.sex === 1 ? 2 : 1;
|
|
1325
|
+
}
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
setPersonAgeOptions(person);
|
|
1330
|
+
});
|
|
1385
1331
|
return allPersonsData;
|
|
1386
1332
|
}
|
|
1387
1333
|
/**
|
|
@@ -1402,41 +1348,47 @@ function getInsuredAgeRange(inputData, verifyData) {
|
|
|
1402
1348
|
|
|
1403
1349
|
};
|
|
1404
1350
|
|
|
1405
|
-
if (inputData
|
|
1406
|
-
|
|
1407
|
-
if (group.prodOrderList) {
|
|
1408
|
-
//计划书是否有有效必选产品(默认个数内、必选、非组合险)
|
|
1409
|
-
var hasRequiredProd = group.prodOrderList.some(function (prod, i) {
|
|
1410
|
-
return i < group.defNum && !!prod.required && !prod.isTemp;
|
|
1411
|
-
});
|
|
1412
|
-
group.prodOrderList.forEach(function (prod) {
|
|
1413
|
-
// 组合险不统计年龄范围
|
|
1414
|
-
if (verifyData[prod.key] && !prod.isTemp && prod.mulInsOrderList) {
|
|
1415
|
-
prod.mulInsOrderList.forEach(function (ins) {
|
|
1416
|
-
// 险种是否有费率
|
|
1417
|
-
if (verifyData[prod.key][ins.key]) {
|
|
1418
|
-
// 产品中是否有必选险种
|
|
1419
|
-
var hasRequiredIns = prod.mulInsOrderList.some(function (ins) {
|
|
1420
|
-
return !!ins.required;
|
|
1421
|
-
}); //无必选产品,根据所有产品的最小值,最大值确定;有必选产品, 根据必选产品的最小值,最大值确定
|
|
1422
|
-
//无必选险种,根据所有险种的最小值,最大值确定;如果有必选险种:根据必选险种的最小值,最大值确定
|
|
1423
|
-
|
|
1424
|
-
if ((!ins.huomian || ins.huomian === 'beiHuomian') && (!hasRequiredProd || prod.required) && (!hasRequiredIns || ins.required)) {
|
|
1425
|
-
verifyData[prod.key][ins.key].forEach(function (condi) {
|
|
1426
|
-
var currentAgeRange = ageRange["insuredInfo".concat(condi.sex)];
|
|
1427
|
-
ageRange["insuredInfo".concat(condi.sex)] = [Math.min(currentAgeRange[0] === undefined ? Infinity : currentAgeRange[0], condi.minAge), Math.max(currentAgeRange[1] === undefined ? -Infinity : currentAgeRange[1], condi.maxAge)];
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
} else {
|
|
1431
|
-
console.log("".concat(prod.titleName, "-").concat(prod.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
1432
|
-
}
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
});
|
|
1351
|
+
if (!inputData || !inputData.productGroupList || !inputData.personData || !inputData.personData.personOrderList || !verifyData) {
|
|
1352
|
+
return ageRange;
|
|
1438
1353
|
}
|
|
1439
1354
|
|
|
1355
|
+
inputData.productGroupList.forEach(function (group) {
|
|
1356
|
+
if (!group.prodOrderList) {
|
|
1357
|
+
return;
|
|
1358
|
+
} //计划书是否有有效必选产品(默认个数内、必选、非组合险)
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
var hasRequiredProd = group.prodOrderList.some(function (prod, i) {
|
|
1362
|
+
return i < group.defNum && !!prod.required && !prod.isTemp;
|
|
1363
|
+
});
|
|
1364
|
+
group.prodOrderList.forEach(function (prod) {
|
|
1365
|
+
// 组合险不统计年龄范围
|
|
1366
|
+
if (!verifyData[prod.key] || prod.isTemp || !prod.mulInsOrderList) {
|
|
1367
|
+
return;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
prod.mulInsOrderList.forEach(function (ins) {
|
|
1371
|
+
// 险种是否有费率
|
|
1372
|
+
if (!verifyData[prod.key][ins.key]) {
|
|
1373
|
+
console.log("".concat(prod.titleName, "-").concat(prod.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
1374
|
+
return;
|
|
1375
|
+
} // 产品中是否有必选险种
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
var hasRequiredIns = prod.mulInsOrderList.some(function (ins) {
|
|
1379
|
+
return !!ins.required;
|
|
1380
|
+
}); //无必选产品,根据所有产品的最小值,最大值确定;有必选产品, 根据必选产品的最小值,最大值确定
|
|
1381
|
+
//无必选险种,根据所有险种的最小值,最大值确定;如果有必选险种:根据必选险种的最小值,最大值确定
|
|
1382
|
+
|
|
1383
|
+
if ((!ins.huomian || ins.huomian === 'beiHuomian') && (!hasRequiredProd || prod.required) && (!hasRequiredIns || ins.required)) {
|
|
1384
|
+
verifyData[prod.key][ins.key].forEach(function (condi) {
|
|
1385
|
+
var currentAgeRange = ageRange["insuredInfo".concat(condi.sex)];
|
|
1386
|
+
ageRange["insuredInfo".concat(condi.sex)] = [Math.min(currentAgeRange[0] === undefined ? Infinity : currentAgeRange[0], condi.minAge), Math.max(currentAgeRange[1] === undefined ? -Infinity : currentAgeRange[1], condi.maxAge)];
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
});
|
|
1391
|
+
});
|
|
1440
1392
|
return ageRange;
|
|
1441
1393
|
}
|
|
1442
1394
|
/**
|
|
@@ -1471,7 +1423,7 @@ function setPersonAgeOptions(personData) {
|
|
|
1471
1423
|
if (options.length && options.every(function (o) {
|
|
1472
1424
|
return o.val !== ele.value;
|
|
1473
1425
|
})) {
|
|
1474
|
-
ele.value = options[0];
|
|
1426
|
+
ele.value = options[0].val;
|
|
1475
1427
|
|
|
1476
1428
|
if (birthday) {
|
|
1477
1429
|
birthday.value = null;
|
|
@@ -1519,21 +1471,7 @@ function convertPersonData(allPersonsData, type) {
|
|
|
1519
1471
|
}
|
|
1520
1472
|
}
|
|
1521
1473
|
|
|
1522
|
-
if (type) {
|
|
1523
|
-
if (typeof type === 'string') {
|
|
1524
|
-
return cPersonData[type];
|
|
1525
|
-
} else if (type.constructor === Array) {
|
|
1526
|
-
var temp = [];
|
|
1527
|
-
|
|
1528
|
-
for (var k in cPersonData) {
|
|
1529
|
-
if (type.indexOf(k) !== -1) {
|
|
1530
|
-
temp.push(cPersonData[k]);
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
return temp;
|
|
1535
|
-
}
|
|
1536
|
-
} else {
|
|
1474
|
+
if (!type) {
|
|
1537
1475
|
return {
|
|
1538
1476
|
recipientInfo: cPersonData.recipientInfo,
|
|
1539
1477
|
personOrderList: allPersonsData.personOrderList && allPersonsData.personOrderList.map(function (p) {
|
|
@@ -1543,10 +1481,25 @@ function convertPersonData(allPersonsData, type) {
|
|
|
1543
1481
|
})
|
|
1544
1482
|
};
|
|
1545
1483
|
}
|
|
1484
|
+
|
|
1485
|
+
if (typeof type === 'string') {
|
|
1486
|
+
return cPersonData[type];
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
if (type.constructor === Array) {
|
|
1490
|
+
var temp = [];
|
|
1491
|
+
|
|
1492
|
+
for (var k in cPersonData) {
|
|
1493
|
+
if (type.indexOf(k) !== -1) {
|
|
1494
|
+
temp.push(cPersonData[k]);
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
return temp;
|
|
1499
|
+
}
|
|
1546
1500
|
}
|
|
1547
1501
|
|
|
1548
1502
|
/***/ }),
|
|
1549
|
-
/* 9 */,
|
|
1550
1503
|
/* 10 */
|
|
1551
1504
|
/***/ (function(module, exports) {
|
|
1552
1505
|
|
|
@@ -1611,7 +1564,7 @@ __webpack_require__.d(__webpack_exports__, "checkInsureCalculateIn", function()
|
|
|
1611
1564
|
var common = __webpack_require__(1);
|
|
1612
1565
|
|
|
1613
1566
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/person.js
|
|
1614
|
-
var person = __webpack_require__(
|
|
1567
|
+
var person = __webpack_require__(9);
|
|
1615
1568
|
|
|
1616
1569
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/product.js
|
|
1617
1570
|
var product = __webpack_require__(13);
|
|
@@ -1620,14 +1573,6 @@ var product = __webpack_require__(13);
|
|
|
1620
1573
|
var insurance = __webpack_require__(7);
|
|
1621
1574
|
|
|
1622
1575
|
// CONCATENATED MODULE: ./packages/bxs-utils/planbook/index.js
|
|
1623
|
-
/*
|
|
1624
|
-
* @Description:
|
|
1625
|
-
* @Author: lizhao
|
|
1626
|
-
* @Date: 2020-09-30 10:39:17
|
|
1627
|
-
* @LastEditors: lizhao
|
|
1628
|
-
* @LastEditTime: 2021-01-14 10:07:58
|
|
1629
|
-
* @FilePath: /bxs-tools-ui/packages/bxs-utils/planbook/index.js
|
|
1630
|
-
*/
|
|
1631
1576
|
|
|
1632
1577
|
|
|
1633
1578
|
|
|
@@ -1657,9 +1602,9 @@ var BASE_API = function () {
|
|
|
1657
1602
|
if (location.hostname.search(/pbf\.winbaoxian\.com/) !== -1) {
|
|
1658
1603
|
env = 'https://app.winbaoxian.com';
|
|
1659
1604
|
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
1660
|
-
env = '
|
|
1605
|
+
env = 'https://app.winbaoxian.cn';
|
|
1661
1606
|
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost/) !== -1) {
|
|
1662
|
-
env = '
|
|
1607
|
+
env = 'https://app.winbaoxian.cn';
|
|
1663
1608
|
}
|
|
1664
1609
|
|
|
1665
1610
|
return env;
|
|
@@ -2222,14 +2167,6 @@ function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
|
2222
2167
|
*/
|
|
2223
2168
|
|
|
2224
2169
|
// CONCATENATED MODULE: ./packages/bxs-utils/index.js
|
|
2225
|
-
/*
|
|
2226
|
-
* @Description:
|
|
2227
|
-
* @Author: lizhao
|
|
2228
|
-
* @Date: 2021-01-14 10:02:36
|
|
2229
|
-
* @LastEditors: lizhao
|
|
2230
|
-
* @LastEditTime: 2021-01-14 10:08:07
|
|
2231
|
-
* @FilePath: /bxs-tools-ui/packages/bxs-utils/index.js
|
|
2232
|
-
*/
|
|
2233
2170
|
|
|
2234
2171
|
|
|
2235
2172
|
|
|
@@ -2237,7 +2174,7 @@ function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
|
2237
2174
|
/* 12 */
|
|
2238
2175
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2239
2176
|
|
|
2240
|
-
module.exports = __webpack_require__(
|
|
2177
|
+
module.exports = __webpack_require__(30);
|
|
2241
2178
|
|
|
2242
2179
|
|
|
2243
2180
|
/***/ }),
|
|
@@ -2256,7 +2193,7 @@ module.exports = __webpack_require__(31);
|
|
|
2256
2193
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
|
|
2257
2194
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
2258
2195
|
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
2259
|
-
/* harmony import */ var _person_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
2196
|
+
/* harmony import */ var _person_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
|
|
2260
2197
|
/* harmony import */ var _insurance_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
|
|
2261
2198
|
|
|
2262
2199
|
|
|
@@ -2264,14 +2201,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
2264
2201
|
|
|
2265
2202
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2266
2203
|
|
|
2267
|
-
/*
|
|
2268
|
-
* @Description:
|
|
2269
|
-
* @Author: lizhao
|
|
2270
|
-
* @Date: 2020-09-30 10:36:44
|
|
2271
|
-
* @LastEditors: lizhao
|
|
2272
|
-
* @LastEditTime: 2020-12-22 10:58:19
|
|
2273
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/product.js
|
|
2274
|
-
*/
|
|
2275
2204
|
|
|
2276
2205
|
|
|
2277
2206
|
|
|
@@ -2293,19 +2222,20 @@ function initProductData(prodData) {
|
|
|
2293
2222
|
prodData.insShowArr = null;
|
|
2294
2223
|
prodData.totalBaof = null;
|
|
2295
2224
|
|
|
2296
|
-
if (prodData.mulInsOrderList) {
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
return !!ins.adjustBaoe;
|
|
2300
|
-
})) {
|
|
2301
|
-
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
2302
|
-
}
|
|
2225
|
+
if (!prodData.mulInsOrderList) {
|
|
2226
|
+
return prodData;
|
|
2227
|
+
} // 初始化调整保额的数据
|
|
2303
2228
|
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2229
|
+
|
|
2230
|
+
if (prodData.mulInsOrderList.some(function (ins) {
|
|
2231
|
+
return !!ins.adjustBaoe;
|
|
2232
|
+
})) {
|
|
2233
|
+
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
2307
2234
|
}
|
|
2308
2235
|
|
|
2236
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
2237
|
+
Object(_insurance_js__WEBPACK_IMPORTED_MODULE_3__[/* initInsuranceData */ "b"])(ins);
|
|
2238
|
+
});
|
|
2309
2239
|
return prodData;
|
|
2310
2240
|
}
|
|
2311
2241
|
/**
|
|
@@ -2337,227 +2267,226 @@ function productDataHandler(prodData, productVerifyData, personData) {
|
|
|
2337
2267
|
Object(_insurance_js__WEBPACK_IMPORTED_MODULE_3__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
2338
2268
|
var insuranceVerifyData = productVerifyData[ins.key];
|
|
2339
2269
|
|
|
2340
|
-
if (insuranceVerifyData) {
|
|
2341
|
-
(
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
var insuredInfo = personOrderList.find(function (p) {
|
|
2345
|
-
return p.key === 'insuredInfo';
|
|
2346
|
-
});
|
|
2347
|
-
var applicantInfo = personOrderList.find(function (p) {
|
|
2348
|
-
return p.key === 'applicantInfo';
|
|
2349
|
-
});
|
|
2350
|
-
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
2270
|
+
if (!insuranceVerifyData) {
|
|
2271
|
+
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
2272
|
+
return;
|
|
2273
|
+
} // 双豁免是种特殊的投保人豁免。双豁免包含投保人豁免和投保人配偶豁免。如果没有选中配偶信息,则认为是投保人豁免,选中则认为投保人豁免和配偶豁免都选中
|
|
2351
2274
|
|
|
2352
|
-
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
2353
|
-
// 如果豁免险种可以附加被保人,也可以附加投保人。选中投保人,则附加到投保人
|
|
2354
|
-
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
2355
|
-
} // 取当前性别、年龄下的费率条件
|
|
2356
2275
|
|
|
2276
|
+
var isTouHuomianIns = ins.huomian == 'touHuomian' || ins.huomian == 'shuangHuomian';
|
|
2277
|
+
var insuredInfo = personOrderList.find(function (p) {
|
|
2278
|
+
return p.key === 'insuredInfo';
|
|
2279
|
+
});
|
|
2280
|
+
var applicantInfo = personOrderList.find(function (p) {
|
|
2281
|
+
return p.key === 'applicantInfo';
|
|
2282
|
+
});
|
|
2283
|
+
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
2357
2284
|
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2285
|
+
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
2286
|
+
// 如果豁免险种可以附加被保人,也可以附加投保人。选中投保人,则附加到投保人
|
|
2287
|
+
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
2288
|
+
} // 取当前性别、年龄下的费率条件
|
|
2362
2289
|
|
|
2363
|
-
if (curPersonInfo) {
|
|
2364
|
-
// 对应性别、年龄下的限制条件
|
|
2365
|
-
curCondition = insuranceVerifyData.find(function (verify) {
|
|
2366
|
-
return verify.sex === curPersonInfo.sex && curPersonInfo.age >= verify.minAge && curPersonInfo.age <= verify.maxAge;
|
|
2367
|
-
});
|
|
2368
2290
|
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2291
|
+
var curPersonInfo = personOrderList.find(function (p) {
|
|
2292
|
+
return p.key === personType;
|
|
2293
|
+
});
|
|
2294
|
+
var curCondition = null;
|
|
2372
2295
|
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2296
|
+
if (curPersonInfo) {
|
|
2297
|
+
// 对应性别、年龄下的限制条件
|
|
2298
|
+
curCondition = insuranceVerifyData.find(function (verify) {
|
|
2299
|
+
return verify.sex === curPersonInfo.sex && curPersonInfo.age >= verify.minAge && curPersonInfo.age <= verify.maxAge;
|
|
2300
|
+
});
|
|
2301
|
+
|
|
2302
|
+
if (curCondition) {
|
|
2303
|
+
// 当前险种的限制条件
|
|
2304
|
+
curCondition = curCondition.conditionData; //如果险种可以附加被保人,也可以附加投保人。选中投保人,则附加到投保人
|
|
2305
|
+
|
|
2306
|
+
if (isTouHuomianIns && ins.allowSamePerson && curCondition.key === 'samePerson') {
|
|
2307
|
+
curCondition = curCondition.samePerson.find(function (verify) {
|
|
2308
|
+
return verify.value == (applicantInfo.title ? 0 : 1);
|
|
2309
|
+
});
|
|
2379
2310
|
}
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2380
2313
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2314
|
+
var eleTitle = ins.eleOrderList.find(function (e) {
|
|
2315
|
+
return e.key === 'title';
|
|
2316
|
+
}); // 储存当前元素限制条件。以便下一个限制条件回归调用
|
|
2384
2317
|
|
|
2385
|
-
|
|
2318
|
+
var backupCondi = null; // 遍历当前险种的限制条件
|
|
2386
2319
|
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2320
|
+
do {
|
|
2321
|
+
//如果险种不存在费率限制条件或者投保人豁免在没有选中投保人信息的条件下,险种不可选
|
|
2322
|
+
if (!curCondition || isTouHuomianIns && !ins.allowSamePerson && (!curPersonInfo.title || curPersonInfo.applicantAndInsuredSame)) {
|
|
2323
|
+
eleTitle.isDisabled = true;
|
|
2324
|
+
eleTitle.value = false;
|
|
2392
2325
|
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2326
|
+
if (curCondition) {
|
|
2327
|
+
console.log("".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"));
|
|
2328
|
+
} else {
|
|
2329
|
+
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
2330
|
+
}
|
|
2331
|
+
} else {
|
|
2332
|
+
// 存在费率,险种可选
|
|
2333
|
+
eleTitle.isDisabled = false; // 如果是必选险种,险种一定选中
|
|
2401
2334
|
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2335
|
+
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
2336
|
+
eleTitle.value = true;
|
|
2337
|
+
eleTitle.isDisabled = true;
|
|
2338
|
+
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)"));
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2408
2341
|
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2342
|
+
if (curCondition) {
|
|
2343
|
+
(function () {
|
|
2344
|
+
// 判断是否为通用元素
|
|
2345
|
+
var eleData = ins.eleOrderList.find(function (e) {
|
|
2346
|
+
return e.key === curCondition.key;
|
|
2347
|
+
});
|
|
2348
|
+
var commonData = prodData.mulInsOrderList.find(function (ins) {
|
|
2349
|
+
return ins.key === 'common';
|
|
2350
|
+
});
|
|
2418
2351
|
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2352
|
+
if (!eleData && commonData && commonData.eleOrderList) {
|
|
2353
|
+
eleData = commonData.eleOrderList.find(function (e) {
|
|
2354
|
+
return e.key === curCondition.key;
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2424
2357
|
|
|
2425
|
-
|
|
2358
|
+
var eleCondi = curCondition[curCondition.key];
|
|
2426
2359
|
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2360
|
+
if (eleData) {
|
|
2361
|
+
//元素隐藏且非不可修改状态,取对应关联的险种的值
|
|
2362
|
+
if (eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && ins.refInsuranceId != -2) {
|
|
2363
|
+
var refInsData = null; // -1: 关联主险。即险种中key值为非 「common」的第一个险种
|
|
2431
2364
|
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2365
|
+
if (ins.refInsuranceId === -1) {
|
|
2366
|
+
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
2367
|
+
} else {
|
|
2368
|
+
refInsData = insList.find(function (ins) {
|
|
2369
|
+
return ins.key === ins.refInsuranceId;
|
|
2370
|
+
});
|
|
2371
|
+
}
|
|
2439
2372
|
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2373
|
+
if (refInsData) {
|
|
2374
|
+
// 数据取值来源的元素
|
|
2375
|
+
var refEleData = refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) {
|
|
2376
|
+
return e.key === eleData.key;
|
|
2377
|
+
});
|
|
2445
2378
|
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2379
|
+
if (refEleData) {
|
|
2380
|
+
// 所关联的险种不可选,当前险种也不可选
|
|
2381
|
+
var refTitleData = refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) {
|
|
2382
|
+
return e.key === 'title';
|
|
2383
|
+
});
|
|
2451
2384
|
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2385
|
+
if (refInsData && refTitleData.isDisabled) {
|
|
2386
|
+
eleTitle.isDisabled = true;
|
|
2387
|
+
} // 豁免险,缴费期间需要减去某个值
|
|
2455
2388
|
|
|
2456
2389
|
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
}
|
|
2462
|
-
} else {
|
|
2463
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
2464
|
-
}
|
|
2390
|
+
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
2391
|
+
eleData.value = Object(_common_js__WEBPACK_IMPORTED_MODULE_1__[/* getHuomianPeriodValue */ "f"])(refEleData.value, ins, ins.huomian === 'touHuomian' ? insuredInfo : curPersonInfo);
|
|
2392
|
+
} else {
|
|
2393
|
+
eleData.value = refEleData.value;
|
|
2465
2394
|
}
|
|
2466
2395
|
} else {
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2396
|
+
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
} else {
|
|
2400
|
+
var backupOpts = eleData.opts.slice(0);
|
|
2401
|
+
eleData.opts = [];
|
|
2402
|
+
eleCondi.forEach(function (condi) {
|
|
2403
|
+
if (condi.value !== undefined && condi.desc !== undefined) {
|
|
2404
|
+
var backupOpt = backupOpts && backupOpts.find(function (o) {
|
|
2405
|
+
return o.val == condi.value;
|
|
2406
|
+
});
|
|
2407
|
+
eleData.opts.push({
|
|
2408
|
+
val: condi.value,
|
|
2409
|
+
desc: condi.desc,
|
|
2410
|
+
isHide: backupOpt && backupOpt.isHide || null,
|
|
2411
|
+
isDisabled: backupOpt && backupOpt.isDisabled || null,
|
|
2412
|
+
isInvalid: null
|
|
2482
2413
|
});
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
|
|
2417
|
+
if (eleData.opts.length) {
|
|
2418
|
+
if (eleData.opts.every(function (ele) {
|
|
2419
|
+
return ele.val != eleData.value;
|
|
2420
|
+
})) {
|
|
2421
|
+
//交费期间,默认取最后一个元素的值;其他元素,默认取第一个元素。By Lizh 2020.4.10, From hyw
|
|
2422
|
+
if (eleData.key === 'pPeriod') {
|
|
2423
|
+
var filterOpts = eleData.opts.filter(function (opt) {
|
|
2424
|
+
return !opt.isHide && !opt.isDisabled;
|
|
2425
|
+
});
|
|
2483
2426
|
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
return ele.val != eleData.value;
|
|
2487
|
-
})) {
|
|
2488
|
-
//交费期间,默认取最后一个元素的值;其他元素,默认取第一个元素。By Lizh 2020.4.10, From hyw
|
|
2489
|
-
if (eleData.key === 'pPeriod') {
|
|
2490
|
-
var filterOpts = eleData.opts.filter(function (opt) {
|
|
2491
|
-
return !opt.isHide && !opt.isDisabled;
|
|
2492
|
-
});
|
|
2493
|
-
|
|
2494
|
-
if (filterOpts.length) {
|
|
2495
|
-
eleData.value = eleData.opts[filterOpts.length - 1].val;
|
|
2496
|
-
}
|
|
2497
|
-
} else {
|
|
2498
|
-
eleData.value = eleData.opts[0].val;
|
|
2499
|
-
}
|
|
2427
|
+
if (filterOpts.length) {
|
|
2428
|
+
eleData.value = eleData.opts[filterOpts.length - 1].val;
|
|
2500
2429
|
}
|
|
2501
2430
|
} else {
|
|
2502
|
-
|
|
2503
|
-
delete eleData.opts;
|
|
2431
|
+
eleData.value = eleData.opts[0].val;
|
|
2504
2432
|
}
|
|
2505
|
-
}
|
|
2433
|
+
}
|
|
2434
|
+
} else {
|
|
2435
|
+
// 没有选项时,删除opts
|
|
2436
|
+
delete eleData.opts;
|
|
2437
|
+
}
|
|
2438
|
+
} // 提定下一个元素的限制条件
|
|
2439
|
+
|
|
2506
2440
|
|
|
2441
|
+
curCondition = eleCondi.find(function (eleCondi) {
|
|
2442
|
+
return eleCondi.value === eleData.value;
|
|
2443
|
+
}); // 如果元素的value不存在限制条件。则遍历上一个元素,重新设置上一元素的值,并取对应的限制条件。By Lizao@2020.11.24
|
|
2507
2444
|
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2445
|
+
var eleIndex = ins.eleOrderList.findIndex(function (ele) {
|
|
2446
|
+
return ele.key === eleData.key;
|
|
2447
|
+
});
|
|
2511
2448
|
|
|
2512
|
-
|
|
2513
|
-
|
|
2449
|
+
if (!curCondition && backupCondi && eleData && eleIndex >= 1) {
|
|
2450
|
+
var preCondi = backupCondi.find(function (preCondi) {
|
|
2451
|
+
return preCondi[eleData.key] && preCondi[eleData.key].some(function (condi) {
|
|
2452
|
+
return condi.value === eleData.value;
|
|
2514
2453
|
});
|
|
2454
|
+
});
|
|
2515
2455
|
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
});
|
|
2456
|
+
if (preCondi) {
|
|
2457
|
+
curCondition = preCondi[eleData.key];
|
|
2458
|
+
ins.eleOrderList[eleIndex - 1].value = preCondi.value;
|
|
2459
|
+
}
|
|
2460
|
+
} // 如果当前元素是隐藏的且不可修改,则重新设置上一元素的选项(只取包含当前元素值的选项)。By Lizao@2020.11.24
|
|
2522
2461
|
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
if (curCondition && condi[eleData.key] && condi[eleData.key].some(function (c) {
|
|
2537
|
-
return c.value == eleData.value;
|
|
2538
|
-
})) {
|
|
2539
|
-
opts.push({
|
|
2540
|
-
val: condi.value,
|
|
2541
|
-
desc: condi.desc
|
|
2542
|
-
});
|
|
2543
|
-
}
|
|
2462
|
+
|
|
2463
|
+
if (eleData && eleData.isHide && !eleData.isDisabled && eleIndex >= 1 && backupCondi) {
|
|
2464
|
+
var preEleData = ins.eleOrderList[eleIndex - 1];
|
|
2465
|
+
|
|
2466
|
+
if (preEleData && preEleData.opts && preEleData.opts.length) {
|
|
2467
|
+
var opts = [];
|
|
2468
|
+
backupCondi.forEach(function (condi) {
|
|
2469
|
+
if (curCondition && condi[eleData.key] && condi[eleData.key].some(function (c) {
|
|
2470
|
+
return c.value == eleData.value;
|
|
2471
|
+
})) {
|
|
2472
|
+
opts.push({
|
|
2473
|
+
val: condi.value,
|
|
2474
|
+
desc: condi.desc
|
|
2544
2475
|
});
|
|
2545
|
-
preEleData.opts = opts;
|
|
2546
2476
|
}
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
backupCondi = eleCondi;
|
|
2550
|
-
} else {
|
|
2551
|
-
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
2552
|
-
curCondition = null;
|
|
2477
|
+
});
|
|
2478
|
+
preEleData.opts = opts;
|
|
2553
2479
|
}
|
|
2554
|
-
}
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
backupCondi = eleCondi;
|
|
2483
|
+
} else {
|
|
2484
|
+
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
2485
|
+
curCondition = null;
|
|
2555
2486
|
}
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
2560
|
-
}
|
|
2487
|
+
})();
|
|
2488
|
+
}
|
|
2489
|
+
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
2561
2490
|
});
|
|
2562
2491
|
}
|
|
2563
2492
|
|
|
@@ -2576,36 +2505,42 @@ function productDataHandler(prodData, productVerifyData, personData) {
|
|
|
2576
2505
|
*/
|
|
2577
2506
|
|
|
2578
2507
|
function setCommonInfo(prodData) {
|
|
2579
|
-
if (prodData
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
eleOrderList: []
|
|
2583
|
-
};
|
|
2584
|
-
prodData.mulInsOrderList.forEach(function (ins) {
|
|
2585
|
-
if (ins.eleOrderList) {
|
|
2586
|
-
ins.eleOrderList.forEach(function (ele) {
|
|
2587
|
-
if (ele.common && common.eleOrderList.every(function (e) {
|
|
2588
|
-
return e.key !== ele.key;
|
|
2589
|
-
})) {
|
|
2590
|
-
common.eleOrderList.push(ele);
|
|
2591
|
-
}
|
|
2592
|
-
});
|
|
2593
|
-
ins.eleOrderList = ins.eleOrderList.filter(function (ele) {
|
|
2594
|
-
return !ele.common;
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
}); // 把通用信息当作一个险种,做为产品险种列表的第一个险种
|
|
2508
|
+
if (!prodData || !prodData.mulInsOrderList) {
|
|
2509
|
+
return prodData;
|
|
2510
|
+
}
|
|
2598
2511
|
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2512
|
+
var common = {
|
|
2513
|
+
key: 'common',
|
|
2514
|
+
eleOrderList: []
|
|
2515
|
+
};
|
|
2516
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
2517
|
+
if (!ins.eleOrderList) {
|
|
2518
|
+
return;
|
|
2519
|
+
}
|
|
2604
2520
|
|
|
2605
|
-
|
|
2606
|
-
|
|
2521
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
2522
|
+
if (ele.common && common.eleOrderList.every(function (e) {
|
|
2523
|
+
return e.key !== ele.key;
|
|
2524
|
+
})) {
|
|
2525
|
+
common.eleOrderList.push(ele);
|
|
2607
2526
|
}
|
|
2608
|
-
}
|
|
2527
|
+
});
|
|
2528
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (ele) {
|
|
2529
|
+
return !ele.common;
|
|
2530
|
+
});
|
|
2531
|
+
}); // 把通用信息当作一个险种,做为产品险种列表的第一个险种
|
|
2532
|
+
|
|
2533
|
+
if (!common.eleOrderList.length) {
|
|
2534
|
+
return prodData;
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
2538
|
+
return ins.key !== 'common';
|
|
2539
|
+
});
|
|
2540
|
+
prodData.mulInsOrderList.unshift(common); // 通用信息,与跟随其后的险种不留间距
|
|
2541
|
+
|
|
2542
|
+
if (prodData.mulInsOrderList[1]) {
|
|
2543
|
+
prodData.mulInsOrderList[1].isFollowing = true;
|
|
2609
2544
|
}
|
|
2610
2545
|
|
|
2611
2546
|
return prodData;
|
|
@@ -2626,176 +2561,178 @@ function setGroupInsurance(prodData) {
|
|
|
2626
2561
|
return !!ins.groupKey;
|
|
2627
2562
|
});
|
|
2628
2563
|
|
|
2629
|
-
if (groupInsuranceList
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
}); //清空险种列表中的已有的险种组合
|
|
2633
|
-
|
|
2634
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
2635
|
-
return !ins.isGroup;
|
|
2636
|
-
});
|
|
2637
|
-
var nGroupInsList = {};
|
|
2638
|
-
groupInsuranceList.forEach(function (ins) {
|
|
2639
|
-
//多险种选一,或多险种选多。生成一个组合,如多个险种合成豁免险
|
|
2640
|
-
// ins.isCheckbox = true
|
|
2641
|
-
var oTitle, oInsuranceId;
|
|
2642
|
-
var oGroupInsData = oGroupInsList.find(function (gIns) {
|
|
2643
|
-
return gIns.key === ins.groupKey;
|
|
2644
|
-
});
|
|
2564
|
+
if (!groupInsuranceList || !groupInsuranceList.length) {
|
|
2565
|
+
return prodData;
|
|
2566
|
+
}
|
|
2645
2567
|
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
});
|
|
2650
|
-
oInsuranceId = oGroupInsData.eleOrderList.find(function (e) {
|
|
2651
|
-
return e.key === 'insuranceId';
|
|
2652
|
-
});
|
|
2653
|
-
}
|
|
2568
|
+
var oGroupInsList = prodData.mulInsOrderList.filter(function (ins) {
|
|
2569
|
+
return ins.isGroup;
|
|
2570
|
+
}); //清空险种列表中的已有的险种组合
|
|
2654
2571
|
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
}, {
|
|
2667
|
-
key: 'insuranceId',
|
|
2668
|
-
value: oInsuranceId && oInsuranceId.value || (ins.isCheckbox ? [] : ''),
|
|
2669
|
-
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
2670
|
-
opts: []
|
|
2671
|
-
}]
|
|
2672
|
-
}; // 当险种转换成险种组合的选项
|
|
2572
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
2573
|
+
return !ins.isGroup;
|
|
2574
|
+
});
|
|
2575
|
+
var nGroupInsList = {};
|
|
2576
|
+
groupInsuranceList.forEach(function (ins) {
|
|
2577
|
+
//多险种选一,或多险种选多。生成一个组合,如多个险种合成豁免险
|
|
2578
|
+
// ins.isCheckbox = true
|
|
2579
|
+
var oTitle, oInsuranceId;
|
|
2580
|
+
var oGroupInsData = oGroupInsList.find(function (gIns) {
|
|
2581
|
+
return gIns.key === ins.groupKey;
|
|
2582
|
+
});
|
|
2673
2583
|
|
|
2674
|
-
|
|
2584
|
+
if (oGroupInsData) {
|
|
2585
|
+
oTitle = oGroupInsData.eleOrderList.find(function (e) {
|
|
2675
2586
|
return e.key === 'title';
|
|
2676
2587
|
});
|
|
2677
|
-
|
|
2588
|
+
oInsuranceId = oGroupInsData.eleOrderList.find(function (e) {
|
|
2678
2589
|
return e.key === 'insuranceId';
|
|
2679
2590
|
});
|
|
2680
|
-
|
|
2681
|
-
val: ins.key,
|
|
2682
|
-
desc: eleTitle.labelName,
|
|
2683
|
-
isDisabled: eleTitle.isDisabled
|
|
2684
|
-
});
|
|
2685
|
-
}); // 处理组合险中的逻辑,并加入到产品险种列表中
|
|
2591
|
+
}
|
|
2686
2592
|
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2593
|
+
nGroupInsList[ins.groupKey] = nGroupInsList[ins.groupKey] || {
|
|
2594
|
+
key: ins.groupKey,
|
|
2595
|
+
name: ins.groupName,
|
|
2596
|
+
huomian: ins.huomian,
|
|
2597
|
+
isGroup: true,
|
|
2598
|
+
eleOrderList: [{
|
|
2599
|
+
key: 'title',
|
|
2600
|
+
value: oTitle && oTitle.value || false,
|
|
2601
|
+
isDisabled: false,
|
|
2602
|
+
componentName: 'cmCommonTitle',
|
|
2603
|
+
labelName: ins.groupName
|
|
2604
|
+
}, {
|
|
2605
|
+
key: 'insuranceId',
|
|
2606
|
+
value: oInsuranceId && oInsuranceId.value || (ins.isCheckbox ? [] : ''),
|
|
2607
|
+
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
2608
|
+
opts: []
|
|
2609
|
+
}]
|
|
2610
|
+
}; // 当险种转换成险种组合的选项
|
|
2611
|
+
|
|
2612
|
+
var eleTitle = ins.eleOrderList.find(function (e) {
|
|
2613
|
+
return e.key === 'title';
|
|
2614
|
+
});
|
|
2615
|
+
var nInsuranceId = nGroupInsList[ins.groupKey].eleOrderList.find(function (e) {
|
|
2616
|
+
return e.key === 'insuranceId';
|
|
2617
|
+
});
|
|
2618
|
+
nInsuranceId.opts.push({
|
|
2619
|
+
val: ins.key,
|
|
2620
|
+
desc: eleTitle.labelName,
|
|
2621
|
+
isDisabled: eleTitle.isDisabled
|
|
2622
|
+
});
|
|
2623
|
+
}); // 处理组合险中的逻辑,并加入到产品险种列表中
|
|
2694
2624
|
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2625
|
+
var _loop = function _loop(k) {
|
|
2626
|
+
var nGroupTitle = nGroupInsList[k].eleOrderList.find(function (e) {
|
|
2627
|
+
return e.key === 'title';
|
|
2628
|
+
});
|
|
2629
|
+
var nGroupInsuranceId = nGroupInsList[k].eleOrderList.find(function (e) {
|
|
2630
|
+
return e.key === 'insuranceId';
|
|
2631
|
+
});
|
|
2632
|
+
|
|
2633
|
+
if (nGroupTitle && nGroupInsuranceId) {
|
|
2634
|
+
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
2635
|
+
// 所有险种都不可选,则组合险不可修改且不选中。否则,组合险种可选
|
|
2636
|
+
if (nGroupInsuranceId.opts.every(function (opt) {
|
|
2637
|
+
return !!opt.isDisabled;
|
|
2638
|
+
})) {
|
|
2639
|
+
nGroupTitle.value = false;
|
|
2640
|
+
nGroupTitle.isDisabled = true;
|
|
2641
|
+
} else {
|
|
2642
|
+
nGroupTitle.isDisabled = false;
|
|
2706
2643
|
}
|
|
2644
|
+
}
|
|
2707
2645
|
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2646
|
+
var groupInsList = prodData.mulInsOrderList.filter(function (ins) {
|
|
2647
|
+
return ins.groupKey == k;
|
|
2648
|
+
});
|
|
2711
2649
|
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2650
|
+
if (groupInsList && groupInsList.length) {
|
|
2651
|
+
// 如果组合险中有一款是必选的,则整个组合险为选中状态
|
|
2652
|
+
if (groupInsList.some(function (ins) {
|
|
2653
|
+
var subTitle = ins.eleOrderList.find(function (e) {
|
|
2654
|
+
return e.key === 'title';
|
|
2655
|
+
});
|
|
2656
|
+
return ins.required && subTitle && !subTitle.isDisabled;
|
|
2657
|
+
})) {
|
|
2658
|
+
nGroupTitle.value = true;
|
|
2659
|
+
nGroupTitle.isDisabled = true;
|
|
2660
|
+
} // 初始化时,设置组合险默认值
|
|
2723
2661
|
|
|
2724
2662
|
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
});
|
|
2729
|
-
return subTitle && !subTitle.isDisabled;
|
|
2663
|
+
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
2664
|
+
var subTitle = ins.eleOrderList.find(function (e) {
|
|
2665
|
+
return e.key === 'title';
|
|
2730
2666
|
});
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
return
|
|
2667
|
+
return subTitle && !subTitle.isDisabled;
|
|
2668
|
+
});
|
|
2669
|
+
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
2670
|
+
var subTitle = ins.eleOrderList.find(function (e) {
|
|
2671
|
+
return e.key === 'title';
|
|
2736
2672
|
});
|
|
2673
|
+
return subTitle && subTitle.value;
|
|
2674
|
+
});
|
|
2737
2675
|
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
}
|
|
2676
|
+
if (!nGroupInsuranceId.value) {
|
|
2677
|
+
if (checkedInsurances) {
|
|
2678
|
+
nGroupInsuranceId.value = checkedInsurances.key;
|
|
2679
|
+
nGroupTitle.value = true;
|
|
2680
|
+
} else if (nGroupTitle.value) {
|
|
2681
|
+
if (notDisabledInsurances[0]) {
|
|
2682
|
+
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
2746
2683
|
}
|
|
2747
2684
|
}
|
|
2748
2685
|
}
|
|
2749
2686
|
}
|
|
2687
|
+
}
|
|
2750
2688
|
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
} else {
|
|
2760
|
-
var opt = nGroupInsuranceId.opts.find(function (o) {
|
|
2761
|
-
return o.val === nGroupInsuranceId.value;
|
|
2689
|
+
if (nGroupInsuranceId) {
|
|
2690
|
+
if (nGroupInsuranceId.value) {
|
|
2691
|
+
if (nGroupInsuranceId.value.constructor === Array) {
|
|
2692
|
+
if (nGroupInsuranceId.opts) {
|
|
2693
|
+
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) {
|
|
2694
|
+
return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled;
|
|
2762
2695
|
});
|
|
2696
|
+
}
|
|
2697
|
+
} else {
|
|
2698
|
+
var opt = nGroupInsuranceId.opts.find(function (o) {
|
|
2699
|
+
return o.val === nGroupInsuranceId.value;
|
|
2700
|
+
});
|
|
2763
2701
|
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
}
|
|
2702
|
+
if (opt && opt.isDisabled) {
|
|
2703
|
+
nGroupInsuranceId.value = '';
|
|
2767
2704
|
}
|
|
2768
2705
|
}
|
|
2706
|
+
}
|
|
2769
2707
|
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2708
|
+
if (nGroupInsuranceId.value) {
|
|
2709
|
+
var checkedIns = prodData.mulInsOrderList.find(function (ins) {
|
|
2710
|
+
return ins.key === nGroupInsuranceId.value;
|
|
2711
|
+
});
|
|
2774
2712
|
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
}
|
|
2713
|
+
if (checkedIns) {
|
|
2714
|
+
//将当前选中险种的部分数据复制到组合险中
|
|
2715
|
+
for (var ck in checkedIns) {
|
|
2716
|
+
if (['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name'].indexOf(ck) === -1) {
|
|
2717
|
+
// 定义组件险中的元素:自身eleOrderList + 所选险种的eleOrderList(不包含标题)
|
|
2718
|
+
if (ck === 'eleOrderList') {
|
|
2719
|
+
nGroupInsList[k][ck] = nGroupInsList[k][ck].concat(checkedIns[ck].filter(function (ele) {
|
|
2720
|
+
return ele.key != 'title';
|
|
2721
|
+
}));
|
|
2722
|
+
} else {
|
|
2723
|
+
nGroupInsList[k][ck] = checkedIns[ck];
|
|
2787
2724
|
}
|
|
2788
2725
|
}
|
|
2789
2726
|
}
|
|
2790
2727
|
}
|
|
2791
2728
|
}
|
|
2729
|
+
}
|
|
2792
2730
|
|
|
2793
|
-
|
|
2794
|
-
|
|
2731
|
+
prodData.mulInsOrderList.push(nGroupInsList[k]);
|
|
2732
|
+
};
|
|
2795
2733
|
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
}
|
|
2734
|
+
for (var k in nGroupInsList) {
|
|
2735
|
+
_loop(k);
|
|
2799
2736
|
}
|
|
2800
2737
|
|
|
2801
2738
|
return prodData;
|
|
@@ -3154,7 +3091,7 @@ module.exports = function bind(fn, thisArg) {
|
|
|
3154
3091
|
"use strict";
|
|
3155
3092
|
|
|
3156
3093
|
|
|
3157
|
-
var utils = __webpack_require__(
|
|
3094
|
+
var utils = __webpack_require__(5);
|
|
3158
3095
|
|
|
3159
3096
|
function encode(val) {
|
|
3160
3097
|
return encodeURIComponent(val).
|
|
@@ -3243,8 +3180,8 @@ module.exports = function isCancel(value) {
|
|
|
3243
3180
|
"use strict";
|
|
3244
3181
|
/* WEBPACK VAR INJECTION */(function(process) {
|
|
3245
3182
|
|
|
3246
|
-
var utils = __webpack_require__(
|
|
3247
|
-
var normalizeHeaderName = __webpack_require__(
|
|
3183
|
+
var utils = __webpack_require__(5);
|
|
3184
|
+
var normalizeHeaderName = __webpack_require__(37);
|
|
3248
3185
|
|
|
3249
3186
|
var DEFAULT_CONTENT_TYPE = {
|
|
3250
3187
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -3340,7 +3277,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
3340
3277
|
|
|
3341
3278
|
module.exports = defaults;
|
|
3342
3279
|
|
|
3343
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
3280
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(36)))
|
|
3344
3281
|
|
|
3345
3282
|
/***/ }),
|
|
3346
3283
|
/* 19 */
|
|
@@ -3349,13 +3286,13 @@ module.exports = defaults;
|
|
|
3349
3286
|
"use strict";
|
|
3350
3287
|
|
|
3351
3288
|
|
|
3352
|
-
var utils = __webpack_require__(
|
|
3353
|
-
var settle = __webpack_require__(
|
|
3354
|
-
var cookies = __webpack_require__(
|
|
3289
|
+
var utils = __webpack_require__(5);
|
|
3290
|
+
var settle = __webpack_require__(38);
|
|
3291
|
+
var cookies = __webpack_require__(40);
|
|
3355
3292
|
var buildURL = __webpack_require__(16);
|
|
3356
|
-
var buildFullPath = __webpack_require__(
|
|
3357
|
-
var parseHeaders = __webpack_require__(
|
|
3358
|
-
var isURLSameOrigin = __webpack_require__(
|
|
3293
|
+
var buildFullPath = __webpack_require__(41);
|
|
3294
|
+
var parseHeaders = __webpack_require__(44);
|
|
3295
|
+
var isURLSameOrigin = __webpack_require__(45);
|
|
3359
3296
|
var createError = __webpack_require__(20);
|
|
3360
3297
|
|
|
3361
3298
|
module.exports = function xhrAdapter(config) {
|
|
@@ -3542,7 +3479,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
3542
3479
|
"use strict";
|
|
3543
3480
|
|
|
3544
3481
|
|
|
3545
|
-
var enhanceError = __webpack_require__(
|
|
3482
|
+
var enhanceError = __webpack_require__(39);
|
|
3546
3483
|
|
|
3547
3484
|
/**
|
|
3548
3485
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -3567,7 +3504,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
3567
3504
|
"use strict";
|
|
3568
3505
|
|
|
3569
3506
|
|
|
3570
|
-
var utils = __webpack_require__(
|
|
3507
|
+
var utils = __webpack_require__(5);
|
|
3571
3508
|
|
|
3572
3509
|
/**
|
|
3573
3510
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -3684,13 +3621,13 @@ module.exports = Cancel;
|
|
|
3684
3621
|
/* 23 */
|
|
3685
3622
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3686
3623
|
|
|
3687
|
-
var arrayWithoutHoles = __webpack_require__(
|
|
3624
|
+
var arrayWithoutHoles = __webpack_require__(26);
|
|
3688
3625
|
|
|
3689
|
-
var iterableToArray = __webpack_require__(
|
|
3626
|
+
var iterableToArray = __webpack_require__(27);
|
|
3690
3627
|
|
|
3691
|
-
var unsupportedIterableToArray = __webpack_require__(
|
|
3628
|
+
var unsupportedIterableToArray = __webpack_require__(28);
|
|
3692
3629
|
|
|
3693
|
-
var nonIterableSpread = __webpack_require__(
|
|
3630
|
+
var nonIterableSpread = __webpack_require__(29);
|
|
3694
3631
|
|
|
3695
3632
|
function _toConsumableArray(arr) {
|
|
3696
3633
|
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
@@ -3744,11 +3681,10 @@ module.exports = _asyncToGenerator;
|
|
|
3744
3681
|
/* 25 */
|
|
3745
3682
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3746
3683
|
|
|
3747
|
-
module.exports = __webpack_require__(
|
|
3684
|
+
module.exports = __webpack_require__(31);
|
|
3748
3685
|
|
|
3749
3686
|
/***/ }),
|
|
3750
|
-
/* 26
|
|
3751
|
-
/* 27 */
|
|
3687
|
+
/* 26 */
|
|
3752
3688
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3753
3689
|
|
|
3754
3690
|
var arrayLikeToArray = __webpack_require__(14);
|
|
@@ -3760,7 +3696,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
3760
3696
|
module.exports = _arrayWithoutHoles;
|
|
3761
3697
|
|
|
3762
3698
|
/***/ }),
|
|
3763
|
-
/*
|
|
3699
|
+
/* 27 */
|
|
3764
3700
|
/***/ (function(module, exports) {
|
|
3765
3701
|
|
|
3766
3702
|
function _iterableToArray(iter) {
|
|
@@ -3770,7 +3706,7 @@ function _iterableToArray(iter) {
|
|
|
3770
3706
|
module.exports = _iterableToArray;
|
|
3771
3707
|
|
|
3772
3708
|
/***/ }),
|
|
3773
|
-
/*
|
|
3709
|
+
/* 28 */
|
|
3774
3710
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3775
3711
|
|
|
3776
3712
|
var arrayLikeToArray = __webpack_require__(14);
|
|
@@ -3787,7 +3723,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
3787
3723
|
module.exports = _unsupportedIterableToArray;
|
|
3788
3724
|
|
|
3789
3725
|
/***/ }),
|
|
3790
|
-
/*
|
|
3726
|
+
/* 29 */
|
|
3791
3727
|
/***/ (function(module, exports) {
|
|
3792
3728
|
|
|
3793
3729
|
function _nonIterableSpread() {
|
|
@@ -3797,7 +3733,7 @@ function _nonIterableSpread() {
|
|
|
3797
3733
|
module.exports = _nonIterableSpread;
|
|
3798
3734
|
|
|
3799
3735
|
/***/ }),
|
|
3800
|
-
/*
|
|
3736
|
+
/* 30 */
|
|
3801
3737
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3802
3738
|
|
|
3803
3739
|
/**
|
|
@@ -4551,15 +4487,15 @@ try {
|
|
|
4551
4487
|
|
|
4552
4488
|
|
|
4553
4489
|
/***/ }),
|
|
4554
|
-
/*
|
|
4490
|
+
/* 31 */
|
|
4555
4491
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4556
4492
|
|
|
4557
4493
|
"use strict";
|
|
4558
4494
|
|
|
4559
4495
|
|
|
4560
|
-
var utils = __webpack_require__(
|
|
4496
|
+
var utils = __webpack_require__(5);
|
|
4561
4497
|
var bind = __webpack_require__(15);
|
|
4562
|
-
var Axios = __webpack_require__(
|
|
4498
|
+
var Axios = __webpack_require__(32);
|
|
4563
4499
|
var mergeConfig = __webpack_require__(21);
|
|
4564
4500
|
var defaults = __webpack_require__(18);
|
|
4565
4501
|
|
|
@@ -4595,14 +4531,14 @@ axios.create = function create(instanceConfig) {
|
|
|
4595
4531
|
|
|
4596
4532
|
// Expose Cancel & CancelToken
|
|
4597
4533
|
axios.Cancel = __webpack_require__(22);
|
|
4598
|
-
axios.CancelToken = __webpack_require__(
|
|
4534
|
+
axios.CancelToken = __webpack_require__(46);
|
|
4599
4535
|
axios.isCancel = __webpack_require__(17);
|
|
4600
4536
|
|
|
4601
4537
|
// Expose all/spread
|
|
4602
4538
|
axios.all = function all(promises) {
|
|
4603
4539
|
return Promise.all(promises);
|
|
4604
4540
|
};
|
|
4605
|
-
axios.spread = __webpack_require__(
|
|
4541
|
+
axios.spread = __webpack_require__(47);
|
|
4606
4542
|
|
|
4607
4543
|
module.exports = axios;
|
|
4608
4544
|
|
|
@@ -4611,16 +4547,16 @@ module.exports.default = axios;
|
|
|
4611
4547
|
|
|
4612
4548
|
|
|
4613
4549
|
/***/ }),
|
|
4614
|
-
/*
|
|
4550
|
+
/* 32 */
|
|
4615
4551
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4616
4552
|
|
|
4617
4553
|
"use strict";
|
|
4618
4554
|
|
|
4619
4555
|
|
|
4620
|
-
var utils = __webpack_require__(
|
|
4556
|
+
var utils = __webpack_require__(5);
|
|
4621
4557
|
var buildURL = __webpack_require__(16);
|
|
4622
|
-
var InterceptorManager = __webpack_require__(
|
|
4623
|
-
var dispatchRequest = __webpack_require__(
|
|
4558
|
+
var InterceptorManager = __webpack_require__(33);
|
|
4559
|
+
var dispatchRequest = __webpack_require__(34);
|
|
4624
4560
|
var mergeConfig = __webpack_require__(21);
|
|
4625
4561
|
|
|
4626
4562
|
/**
|
|
@@ -4712,13 +4648,13 @@ module.exports = Axios;
|
|
|
4712
4648
|
|
|
4713
4649
|
|
|
4714
4650
|
/***/ }),
|
|
4715
|
-
/*
|
|
4651
|
+
/* 33 */
|
|
4716
4652
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4717
4653
|
|
|
4718
4654
|
"use strict";
|
|
4719
4655
|
|
|
4720
4656
|
|
|
4721
|
-
var utils = __webpack_require__(
|
|
4657
|
+
var utils = __webpack_require__(5);
|
|
4722
4658
|
|
|
4723
4659
|
function InterceptorManager() {
|
|
4724
4660
|
this.handlers = [];
|
|
@@ -4771,14 +4707,14 @@ module.exports = InterceptorManager;
|
|
|
4771
4707
|
|
|
4772
4708
|
|
|
4773
4709
|
/***/ }),
|
|
4774
|
-
/*
|
|
4710
|
+
/* 34 */
|
|
4775
4711
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4776
4712
|
|
|
4777
4713
|
"use strict";
|
|
4778
4714
|
|
|
4779
4715
|
|
|
4780
|
-
var utils = __webpack_require__(
|
|
4781
|
-
var transformData = __webpack_require__(
|
|
4716
|
+
var utils = __webpack_require__(5);
|
|
4717
|
+
var transformData = __webpack_require__(35);
|
|
4782
4718
|
var isCancel = __webpack_require__(17);
|
|
4783
4719
|
var defaults = __webpack_require__(18);
|
|
4784
4720
|
|
|
@@ -4857,13 +4793,13 @@ module.exports = function dispatchRequest(config) {
|
|
|
4857
4793
|
|
|
4858
4794
|
|
|
4859
4795
|
/***/ }),
|
|
4860
|
-
/*
|
|
4796
|
+
/* 35 */
|
|
4861
4797
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4862
4798
|
|
|
4863
4799
|
"use strict";
|
|
4864
4800
|
|
|
4865
4801
|
|
|
4866
|
-
var utils = __webpack_require__(
|
|
4802
|
+
var utils = __webpack_require__(5);
|
|
4867
4803
|
|
|
4868
4804
|
/**
|
|
4869
4805
|
* Transform the data for a request or a response
|
|
@@ -4884,7 +4820,7 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
4884
4820
|
|
|
4885
4821
|
|
|
4886
4822
|
/***/ }),
|
|
4887
|
-
/*
|
|
4823
|
+
/* 36 */
|
|
4888
4824
|
/***/ (function(module, exports) {
|
|
4889
4825
|
|
|
4890
4826
|
// shim for using process in browser
|
|
@@ -5074,13 +5010,13 @@ process.umask = function() { return 0; };
|
|
|
5074
5010
|
|
|
5075
5011
|
|
|
5076
5012
|
/***/ }),
|
|
5077
|
-
/*
|
|
5013
|
+
/* 37 */
|
|
5078
5014
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5079
5015
|
|
|
5080
5016
|
"use strict";
|
|
5081
5017
|
|
|
5082
5018
|
|
|
5083
|
-
var utils = __webpack_require__(
|
|
5019
|
+
var utils = __webpack_require__(5);
|
|
5084
5020
|
|
|
5085
5021
|
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
5086
5022
|
utils.forEach(headers, function processHeader(value, name) {
|
|
@@ -5093,7 +5029,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
|
5093
5029
|
|
|
5094
5030
|
|
|
5095
5031
|
/***/ }),
|
|
5096
|
-
/*
|
|
5032
|
+
/* 38 */
|
|
5097
5033
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5098
5034
|
|
|
5099
5035
|
"use strict";
|
|
@@ -5125,7 +5061,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
5125
5061
|
|
|
5126
5062
|
|
|
5127
5063
|
/***/ }),
|
|
5128
|
-
/*
|
|
5064
|
+
/* 39 */
|
|
5129
5065
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5130
5066
|
|
|
5131
5067
|
"use strict";
|
|
@@ -5174,13 +5110,13 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
|
5174
5110
|
|
|
5175
5111
|
|
|
5176
5112
|
/***/ }),
|
|
5177
|
-
/*
|
|
5113
|
+
/* 40 */
|
|
5178
5114
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5179
5115
|
|
|
5180
5116
|
"use strict";
|
|
5181
5117
|
|
|
5182
5118
|
|
|
5183
|
-
var utils = __webpack_require__(
|
|
5119
|
+
var utils = __webpack_require__(5);
|
|
5184
5120
|
|
|
5185
5121
|
module.exports = (
|
|
5186
5122
|
utils.isStandardBrowserEnv() ?
|
|
@@ -5234,14 +5170,14 @@ module.exports = (
|
|
|
5234
5170
|
|
|
5235
5171
|
|
|
5236
5172
|
/***/ }),
|
|
5237
|
-
/*
|
|
5173
|
+
/* 41 */
|
|
5238
5174
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5239
5175
|
|
|
5240
5176
|
"use strict";
|
|
5241
5177
|
|
|
5242
5178
|
|
|
5243
|
-
var isAbsoluteURL = __webpack_require__(
|
|
5244
|
-
var combineURLs = __webpack_require__(
|
|
5179
|
+
var isAbsoluteURL = __webpack_require__(42);
|
|
5180
|
+
var combineURLs = __webpack_require__(43);
|
|
5245
5181
|
|
|
5246
5182
|
/**
|
|
5247
5183
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
@@ -5261,7 +5197,7 @@ module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
|
5261
5197
|
|
|
5262
5198
|
|
|
5263
5199
|
/***/ }),
|
|
5264
|
-
/*
|
|
5200
|
+
/* 42 */
|
|
5265
5201
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5266
5202
|
|
|
5267
5203
|
"use strict";
|
|
@@ -5282,7 +5218,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
5282
5218
|
|
|
5283
5219
|
|
|
5284
5220
|
/***/ }),
|
|
5285
|
-
/*
|
|
5221
|
+
/* 43 */
|
|
5286
5222
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5287
5223
|
|
|
5288
5224
|
"use strict";
|
|
@@ -5303,13 +5239,13 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
|
5303
5239
|
|
|
5304
5240
|
|
|
5305
5241
|
/***/ }),
|
|
5306
|
-
/*
|
|
5242
|
+
/* 44 */
|
|
5307
5243
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5308
5244
|
|
|
5309
5245
|
"use strict";
|
|
5310
5246
|
|
|
5311
5247
|
|
|
5312
|
-
var utils = __webpack_require__(
|
|
5248
|
+
var utils = __webpack_require__(5);
|
|
5313
5249
|
|
|
5314
5250
|
// Headers whose duplicates are ignored by node
|
|
5315
5251
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
@@ -5363,13 +5299,13 @@ module.exports = function parseHeaders(headers) {
|
|
|
5363
5299
|
|
|
5364
5300
|
|
|
5365
5301
|
/***/ }),
|
|
5366
|
-
/*
|
|
5302
|
+
/* 45 */
|
|
5367
5303
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5368
5304
|
|
|
5369
5305
|
"use strict";
|
|
5370
5306
|
|
|
5371
5307
|
|
|
5372
|
-
var utils = __webpack_require__(
|
|
5308
|
+
var utils = __webpack_require__(5);
|
|
5373
5309
|
|
|
5374
5310
|
module.exports = (
|
|
5375
5311
|
utils.isStandardBrowserEnv() ?
|
|
@@ -5438,7 +5374,7 @@ module.exports = (
|
|
|
5438
5374
|
|
|
5439
5375
|
|
|
5440
5376
|
/***/ }),
|
|
5441
|
-
/*
|
|
5377
|
+
/* 46 */
|
|
5442
5378
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5443
5379
|
|
|
5444
5380
|
"use strict";
|
|
@@ -5502,7 +5438,7 @@ module.exports = CancelToken;
|
|
|
5502
5438
|
|
|
5503
5439
|
|
|
5504
5440
|
/***/ }),
|
|
5505
|
-
/*
|
|
5441
|
+
/* 47 */
|
|
5506
5442
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5507
5443
|
|
|
5508
5444
|
"use strict";
|