bxs-tools-ui 3.2.0 → 3.3.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 (148) hide show
  1. package/README.md +20 -20
  2. package/es/add-and-take/index.css +1 -1
  3. package/es/add-and-take/index.js +283 -64
  4. package/es/adjust-baoe/index.css +1 -1
  5. package/es/adjust-baoe/index.js +444 -195
  6. package/es/business-card/index.css +1 -1
  7. package/es/business-card/index.js +1 -0
  8. package/es/canvas-poster/index.css +1 -1
  9. package/es/canvas-poster/index.js +1 -0
  10. package/es/index.css +1 -1
  11. package/es/index.js +936 -824
  12. package/es/insure-calculate/index.css +1 -1
  13. package/es/insure-calculate/index.js +438 -265
  14. package/es/person-info/index.css +1 -1
  15. package/es/person-info/index.js +296 -1370
  16. package/es/product-info/index.css +1 -1
  17. package/es/product-info/index.js +644 -548
  18. package/es/share-sheet/index.css +1 -1
  19. package/es/share-sheet/index.js +313 -21
  20. package/es/utils/index.js +530 -429
  21. package/lib/add-and-take/index.css +1 -1
  22. package/lib/add-and-take/index.js +283 -64
  23. package/lib/adjust-baoe/index.css +1 -1
  24. package/lib/adjust-baoe/index.js +441 -194
  25. package/lib/business-card/index.css +1 -1
  26. package/lib/business-card/index.js +1 -0
  27. package/lib/canvas-poster/index.css +1 -1
  28. package/lib/canvas-poster/index.js +1 -0
  29. package/lib/index.css +1 -1
  30. package/lib/index.js +939 -826
  31. package/lib/insure-calculate/index.css +1 -1
  32. package/lib/insure-calculate/index.js +438 -268
  33. package/lib/person-info/index.css +1 -1
  34. package/lib/person-info/index.js +295 -1372
  35. package/lib/product-info/index.css +1 -1
  36. package/lib/product-info/index.js +645 -550
  37. package/lib/share-sheet/index.css +1 -1
  38. package/lib/share-sheet/index.js +313 -25
  39. package/lib/utils/index.js +531 -433
  40. package/package.json +9 -7
  41. package/packages/add-and-take/components/interest-form.less +144 -0
  42. package/packages/add-and-take/components/interest-form.vue +179 -179
  43. package/packages/add-and-take/components/interest-items.less +87 -0
  44. package/packages/add-and-take/components/interest-items.vue +67 -80
  45. package/packages/add-and-take/components/interest-table.less +111 -0
  46. package/packages/add-and-take/components/interest-table.vue +31 -31
  47. package/packages/add-and-take/constant.ts +2 -2
  48. package/packages/add-and-take/demo/index.vue +89 -86
  49. package/packages/add-and-take/handler.ts +52 -57
  50. package/packages/add-and-take/index.less +69 -0
  51. package/packages/add-and-take/index.vue +156 -156
  52. package/packages/add-and-take/readme.md +87 -98
  53. package/packages/adjust-baoe/demo/index.vue +37 -47
  54. package/packages/adjust-baoe/index.less +125 -0
  55. package/packages/adjust-baoe/index.vue +134 -147
  56. package/packages/adjust-baoe/readme.md +35 -45
  57. package/packages/business-card/demo/index.vue +7 -7
  58. package/packages/business-card/index.less +100 -0
  59. package/packages/business-card/index.vue +18 -21
  60. package/packages/business-card/readme.md +46 -53
  61. package/packages/bxs-utils/demo/index.vue +2 -2
  62. package/packages/bxs-utils/index.ts +5 -5
  63. package/packages/bxs-utils/planbook/common.ts +56 -92
  64. package/packages/bxs-utils/planbook/index.ts +4 -4
  65. package/packages/bxs-utils/planbook/insurance.ts +137 -127
  66. package/packages/bxs-utils/planbook/person.ts +143 -147
  67. package/packages/bxs-utils/planbook/product.ts +473 -509
  68. package/packages/bxs-utils/readme.md +94 -84
  69. package/packages/bxs-utils/trade/index.js +1 -1
  70. package/packages/bxs-utils/trade/insureCalculate.js +91 -204
  71. package/packages/canvas-poster/demo/index.vue +9 -13
  72. package/packages/canvas-poster/index.less +5 -0
  73. package/packages/canvas-poster/index.vue +68 -79
  74. package/packages/canvas-poster/readme.md +106 -109
  75. package/packages/index.ts +1 -1
  76. package/packages/insure-calculate/demo/index.vue +20 -20
  77. package/packages/insure-calculate/index.less +366 -0
  78. package/packages/insure-calculate/index.vue +305 -329
  79. package/packages/insure-calculate/readme.md +99 -106
  80. package/packages/person-info/crm-popup.vue +81 -80
  81. package/packages/person-info/demo/index.vue +25 -37
  82. package/packages/person-info/index-inline.less +11 -0
  83. package/packages/person-info/index.vue +53 -83
  84. package/packages/person-info/readme.md +109 -115
  85. package/packages/planbook-input/components/footer.less +54 -0
  86. package/packages/planbook-input/components/footer.vue +8 -64
  87. package/packages/planbook-input/components/handler.js +33 -44
  88. package/packages/planbook-input/components/product-table.less +235 -0
  89. package/packages/planbook-input/components/product-table.vue +114 -108
  90. package/packages/planbook-input/demo/index.vue +3 -3
  91. package/packages/planbook-input/helper.js +852 -465
  92. package/packages/planbook-input/index.less +30 -0
  93. package/packages/planbook-input/index.vue +86 -103
  94. package/packages/planbook-input/readme.md +72 -90
  95. package/packages/product-info/demo/constant.js +1 -1
  96. package/packages/product-info/demo/index.vue +31 -43
  97. package/packages/product-info/index.less +271 -0
  98. package/packages/product-info/index.vue +198 -210
  99. package/packages/product-info/readme.md +72 -75
  100. package/packages/share-sheet/constant.js +4 -4
  101. package/packages/share-sheet/demo/index.vue +10 -10
  102. package/packages/share-sheet/handler.js +14 -14
  103. package/packages/share-sheet/index.less +201 -0
  104. package/packages/share-sheet/index.vue +39 -39
  105. package/packages/share-sheet/readme.md +121 -127
  106. package/src/api/add-and-take.js +45 -0
  107. package/src/api/adjust-baoe.js +16 -0
  108. package/src/api/index.js +6 -0
  109. package/src/api/planbook.js +93 -0
  110. package/src/api/request.js +211 -0
  111. package/src/api/trade.js +56 -0
  112. package/src/api/user.js +18 -0
  113. package/src/components/common/common-age-birthday.less +66 -0
  114. package/src/components/common/common-age-birthday.vue +27 -95
  115. package/src/components/common/common-popup.less +81 -0
  116. package/src/components/common/common-popup.vue +12 -96
  117. package/src/components/common/common-radio.less +75 -0
  118. package/src/components/common/common-radio.vue +13 -91
  119. package/src/components/common/common-select.less +13 -0
  120. package/src/components/common/common-select.vue +21 -38
  121. package/src/components/common/common-title.less +115 -0
  122. package/src/components/common/common-title.vue +24 -24
  123. package/src/js/loading.js +6 -6
  124. package/src/js/md5Token.js +38 -44
  125. package/src/js/utils.js +45 -53
  126. package/src/js/variables.js +47 -25
  127. package/src/style/base.less +18 -0
  128. package/src/style/color.less +40 -0
  129. package/src/style/variables.less +21 -42
  130. package/packages/add-and-take/api.ts +0 -70
  131. package/packages/add-and-take/components/interest-form.css +0 -146
  132. package/packages/add-and-take/components/interest-items.css +0 -87
  133. package/packages/add-and-take/components/interest-table.css +0 -113
  134. package/packages/add-and-take/index.css +0 -70
  135. package/packages/adjust-baoe/index.css +0 -123
  136. package/packages/business-card/index.css +0 -101
  137. package/packages/canvas-poster/index.css +0 -5
  138. package/packages/insure-calculate/index.css +0 -368
  139. package/packages/planbook-input/api.js +0 -29
  140. package/packages/planbook-input/components/product-table.css +0 -236
  141. package/packages/planbook-input/index.css +0 -31
  142. package/packages/product-info/index.css +0 -264
  143. package/packages/share-sheet/index.css +0 -203
  144. package/src/components/common/common-title.css +0 -116
  145. package/src/js/request.js +0 -64
  146. package/src/style/apply.css +0 -25
  147. package/src/style/base.css +0 -36
  148. package/src/style/color.css +0 -74
