bxs-tools-ui 1.3.4 → 1.3.6

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.
@@ -1483,268 +1483,6 @@ module.exports = {
1483
1483
  /* 6 */
1484
1484
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1485
1485
 
1486
- "use strict";
1487
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return initInsuranceData; });
1488
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insuranceDataHandler; });
1489
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initElementValidateRules; });
1490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return restrictElementsInInsurance; });
1491
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1492
- /* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
1493
-
1494
-
1495
- function initInsuranceData(insData) {
1496
- if (!insData || !insData.eleOrderList) {
1497
- return;
1498
- }
1499
- if (insData.account && insData.accountData && insData.accountData.accountPart) {
1500
- insData.accountData.addAndTakeData = insData.accountData.addAndTakeData || [];
1501
- if (!insData.accountData.addAndTakeData.length) {
1502
- insData.accountData.addAndTakeData.push({
1503
- key: 'add',
1504
- adjustData: []
1505
- });
1506
- if (['addAndTake', 'take'].includes(insData.accountData.accountPart)) {
1507
- insData.accountData.addAndTakeData.push({
1508
- key: 'take',
1509
- adjustData: []
1510
- });
1511
- }
1512
- }
1513
- }
1514
- if (insData.reduceBaof && !insData.reduceBaofData) {
1515
- insData.reduceBaofData = {
1516
- accountPart: 'take',
1517
- addAndTakeData: [
1518
- {
1519
- key: 'take',
1520
- adjustData: []
1521
- }
1522
- ]
1523
- };
1524
- }
1525
- insData.eleOrderList.forEach(function (e) {
1526
- switch (e.key) {
1527
- case 'title':
1528
- e.isDisabled = e.isDisabled || null;
1529
- e.isHide = e.isHide || null;
1530
- break;
1531
- case 'baoe':
1532
- e.placeholder = e.placeholder || '请输入保额';
1533
- break;
1534
- case 'baof':
1535
- e.placeholder = e.placeholder || '请输入保费';
1536
- break;
1537
- }
1538
- if (e.optConf && e.optConf.length && e.optConf[1]) {
1539
- var options = [];
1540
- for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
1541
- options.push({
1542
- val: e.optConf[2] && e.optConf[2].valfix ? "" + i + e.optConf[2].valfix : i,
1543
- desc: e.optConf[2] && e.optConf[2].desc ? e.optConf[2].desc.replace(/{{&&}}/, i) : i
1544
- });
1545
- }
1546
- e.opts = options;
1547
- }
1548
- if (e.opts && e.opts.length) {
1549
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1550
- }
1551
- });
1552
- }
1553
- function insuranceDataHandler(insData, productData) {
1554
- if (!insData || !insData.eleOrderList) {
1555
- return insData;
1556
- }
1557
- if (insData.reduceBaof) {
1558
- insData.reduceBaofData = insData.reduceBaofData || null;
1559
- }
1560
- insData.eleOrderList.forEach(function (ele) {
1561
- ele.isDisabled = ele.isDisabled || null;
1562
- ele.isHide = ele.isHide || null;
1563
- ele.isIgnoreValidate = ele.isIgnoreValidate || null;
1564
- ele.rules = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __spreadArrays */ "g"])(initElementValidateRules(ele, productData));
1565
- });
1566
- var calMethod = insData.eleOrderList.find(function (e) { return e.key === 'calMethod'; });
1567
- var baoe = insData.eleOrderList.find(function (e) { return e.key === 'baoe'; });
1568
- var baof = insData.eleOrderList.find(function (e) { return e.key === 'baof'; });
1569
- var plan = insData.eleOrderList.find(function (e) { return e.key === 'plan'; });
1570
- if (!calMethod && baoe && plan) {
1571
- insData.showPlanDesc = !!baoe.isHide;
1572
- }
1573
- if (calMethod && baoe && baof) {
1574
- baoe.isHide = calMethod.value !== 'baoe2baof';
1575
- baof.isHide = calMethod.value === 'baoe2baof';
1576
- }
1577
- return insData;
1578
- }
1579
- function initElementValidateRules(ele, productData) {
1580
- var rules = [];
1581
- if (['cmCommonInput'].indexOf(String(ele.componentName)) !== -1) {
1582
- rules = [
1583
- {
1584
- required: ele.required !== false,
1585
- message: "\u8BF7\u8F93\u5165" + (ele.labelName || '') + "\u503C"
1586
- },
1587
- {
1588
- pattern: ele.regExp ? eval(String(ele.regExp)) : /^\d*$/,
1589
- message: ele.regExpMessage || (ele.regExp ? '输入不合法,请重新输入' : '请输入整数值')
1590
- }
1591
- ];
1592
- }
1593
- var min = 0;
1594
- var max = 0;
1595
- if (ele.min && !isNaN(Number(ele.min))) {
1596
- min = ele.min;
1597
- }
1598
- if (ele.max && !isNaN(Number(ele.max))) {
1599
- max = ele.max;
1600
- }
1601
- if (min || max) {
1602
- var message = '';
1603
- if (min && max) {
1604
- message = "\u8BF7\u8F93\u5165" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(min) + "~" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(max) + "\u4E4B\u95F4\u7684\u6570\u503C";
1605
- }
1606
- else if (!min) {
1607
- message = "\u8BF7\u8F93\u5165\u4E0D\u5927\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(max) + "\u7684\u6570\u503C";
1608
- }
1609
- else if (!max) {
1610
- message = "\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(min) + "\u7684\u6570\u503C";
1611
- }
1612
- rules.push({
1613
- type: 'number',
1614
- min: min || -Infinity,
1615
- max: max || Infinity,
1616
- message: message,
1617
- validator: function (rule, value) {
1618
- return !value || (value >= rule.min && value <= rule.max);
1619
- }
1620
- });
1621
- }
1622
- if (ele.multi && !isNaN(Number(ele.multi))) {
1623
- rules.push({
1624
- multiple: ele.multi,
1625
- message: "\u8BF7\u8F93\u5165" + ele.multi + "\u500D\u6570",
1626
- validator: function (rule, value) {
1627
- return !value || !(value % rule.multiple);
1628
- }
1629
- });
1630
- }
1631
- if (ele.compareItem &&
1632
- ele.compareItem.length &&
1633
- ele.compareItem.length >= 3 &&
1634
- productData &&
1635
- productData.mulInsOrderList) {
1636
- var item1_1 = ele.compareItem[0].match(/(.{1,})\.(.{1,})/);
1637
- var item2_1 = ele.compareItem[2].match(/(.{1,})\.(.{1,})/);
1638
- var insurance1 = void 0, insurance2 = void 0, insTitle1 = void 0, insTitle2 = void 0, itemValue1 = void 0, itemValue2 = void 0;
1639
- if (item1_1 && item2_1) {
1640
- insurance1 = productData.mulInsOrderList.find(function (ins) { return ins.key + '' === item1_1[1]; });
1641
- insurance2 = productData.mulInsOrderList.find(function (ins) { return ins.key + '' === item2_1[1]; });
1642
- }
1643
- if (insurance1 && insurance1.eleOrderList) {
1644
- insTitle1 = insurance1.eleOrderList.find(function (e) { return e.key === 'title'; });
1645
- if (insTitle1 && insTitle1.value) {
1646
- itemValue1 = insurance1.eleOrderList.find(function (e) { return e.key === item1_1[2]; });
1647
- }
1648
- }
1649
- if (insurance2 && insurance2.eleOrderList) {
1650
- insTitle2 = insurance2.eleOrderList.find(function (e) { return e.key === 'title'; });
1651
- if (insTitle2 && insTitle2.value) {
1652
- itemValue2 = insurance2.eleOrderList.find(function (e) { return e.key === item2_1[2]; });
1653
- }
1654
- }
1655
- if (itemValue1 && itemValue1.value && itemValue2 && itemValue2.value && ele.compareItem[1]) {
1656
- rules.push({
1657
- value1: itemValue1.value,
1658
- value2: itemValue2.value,
1659
- operator: ele.compareItem[1],
1660
- message: ele.compareItem[3] || '数据输入有误',
1661
- validator: function (rule) {
1662
- var bool = false;
1663
- var value1 = rule.value1;
1664
- var value2 = rule.value2;
1665
- var operator = rule.operator;
1666
- switch (operator) {
1667
- case '<=':
1668
- bool = value1 <= value2;
1669
- break;
1670
- case '>=':
1671
- bool = value1 >= value2;
1672
- break;
1673
- case '<':
1674
- bool = value1 < value2;
1675
- break;
1676
- case '>':
1677
- bool = value1 > value2;
1678
- break;
1679
- default:
1680
- bool = value1 <= value2;
1681
- }
1682
- return bool;
1683
- }
1684
- });
1685
- }
1686
- }
1687
- return rules;
1688
- }
1689
- function restrictElementsInInsurance(_a) {
1690
- var personOrderList = _a.personOrderList, insData = _a.insData, eleData = _a.eleData;
1691
- var errorMsg = '';
1692
- if (insData && eleData && eleData.restrictions) {
1693
- var insuredInfo = personOrderList && personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
1694
- var insuranceInfo = Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* convertEleOrderListToObj */ "c"])(insData);
1695
- var verifyData_1;
1696
- if (insuredInfo) {
1697
- verifyData_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({ sex: insuredInfo.sex, age: insuredInfo.age }, insuranceInfo);
1698
- }
1699
- var eleRestricts = eleData.restrictions.filter(function (restrict) {
1700
- return Object.keys(restrict).every(function (ele) {
1701
- return ((ele === 'age' &&
1702
- verifyData_1[ele] &&
1703
- verifyData_1[ele] >= restrict[ele][0] &&
1704
- verifyData_1[ele] <= restrict[ele][1]) ||
1705
- ele === eleData.key ||
1706
- ((restrict[ele].constructor === String || restrict[ele].constructor === Number) &&
1707
- verifyData_1[ele] == restrict[ele]) ||
1708
- (restrict[ele].constructor === Array && restrict[ele].find(function (r) { return r == verifyData_1[ele]; })));
1709
- });
1710
- });
1711
- var valRange_1 = eleRestricts && eleRestricts[0] && eleRestricts[0][eleData.key];
1712
- if (valRange_1 && valRange_1.length) {
1713
- if (eleData.opts) {
1714
- eleData.opts.forEach(function (o) {
1715
- if (!valRange_1.find(function (v) { return v.val === o.val; })) {
1716
- o.isInvalid = true;
1717
- }
1718
- });
1719
- if (!eleData.opts.find(function (opt) { return !opt.isHide && !opt.isDisabled && !opt.isInvalid && opt.val == eleData.value; })) {
1720
- var opt = eleData.opts.find(function (o) { return o.val == eleData.value; });
1721
- errorMsg = "\u5F53\u524D\u6761\u4EF6\u4E0B, \u6CA1\u6709" + eleData.labelName + (opt ? opt.desc : '') + "\u9009\u9879, \u5DF2\u81EA\u52A8\u5207\u6362";
1722
- }
1723
- }
1724
- else if (valRange_1[0] || valRange_1[1]) {
1725
- var rangeMsg = "\u5F53\u524D\u6761\u4EF6\u4E0B, " + insData.name + "\u7684" + eleData.labelName + "\u503C";
1726
- var minMsg = "\u4E0D\u5F97\u5C0F\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(valRange_1[0]);
1727
- var maxMsg = "\u4E0D\u5F97\u5927\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(valRange_1[1]);
1728
- if (valRange_1[0] && valRange_1[1] && (eleData.value < valRange_1[0] || eleData.value > valRange_1[1])) {
1729
- errorMsg = "" + rangeMsg + minMsg + "\u4E14" + maxMsg;
1730
- }
1731
- else if (valRange_1[0] && eleData.value < valRange_1[0]) {
1732
- errorMsg = "" + rangeMsg + minMsg;
1733
- }
1734
- else if (valRange_1[1] && eleData.value > valRange_1[1]) {
1735
- errorMsg = "" + rangeMsg + maxMsg;
1736
- }
1737
- }
1738
- }
1739
- }
1740
- return errorMsg;
1741
- }
1742
-
1743
-
1744
- /***/ }),
1745
- /* 7 */
1746
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1747
-
1748
1486
  "use strict";
