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.
Files changed (63) hide show
  1. package/es/add-and-take/index.js +1 -7969
  2. package/es/adjust-baoe/index.js +196 -8195
  3. package/es/index.css +1 -1
  4. package/es/index.js +8788 -43744
  5. package/es/insure-calculate/index.css +1 -1
  6. package/es/insure-calculate/index.js +1046 -36665
  7. package/es/person-info/index.css +1 -1
  8. package/es/person-info/index.js +83 -8042
  9. package/es/product-info/index.css +1 -1
  10. package/es/product-info/index.js +3005 -10614
  11. package/es/share-sheet/index.js +69 -8040
  12. package/es/utils/index.js +1250 -9334
  13. package/lib/add-and-take/index.js +4 -7973
  14. package/lib/adjust-baoe/index.js +195 -8195
  15. package/lib/index.css +1 -1
  16. package/lib/index.js +8717 -43678
  17. package/lib/insure-calculate/index.css +1 -1
  18. package/lib/insure-calculate/index.js +1034 -36662
  19. package/lib/person-info/index.css +1 -1
  20. package/lib/person-info/index.js +86 -8046
  21. package/lib/product-info/index.css +1 -1
  22. package/lib/product-info/index.js +2807 -10417
  23. package/lib/share-sheet/index.js +72 -8044
  24. package/lib/utils/index.js +1252 -9337
  25. package/package.json +5 -3
  26. package/packages/add-and-take/demo/index.vue +3 -6
  27. package/packages/adjust-baoe/index.vue +21 -34
  28. package/packages/adjust-baoe/readme.md +0 -1
  29. package/packages/bxs-utils/planbook/common.ts +5 -0
  30. package/packages/bxs-utils/planbook/insurance.ts +19 -0
  31. package/packages/bxs-utils/planbook/person.ts +3 -2
  32. package/packages/bxs-utils/planbook/product.ts +57 -164
  33. package/packages/bxs-utils/readme.md +3 -1
  34. package/packages/index.ts +1 -1
  35. package/packages/insure-calculate/demo/index.vue +1 -1
  36. package/packages/insure-calculate/index.vue +18 -17
  37. package/packages/person-info/demo/index.vue +2 -4
  38. package/packages/planbook-input/components/product-table.vue +3 -14
  39. package/packages/planbook-input/helper.js +16 -53
  40. package/packages/planbook-input/index.vue +20 -28
  41. package/packages/planbook-input/readme.md +3 -3
  42. package/packages/product-info/components/product-insurance-form.md +46 -0
  43. package/packages/product-info/components/product-insurance-form.vue +360 -0
  44. package/packages/product-info/demo/index.vue +4 -5
  45. package/packages/product-info/handler.js +307 -0
  46. package/packages/product-info/handler.md +26 -0
  47. package/packages/product-info/index.less +33 -0
  48. package/packages/product-info/index.vue +306 -534
  49. package/packages/product-info/readme.md +7 -2
  50. package/packages/share-sheet/constant.js +1 -2
  51. package/src/api/adjust-baoe.js +2 -2
  52. package/src/api/planbook.js +4 -20
  53. package/src/api/trade.js +31 -0
  54. package/src/components/common/common-group-title.less +54 -0
  55. package/src/components/common/common-group-title.md +34 -0
  56. package/src/components/common/common-group-title.vue +72 -0
  57. package/src/components/common/common-title.less +4 -0
  58. package/src/components/common/common-title.vue +8 -2
  59. package/src/components/profession-list/README.md +114 -0
  60. package/src/components/profession-list/constant.js +4 -0
  61. package/src/components/profession-list/handler.js +155 -0
  62. package/src/components/profession-list/index.less +182 -0
  63. 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;