@@ -120,6 +120,7 @@
120
120
  >
121
121
  <ProductInfo
122
122
  ref="productInfo"
123
+ :user="user"
123
124
  :input-data="inputData"
124
125
  :verify-data="verifyData"
125
126
  :group-key="params.groupKey"
@@ -192,23 +193,23 @@
192
193
  </div>
193
194
  </template>
194
195
  <script lang="ts">
195
- import Vue from 'vue';
196
- import QS from 'qs';
197
- import { Component, Prop, Watch } from 'vue-property-decorator';
198
- import { get as _get, cloneDeep } from 'lodash';
199
- import { initAddAndTakePopupConfig } from 'packages/add-and-take/handler.ts';
200
- import { ADD_AND_TAKE_TITLE_MAP } from 'packages/add-and-take/constant.ts';
201
- import { calculateProductData } from '../helper.js';
202
- import { convertInputDataToResultData } from './handler';
196
+ import Vue from 'vue'
197
+ import QS from 'qs'
198
+ import { Component, Prop, Watch } from 'vue-property-decorator'
199
+ import { get as _get, cloneDeep } from 'lodash'
200
+ import { initAddAndTakePopupConfig } from 'packages/add-and-take/handler.ts'
201
+ import { ADD_AND_TAKE_TITLE_MAP } from 'packages/add-and-take/constant.ts'
202
+ import { calcProductData } from '../helper.js'
203
+ import { convertInputDataToResultData } from './handler'
203
204
 
