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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("vue"), require("bxs-ui-vue")) : factory(root["Vue"], root["bxs"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(window, function(
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__4__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // The module cache
|
|
13
13
|
/******/ var installedModules = {};
|
|
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
91
91
|
/******/
|
|
92
92
|
/******/
|
|
93
93
|
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 72);
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ([
|
|
@@ -358,15 +358,6 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
|
358
358
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
359
359
|
|
|
360
360
|
|
|
361
|
-
/*
|
|
362
|
-
* @Description:
|
|
363
|
-
* @Author: lizhao
|
|
364
|
-
* @Date: 2020-09-14 18:26:26
|
|
365
|
-
* @LastEditors: lizhao
|
|
366
|
-
* @LastEditTime: 2020-12-10 16:40:12
|
|
367
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/common.js
|
|
368
|
-
*/
|
|
369
|
-
|
|
370
361
|
/**
|
|
371
362
|
* @Author: lizhao
|
|
372
363
|
* @Date: 2020-12-10 15:43:18
|
|
@@ -411,13 +402,15 @@ function convertEleOrderListToObj(obj) {
|
|
|
411
402
|
function calcTotalBaof(productGroupList) {
|
|
412
403
|
var totalBaof = 0;
|
|
413
404
|
productGroupList.map(function (group) {
|
|
414
|
-
if (
|
|
415
|
-
|
|
416
|
-
if (prod.hadChoice && !prod.hide) {
|
|
417
|
-
totalBaof += prod.totalBaof * 1 || 0;
|
|
418
|
-
}
|
|
419
|
-
});
|
|
405
|
+
if (group.isHide) {
|
|
406
|
+
return;
|
|
420
407
|
}
|
|
408
|
+
|
|
409
|
+
group.prodOrderList.map(function (prod) {
|
|
410
|
+
if (prod.hadChoice && !prod.hide) {
|
|
411
|
+
totalBaof += prod.totalBaof * 1 || 0;
|
|
412
|
+
}
|
|
413
|
+
});
|
|
421
414
|
});
|
|
422
415
|
return totalBaof;
|
|
423
416
|
}
|
|
@@ -575,7 +568,7 @@ __webpack_require__.d(__webpack_exports__, "e", function() { return /* binding *
|
|
|
575
568
|
// UNUSED EXPORTS: Mixins, Inject, InjectReactive, Provide, ProvideReactive, PropSync, Emit, Ref
|
|
576
569
|
|
|
577
570
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
578
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
571
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(3);
|
|
579
572
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default = /*#__PURE__*/__webpack_require__.n(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_);
|
|
580
573
|
|
|
581
574
|
// CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm.js
|
|
@@ -1179,6 +1172,18 @@ function isPromise(obj) {
|
|
|
1179
1172
|
|
|
1180
1173
|
/***/ }),
|
|
1181
1174
|
/* 3 */
|
|
1175
|
+
/***/ (function(module, exports) {
|
|
1176
|
+
|
|
1177
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3__;
|
|
1178
|
+
|
|
1179
|
+
/***/ }),
|
|
1180
|
+
/* 4 */
|
|
1181
|
+
/***/ (function(module, exports) {
|
|
1182
|
+
|
|
1183
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
1184
|
+
|
|
1185
|
+
/***/ }),
|
|
1186
|
+
/* 5 */
|
|
1182
1187
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1183
1188
|
|
|
1184
1189
|
"use strict";
|
|
@@ -1535,18 +1540,6 @@ module.exports = {
|
|
|
1535
1540
|
};
|
|
1536
1541
|
|
|
1537
1542
|
|
|
1538
|
-
/***/ }),
|
|
1539
|
-
/* 4 */
|
|
1540
|
-
/***/ (function(module, exports) {
|
|
1541
|
-
|
|
1542
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
1543
|
-
|
|
1544
|
-
/***/ }),
|
|
1545
|
-
/* 5 */
|
|
1546
|
-
/***/ (function(module, exports) {
|
|
1547
|
-
|
|
1548
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5__;
|
|
1549
|
-
|
|
1550
1543
|
/***/ }),
|
|
1551
1544
|
/* 6 */
|
|
1552
1545
|
/***/ (function(module, exports) {
|
|
@@ -1590,14 +1583,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
1590
1583
|
|
|
1591
1584
|
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; }
|
|
1592
1585
|
|
|
1593
|
-
/*
|
|
1594
|
-
* @Description:
|
|
1595
|
-
* @Author: lizhao
|
|
1596
|
-
* @Date: 2020-11-13 18:28:12
|
|
1597
|
-
* @LastEditors: lizhao
|
|
1598
|
-
* @LastEditTime: 2020-12-10 16:43:10
|
|
1599
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/insurance.js
|
|
1600
|
-
*/
|
|
1601
1586
|
|
|
1602
1587
|
/**
|
|
1603
1588
|
* @Author: lizhao
|
|
@@ -1612,47 +1597,49 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
1612
1597
|
*/
|
|
1613
1598
|
|
|
1614
1599
|
function initInsuranceData(insData) {
|
|
1615
|
-
if (insData
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
case 'title':
|
|
1619
|
-
e.isDisabled = e.isDisabled || null;
|
|
1620
|
-
e.isHide = e.isHide || null;
|
|
1621
|
-
break;
|
|
1600
|
+
if (!insData || !insData.eleOrderList) {
|
|
1601
|
+
return;
|
|
1602
|
+
}
|
|
1622
1603
|
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1604
|
+
insData.eleOrderList.forEach(function (e) {
|
|
1605
|
+
switch (e.key) {
|
|
1606
|
+
case 'title':
|
|
1607
|
+
e.isDisabled = e.isDisabled || null;
|
|
1608
|
+
e.isHide = e.isHide || null;
|
|
1609
|
+
break;
|
|
1626
1610
|
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
}
|
|
1611
|
+
case 'baoe':
|
|
1612
|
+
e.placeholder = e.placeholder || '请输入保额';
|
|
1613
|
+
break;
|
|
1631
1614
|
|
|
1632
|
-
|
|
1633
|
-
|
|
1615
|
+
case 'baof':
|
|
1616
|
+
e.placeholder = e.placeholder || '请输入保费';
|
|
1617
|
+
break;
|
|
1618
|
+
}
|
|
1634
1619
|
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
val: e.optConf[2] && e.optConf[2].valfix ? "".concat(i).concat(e.optConf[2].valfix) : i,
|
|
1638
|
-
desc: e.optConf[2] && e.optConf[2].desc ? e.optConf[2].desc.replace(/{{&&}}/, i) : i
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1620
|
+
if (e.optConf && e.optConf.length) {
|
|
1621
|
+
var options = [];
|
|
1641
1622
|
|
|
1642
|
-
|
|
1623
|
+
for (var i = e.optConf[0]; i < e.optConf[1]; i += e.optConf[2] && e.optConf[2] && e.optConf[2].step || 1) {
|
|
1624
|
+
options.push({
|
|
1625
|
+
val: e.optConf[2] && e.optConf[2].valfix ? "".concat(i).concat(e.optConf[2].valfix) : i,
|
|
1626
|
+
desc: e.optConf[2] && e.optConf[2].desc ? e.optConf[2].desc.replace(/{{&&}}/, i) : i
|
|
1627
|
+
});
|
|
1643
1628
|
}
|
|
1644
1629
|
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1630
|
+
e.opts = options;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
if (e.opts && e.opts.length) {
|
|
1634
|
+
e.opts = e.opts.map(function (o) {
|
|
1635
|
+
return _objectSpread(_objectSpread({}, o), {}, {
|
|
1636
|
+
isHide: o.isHide || null,
|
|
1637
|
+
isDisabled: o.isDisabled || null,
|
|
1638
|
+
isInvalid: o.isInvalid || null
|
|
1652
1639
|
});
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1656
1643
|
}
|
|
1657
1644
|
/**
|
|
1658
1645
|
* @Author: lizhao
|
|
@@ -1667,39 +1654,41 @@ function initInsuranceData(insData) {
|
|
|
1667
1654
|
*/
|
|
1668
1655
|
|
|
1669
1656
|
function insuranceDataHandler(insData, productData) {
|
|
1670
|
-
if (insData
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
}
|
|
1657
|
+
if (!insData || !insData.eleOrderList) {
|
|
1658
|
+
return insData;
|
|
1659
|
+
}
|
|
1674
1660
|
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1661
|
+
if (insData.reduceBaof) {
|
|
1662
|
+
insData.reduceBaofData = insData.reduceBaofData || null;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
insData.eleOrderList.forEach(function (ele) {
|
|
1666
|
+
ele.isDisabled = ele.isDisabled || null;
|
|
1667
|
+
ele.isHide = ele.isHide || null;
|
|
1668
|
+
ele.isIgnoreValidate = ele.isIgnoreValidate || null;
|
|
1669
|
+
ele.rules = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(initElementValidateRules(ele, productData));
|
|
1670
|
+
});
|
|
1671
|
+
var calMethod = insData.eleOrderList.find(function (e) {
|
|
1672
|
+
return e.key === 'calMethod';
|
|
1673
|
+
});
|
|
1674
|
+
var baoe = insData.eleOrderList.find(function (e) {
|
|
1675
|
+
return e.key === 'baoe';
|
|
1676
|
+
});
|
|
1677
|
+
var baof = insData.eleOrderList.find(function (e) {
|
|
1678
|
+
return e.key === 'baof';
|
|
1679
|
+
});
|
|
1680
|
+
var plan = insData.eleOrderList.find(function (e) {
|
|
1681
|
+
return e.key === 'plan';
|
|
1682
|
+
}); // 同时有保额和计划时,若保额被隐藏则显示计划 2019.09.11)
|
|
1693
1683
|
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1684
|
+
if (baoe && plan) {
|
|
1685
|
+
insData.showPlanDesc = baoe.isHide;
|
|
1686
|
+
} // 切换保额保费互算问题 By Lizhao@2020.11.25
|
|
1697
1687
|
|
|
1698
1688
|
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
}
|
|
1689
|
+
if (calMethod && baoe && baof) {
|
|
1690
|
+
baoe.isHide = calMethod.value !== 'baoe2baof';
|
|
1691
|
+
baof.isHide = calMethod.value === 'baoe2baof';
|
|
1703
1692
|
}
|
|
1704
1693
|
|
|
1705
1694
|
return insData;
|
|
@@ -1942,6 +1931,112 @@ function restrictElementsInInsurance(_ref) {
|
|
|
1942
1931
|
/* 8 */
|
|
1943
1932
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1944
1933
|
|
|
1934
|
+
"use strict";
|
|
1935
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
1936
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
1937
|
+
|
|
1938
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
1939
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
1940
|
+
// be included in the final webpack user bundle.
|
|
1941
|
+
|
|
1942
|
+
function normalizeComponent (
|
|
1943
|
+
scriptExports,
|
|
1944
|
+
render,
|
|
1945
|
+
staticRenderFns,
|
|
1946
|
+
functionalTemplate,
|
|
1947
|
+
injectStyles,
|
|
1948
|
+
scopeId,
|
|
1949
|
+
moduleIdentifier, /* server only */
|
|
1950
|
+
shadowMode /* vue-cli only */
|
|
1951
|
+
) {
|
|
1952
|
+
// Vue.extend constructor export interop
|
|
1953
|
+
var options = typeof scriptExports === 'function'
|
|
1954
|
+
? scriptExports.options
|
|
1955
|
+
: scriptExports
|
|
1956
|
+
|
|
1957
|
+
// render functions
|
|
1958
|
+
if (render) {
|
|
1959
|
+
options.render = render
|
|
1960
|
+
options.staticRenderFns = staticRenderFns
|
|
1961
|
+
options._compiled = true
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
// functional template
|
|
1965
|
+
if (functionalTemplate) {
|
|
1966
|
+
options.functional = true
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
// scopedId
|
|
1970
|
+
if (scopeId) {
|
|
1971
|
+
options._scopeId = 'data-v-' + scopeId
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
var hook
|
|
1975
|
+
if (moduleIdentifier) { // server build
|
|
1976
|
+
hook = function (context) {
|
|
1977
|
+
// 2.3 injection
|
|
1978
|
+
context =
|
|
1979
|
+
context || // cached call
|
|
1980
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1981
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
1982
|
+
// 2.2 with runInNewContext: true
|
|
1983
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1984
|
+
context = __VUE_SSR_CONTEXT__
|
|
1985
|
+
}
|
|
1986
|
+
// inject component styles
|
|
1987
|
+
if (injectStyles) {
|
|
1988
|
+
injectStyles.call(this, context)
|
|
1989
|
+
}
|
|
1990
|
+
// register component module identifier for async chunk inferrence
|
|
1991
|
+
if (context && context._registeredComponents) {
|
|
1992
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
// used by ssr in case component is cached and beforeCreate
|
|
1996
|
+
// never gets called
|
|
1997
|
+
options._ssrRegister = hook
|
|
1998
|
+
} else if (injectStyles) {
|
|
1999
|
+
hook = shadowMode
|
|
2000
|
+
? function () {
|
|
2001
|
+
injectStyles.call(
|
|
2002
|
+
this,
|
|
2003
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
2004
|
+
)
|
|
2005
|
+
}
|
|
2006
|
+
: injectStyles
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
if (hook) {
|
|
2010
|
+
if (options.functional) {
|
|
2011
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
2012
|
+
// go through the normalizer
|
|
2013
|
+
options._injectStyles = hook
|
|
2014
|
+
// register for functional component in vue file
|
|
2015
|
+
var originalRender = options.render
|
|
2016
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
2017
|
+
hook.call(context)
|
|
2018
|
+
return originalRender(h, context)
|
|
2019
|
+
}
|
|
2020
|
+
} else {
|
|
2021
|
+
// inject component registration as beforeCreate hook
|
|
2022
|
+
var existing = options.beforeCreate
|
|
2023
|
+
options.beforeCreate = existing
|
|
2024
|
+
? [].concat(existing, hook)
|
|
2025
|
+
: [hook]
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
return {
|
|
2030
|
+
exports: scriptExports,
|
|
2031
|
+
options: options
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
/***/ }),
|
|
2037
|
+
/* 9 */
|
|
2038
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2039
|
+
|
|
1945
2040
|
"use strict";
|
|
1946
2041
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return initPersonData; });
|
|
1947
2042
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return personDataHandler; });
|
|
@@ -1949,14 +2044,6 @@ function restrictElementsInInsurance(_ref) {
|
|
|
1949
2044
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setPersonAgeOptions; });
|
|
1950
2045
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return convertPersonData; });
|
|
1951
2046
|
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
1952
|
-
/*
|
|
1953
|
-
* @Description:
|
|
1954
|
-
* @Author: lizhao
|
|
1955
|
-
* @Date: 2020-09-30 10:37:28
|
|
1956
|
-
* @LastEditors: lizhao
|
|
1957
|
-
* @LastEditTime: 2020-12-22 11:15:46
|
|
1958
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/person.js
|
|
1959
|
-
*/
|
|
1960
2047
|
|
|
1961
2048
|
/**
|
|
1962
2049
|
* @Author: lizhao
|
|
@@ -1975,132 +2062,138 @@ function restrictElementsInInsurance(_ref) {
|
|
|
1975
2062
|
function initPersonData(inputData, verifyData) {
|
|
1976
2063
|
var personData = inputData.personData;
|
|
1977
2064
|
|
|
1978
|
-
if (personData
|
|
1979
|
-
|
|
2065
|
+
if (!personData || !personData.personOrderList) {
|
|
2066
|
+
return;
|
|
2067
|
+
}
|
|
1980
2068
|
|
|
1981
|
-
|
|
1982
|
-
personOrderList.forEach(function (person) {
|
|
1983
|
-
if (person.eleOrderList) {
|
|
1984
|
-
// 投保人添加元素:投被保人是同一人
|
|
1985
|
-
if (person.key === 'applicantInfo') {
|
|
1986
|
-
if (person.eleOrderList.every(function (e) {
|
|
1987
|
-
return e.key !== 'applicantAndInsuredSame';
|
|
1988
|
-
})) {
|
|
1989
|
-
person.eleOrderList.splice(1, 0, {
|
|
1990
|
-
key: 'applicantAndInsuredSame',
|
|
1991
|
-
value: 0,
|
|
1992
|
-
label: '投被保人',
|
|
1993
|
-
componentName: 'cmCommonRadio',
|
|
1994
|
-
options: [{
|
|
1995
|
-
val: 0,
|
|
1996
|
-
desc: '非同一人'
|
|
1997
|
-
}, {
|
|
1998
|
-
val: 1,
|
|
1999
|
-
desc: '是同一人'
|
|
2000
|
-
}]
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
} // 添加元素:生日
|
|
2069
|
+
var personOrderList = personData.personOrderList;
|
|
2004
2070
|
|
|
2071
|
+
if (!personOrderList || !personOrderList.length) {
|
|
2072
|
+
return;
|
|
2073
|
+
}
|
|
2005
2074
|
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2075
|
+
personOrderList.forEach(function (person) {
|
|
2076
|
+
if (!person || !person.eleOrderList) {
|
|
2077
|
+
return;
|
|
2078
|
+
} // 投保人添加元素:投被保人是同一人
|
|
2009
2079
|
|
|
2010
|
-
if (person.eleOrderList.every(function (e) {
|
|
2011
|
-
return e.key !== 'birthday';
|
|
2012
|
-
})) {
|
|
2013
|
-
person.eleOrderList.splice(index + 1, 0, {
|
|
2014
|
-
key: 'birthday',
|
|
2015
|
-
value: null,
|
|
2016
|
-
label: '生日',
|
|
2017
|
-
componentName: 'cmCommonDate',
|
|
2018
|
-
placeholder: '请选择生日',
|
|
2019
|
-
minDate: null,
|
|
2020
|
-
maxDate: null,
|
|
2021
|
-
defaulValue: null
|
|
2022
|
-
});
|
|
2023
|
-
} // 设置计划书年龄范围,即被保人年龄范围
|
|
2024
2080
|
|
|
2081
|
+
if (person.key === 'applicantInfo') {
|
|
2082
|
+
if (person.eleOrderList.every(function (e) {
|
|
2083
|
+
return e.key !== 'applicantAndInsuredSame';
|
|
2084
|
+
})) {
|
|
2085
|
+
person.eleOrderList.splice(1, 0, {
|
|
2086
|
+
key: 'applicantAndInsuredSame',
|
|
2087
|
+
value: 0,
|
|
2088
|
+
label: '投被保人',
|
|
2089
|
+
componentName: 'cmCommonRadio',
|
|
2090
|
+
options: [{
|
|
2091
|
+
val: 0,
|
|
2092
|
+
desc: '非同一人'
|
|
2093
|
+
}, {
|
|
2094
|
+
val: 1,
|
|
2095
|
+
desc: '是同一人'
|
|
2096
|
+
}]
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
} // 添加元素:生日
|
|
2025
2100
|
|
|
2026
|
-
var ageRange = getInsuredAgeRange(inputData, verifyData);
|
|
2027
2101
|
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
person.eleOrderList.forEach(function (ele) {
|
|
2032
|
-
if (ele.key === 'age') {
|
|
2033
|
-
ele.opts = ageRange["".concat(person.key, "1")]; // 男女年龄取值范围不同
|
|
2102
|
+
var index = person.eleOrderList.findIndex(function (e) {
|
|
2103
|
+
return e.key === 'age';
|
|
2104
|
+
});
|
|
2034
2105
|
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2106
|
+
if (person.eleOrderList.every(function (e) {
|
|
2107
|
+
return e.key !== 'birthday';
|
|
2108
|
+
})) {
|
|
2109
|
+
person.eleOrderList.splice(index + 1, 0, {
|
|
2110
|
+
key: 'birthday',
|
|
2111
|
+
value: null,
|
|
2112
|
+
label: '生日',
|
|
2113
|
+
componentName: null,
|
|
2114
|
+
placeholder: '请选择生日',
|
|
2115
|
+
minDate: null,
|
|
2116
|
+
maxDate: null,
|
|
2117
|
+
defaulValue: null
|
|
2118
|
+
});
|
|
2119
|
+
} // 设置计划书年龄范围,即被保人年龄范围
|
|
2043
2120
|
|
|
2044
2121
|
|
|
2045
|
-
|
|
2046
|
-
switch (e.key) {
|
|
2047
|
-
case 'title':
|
|
2048
|
-
{
|
|
2049
|
-
e.isDisabled = e.isDisabled || null;
|
|
2050
|
-
e.componentName = 'cmCommonTitle';
|
|
2122
|
+
var ageRange = getInsuredAgeRange(inputData, verifyData);
|
|
2051
2123
|
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2124
|
+
if (ageRange) {
|
|
2125
|
+
personOrderList.forEach(function (person) {
|
|
2126
|
+
if (person.key === 'insuredInfo' && ageRange["".concat(person.key, "1")] && ageRange["".concat(person.key, "1")].length) {
|
|
2127
|
+
person.eleOrderList.forEach(function (ele) {
|
|
2128
|
+
if (ele.key === 'age') {
|
|
2129
|
+
ele.opts = ageRange["".concat(person.key, "1")]; // 男女年龄取值范围不同
|
|
2057
2130
|
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2131
|
+
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])) {
|
|
2132
|
+
ele.optsF = ageRange["".concat(person.key, "2")];
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
}
|
|
2137
|
+
});
|
|
2138
|
+
} // 转化一些必要数据
|
|
2061
2139
|
|
|
2062
|
-
case 'spouseInfo':
|
|
2063
|
-
e.label = '投保人配偶信息';
|
|
2064
|
-
break;
|
|
2065
2140
|
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2141
|
+
person.eleOrderList.forEach(function (e) {
|
|
2142
|
+
switch (e.key) {
|
|
2143
|
+
case 'title':
|
|
2144
|
+
{
|
|
2145
|
+
e.isDisabled = e.isDisabled || null;
|
|
2146
|
+
e.componentName = 'cmCommonTitle';
|
|
2147
|
+
|
|
2148
|
+
switch (person.key) {
|
|
2149
|
+
case 'insuredInfo':
|
|
2150
|
+
e.isDisabled = true;
|
|
2151
|
+
e.label = '被保人信息';
|
|
2152
|
+
break;
|
|
2153
|
+
|
|
2154
|
+
case 'applicantInfo':
|
|
2155
|
+
e.label = '投保人信息(豁免相关)';
|
|
2156
|
+
break;
|
|
2157
|
+
|
|
2158
|
+
case 'spouseInfo':
|
|
2159
|
+
e.label = '投保人配偶信息';
|
|
2160
|
+
break;
|
|
2161
|
+
|
|
2162
|
+
default:
|
|
2163
|
+
e.label = '人员信息';
|
|
2164
|
+
break;
|
|
2165
|
+
}
|
|
2070
2166
|
|
|
2071
|
-
|
|
2072
|
-
|
|
2167
|
+
break;
|
|
2168
|
+
}
|
|
2073
2169
|
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2170
|
+
case 'sex':
|
|
2171
|
+
{
|
|
2172
|
+
e.label = '性别';
|
|
2173
|
+
e.componentName = 'cmCommonRadio';
|
|
2174
|
+
e.options = [{
|
|
2175
|
+
val: 1,
|
|
2176
|
+
desc: '男'
|
|
2177
|
+
}, {
|
|
2178
|
+
val: 2,
|
|
2179
|
+
desc: '女'
|
|
2180
|
+
}];
|
|
2181
|
+
e.isDisabled = person.key === 'spouseInfo';
|
|
2182
|
+
break;
|
|
2183
|
+
}
|
|
2088
2184
|
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
});
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2185
|
+
case 'age':
|
|
2186
|
+
{
|
|
2187
|
+
e.label = '年龄';
|
|
2188
|
+
e.componentName = 'cmAgeBirthday';
|
|
2189
|
+
e.placeholder = '请选择年龄';
|
|
2190
|
+
e.options = [];
|
|
2191
|
+
break;
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
});
|
|
2195
|
+
setPersonAgeOptions(person);
|
|
2196
|
+
});
|
|
2104
2197
|
}
|
|
2105
2198
|
/**
|
|
2106
2199
|
* @Author: lizhao
|
|
@@ -2122,140 +2215,98 @@ function personDataHandler(allPersonsData) {
|
|
|
2122
2215
|
personKey = _ref.personKey,
|
|
2123
2216
|
eleKey = _ref.eleKey;
|
|
2124
2217
|
|
|
2125
|
-
if (allPersonsData
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2218
|
+
if (!allPersonsData || !allPersonsData.personOrderList) {
|
|
2219
|
+
return allPersonsData;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
allPersonsData.personOrderList.forEach(function (person, i, arr) {
|
|
2223
|
+
setPersonAgeOptions(person);
|
|
2224
|
+
var insuredData = arr.find(function (p) {
|
|
2225
|
+
return p.key === 'insuredInfo';
|
|
2226
|
+
});
|
|
2227
|
+
var applicantData = arr.find(function (p) {
|
|
2228
|
+
return p.key === 'applicantInfo';
|
|
2229
|
+
});
|
|
2230
|
+
var insuredInfo = convertPersonData(allPersonsData, 'insuredInfo');
|
|
2231
|
+
var applicantInfo = convertPersonData(allPersonsData, 'applicantInfo');
|
|
2232
|
+
|
|
2233
|
+
if (person.key === 'insuredInfo' && applicantData) {
|
|
2234
|
+
// 关于被保人、投保人是否是同一人的处理
|
|
2235
|
+
// 被保人所选年龄不在投保人年龄范围内,强制选中投保人。即被保人年龄不能做投保人
|
|
2236
|
+
var applicantAge = applicantData.eleOrderList.find(function (e) {
|
|
2237
|
+
return e.key === 'age';
|
|
2238
|
+
});
|
|
2239
|
+
var applicantTitle = applicantData.eleOrderList.find(function (e) {
|
|
2240
|
+
return e.key === 'title';
|
|
2130
2241
|
});
|
|
2131
|
-
var
|
|
2132
|
-
return e.key ===
|
|
2242
|
+
var applicantSame = applicantData.eleOrderList.find(function (e) {
|
|
2243
|
+
return e.key === 'applicantAndInsuredSame';
|
|
2133
2244
|
});
|
|
2134
2245
|
|
|
2135
|
-
if (
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
// 改变年龄,清空生日
|
|
2140
|
-
var birthday = personData.eleOrderList.find(function (e) {
|
|
2141
|
-
return e.key === 'birthday';
|
|
2142
|
-
});
|
|
2246
|
+
if (insuredInfo.age >= applicantAge.opts[0] && insuredInfo.age <= applicantAge.opts[1]) {
|
|
2247
|
+
if (applicantTitle) {
|
|
2248
|
+
applicantTitle.isDisabled = false;
|
|
2249
|
+
}
|
|
2143
2250
|
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2251
|
+
if (applicantSame) {
|
|
2252
|
+
applicantSame.isDisabled = null;
|
|
2253
|
+
applicantSame.isHide = null;
|
|
2254
|
+
}
|
|
2255
|
+
} else {
|
|
2256
|
+
if (applicantTitle) {
|
|
2257
|
+
applicantTitle.value = true;
|
|
2258
|
+
applicantTitle.isDisabled = true;
|
|
2259
|
+
}
|
|
2148
2260
|
|
|
2149
|
-
|
|
2150
|
-
|
|
2261
|
+
if (applicantSame) {
|
|
2262
|
+
applicantSame.value = 0;
|
|
2263
|
+
applicantSame.isDisabled = true;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2151
2267
|
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
return e.key === 'age';
|
|
2157
|
-
});
|
|
2158
|
-
|
|
2159
|
-
if (age) {
|
|
2160
|
-
age.value = Object(_common_js__WEBPACK_IMPORTED_MODULE_0__[/* getAgeFromBirth */ "e"])(eleData.value);
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
break;
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
allPersonsData.personOrderList.forEach(function (person, i, arr) {
|
|
2170
|
-
setPersonAgeOptions(person);
|
|
2171
|
-
var insuredData = arr.find(function (p) {
|
|
2172
|
-
return p.key === 'insuredInfo';
|
|
2268
|
+
if (person.key === 'applicantInfo') {
|
|
2269
|
+
// 投被保人为是否为同一人的相关逻辑
|
|
2270
|
+
var _applicantSame = person.eleOrderList.find(function (e) {
|
|
2271
|
+
return e.key === 'applicantAndInsuredSame';
|
|
2173
2272
|
});
|
|
2174
|
-
var applicantData = arr.find(function (p) {
|
|
2175
|
-
return p.key === 'applicantInfo';
|
|
2176
|
-
});
|
|
2177
|
-
var insuredInfo = convertPersonData(allPersonsData, 'insuredInfo');
|
|
2178
|
-
var applicantInfo = convertPersonData(allPersonsData, 'applicantInfo');
|
|
2179
|
-
|
|
2180
|
-
if (person.key === 'insuredInfo' && applicantData) {
|
|
2181
|
-
// 关于被保人、投保人是否是同一人的处理
|
|
2182
|
-
// 被保人所选年龄不在投保人年龄范围内,强制选中投保人。即被保人年龄不能做投保人
|
|
2183
|
-
var applicantAge = applicantData.eleOrderList.find(function (e) {
|
|
2184
|
-
return e.key === 'age';
|
|
2185
|
-
});
|
|
2186
|
-
var applicantTitle = applicantData.eleOrderList.find(function (e) {
|
|
2187
|
-
return e.key === 'title';
|
|
2188
|
-
});
|
|
2189
|
-
var applicantSame = applicantData.eleOrderList.find(function (e) {
|
|
2190
|
-
return e.key === 'applicantAndInsuredSame';
|
|
2191
|
-
});
|
|
2192
|
-
|
|
2193
|
-
if (insuredInfo.age >= applicantAge.opts[0] && insuredInfo.age <= applicantAge.opts[1]) {
|
|
2194
|
-
if (applicantTitle) {
|
|
2195
|
-
applicantTitle.isDisabled = false;
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
if (applicantSame) {
|
|
2199
|
-
applicantSame.isDisabled = null;
|
|
2200
|
-
applicantSame.isHide = null;
|
|
2201
|
-
}
|
|
2202
|
-
} else {
|
|
2203
|
-
if (applicantTitle) {
|
|
2204
|
-
applicantTitle.value = true;
|
|
2205
|
-
applicantTitle.isDisabled = true;
|
|
2206
|
-
}
|
|
2207
2273
|
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
if (person.key === 'applicantInfo') {
|
|
2216
|
-
// 投被保人为是否为同一人的相关逻辑
|
|
2217
|
-
var _applicantSame = person.eleOrderList.find(function (e) {
|
|
2218
|
-
return e.key === 'applicantAndInsuredSame';
|
|
2219
|
-
});
|
|
2220
|
-
|
|
2221
|
-
if (_applicantSame) {
|
|
2222
|
-
person.eleOrderList.forEach(function (ele) {
|
|
2223
|
-
if (['title', 'applicantAndInsuredSame'].indexOf(ele.key) === -1) {
|
|
2224
|
-
ele.isHide = !!_applicantSame.value;
|
|
2274
|
+
if (_applicantSame) {
|
|
2275
|
+
person.eleOrderList.forEach(function (ele) {
|
|
2276
|
+
if (['title', 'applicantAndInsuredSame'].indexOf(ele.key) === -1) {
|
|
2277
|
+
ele.isHide = !!_applicantSame.value;
|
|
2225
2278
|
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2279
|
+
if (_applicantSame.value) {
|
|
2280
|
+
var insuredEle = insuredData.eleOrderList.find(function (e) {
|
|
2281
|
+
return e.key === ele.key;
|
|
2282
|
+
});
|
|
2230
2283
|
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
}
|
|
2284
|
+
if (insuredEle) {
|
|
2285
|
+
ele.value = insuredEle.value;
|
|
2234
2286
|
}
|
|
2235
2287
|
}
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
} // 选中投保人才能选投保人配偶
|
|
2239
|
-
// 配偶性别根据投保人性别取反
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
if (person.key === 'spouseInfo') {
|
|
2243
|
-
person.eleOrderList.forEach(function (ele) {
|
|
2244
|
-
if (ele.key === 'title') {
|
|
2245
|
-
ele.isDisabled = !applicantInfo.title;
|
|
2246
|
-
ele.value = applicantInfo.title ? ele.value : false;
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
if (ele.key === 'sex') {
|
|
2250
|
-
ele.value = applicantInfo.sex === 1 ? 2 : 1;
|
|
2251
2288
|
}
|
|
2252
2289
|
});
|
|
2253
2290
|
}
|
|
2291
|
+
} // 选中投保人才能选投保人配偶
|
|
2292
|
+
// 配偶性别根据投保人性别取反
|
|
2254
2293
|
|
|
2255
|
-
setPersonAgeOptions(person);
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
2294
|
|
|
2295
|
+
if (person.key === 'spouseInfo') {
|
|
2296
|
+
person.eleOrderList.forEach(function (ele) {
|
|
2297
|
+
if (ele.key === 'title') {
|
|
2298
|
+
ele.isDisabled = !applicantInfo.title;
|
|
2299
|
+
ele.value = applicantInfo.title ? ele.value : false;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
if (ele.key === 'sex') {
|
|
2303
|
+
ele.value = applicantInfo.sex === 1 ? 2 : 1;
|
|
2304
|
+
}
|
|
2305
|
+
});
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
setPersonAgeOptions(person);
|
|
2309
|
+
});
|
|
2259
2310
|
return allPersonsData;
|
|
2260
2311
|
}
|
|
2261
2312
|
/**
|
|
@@ -2276,41 +2327,47 @@ function getInsuredAgeRange(inputData, verifyData) {
|
|
|
2276
2327
|
|
|
2277
2328
|
};
|
|
2278
2329
|
|
|
2279
|
-
if (inputData
|
|
2280
|
-
|
|
2281
|
-
if (group.prodOrderList) {
|
|
2282
|
-
//计划书是否有有效必选产品(默认个数内、必选、非组合险)
|
|
2283
|
-
var hasRequiredProd = group.prodOrderList.some(function (prod, i) {
|
|
2284
|
-
return i < group.defNum && !!prod.required && !prod.isTemp;
|
|
2285
|
-
});
|
|
2286
|
-
group.prodOrderList.forEach(function (prod) {
|
|
2287
|
-
// 组合险不统计年龄范围
|
|
2288
|
-
if (verifyData[prod.key] && !prod.isTemp && prod.mulInsOrderList) {
|
|
2289
|
-
prod.mulInsOrderList.forEach(function (ins) {
|
|
2290
|
-
// 险种是否有费率
|
|
2291
|
-
if (verifyData[prod.key][ins.key]) {
|
|
2292
|
-
// 产品中是否有必选险种
|
|
2293
|
-
var hasRequiredIns = prod.mulInsOrderList.some(function (ins) {
|
|
2294
|
-
return !!ins.required;
|
|
2295
|
-
}); //无必选产品,根据所有产品的最小值,最大值确定;有必选产品, 根据必选产品的最小值,最大值确定
|
|
2296
|
-
//无必选险种,根据所有险种的最小值,最大值确定;如果有必选险种:根据必选险种的最小值,最大值确定
|
|
2297
|
-
|
|
2298
|
-
if ((!ins.huomian || ins.huomian === 'beiHuomian') && (!hasRequiredProd || prod.required) && (!hasRequiredIns || ins.required)) {
|
|
2299
|
-
verifyData[prod.key][ins.key].forEach(function (condi) {
|
|
2300
|
-
var currentAgeRange = ageRange["insuredInfo".concat(condi.sex)];
|
|
2301
|
-
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)];
|
|
2302
|
-
});
|
|
2303
|
-
}
|
|
2304
|
-
} else {
|
|
2305
|
-
console.log("".concat(prod.titleName, "-").concat(prod.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
2306
|
-
}
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
});
|
|
2310
|
-
}
|
|
2311
|
-
});
|
|
2330
|
+
if (!inputData || !inputData.productGroupList || !inputData.personData || !inputData.personData.personOrderList || !verifyData) {
|
|
2331
|
+
return ageRange;
|
|
2312
2332
|
}
|
|
2313
2333
|
|
|
2334
|
+
inputData.productGroupList.forEach(function (group) {
|
|
2335
|
+
if (!group.prodOrderList) {
|
|
2336
|
+
return;
|
|
2337
|
+
} //计划书是否有有效必选产品(默认个数内、必选、非组合险)
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
var hasRequiredProd = group.prodOrderList.some(function (prod, i) {
|
|
2341
|
+
return i < group.defNum && !!prod.required && !prod.isTemp;
|
|
2342
|
+
});
|
|
2343
|
+
group.prodOrderList.forEach(function (prod) {
|
|
2344
|
+
// 组合险不统计年龄范围
|
|
2345
|
+
if (!verifyData[prod.key] || prod.isTemp || !prod.mulInsOrderList) {
|
|
2346
|
+
return;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
prod.mulInsOrderList.forEach(function (ins) {
|
|
2350
|
+
// 险种是否有费率
|
|
2351
|
+
if (!verifyData[prod.key][ins.key]) {
|
|
2352
|
+
console.log("".concat(prod.titleName, "-").concat(prod.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
2353
|
+
return;
|
|
2354
|
+
} // 产品中是否有必选险种
|
|
2355
|
+
|
|
2356
|
+
|
|
2357
|
+
var hasRequiredIns = prod.mulInsOrderList.some(function (ins) {
|
|
2358
|
+
return !!ins.required;
|
|
2359
|
+
}); //无必选产品,根据所有产品的最小值,最大值确定;有必选产品, 根据必选产品的最小值,最大值确定
|
|
2360
|
+
//无必选险种,根据所有险种的最小值,最大值确定;如果有必选险种:根据必选险种的最小值,最大值确定
|
|
2361
|
+
|
|
2362
|
+
if ((!ins.huomian || ins.huomian === 'beiHuomian') && (!hasRequiredProd || prod.required) && (!hasRequiredIns || ins.required)) {
|
|
2363
|
+
verifyData[prod.key][ins.key].forEach(function (condi) {
|
|
2364
|
+
var currentAgeRange = ageRange["insuredInfo".concat(condi.sex)];
|
|
2365
|
+
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)];
|
|
2366
|
+
});
|
|
2367
|
+
}
|
|
2368
|
+
});
|
|
2369
|
+
});
|
|
2370
|
+
});
|
|
2314
2371
|
return ageRange;
|
|
2315
2372
|
}
|
|
2316
2373
|
/**
|
|
@@ -2345,7 +2402,7 @@ function setPersonAgeOptions(personData) {
|
|
|
2345
2402
|
if (options.length && options.every(function (o) {
|
|
2346
2403
|
return o.val !== ele.value;
|
|
2347
2404
|
})) {
|
|
2348
|
-
ele.value = options[0];
|
|
2405
|
+
ele.value = options[0].val;
|
|
2349
2406
|
|
|
2350
2407
|
if (birthday) {
|
|
2351
2408
|
birthday.value = null;
|
|
@@ -2393,21 +2450,7 @@ function convertPersonData(allPersonsData, type) {
|
|
|
2393
2450
|
}
|
|
2394
2451
|
}
|
|
2395
2452
|
|
|
2396
|
-
if (type) {
|
|
2397
|
-
if (typeof type === 'string') {
|
|
2398
|
-
return cPersonData[type];
|
|
2399
|
-
} else if (type.constructor === Array) {
|
|
2400
|
-
var temp = [];
|
|
2401
|
-
|
|
2402
|
-
for (var k in cPersonData) {
|
|
2403
|
-
if (type.indexOf(k) !== -1) {
|
|
2404
|
-
temp.push(cPersonData[k]);
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
return temp;
|
|
2409
|
-
}
|
|
2410
|
-
} else {
|
|
2453
|
+
if (!type) {
|
|
2411
2454
|
return {
|
|
2412
2455
|
recipientInfo: cPersonData.recipientInfo,
|
|
2413
2456
|
personOrderList: allPersonsData.personOrderList && allPersonsData.personOrderList.map(function (p) {
|
|
@@ -2417,114 +2460,24 @@ function convertPersonData(allPersonsData, type) {
|
|
|
2417
2460
|
})
|
|
2418
2461
|
};
|
|
2419
2462
|
}
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
/***/ }),
|
|
2423
|
-
/* 9 */
|
|
2424
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2425
|
-
|
|
2426
|
-
"use strict";
|
|
2427
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
2428
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
2429
|
-
|
|
2430
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
2431
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
2432
|
-
// be included in the final webpack user bundle.
|
|
2433
|
-
|
|
2434
|
-
function normalizeComponent (
|
|
2435
|
-
scriptExports,
|
|
2436
|
-
render,
|
|
2437
|
-
staticRenderFns,
|
|
2438
|
-
functionalTemplate,
|
|
2439
|
-
injectStyles,
|
|
2440
|
-
scopeId,
|
|
2441
|
-
moduleIdentifier, /* server only */
|
|
2442
|
-
shadowMode /* vue-cli only */
|
|
2443
|
-
) {
|
|
2444
|
-
// Vue.extend constructor export interop
|
|
2445
|
-
var options = typeof scriptExports === 'function'
|
|
2446
|
-
? scriptExports.options
|
|
2447
|
-
: scriptExports
|
|
2448
|
-
|
|
2449
|
-
// render functions
|
|
2450
|
-
if (render) {
|
|
2451
|
-
options.render = render
|
|
2452
|
-
options.staticRenderFns = staticRenderFns
|
|
2453
|
-
options._compiled = true
|
|
2454
|
-
}
|
|
2455
2463
|
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
options.functional = true
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
// scopedId
|
|
2462
|
-
if (scopeId) {
|
|
2463
|
-
options._scopeId = 'data-v-' + scopeId
|
|
2464
|
+
if (typeof type === 'string') {
|
|
2465
|
+
return cPersonData[type];
|
|
2464
2466
|
}
|
|
2465
2467
|
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
hook = function (context) {
|
|
2469
|
-
// 2.3 injection
|
|
2470
|
-
context =
|
|
2471
|
-
context || // cached call
|
|
2472
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
2473
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
2474
|
-
// 2.2 with runInNewContext: true
|
|
2475
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
2476
|
-
context = __VUE_SSR_CONTEXT__
|
|
2477
|
-
}
|
|
2478
|
-
// inject component styles
|
|
2479
|
-
if (injectStyles) {
|
|
2480
|
-
injectStyles.call(this, context)
|
|
2481
|
-
}
|
|
2482
|
-
// register component module identifier for async chunk inferrence
|
|
2483
|
-
if (context && context._registeredComponents) {
|
|
2484
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
// used by ssr in case component is cached and beforeCreate
|
|
2488
|
-
// never gets called
|
|
2489
|
-
options._ssrRegister = hook
|
|
2490
|
-
} else if (injectStyles) {
|
|
2491
|
-
hook = shadowMode
|
|
2492
|
-
? function () {
|
|
2493
|
-
injectStyles.call(
|
|
2494
|
-
this,
|
|
2495
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
2496
|
-
)
|
|
2497
|
-
}
|
|
2498
|
-
: injectStyles
|
|
2499
|
-
}
|
|
2468
|
+
if (type.constructor === Array) {
|
|
2469
|
+
var temp = [];
|
|
2500
2470
|
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
// go through the normalizer
|
|
2505
|
-
options._injectStyles = hook
|
|
2506
|
-
// register for functional component in vue file
|
|
2507
|
-
var originalRender = options.render
|
|
2508
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
2509
|
-
hook.call(context)
|
|
2510
|
-
return originalRender(h, context)
|
|
2471
|
+
for (var k in cPersonData) {
|
|
2472
|
+
if (type.indexOf(k) !== -1) {
|
|
2473
|
+
temp.push(cPersonData[k]);
|
|
2511
2474
|
}
|
|
2512
|
-
} else {
|
|
2513
|
-
// inject component registration as beforeCreate hook
|
|
2514
|
-
var existing = options.beforeCreate
|
|
2515
|
-
options.beforeCreate = existing
|
|
2516
|
-
? [].concat(existing, hook)
|
|
2517
|
-
: [hook]
|
|
2518
2475
|
}
|
|
2519
|
-
}
|
|
2520
2476
|
|
|
2521
|
-
|
|
2522
|
-
exports: scriptExports,
|
|
2523
|
-
options: options
|
|
2477
|
+
return temp;
|
|
2524
2478
|
}
|
|
2525
2479
|
}
|
|
2526
2480
|
|
|
2527
|
-
|
|
2528
2481
|
/***/ }),
|
|
2529
2482
|
/* 10 */
|
|
2530
2483
|
/***/ (function(module, exports) {
|
|
@@ -2590,7 +2543,7 @@ __webpack_require__.d(__webpack_exports__, "checkInsureCalculateIn", function()
|
|
|
2590
2543
|
var common = __webpack_require__(1);
|
|
2591
2544
|
|
|
2592
2545
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/person.js
|
|
2593
|
-
var person = __webpack_require__(
|
|
2546
|
+
var person = __webpack_require__(9);
|
|
2594
2547
|
|
|
2595
2548
|
// EXTERNAL MODULE: ./packages/bxs-utils/planbook/product.js
|
|
2596
2549
|
var product = __webpack_require__(13);
|
|
@@ -2599,14 +2552,6 @@ var product = __webpack_require__(13);
|
|
|
2599
2552
|
var insurance = __webpack_require__(7);
|
|
2600
2553
|
|
|
2601
2554
|
// CONCATENATED MODULE: ./packages/bxs-utils/planbook/index.js
|
|
2602
|
-
/*
|
|
2603
|
-
* @Description:
|
|
2604
|
-
* @Author: lizhao
|
|
2605
|
-
* @Date: 2020-09-30 10:39:17
|
|
2606
|
-
* @LastEditors: lizhao
|
|
2607
|
-
* @LastEditTime: 2021-01-14 10:07:58
|
|
2608
|
-
* @FilePath: /bxs-tools-ui/packages/bxs-utils/planbook/index.js
|
|
2609
|
-
*/
|
|
2610
2555
|
|
|
2611
2556
|
|
|
2612
2557
|
|
|
@@ -2636,9 +2581,9 @@ var BASE_API = function () {
|
|
|
2636
2581
|
if (location.hostname.search(/pbf\.winbaoxian\.com/) !== -1) {
|
|
2637
2582
|
env = 'https://app.winbaoxian.com';
|
|
2638
2583
|
} else if (location.hostname.search(/pbf\.winbaoxian\.cn/) !== -1) {
|
|
2639
|
-
env = '
|
|
2584
|
+
env = 'https://app.winbaoxian.cn';
|
|
2640
2585
|
} else if (location.hostname.search(/127\.0\.0\.1|192\.168|localhost/) !== -1) {
|
|
2641
|
-
env = '
|
|
2586
|
+
env = 'https://app.winbaoxian.cn';
|
|
2642
2587
|
}
|
|
2643
2588
|
|
|
2644
2589
|
return env;
|
|
@@ -3201,14 +3146,6 @@ function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
|
3201
3146
|
*/
|
|
3202
3147
|
|
|
3203
3148
|
// CONCATENATED MODULE: ./packages/bxs-utils/index.js
|
|
3204
|
-
/*
|
|
3205
|
-
* @Description:
|
|
3206
|
-
* @Author: lizhao
|
|
3207
|
-
* @Date: 2021-01-14 10:02:36
|
|
3208
|
-
* @LastEditors: lizhao
|
|
3209
|
-
* @LastEditTime: 2021-01-14 10:08:07
|
|
3210
|
-
* @FilePath: /bxs-tools-ui/packages/bxs-utils/index.js
|
|
3211
|
-
*/
|
|
3212
3149
|
|
|
3213
3150
|
|
|
3214
3151
|
|
|
@@ -3216,7 +3153,7 @@ function checkInsureCalculateIn(urlParams, postParams, planParams) {
|
|
|
3216
3153
|
/* 12 */
|
|
3217
3154
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3218
3155
|
|
|
3219
|
-
module.exports = __webpack_require__(
|
|
3156
|
+
module.exports = __webpack_require__(30);
|
|
3220
3157
|
|
|
3221
3158
|
|
|
3222
3159
|
/***/ }),
|
|
@@ -3235,7 +3172,7 @@ module.exports = __webpack_require__(31);
|
|
|
3235
3172
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
|
|
3236
3173
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
3237
3174
|
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
3238
|
-
/* harmony import */ var _person_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3175
|
+
/* harmony import */ var _person_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
|
|
3239
3176
|
/* harmony import */ var _insurance_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
|
|
3240
3177
|
|
|
3241
3178
|
|
|
@@ -3243,14 +3180,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
3243
3180
|
|
|
3244
3181
|
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; }
|
|
3245
3182
|
|
|
3246
|
-
/*
|
|
3247
|
-
* @Description:
|
|
3248
|
-
* @Author: lizhao
|
|
3249
|
-
* @Date: 2020-09-30 10:36:44
|
|
3250
|
-
* @LastEditors: lizhao
|
|
3251
|
-
* @LastEditTime: 2020-12-22 10:58:19
|
|
3252
|
-
* @FilePath: /bxs-tools-ui/src/js/planbook/product.js
|
|
3253
|
-
*/
|
|
3254
3183
|
|
|
3255
3184
|
|
|
3256
3185
|
|
|
@@ -3272,19 +3201,20 @@ function initProductData(prodData) {
|
|
|
3272
3201
|
prodData.insShowArr = null;
|
|
3273
3202
|
prodData.totalBaof = null;
|
|
3274
3203
|
|
|
3275
|
-
if (prodData.mulInsOrderList) {
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
return !!ins.adjustBaoe;
|
|
3279
|
-
})) {
|
|
3280
|
-
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
3281
|
-
}
|
|
3204
|
+
if (!prodData.mulInsOrderList) {
|
|
3205
|
+
return prodData;
|
|
3206
|
+
} // 初始化调整保额的数据
|
|
3282
3207
|
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3208
|
+
|
|
3209
|
+
if (prodData.mulInsOrderList.some(function (ins) {
|
|
3210
|
+
return !!ins.adjustBaoe;
|
|
3211
|
+
})) {
|
|
3212
|
+
prodData.adjustBaoeData = prodData.adjustBaoeData || null;
|
|
3286
3213
|
}
|
|
3287
3214
|
|
|
3215
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
3216
|
+
Object(_insurance_js__WEBPACK_IMPORTED_MODULE_3__[/* initInsuranceData */ "b"])(ins);
|
|
3217
|
+
});
|
|
3288
3218
|
return prodData;
|
|
3289
3219
|
}
|
|
3290
3220
|
/**
|
|
@@ -3316,227 +3246,226 @@ function productDataHandler(prodData, productVerifyData, personData) {
|
|
|
3316
3246
|
Object(_insurance_js__WEBPACK_IMPORTED_MODULE_3__[/* insuranceDataHandler */ "c"])(ins, prodData);
|
|
3317
3247
|
var insuranceVerifyData = productVerifyData[ins.key];
|
|
3318
3248
|
|
|
3319
|
-
if (insuranceVerifyData) {
|
|
3320
|
-
(
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
var insuredInfo = personOrderList.find(function (p) {
|
|
3324
|
-
return p.key === 'insuredInfo';
|
|
3325
|
-
});
|
|
3326
|
-
var applicantInfo = personOrderList.find(function (p) {
|
|
3327
|
-
return p.key === 'applicantInfo';
|
|
3328
|
-
});
|
|
3329
|
-
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
3249
|
+
if (!insuranceVerifyData) {
|
|
3250
|
+
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
3251
|
+
return;
|
|
3252
|
+
} // 双豁免是种特殊的投保人豁免。双豁免包含投保人豁免和投保人配偶豁免。如果没有选中配偶信息,则认为是投保人豁免,选中则认为投保人豁免和配偶豁免都选中
|
|
3330
3253
|
|
|
3331
|
-
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
3332
|
-
// 如果豁免险种可以附加被保人,也可以附加投保人。选中投保人,则附加到投保人
|
|
3333
|
-
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
3334
|
-
} // 取当前性别、年龄下的费率条件
|
|
3335
3254
|
|
|
3255
|
+
var isTouHuomianIns = ins.huomian == 'touHuomian' || ins.huomian == 'shuangHuomian';
|
|
3256
|
+
var insuredInfo = personOrderList.find(function (p) {
|
|
3257
|
+
return p.key === 'insuredInfo';
|
|
3258
|
+
});
|
|
3259
|
+
var applicantInfo = personOrderList.find(function (p) {
|
|
3260
|
+
return p.key === 'applicantInfo';
|
|
3261
|
+
});
|
|
3262
|
+
var personType = isTouHuomianIns ? 'applicantInfo' : 'insuredInfo';
|
|
3336
3263
|
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3264
|
+
if (isTouHuomianIns && ins.allowSamePerson) {
|
|
3265
|
+
// 如果豁免险种可以附加被保人,也可以附加投保人。选中投保人,则附加到投保人
|
|
3266
|
+
personType = applicantInfo && applicantInfo.title ? 'applicantInfo' : 'insuredInfo';
|
|
3267
|
+
} // 取当前性别、年龄下的费率条件
|
|
3341
3268
|
|
|
3342
|
-
if (curPersonInfo) {
|
|
3343
|
-
// 对应性别、年龄下的限制条件
|
|
3344
|
-
curCondition = insuranceVerifyData.find(function (verify) {
|
|
3345
|
-
return verify.sex === curPersonInfo.sex && curPersonInfo.age >= verify.minAge && curPersonInfo.age <= verify.maxAge;
|
|
3346
|
-
});
|
|
3347
3269
|
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3270
|
+
var curPersonInfo = personOrderList.find(function (p) {
|
|
3271
|
+
return p.key === personType;
|
|
3272
|
+
});
|
|
3273
|
+
var curCondition = null;
|
|
3351
3274
|
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3275
|
+
if (curPersonInfo) {
|
|
3276
|
+
// 对应性别、年龄下的限制条件
|
|
3277
|
+
curCondition = insuranceVerifyData.find(function (verify) {
|
|
3278
|
+
return verify.sex === curPersonInfo.sex && curPersonInfo.age >= verify.minAge && curPersonInfo.age <= verify.maxAge;
|
|
3279
|
+
});
|
|
3280
|
+
|
|
3281
|
+
if (curCondition) {
|
|
3282
|
+
// 当前险种的限制条件
|
|
3283
|
+
curCondition = curCondition.conditionData; //如果险种可以附加被保人,也可以附加投保人。选中投保人,则附加到投保人
|
|
3284
|
+
|
|
3285
|
+
if (isTouHuomianIns && ins.allowSamePerson && curCondition.key === 'samePerson') {
|
|
3286
|
+
curCondition = curCondition.samePerson.find(function (verify) {
|
|
3287
|
+
return verify.value == (applicantInfo.title ? 0 : 1);
|
|
3288
|
+
});
|
|
3358
3289
|
}
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3359
3292
|
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3293
|
+
var eleTitle = ins.eleOrderList.find(function (e) {
|
|
3294
|
+
return e.key === 'title';
|
|
3295
|
+
}); // 储存当前元素限制条件。以便下一个限制条件回归调用
|
|
3363
3296
|
|
|
3364
|
-
|
|
3297
|
+
var backupCondi = null; // 遍历当前险种的限制条件
|
|
3365
3298
|
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3299
|
+
do {
|
|
3300
|
+
//如果险种不存在费率限制条件或者投保人豁免在没有选中投保人信息的条件下,险种不可选
|
|
3301
|
+
if (!curCondition || isTouHuomianIns && !ins.allowSamePerson && (!curPersonInfo.title || curPersonInfo.applicantAndInsuredSame)) {
|
|
3302
|
+
eleTitle.isDisabled = true;
|
|
3303
|
+
eleTitle.value = false;
|
|
3371
3304
|
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3305
|
+
if (curCondition) {
|
|
3306
|
+
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"));
|
|
3307
|
+
} else {
|
|
3308
|
+
console.log("".concat(eleTitle.labelName, "-").concat(ins.key, ": \u8D39\u7387\u4E0D\u5B58\u5728\uFF01"));
|
|
3309
|
+
}
|
|
3310
|
+
} else {
|
|
3311
|
+
// 存在费率,险种可选
|
|
3312
|
+
eleTitle.isDisabled = false; // 如果是必选险种,险种一定选中
|
|
3380
3313
|
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3314
|
+
if (ins.required && (!ins.groupKey || ins.isCheckbox)) {
|
|
3315
|
+
eleTitle.value = true;
|
|
3316
|
+
eleTitle.isDisabled = true;
|
|
3317
|
+
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)"));
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3387
3320
|
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3321
|
+
if (curCondition) {
|
|
3322
|
+
(function () {
|
|
3323
|
+
// 判断是否为通用元素
|
|
3324
|
+
var eleData = ins.eleOrderList.find(function (e) {
|
|
3325
|
+
return e.key === curCondition.key;
|
|
3326
|
+
});
|
|
3327
|
+
var commonData = prodData.mulInsOrderList.find(function (ins) {
|
|
3328
|
+
return ins.key === 'common';
|
|
3329
|
+
});
|
|
3397
3330
|
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3331
|
+
if (!eleData && commonData && commonData.eleOrderList) {
|
|
3332
|
+
eleData = commonData.eleOrderList.find(function (e) {
|
|
3333
|
+
return e.key === curCondition.key;
|
|
3334
|
+
});
|
|
3335
|
+
}
|
|
3403
3336
|
|
|
3404
|
-
|
|
3337
|
+
var eleCondi = curCondition[curCondition.key];
|
|
3405
3338
|
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3339
|
+
if (eleData) {
|
|
3340
|
+
//元素隐藏且非不可修改状态,取对应关联的险种的值
|
|
3341
|
+
if (eleData.isHide && !eleData.isDisabled && ins.refInsuranceId && ins.refInsuranceId != -2) {
|
|
3342
|
+
var refInsData = null; // -1: 关联主险。即险种中key值为非 「common」的第一个险种
|
|
3410
3343
|
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3344
|
+
if (ins.refInsuranceId === -1) {
|
|
3345
|
+
refInsData = insList[0].key === 'common' ? insList[1] : insList[0];
|
|
3346
|
+
} else {
|
|
3347
|
+
refInsData = insList.find(function (ins) {
|
|
3348
|
+
return ins.key === ins.refInsuranceId;
|
|
3349
|
+
});
|
|
3350
|
+
}
|
|
3418
3351
|
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3352
|
+
if (refInsData) {
|
|
3353
|
+
// 数据取值来源的元素
|
|
3354
|
+
var refEleData = refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) {
|
|
3355
|
+
return e.key === eleData.key;
|
|
3356
|
+
});
|
|
3424
3357
|
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3358
|
+
if (refEleData) {
|
|
3359
|
+
// 所关联的险种不可选,当前险种也不可选
|
|
3360
|
+
var refTitleData = refInsData.eleOrderList && refInsData.eleOrderList.find(function (e) {
|
|
3361
|
+
return e.key === 'title';
|
|
3362
|
+
});
|
|
3430
3363
|
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3364
|
+
if (refInsData && refTitleData.isDisabled) {
|
|
3365
|
+
eleTitle.isDisabled = true;
|
|
3366
|
+
} // 豁免险,缴费期间需要减去某个值
|
|
3434
3367
|
|
|
3435
3368
|
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
}
|
|
3441
|
-
} else {
|
|
3442
|
-
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
3443
|
-
}
|
|
3369
|
+
if (ins.huomian && eleData.key == 'pPeriod') {
|
|
3370
|
+
eleData.value = Object(_common_js__WEBPACK_IMPORTED_MODULE_1__[/* getHuomianPeriodValue */ "f"])(refEleData.value, ins, ins.huomian === 'touHuomian' ? insuredInfo : curPersonInfo);
|
|
3371
|
+
} else {
|
|
3372
|
+
eleData.value = refEleData.value;
|
|
3444
3373
|
}
|
|
3445
3374
|
} else {
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3375
|
+
console.log("".concat(ins.name, "-").concat(ins.key, "\uFF1A\u5173\u8054\u9669\u79CD").concat(ins.refInsuranceId, "\u4E0D\u5B58\u5728"));
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
} else {
|
|
3379
|
+
var backupOpts = eleData.opts.slice(0);
|
|
3380
|
+
eleData.opts = [];
|
|
3381
|
+
eleCondi.forEach(function (condi) {
|
|
3382
|
+
if (condi.value !== undefined && condi.desc !== undefined) {
|
|
3383
|
+
var backupOpt = backupOpts && backupOpts.find(function (o) {
|
|
3384
|
+
return o.val == condi.value;
|
|
3385
|
+
});
|
|
3386
|
+
eleData.opts.push({
|
|
3387
|
+
val: condi.value,
|
|
3388
|
+
desc: condi.desc,
|
|
3389
|
+
isHide: backupOpt && backupOpt.isHide || null,
|
|
3390
|
+
isDisabled: backupOpt && backupOpt.isDisabled || null,
|
|
3391
|
+
isInvalid: null
|
|
3461
3392
|
});
|
|
3393
|
+
}
|
|
3394
|
+
});
|
|
3462
3395
|
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
}
|
|
3476
|
-
} else {
|
|
3477
|
-
eleData.value = eleData.opts[0].val;
|
|
3478
|
-
}
|
|
3396
|
+
if (eleData.opts.length) {
|
|
3397
|
+
if (eleData.opts.every(function (ele) {
|
|
3398
|
+
return ele.val != eleData.value;
|
|
3399
|
+
})) {
|
|
3400
|
+
//交费期间,默认取最后一个元素的值;其他元素,默认取第一个元素。By Lizh 2020.4.10, From hyw
|
|
3401
|
+
if (eleData.key === 'pPeriod') {
|
|
3402
|
+
var filterOpts = eleData.opts.filter(function (opt) {
|
|
3403
|
+
return !opt.isHide && !opt.isDisabled;
|
|
3404
|
+
});
|
|
3405
|
+
|
|
3406
|
+
if (filterOpts.length) {
|
|
3407
|
+
eleData.value = eleData.opts[filterOpts.length - 1].val;
|
|
3479
3408
|
}
|
|
3480
3409
|
} else {
|
|
3481
|
-
|
|
3482
|
-
delete eleData.opts;
|
|
3410
|
+
eleData.value = eleData.opts[0].val;
|
|
3483
3411
|
}
|
|
3484
|
-
}
|
|
3412
|
+
}
|
|
3413
|
+
} else {
|
|
3414
|
+
// 没有选项时,删除opts
|
|
3415
|
+
delete eleData.opts;
|
|
3416
|
+
}
|
|
3417
|
+
} // 提定下一个元素的限制条件
|
|
3485
3418
|
|
|
3486
3419
|
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3420
|
+
curCondition = eleCondi.find(function (eleCondi) {
|
|
3421
|
+
return eleCondi.value === eleData.value;
|
|
3422
|
+
}); // 如果元素的value不存在限制条件。则遍历上一个元素,重新设置上一元素的值,并取对应的限制条件。By Lizao@2020.11.24
|
|
3423
|
+
|
|
3424
|
+
var eleIndex = ins.eleOrderList.findIndex(function (ele) {
|
|
3425
|
+
return ele.key === eleData.key;
|
|
3426
|
+
});
|
|
3490
3427
|
|
|
3491
|
-
|
|
3492
|
-
|
|
3428
|
+
if (!curCondition && backupCondi && eleData && eleIndex >= 1) {
|
|
3429
|
+
var preCondi = backupCondi.find(function (preCondi) {
|
|
3430
|
+
return preCondi[eleData.key] && preCondi[eleData.key].some(function (condi) {
|
|
3431
|
+
return condi.value === eleData.value;
|
|
3493
3432
|
});
|
|
3433
|
+
});
|
|
3494
3434
|
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
});
|
|
3435
|
+
if (preCondi) {
|
|
3436
|
+
curCondition = preCondi[eleData.key];
|
|
3437
|
+
ins.eleOrderList[eleIndex - 1].value = preCondi.value;
|
|
3438
|
+
}
|
|
3439
|
+
} // 如果当前元素是隐藏的且不可修改,则重新设置上一元素的选项(只取包含当前元素值的选项)。By Lizao@2020.11.24
|
|
3501
3440
|
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
if (curCondition && condi[eleData.key] && condi[eleData.key].some(function (c) {
|
|
3516
|
-
return c.value == eleData.value;
|
|
3517
|
-
})) {
|
|
3518
|
-
opts.push({
|
|
3519
|
-
val: condi.value,
|
|
3520
|
-
desc: condi.desc
|
|
3521
|
-
});
|
|
3522
|
-
}
|
|
3441
|
+
|
|
3442
|
+
if (eleData && eleData.isHide && !eleData.isDisabled && eleIndex >= 1 && backupCondi) {
|
|
3443
|
+
var preEleData = ins.eleOrderList[eleIndex - 1];
|
|
3444
|
+
|
|
3445
|
+
if (preEleData && preEleData.opts && preEleData.opts.length) {
|
|
3446
|
+
var opts = [];
|
|
3447
|
+
backupCondi.forEach(function (condi) {
|
|
3448
|
+
if (curCondition && condi[eleData.key] && condi[eleData.key].some(function (c) {
|
|
3449
|
+
return c.value == eleData.value;
|
|
3450
|
+
})) {
|
|
3451
|
+
opts.push({
|
|
3452
|
+
val: condi.value,
|
|
3453
|
+
desc: condi.desc
|
|
3523
3454
|
});
|
|
3524
|
-
preEleData.opts = opts;
|
|
3525
3455
|
}
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
backupCondi = eleCondi;
|
|
3529
|
-
} else {
|
|
3530
|
-
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
3531
|
-
curCondition = null;
|
|
3456
|
+
});
|
|
3457
|
+
preEleData.opts = opts;
|
|
3532
3458
|
}
|
|
3533
|
-
}
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
backupCondi = eleCondi;
|
|
3462
|
+
} else {
|
|
3463
|
+
console.log("".concat(ins.name, " - ").concat(curCondition && curCondition.key, "\u5143\u7D20\u4E0D\u5B58\u5728\uFF1A"));
|
|
3464
|
+
curCondition = null;
|
|
3534
3465
|
}
|
|
3535
|
-
}
|
|
3536
|
-
}
|
|
3537
|
-
}
|
|
3538
|
-
console.log("".concat(prodData.titleName, "-").concat(prodData.key, " -> ").concat(ins.name, "-").concat(ins.key, ": \u5F53\u524D\u9669\u79CD\u6CA1\u6709\u8D39\u7387\u8868"));
|
|
3539
|
-
}
|
|
3466
|
+
})();
|
|
3467
|
+
}
|
|
3468
|
+
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
3540
3469
|
});
|
|
3541
3470
|
}
|
|
3542
3471
|
|
|
@@ -3555,36 +3484,42 @@ function productDataHandler(prodData, productVerifyData, personData) {
|
|
|
3555
3484
|
*/
|
|
3556
3485
|
|
|
3557
3486
|
function setCommonInfo(prodData) {
|
|
3558
|
-
if (prodData
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
eleOrderList: []
|
|
3562
|
-
};
|
|
3563
|
-
prodData.mulInsOrderList.forEach(function (ins) {
|
|
3564
|
-
if (ins.eleOrderList) {
|
|
3565
|
-
ins.eleOrderList.forEach(function (ele) {
|
|
3566
|
-
if (ele.common && common.eleOrderList.every(function (e) {
|
|
3567
|
-
return e.key !== ele.key;
|
|
3568
|
-
})) {
|
|
3569
|
-
common.eleOrderList.push(ele);
|
|
3570
|
-
}
|
|
3571
|
-
});
|
|
3572
|
-
ins.eleOrderList = ins.eleOrderList.filter(function (ele) {
|
|
3573
|
-
return !ele.common;
|
|
3574
|
-
});
|
|
3575
|
-
}
|
|
3576
|
-
}); // 把通用信息当作一个险种,做为产品险种列表的第一个险种
|
|
3487
|
+
if (!prodData || !prodData.mulInsOrderList) {
|
|
3488
|
+
return prodData;
|
|
3489
|
+
}
|
|
3577
3490
|
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3491
|
+
var common = {
|
|
3492
|
+
key: 'common',
|
|
3493
|
+
eleOrderList: []
|
|
3494
|
+
};
|
|
3495
|
+
prodData.mulInsOrderList.forEach(function (ins) {
|
|
3496
|
+
if (!ins.eleOrderList) {
|
|
3497
|
+
return;
|
|
3498
|
+
}
|
|
3583
3499
|
|
|
3584
|
-
|
|
3585
|
-
|
|
3500
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
3501
|
+
if (ele.common && common.eleOrderList.every(function (e) {
|
|
3502
|
+
return e.key !== ele.key;
|
|
3503
|
+
})) {
|
|
3504
|
+
common.eleOrderList.push(ele);
|
|
3586
3505
|
}
|
|
3587
|
-
}
|
|
3506
|
+
});
|
|
3507
|
+
ins.eleOrderList = ins.eleOrderList.filter(function (ele) {
|
|
3508
|
+
return !ele.common;
|
|
3509
|
+
});
|
|
3510
|
+
}); // 把通用信息当作一个险种,做为产品险种列表的第一个险种
|
|
3511
|
+
|
|
3512
|
+
if (!common.eleOrderList.length) {
|
|
3513
|
+
return prodData;
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
3517
|
+
return ins.key !== 'common';
|
|
3518
|
+
});
|
|
3519
|
+
prodData.mulInsOrderList.unshift(common); // 通用信息,与跟随其后的险种不留间距
|
|
3520
|
+
|
|
3521
|
+
if (prodData.mulInsOrderList[1]) {
|
|
3522
|
+
prodData.mulInsOrderList[1].isFollowing = true;
|
|
3588
3523
|
}
|
|
3589
3524
|
|
|
3590
3525
|
return prodData;
|
|
@@ -3605,176 +3540,178 @@ function setGroupInsurance(prodData) {
|
|
|
3605
3540
|
return !!ins.groupKey;
|
|
3606
3541
|
});
|
|
3607
3542
|
|
|
3608
|
-
if (groupInsuranceList
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
}); //清空险种列表中的已有的险种组合
|
|
3612
|
-
|
|
3613
|
-
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
3614
|
-
return !ins.isGroup;
|
|
3615
|
-
});
|
|
3616
|
-
var nGroupInsList = {};
|
|
3617
|
-
groupInsuranceList.forEach(function (ins) {
|
|
3618
|
-
//多险种选一,或多险种选多。生成一个组合,如多个险种合成豁免险
|
|
3619
|
-
// ins.isCheckbox = true
|
|
3620
|
-
var oTitle, oInsuranceId;
|
|
3621
|
-
var oGroupInsData = oGroupInsList.find(function (gIns) {
|
|
3622
|
-
return gIns.key === ins.groupKey;
|
|
3623
|
-
});
|
|
3543
|
+
if (!groupInsuranceList || !groupInsuranceList.length) {
|
|
3544
|
+
return prodData;
|
|
3545
|
+
}
|
|
3624
3546
|
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
});
|
|
3629
|
-
oInsuranceId = oGroupInsData.eleOrderList.find(function (e) {
|
|
3630
|
-
return e.key === 'insuranceId';
|
|
3631
|
-
});
|
|
3632
|
-
}
|
|
3547
|
+
var oGroupInsList = prodData.mulInsOrderList.filter(function (ins) {
|
|
3548
|
+
return ins.isGroup;
|
|
3549
|
+
}); //清空险种列表中的已有的险种组合
|
|
3633
3550
|
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
}, {
|
|
3646
|
-
key: 'insuranceId',
|
|
3647
|
-
value: oInsuranceId && oInsuranceId.value || (ins.isCheckbox ? [] : ''),
|
|
3648
|
-
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
3649
|
-
opts: []
|
|
3650
|
-
}]
|
|
3651
|
-
}; // 当险种转换成险种组合的选项
|
|
3551
|
+
prodData.mulInsOrderList = prodData.mulInsOrderList.filter(function (ins) {
|
|
3552
|
+
return !ins.isGroup;
|
|
3553
|
+
});
|
|
3554
|
+
var nGroupInsList = {};
|
|
3555
|
+
groupInsuranceList.forEach(function (ins) {
|
|
3556
|
+
//多险种选一,或多险种选多。生成一个组合,如多个险种合成豁免险
|
|
3557
|
+
// ins.isCheckbox = true
|
|
3558
|
+
var oTitle, oInsuranceId;
|
|
3559
|
+
var oGroupInsData = oGroupInsList.find(function (gIns) {
|
|
3560
|
+
return gIns.key === ins.groupKey;
|
|
3561
|
+
});
|
|
3652
3562
|
|
|
3653
|
-
|
|
3563
|
+
if (oGroupInsData) {
|
|
3564
|
+
oTitle = oGroupInsData.eleOrderList.find(function (e) {
|
|
3654
3565
|
return e.key === 'title';
|
|
3655
3566
|
});
|
|
3656
|
-
|
|
3567
|
+
oInsuranceId = oGroupInsData.eleOrderList.find(function (e) {
|
|
3657
3568
|
return e.key === 'insuranceId';
|
|
3658
3569
|
});
|
|
3659
|
-
|
|
3660
|
-
val: ins.key,
|
|
3661
|
-
desc: eleTitle.labelName,
|
|
3662
|
-
isDisabled: eleTitle.isDisabled
|
|
3663
|
-
});
|
|
3664
|
-
}); // 处理组合险中的逻辑,并加入到产品险种列表中
|
|
3570
|
+
}
|
|
3665
3571
|
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3572
|
+
nGroupInsList[ins.groupKey] = nGroupInsList[ins.groupKey] || {
|
|
3573
|
+
key: ins.groupKey,
|
|
3574
|
+
name: ins.groupName,
|
|
3575
|
+
huomian: ins.huomian,
|
|
3576
|
+
isGroup: true,
|
|
3577
|
+
eleOrderList: [{
|
|
3578
|
+
key: 'title',
|
|
3579
|
+
value: oTitle && oTitle.value || false,
|
|
3580
|
+
isDisabled: false,
|
|
3581
|
+
componentName: 'cmCommonTitle',
|
|
3582
|
+
labelName: ins.groupName
|
|
3583
|
+
}, {
|
|
3584
|
+
key: 'insuranceId',
|
|
3585
|
+
value: oInsuranceId && oInsuranceId.value || (ins.isCheckbox ? [] : ''),
|
|
3586
|
+
componentName: ins.isCheckbox ? 'cmCommonCheckbox' : 'cmCommonRadio',
|
|
3587
|
+
opts: []
|
|
3588
|
+
}]
|
|
3589
|
+
}; // 当险种转换成险种组合的选项
|
|
3590
|
+
|
|
3591
|
+
var eleTitle = ins.eleOrderList.find(function (e) {
|
|
3592
|
+
return e.key === 'title';
|
|
3593
|
+
});
|
|
3594
|
+
var nInsuranceId = nGroupInsList[ins.groupKey].eleOrderList.find(function (e) {
|
|
3595
|
+
return e.key === 'insuranceId';
|
|
3596
|
+
});
|
|
3597
|
+
nInsuranceId.opts.push({
|
|
3598
|
+
val: ins.key,
|
|
3599
|
+
desc: eleTitle.labelName,
|
|
3600
|
+
isDisabled: eleTitle.isDisabled
|
|
3601
|
+
});
|
|
3602
|
+
}); // 处理组合险中的逻辑,并加入到产品险种列表中
|
|
3673
3603
|
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3604
|
+
var _loop = function _loop(k) {
|
|
3605
|
+
var nGroupTitle = nGroupInsList[k].eleOrderList.find(function (e) {
|
|
3606
|
+
return e.key === 'title';
|
|
3607
|
+
});
|
|
3608
|
+
var nGroupInsuranceId = nGroupInsList[k].eleOrderList.find(function (e) {
|
|
3609
|
+
return e.key === 'insuranceId';
|
|
3610
|
+
});
|
|
3611
|
+
|
|
3612
|
+
if (nGroupTitle && nGroupInsuranceId) {
|
|
3613
|
+
if (nGroupInsuranceId.opts && nGroupInsuranceId.opts.length) {
|
|
3614
|
+
// 所有险种都不可选,则组合险不可修改且不选中。否则,组合险种可选
|
|
3615
|
+
if (nGroupInsuranceId.opts.every(function (opt) {
|
|
3616
|
+
return !!opt.isDisabled;
|
|
3617
|
+
})) {
|
|
3618
|
+
nGroupTitle.value = false;
|
|
3619
|
+
nGroupTitle.isDisabled = true;
|
|
3620
|
+
} else {
|
|
3621
|
+
nGroupTitle.isDisabled = false;
|
|
3685
3622
|
}
|
|
3623
|
+
}
|
|
3686
3624
|
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3625
|
+
var groupInsList = prodData.mulInsOrderList.filter(function (ins) {
|
|
3626
|
+
return ins.groupKey == k;
|
|
3627
|
+
});
|
|
3690
3628
|
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3629
|
+
if (groupInsList && groupInsList.length) {
|
|
3630
|
+
// 如果组合险中有一款是必选的,则整个组合险为选中状态
|
|
3631
|
+
if (groupInsList.some(function (ins) {
|
|
3632
|
+
var subTitle = ins.eleOrderList.find(function (e) {
|
|
3633
|
+
return e.key === 'title';
|
|
3634
|
+
});
|
|
3635
|
+
return ins.required && subTitle && !subTitle.isDisabled;
|
|
3636
|
+
})) {
|
|
3637
|
+
nGroupTitle.value = true;
|
|
3638
|
+
nGroupTitle.isDisabled = true;
|
|
3639
|
+
} // 初始化时,设置组合险默认值
|
|
3702
3640
|
|
|
3703
3641
|
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
});
|
|
3708
|
-
return subTitle && !subTitle.isDisabled;
|
|
3642
|
+
var notDisabledInsurances = groupInsList.filter(function (ins) {
|
|
3643
|
+
var subTitle = ins.eleOrderList.find(function (e) {
|
|
3644
|
+
return e.key === 'title';
|
|
3709
3645
|
});
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
return
|
|
3646
|
+
return subTitle && !subTitle.isDisabled;
|
|
3647
|
+
});
|
|
3648
|
+
var checkedInsurances = notDisabledInsurances.find(function (ins) {
|
|
3649
|
+
var subTitle = ins.eleOrderList.find(function (e) {
|
|
3650
|
+
return e.key === 'title';
|
|
3715
3651
|
});
|
|
3652
|
+
return subTitle && subTitle.value;
|
|
3653
|
+
});
|
|
3716
3654
|
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
}
|
|
3655
|
+
if (!nGroupInsuranceId.value) {
|
|
3656
|
+
if (checkedInsurances) {
|
|
3657
|
+
nGroupInsuranceId.value = checkedInsurances.key;
|
|
3658
|
+
nGroupTitle.value = true;
|
|
3659
|
+
} else if (nGroupTitle.value) {
|
|
3660
|
+
if (notDisabledInsurances[0]) {
|
|
3661
|
+
nGroupInsuranceId.value = notDisabledInsurances[0].key;
|
|
3725
3662
|
}
|
|
3726
3663
|
}
|
|
3727
3664
|
}
|
|
3728
3665
|
}
|
|
3666
|
+
}
|
|
3729
3667
|
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
});
|
|
3737
|
-
}
|
|
3738
|
-
} else {
|
|
3739
|
-
var opt = nGroupInsuranceId.opts.find(function (o) {
|
|
3740
|
-
return o.val === nGroupInsuranceId.value;
|
|
3668
|
+
if (nGroupInsuranceId) {
|
|
3669
|
+
if (nGroupInsuranceId.value) {
|
|
3670
|
+
if (nGroupInsuranceId.value.constructor === Array) {
|
|
3671
|
+
if (nGroupInsuranceId.opts) {
|
|
3672
|
+
nGroupInsuranceId.opts = nGroupInsuranceId.opts.filter(function (opt) {
|
|
3673
|
+
return nGroupInsuranceId.value.indexOf(opt.val) !== -1 && !opt.isDisabled;
|
|
3741
3674
|
});
|
|
3675
|
+
}
|
|
3676
|
+
} else {
|
|
3677
|
+
var opt = nGroupInsuranceId.opts.find(function (o) {
|
|
3678
|
+
return o.val === nGroupInsuranceId.value;
|
|
3679
|
+
});
|
|
3742
3680
|
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
}
|
|
3681
|
+
if (opt && opt.isDisabled) {
|
|
3682
|
+
nGroupInsuranceId.value = '';
|
|
3746
3683
|
}
|
|
3747
3684
|
}
|
|
3685
|
+
}
|
|
3748
3686
|
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3687
|
+
if (nGroupInsuranceId.value) {
|
|
3688
|
+
var checkedIns = prodData.mulInsOrderList.find(function (ins) {
|
|
3689
|
+
return ins.key === nGroupInsuranceId.value;
|
|
3690
|
+
});
|
|
3753
3691
|
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
}
|
|
3692
|
+
if (checkedIns) {
|
|
3693
|
+
//将当前选中险种的部分数据复制到组合险中
|
|
3694
|
+
for (var ck in checkedIns) {
|
|
3695
|
+
if (['code', 'groupKey', 'groupName', 'isFollowing', 'key', 'name'].indexOf(ck) === -1) {
|
|
3696
|
+
// 定义组件险中的元素:自身eleOrderList + 所选险种的eleOrderList(不包含标题)
|
|
3697
|
+
if (ck === 'eleOrderList') {
|
|
3698
|
+
nGroupInsList[k][ck] = nGroupInsList[k][ck].concat(checkedIns[ck].filter(function (ele) {
|
|
3699
|
+
return ele.key != 'title';
|
|
3700
|
+
}));
|
|
3701
|
+
} else {
|
|
3702
|
+
nGroupInsList[k][ck] = checkedIns[ck];
|
|
3766
3703
|
}
|
|
3767
3704
|
}
|
|
3768
3705
|
}
|
|
3769
3706
|
}
|
|
3770
3707
|
}
|
|
3708
|
+
}
|
|
3771
3709
|
|
|
3772
|
-
|
|
3773
|
-
|
|
3710
|
+
prodData.mulInsOrderList.push(nGroupInsList[k]);
|
|
3711
|
+
};
|
|
3774
3712
|
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
}
|
|
3713
|
+
for (var k in nGroupInsList) {
|
|
3714
|
+
_loop(k);
|
|
3778
3715
|
}
|
|
3779
3716
|
|
|
3780
3717
|
return prodData;
|
|
@@ -4133,7 +4070,7 @@ module.exports = function bind(fn, thisArg) {
|
|
|
4133
4070
|
"use strict";
|
|
4134
4071
|
|
|
4135
4072
|
|
|
4136
|
-
var utils = __webpack_require__(
|
|
4073
|
+
var utils = __webpack_require__(5);
|
|
4137
4074
|
|
|
4138
4075
|
function encode(val) {
|
|
4139
4076
|
return encodeURIComponent(val).
|
|
@@ -4222,8 +4159,8 @@ module.exports = function isCancel(value) {
|
|
|
4222
4159
|
"use strict";
|
|
4223
4160
|
/* WEBPACK VAR INJECTION */(function(process) {
|
|
4224
4161
|
|
|
4225
|
-
var utils = __webpack_require__(
|
|
4226
|
-
var normalizeHeaderName = __webpack_require__(
|
|
4162
|
+
var utils = __webpack_require__(5);
|
|
4163
|
+
var normalizeHeaderName = __webpack_require__(37);
|
|
4227
4164
|
|
|
4228
4165
|
var DEFAULT_CONTENT_TYPE = {
|
|
4229
4166
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -4319,7 +4256,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
4319
4256
|
|
|
4320
4257
|
module.exports = defaults;
|
|
4321
4258
|
|
|
4322
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
4259
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(36)))
|
|
4323
4260
|
|
|
4324
4261
|
/***/ }),
|
|
4325
4262
|
/* 19 */
|
|
@@ -4328,13 +4265,13 @@ module.exports = defaults;
|
|
|
4328
4265
|
"use strict";
|
|
4329
4266
|
|
|
4330
4267
|
|
|
4331
|
-
var utils = __webpack_require__(
|
|
4332
|
-
var settle = __webpack_require__(
|
|
4333
|
-
var cookies = __webpack_require__(
|
|
4268
|
+
var utils = __webpack_require__(5);
|
|
4269
|
+
var settle = __webpack_require__(38);
|
|
4270
|
+
var cookies = __webpack_require__(40);
|
|
4334
4271
|
var buildURL = __webpack_require__(16);
|
|
4335
|
-
var buildFullPath = __webpack_require__(
|
|
4336
|
-
var parseHeaders = __webpack_require__(
|
|
4337
|
-
var isURLSameOrigin = __webpack_require__(
|
|
4272
|
+
var buildFullPath = __webpack_require__(41);
|
|
4273
|
+
var parseHeaders = __webpack_require__(44);
|
|
4274
|
+
var isURLSameOrigin = __webpack_require__(45);
|
|
4338
4275
|
var createError = __webpack_require__(20);
|
|
4339
4276
|
|
|
4340
4277
|
module.exports = function xhrAdapter(config) {
|
|
@@ -4521,7 +4458,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
4521
4458
|
"use strict";
|
|
4522
4459
|
|
|
4523
4460
|
|
|
4524
|
-
var enhanceError = __webpack_require__(
|
|
4461
|
+
var enhanceError = __webpack_require__(39);
|
|
4525
4462
|
|
|
4526
4463
|
/**
|
|
4527
4464
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -4546,7 +4483,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
4546
4483
|
"use strict";
|
|
4547
4484
|
|
|
4548
4485
|
|
|
4549
|
-
var utils = __webpack_require__(
|
|
4486
|
+
var utils = __webpack_require__(5);
|
|
4550
4487
|
|
|
4551
4488
|
/**
|
|
4552
4489
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -4654,253 +4591,79 @@ Cancel.prototype.toString = function toString() {
|
|
|
4654
4591
|
return 'Cancel' + (this.message ? ': ' + this.message : '');
|
|
4655
4592
|
};
|
|
4656
4593
|
|
|
4657
|
-
Cancel.prototype.__CANCEL__ = true;
|
|
4658
|
-
|
|
4659
|
-
module.exports = Cancel;
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
/***/ }),
|
|
4663
|
-
/* 23 */
|
|
4664
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4665
|
-
|
|
4666
|
-
var arrayWithoutHoles = __webpack_require__(27);
|
|
4667
|
-
|
|
4668
|
-
var iterableToArray = __webpack_require__(28);
|
|
4669
|
-
|
|
4670
|
-
var unsupportedIterableToArray = __webpack_require__(29);
|
|
4671
|
-
|
|
4672
|
-
var nonIterableSpread = __webpack_require__(30);
|
|
4673
|
-
|
|
4674
|
-
function _toConsumableArray(arr) {
|
|
4675
|
-
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
4676
|
-
}
|
|
4677
|
-
|
|
4678
|
-
module.exports = _toConsumableArray;
|
|
4679
|
-
|
|
4680
|
-
/***/ }),
|
|
4681
|
-
/* 24 */
|
|
4682
|
-
/***/ (function(module, exports) {
|
|
4683
|
-
|
|
4684
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
4685
|
-
try {
|
|
4686
|
-
var info = gen[key](arg);
|
|
4687
|
-
var value = info.value;
|
|
4688
|
-
} catch (error) {
|
|
4689
|
-
reject(error);
|
|
4690
|
-
return;
|
|
4691
|
-
}
|
|
4692
|
-
|
|
4693
|
-
if (info.done) {
|
|
4694
|
-
resolve(value);
|
|
4695
|
-
} else {
|
|
4696
|
-
Promise.resolve(value).then(_next, _throw);
|
|
4697
|
-
}
|
|
4698
|
-
}
|
|
4699
|
-
|
|
4700
|
-
function _asyncToGenerator(fn) {
|
|
4701
|
-
return function () {
|
|
4702
|
-
var self = this,
|
|
4703
|
-
args = arguments;
|
|
4704
|
-
return new Promise(function (resolve, reject) {
|
|
4705
|
-
var gen = fn.apply(self, args);
|
|
4706
|
-
|
|
4707
|
-
function _next(value) {
|
|
4708
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
|
-
function _throw(err) {
|
|
4712
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
4713
|
-
}
|
|
4714
|
-
|
|
4715
|
-
_next(undefined);
|
|
4716
|
-
});
|
|
4717
|
-
};
|
|
4718
|
-
}
|
|
4719
|
-
|
|
4720
|
-
module.exports = _asyncToGenerator;
|
|
4721
|
-
|
|
4722
|
-
/***/ }),
|
|
4723
|
-
/* 25 */
|
|
4724
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4725
|
-
|
|
4726
|
-
module.exports = __webpack_require__(32);
|
|
4727
|
-
|
|
4728
|
-
/***/ }),
|
|
4729
|
-
/* 26 */
|
|
4730
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4731
|
-
|
|
4732
|
-
"use strict";
|
|
4733
|
-
/* unused harmony export firstLetterUpperCase */
|
|
4734
|
-
/* unused harmony export getUrlParam */
|
|
4735
|
-
/* unused harmony export deepCopy */
|
|
4736
|
-
/* unused harmony export sequencePromises */
|
|
4737
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return parseTime; });
|
|
4738
|
-
/* unused harmony export getAgeFromBirth */
|
|
4739
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
4740
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
4741
|
-
/*
|
|
4742
|
-
* @Author: lizh
|
|
4743
|
-
* @Date: 2020-08-12 10:33:43
|
|
4744
|
-
* @Last Modified by: lizh
|
|
4745
|
-
* @Last Modified time: 2020-09-18 09:16:13
|
|
4746
|
-
*/
|
|
4747
|
-
|
|
4748
|
-
/**
|
|
4749
|
-
* 首字母大写
|
|
4750
|
-
* @Author Lizh
|
|
4751
|
-
* @DateTime 2020-08-12
|
|
4752
|
-
* @param {[type]} str [description]
|
|
4753
|
-
* @return {[type]} [description]
|
|
4754
|
-
*/
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
function firstLetterUpperCase(str) {
|
|
4758
|
-
return str && str.replace(/^\w/, function (s) {
|
|
4759
|
-
return s.toUpperCase();
|
|
4760
|
-
});
|
|
4761
|
-
} //函数:获取链接中的参数
|
|
4762
|
-
//参数:name, 需要获取的参数名
|
|
4763
|
-
|
|
4764
|
-
function getUrlParam(name, url) {
|
|
4765
|
-
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
|
4766
|
-
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'),
|
|
4767
|
-
results = regex.exec(url ? url : location.search);
|
|
4768
|
-
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
|
4769
|
-
} // 函数:Obj深度考贝
|
|
4770
|
-
// 参数:target为最终返回的对象;origial为需要复制的数据源
|
|
4771
|
-
|
|
4772
|
-
function deepCopy(obj) {
|
|
4773
|
-
var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
|
|
4774
|
-
|
|
4775
|
-
if (!obj || _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj) !== 'object') {
|
|
4776
|
-
return obj;
|
|
4777
|
-
}
|
|
4778
|
-
|
|
4779
|
-
if (hash.has(obj)) {
|
|
4780
|
-
return hash.get(obj);
|
|
4781
|
-
}
|
|
4782
|
-
|
|
4783
|
-
var newObj;
|
|
4784
|
-
var Constructor = obj.constructor;
|
|
4785
|
-
|
|
4786
|
-
switch (Constructor) {
|
|
4787
|
-
case RegExp:
|
|
4788
|
-
newObj = new Constructor(obj);
|
|
4789
|
-
break;
|
|
4790
|
-
|
|
4791
|
-
case Date:
|
|
4792
|
-
newObj = new Constructor(obj.getTime());
|
|
4793
|
-
break;
|
|
4794
|
-
|
|
4795
|
-
default:
|
|
4796
|
-
newObj = new Constructor();
|
|
4797
|
-
break;
|
|
4798
|
-
}
|
|
4799
|
-
|
|
4800
|
-
hash.set(obj, newObj);
|
|
4801
|
-
|
|
4802
|
-
for (var key in obj) {
|
|
4803
|
-
if (obj.hasOwnProperty(key)) {
|
|
4804
|
-
newObj[key] = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj[key]) === 'object' ? deepCopy(obj[key], hash) : obj[key];
|
|
4805
|
-
}
|
|
4806
|
-
}
|
|
4594
|
+
Cancel.prototype.__CANCEL__ = true;
|
|
4807
4595
|
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4596
|
+
module.exports = Cancel;
|
|
4597
|
+
|
|
4598
|
+
|
|
4599
|
+
/***/ }),
|
|
4600
|
+
/* 23 */
|
|
4601
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4814
4602
|
|
|
4815
|
-
|
|
4816
|
-
function recordValue(results, value) {
|
|
4817
|
-
results.push(value);
|
|
4818
|
-
return results;
|
|
4819
|
-
} //记录每个Promise实例的执行结果。如果不调用此方法,函数最后的Promise的传递出来的参数,只有最后一个Promise实例的执行结果
|
|
4603
|
+
var arrayWithoutHoles = __webpack_require__(26);
|
|
4820
4604
|
|
|
4605
|
+
var iterableToArray = __webpack_require__(27);
|
|
4821
4606
|
|
|
4822
|
-
|
|
4823
|
-
var promise = Promise.resolve();
|
|
4607
|
+
var unsupportedIterableToArray = __webpack_require__(28);
|
|
4824
4608
|
|
|
4825
|
-
|
|
4826
|
-
promise = promise.then(promises[i]).then(pushValue);
|
|
4827
|
-
}
|
|
4609
|
+
var nonIterableSpread = __webpack_require__(29);
|
|
4828
4610
|
|
|
4829
|
-
|
|
4611
|
+
function _toConsumableArray(arr) {
|
|
4612
|
+
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
4830
4613
|
}
|
|
4831
|
-
/**转换时间字符串
|
|
4832
|
-
* @Author Lizh
|
|
4833
|
-
* @DateTime 2020-04-16
|
|
4834
|
-
* @param {[type]} time [description]
|
|
4835
|
-
* @param {[type]} cFormat [description]
|
|
4836
|
-
* @return {[type]} [description]
|
|
4837
|
-
*/
|
|
4838
4614
|
|
|
4839
|
-
|
|
4840
|
-
if (arguments.length === 0) {
|
|
4841
|
-
return null;
|
|
4842
|
-
}
|
|
4615
|
+
module.exports = _toConsumableArray;
|
|
4843
4616
|
|
|
4844
|
-
|
|
4845
|
-
|
|
4617
|
+
/***/ }),
|
|
4618
|
+
/* 24 */
|
|
4619
|
+
/***/ (function(module, exports) {
|
|
4846
4620
|
|
|
4847
|
-
|
|
4621
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
4622
|
+
try {
|
|
4623
|
+
var info = gen[key](arg);
|
|
4624
|
+
var value = info.value;
|
|
4625
|
+
} catch (error) {
|
|
4626
|
+
reject(error);
|
|
4848
4627
|
return;
|
|
4849
|
-
}
|
|
4850
|
-
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
if (info.done) {
|
|
4631
|
+
resolve(value);
|
|
4851
4632
|
} else {
|
|
4852
|
-
|
|
4853
|
-
date = new Date(time);
|
|
4633
|
+
Promise.resolve(value).then(_next, _throw);
|
|
4854
4634
|
}
|
|
4635
|
+
}
|
|
4855
4636
|
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
s: date.getSeconds(),
|
|
4863
|
-
a: date.getDay()
|
|
4864
|
-
};
|
|
4865
|
-
var timeStr = format.replace(/{(y|m|d|h|i|s|a)+}/g, function (result, key) {
|
|
4866
|
-
var value = formatObj[key];
|
|
4637
|
+
function _asyncToGenerator(fn) {
|
|
4638
|
+
return function () {
|
|
4639
|
+
var self = this,
|
|
4640
|
+
args = arguments;
|
|
4641
|
+
return new Promise(function (resolve, reject) {
|
|
4642
|
+
var gen = fn.apply(self, args);
|
|
4867
4643
|
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4644
|
+
function _next(value) {
|
|
4645
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
4646
|
+
}
|
|
4871
4647
|
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4648
|
+
function _throw(err) {
|
|
4649
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
4650
|
+
}
|
|
4875
4651
|
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
}
|
|
4880
|
-
//参数:birth为时间字符串或时间翟;cDate为指定时间,不传默认为当前时间
|
|
4652
|
+
_next(undefined);
|
|
4653
|
+
});
|
|
4654
|
+
};
|
|
4655
|
+
}
|
|
4881
4656
|
|
|
4882
|
-
|
|
4883
|
-
var nowDate = cDate ? new Date(cDate) : new Date();
|
|
4884
|
-
var bDate = new Date(birth);
|
|
4885
|
-
var age = nowDate.getFullYear() - bDate.getFullYear();
|
|
4657
|
+
module.exports = _asyncToGenerator;
|
|
4886
4658
|
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4659
|
+
/***/ }),
|
|
4660
|
+
/* 25 */
|
|
4661
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4890
4662
|
|
|
4891
|
-
|
|
4892
|
-
}
|
|
4893
|
-
/* unused harmony default export */ var _unused_webpack_default_export = ({
|
|
4894
|
-
firstLetterUpperCase: firstLetterUpperCase,
|
|
4895
|
-
getUrlParam: getUrlParam,
|
|
4896
|
-
deepCopy: deepCopy,
|
|
4897
|
-
sequencePromises: sequencePromises,
|
|
4898
|
-
parseTime: parseTime,
|
|
4899
|
-
getAgeFromBirth: getAgeFromBirth
|
|
4900
|
-
});
|
|
4663
|
+
module.exports = __webpack_require__(31);
|
|
4901
4664
|
|
|
4902
4665
|
/***/ }),
|
|
4903
|
-
/*
|
|
4666
|
+
/* 26 */
|
|
4904
4667
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4905
4668
|
|
|
4906
4669
|
var arrayLikeToArray = __webpack_require__(14);
|
|
@@ -4912,7 +4675,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
4912
4675
|
module.exports = _arrayWithoutHoles;
|
|
4913
4676
|
|
|
4914
4677
|
/***/ }),
|
|
4915
|
-
/*
|
|
4678
|
+
/* 27 */
|
|
4916
4679
|
/***/ (function(module, exports) {
|
|
4917
4680
|
|
|
4918
4681
|
function _iterableToArray(iter) {
|
|
@@ -4922,7 +4685,7 @@ function _iterableToArray(iter) {
|
|
|
4922
4685
|
module.exports = _iterableToArray;
|
|
4923
4686
|
|
|
4924
4687
|
/***/ }),
|
|
4925
|
-
/*
|
|
4688
|
+
/* 28 */
|
|
4926
4689
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4927
4690
|
|
|
4928
4691
|
var arrayLikeToArray = __webpack_require__(14);
|
|
@@ -4939,7 +4702,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
4939
4702
|
module.exports = _unsupportedIterableToArray;
|
|
4940
4703
|
|
|
4941
4704
|
/***/ }),
|
|
4942
|
-
/*
|
|
4705
|
+
/* 29 */
|
|
4943
4706
|
/***/ (function(module, exports) {
|
|
4944
4707
|
|
|
4945
4708
|
function _nonIterableSpread() {
|
|
@@ -4949,7 +4712,7 @@ function _nonIterableSpread() {
|
|
|
4949
4712
|
module.exports = _nonIterableSpread;
|
|
4950
4713
|
|
|
4951
4714
|
/***/ }),
|
|
4952
|
-
/*
|
|
4715
|
+
/* 30 */
|
|
4953
4716
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4954
4717
|
|
|
4955
4718
|
/**
|
|
@@ -5703,15 +5466,15 @@ try {
|
|
|
5703
5466
|
|
|
5704
5467
|
|
|
5705
5468
|
/***/ }),
|
|
5706
|
-
/*
|
|
5469
|
+
/* 31 */
|
|
5707
5470
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5708
5471
|
|
|
5709
5472
|
"use strict";
|
|
5710
5473
|
|
|
5711
5474
|
|
|
5712
|
-
var utils = __webpack_require__(
|
|
5475
|
+
var utils = __webpack_require__(5);
|
|
5713
5476
|
var bind = __webpack_require__(15);
|
|
5714
|
-
var Axios = __webpack_require__(
|
|
5477
|
+
var Axios = __webpack_require__(32);
|
|
5715
5478
|
var mergeConfig = __webpack_require__(21);
|
|
5716
5479
|
var defaults = __webpack_require__(18);
|
|
5717
5480
|
|
|
@@ -5747,14 +5510,14 @@ axios.create = function create(instanceConfig) {
|
|
|
5747
5510
|
|
|
5748
5511
|
// Expose Cancel & CancelToken
|
|
5749
5512
|
axios.Cancel = __webpack_require__(22);
|
|
5750
|
-
axios.CancelToken = __webpack_require__(
|
|
5513
|
+
axios.CancelToken = __webpack_require__(46);
|
|
5751
5514
|
axios.isCancel = __webpack_require__(17);
|
|
5752
5515
|
|
|
5753
5516
|
// Expose all/spread
|
|
5754
5517
|
axios.all = function all(promises) {
|
|
5755
5518
|
return Promise.all(promises);
|
|
5756
5519
|
};
|
|
5757
|
-
axios.spread = __webpack_require__(
|
|
5520
|
+
axios.spread = __webpack_require__(47);
|
|
5758
5521
|
|
|
5759
5522
|
module.exports = axios;
|
|
5760
5523
|
|
|
@@ -5763,16 +5526,16 @@ module.exports.default = axios;
|
|
|
5763
5526
|
|
|
5764
5527
|
|
|
5765
5528
|
/***/ }),
|
|
5766
|
-
/*
|
|
5529
|
+
/* 32 */
|
|
5767
5530
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5768
5531
|
|
|
5769
5532
|
"use strict";
|
|
5770
5533
|
|
|
5771
5534
|
|
|
5772
|
-
var utils = __webpack_require__(
|
|
5535
|
+
var utils = __webpack_require__(5);
|
|
5773
5536
|
var buildURL = __webpack_require__(16);
|
|
5774
|
-
var InterceptorManager = __webpack_require__(
|
|
5775
|
-
var dispatchRequest = __webpack_require__(
|
|
5537
|
+
var InterceptorManager = __webpack_require__(33);
|
|
5538
|
+
var dispatchRequest = __webpack_require__(34);
|
|
5776
5539
|
var mergeConfig = __webpack_require__(21);
|
|
5777
5540
|
|
|
5778
5541
|
/**
|
|
@@ -5864,13 +5627,13 @@ module.exports = Axios;
|
|
|
5864
5627
|
|
|
5865
5628
|
|
|
5866
5629
|
/***/ }),
|
|
5867
|
-
/*
|
|
5630
|
+
/* 33 */
|
|
5868
5631
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5869
5632
|
|
|
5870
5633
|
"use strict";
|
|
5871
5634
|
|
|
5872
5635
|
|
|
5873
|
-
var utils = __webpack_require__(
|
|
5636
|
+
var utils = __webpack_require__(5);
|
|
5874
5637
|
|
|
5875
5638
|
function InterceptorManager() {
|
|
5876
5639
|
this.handlers = [];
|
|
@@ -5923,14 +5686,14 @@ module.exports = InterceptorManager;
|
|
|
5923
5686
|
|
|
5924
5687
|
|
|
5925
5688
|
/***/ }),
|
|
5926
|
-
/*
|
|
5689
|
+
/* 34 */
|
|
5927
5690
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5928
5691
|
|
|
5929
5692
|
"use strict";
|
|
5930
5693
|
|
|
5931
5694
|
|
|
5932
|
-
var utils = __webpack_require__(
|
|
5933
|
-
var transformData = __webpack_require__(
|
|
5695
|
+
var utils = __webpack_require__(5);
|
|
5696
|
+
var transformData = __webpack_require__(35);
|
|
5934
5697
|
var isCancel = __webpack_require__(17);
|
|
5935
5698
|
var defaults = __webpack_require__(18);
|
|
5936
5699
|
|
|
@@ -6009,13 +5772,13 @@ module.exports = function dispatchRequest(config) {
|
|
|
6009
5772
|
|
|
6010
5773
|
|
|
6011
5774
|
/***/ }),
|
|
6012
|
-
/*
|
|
5775
|
+
/* 35 */
|
|
6013
5776
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6014
5777
|
|
|
6015
5778
|
"use strict";
|
|
6016
5779
|
|
|
6017
5780
|
|
|
6018
|
-
var utils = __webpack_require__(
|
|
5781
|
+
var utils = __webpack_require__(5);
|
|
6019
5782
|
|
|
6020
5783
|
/**
|
|
6021
5784
|
* Transform the data for a request or a response
|
|
@@ -6036,7 +5799,7 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
6036
5799
|
|
|
6037
5800
|
|
|
6038
5801
|
/***/ }),
|
|
6039
|
-
/*
|
|
5802
|
+
/* 36 */
|
|
6040
5803
|
/***/ (function(module, exports) {
|
|
6041
5804
|
|
|
6042
5805
|
// shim for using process in browser
|
|
@@ -6226,13 +5989,13 @@ process.umask = function() { return 0; };
|
|
|
6226
5989
|
|
|
6227
5990
|
|
|
6228
5991
|
/***/ }),
|
|
6229
|
-
/*
|
|
5992
|
+
/* 37 */
|
|
6230
5993
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6231
5994
|
|
|
6232
5995
|
"use strict";
|
|
6233
5996
|
|
|
6234
5997
|
|
|
6235
|
-
var utils = __webpack_require__(
|
|
5998
|
+
var utils = __webpack_require__(5);
|
|
6236
5999
|
|
|
6237
6000
|
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
6238
6001
|
utils.forEach(headers, function processHeader(value, name) {
|
|
@@ -6245,7 +6008,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
|
6245
6008
|
|
|
6246
6009
|
|
|
6247
6010
|
/***/ }),
|
|
6248
|
-
/*
|
|
6011
|
+
/* 38 */
|
|
6249
6012
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6250
6013
|
|
|
6251
6014
|
"use strict";
|
|
@@ -6277,7 +6040,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
6277
6040
|
|
|
6278
6041
|
|
|
6279
6042
|
/***/ }),
|
|
6280
|
-
/*
|
|
6043
|
+
/* 39 */
|
|
6281
6044
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6282
6045
|
|
|
6283
6046
|
"use strict";
|
|
@@ -6326,13 +6089,13 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
|
6326
6089
|
|
|
6327
6090
|
|
|
6328
6091
|
/***/ }),
|
|
6329
|
-
/*
|
|
6092
|
+
/* 40 */
|
|
6330
6093
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6331
6094
|
|
|
6332
6095
|
"use strict";
|
|
6333
6096
|
|
|
6334
6097
|
|
|
6335
|
-
var utils = __webpack_require__(
|
|
6098
|
+
var utils = __webpack_require__(5);
|
|
6336
6099
|
|
|
6337
6100
|
module.exports = (
|
|
6338
6101
|
utils.isStandardBrowserEnv() ?
|
|
@@ -6386,14 +6149,14 @@ module.exports = (
|
|
|
6386
6149
|
|
|
6387
6150
|
|
|
6388
6151
|
/***/ }),
|
|
6389
|
-
/*
|
|
6152
|
+
/* 41 */
|
|
6390
6153
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6391
6154
|
|
|
6392
6155
|
"use strict";
|
|
6393
6156
|
|
|
6394
6157
|
|
|
6395
|
-
var isAbsoluteURL = __webpack_require__(
|
|
6396
|
-
var combineURLs = __webpack_require__(
|
|
6158
|
+
var isAbsoluteURL = __webpack_require__(42);
|
|
6159
|
+
var combineURLs = __webpack_require__(43);
|
|
6397
6160
|
|
|
6398
6161
|
/**
|
|
6399
6162
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
@@ -6413,7 +6176,7 @@ module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
|
6413
6176
|
|
|
6414
6177
|
|
|
6415
6178
|
/***/ }),
|
|
6416
|
-
/*
|
|
6179
|
+
/* 42 */
|
|
6417
6180
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6418
6181
|
|
|
6419
6182
|
"use strict";
|
|
@@ -6434,7 +6197,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
6434
6197
|
|
|
6435
6198
|
|
|
6436
6199
|
/***/ }),
|
|
6437
|
-
/*
|
|
6200
|
+
/* 43 */
|
|
6438
6201
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6439
6202
|
|
|
6440
6203
|
"use strict";
|
|
@@ -6455,13 +6218,13 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
|
6455
6218
|
|
|
6456
6219
|
|
|
6457
6220
|
/***/ }),
|
|
6458
|
-
/*
|
|
6221
|
+
/* 44 */
|
|
6459
6222
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6460
6223
|
|
|
6461
6224
|
"use strict";
|
|
6462
6225
|
|
|
6463
6226
|
|
|
6464
|
-
var utils = __webpack_require__(
|
|
6227
|
+
var utils = __webpack_require__(5);
|
|
6465
6228
|
|
|
6466
6229
|
// Headers whose duplicates are ignored by node
|
|
6467
6230
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
@@ -6515,13 +6278,13 @@ module.exports = function parseHeaders(headers) {
|
|
|
6515
6278
|
|
|
6516
6279
|
|
|
6517
6280
|
/***/ }),
|
|
6518
|
-
/*
|
|
6281
|
+
/* 45 */
|
|
6519
6282
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6520
6283
|
|
|
6521
6284
|
"use strict";
|
|
6522
6285
|
|
|
6523
6286
|
|
|
6524
|
-
var utils = __webpack_require__(
|
|
6287
|
+
var utils = __webpack_require__(5);
|
|
6525
6288
|
|
|
6526
6289
|
module.exports = (
|
|
6527
6290
|
utils.isStandardBrowserEnv() ?
|
|
@@ -6590,7 +6353,7 @@ module.exports = (
|
|
|
6590
6353
|
|
|
6591
6354
|
|
|
6592
6355
|
/***/ }),
|
|
6593
|
-
/*
|
|
6356
|
+
/* 46 */
|
|
6594
6357
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6595
6358
|
|
|
6596
6359
|
"use strict";
|
|
@@ -6654,7 +6417,7 @@ module.exports = CancelToken;
|
|
|
6654
6417
|
|
|
6655
6418
|
|
|
6656
6419
|
/***/ }),
|
|
6657
|
-
/*
|
|
6420
|
+
/* 47 */
|
|
6658
6421
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6659
6422
|
|
|
6660
6423
|
"use strict";
|
|
@@ -6688,8 +6451,113 @@ module.exports = function spread(callback) {
|
|
|
6688
6451
|
|
|
6689
6452
|
|
|
6690
6453
|
/***/ }),
|
|
6454
|
+
/* 48 */,
|
|
6691
6455
|
/* 49 */,
|
|
6692
|
-
/* 50
|
|
6456
|
+
/* 50 */
|
|
6457
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6458
|
+
|
|
6459
|
+
"use strict";
|
|
6460
|
+
/* unused harmony export deepCopy */
|
|
6461
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return parseTime; });
|
|
6462
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
6463
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
6464
|
+
// 函数:Obj深度考贝
|
|
6465
|
+
// 参数:target为最终返回的对象;origial为需要复制的数据源
|
|
6466
|
+
|
|
6467
|
+
|
|
6468
|
+
function deepCopy(obj) {
|
|
6469
|
+
var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
|
|
6470
|
+
|
|
6471
|
+
if (!obj || _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj) !== 'object') {
|
|
6472
|
+
return obj;
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6475
|
+
if (hash.has(obj)) {
|
|
6476
|
+
return hash.get(obj);
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6479
|
+
var newObj;
|
|
6480
|
+
var Constructor = obj.constructor;
|
|
6481
|
+
|
|
6482
|
+
switch (Constructor) {
|
|
6483
|
+
case RegExp:
|
|
6484
|
+
newObj = new Constructor(obj);
|
|
6485
|
+
break;
|
|
6486
|
+
|
|
6487
|
+
case Date:
|
|
6488
|
+
newObj = new Constructor(obj.getTime());
|
|
6489
|
+
break;
|
|
6490
|
+
|
|
6491
|
+
default:
|
|
6492
|
+
newObj = new Constructor();
|
|
6493
|
+
break;
|
|
6494
|
+
}
|
|
6495
|
+
|
|
6496
|
+
hash.set(obj, newObj);
|
|
6497
|
+
|
|
6498
|
+
for (var key in obj) {
|
|
6499
|
+
if (obj.hasOwnProperty(key)) {
|
|
6500
|
+
newObj[key] = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj[key]) === 'object' ? deepCopy(obj[key], hash) : obj[key];
|
|
6501
|
+
}
|
|
6502
|
+
}
|
|
6503
|
+
|
|
6504
|
+
return newObj;
|
|
6505
|
+
}
|
|
6506
|
+
/**转换时间字符串
|
|
6507
|
+
* @Author Lizh
|
|
6508
|
+
* @DateTime 2020-04-16
|
|
6509
|
+
* @param {[type]} time [description]
|
|
6510
|
+
* @param {[type]} cFormat [description]
|
|
6511
|
+
* @return {[type]} [description]
|
|
6512
|
+
*/
|
|
6513
|
+
|
|
6514
|
+
function parseTime(time, cFormat) {
|
|
6515
|
+
if (arguments.length === 0) {
|
|
6516
|
+
return null;
|
|
6517
|
+
}
|
|
6518
|
+
|
|
6519
|
+
var format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}';
|
|
6520
|
+
var date;
|
|
6521
|
+
|
|
6522
|
+
if (time === null) {
|
|
6523
|
+
return;
|
|
6524
|
+
} else if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(time) === 'object') {
|
|
6525
|
+
date = time;
|
|
6526
|
+
} else {
|
|
6527
|
+
if (('' + time).length === 10) time = parseInt(time) * 1000;
|
|
6528
|
+
date = new Date(time);
|
|
6529
|
+
}
|
|
6530
|
+
|
|
6531
|
+
var formatObj = {
|
|
6532
|
+
y: date.getFullYear(),
|
|
6533
|
+
m: date.getMonth() + 1,
|
|
6534
|
+
d: date.getDate(),
|
|
6535
|
+
h: date.getHours(),
|
|
6536
|
+
i: date.getMinutes(),
|
|
6537
|
+
s: date.getSeconds(),
|
|
6538
|
+
a: date.getDay()
|
|
6539
|
+
};
|
|
6540
|
+
var timeStr = format.replace(/{(y|m|d|h|i|s|a)+}/g, function (result, key) {
|
|
6541
|
+
var value = formatObj[key];
|
|
6542
|
+
|
|
6543
|
+
if (key === 'a') {
|
|
6544
|
+
return ['日', '一', '二', '三', '四', '五', '六'][value];
|
|
6545
|
+
}
|
|
6546
|
+
|
|
6547
|
+
if (result.length > 0 && value < 10) {
|
|
6548
|
+
value = '0' + value;
|
|
6549
|
+
}
|
|
6550
|
+
|
|
6551
|
+
return value || 0;
|
|
6552
|
+
});
|
|
6553
|
+
return timeStr;
|
|
6554
|
+
}
|
|
6555
|
+
/* unused harmony default export */ var _unused_webpack_default_export = ({
|
|
6556
|
+
deepCopy: deepCopy,
|
|
6557
|
+
parseTime: parseTime
|
|
6558
|
+
});
|
|
6559
|
+
|
|
6560
|
+
/***/ }),
|
|
6693
6561
|
/* 51 */,
|
|
6694
6562
|
/* 52 */,
|
|
6695
6563
|
/* 53 */,
|
|
@@ -6707,13 +6575,14 @@ module.exports = function spread(callback) {
|
|
|
6707
6575
|
/* 60 */,
|
|
6708
6576
|
/* 61 */,
|
|
6709
6577
|
/* 62 */,
|
|
6710
|
-
/* 63
|
|
6578
|
+
/* 63 */,
|
|
6579
|
+
/* 64 */
|
|
6711
6580
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6712
6581
|
|
|
6713
6582
|
// extracted by mini-css-extract-plugin
|
|
6714
6583
|
|
|
6715
6584
|
/***/ }),
|
|
6716
|
-
/*
|
|
6585
|
+
/* 65 */
|
|
6717
6586
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6718
6587
|
|
|
6719
6588
|
"use strict";
|
|
@@ -6723,23 +6592,25 @@ module.exports = function spread(callback) {
|
|
|
6723
6592
|
|
|
6724
6593
|
|
|
6725
6594
|
/***/ }),
|
|
6726
|
-
/* 65 */,
|
|
6727
6595
|
/* 66 */,
|
|
6728
6596
|
/* 67 */,
|
|
6729
6597
|
/* 68 */,
|
|
6730
|
-
/* 69
|
|
6598
|
+
/* 69 */,
|
|
6599
|
+
/* 70 */,
|
|
6600
|
+
/* 71 */,
|
|
6601
|
+
/* 72 */
|
|
6731
6602
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6732
6603
|
|
|
6733
6604
|
"use strict";
|
|
6734
6605
|
// ESM COMPAT FLAG
|
|
6735
6606
|
__webpack_require__.r(__webpack_exports__);
|
|
6736
6607
|
|
|
6737
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=template&id=
|
|
6608
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/insure-calculate/index.vue?vue&type=template&id=1fa56244&
|
|
6738
6609
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bxt-calculate"},[(_vm.showHeader)?_c('div',{ref:"header"},[_vm._t("header",[_c('header',{staticClass:"bxt-component-header"},[_c('span',{staticClass:"bxt-component-header_title"},[_vm._v(_vm._s(_vm.title))]),_c('span',{on:{"click":_vm.closeInsureCalculate}},[_c('bxs-icon',{staticClass:"bxt-component-header_close",attrs:{"name":"close"}})],1)])])],2):_vm._e(),(_vm.widgets && _vm.widgets.length)?_c('div',{staticClass:"bxt-component-container",class:{ 'bxt-mb50': _vm.showFooter }},_vm._l((_vm.widgets),function(item,index){return _c('div',{key:item.label + item.riskCode + index,staticClass:"bxt-insure-calculte"},[(item.type === 'v-text' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-text bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('span',{staticClass:"bxt-fs13"},[_vm._v(_vm._s(item.name))])]):_vm._e(),(item.type === 'text' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-text bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('span',{staticClass:"bxt-fs13"},[_vm._v(_vm._s(item.name))])]):_vm._e(),(item.type === 'select_checkbox' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-select-content"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-select-content-box"},[_vm._l((item.opts[item.key]),function(it,optsIndex){return [(item.current && it.value === item.current.v)?_c('span',{key:it.value + optsIndex,staticClass:"bxt-select-content-item bxt-active bxt-fs13",on:{"click":function($event){return _vm.bindSelectChange(item, it)}}},[_vm._v("\n "+_vm._s(it.name)+"\n ")]):_c('span',{key:it.value + optsIndex,staticClass:"bxt-select-content-item",on:{"click":function($event){return _vm.bindSelectChange(item, it)}}},[_vm._v("\n "+_vm._s(it.name)+"\n ")])]})],2)]):_vm._e(),(item.type === 'select_picker' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-flex-center",on:{"click":function($event){return _vm.openPicker(item)}}},[_c('div',{staticClass:"bxt-select-text bxt-fs13"},[_vm._v("\n "+_vm._s(item.opts[item.key][item.index].name)+"\n ")])])]):_vm._e(),(item.type === 'select_number_range' && item.hidden === 0)?_c('div',[_c('div',{staticClass:"bxt-block bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-flex-center",on:{"click":function($event){return _vm.openSelectNumberRangePicker(item)}}},[_c('div',{staticClass:"bxt-select-text bxt-fs13"},[_vm._v("\n "+_vm._s(item.opts[item.key][item.index].name)+"\n ")])])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(item.showInput),expression:"item.showInput"}]},[_c('bxs-input',{attrs:{"autosize":"","type":"textarea","placeholder":'请输入' + item.label,"label":item.label,"input-align":"bx-right","clearable":false,"error-message":item.errorMessage},on:{"change":function($event){return _vm.inputNumberChange(item)}},model:{value:(item.current.v),callback:function ($$v) {_vm.$set(item.current, "v", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:"item.current.v"}},[_c('span',{attrs:{"slot":"button"},slot:"button"},[_vm._v("元")])])],1)]):_vm._e(),(item.type === 'calendar' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-calendar bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-flex-center bxt-calendar-text bxt-fs13",on:{"click":function($event){return _vm.openDatePicker(item)}}},[_c('div',{staticClass:"bxt-minwidth-70"},[_vm._v(_vm._s(item.current.v))]),_c('img',{staticClass:"bxt-signin",attrs:{"src":"//media.winbaoxian.com/autoUpload/common/signin_0e67230840f371a.png"}})])]):_vm._e(),(item.type === 'profession' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-flex-center bxt-fs13"},[_c('span',{staticClass:"bxt-color-3 bxt-mr15"},[_vm._v(_vm._s(item.tv))]),_c('span',{on:{"click":function($event){return _vm.showProfession(item)}}},[_vm._v("查询")])])]):_vm._e(),(item.type === 'address' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-flex-center bxt-fs13"},[_c('span',{staticClass:"bxt-color-3 bxt-red",on:{"click":function($event){return _vm.showAddress(item)}}},[_vm._v(_vm._s(item.tv || '请选择投保地区'))])])]):_vm._e(),(item.type === 'input_number_range' && item.hidden === 0)?_c('div',{staticClass:"bxt-block bxt-input bxt-bb1"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30"},[_vm._v(_vm._s(item.label))]),_c('div',{staticClass:"bxt-fs13"},[_c('div',{staticClass:"bxt-input-box"},[_c('span',{staticClass:"bxt-input-content"},[_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(item.current.v),expression:"item.current.v",modifiers:{"trim":true}}],staticClass:"bxt-input-text",attrs:{"type":"text"},domProps:{"value":(item.current.v)},on:{"blur":[function($event){return _vm.inputNumberRangeBlur(item)},function($event){return _vm.$forceUpdate()}],"input":function($event){if($event.target.composing){ return; }_vm.$set(item.current, "v", $event.target.value.trim())}}})]),_c('span',{staticClass:"bxt-input-unit"},[_vm._v("份")])]),_c('div',{staticClass:"bxt-input-extra"},[_vm._v(_vm._s(item.limitInfo))])])]):_vm._e()])}),0):_vm._e(),(_vm.isShowDuty && _vm.terms && _vm.terms.length)?_vm._l((_vm.terms),function(item,termsIndex){return _c('div',{key:item.contentId + termsIndex,staticClass:"bxt-bg-f",on:{"click":function($event){return _vm.toggle(item)}}},[_c('div',{staticClass:"bxt-content bxt-bb1"},[_c('div',{staticClass:"bxt-block-term"},[_c('span',{staticClass:"bxt-mr15 bxt-flex1 bxt-fs30 bxt-lh12"},[_vm._v(_vm._s(item.name))]),_c('div',{staticClass:"bxt-flex-center bxt-fs13"},[_c('span',{staticClass:"bxt-value"},[_vm._v(_vm._s(item.termValue))]),(!!item.content)?[(item.toggle)?[_c('bxs-icon',{staticClass:"bxt-icon",attrs:{"name":"arrow-up"}})]:[_c('bxs-icon',{staticClass:"bxt-icon",attrs:{"name":"arrow-down"}})]]:_vm._e()],2)]),(!!item.content)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(item.toggle),expression:"item.toggle"}],staticClass:"bxt-des",domProps:{"innerHTML":_vm._s(item.content)}}):_vm._e()])])}):_vm._e(),(_vm.showFooter)?_c('div',{ref:"footer"},[_vm._t("footer",[_c('div',{staticClass:"bxt-sheets-footer"},[_c('footer',{staticClass:"bxt-footer"},[_c('span',{staticClass:"bxt-btn",on:{"click":_vm.sureInsureCalculate}},[_vm._v("确定")])])])])],2):_vm._e(),_c('bxs-profession-list',{attrs:{"async-columns-params":_vm.asyncColumnsParams,"readonly":"","prevent-scroll-through":true},model:{value:(_vm.isShowProfession),callback:function ($$v) {_vm.isShowProfession=$$v},expression:"isShowProfession"}}),_c('bxs-area',{attrs:{"area-select":_vm.defaultArea,"area-data":_vm.areaData},on:{"confirm":_vm.confirmArea},model:{value:(_vm.isShowArea),callback:function ($$v) {_vm.isShowArea=$$v},expression:"isShowArea"}})],2)}
|
|
6739
6610
|
var staticRenderFns = []
|
|
6740
6611
|
|
|
6741
6612
|
|
|
6742
|
-
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=template&id=
|
|
6613
|
+
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=template&id=1fa56244&
|
|
6743
6614
|
|
|
6744
6615
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
6745
6616
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -6748,13 +6619,13 @@ var tslib_es6 = __webpack_require__(0);
|
|
|
6748
6619
|
var vue_property_decorator = __webpack_require__(2);
|
|
6749
6620
|
|
|
6750
6621
|
// EXTERNAL MODULE: ./src/js/utils.js
|
|
6751
|
-
var utils = __webpack_require__(
|
|
6622
|
+
var utils = __webpack_require__(50);
|
|
6752
6623
|
|
|
6753
6624
|
// EXTERNAL MODULE: external {"root":"bxs","commonjs":"bxs-ui-vue","commonjs2":"bxs-ui-vue","amd":"bxs-ui-vue"}
|
|
6754
|
-
var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ = __webpack_require__(
|
|
6625
|
+
var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ = __webpack_require__(4);
|
|
6755
6626
|
|
|
6756
6627
|
// EXTERNAL MODULE: ./node_modules/bxs-ui-vue/lib/index.css
|
|
6757
|
-
var lib = __webpack_require__(
|
|
6628
|
+
var lib = __webpack_require__(64);
|
|
6758
6629
|
|
|
6759
6630
|
// EXTERNAL MODULE: ./packages/bxs-utils/index.js + 4 modules
|
|
6760
6631
|
var bxs_utils = __webpack_require__(11);
|
|
@@ -6873,9 +6744,7 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
6873
6744
|
}
|
|
6874
6745
|
this.hasInit = true;
|
|
6875
6746
|
var postParams = {
|
|
6876
|
-
current_data: this.hasCalculateData
|
|
6877
|
-
? this.calculateData.current_data
|
|
6878
|
-
: null,
|
|
6747
|
+
current_data: this.hasCalculateData ? this.calculateData.current_data : null,
|
|
6879
6748
|
product_id: this.productId,
|
|
6880
6749
|
scenario: 'h5Widget'
|
|
6881
6750
|
};
|
|
@@ -7040,20 +6909,12 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7040
6909
|
var currTarget = item;
|
|
7041
6910
|
var orginTarget;
|
|
7042
6911
|
if (currTarget.duty) {
|
|
7043
|
-
orginTarget = self.widgets.find(function (item) {
|
|
7044
|
-
return item.riskCode === currTarget.riskCode &&
|
|
7045
|
-
item.key === currTarget.key &&
|
|
7046
|
-
item.duty === currTarget.duty;
|
|
7047
|
-
});
|
|
6912
|
+
orginTarget = self.widgets.find(function (item) { return item.riskCode === currTarget.riskCode && item.key === currTarget.key && item.duty === currTarget.duty; });
|
|
7048
6913
|
}
|
|
7049
6914
|
else {
|
|
7050
|
-
orginTarget = this.widgets.find(function (item) {
|
|
7051
|
-
return item.riskCode === currTarget.riskCode && item.key === currTarget.key;
|
|
7052
|
-
});
|
|
6915
|
+
orginTarget = this.widgets.find(function (item) { return item.riskCode === currTarget.riskCode && item.key === currTarget.key; });
|
|
7053
6916
|
}
|
|
7054
|
-
var defaultValue = item.index
|
|
7055
|
-
? [item.opts[item.key][item.index].name]
|
|
7056
|
-
: [null];
|
|
6917
|
+
var defaultValue = item.index ? [item.opts[item.key][item.index].name] : [null];
|
|
7057
6918
|
self.$picker({
|
|
7058
6919
|
title: item.label,
|
|
7059
6920
|
valueKey: 'name',
|
|
@@ -7077,12 +6938,8 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7077
6938
|
console.log('openSelectNumberRangePicker', item);
|
|
7078
6939
|
var self = this;
|
|
7079
6940
|
var currTarget = item;
|
|
7080
|
-
var orginTarget = self.widgets.find(function (item) {
|
|
7081
|
-
|
|
7082
|
-
});
|
|
7083
|
-
var defaultValue = item.index
|
|
7084
|
-
? [item.opts[item.key][item.index].name]
|
|
7085
|
-
: [null];
|
|
6941
|
+
var orginTarget = self.widgets.find(function (item) { return item.riskCode === currTarget.riskCode && item.key === currTarget.key; });
|
|
6942
|
+
var defaultValue = item.index ? [item.opts[item.key][item.index].name] : [null];
|
|
7086
6943
|
self.$picker({
|
|
7087
6944
|
title: item.label,
|
|
7088
6945
|
valueKey: 'name',
|
|
@@ -7122,9 +6979,7 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7122
6979
|
console.log('openDatePicker', item);
|
|
7123
6980
|
var self = this;
|
|
7124
6981
|
var currTarget = item;
|
|
7125
|
-
var orginTarget = self.widgets.find(function (item) {
|
|
7126
|
-
return item.riskCode === currTarget.riskCode && item.key === currTarget.key;
|
|
7127
|
-
});
|
|
6982
|
+
var orginTarget = self.widgets.find(function (item) { return item.riskCode === currTarget.riskCode && item.key === currTarget.key; });
|
|
7128
6983
|
var defaultValue = item.current && item.current.v ? new Date(item.current.v) : new Date();
|
|
7129
6984
|
self.$datetime({
|
|
7130
6985
|
title: item.label,
|
|
@@ -7144,16 +6999,10 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7144
6999
|
var currClickItem = it;
|
|
7145
7000
|
var orginTarget;
|
|
7146
7001
|
if (currTarget.duty) {
|
|
7147
|
-
orginTarget = this.widgets.find(function (item) {
|
|
7148
|
-
return item.riskCode === currTarget.riskCode &&
|
|
7149
|
-
item.key === currTarget.key &&
|
|
7150
|
-
item.duty === currTarget.duty;
|
|
7151
|
-
});
|
|
7002
|
+
orginTarget = this.widgets.find(function (item) { return item.riskCode === currTarget.riskCode && item.key === currTarget.key && item.duty === currTarget.duty; });
|
|
7152
7003
|
}
|
|
7153
7004
|
else {
|
|
7154
|
-
orginTarget = this.widgets.find(function (item) {
|
|
7155
|
-
return item.riskCode === currTarget.riskCode && item.key === currTarget.key;
|
|
7156
|
-
});
|
|
7005
|
+
orginTarget = this.widgets.find(function (item) { return item.riskCode === currTarget.riskCode && item.key === currTarget.key; });
|
|
7157
7006
|
}
|
|
7158
7007
|
orginTarget.current.v = currClickItem.value;
|
|
7159
7008
|
this.handleSaveCalculate(item);
|
|
@@ -7163,8 +7012,7 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7163
7012
|
var currValue = Number(item.current.v);
|
|
7164
7013
|
var self = this;
|
|
7165
7014
|
if (currValue < item.minValue || currValue > item.maxValue) {
|
|
7166
|
-
item.errorMessage =
|
|
7167
|
-
'请输入' + item.minValue + '到' + item.maxValue + '之间的整数';
|
|
7015
|
+
item.errorMessage = '请输入' + item.minValue + '到' + item.maxValue + '之间的整数';
|
|
7168
7016
|
}
|
|
7169
7017
|
else if (currValue % item.step !== 0) {
|
|
7170
7018
|
item.errorMessage = '请输入' + item.step + '的倍数';
|
|
@@ -7213,25 +7061,18 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7213
7061
|
widgets.forEach(function (item) {
|
|
7214
7062
|
var current;
|
|
7215
7063
|
if (item.duty) {
|
|
7216
|
-
item.current = current = currentData.find(function (it) {
|
|
7217
|
-
return it.k === item.key && it.risk === item.riskCode && item.duty === it.d;
|
|
7218
|
-
});
|
|
7064
|
+
item.current = current = currentData.find(function (it) { return it.k === item.key && it.risk === item.riskCode && item.duty === it.d; });
|
|
7219
7065
|
}
|
|
7220
7066
|
else {
|
|
7221
7067
|
item.current = current = currentData.find(function (it) { return it.k === item.key && it.risk === item.riskCode; });
|
|
7222
7068
|
}
|
|
7223
|
-
if ((item.type === 'select' || item.type === 'input') &&
|
|
7224
|
-
item.opts &&
|
|
7225
|
-
item.opts[item.key]) {
|
|
7069
|
+
if ((item.type === 'select' || item.type === 'input') && item.opts && item.opts[item.key]) {
|
|
7226
7070
|
var isNumberRange = item.opts[item.key].some(function (it) { return it.opt_type === 'number_range'; });
|
|
7227
7071
|
if (isNumberRange) {
|
|
7228
7072
|
item.type = item.type + "_number_range";
|
|
7229
7073
|
}
|
|
7230
7074
|
}
|
|
7231
|
-
if (item.type === 'select' &&
|
|
7232
|
-
item.key === 'detail_age' &&
|
|
7233
|
-
current &&
|
|
7234
|
-
current.sv) {
|
|
7075
|
+
if (item.type === 'select' && item.key === 'detail_age' && current && current.sv) {
|
|
7235
7076
|
item.current.v = current.sv;
|
|
7236
7077
|
}
|
|
7237
7078
|
if (~item.key.indexOf('#')) {
|
|
@@ -7475,8 +7316,7 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7475
7316
|
if (item.index === undefined) {
|
|
7476
7317
|
currentData.push(item.current);
|
|
7477
7318
|
}
|
|
7478
|
-
else if ((item.index || Number(item.index) === 0) &&
|
|
7479
|
-
!item.showInput) {
|
|
7319
|
+
else if ((item.index || Number(item.index) === 0) && !item.showInput) {
|
|
7480
7320
|
var temp = JSON.parse(JSON.stringify(item.current));
|
|
7481
7321
|
temp.v = item.opts[item.key][item.index].value;
|
|
7482
7322
|
currentData.push(temp);
|
|
@@ -7513,19 +7353,14 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7513
7353
|
this.isDevelop = this.isDev;
|
|
7514
7354
|
}
|
|
7515
7355
|
if (this.isDevelop) {
|
|
7516
|
-
this.getCalculateApi =
|
|
7517
|
-
|
|
7518
|
-
this.getAreaCodeApi =
|
|
7519
|
-
'https://insurance2a-api.wyins.net.cn/api/product/data/getAreaCode';
|
|
7356
|
+
this.getCalculateApi = 'https://insurance2a-api.wyins.net.cn/api/product/data/calculate';
|
|
7357
|
+
this.getAreaCodeApi = 'https://insurance2a-api.wyins.net.cn/api/product/data/getAreaCode';
|
|
7520
7358
|
this.getUuidApi = 'http://app.winbaoxian.cn/planBook/common/currentUser';
|
|
7521
7359
|
}
|
|
7522
7360
|
else {
|
|
7523
|
-
this.getCalculateApi =
|
|
7524
|
-
|
|
7525
|
-
this.
|
|
7526
|
-
'https://insurance2a-api.wyins.net/api/product/data/getAreaCode';
|
|
7527
|
-
this.getUuidApi =
|
|
7528
|
-
'https://app.winbaoxian.com/planBook/common/currentUser';
|
|
7361
|
+
this.getCalculateApi = 'https://insurance2a-api.wyins.net/api/product/data/calculate';
|
|
7362
|
+
this.getAreaCodeApi = 'https://insurance2a-api.wyins.net/api/product/data/getAreaCode';
|
|
7363
|
+
this.getUuidApi = 'https://app.winbaoxian.com/planBook/common/currentUser';
|
|
7529
7364
|
}
|
|
7530
7365
|
};
|
|
7531
7366
|
Object(tslib_es6["c" /* __decorate */])([
|
|
@@ -7618,10 +7453,10 @@ var insure_calculatevue_type_script_lang_ts_InsureCalculate = (function (_super)
|
|
|
7618
7453
|
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue?vue&type=script&lang=ts&
|
|
7619
7454
|
/* harmony default export */ var packages_insure_calculatevue_type_script_lang_ts_ = (insure_calculatevue_type_script_lang_ts_);
|
|
7620
7455
|
// EXTERNAL MODULE: ./packages/insure-calculate/index.vue?vue&type=style&index=0&lang=css&
|
|
7621
|
-
var insure_calculatevue_type_style_index_0_lang_css_ = __webpack_require__(
|
|
7456
|
+
var insure_calculatevue_type_style_index_0_lang_css_ = __webpack_require__(65);
|
|
7622
7457
|
|
|
7623
7458
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
7624
|
-
var componentNormalizer = __webpack_require__(
|
|
7459
|
+
var componentNormalizer = __webpack_require__(8);
|
|
7625
7460
|
|
|
7626
7461
|
// CONCATENATED MODULE: ./packages/insure-calculate/index.vue
|
|
7627
7462
|
|