1749
1487
  // ESM COMPAT FLAG
1750
1488
  __webpack_require__.r(__webpack_exports__);
@@ -2184,9 +1922,158 @@ function tranlateCurrentData(currentData, planParams) {
2184
1922
  */
2185
1923
 
2186
1924
 
2187
- function insureCalculate(urlParams, postParams, planParams) {
1925
+ function insureCalculate(urlParams, postParams, planParams) {
1926
+ if (!postParams || typeof_default()(postParams) !== 'object' || !postParams.product_id) {
1927
+ return postParams;
1928
+ }
1929
+
1930
+ if (postParams && !postParams.scenario) {
1931
+ postParams.scenario = 'h5Widget';
1932
+ }
1933
+
1934
+ var url = '/api/product/data/calculate';
1935
+
1936
+ if (urlParams && urlParams.uuid) {
1937
+ url += "?userUuid=".concat(urlParams.uuid);
1938
+ } else if (urlParams && urlParams.openId) {
1939
+ url += "?userUuid=".concat(urlParams.openId);
1940
+ }
1941
+
1942
+ if (urlParams && urlParams.appid) {
1943
+ if (url.indexOf('?') > -1) {
1944
+ url += "&appId=".concat(urlParams.appid);
1945
+ } else {
1946
+ url += "?appId=".concat(urlParams.appid);
1947
+ }
1948
+ }
1949
+
1950
+ if (hasPlanParams(planParams) && postParams.current_data) {
1951
+ postParams.current_data = tranlateCurrentData(postParams.current_data, planParams);
1952
+ }
1953
+
1954
+ return new Promise(function (resolve, reject) {
1955
+ request({
1956
+ baseURL: baseURL,
1957
+ url: url,
1958
+ method: 'POST',
1959
+ urlParams: urlParams,
1960
+ data: postParams
1961
+ }).then(function (res) {
1962
+ if (res.code === 200) {
1963
+ var data = JSON.parse(JSON.stringify(res.data));
1964
+
1965
+ if (hasPlanParams(planParams)) {
1966
+ var widgets = data.widgets;
1967
+ var currentData = data.current_data;
1968
+ translatePlanData(widgets, currentData, planParams);
1969
+ }
1970
+
1971
+ var cData = {
1972
+ widgets: data.widgets,
1973
+ total_premium: data.total_premium,
1974
+ terms: data.terms,
1975
+ product_id: data.product_id,
1976
+ current_data: data.current_data,
1977
+ risk_premiums: data.risk_premiums
1978
+ };
1979
+ resolve({
1980
+ code: 200,
1981
+ data: cData
1982
+ });
1983
+ } else {
1984
+ reject(res);
1985
+ }
1986
+ }).catch(function (err) {
1987
+ reject(err);
1988
+ });
1989
+ });
1990
+ }
1991
+ /**
1992
+ * **检查险种计算**
1993
+ * @author watson
1994
+ * @date 2022-04-26
1995
+ * @param {object} urlParams 接口URL上面的参数,c端必传uuid
1996
+ * @param {object} postParams 试算用的参数,product_id, current_data 和 scenario: 'h5Widget'
1997
+ * @param {object} planParams 计划书初始化参数
1998
+ * @returns {promise} 试算结果
1999
+ */
2000
+
2001
+ function checkInsureCalculate(_x, _x2, _x3) {
2002
+ return _checkInsureCalculate.apply(this, arguments);
2003
+ }
2004
+ /**
2005
+ * 描述
2006
+ * @ignore
2007
+ * @author watson
2008
+ * @date 2022-04-26
2009
+ * @param {object} urlParams
2010
+ * @param {object} postParams
2011
+ * @param {object} planParams
2012
+ * @returns {promise}
2013
+ */
2014
+
2015
+ function _checkInsureCalculate() {
2016
+ _checkInsureCalculate = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(urlParams, postParams, planParams) {
2017
+ var res, data;
2018
+ return regenerator_default.a.wrap(function _callee$(_context) {
2019
+ while (1) {
2020
+ switch (_context.prev = _context.next) {
2021
+ case 0:
2022
+ _context.next = 2;
2023
+ return checkInsureCalculateIn(urlParams, postParams, planParams);
2024
+
2025
+ case 2:
2026
+ res = _context.sent;
2027
+
2028
+ if (!(postParams && !postParams.current_data)) {
2029
+ _context.next = 15;
2030
+ break;
2031
+ }
2032
+
2033
+ data = JSON.parse(JSON.stringify(res.data));
2034
+ postParams.current_data = data.current_data; // 重新试算
2035
+
2036
+ _context.prev = 6;
2037
+ _context.next = 9;
2038
+ return checkInsureCalculateIn(urlParams, postParams, planParams);
2039
+
2040
+ case 9:
2041
+ res = _context.sent;
2042
+ _context.next = 15;
2043
+ break;
2044
+
2045
+ case 12:
2046
+ _context.prev = 12;
2047
+ _context.t0 = _context["catch"](6);
2048
+ res = _context.t0;
2049
+
2050
+ case 15:
2051
+ if (!(res && res.code === 200)) {
2052
+ _context.next = 19;
2053
+ break;
2054
+ }
2055
+
2056
+ return _context.abrupt("return", res);
2057
+
2058
+ case 19:
2059
+ return _context.abrupt("return", Promise.reject(res));
2060
+
2061
+ case 20:
2062
+ case "end":
2063
+ return _context.stop();
2064
+ }
2065
+ }
2066
+ }, _callee, null, [[6, 12]]);
2067
+ }));
2068
+ return _checkInsureCalculate.apply(this, arguments);
2069
+ }
2070
+
2071
+ function checkInsureCalculateIn(urlParams, postParams, planParams) {
2188
2072
  if (!postParams || typeof_default()(postParams) !== 'object' || !postParams.product_id) {
2189
- return postParams;
2073
+ return Promise.reject({
2074
+ code: 400,
2075
+ msg: 'postParams参数非法'
2076
+ });
2190
2077
  }
2191
2078
 
2192
2079
  if (postParams && !postParams.scenario) {
@@ -2207,193 +2094,306 @@ function insureCalculate(urlParams, postParams, planParams) {
2207
2094
  } else {
2208
2095
  url += "?appId=".concat(urlParams.appid);
2209
2096
  }
2210
- }
2211
-
2212
- if (hasPlanParams(planParams) && postParams.current_data) {
2213
- postParams.current_data = tranlateCurrentData(postParams.current_data, planParams);
2214
- }
2215
-
2216
- return new Promise(function (resolve, reject) {
2217
- request({
2218
- baseURL: baseURL,
2219
- url: url,
2220
- method: 'POST',
2221
- urlParams: urlParams,
2222
- data: postParams
2223
- }).then(function (res) {
2224
- if (res.code === 200) {
2225
- var data = JSON.parse(JSON.stringify(res.data));
2226
-
2227
- if (hasPlanParams(planParams)) {
2228
- var widgets = data.widgets;
2229
- var currentData = data.current_data;
2230
- translatePlanData(widgets, currentData, planParams);
2097
+ }
2098
+
2099
+ if (hasPlanParams(planParams) && postParams.current_data) {
2100
+ postParams.current_data = tranlateCurrentData(postParams.current_data, planParams);
2101
+ }
2102
+
2103
+ return new Promise(function (resolve, reject) {
2104
+ request({
2105
+ baseURL: baseURL,
2106
+ url: url,
2107
+ method: 'POST',
2108
+ urlParams: urlParams,
2109
+ data: postParams
2110
+ }).then(function (res) {
2111
+ if (res.code === 200) {
2112
+ // if (postParams && !postParams.current_data) {
2113
+ // let data = JSON.parse(JSON.stringify(res.data));
2114
+ // postParams.current_data = data.current_data
2115
+ // // 重新试算
2116
+ // checkInsureCalculate(urlParams, postParams, planParams)
2117
+ // }
2118
+ resolve({
2119
+ code: 200,
2120
+ data: res.data
2121
+ });
2122
+ } else {
2123
+ reject(res);
2124
+ }
2125
+ }).catch(function (err) {
2126
+ reject(err);
2127
+ });
2128
+ });
2129
+ }
2130
+ // CONCATENATED MODULE: ./packages/bxs-utils/trade/index.js
2131
+
2132
+ // CONCATENATED MODULE: ./packages/bxs-utils/index.ts
2133
+
2134
+
2135
+
2136
+
2137
+ /***/ }),
2138
+ /* 7 */
2139
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2140
+
2141
+ "use strict";
2142
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return initInsuranceData; });
2143
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insuranceDataHandler; });
2144
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return initElementValidateRules; });
2145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return restrictElementsInInsurance; });
2146
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2147
+ /* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
2148
+
2149
+
2150
+ function initInsuranceData(insData) {
2151
+ if (!insData || !insData.eleOrderList) {
2152
+ return;
2153
+ }
2154
+ if (insData.account && insData.accountData && insData.accountData.accountPart) {
2155
+ insData.accountData.addAndTakeData = insData.accountData.addAndTakeData || [];
2156
+ if (!insData.accountData.addAndTakeData.length) {
2157
+ insData.accountData.addAndTakeData.push({
2158
+ key: 'add',
2159
+ adjustData: []
2160
+ });
2161
+ if (['addAndTake', 'take'].includes(insData.accountData.accountPart)) {
2162
+ insData.accountData.addAndTakeData.push({
2163
+ key: 'take',
2164
+ adjustData: []
2165
+ });
2166
+ }
2167
+ }
2168
+ }
2169
+ if (insData.reduceBaof && !insData.reduceBaofData) {
2170
+ insData.reduceBaofData = {
2171
+ accountPart: 'take',
2172
+ addAndTakeData: [
2173
+ {
2174
+ key: 'take',
2175
+ adjustData: []
2176
+ }
2177
+ ]
2178
+ };
2179
+ }
2180
+ insData.eleOrderList.forEach(function (e) {
2181
+ switch (e.key) {
2182
+ case 'title':
2183
+ e.isDisabled = e.isDisabled || null;
2184
+ e.isHide = e.isHide || null;
2185
+ break;
2186
+ case 'baoe':
2187
+ e.placeholder = e.placeholder || '请输入保额';
2188
+ break;
2189
+ case 'baof':
2190
+ e.placeholder = e.placeholder || '请输入保费';
2191
+ break;
2192
+ }
2193
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
2194
+ var options = [];
2195
+ for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
2196
+ options.push({
2197
+ val: e.optConf[2] && e.optConf[2].valfix ? "" + i + e.optConf[2].valfix : i,
2198
+ desc: e.optConf[2] && e.optConf[2].desc ? e.optConf[2].desc.replace(/{{&&}}/, i) : i
2199
+ });
2200
+ }
2201
+ e.opts = options;
2202
+ }
2203
+ if (e.opts && e.opts.length) {
2204
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
2205
+ }
2206
+ });
2207
+ }
2208
+ function insuranceDataHandler(insData, productData) {
2209
+ if (!insData || !insData.eleOrderList) {
2210
+ return insData;
2211
+ }
2212
+ if (insData.reduceBaof) {
2213
+ insData.reduceBaofData = insData.reduceBaofData || null;
2214
+ }
2215
+ insData.eleOrderList.forEach(function (ele) {
2216
+ ele.isDisabled = ele.isDisabled || null;
2217
+ ele.isHide = ele.isHide || null;
2218
+ ele.isIgnoreValidate = ele.isIgnoreValidate || null;
2219
+ ele.rules = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __spreadArrays */ "g"])(initElementValidateRules(ele, productData));
2220
+ });
2221
+ var calMethod = insData.eleOrderList.find(function (e) { return e.key === 'calMethod'; });
2222
+ var baoe = insData.eleOrderList.find(function (e) { return e.key === 'baoe'; });
2223
+ var baof = insData.eleOrderList.find(function (e) { return e.key === 'baof'; });
2224
+ var plan = insData.eleOrderList.find(function (e) { return e.key === 'plan'; });
2225
+ if (!calMethod && baoe && plan) {
2226
+ insData.showPlanDesc = !!baoe.isHide;
2227
+ }
2228
+ if (calMethod && baoe && baof) {
2229
+ baoe.isHide = calMethod.value !== 'baoe2baof';
2230
+ baof.isHide = calMethod.value === 'baoe2baof';
2231
+ }
2232
+ return insData;
2233
+ }
2234
+ function initElementValidateRules(ele, productData) {
2235
+ var rules = [];
2236
+ if (['cmCommonInput'].indexOf(String(ele.componentName)) !== -1) {
2237
+ rules = [
2238
+ {
2239
+ required: ele.required !== false,
2240
+ message: "\u8BF7\u8F93\u5165" + (ele.labelName || '') + "\u503C"
2241
+ },
2242
+ {
2243
+ pattern: ele.regExp ? eval(String(ele.regExp)) : /^\d*$/,
2244
+ message: ele.regExpMessage || (ele.regExp ? '输入不合法,请重新输入' : '请输入整数值')
2245
+ }
2246
+ ];
2247
+ }
2248
+ var min = 0;
2249
+ var max = 0;
2250
+ if (ele.min && !isNaN(Number(ele.min))) {
2251
+ min = ele.min;
2252
+ }
2253
+ if (ele.max && !isNaN(Number(ele.max))) {
2254
+ max = ele.max;
2255
+ }
2256
+ if (min || max) {
2257
+ var message = '';
2258
+ if (min && max) {
2259
+ message = "\u8BF7\u8F93\u5165" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(min) + "~" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(max) + "\u4E4B\u95F4\u7684\u6570\u503C";
2260
+ }
2261
+ else if (!min) {
2262
+ message = "\u8BF7\u8F93\u5165\u4E0D\u5927\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(max) + "\u7684\u6570\u503C";
2263
+ }
2264
+ else if (!max) {
2265
+ message = "\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(min) + "\u7684\u6570\u503C";
2266
+ }
2267
+ rules.push({
2268
+ type: 'number',
2269
+ min: min || -Infinity,
2270
+ max: max || Infinity,
2271
+ message: message,
2272
+ validator: function (rule, value) {
2273
+ return !value || (value >= rule.min && value <= rule.max);
2274
+ }
2275
+ });
2276
+ }
2277
+ if (ele.multi && !isNaN(Number(ele.multi))) {
2278
+ rules.push({
2279
+ multiple: ele.multi,
2280
+ message: "\u8BF7\u8F93\u5165" + ele.multi + "\u500D\u6570",
2281
+ validator: function (rule, value) {
2282
+ return !value || !(value % rule.multiple);
2283
+ }
2284
+ });
2285
+ }
2286
+ if (ele.compareItem &&
2287
+ ele.compareItem.length &&
2288
+ ele.compareItem.length >= 3 &&
2289
+ productData &&
2290
+ productData.mulInsOrderList) {
2291
+ var item1_1 = ele.compareItem[0].match(/(.{1,})\.(.{1,})/);
2292
+ var item2_1 = ele.compareItem[2].match(/(.{1,})\.(.{1,})/);
2293
+ var insurance1 = void 0, insurance2 = void 0, insTitle1 = void 0, insTitle2 = void 0, itemValue1 = void 0, itemValue2 = void 0;
2294
+ if (item1_1 && item2_1) {
2295
+ insurance1 = productData.mulInsOrderList.find(function (ins) { return ins.key + '' === item1_1[1]; });
2296
+ insurance2 = productData.mulInsOrderList.find(function (ins) { return ins.key + '' === item2_1[1]; });
2297
+ }
2298
+ if (insurance1 && insurance1.eleOrderList) {
2299
+ insTitle1 = insurance1.eleOrderList.find(function (e) { return e.key === 'title'; });
2300
+ if (insTitle1 && insTitle1.value) {
2301
+ itemValue1 = insurance1.eleOrderList.find(function (e) { return e.key === item1_1[2]; });
2302
+ }
2303
+ }
2304
+ if (insurance2 && insurance2.eleOrderList) {
2305
+ insTitle2 = insurance2.eleOrderList.find(function (e) { return e.key === 'title'; });
2306
+ if (insTitle2 && insTitle2.value) {
2307
+ itemValue2 = insurance2.eleOrderList.find(function (e) { return e.key === item2_1[2]; });
2308
+ }
2309
+ }
2310
+ if (itemValue1 && itemValue1.value && itemValue2 && itemValue2.value && ele.compareItem[1]) {
2311
+ rules.push({
2312
+ value1: itemValue1.value,
2313
+ value2: itemValue2.value,
2314
+ operator: ele.compareItem[1],
2315
+ message: ele.compareItem[3] || '数据输入有误',
2316
+ validator: function (rule) {
2317
+ var bool = false;
2318
+ var value1 = rule.value1;
2319
+ var value2 = rule.value2;
2320
+ var operator = rule.operator;
2321
+ switch (operator) {
2322
+ case '<=':
2323
+ bool = value1 <= value2;
2324
+ break;
2325
+ case '>=':
2326
+ bool = value1 >= value2;
2327
+ break;
2328
+ case '<':
2329
+ bool = value1 < value2;
2330
+ break;
2331
+ case '>':
2332
+ bool = value1 > value2;
2333
+ break;
2334
+ default:
2335
+ bool = value1 <= value2;
2336
+ }
2337
+ return bool;
2338
+ }
2339
+ });
2340
+ }
2341
+ }
2342
+ return rules;
2343
+ }
2344
+ function restrictElementsInInsurance(_a) {
2345
+ var personOrderList = _a.personOrderList, insData = _a.insData, eleData = _a.eleData;
2346
+ var errorMsg = '';
2347
+ if (insData && eleData && eleData.restrictions) {
2348
+ var insuredInfo = personOrderList && personOrderList.find(function (p) { return p.key === 'insuredInfo'; });
2349
+ var insuranceInfo = Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* convertEleOrderListToObj */ "c"])(insData);
2350
+ var verifyData_1;
2351
+ if (insuredInfo) {
2352
+ verifyData_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({ sex: insuredInfo.sex, age: insuredInfo.age }, insuranceInfo);
2231
2353
  }