204
- import CommonPopup from '@src/components/common/common-popup.vue';
205
- import ProductInfo from 'packages/product-info/index.vue';
206
- import AddAndTake from 'packages/add-and-take/index.vue';
207
- import AdjustBaoe from 'packages/adjust-baoe/index.vue';
205
+ import CommonPopup from '../../../src/components/common/common-popup.vue'
206
+ import ProductInfo from 'packages/product-info/index.vue'
207
+ import AddAndTake from 'packages/add-and-take/index.vue'
208
+ import AdjustBaoe from 'packages/adjust-baoe/index.vue'
208
209
 
209
- import './product-table.css';
210
+ import './product-table.less'
210
211
 
211
- const { insuranceId } = QS.parse(`${location.href.split('?')[1]}`) || {};
212
+ const { insuranceId } = QS.parse(`${location.href.split('?')[1]}`) || {}
212
213
 
213
214
  function initPopupConf() {
214
215
  return {
@@ -217,7 +218,7 @@ function initPopupConf() {
217
218
  title: '',
218
219
  type: '',
219
220
  data: {}
220
- };
221
+ }
221
222
  }
222
223
 
223
224
  @Component({
@@ -230,39 +231,44 @@ function initPopupConf() {
230
231
  }
231
232
  })
232
233
  export default class BxtProductTable extends Vue {
234
+ @Prop({
235
+ default: () => ({})
236
+ })
237
+ user: any
238
+
233
239
  @Prop({
234
240
  default: ''
235
241
  })
236
- resultUuid: any;
242
+ resultUuid: any
237
243
 
238
244
  @Prop({
239
245
  default: () => ({})
240
246
  })
241
- inputData: any;
247
+ inputData: any
242
248
 
243
249
  @Prop({
244
250
  default: () => ({})
245
251
  })
246
- verifyData: any;
252
+ verifyData: any
247
253
  @Prop({
248
254
  default: () => ({})
249
255
  })
250
- params: any;
256
+ params: any
251
257
 
252
258
  get personData() {
253
- return _get(this, 'inputData.personData');
259
+ return _get(this, 'inputData.personData')
254
260
  }
255
261
  get groupData() {
256
- const productGroupList = _get(this, 'inputData.productGroupList') || [];
257
- return productGroupList.find(g => g.key === this.params.groupKey);
262
+ const productGroupList = _get(this, 'inputData.productGroupList') || []
263
+ return productGroupList.find(g => g.key === this.params.groupKey)
258
264
  }
259
265
  get productData() {
260
- const prodOrderList = _get(this, 'groupData.prodOrderList') || [];
261
- return prodOrderList.find(p => p.key === this.params.productKey);
266
+ const prodOrderList = _get(this, 'groupData.prodOrderList') || []
267
+ return prodOrderList.find(p => p.key === this.params.productKey)
262
268
  }
263
269
  get isShowAdjustBaoe() {
264
- const mulInsOrderList = _get(this, 'productData.mulInsOrderList') || [];
265
- return mulInsOrderList.find(ins => !!ins.adjustBaoe);
270
+ const mulInsOrderList = _get(this, 'productData.mulInsOrderList') || []
271
+ return mulInsOrderList.find(ins => !!ins.adjustBaoe)
266
272
  }
267
273
 
268
274
  @Watch('popupConf.prodVisible', {
@@ -271,42 +277,42 @@ export default class BxtProductTable extends Vue {
271
277
  })
272
278
  switchProductSheet(val: boolean) {
273
279
  if (this.popupConf.type !== 'ProductInfo') {
274
- return;
280
+ return
275
281
  }
276
282
  if (val) {
277
- this.backupProductData = cloneDeep(this.productData);
278
- return;
283
+ this.backupProductData = cloneDeep(this.productData)
284
+ return
279
285
  }
280
- this.closeProductSheet();
281
- this.isCkConfirm = false;
286
+ this.closeProductSheet()
287
+ this.isCkConfirm = false
282
288
  }
283
289
 
284
- popupConf = initPopupConf();
285
- takePopupConfig = initAddAndTakePopupConfig();
290
+ popupConf = initPopupConf()
291
+ takePopupConfig = initAddAndTakePopupConfig()
286
292
  // 区分是否是单击确定按钮
287
- isCkConfirm = false;
288
- backupProductData: any = null;
289
- addAndTakeTitleMap = ADD_AND_TAKE_TITLE_MAP;
293
+ isCkConfirm = false
294
+ backupProductData: any = null
295
+ addAndTakeTitleMap = ADD_AND_TAKE_TITLE_MAP
290
296
  reCalculateProductData(inputData, params, resolve, reject) {
291
- return calculateProductData(inputData, params)
297
+ return calcProductData(inputData, params)
292
298
  .then(resolve)
293
- .catch(reject);
299
+ .catch(reject)
294
300
  }
295
301
  isShowDeleteBtn() {
296
- let index = this.groupData && this.groupData.prodOrderList && this.groupData.prodOrderList.findIndex(p => p.key === this.params.productKey);
297
- return this.productData.hadChoice && !this.productData.required && index >= this.groupData.defNum;
302
+ let index = this.groupData && this.groupData.prodOrderList && this.groupData.prodOrderList.findIndex(p => p.key === this.params.productKey)
303
+ return this.productData.hadChoice && !this.productData.required && index >= this.groupData.defNum
298
304
  }
299
305
  closeProductSheet() {
300
306
  // 单击确定按钮关闭时,不用还原数据
301
307
  if (!this.isCkConfirm) {
302
308
  for (let k in this.backupProductData) {
303
- this.productData[k] = this.backupProductData[k];
309
+ this.productData[k] = this.backupProductData[k]
304
310
  }
305
311
  }
306
312
  }
307
313
  deleteProduct() {
308
- this.productData.hadChoice = false;
309
- this.productData.totalBaof = null;
314
+ this.productData.hadChoice = false
315
+ this.productData.totalBaof = null
310
316
  }
311
317
  modify() {
312
318
  this.popupConf = {
@@ -314,7 +320,7 @@ export default class BxtProductTable extends Vue {
314
320
  title: this.productData.titleName,
315
321
  type: 'ProductInfo',
316
322
  data: {}
317
- };
323
+ }
318
324
  }
319
325
  confirm(prod) {
320
326
  this.$emit(
@@ -324,46 +330,46 @@ export default class BxtProductTable extends Vue {
324
330
  productKey: this.params.productKey
325
331
  },
326
332
  this
327
- );
333
+ )
328
334
  }
329
335
  close() {
330
- this.isCkConfirm = true;
331
- this.popupConf = initPopupConf();
336
+ this.isCkConfirm = true
337
+ this.popupConf = initPopupConf()
332
338
  }
333
339
 
334
340
  fnShowAddAndTake(ins, name) {
335
341
  if (ins.isGroup) {
336
- return false;
342
+ return false
337
343
  }
338
- const { productData, params } = this;
339
- const hasInterest = params.interestProductList && params.interestProductList.includes(productData.key);
340
- const isProductChecked = productData.hadChoice;
341
- let titleEle = ins.eleOrderList.find(ele => ele.key === 'title');
342
- let isInsuranceChecked = titleEle && titleEle.value;
344
+ const { productData, params } = this
345
+ const hasInterest = params.interestProductList && params.interestProductList.includes(productData.key)
346
+ const isProductChecked = productData.hadChoice
347
+ let titleEle = ins.eleOrderList.find(ele => ele.key === 'title')
348
+ let isInsuranceChecked = titleEle && titleEle.value
343
349
  if (ins.groupKey) {
344
- const groupInsurance = productData.mulInsOrderList.find(item => item.key === ins.groupKey);
350
+ const groupInsurance = productData.mulInsOrderList.find(item => item.key === ins.groupKey)
345
351
  if (groupInsurance) {
346
- titleEle = groupInsurance.eleOrderList.find(ele => ele.key === 'title');
347
- const insuranceIdEle = groupInsurance.eleOrderList.find(ele => ele.key === 'insuranceId');
348
- isInsuranceChecked = titleEle && titleEle.value && insuranceIdEle.value === ins.key;
352
+ titleEle = groupInsurance.eleOrderList.find(ele => ele.key === 'title')
353
+ const insuranceIdEle = groupInsurance.eleOrderList.find(ele => ele.key === 'insuranceId')
354
+ isInsuranceChecked = titleEle && titleEle.value && insuranceIdEle.value === ins.key
349
355
  }
350
356
  }
351
357
  if (name === 'accountData') {
352
- return hasInterest && isProductChecked && isInsuranceChecked && ins.accountData && ins.accountData.accountPart;
358
+ return hasInterest && isProductChecked && isInsuranceChecked && ins.accountData && ins.accountData.accountPart
353
359
  }
354
360
  if (name === 'reduceBaofData') {
355
- return hasInterest && isProductChecked && isInsuranceChecked && ins.reduceBaof && ins.reduceBaofData;
361
+ return hasInterest && isProductChecked && isInsuranceChecked && ins.reduceBaof && ins.reduceBaofData
356
362
  }
357
- return false;
363
+ return false
358
364
  }
359
365
  openAddAndTakePopup(ins, name) {
360
- const { resultUuid, inputData, params } = this;
366
+ const { resultUuid, inputData, params } = this
361
367
  if (ins[name]) {
362
- const resultData = convertInputDataToResultData(inputData);
363
- const { groupKey, productKey } = params;
364
- const isReduceBaof = name === 'reduceBaofData';
365
- const type = isReduceBaof ? 'reduceBaof' : ins[name].accountPart;
366
- const scene = !resultUuid ? 1 : Number(insuranceId) === ins.key ? 5 : 2;
368
+ const resultData = convertInputDataToResultData(inputData)
369
+ const { groupKey, productKey } = params
370
+ const isReduceBaof = name === 'reduceBaofData'
371
+ const type = isReduceBaof ? 'reduceBaof' : ins[name].accountPart
372
+ const scene = !resultUuid ? 1 : Number(insuranceId) === ins.key ? 5 : 2
367
373
 
368
374
  const mocktAccountData = {
369
375
  accountPart: 'addAndTake',
@@ -380,7 +386,7 @@ export default class BxtProductTable extends Vue {
380
386
  ]
381
387
  }
382
388
  ]
383
- };
389
+ }
384
390
  const mocktReduceBaofData = {
385
391
  accountPart: 'take',
386
392
  addAndTakeData: [
@@ -392,7 +398,7 @@ export default class BxtProductTable extends Vue {
392
398
  ]
393
399
  }
394
400
  ]
