bxs-tools-ui 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/add-and-take/index.js +1 -7969
- package/es/adjust-baoe/index.js +196 -8195
- package/es/index.css +1 -1
- package/es/index.js +8788 -43744
- package/es/insure-calculate/index.css +1 -1
- package/es/insure-calculate/index.js +1046 -36665
- package/es/person-info/index.css +1 -1
- package/es/person-info/index.js +83 -8042
- package/es/product-info/index.css +1 -1
- package/es/product-info/index.js +3005 -10614
- package/es/share-sheet/index.js +69 -8040
- package/es/utils/index.js +1250 -9334
- package/lib/add-and-take/index.js +4 -7973
- package/lib/adjust-baoe/index.js +195 -8195
- package/lib/index.css +1 -1
- package/lib/index.js +8717 -43678
- package/lib/insure-calculate/index.css +1 -1
- package/lib/insure-calculate/index.js +1034 -36662
- package/lib/person-info/index.css +1 -1
- package/lib/person-info/index.js +86 -8046
- package/lib/product-info/index.css +1 -1
- package/lib/product-info/index.js +2807 -10417
- package/lib/share-sheet/index.js +72 -8044
- package/lib/utils/index.js +1252 -9337
- package/package.json +5 -3
- package/packages/add-and-take/demo/index.vue +3 -6
- package/packages/adjust-baoe/index.vue +21 -34
- package/packages/adjust-baoe/readme.md +0 -1
- package/packages/bxs-utils/planbook/common.ts +5 -0
- package/packages/bxs-utils/planbook/insurance.ts +19 -0
- package/packages/bxs-utils/planbook/person.ts +3 -2
- package/packages/bxs-utils/planbook/product.ts +57 -164
- package/packages/bxs-utils/readme.md +3 -1
- package/packages/index.ts +1 -1
- package/packages/insure-calculate/demo/index.vue +1 -1
- package/packages/insure-calculate/index.vue +18 -17
- package/packages/person-info/demo/index.vue +2 -4
- package/packages/planbook-input/components/product-table.vue +3 -14
- package/packages/planbook-input/helper.js +16 -53
- package/packages/planbook-input/index.vue +20 -28
- package/packages/planbook-input/readme.md +3 -3
- package/packages/product-info/components/product-insurance-form.md +46 -0
- package/packages/product-info/components/product-insurance-form.vue +360 -0
- package/packages/product-info/demo/index.vue +4 -5
- package/packages/product-info/handler.js +307 -0
- package/packages/product-info/handler.md +26 -0
- package/packages/product-info/index.less +33 -0
- package/packages/product-info/index.vue +306 -534
- package/packages/product-info/readme.md +7 -2
- package/packages/share-sheet/constant.js +1 -2
- package/src/api/adjust-baoe.js +2 -2
- package/src/api/planbook.js +4 -20
- package/src/api/trade.js +31 -0
- package/src/components/common/common-group-title.less +54 -0
- package/src/components/common/common-group-title.md +34 -0
- package/src/components/common/common-group-title.vue +72 -0
- package/src/components/common/common-title.less +4 -0
- package/src/components/common/common-title.vue +8 -2
- package/src/components/profession-list/README.md +114 -0
- package/src/components/profession-list/constant.js +4 -0
- package/src/components/profession-list/handler.js +155 -0
- package/src/components/profession-list/index.less +182 -0
- package/src/components/profession-list/index.vue +443 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# handler.js
|
|
2
|
+
|
|
3
|
+
`product-info` 辅助函数。组合险 UI 状态**不写入**产品数据 / 试算 jd。
|
|
4
|
+
|
|
5
|
+
## 组合险
|
|
6
|
+
|
|
7
|
+
| 函数 | 说明 |
|
|
8
|
+
|------|------|
|
|
9
|
+
| `isTitleEnabled` | title 可选(`!isDisabled`) |
|
|
10
|
+
| `isTitleLockedChecked` | title 已选中且不可改(`value===true` 且 `isDisabled===true`) |
|
|
11
|
+
| `buildGroupUiState` | 按 `groupKey` 首次出现建 `Map`;有锁定勾选则 `active=true`、`locked=true`、`selectedIds` 取第一个(组开关不可关、其他子险不可点);否则非 checkbox 强制单选,派生 `active` / `selectedIds`(剔除已 disabled) |
|
|
12
|
+
| `buildDisplayBlocks` | 普通险在前,组合险在后 |
|
|
13
|
+
| `enforceSingleSelect` | 非 checkbox:多选中时只留第一个 |
|
|
14
|
+
| `applySelectedIds` / `setAllTitles` / `getCheckedIds` | 读写子险 `title` |
|
|
15
|
+
| `snapshotGroupTitleEnabledMap` / `getGroupSubsBecameUnselectable` | 对比承保处理后,哪些**原先已选中**的组合子险变为不可选(未选中的不 Toast) |
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
Map<groupKey, { active: boolean, locked: boolean, selectedIds: Array<id>, groupName?: string }>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 其它
|
|
22
|
+
|
|
23
|
+
| 函数 | 说明 |
|
|
24
|
+
|------|------|
|
|
25
|
+
| `fetchRecommendValues` | 组装试算参数、请求推荐保额/保费并按 min/max 过滤;读写共用传入的 `cache` |
|
|
26
|
+
| `createInsuranceInputResultEle` | 仅对**选中**险种写入 `inputResult`;未选中清掉元素,值回写 `ins.inputResult` |
|
|
@@ -38,6 +38,39 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
& .bxt-product-group {
|
|
42
|
+
margin-bottom: 9px;
|
|
43
|
+
padding-top: 9px;
|
|
44
|
+
background: white;
|
|
45
|
+
border-radius: 6px;
|
|
46
|
+
|
|
47
|
+
& .bxt-product-group-header {
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
border-bottom-left-radius: 0;
|
|
50
|
+
border-bottom-right-radius: 0;
|
|
51
|
+
padding: 0 15px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& .bxt-product-group-sub {
|
|
55
|
+
margin-bottom: 0;
|
|
56
|
+
border-radius: 0;
|
|
57
|
+
|
|
58
|
+
&:last-child {
|
|
59
|
+
margin-bottom: 0;
|
|
60
|
+
border-bottom-left-radius: 6px;
|
|
61
|
+
border-bottom-right-radius: 6px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
& .bxt-product-insurance-type-group .bxt-item-title::before {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:last-child {
|
|
70
|
+
margin-bottom: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
41
74
|
& .bxt-product-info-form {
|
|
42
75
|
background: white;
|
|
43
76
|
margin-bottom: 9px;
|