bxs-tools-ui 3.0.5 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +14 -2
- package/es/person-info/index.js +2 -0
- package/es/product-info/index.js +2 -0
- package/es/utils/index.js +13 -1
- package/lib/index.js +14 -2
- package/lib/person-info/index.js +2 -0
- package/lib/product-info/index.js +2 -0
- package/lib/utils/index.js +13 -1
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/person.ts +8 -1
- package/packages/bxs-utils/planbook/product.ts +1 -1
- package/packages/index.ts +1 -1
package/es/index.js
CHANGED
|
@@ -888,6 +888,16 @@ function initPersonData(inputData, verifyData) {
|
|
|
888
888
|
if (!personOrderList || !personOrderList.length) {
|
|
889
889
|
return;
|
|
890
890
|
}
|
|
891
|
+
var insuranceList = (inputData.productGroupList || []).map(function (g) {
|
|
892
|
+
return g.prodOrderList || [];
|
|
893
|
+
}).flat().map(function (p) {
|
|
894
|
+
return p.mulInsOrderList || [];
|
|
895
|
+
}).flat().filter(function (ins) {
|
|
896
|
+
return !!ins;
|
|
897
|
+
});
|
|
898
|
+
var hasHuomian = insuranceList.some(function (e) {
|
|
899
|
+
return e.huomian === 'touHuomian';
|
|
900
|
+
});
|
|
891
901
|
personOrderList.forEach(function (person) {
|
|
892
902
|
if (!person || !person.eleOrderList) {
|
|
893
903
|
return;
|
|
@@ -977,7 +987,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
977
987
|
e.label = '被保人信息';
|
|
978
988
|
break;
|
|
979
989
|
case 'applicantInfo':
|
|
980
|
-
e.label = '投保人信息(豁免相关)';
|
|
990
|
+
e.label = hasHuomian ? '投保人信息(豁免相关)' : '投保人信息';
|
|
981
991
|
break;
|
|
982
992
|
case 'spouseInfo':
|
|
983
993
|
e.label = '投保人配偶信息';
|
|
@@ -2135,6 +2145,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
2135
2145
|
}
|
|
2136
2146
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
2137
2147
|
return ins.key;
|
|
2148
|
+
}).filter(function (k) {
|
|
2149
|
+
return !['common'].includes(k);
|
|
2138
2150
|
});
|
|
2139
2151
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
2140
2152
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
@@ -39593,7 +39605,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
39593
39605
|
install(window.Vue);
|
|
39594
39606
|
}
|
|
39595
39607
|
const index = {
|
|
39596
|
-
version: '3.0.
|
|
39608
|
+
version: '3.0.7',
|
|
39597
39609
|
install: install
|
|
39598
39610
|
};
|
|
39599
39611
|
|
package/es/person-info/index.js
CHANGED
|
@@ -1945,6 +1945,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
1947
1947
|
return ins.key;
|
|
1948
|
+
}).filter(function (k) {
|
|
1949
|
+
return !['common'].includes(k);
|
|
1948
1950
|
});
|
|
1949
1951
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
1950
1952
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
package/es/product-info/index.js
CHANGED
|
@@ -1920,6 +1920,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
1922
1922
|
return ins.key;
|
|
1923
|
+
}).filter(function (k) {
|
|
1924
|
+
return !['common'].includes(k);
|
|
1923
1925
|
});
|
|
1924
1926
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
1925
1927
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
package/es/utils/index.js
CHANGED
|
@@ -277,6 +277,16 @@ function initPersonData(inputData, verifyData) {
|
|
|
277
277
|
if (!personOrderList || !personOrderList.length) {
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
+
var insuranceList = (inputData.productGroupList || []).map(function (g) {
|
|
281
|
+
return g.prodOrderList || [];
|
|
282
|
+
}).flat().map(function (p) {
|
|
283
|
+
return p.mulInsOrderList || [];
|
|
284
|
+
}).flat().filter(function (ins) {
|
|
285
|
+
return !!ins;
|
|
286
|
+
});
|
|
287
|
+
var hasHuomian = insuranceList.some(function (e) {
|
|
288
|
+
return e.huomian === 'touHuomian';
|
|
289
|
+
});
|
|
280
290
|
personOrderList.forEach(function (person) {
|
|
281
291
|
if (!person || !person.eleOrderList) {
|
|
282
292
|
return;
|
|
@@ -366,7 +376,7 @@ function initPersonData(inputData, verifyData) {
|
|
|
366
376
|
e.label = '被保人信息';
|
|
367
377
|
break;
|
|
368
378
|
case 'applicantInfo':
|
|
369
|
-
e.label = '投保人信息(豁免相关)';
|
|
379
|
+
e.label = hasHuomian ? '投保人信息(豁免相关)' : '投保人信息';
|
|
370
380
|
break;
|
|
371
381
|
case 'spouseInfo':
|
|
372
382
|
e.label = '投保人配偶信息';
|
|
@@ -2023,6 +2033,8 @@ function getSingleInsurancesVerifyData(prodData, personData) {
|
|
|
2023
2033
|
}
|
|
2024
2034
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
2025
2035
|
return ins.key;
|
|
2036
|
+
}).filter(function (k) {
|
|
2037
|
+
return !['common'].includes(k);
|
|
2026
2038
|
});
|
|
2027
2039
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
2028
2040
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
package/lib/index.js
CHANGED
|
@@ -878,6 +878,16 @@
|
|
|
878
878
|
if (!personOrderList || !personOrderList.length) {
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
|
+
var insuranceList = (inputData.productGroupList || []).map(function (g) {
|
|
882
|
+
return g.prodOrderList || [];
|
|
883
|
+
}).flat().map(function (p) {
|
|
884
|
+
return p.mulInsOrderList || [];
|
|
885
|
+
}).flat().filter(function (ins) {
|
|
886
|
+
return !!ins;
|
|
887
|
+
});
|
|
888
|
+
var hasHuomian = insuranceList.some(function (e) {
|
|
889
|
+
return e.huomian === 'touHuomian';
|
|
890
|
+
});
|
|
881
891
|
personOrderList.forEach(function (person) {
|
|
882
892
|
if (!person || !person.eleOrderList) {
|
|
883
893
|
return;
|
|
@@ -967,7 +977,7 @@
|
|
|
967
977
|
e.label = '被保人信息';
|
|
968
978
|
break;
|
|
969
979
|
case 'applicantInfo':
|
|
970
|
-
e.label = '投保人信息(豁免相关)';
|
|
980
|
+
e.label = hasHuomian ? '投保人信息(豁免相关)' : '投保人信息';
|
|
971
981
|
break;
|
|
972
982
|
case 'spouseInfo':
|
|
973
983
|
e.label = '投保人配偶信息';
|
|
@@ -2125,6 +2135,8 @@
|
|
|
2125
2135
|
}
|
|
2126
2136
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
2127
2137
|
return ins.key;
|
|
2138
|
+
}).filter(function (k) {
|
|
2139
|
+
return !['common'].includes(k);
|
|
2128
2140
|
});
|
|
2129
2141
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
2130
2142
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
@@ -39583,7 +39595,7 @@
|
|
|
39583
39595
|
install(window.Vue);
|
|
39584
39596
|
}
|
|
39585
39597
|
var index = {
|
|
39586
|
-
version: '3.0.
|
|
39598
|
+
version: '3.0.7',
|
|
39587
39599
|
install: install
|
|
39588
39600
|
};
|
|
39589
39601
|
|
package/lib/person-info/index.js
CHANGED
|
@@ -1944,6 +1944,8 @@
|
|
|
1944
1944
|
}
|
|
1945
1945
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
1946
1946
|
return ins.key;
|
|
1947
|
+
}).filter(function (k) {
|
|
1948
|
+
return !['common'].includes(k);
|
|
1947
1949
|
});
|
|
1948
1950
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
1949
1951
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
|
@@ -1917,6 +1917,8 @@
|
|
|
1917
1917
|
}
|
|
1918
1918
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
1919
1919
|
return ins.key;
|
|
1920
|
+
}).filter(function (k) {
|
|
1921
|
+
return !['common'].includes(k);
|
|
1920
1922
|
});
|
|
1921
1923
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
1922
1924
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
package/lib/utils/index.js
CHANGED
|
@@ -279,6 +279,16 @@
|
|
|
279
279
|
if (!personOrderList || !personOrderList.length) {
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
282
|
+
var insuranceList = (inputData.productGroupList || []).map(function (g) {
|
|
283
|
+
return g.prodOrderList || [];
|
|
284
|
+
}).flat().map(function (p) {
|
|
285
|
+
return p.mulInsOrderList || [];
|
|
286
|
+
}).flat().filter(function (ins) {
|
|
287
|
+
return !!ins;
|
|
288
|
+
});
|
|
289
|
+
var hasHuomian = insuranceList.some(function (e) {
|
|
290
|
+
return e.huomian === 'touHuomian';
|
|
291
|
+
});
|
|
282
292
|
personOrderList.forEach(function (person) {
|
|
283
293
|
if (!person || !person.eleOrderList) {
|
|
284
294
|
return;
|
|
@@ -368,7 +378,7 @@
|
|
|
368
378
|
e.label = '被保人信息';
|
|
369
379
|
break;
|
|
370
380
|
case 'applicantInfo':
|
|
371
|
-
e.label = '投保人信息(豁免相关)';
|
|
381
|
+
e.label = hasHuomian ? '投保人信息(豁免相关)' : '投保人信息';
|
|
372
382
|
break;
|
|
373
383
|
case 'spouseInfo':
|
|
374
384
|
e.label = '投保人配偶信息';
|
|
@@ -2025,6 +2035,8 @@
|
|
|
2025
2035
|
}
|
|
2026
2036
|
var insuranceIdList = prodData === null || prodData === void 0 || (_prodData$mulInsOrder = prodData.mulInsOrderList) === null || _prodData$mulInsOrder === void 0 ? void 0 : _prodData$mulInsOrder.map(function (ins) {
|
|
2027
2037
|
return ins.key;
|
|
2038
|
+
}).filter(function (k) {
|
|
2039
|
+
return !['common'].includes(k);
|
|
2028
2040
|
});
|
|
2029
2041
|
prodData === null || prodData === void 0 || (_prodData$mulInsOrder2 = prodData.mulInsOrderList) === null || _prodData$mulInsOrder2 === void 0 || _prodData$mulInsOrder2.reduce(function (list, ins) {
|
|
2030
2042
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key);
|
package/package.json
CHANGED
|
@@ -21,6 +21,13 @@ export function initPersonData(inputData : IPbInput, verifyData : any) : void {
|
|
|
21
21
|
if (!personOrderList || !personOrderList.length) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
+
const insuranceList: IProdInsurance[] = (inputData.productGroupList || [])
|
|
25
|
+
.map(g => g.prodOrderList || [])
|
|
26
|
+
.flat()
|
|
27
|
+
.map(p => p.mulInsOrderList || [])
|
|
28
|
+
.flat()
|
|
29
|
+
.filter((ins): ins is IProdInsurance => !!ins)
|
|
30
|
+
const hasHuomian = insuranceList.some(e => e.huomian === 'touHuomian');
|
|
24
31
|
personOrderList.forEach(person => {
|
|
25
32
|
if (!person || !person.eleOrderList) {
|
|
26
33
|
return;
|
|
@@ -101,7 +108,7 @@ export function initPersonData(inputData : IPbInput, verifyData : any) : void {
|
|
|
101
108
|
e.label = '被保人信息';
|
|
102
109
|
break;
|
|
103
110
|
case 'applicantInfo':
|
|
104
|
-
e.label = '投保人信息(豁免相关)';
|
|
111
|
+
e.label = hasHuomian ? '投保人信息(豁免相关)' : '投保人信息';
|
|
105
112
|
break;
|
|
106
113
|
case 'spouseInfo':
|
|
107
114
|
e.label = '投保人配偶信息';
|
|
@@ -352,7 +352,7 @@ function getSingleInsurancesVerifyData (prodData : IPbProduct, personData : IPbP
|
|
|
352
352
|
age: person.age
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
const insuranceIdList = prodData?.mulInsOrderList?.map(ins => ins.key)
|
|
355
|
+
const insuranceIdList = prodData?.mulInsOrderList?.map(ins => ins.key).filter((k : any) => !['common'].includes(k))
|
|
356
356
|
prodData?.mulInsOrderList?.reduce((list : any, ins : IProdInsurance) => {
|
|
357
357
|
return ins.key === 'common' || ins.isGroup ? list : list.concat(ins.key)
|
|
358
358
|
}, []);
|