395
- };
401
+ }
396
402
  const mocktReduceBaofData2 = {
397
403
  accountPart: 'take',
398
404
  addAndTakeData: [
@@ -403,7 +409,7 @@ export default class BxtProductTable extends Vue {
403
409
  // ]
404
410
  // }
405
411
  ]
406
- };
412
+ }
407
413
 
408
414
  const takePopupConfig: any = {
409
415
  visible: true,
@@ -421,22 +427,22 @@ export default class BxtProductTable extends Vue {
421
427
  reduceBaofData2: ins.duplicateReduceBaofData || mocktReduceBaofData2,
422
428
  [isReduceBaof ? 'reduceBaofInsuranceId' : 'accountInsuranceId']: ins.key,
423
429
  interestData: null
424
- };
430
+ }
425
431
 
426
432
  if (resultData) {
427
433
  // 投保页追加领取、减保领取
428
434
  if (takePopupConfig.scene === 1) {
429
- takePopupConfig.groupKey = groupKey;
430
- takePopupConfig.productKey = productKey;
435
+ takePopupConfig.groupKey = groupKey
436
+ takePopupConfig.productKey = productKey
431
437
  takePopupConfig.inputData = {
432
438
  personData: resultData.personData,
433
439
  productGroupList: resultData.productGroupList
434
- };
440
+ }
435
441
  }
