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.
- package/README.md +20 -20
- package/es/add-and-take/index.css +1 -1
- package/es/add-and-take/index.js +283 -64
- package/es/adjust-baoe/index.css +1 -1
- package/es/adjust-baoe/index.js +444 -195
- package/es/business-card/index.css +1 -1
- package/es/business-card/index.js +1 -0
- package/es/canvas-poster/index.css +1 -1
- package/es/canvas-poster/index.js +1 -0
- package/es/index.css +1 -1
- package/es/index.js +936 -824
- package/es/insure-calculate/index.css +1 -1
- package/es/insure-calculate/index.js +438 -265
- package/es/person-info/index.css +1 -1
- package/es/person-info/index.js +296 -1370
- package/es/product-info/index.css +1 -1
- package/es/product-info/index.js +644 -548
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.js +313 -21
- package/es/utils/index.js +530 -429
- package/lib/add-and-take/index.css +1 -1
- package/lib/add-and-take/index.js +283 -64
- package/lib/adjust-baoe/index.css +1 -1
- package/lib/adjust-baoe/index.js +441 -194
- package/lib/business-card/index.css +1 -1
- package/lib/business-card/index.js +1 -0
- package/lib/canvas-poster/index.css +1 -1
- package/lib/canvas-poster/index.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +939 -826
- package/lib/insure-calculate/index.css +1 -1
- package/lib/insure-calculate/index.js +438 -268
- package/lib/person-info/index.css +1 -1
- package/lib/person-info/index.js +295 -1372
- package/lib/product-info/index.css +1 -1
- package/lib/product-info/index.js +645 -550
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +313 -25
- package/lib/utils/index.js +531 -433
- package/package.json +9 -7
- package/packages/add-and-take/components/interest-form.less +144 -0
- package/packages/add-and-take/components/interest-form.vue +179 -179
- package/packages/add-and-take/components/interest-items.less +87 -0
- package/packages/add-and-take/components/interest-items.vue +67 -80
- package/packages/add-and-take/components/interest-table.less +111 -0
- package/packages/add-and-take/components/interest-table.vue +31 -31
- package/packages/add-and-take/constant.ts +2 -2
- package/packages/add-and-take/demo/index.vue +89 -86
- package/packages/add-and-take/handler.ts +52 -57
- package/packages/add-and-take/index.less +69 -0
- package/packages/add-and-take/index.vue +156 -156
- package/packages/add-and-take/readme.md +87 -98
- package/packages/adjust-baoe/demo/index.vue +37 -47
- package/packages/adjust-baoe/index.less +125 -0
- package/packages/adjust-baoe/index.vue +134 -147
- package/packages/adjust-baoe/readme.md +35 -45
- package/packages/business-card/demo/index.vue +7 -7
- package/packages/business-card/index.less +100 -0
- package/packages/business-card/index.vue +18 -21
- package/packages/business-card/readme.md +46 -53
- package/packages/bxs-utils/demo/index.vue +2 -2
- package/packages/bxs-utils/index.ts +5 -5
- package/packages/bxs-utils/planbook/common.ts +56 -92
- package/packages/bxs-utils/planbook/index.ts +4 -4
- package/packages/bxs-utils/planbook/insurance.ts +137 -127
- package/packages/bxs-utils/planbook/person.ts +143 -147
- package/packages/bxs-utils/planbook/product.ts +473 -509
- package/packages/bxs-utils/readme.md +94 -84
- package/packages/bxs-utils/trade/index.js +1 -1
- package/packages/bxs-utils/trade/insureCalculate.js +91 -204
- package/packages/canvas-poster/demo/index.vue +9 -13
- package/packages/canvas-poster/index.less +5 -0
- package/packages/canvas-poster/index.vue +68 -79
- package/packages/canvas-poster/readme.md +106 -109
- package/packages/index.ts +1 -1
- package/packages/insure-calculate/demo/index.vue +20 -20
- package/packages/insure-calculate/index.less +366 -0
- package/packages/insure-calculate/index.vue +305 -329
- package/packages/insure-calculate/readme.md +99 -106
- package/packages/person-info/crm-popup.vue +81 -80
- package/packages/person-info/demo/index.vue +25 -37
- package/packages/person-info/index-inline.less +11 -0
- package/packages/person-info/index.vue +53 -83
- package/packages/person-info/readme.md +109 -115
- package/packages/planbook-input/components/footer.less +54 -0
- package/packages/planbook-input/components/footer.vue +8 -64
- package/packages/planbook-input/components/handler.js +33 -44
- package/packages/planbook-input/components/product-table.less +235 -0
- package/packages/planbook-input/components/product-table.vue +114 -108
- package/packages/planbook-input/demo/index.vue +3 -3
- package/packages/planbook-input/helper.js +852 -465
- package/packages/planbook-input/index.less +30 -0
- package/packages/planbook-input/index.vue +86 -103
- package/packages/planbook-input/readme.md +72 -90
- package/packages/product-info/demo/constant.js +1 -1
- package/packages/product-info/demo/index.vue +31 -43
- package/packages/product-info/index.less +271 -0
- package/packages/product-info/index.vue +198 -210
- package/packages/product-info/readme.md +72 -75
- package/packages/share-sheet/constant.js +4 -4
- package/packages/share-sheet/demo/index.vue +10 -10
- package/packages/share-sheet/handler.js +14 -14
- package/packages/share-sheet/index.less +201 -0
- package/packages/share-sheet/index.vue +39 -39
- package/packages/share-sheet/readme.md +121 -127
- package/src/api/add-and-take.js +45 -0
- package/src/api/adjust-baoe.js +16 -0
- package/src/api/index.js +6 -0
- package/src/api/planbook.js +93 -0
- package/src/api/request.js +211 -0
- package/src/api/trade.js +56 -0
- package/src/api/user.js +18 -0
- package/src/components/common/common-age-birthday.less +66 -0
- package/src/components/common/common-age-birthday.vue +27 -95
- package/src/components/common/common-popup.less +81 -0
- package/src/components/common/common-popup.vue +12 -96
- package/src/components/common/common-radio.less +75 -0
- package/src/components/common/common-radio.vue +13 -91
- package/src/components/common/common-select.less +13 -0
- package/src/components/common/common-select.vue +21 -38
- package/src/components/common/common-title.less +115 -0
- package/src/components/common/common-title.vue +24 -24
- package/src/js/loading.js +6 -6
- package/src/js/md5Token.js +38 -44
- package/src/js/utils.js +45 -53
- package/src/js/variables.js +47 -25
- package/src/style/base.less +18 -0
- package/src/style/color.less +40 -0
- package/src/style/variables.less +21 -42
- package/packages/add-and-take/api.ts +0 -70
- package/packages/add-and-take/components/interest-form.css +0 -146
- package/packages/add-and-take/components/interest-items.css +0 -87
- package/packages/add-and-take/components/interest-table.css +0 -113
- package/packages/add-and-take/index.css +0 -70
- package/packages/adjust-baoe/index.css +0 -123
- package/packages/business-card/index.css +0 -101
- package/packages/canvas-poster/index.css +0 -5
- package/packages/insure-calculate/index.css +0 -368
- package/packages/planbook-input/api.js +0 -29
- package/packages/planbook-input/components/product-table.css +0 -236
- package/packages/planbook-input/index.css +0 -31
- package/packages/product-info/index.css +0 -264
- package/packages/share-sheet/index.css +0 -203
- package/src/components/common/common-title.css +0 -116
- package/src/js/request.js +0 -64
- package/src/style/apply.css +0 -25
- package/src/style/base.css +0 -36
- 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 {
|
|
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 '
|
|
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.
|
|
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
|
|
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: {
|