2232
-
2233
- var cData = {
2234
- widgets: data.widgets,
2235
- total_premium: data.total_premium,
2236
- terms: data.terms,
2237
- product_id: data.product_id,
2238
- current_data: data.current_data,
2239
- risk_premiums: data.risk_premiums
2240
- };
2241
- resolve({
2242
- code: 200,
2243
- data: cData
2354
+ var eleRestricts = eleData.restrictions.filter(function (restrict) {
2355
+ return Object.keys(restrict).every(function (ele) {
2356
+ return ((ele === 'age' &&
2357
+ verifyData_1[ele] &&
2358
+ verifyData_1[ele] >= restrict[ele][0] &&
2359
+ verifyData_1[ele] <= restrict[ele][1]) ||
2360
+ ele === eleData.key ||
2361
+ ((restrict[ele].constructor === String || restrict[ele].constructor === Number) &&
2362
+ verifyData_1[ele] == restrict[ele]) ||
2363
+ (restrict[ele].constructor === Array && restrict[ele].find(function (r) { return r == verifyData_1[ele]; })));
2364
+ });
2244
2365
  });
2245
- } else {
2246
- reject(res);
2247
- }
2248
- }).catch(function (err) {
2249
- reject(err);
2250
- });
2251
- });
2252
- }
2253
- /**
2254
- * **检查险种计算**
2255
- * @author watson
2256
- * @date 2022-04-26
2257
- * @param {object} urlParams 接口URL上面的参数,c端必传uuid
2258
- * @param {object} postParams 试算用的参数,product_id, current_data 和 scenario: 'h5Widget'
2259
- * @param {object} planParams 计划书初始化参数
2260
- * @returns {promise} 试算结果
2261
- */
2262
-
2263
- function checkInsureCalculate(_x, _x2, _x3) {
2264
- return _checkInsureCalculate.apply(this, arguments);
2265
- }
2266
- /**
2267
- * 描述
2268
- * @ignore
2269
- * @author watson
2270
- * @date 2022-04-26
2271
- * @param {object} urlParams
2272
- * @param {object} postParams
2273
- * @param {object} planParams
2274
- * @returns {promise}
2275
- */
2276
-
2277
- function _checkInsureCalculate() {
2278
- _checkInsureCalculate = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(urlParams, postParams, planParams) {
2279
- var res, data;
2280
- return regenerator_default.a.wrap(function _callee$(_context) {
2281
- while (1) {
2282
- switch (_context.prev = _context.next) {
2283
- case 0:
2284
- _context.next = 2;
2285
- return checkInsureCalculateIn(urlParams, postParams, planParams);
2286
-
2287
- case 2:
2288
- res = _context.sent;
2289
-
2290
- if (!(postParams && !postParams.current_data)) {
2291
- _context.next = 15;
2292
- break;
2366
+ var valRange_1 = eleRestricts && eleRestricts[0] && eleRestricts[0][eleData.key];
2367
+ if (valRange_1 && valRange_1.length) {
2368
+ if (eleData.opts) {
2369
+ eleData.opts.forEach(function (o) {
2370
+ if (!valRange_1.find(function (v) { return v.val === o.val; })) {
2371
+ o.isInvalid = true;
2372
+ }
2373
+ });
2374
+ if (!eleData.opts.find(function (opt) { return !opt.isHide && !opt.isDisabled && !opt.isInvalid && opt.val == eleData.value; })) {
2375
+ var opt = eleData.opts.find(function (o) { return o.val == eleData.value; });
2376
+ errorMsg = "\u5F53\u524D\u6761\u4EF6\u4E0B, \u6CA1\u6709" + eleData.labelName + (opt ? opt.desc : '') + "\u9009\u9879, \u5DF2\u81EA\u52A8\u5207\u6362";
2377
+ }
2293
2378
  }
2294
-
2295
- data = JSON.parse(JSON.stringify(res.data));
2296
- postParams.current_data = data.current_data; // 重新试算
2297
-
2298
- _context.prev = 6;
2299
- _context.next = 9;
2300
- return checkInsureCalculateIn(urlParams, postParams, planParams);
2301
-
2302
- case 9:
2303
- res = _context.sent;
2304
- _context.next = 15;
2305
- break;
2306
-
2307
- case 12:
2308
- _context.prev = 12;
2309
- _context.t0 = _context["catch"](6);
2310
- res = _context.t0;
2311
-
2312
- case 15:
2313
- if (!(res && res.code === 200)) {
2314
- _context.next = 19;
2315
- break;
2379
+ else if (valRange_1[0] || valRange_1[1]) {
2380
+ var rangeMsg = "\u5F53\u524D\u6761\u4EF6\u4E0B, " + insData.name + "\u7684" + eleData.labelName + "\u503C";
2381
+ var minMsg = "\u4E0D\u5F97\u5C0F\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(valRange_1[0]);
2382
+ var maxMsg = "\u4E0D\u5F97\u5927\u4E8E" + Object(_common__WEBPACK_IMPORTED_MODULE_1__[/* converUnit10000 */ "b"])(valRange_1[1]);
2383
+ if (valRange_1[0] && valRange_1[1] && (eleData.value < valRange_1[0] || eleData.value > valRange_1[1])) {
2384
+ errorMsg = "" + rangeMsg + minMsg + "\u4E14" + maxMsg;
2385
+ }
2386
+ else if (valRange_1[0] && eleData.value < valRange_1[0]) {
2387
+ errorMsg = "" + rangeMsg + minMsg;
2388
+ }
2389
+ else if (valRange_1[1] && eleData.value > valRange_1[1]) {
2390
+ errorMsg = "" + rangeMsg + maxMsg;
2391
+ }
2316
2392
  }
2317
-
2318
- return _context.abrupt("return", res);
2319
-
2320
- case 19:
2321
- return _context.abrupt("return", Promise.reject(res));
2322
-
2323
- case 20:
2324
- case "end":
2325
- return _context.stop();
2326
2393
  }
2327
- }
2328
- }, _callee, null, [[6, 12]]);
2329
- }));
2330
- return _checkInsureCalculate.apply(this, arguments);
2331
- }
2332
-
2333
- function checkInsureCalculateIn(urlParams, postParams, planParams) {
2334
- if (!postParams || typeof_default()(postParams) !== 'object' || !postParams.product_id) {
2335
- return Promise.reject({
2336
- code: 400,
2337
- msg: 'postParams参数非法'
2338
- });
2339
- }
2340
-
2341
- if (postParams && !postParams.scenario) {
2342
- postParams.scenario = 'h5Widget';
2343
- }
2344
-
2345
- var url = '/api/product/data/calculate';
2346
-
2347
- if (urlParams && urlParams.uuid) {
2348
- url += "?userUuid=".concat(urlParams.uuid);
2349
- } else if (urlParams && urlParams.openId) {
2350
- url += "?userUuid=".concat(urlParams.openId);
2351
- }
2352
-
2353
- if (urlParams && urlParams.appid) {
2354
- if (url.indexOf('?') > -1) {
2355
- url += "&appId=".concat(urlParams.appid);
2356
- } else {
2357
- url += "?appId=".concat(urlParams.appid);
2358
2394
  }
2359
- }
2360
-
2361
- if (hasPlanParams(planParams) && postParams.current_data) {
2362
- postParams.current_data = tranlateCurrentData(postParams.current_data, planParams);
2363
- }
2364
-
2365
- return new Promise(function (resolve, reject) {
2366
- request({
2367
- baseURL: baseURL,
2368
- url: url,
2369
- method: 'POST',
2370
- urlParams: urlParams,
2371
- data: postParams
2372
- }).then(function (res) {
2373
- if (res.code === 200) {
2374
- // if (postParams && !postParams.current_data) {
2375
- // let data = JSON.parse(JSON.stringify(res.data));
2376
- // postParams.current_data = data.current_data
2377
- // // 重新试算
2378
- // checkInsureCalculate(urlParams, postParams, planParams)
2379
- // }
2380
- resolve({
2381
- code: 200,
2382
- data: res.data
2383
- });
2384
- } else {
2385
- reject(res);
2386
- }
2387
- }).catch(function (err) {
2388
- reject(err);
2389
- });
2390
- });
2395
+ return errorMsg;
2391
2396
  }
2392
- // CONCATENATED MODULE: ./packages/bxs-utils/trade/index.js
2393
-
2394
- // CONCATENATED MODULE: ./packages/bxs-utils/index.ts
2395
-
2396
-
2397
2397
 
2398
2398
 
2399
2399
  /***/ }),