436
442
  // 结果页追加领取、减保领取
437
443
  if (takePopupConfig.scene === 2) {
438
- takePopupConfig.productKey = productKey;
439
- takePopupConfig.resultUuid = resultUuid;
444
+ takePopupConfig.productKey = productKey
445
+ takePopupConfig.resultUuid = resultUuid
440
446
  // takePopupConfig.resultUuid = 'e34ac050a9f14bc2a821dd6833f803cf', // 7080-追加领取 uuid(测试)
441
447
  // takePopupConfig.resultUuid = 'a25ae1bc496045248bb4082e31fa2aec', // 11661-减保领取 uuid(测试)
442
448
  // takePopupConfig.resultUuid = 'c387da25d0f34d35a4e40d1a1d27c5cb', // 5167-减保领取 uuid(测试)
@@ -444,11 +450,11 @@ export default class BxtProductTable extends Vue {
444
450
  }
445
451
  // 产品利益对比追加领取、减保领取
446
452
  if (takePopupConfig.scene === 5) {
447
- takePopupConfig.resultUuid = resultUuid;
453
+ takePopupConfig.resultUuid = resultUuid
448
454
  }
449
455
 
450
456
  if ([1, 2].includes(takePopupConfig.scene)) {
451
- const productGroupList: any = resultData.productGroupList || [];
457
+ const productGroupList: any = resultData.productGroupList || []
452
458
  productGroupList
453
459
  .filter(g => g.prodOrderList)
454
460
  .forEach(g => {
@@ -460,19 +466,19 @@ export default class BxtProductTable extends Vue {
460
466
  .forEach(item => {
461
467
  if (name === 'reduceBaofData') {
462
468
  if (item.account && item.accountData) {
463
- takePopupConfig.accountData = item.accountData;
464
- takePopupConfig.accountInsuranceId = item.key;
469
+ takePopupConfig.accountData = item.accountData
470
+ takePopupConfig.accountInsuranceId = item.key
465
471
  }
466
472
  } else {
467
473
  if (item.reduceBaof && item.reduceBaofData) {
468
- takePopupConfig.reduceBaofData = item.reduceBaofData;
469
- takePopupConfig.reduceBaofData2 = item.duplicateReduceBaofData;
470
- takePopupConfig.reduceBaofInsuranceId = item.key;
474
+ takePopupConfig.reduceBaofData = item.reduceBaofData
475
+ takePopupConfig.reduceBaofData2 = item.duplicateReduceBaofData
476
+ takePopupConfig.reduceBaofInsuranceId = item.key
471
477
  }
472
478
  }
473
- });
474
- });
475
- });
479
+ })
480
+ })
481
+ })
476
482
  }
