bxs-tools-ui 1.2.0-2 → 1.2.0-4
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/lib/add-and-take/index.css +86 -54
- package/lib/add-and-take/index.js +104 -51
- package/lib/index.css +84 -52
- package/lib/index.js +104 -51
- package/package.json +1 -1
- package/packages/add-and-take/handler.js +8 -1
- package/packages/add-and-take/index.css +61 -35
- package/packages/add-and-take/index.vue +71 -44
- package/packages/add-and-take/readme.md +38 -12
- package/packages/planbook-input/components/product-table.vue +23 -10
|
@@ -84,10 +84,6 @@ header,
|
|
|
84
84
|
footer {
|
|
85
85
|
display: block;
|
|
86
86
|
}
|
|
87
|
-
.bxt-add-and-take {
|
|
88
|
-
padding: 9px;
|
|
89
|
-
background: #f2f2f2
|
|
90
|
-
}
|
|
91
87
|
.bxt-add-and-take.bxt-add-and-take--footer::after {
|
|
92
88
|
display: block;
|
|
93
89
|
height: constant(safe-area-inset-bottom);
|
|
@@ -101,7 +97,7 @@ footer {
|
|
|
101
97
|
padding-bottom: 55px;
|
|
102
98
|
}
|
|
103
99
|
.bxt-add-and-take .bxt-aat-table {
|
|
104
|
-
padding:
|
|
100
|
+
padding: 12px;
|
|
105
101
|
background: #fff;
|
|
106
102
|
border-radius: 6px
|
|
107
103
|
}
|
|
@@ -130,6 +126,7 @@ footer {
|
|
|
130
126
|
}
|
|
131
127
|
.bxt-add-and-take .bxt-aat-table .bxt-aat-bonus li .bxt-aat-bonus-desc.active {
|
|
132
128
|
font-size: 13px;
|
|
129
|
+
font-weight: bold;
|
|
133
130
|
color: #0a64fe;
|
|
134
131
|
background: #e6effe;
|
|
135
132
|
}
|
|
@@ -166,14 +163,30 @@ footer {
|
|
|
166
163
|
padding: 12px 2px;
|
|
167
164
|
text-align: center;
|
|
168
165
|
overflow: hidden;
|
|
166
|
+
white-space: nowrap;
|
|
169
167
|
}
|
|
170
168
|
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-left .bxt-aat-table-content-record:nth-child(2n) .bxt-aat-table-content-cell, .bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record:nth-child(2n) .bxt-aat-table-content-cell {
|
|
171
169
|
background: rgba(0, 0, 0, 0.02);
|
|
172
170
|
}
|
|
173
171
|
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-left .bxt-aat-table-content-record:nth-child(1) .bxt-aat-table-content-cell, .bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record:nth-child(1) .bxt-aat-table-content-cell {
|
|
174
|
-
|
|
172
|
+
display: -webkit-box;
|
|
173
|
+
display: -webkit-flex;
|
|
174
|
+
display: -moz-box;
|
|
175
|
+
display: -ms-flexbox;
|
|
176
|
+
display: flex;
|
|
177
|
+
-webkit-box-align: center;
|
|
178
|
+
-webkit-align-items: center;
|
|
179
|
+
-moz-box-align: center;
|
|
180
|
+
-ms-flex-align: center;
|
|
181
|
+
align-items: center;
|
|
182
|
+
-webkit-box-pack: center;
|
|
183
|
+
-webkit-justify-content: center;
|
|
184
|
+
-moz-box-pack: center;
|
|
185
|
+
-ms-flex-pack: center;
|
|
186
|
+
justify-content: center;
|
|
175
187
|
height: 33px;
|
|
176
|
-
|
|
188
|
+
padding: 6px 2px;
|
|
189
|
+
white-space: normal;
|
|
177
190
|
background: rgba(229, 229, 229, 1);
|
|
178
191
|
}
|
|
179
192
|
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-left {
|
|
@@ -186,41 +199,39 @@ footer {
|
|
|
186
199
|
width: 75%;
|
|
187
200
|
overflow: auto
|
|
188
201
|
}
|
|
189
|
-
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-cell__zero {
|
|
193
|
-
color: #999;
|
|
202
|
+
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-cell__zero span:nth-child(1) {
|
|
203
|
+
color: #999;
|
|
194
204
|
}
|
|
195
205
|
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-cell__purpose {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
206
|
+
min-width: 45%
|
|
207
|
+
}
|
|
208
|
+
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record .bxt-aat-table-content-cell__purpose span:nth-child(2) {
|
|
209
|
+
display: inline-block;
|
|
210
|
+
padding: 1px 3px;
|
|
211
|
+
color: rgba(10, 100, 254, 1);
|
|
212
|
+
background: rgba(10, 100, 254, 0.1);
|
|
213
|
+
-webkit-transform: scale(0.8334);
|
|
214
|
+
transform: scale(0.8334);
|
|
215
|
+
-webkit-transform-origin: left center;
|
|
216
|
+
transform-origin: left center;
|
|
204
217
|
}
|
|
205
218
|
.bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-right .bxt-aat-table-content-record:nth-child(1) .bxt-aat-table-content-cell {
|
|
206
219
|
line-height: normal;
|
|
207
220
|
}
|
|
208
221
|
.bxt-add-and-take .bxt-aat-form {
|
|
209
222
|
font-size: 13px;
|
|
210
|
-
background: white
|
|
211
|
-
border-radius: 6px
|
|
223
|
+
background: white
|
|
212
224
|
}
|
|
213
225
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items {
|
|
214
226
|
padding: 15px 0
|
|
215
227
|
}
|
|
216
228
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bx-form-item .bxt-aat-form-item-title {
|
|
217
|
-
margin-bottom: 12px;
|
|
218
229
|
font-size: 13px;
|
|
219
230
|
color: #999;
|
|
220
231
|
}
|
|
221
232
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bx-form-item .bx-input {
|
|
222
233
|
width: 150px;
|
|
223
|
-
border: 1px solid #
|
|
234
|
+
border: 1px solid #ccc;
|
|
224
235
|
border-radius: 50px
|
|
225
236
|
}
|
|
226
237
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bx-form-item .bx-input .bx-input-body {
|
|
@@ -242,7 +253,7 @@ footer {
|
|
|
242
253
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-purpose .bxt-aat-form-purpose-options .bxt-aat-form-purpose-option {
|
|
243
254
|
display: inline-block;
|
|
244
255
|
min-width: 50px;
|
|
245
|
-
margin:
|
|
256
|
+
margin: 15px 9px 0 0;
|
|
246
257
|
padding: 3px 6px;
|
|
247
258
|
text-align: center;
|
|
248
259
|
background: rgba(0, 0, 0, 0.04);
|
|
@@ -256,6 +267,7 @@ footer {
|
|
|
256
267
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-purpose .bxt-aat-form-purpose-options .bx-input {
|
|
257
268
|
display: inline-block;
|
|
258
269
|
width: 130px;
|
|
270
|
+
margin-left: 3px;
|
|
259
271
|
font-size: 13px
|
|
260
272
|
}
|
|
261
273
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-purpose .bxt-aat-form-purpose-options .bx-input .bx-input-control {
|
|
@@ -268,6 +280,7 @@ footer {
|
|
|
268
280
|
display: -moz-box;
|
|
269
281
|
display: -ms-flexbox;
|
|
270
282
|
display: flex;
|
|
283
|
+
margin-top: 12px;
|
|
271
284
|
font-size: 13px
|
|
272
285
|
}
|
|
273
286
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-item-content .bxt-aat-form-item-select {
|
|
@@ -281,8 +294,9 @@ footer {
|
|
|
281
294
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-item-content .bxt-aat-form-item-select .bxt-aat-form-item-select__button {
|
|
282
295
|
display: inline-block;
|
|
283
296
|
width: 100%;
|
|
297
|
+
min-height: 28px;
|
|
284
298
|
padding: 5px 12px 5px 6px;
|
|
285
|
-
border: 1px solid #
|
|
299
|
+
border: 1px solid #ccc;
|
|
286
300
|
border-radius: 50px;
|
|
287
301
|
-webkit-box-sizing: border-box;
|
|
288
302
|
-moz-box-sizing: border-box;
|
|
@@ -313,11 +327,14 @@ footer {
|
|
|
313
327
|
transform: translate(-50%, -50%);
|
|
314
328
|
width: 50%;
|
|
315
329
|
height: 1px;
|
|
316
|
-
border-bottom: 1px solid #
|
|
330
|
+
border-bottom: 1px solid #ccc;
|
|
317
331
|
content: ' ';
|
|
318
332
|
}
|
|
333
|
+
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-item-baof {
|
|
334
|
+
margin-top: 12px;
|
|
335
|
+
}
|
|
319
336
|
.bxt-add-and-take .bxt-aat-form .bxt-aat-form-items .bxt-aat-form-baof-tips {
|
|
320
|
-
margin:
|
|
337
|
+
margin: 12px 0;
|
|
321
338
|
line-height: 145%;
|
|
322
339
|
color: #999;
|
|
323
340
|
font-size: 12px
|
|
@@ -354,39 +371,54 @@ footer {
|
|
|
354
371
|
display: flex
|
|
355
372
|
}
|
|
356
373
|
.bxt-add-and-take .bxt-aat-footer .bxt-aat-footer-wrapper span {
|
|
357
|
-
-webkit-box-flex:
|
|
358
|
-
-webkit-flex:
|
|
359
|
-
-moz-box-flex:
|
|
360
|
-
-ms-flex:
|
|
361
|
-
flex:
|
|
374
|
+
-webkit-box-flex: 1;
|
|
375
|
+
-webkit-flex: 1;
|
|
376
|
+
-moz-box-flex: 1;
|
|
377
|
+
-ms-flex: 1;
|
|
378
|
+
flex: 1;
|
|
362
379
|
margin-right: 9px;
|
|
363
380
|
padding: 9px 0;
|
|
364
|
-
|
|
381
|
+
color: #508cee;
|
|
382
|
+
border: 1px solid #508cee;
|
|
365
383
|
border-radius: 6px;
|
|
366
384
|
background: white;
|
|
367
|
-
text-align: center
|
|
368
|
-
}
|
|
369
|
-
.bxt-add-and-take .bxt-aat-footer .bxt-aat-footer-wrapper span
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
385
|
+
text-align: center;
|
|
386
|
+
}
|
|
387
|
+
.bxt-add-and-take .bxt-aat-footer .bxt-aat-footer-wrapper span.bxt-aat-footer-delete-all-btn {
|
|
388
|
+
display: -webkit-box;
|
|
389
|
+
display: -webkit-flex;
|
|
390
|
+
display: -moz-box;
|
|
391
|
+
display: -ms-flexbox;
|
|
392
|
+
display: flex;
|
|
393
|
+
-webkit-box-align: center;
|
|
394
|
+
-webkit-align-items: center;
|
|
395
|
+
-moz-box-align: center;
|
|
396
|
+
-ms-flex-align: center;
|
|
397
|
+
align-items: center;
|
|
398
|
+
padding: 0;
|
|
399
|
+
border: 0;
|
|
400
|
+
color: #333;
|
|
401
|
+
background: none;
|
|
402
|
+
text-align: left
|
|
403
|
+
}
|
|
404
|
+
.bxt-add-and-take .bxt-aat-footer .bxt-aat-footer-wrapper span.bxt-aat-footer-delete-all-btn .icon-delete_rubbish {
|
|
405
|
+
margin-right: 3px;
|
|
406
|
+
font-size: 24px;
|
|
407
|
+
font-weight: bold;
|
|
408
|
+
vertical-align: middle;
|
|
409
|
+
}
|
|
410
|
+
.bxt-add-and-take .bxt-aat-footer .bxt-aat-footer-wrapper span.bxt-aat-footer-delete-all-btn em {
|
|
411
|
+
vertical-align: middle;
|
|
412
|
+
}
|
|
413
|
+
.bxt-add-and-take .bxt-aat-footer .bxt-aat-footer-wrapper span.bxt-aat-footer-ok-btn {
|
|
414
|
+
margin-right: 0;
|
|
415
|
+
color: white;
|
|
416
|
+
border: 1px solid #508cee;
|
|
417
|
+
background: #508cee;
|
|
386
418
|
}
|
|
387
419
|
.bxt-add-and-take .bxt-aat-tips {
|
|
388
420
|
line-height: 145%;
|
|
389
|
-
padding: 12px
|
|
421
|
+
padding: 12px 12px 6px;
|
|
390
422
|
font-size: 12px;
|
|
391
423
|
color: #999;
|
|
392
424
|
}
|
|
@@ -6142,8 +6142,8 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
6142
6142
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6143
6143
|
|
|
6144
6144
|
"use strict";
|
|
6145
|
-
/* harmony import */ var
|
|
6146
|
-
/* harmony import */ var
|
|
6145
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_623c293b_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(165);
|
|
6146
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_623c293b_prod_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_623c293b_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
6147
6147
|
/* unused harmony reexport * */
|
|
6148
6148
|
|
|
6149
6149
|
|
|
@@ -6179,7 +6179,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6179
6179
|
var defineProperty = __webpack_require__(175);
|
|
6180
6180
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
6181
6181
|
|
|
6182
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=
|
|
6182
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./packages/add-and-take/index.vue?vue&type=template&id=623c293b&
|
|
6183
6183
|
|
|
6184
6184
|
|
|
6185
6185
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -6246,19 +6246,21 @@ var render = function render() {
|
|
|
6246
6246
|
}), function (key) {
|
|
6247
6247
|
return _c('div', {
|
|
6248
6248
|
key: key,
|
|
6249
|
-
|
|
6249
|
+
class: {
|
|
6250
|
+
'bxt-aat-table-content-cell': true,
|
|
6251
|
+
'bxt-aat-table-content-cell__zero': !record[key],
|
|
6252
|
+
'bxt-aat-table-content-cell__purpose': key === 'take'
|
|
6253
|
+
},
|
|
6250
6254
|
on: {
|
|
6251
6255
|
"click": function click($event) {
|
|
6252
6256
|
return _vm.onClickToForm(key, record);
|
|
6253
6257
|
}
|
|
6254
6258
|
}
|
|
6255
6259
|
}, [_c('span', {
|
|
6256
|
-
|
|
6257
|
-
|
|
6260
|
+
domProps: {
|
|
6261
|
+
"innerHTML": _vm._s(record[key])
|
|
6258
6262
|
}
|
|
6259
|
-
}, [_vm._v("\n " + _vm._s(record
|
|
6260
|
-
staticClass: "bxt-aat-table-content-cell__purpose"
|
|
6261
|
-
}, [_vm._v("\n " + _vm._s(record.purpose) + "\n ")]) : _vm._e()]);
|
|
6263
|
+
}), key === 'take' && record.purpose ? _c('span', [_vm._v("\n " + _vm._s(record.purpose) + "\n ")]) : _vm._e()]);
|
|
6262
6264
|
}), 0);
|
|
6263
6265
|
}), 0)])]) : _vm._e(), _vm.subName === 'Form' ? _c('div', {
|
|
6264
6266
|
staticClass: "bxt-aat-form"
|
|
@@ -6304,7 +6306,9 @@ var render = function render() {
|
|
|
6304
6306
|
}
|
|
6305
6307
|
}, [_c('header', {
|
|
6306
6308
|
staticClass: "bxt-aat-form-item-title"
|
|
6307
|
-
}, [_vm._v("\n " + _vm._s(_vm.formData.type === 'add' ? '追加金额' : '领取金额') + "\n ")]), _c('
|
|
6309
|
+
}, [_vm._v("\n " + _vm._s(_vm.formData.type === 'add' ? '追加金额' : '领取金额') + "\n ")]), _c('div', {
|
|
6310
|
+
staticClass: "bxt-aat-form-item-baof"
|
|
6311
|
+
}, [_c('bxs-input', {
|
|
6308
6312
|
attrs: {
|
|
6309
6313
|
"placeholder": "请输入金额",
|
|
6310
6314
|
"maxlength": 9,
|
|
@@ -6319,7 +6323,7 @@ var render = function render() {
|
|
|
6319
6323
|
}
|
|
6320
6324
|
}), !['reduceBaof'].includes(_vm.type) && ['take'].includes(_vm.formData.type) ? _c('p', {
|
|
6321
6325
|
staticClass: "bxt-aat-form-baof-tips"
|
|
6322
|
-
}, [_vm._v("\n
|
|
6326
|
+
}, [_vm._v("\n 根据低档收益,最大领取金额约\n "), _c('span', [_vm._v(_vm._s(_vm.ensureCanTakeAmount))]), _vm._v(" 元,仅供参考,实际领取以保单账户价值为准;\n ")]) : _vm._e()], 1)]), ['take'].includes(_vm.formData.type) ? _c('bxs-form-item', {
|
|
6323
6327
|
staticClass: "bxt-aat-form-purpose"
|
|
6324
6328
|
}, [_c('header', {
|
|
6325
6329
|
staticClass: "bxt-aat-form-item-title"
|
|
@@ -6335,21 +6339,15 @@ var render = function render() {
|
|
|
6335
6339
|
on: {
|
|
6336
6340
|
"click": function click($event) {
|
|
6337
6341
|
_vm.formData.purpose = o.val;
|
|
6338
|
-
_vm.isShowCustomPurpose = _vm.formData.purpose === '';
|
|
6339
6342
|
}
|
|
6340
6343
|
}
|
|
6341
6344
|
}, [_vm._v("\n " + _vm._s(o.desc) + "\n ")]);
|
|
6342
6345
|
}), _vm.formData.purpose === '' ? [_c('bxs-input', {
|
|
6343
6346
|
attrs: {
|
|
6344
6347
|
"placeholder": "请输入,5个字以内",
|
|
6345
|
-
"maxlength":
|
|
6348
|
+
"maxlength": 5,
|
|
6346
6349
|
"autocomplete": "off"
|
|
6347
6350
|
},
|
|
6348
|
-
on: {
|
|
6349
|
-
"focus": function focus($event) {
|
|
6350
|
-
_vm.isShowCustomPurpose = true;
|
|
6351
|
-
}
|
|
6352
|
-
},
|
|
6353
6351
|
model: {
|
|
6354
6352
|
value: _vm.formData.customPurpose,
|
|
6355
6353
|
callback: function callback($$v) {
|
|
@@ -6357,29 +6355,39 @@ var render = function render() {
|
|
|
6357
6355
|
},
|
|
6358
6356
|
expression: "formData.customPurpose"
|
|
6359
6357
|
}
|
|
6360
|
-
}), _vm.
|
|
6361
|
-
staticClass: "bxt-aat-form-purpose-option active",
|
|
6362
|
-
on: {
|
|
6363
|
-
"click": function click($event) {
|
|
6364
|
-
_vm.isShowCustomPurpose = false;
|
|
6365
|
-
}
|
|
6366
|
-
}
|
|
6367
|
-
}, [_vm._v("\n 确定\n ")]) : _vm._e()] : _vm._e()], 2)]) : _vm._e()], 1)], 1) : _vm._e(), _c('div', {
|
|
6358
|
+
})] : _vm._e()], 2)]) : _vm._e()], 1)], 1) : _vm._e(), _c('div', {
|
|
6368
6359
|
staticClass: "bxt-aat-tips"
|
|
6369
|
-
}, [_vm._v("\n
|
|
6360
|
+
}, [_vm._v("\n 以上演示为便于保险从业人员学习交流使用,演示数据仅供参考。\n ")]), _vm.footer ? _c('footer', {
|
|
6370
6361
|
staticClass: "bxt-aat-footer"
|
|
6371
6362
|
}, [_c('div', {
|
|
6372
6363
|
staticClass: "bxt-aat-footer-wrapper"
|
|
6373
|
-
}, [_vm.isShowDeleteAllBtn ? _c('span', {
|
|
6374
|
-
staticClass: "delete",
|
|
6364
|
+
}, [_vm.subName === 'Table' ? [_vm.isShowDeleteAllBtn ? _c('span', {
|
|
6365
|
+
staticClass: "bxt-aat-footer-delete-all-btn",
|
|
6375
6366
|
on: {
|
|
6376
6367
|
"click": _vm.deleteAllData
|
|
6377
6368
|
}
|
|
6378
|
-
}, [
|
|
6369
|
+
}, [_c('i', {
|
|
6370
|
+
staticClass: "iconfont icon-delete_rubbish"
|
|
6371
|
+
}), _c('em', [_vm._v("清空")])]) : _vm._e(), ['addAndTake', 'add'].includes(_vm.type) ? _c('span', {
|
|
6379
6372
|
on: {
|
|
6380
|
-
"click":
|
|
6373
|
+
"click": function click($event) {
|
|
6374
|
+
return _vm.openFormPicker('add');
|
|
6375
|
+
}
|
|
6376
|
+
}
|
|
6377
|
+
}, [_vm._v("追加")]) : _vm._e(), ['addAndTake', 'take', 'reduceBaof'].includes(_vm.type) ? _c('span', {
|
|
6378
|
+
on: {
|
|
6379
|
+
"click": function click($event) {
|
|
6380
|
+
return _vm.openFormPicker('take');
|
|
6381
|
+
}
|
|
6381
6382
|
}
|
|
6382
|
-
}, [_vm._v("
|
|
6383
|
+
}, [_vm._v("领取")]) : _vm._e(), _c('span', {
|
|
6384
|
+
staticClass: "bxt-aat-footer-ok-btn",
|
|
6385
|
+
on: {
|
|
6386
|
+
"click": function click($event) {
|
|
6387
|
+
return _vm.tableConfirm();
|
|
6388
|
+
}
|
|
6389
|
+
}
|
|
6390
|
+
}, [_vm._v("确定")])] : _vm._e(), _vm.subName === 'Form' ? [_vm.formData.isShowDelete ? _c('span', {
|
|
6383
6391
|
staticClass: "delete",
|
|
6384
6392
|
on: {
|
|
6385
6393
|
"click": function click($event) {
|
|
@@ -6388,18 +6396,19 @@ var render = function render() {
|
|
|
6388
6396
|
}));
|
|
6389
6397
|
}
|
|
6390
6398
|
}
|
|
6391
|
-
}, [_vm._v("\n 删除" + _vm._s(_vm.formData.beginYear) + "-" + _vm._s(_vm.formData.endYear) + "年记录\n ")]) : _vm._e()
|
|
6399
|
+
}, [_vm._v("\n 删除" + _vm._s(_vm.formData.beginYear) + "-" + _vm._s(_vm.formData.endYear) + "年记录\n ")]) : _vm._e(), _c('span', {
|
|
6400
|
+
staticClass: "bxt-aat-footer-ok-btn",
|
|
6392
6401
|
on: {
|
|
6393
6402
|
"click": function click($event) {
|
|
6394
|
-
|
|
6403
|
+
return _vm.formConfirm();
|
|
6395
6404
|
}
|
|
6396
6405
|
}
|
|
6397
|
-
}, [_vm._v("确定")])], 2)]) : _vm._e()]) : _vm._e();
|
|
6406
|
+
}, [_vm._v("确定")])] : _vm._e()], 2)]) : _vm._e()]) : _vm._e();
|
|
6398
6407
|
};
|
|
6399
6408
|
|
|
6400
6409
|
var staticRenderFns = [];
|
|
6401
6410
|
|
|
6402
|
-
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=
|
|
6411
|
+
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=623c293b&
|
|
6403
6412
|
|
|
6404
6413
|
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
6405
6414
|
var tslib_es6 = __webpack_require__(0);
|
|
@@ -6588,9 +6597,20 @@ function rebuildAccountData(values, accountData) {
|
|
|
6588
6597
|
tempAdjust.push(item);
|
|
6589
6598
|
tempValue = item[2];
|
|
6590
6599
|
});
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6600
|
+
|
|
6601
|
+
if (tempAddAndTake) {
|
|
6602
|
+
tempAddAndTake.adjustData = tempAdjust.filter(function (ad) {
|
|
6603
|
+
return !!ad[2];
|
|
6604
|
+
});
|
|
6605
|
+
} else {
|
|
6606
|
+
accountData.addAndTakeData.push({
|
|
6607
|
+
key: values.type,
|
|
6608
|
+
adjustData: tempAdjust.filter(function (ad) {
|
|
6609
|
+
return !!ad[2];
|
|
6610
|
+
})
|
|
6611
|
+
});
|
|
6612
|
+
}
|
|
6613
|
+
|
|
6594
6614
|
return accountData;
|
|
6595
6615
|
}
|
|
6596
6616
|
function getEnsureCanTakeAmount(initialData) {
|
|
@@ -6660,7 +6680,6 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6660
6680
|
_this.formData = {};
|
|
6661
6681
|
_this.interestFormData = {};
|
|
6662
6682
|
_this.beginYearOptions = [];
|
|
6663
|
-
_this.isShowCustomPurpose = true;
|
|
6664
6683
|
_this.AAT_FORM_RULES = AAT_FORM_RULES;
|
|
6665
6684
|
_this.PURPOSE_OPTIONS = PURPOSE_OPTIONS;
|
|
6666
6685
|
return _this;
|
|
@@ -6722,9 +6741,9 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6722
6741
|
};
|
|
6723
6742
|
initAddAndTakeData.forEach(function (d, i) {
|
|
6724
6743
|
if (!['add', 'take'].includes(d.key)) {
|
|
6725
|
-
d.
|
|
6744
|
+
d.uniKey = d.key + "_" + i;
|
|
6726
6745
|
}
|
|
6727
|
-
tableHeaderData[d.key] = d.name;
|
|
6746
|
+
tableHeaderData[d.uniKey || d.key] = d.name && d.name.replace(/^(.+)([((])/, '<p>$1</p>$2');
|
|
6728
6747
|
});
|
|
6729
6748
|
var startPolicyNo = initInterestData.startPolicyNo, startIndex = initInterestData.startIndex, reduceIndex = initInterestData.reduceIndex;
|
|
6730
6749
|
var maxlength = initAddAndTakeData.reduce(function (a, b) { return Math.max(a, b.values.length || 0); }, 0);
|
|
@@ -6736,7 +6755,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6736
6755
|
};
|
|
6737
6756
|
initAddAndTakeData.map(function (item) {
|
|
6738
6757
|
if (item.values) {
|
|
6739
|
-
record[item.key] = item.values[i] || 0;
|
|
6758
|
+
record[item.uniKey || item.key] = item.values[i] || 0;
|
|
6740
6759
|
}
|
|
6741
6760
|
if (item.details) {
|
|
6742
6761
|
record.purpose = item.details[i] || '';
|
|
@@ -6780,12 +6799,12 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6780
6799
|
this.$emit('update:submoduleName', val);
|
|
6781
6800
|
};
|
|
6782
6801
|
AddAndTake.prototype.created = function () {
|
|
6783
|
-
var _a = this, resultData = _a.resultData,
|
|
6802
|
+
var _a = this, resultData = _a.resultData, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
|
|
6784
6803
|
this.subName = submoduleName;
|
|
6785
6804
|
var key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
|
|
6786
6805
|
this.accountData = insuranceData && insuranceData[key];
|
|
6787
6806
|
if (resultData && resultData.uuid) {
|
|
6788
|
-
this.accountData = resultData
|
|
6807
|
+
this.accountData = resultData.accountData;
|
|
6789
6808
|
}
|
|
6790
6809
|
if (!this.accountData) {
|
|
6791
6810
|
this.$toast('缺少配置信息');
|
|
@@ -6808,7 +6827,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6808
6827
|
pbData: '',
|
|
6809
6828
|
productId: params.productKey
|
|
6810
6829
|
};
|
|
6811
|
-
if (!resultData && resultData.uuid) {
|
|
6830
|
+
if (!(resultData && resultData.uuid)) {
|
|
6812
6831
|
var cloneProductData_1 = Object(planbook["f" /* convertProductData */])(cloneDeep_default()(productData));
|
|
6813
6832
|
NONEED_PROD_KEYS.forEach(function (ele) {
|
|
6814
6833
|
delete cloneProductData_1[ele];
|
|
@@ -6883,7 +6902,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6883
6902
|
},
|
|
6884
6903
|
_a[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] = caclAccountData ? caclAccountData.addAndTakeData : null,
|
|
6885
6904
|
_a);
|
|
6886
|
-
if (!resultData && resultData.uuid) {
|
|
6905
|
+
if (!(resultData && resultData.uuid)) {
|
|
6887
6906
|
var cloneProductData_2 = Object(planbook["f" /* convertProductData */])(cloneDeep_default()(productData));
|
|
6888
6907
|
NONEED_PROD_KEYS.forEach(function (ele) {
|
|
6889
6908
|
delete cloneProductData_2[ele];
|
|
@@ -6925,7 +6944,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6925
6944
|
}
|
|
6926
6945
|
_this.accountData = caclAccountData;
|
|
6927
6946
|
data.forEach(function (d) {
|
|
6928
|
-
d.values = d.values && d.values.map(function (v) { return (v ?
|
|
6947
|
+
d.values = d.values && d.values.map(function (v) { return (v ? Math.round(v) : v); });
|
|
6929
6948
|
});
|
|
6930
6949
|
_this.initAddAndTakeData = data;
|
|
6931
6950
|
return Promise.resolve(data);
|
|
@@ -6955,7 +6974,9 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6955
6974
|
return;
|
|
6956
6975
|
}
|
|
6957
6976
|
var _a = this, insuredAge = _a.insuredAge, initInterestData = _a.initInterestData, initAddAndTakeData = _a.initAddAndTakeData, accountData = _a.accountData;
|
|
6958
|
-
|
|
6977
|
+
if (!(initInterestData && initAddAndTakeData)) {
|
|
6978
|
+
return;
|
|
6979
|
+
}
|
|
6959
6980
|
var purposeOption = PURPOSE_OPTIONS.find(function (o) { return o.val === item.purpose; });
|
|
6960
6981
|
this.formData = {
|
|
6961
6982
|
type: key,
|
|
@@ -6967,6 +6988,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6967
6988
|
isShowDelete: !!item[key]
|
|
6968
6989
|
};
|
|
6969
6990
|
var startPolicyNo = initInterestData.startPolicyNo, startIndex = initInterestData.startIndex;
|
|
6991
|
+
var tempItem = accountData.addAndTakeData && accountData.addAndTakeData.find(function (a) { return a.key === _this.formData.type; });
|
|
6970
6992
|
this.beginYearOptions = getBeginYearOpts(this.formData, {
|
|
6971
6993
|
data: initAddAndTakeData,
|
|
6972
6994
|
startPolicyNo: startPolicyNo,
|
|
@@ -6976,6 +6998,37 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
6976
6998
|
});
|
|
6977
6999
|
this.subName = 'Form';
|
|
6978
7000
|
};
|
|
7001
|
+
AddAndTake.prototype.openFormPicker = function (key) {
|
|
7002
|
+
var _a = this, insuredAge = _a.insuredAge, initInterestData = _a.initInterestData, initAddAndTakeData = _a.initAddAndTakeData;
|
|
7003
|
+
if (!(initInterestData && initAddAndTakeData)) {
|
|
7004
|
+
return;
|
|
7005
|
+
}
|
|
7006
|
+
var startPolicyNo = initInterestData.startPolicyNo, startIndex = initInterestData.startIndex;
|
|
7007
|
+
var maxLength = initAddAndTakeData.reduce(function (a, b) { return Math.max(a, b.values.length); }, 0);
|
|
7008
|
+
var options = [];
|
|
7009
|
+
for (var i = 0; i < maxLength; i++) {
|
|
7010
|
+
var year = i + startPolicyNo;
|
|
7011
|
+
options.push({
|
|
7012
|
+
val: year,
|
|
7013
|
+
desc: "\u7B2C" + year + "\u5E74," + (insuredAge + startIndex + i + 1) + "\u5C81"
|
|
7014
|
+
});
|
|
7015
|
+
}
|
|
7016
|
+
if (!options.length) {
|
|
7017
|
+
return;
|
|
7018
|
+
}
|
|
7019
|
+
var firstOption = options[0];
|
|
7020
|
+
this.formData = {
|
|
7021
|
+
type: key,
|
|
7022
|
+
beginYear: firstOption.val,
|
|
7023
|
+
endYear: firstOption.val,
|
|
7024
|
+
baof: null,
|
|
7025
|
+
purpose: '',
|
|
7026
|
+
customPurpose: '',
|
|
7027
|
+
isShowDelete: false
|
|
7028
|
+
};
|
|
7029
|
+
this.beginYearOptions = options;
|
|
7030
|
+
this.subName = 'Form';
|
|
7031
|
+
};
|
|
6979
7032
|
AddAndTake.prototype.onClickOpenPicker = function (key) {
|
|
6980
7033
|
var self = this;
|
|
6981
7034
|
var formData = self.formData, beginYearOptions = self.beginYearOptions;
|
|
@@ -7110,8 +7163,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
|
|
|
7110
7163
|
|
|
7111
7164
|
// CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
|
|
7112
7165
|
/* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
|
|
7113
|
-
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=
|
|
7114
|
-
var
|
|
7166
|
+
// EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=623c293b&prod&lang=css&
|
|
7167
|
+
var add_and_takevue_type_style_index_0_id_623c293b_prod_lang_css_ = __webpack_require__(177);
|
|
7115
7168
|
|
|
7116
7169
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
7117
7170
|
var componentNormalizer = __webpack_require__(7);
|