@@ -2526,6 +2526,7 @@ function initPersonData(inputData, verifyData) {
2526
2526
  return;
2527
2527
  }
2528
2528
  person.createArchive = person.createArchive || false;
2529
+ person.cid = person.cid || null;
2529
2530
  if (!person.eleOrderList.find(function (e) { return e.key === 'name'; })) {
2530
2531
  person.eleOrderList.splice(1, 0, {
2531
2532
  key: 'name',
@@ -2675,9 +2676,7 @@ function personDataHandler(allPersonsData) {
2675
2676
  if (['title', 'applicantAndInsuredSame'].includes(ele.key)) {
2676
2677
  return;
2677
2678
  }
2678
- if (insuredData.cid !== undefined) {
2679
- person.cid = applicantSame_1.value ? insuredData.cid : undefined;
2680
- }
2679
+ person.cid = applicantSame_1.value ? insuredData.cid : person.cid;
2681
2680
  if (applicantSame_1.value && insuredData.eleOrderList) {
2682
2681
  var insuredEle = insuredData.eleOrderList.find(function (e) { return e.key === ele.key; });
2683
2682
  if (insuredEle) {
@@ -3639,7 +3638,7 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
3639
3638
 
3640
3639
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "z", function() { return _product__WEBPACK_IMPORTED_MODULE_2__["j"]; });
3641
3640
 
3642
- /* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
3641
+ /* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
3643
3642
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "m", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["a"]; });
3644
3643
 
3645
3644
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "n", function() { return _insurance__WEBPACK_IMPORTED_MODULE_3__["b"]; });
@@ -3676,7 +3675,7 @@ if (document && document.cookie && document.cookie.match('LIZHAO_DEBUG_CONSOLE_F
3676
3675
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3677
3676
  /* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
3678
3677
  /* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
3679
- /* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
3678
+ /* harmony import */ var _insurance__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
3680
3679
 
3681
3680
 
3682
3681
 
@@ -7559,7 +7558,7 @@ module.exports = function spread(callback) {
7559
7558
 
7560
7559
  "use strict";
7561
7560
 
7562
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/form-item/title-item.vue?vue&type=template&id=0ca5c062&
7561
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/form-item/title-item.vue?vue&type=template&id=dade21e2&
7563
7562
  var render = function render() {
7564
7563
  var _vm = this,
7565
7564
  _c = _vm._self._c,
@@ -7583,7 +7582,7 @@ var render = function render() {
7583
7582
  style: {
7584
7583
  maxWidth: _vm.huomianTag ? '78%' : '100%'
7585
7584
  }
7586
- }, [_vm._v(_vm._s(_vm.label))]), _vm.isShowCrmPerson ? _c('span', {
7585
+ }, [_vm._v(_vm._s(_vm.label))]), _vm.isShowCrmModifyButton ? _c('span', {
7587
7586
  staticClass: "bxt-title-persion-modify",
7588
7587
  attrs: {
7589
7588
  "data-stat-id": _vm.dataStatId
@@ -7625,7 +7624,7 @@ var render = function render() {
7625
7624
 
7626
7625
  var staticRenderFns = [];
7627
7626
 
7628
- // CONCATENATED MODULE: ./packages/components/form-item/title-item.vue?vue&type=template&id=0ca5c062&
7627
+ // CONCATENATED MODULE: ./packages/components/form-item/title-item.vue?vue&type=template&id=dade21e2&
7629
7628
 
7630
7629
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
7631
7630
  var tslib_es6 = __webpack_require__(0);
@@ -7640,8 +7639,12 @@ var vue_property_decorator = __webpack_require__(2);
7640
7639
  // EXTERNAL MODULE: external {"root":"bxs","commonjs":"bxs-ui-vue","commonjs2":"bxs-ui-vue","amd":"bxs-ui-vue"}
7641
7640
  var external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_ = __webpack_require__(3);
7642
7641
 
7642
+ // EXTERNAL MODULE: ./packages/bxs-utils/index.ts + 3 modules
7643
+ var bxs_utils = __webpack_require__(6);
7644
+
7643
7645
  // CONCATENATED MODULE: ./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/form-item/title-item.vue?vue&type=script&lang=ts&
7644
- var _a;
7646
+ var title_itemvue_type_script_lang_ts_a;
7647
+
7645
7648
 
7646
7649
 
7647
7650
 
@@ -7656,6 +7659,15 @@ var title_itemvue_type_script_lang_ts_BxtTitleItem = (function (_super) {
7656
7659
  BxtTitleItem.prototype.watchValue = function (val) {
7657
7660
  this.currentValue = val;
7658
7661
  };
7662
+ Object.defineProperty(BxtTitleItem.prototype, "isShowCrmModifyButton", {
7663
+ get: function () {
7664
+ var _a = this, value = _a.value, personData = _a.personData, isShowCrmPerson = _a.isShowCrmPerson;
7665
+ var personInfo = Object(bxs_utils["convertEleOrderListToObj"])(personData);
7666
+ return isShowCrmPerson && value && (personData.key === 'insuredInfo' || !personInfo.applicantAndInsuredSame);
7667
+ },
7668
+ enumerable: false,
7669
+ configurable: true
7670
+ });
7659
7671
  BxtTitleItem.prototype.created = function () {
7660
7672
  this.currentValue = this.value;
7661
7673
  };
@@ -7671,6 +7683,12 @@ var title_itemvue_type_script_lang_ts_BxtTitleItem = (function (_super) {
7671
7683
  Object(vue_property_decorator["b" /* Model */])('input', {}),
7672
7684
  Object(tslib_es6["f" /* __metadata */])("design:type", Boolean)
7673
7685
  ], BxtTitleItem.prototype, "value", void 0);
7686
+ Object(tslib_es6["c" /* __decorate */])([
7687
+ Object(vue_property_decorator["c" /* Prop */])({
7688
+ default: {}
7689
+ }),
7690
+ Object(tslib_es6["f" /* __metadata */])("design:type", Object)
7691
+ ], BxtTitleItem.prototype, "personData", void 0);
7674
7692
  Object(tslib_es6["c" /* __decorate */])([
7675
7693
  Object(vue_property_decorator["c" /* Prop */])({
7676
7694
  default: false
@@ -7725,9 +7743,9 @@ var title_itemvue_type_script_lang_ts_BxtTitleItem = (function (_super) {
7725
7743
  BxtTitleItem = Object(tslib_es6["c" /* __decorate */])([
7726
7744
  Object(vue_property_decorator["a" /* Component */])({
7727
7745
  name: 'BxtTitleItem',
7728
- components: (_a = {},
7729
- _a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Checkbox"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Checkbox"],
7730
- _a)
7746
+ components: (title_itemvue_type_script_lang_ts_a = {},
7747
+ title_itemvue_type_script_lang_ts_a[external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Checkbox"].name] = external_root_bxs_commonjs_bxs_ui_vue_commonjs2_bxs_ui_vue_amd_bxs_ui_vue_["Checkbox"],
7748
+ title_itemvue_type_script_lang_ts_a)
7731
7749
  })
7732
7750
  ], BxtTitleItem);
7733
7751
  return BxtTitleItem;
@@ -7736,8 +7754,8 @@ var title_itemvue_type_script_lang_ts_BxtTitleItem = (function (_super) {
7736
7754
 
7737
7755
  // CONCATENATED MODULE: ./packages/components/form-item/title-item.vue?vue&type=script&lang=ts&
7738
7756
  /* harmony default export */ var form_item_title_itemvue_type_script_lang_ts_ = (title_itemvue_type_script_lang_ts_);
7739
- // EXTERNAL MODULE: ./packages/components/form-item/title-item.vue?vue&type=style&index=0&id=0ca5c062&prod&lang=postcss&
7740
- var title_itemvue_type_style_index_0_id_0ca5c062_prod_lang_postcss_ = __webpack_require__(172);
7757
+ // EXTERNAL MODULE: ./packages/components/form-item/title-item.vue?vue&type=style&index=0&id=dade21e2&prod&lang=postcss&
7758
+ var title_itemvue_type_style_index_0_id_dade21e2_prod_lang_postcss_ = __webpack_require__(172);
7741
7759
 
7742
7760
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
7743
7761
  var componentNormalizer = __webpack_require__(8);
@@ -8614,8 +8632,8 @@ module.exports = g;
8614
8632
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8615
8633
 
8616
8634
  "use strict";
8617
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_title_item_vue_vue_type_style_index_0_id_0ca5c062_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95);
8618
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_title_item_vue_vue_type_style_index_0_id_0ca5c062_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_title_item_vue_vue_type_style_index_0_id_0ca5c062_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__);
8635
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_title_item_vue_vue_type_style_index_0_id_dade21e2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95);
8636
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_title_item_vue_vue_type_style_index_0_id_dade21e2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_title_item_vue_vue_type_style_index_0_id_dade21e2_prod_lang_postcss___WEBPACK_IMPORTED_MODULE_0__);
8619
8637
  /* unused harmony reexport * */
8620
8638
 
8621
8639
 
@@ -30228,8 +30246,8 @@ function isSlowBuffer (obj) {
30228
30246
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
30229
30247
 
30230
30248
  "use strict";
30231
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_371cc574_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(189);
30232
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_371cc574_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_371cc574_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
30249
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_78d0a582_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(189);
30250
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_78d0a582_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_78d0a582_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
30233
30251
  /* unused harmony reexport * */
30234
30252
 
30235
30253
 
@@ -30243,7 +30261,7 @@ function isSlowBuffer (obj) {
30243
30261
  // ESM COMPAT FLAG
30244
30262
  __webpack_require__.r(__webpack_exports__);
30245
30263
 
30246
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/product-info/index.vue?vue&type=template&id=371cc574&
30264
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/product-info/index.vue?vue&type=template&id=78d0a582&
30247
30265
  var render = function render() {
30248
30266
  var _vm = this,
30249
30267
  _c = _vm._self._c,
@@ -30299,7 +30317,10 @@ var render = function render() {
30299
30317
  }
30300
30318
  }, [_vm._l(ins.eleOrderList, function (ele) {
30301
30319
  return [['cmCommonTitle'].includes(ele.componentName) ? [_c('bxs-form-item', {
30302
- key: ins.key + ele.key
30320
+ key: ins.key + ele.key,
30321
+ attrs: {
30322
+ "prop": ele.key
30323
+ }
30303
30324
  }, [_c('TitleItem', {
30304
30325
  attrs: {
30305
30326
  "code": ins.code,
@@ -30555,7 +30576,7 @@ var render = function render() {
30555
30576
 
30556
30577
  var staticRenderFns = [];
30557
30578
 
30558
- // CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=371cc574&
30579
+ // CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=template&id=78d0a582&
30559
30580
 
30560
30581
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
30561
30582
  var tslib_es6 = __webpack_require__(0);
@@ -30571,7 +30592,7 @@ var vue_property_decorator = __webpack_require__(2);
30571
30592
  var lodash = __webpack_require__(175);
30572
30593
 
30573
30594
  // EXTERNAL MODULE: ./packages/bxs-utils/index.ts + 3 modules
30574
- var bxs_utils = __webpack_require__(7);
30595
+ var bxs_utils = __webpack_require__(6);
30575
30596
 
30576
30597
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
30577
30598
  var defineProperty = __webpack_require__(33);
@@ -31260,7 +31281,6 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
31260
31281
  setTimeout(function () {
31261
31282
  var refInsuranceForm = Object(lodash["get"])(_this.$refs, "insuranceForm" + insData.key + "[0]");
31262
31283
  if (refInsuranceForm) {
31263
- console.log(_this.productForm[insData.key]);
31264
31284
  refInsuranceForm.validate(eleData.key);
31265
31285
  }
31266
31286
  }, 300);
@@ -31579,8 +31599,8 @@ var product_infovue_type_script_lang_ts_BxtProductInfo = (function (_super) {
31579
31599
 
31580
31600
  // CONCATENATED MODULE: ./packages/product-info/index.vue?vue&type=script&lang=ts&
31581
31601
  /* harmony default export */ var packages_product_infovue_type_script_lang_ts_ = (product_infovue_type_script_lang_ts_);
31582
- // EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=371cc574&prod&lang=css&
31583
- var product_infovue_type_style_index_0_id_371cc574_prod_lang_css_ = __webpack_require__(235);
31602
+ // EXTERNAL MODULE: ./packages/product-info/index.vue?vue&type=style&index=0&id=78d0a582&prod&lang=css&
31603
+ var product_infovue_type_style_index_0_id_78d0a582_prod_lang_css_ = __webpack_require__(235);
31584
31604
 
31585
31605
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
31586
31606
  var componentNormalizer = __webpack_require__(8);