477
483
 
478
484
  if ([2, 5].includes(takePopupConfig.scene)) {
@@ -483,34 +489,34 @@ export default class BxtProductTable extends Vue {
483
489
  customRate: 0.047,
484
490
  yearBonusRate: 1.2,
485
491
  endBonusRate: 1.2
486
- };
492
+ }
487
493
  }
488
494
  }
489
- this.takePopupConfig = takePopupConfig;
495
+ this.takePopupConfig = takePopupConfig
490
496
  }
491
497
  }
492
498
  addAndTakeConfirm(data) {
493
- const { productData } = this;
494
- const { type, accountData, accountInsuranceId, reduceBaofData, reduceBaofData2, reduceBaofInsuranceId, interestData } = data;
499
+ const { productData } = this
500
+ const { type, accountData, accountInsuranceId, reduceBaofData, reduceBaofData2, reduceBaofInsuranceId, interestData } = data
495
501
  productData.mulInsOrderList.forEach(ins => {
496
502
  if (ins.key === accountInsuranceId) {
497
- ins.accountData = accountData;
503
+ ins.accountData = accountData
498
504
  }
499
505
  if (ins.key === reduceBaofInsuranceId) {
500
- ins.reduceBaofData = reduceBaofData;
501
- ins.duplicateReduceBaofData = reduceBaofData2;
506
+ ins.reduceBaofData = reduceBaofData
507
+ ins.duplicateReduceBaofData = reduceBaofData2
502
508
  }
503
- });
504
- this.takePopupConfig = initAddAndTakePopupConfig();
505
- console.log(interestData);
509
+ })
510
+ this.takePopupConfig = initAddAndTakePopupConfig()
511
+ console.log(interestData)
506
512
  }
507
513
  closeAddAndTake() {
508
- const { $refs, takePopupConfig } = this;
514
+ const { $refs, takePopupConfig } = this
509
515
  if (!takePopupConfig.visible) {
510
- const refAddAndTake = $refs.AddAndTake;
516
+ const refAddAndTake = $refs.AddAndTake
511
517
  if (refAddAndTake && refAddAndTake.subName === 'Form') {
512
- refAddAndTake.goToTable();
513
- takePopupConfig.visible = true;
518
+ refAddAndTake.goToTable()
519
+ takePopupConfig.visible = true
514
520
  }
515
521
  }
516
522
  }
@@ -519,24 +525,24 @@ export default class BxtProductTable extends Vue {
519
525
  prodVisible: false,
520
526
  ADEVisible: true,
521
527
  title: '调整保额'
522
- };
528
+ }
523
529
  }
524
530
  adjustBaoeConfirm(data) {
525
- this.productData.adjustBaoeData = data;
526
- console.log(data);
527
- this.popupConf = initPopupConf();
531
+ this.productData.adjustBaoeData = data
532
+ console.log(data)
533
+ this.popupConf = initPopupConf()
528
534
  }
529
535
  getAdjustBaoeInsTitle(insList, key) {
530
536
  if (key === 'age') {
531
- return '年龄';
537
+ return '年龄'
532
538
  }
533
539
  const insData = insList.find(function(ins, i) {
534
- return ins[ins.code ? 'code' : 'key'] == key.replace(/baoe_/, '');
535
- });
540
+ return ins[ins.code ? 'code' : 'key'] == key.replace(/baoe_/, '')
541
+ })
536
542
  if (!insData) {
537
- return '';
543
+ return ''
538
544
  }
539
- return /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name) ? /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name)[2] : insData.name;
545
+ return /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name) ? /(\(|\()([^\(\(]+)(\)|\))$/.exec(insData.name)[2] : insData.name
540
546
  }
541
547
  }
542
548
  </script>
@@ -2,9 +2,9 @@
2
2
  <PlanbookInput></PlanbookInput>
3
3
  </template>
4
4
  <script lang="ts">
5
- import Vue from 'vue';
6
- import { Component } from 'vue-property-decorator';
7
- import PlanbookInput from '../index.vue';
5
+ import Vue from 'vue'
6
+ import { Component } from 'vue-property-decorator'
7
+ import PlanbookInput from '../index.vue'
8
8
 
9
9
  @Component({
10
10
  components: {