bxs-tools-ui 1.2.0-2 → 1.2.0-3

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.
@@ -166,14 +166,30 @@ footer {
166
166
  padding: 12px 2px;
167
167
  text-align: center;
168
168
  overflow: hidden;
169
+ white-space: nowrap;
169
170
  }
170
171
  .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
172
  background: rgba(0, 0, 0, 0.02);
172
173
  }
173
174
  .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
- padding: 6px 2px;
175
+ display: -webkit-box;
176
+ display: -webkit-flex;
177
+ display: -moz-box;
178
+ display: -ms-flexbox;
179
+ display: flex;
180
+ -webkit-box-align: center;
181
+ -webkit-align-items: center;
182
+ -moz-box-align: center;
183
+ -ms-flex-align: center;
184
+ align-items: center;
185
+ -webkit-box-pack: center;
186
+ -webkit-justify-content: center;
187
+ -moz-box-pack: center;
188
+ -ms-flex-pack: center;
189
+ justify-content: center;
175
190
  height: 33px;
176
- line-height: 33px;
191
+ padding: 6px 2px;
192
+ white-space: normal;
177
193
  background: rgba(229, 229, 229, 1);
178
194
  }
179
195
  .bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-left {
@@ -186,21 +202,21 @@ footer {
186
202
  width: 75%;
187
203
  overflow: auto
188
204
  }
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-cell {
190
- white-space: normal;
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;
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__zero span:nth-child(1) {
206
+ color: #999;
194
207
  }
195
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 {
196
- display: inline-block;
197
- padding: 1px 3px;
198
- color: rgba(10, 100, 254, 1);
199
- background: rgba(10, 100, 254, 0.1);
200
- -webkit-transform: scale(0.8334);
201
- transform: scale(0.8334);
202
- -webkit-transform-origin: left center;
203
- transform-origin: left center;
209
+ min-width: 45%
210
+ }
211
+ .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) {
212
+ display: inline-block;
213
+ padding: 1px 3px;
214
+ color: rgba(10, 100, 254, 1);
215
+ background: rgba(10, 100, 254, 0.1);
216
+ -webkit-transform: scale(0.8334);
217
+ transform: scale(0.8334);
218
+ -webkit-transform-origin: left center;
219
+ transform-origin: left center;
204
220
  }
205
221
  .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
222
  line-height: normal;
@@ -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 _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_55cfa8be_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_55cfa8be_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_55cfa8be_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
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_0b814651_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_0b814651_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_0b814651_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=55cfa8be&
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=0b814651&
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,17 @@ var render = function render() {
6246
6246
  }), function (key) {
6247
6247
  return _c('div', {
6248
6248
  key: key,
6249
- staticClass: "bxt-aat-table-content-cell",
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
- }, [_c('span', {
6256
- class: {
6257
- 'bxt-aat-table-content-cell__zero': !record[key]
6258
- }
6259
- }, [_vm._v("\n " + _vm._s(record[key]) + "\n ")]), key === 'take' && record.purpose ? _c('span', {
6260
- staticClass: "bxt-aat-table-content-cell__purpose"
6261
- }, [_vm._v("\n " + _vm._s(record.purpose) + "\n ")]) : _vm._e()]);
6259
+ }, [_c('span', [_vm._v("\n " + _vm._s(record[key]) + "\n ")]), key === 'take' && record.purpose ? _c('span', [_vm._v("\n " + _vm._s(record.purpose) + "\n ")]) : _vm._e()]);
6262
6260
  }), 0);
6263
6261
  }), 0)])]) : _vm._e(), _vm.subName === 'Form' ? _c('div', {
6264
6262
  staticClass: "bxt-aat-form"
@@ -6399,7 +6397,7 @@ var render = function render() {
6399
6397
 
6400
6398
  var staticRenderFns = [];
6401
6399
 
6402
- // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=55cfa8be&
6400
+ // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=0b814651&
6403
6401
 
6404
6402
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
6405
6403
  var tslib_es6 = __webpack_require__(0);
@@ -6588,9 +6586,20 @@ function rebuildAccountData(values, accountData) {
6588
6586
  tempAdjust.push(item);
6589
6587
  tempValue = item[2];
6590
6588
  });
6591
- tempAddAndTake.adjustData = tempAdjust.filter(function (ad) {
6592
- return !!ad[2];
6593
- });
6589
+
6590
+ if (tempAddAndTake) {
6591
+ tempAddAndTake.adjustData = tempAdjust.filter(function (ad) {
6592
+ return !!ad[2];
6593
+ });
6594
+ } else {
6595
+ accountData.addAndTakeData.push({
6596
+ key: values.type,
6597
+ adjustData: tempAdjust.filter(function (ad) {
6598
+ return !!ad[2];
6599
+ })
6600
+ });
6601
+ }
6602
+
6594
6603
  return accountData;
6595
6604
  }
6596
6605
  function getEnsureCanTakeAmount(initialData) {
@@ -6722,7 +6731,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
6722
6731
  };
6723
6732
  initAddAndTakeData.forEach(function (d, i) {
6724
6733
  if (!['add', 'take'].includes(d.key)) {
6725
- d.key = d.key + "_" + i;
6734
+ d.uniKey = d.key + "_" + i;
6726
6735
  }
6727
6736
  tableHeaderData[d.key] = d.name;
6728
6737
  });
@@ -6780,12 +6789,12 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
6780
6789
  this.$emit('update:submoduleName', val);
6781
6790
  };
6782
6791
  AddAndTake.prototype.created = function () {
6783
- var _a = this, resultData = _a.resultData, params = _a.params, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
6792
+ var _a = this, resultData = _a.resultData, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
6784
6793
  this.subName = submoduleName;
6785
6794
  var key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
6786
6795
  this.accountData = insuranceData && insuranceData[key];
6787
6796
  if (resultData && resultData.uuid) {
6788
- this.accountData = resultData[key];
6797
+ this.accountData = resultData.accountData;
6789
6798
  }
6790
6799
  if (!this.accountData) {
6791
6800
  this.$toast('缺少配置信息');
@@ -6808,7 +6817,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
6808
6817
  pbData: '',
6809
6818
  productId: params.productKey
6810
6819
  };
6811
- if (!resultData && resultData.uuid) {
6820
+ if (!(resultData && resultData.uuid)) {
6812
6821
  var cloneProductData_1 = Object(planbook["f" /* convertProductData */])(cloneDeep_default()(productData));
6813
6822
  NONEED_PROD_KEYS.forEach(function (ele) {
6814
6823
  delete cloneProductData_1[ele];
@@ -6883,7 +6892,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
6883
6892
  },
6884
6893
  _a[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] = caclAccountData ? caclAccountData.addAndTakeData : null,
6885
6894
  _a);
6886
- if (!resultData && resultData.uuid) {
6895
+ if (!(resultData && resultData.uuid)) {
6887
6896
  var cloneProductData_2 = Object(planbook["f" /* convertProductData */])(cloneDeep_default()(productData));
6888
6897
  NONEED_PROD_KEYS.forEach(function (ele) {
6889
6898
  delete cloneProductData_2[ele];
@@ -7110,8 +7119,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
7110
7119
 
7111
7120
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
7112
7121
  /* 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=55cfa8be&prod&lang=css&
7114
- var add_and_takevue_type_style_index_0_id_55cfa8be_prod_lang_css_ = __webpack_require__(177);
7122
+ // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=0b814651&prod&lang=css&
7123
+ var add_and_takevue_type_style_index_0_id_0b814651_prod_lang_css_ = __webpack_require__(177);
7115
7124
 
7116
7125
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
7117
7126
  var componentNormalizer = __webpack_require__(7);
package/lib/index.css CHANGED
@@ -166,14 +166,30 @@ footer {
166
166
  padding: 12px 2px;
167
167
  text-align: center;
168
168
  overflow: hidden;
169
+ white-space: nowrap;
169
170
  }
170
171
  .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
172
  background: rgba(0, 0, 0, 0.02);
172
173
  }
173
174
  .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
- padding: 6px 2px;
175
+ display: -webkit-box;
176
+ display: -webkit-flex;
177
+ display: -moz-box;
178
+ display: -ms-flexbox;
179
+ display: flex;
180
+ -webkit-box-align: center;
181
+ -webkit-align-items: center;
182
+ -moz-box-align: center;
183
+ -ms-flex-align: center;
184
+ align-items: center;
185
+ -webkit-box-pack: center;
186
+ -webkit-justify-content: center;
187
+ -moz-box-pack: center;
188
+ -ms-flex-pack: center;
189
+ justify-content: center;
175
190
  height: 33px;
176
- line-height: 33px;
191
+ padding: 6px 2px;
192
+ white-space: normal;
177
193
  background: rgba(229, 229, 229, 1);
178
194
  }
179
195
  .bxt-add-and-take .bxt-aat-table .bxt-aat-table-content .bxt-aat-table-content-left {
@@ -186,21 +202,21 @@ footer {
186
202
  width: 75%;
187
203
  overflow: auto
188
204
  }
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-cell {
190
- white-space: normal;
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;
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__zero span:nth-child(1) {
206
+ color: #999;
194
207
  }
195
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 {
196
- display: inline-block;
197
- padding: 1px 3px;
198
- color: rgba(10, 100, 254, 1);
199
- background: rgba(10, 100, 254, 0.1);
200
- -webkit-transform: scale(0.8334);
201
- transform: scale(0.8334);
202
- -webkit-transform-origin: left center;
203
- transform-origin: left center;
209
+ min-width: 45%
210
+ }
211
+ .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) {
212
+ display: inline-block;
213
+ padding: 1px 3px;
214
+ color: rgba(10, 100, 254, 1);
215
+ background: rgba(10, 100, 254, 0.1);
216
+ -webkit-transform: scale(0.8334);
217
+ transform: scale(0.8334);
218
+ -webkit-transform-origin: left center;
219
+ transform-origin: left center;
204
220
  }
205
221
  .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
222
  line-height: normal;
package/lib/index.js CHANGED
@@ -6831,8 +6831,8 @@ module.exports = baseIsSet;
6831
6831
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6832
6832
 
6833
6833
  "use strict";
6834
- /* 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_55cfa8be_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55);
6835
- /* 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_55cfa8be_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_55cfa8be_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6834
+ /* 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_0b814651_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55);
6835
+ /* 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_0b814651_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_0b814651_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6836
6836
  /* unused harmony reexport * */
6837
6837
 
6838
6838
 
@@ -9757,7 +9757,7 @@ __webpack_require__.d(__webpack_exports__, "ProductInfo", function() { return /*
9757
9757
  var defineProperty = __webpack_require__(74);
9758
9758
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
9759
9759
 
9760
- // 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=55cfa8be&
9760
+ // 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=0b814651&
9761
9761
 
9762
9762
 
9763
9763
  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; }
@@ -9824,19 +9824,17 @@ var render = function render() {
9824
9824
  }), function (key) {
9825
9825
  return _c('div', {
9826
9826
  key: key,
9827
- staticClass: "bxt-aat-table-content-cell",
9827
+ class: {
9828
+ 'bxt-aat-table-content-cell': true,
9829
+ 'bxt-aat-table-content-cell__zero': !record[key],
9830
+ 'bxt-aat-table-content-cell__purpose': key === 'take'
9831
+ },
9828
9832
  on: {
9829
9833
  "click": function click($event) {
9830
9834
  return _vm.onClickToForm(key, record);
9831
9835
  }
9832
9836
  }
9833
- }, [_c('span', {
9834
- class: {
9835
- 'bxt-aat-table-content-cell__zero': !record[key]
9836
- }
9837
- }, [_vm._v("\n " + _vm._s(record[key]) + "\n ")]), key === 'take' && record.purpose ? _c('span', {
9838
- staticClass: "bxt-aat-table-content-cell__purpose"
9839
- }, [_vm._v("\n " + _vm._s(record.purpose) + "\n ")]) : _vm._e()]);
9837
+ }, [_c('span', [_vm._v("\n " + _vm._s(record[key]) + "\n ")]), key === 'take' && record.purpose ? _c('span', [_vm._v("\n " + _vm._s(record.purpose) + "\n ")]) : _vm._e()]);
9840
9838
  }), 0);
9841
9839
  }), 0)])]) : _vm._e(), _vm.subName === 'Form' ? _c('div', {
9842
9840
  staticClass: "bxt-aat-form"
@@ -9977,7 +9975,7 @@ var render = function render() {
9977
9975
 
9978
9976
  var staticRenderFns = [];
9979
9977
 
9980
- // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=55cfa8be&
9978
+ // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=0b814651&
9981
9979
 
9982
9980
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
9983
9981
  var tslib_es6 = __webpack_require__(0);
@@ -10783,9 +10781,20 @@ function rebuildAccountData(values, accountData) {
10783
10781
  tempAdjust.push(item);
10784
10782
  tempValue = item[2];
10785
10783
  });
10786
- tempAddAndTake.adjustData = tempAdjust.filter(function (ad) {
10787
- return !!ad[2];
10788
- });
10784
+
10785
+ if (tempAddAndTake) {
10786
+ tempAddAndTake.adjustData = tempAdjust.filter(function (ad) {
10787
+ return !!ad[2];
10788
+ });
10789
+ } else {
10790
+ accountData.addAndTakeData.push({
10791
+ key: values.type,
10792
+ adjustData: tempAdjust.filter(function (ad) {
10793
+ return !!ad[2];
10794
+ })
10795
+ });
10796
+ }
10797
+
10789
10798
  return accountData;
10790
10799
  }
10791
10800
  function getEnsureCanTakeAmount(initialData) {
@@ -11171,7 +11180,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11171
11180
  };
11172
11181
  initAddAndTakeData.forEach(function (d, i) {
11173
11182
  if (!['add', 'take'].includes(d.key)) {
11174
- d.key = d.key + "_" + i;
11183
+ d.uniKey = d.key + "_" + i;
11175
11184
  }
11176
11185
  tableHeaderData[d.key] = d.name;
11177
11186
  });
@@ -11229,12 +11238,12 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11229
11238
  this.$emit('update:submoduleName', val);
11230
11239
  };
11231
11240
  AddAndTake.prototype.created = function () {
11232
- var _a = this, resultData = _a.resultData, params = _a.params, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
11241
+ var _a = this, resultData = _a.resultData, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
11233
11242
  this.subName = submoduleName;
11234
11243
  var key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
11235
11244
  this.accountData = insuranceData && insuranceData[key];
11236
11245
  if (resultData && resultData.uuid) {
11237
- this.accountData = resultData[key];
11246
+ this.accountData = resultData.accountData;
11238
11247
  }
11239
11248
  if (!this.accountData) {
11240
11249
  this.$toast('缺少配置信息');
@@ -11257,7 +11266,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11257
11266
  pbData: '',
11258
11267
  productId: params.productKey
11259
11268
  };
11260
- if (!resultData && resultData.uuid) {
11269
+ if (!(resultData && resultData.uuid)) {
11261
11270
  var cloneProductData_1 = Object(product["b" /* convertProductData */])(cloneDeep_default()(productData));
11262
11271
  NONEED_PROD_KEYS.forEach(function (ele) {
11263
11272
  delete cloneProductData_1[ele];
@@ -11332,7 +11341,7 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11332
11341
  },
11333
11342
  _a[type === 'reduceBaof' ? 'drawData' : 'addAndTakeData'] = caclAccountData ? caclAccountData.addAndTakeData : null,
11334
11343
  _a);
11335
- if (!resultData && resultData.uuid) {
11344
+ if (!(resultData && resultData.uuid)) {
11336
11345
  var cloneProductData_2 = Object(product["b" /* convertProductData */])(cloneDeep_default()(productData));
11337
11346
  NONEED_PROD_KEYS.forEach(function (ele) {
11338
11347
  delete cloneProductData_2[ele];
@@ -11559,8 +11568,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11559
11568
 
11560
11569
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
11561
11570
  /* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
11562
- // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=55cfa8be&prod&lang=css&
11563
- var add_and_takevue_type_style_index_0_id_55cfa8be_prod_lang_css_ = __webpack_require__(150);
11571
+ // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=0b814651&prod&lang=css&
11572
+ var add_and_takevue_type_style_index_0_id_0b814651_prod_lang_css_ = __webpack_require__(150);
11564
11573
 
11565
11574
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue
11566
11575
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "1.2.0-2",
3
+ "version": "1.2.0-3",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -97,7 +97,14 @@ export function rebuildAccountData(values, accountData) {
97
97
  tempAdjust.push(item);
98
98
  tempValue = item[2];
99
99
  });
100
- tempAddAndTake.adjustData = tempAdjust.filter(ad => !!ad[2]);
100
+ if (tempAddAndTake) {
101
+ tempAddAndTake.adjustData = tempAdjust.filter(ad => !!ad[2]);
102
+ } else {
103
+ accountData.addAndTakeData.push({
104
+ key: values.type,
105
+ adjustData: tempAdjust.filter(ad => !!ad[2])
106
+ });
107
+ }
101
108
  return accountData;
102
109
  }
103
110
 
@@ -75,6 +75,7 @@
75
75
  padding: 12px 2px;
76
76
  text-align: center;
77
77
  overflow: hidden;
78
+ white-space: nowrap;
78
79
  }
79
80
  }
80
81
 
@@ -86,9 +87,12 @@
86
87
 
87
88
  & .bxt-aat-table-content-record:nth-child(1) {
88
89
  & .bxt-aat-table-content-cell {
89
- padding: 6px 2px;
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: center;
90
93
  height: 33px;
91
- line-height: 33px;
94
+ padding: 6px 2px;
95
+ white-space: normal;
92
96
  background: rgba(229, 229, 229, 1);
93
97
  }
94
98
  }
@@ -109,21 +113,23 @@
109
113
  overflow: auto;
110
114
 
111
115
  & .bxt-aat-table-content-record {
112
- & .bxt-aat-table-content-cell {
113
- white-space: normal;
114
- }
115
-
116
116
  & .bxt-aat-table-content-cell__zero {
117
- color: #999;
117
+ & span:nth-child(1) {
118
+ color: #999;
119
+ }
118
120
  }
119
121
 
120
122
  & .bxt-aat-table-content-cell__purpose {
121
- display: inline-block;
122
- padding: 1px 3px;
123
- color: rgba(10, 100, 254, 1);
124
- background: rgba(10, 100, 254, 0.1);
125
- transform: scale(0.8334);
126
- transform-origin: left center;
123
+ min-width: 45%;
124
+
125
+ & span:nth-child(2) {
126
+ display: inline-block;
127
+ padding: 1px 3px;
128
+ color: rgba(10, 100, 254, 1);
129
+ background: rgba(10, 100, 254, 0.1);
130
+ transform: scale(0.8334);
131
+ transform-origin: left center;
132
+ }
127
133
  }
128
134
  }
129
135
 
@@ -42,17 +42,17 @@
42
42
  <div
43
43
  v-for="key in Object.keys(record).filter(k => !['year', 'age', 'purpose'].includes(k))"
44
44
  :key="key"
45
- class="bxt-aat-table-content-cell"
45
+ :class="{
46
+ 'bxt-aat-table-content-cell': true,
47
+ 'bxt-aat-table-content-cell__zero': !record[key],
48
+ 'bxt-aat-table-content-cell__purpose': key === 'take'
49
+ }"
46
50
  @click="onClickToForm(key, record)"
47
51
  >
48
- <span
49
- :class="{
50
- 'bxt-aat-table-content-cell__zero': !record[key]
51
- }"
52
- >
52
+ <span>
53
53
  {{ record[key] }}
54
54
  </span>
55
- <span v-if="key === 'take' && record.purpose" class="bxt-aat-table-content-cell__purpose">
55
+ <span v-if="key === 'take' && record.purpose">
56
56
  {{ record.purpose }}
57
57
  </span>
58
58
  </div>
@@ -261,7 +261,7 @@ export default class AddAndTake extends Vue {
261
261
  initAddAndTakeData.forEach((d, i) => {
262
262
  // 为解决接口返回的数组中key相同的问题
263
263
  if (!['add', 'take'].includes(d.key)) {
264
- d.key = `${d.key}_${i}`;
264
+ d.uniKey = `${d.key}_${i}`;
265
265
  }
266
266
  tableHeaderData[d.key] = d.name;
267
267
  });
@@ -325,12 +325,12 @@ export default class AddAndTake extends Vue {
325
325
  PURPOSE_OPTIONS = PURPOSE_OPTIONS;
326
326
 
327
327
  created() {
328
- const { resultData, params, submoduleName, insuranceData } = this;
328
+ const { resultData, submoduleName, insuranceData } = this;
329
329
  this.subName = submoduleName;
330
330
  const key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
331
331
  this.accountData = insuranceData && insuranceData[key];
332
332
  if (resultData && resultData.uuid) {
333
- this.accountData = resultData[key];
333
+ this.accountData = resultData.accountData;
334
334
  }
335
335
  if (!this.accountData) {
336
336
  this.$toast('缺少配置信息');
@@ -352,7 +352,7 @@ export default class AddAndTake extends Vue {
352
352
  pbData: '',
353
353
  productId: params.productKey
354
354
  };
355
- if (!resultData && resultData.uuid) {
355
+ if (!(resultData && resultData.uuid)) {
356
356
  const cloneProductData = convertProductData(cloneDeep(productData));
357
357
  NONEED_PROD_KEYS.forEach(ele => {
358
358
  delete cloneProductData[ele];
@@ -424,7 +424,7 @@ export default class AddAndTake extends Vue {
424
424
  },
425
425
  [type === 'reduceBaof' ? 'drawData' : 'addAndTakeData']: caclAccountData ? caclAccountData.addAndTakeData : null
426
426
  };
427
- if (!resultData && resultData.uuid) {
427
+ if (!(resultData && resultData.uuid)) {
428
428
  const cloneProductData = convertProductData(cloneDeep(productData));
429
429
  NONEED_PROD_KEYS.forEach(ele => {
430
430
  delete cloneProductData[ele];
@@ -150,21 +150,47 @@ export default class AddAndTakeDemo extends Vue {
150
150
  ```
151
151
  ###
152
152
  ### Attributes
153
- | 参数| 说明 | 类型 | 默认值 | 备注 |
154
- | --- | --- | --- | --- | --- |
155
- | type | 可不传,有默认值。表示追加领取类型 | String | addAndTake | 可选值:addAndTake、add、take、reduceBaof |
156
- | inputData | 必传。计划书数据,需要符合计划书的数据结构 | Object | {} | - |
157
- | params | 必传。其他参数,参考下方 Params 对象 | Object | {} | - |
158
- | submoduleName | 可不传,只读属性。仅用于需要获取子模块名称的场景 | String | Table | 可选值:Table、Form |
159
- | footer | 可不传,有默认值。表示是否显示底部按钮 | Boolean | true | - |
153
+ | 参数| 说明 | 类型 | 默认值 | 备注 | 版本 |
154
+ | --- | --- | --- | --- | --- | --- |
155
+ | type | 可不传,有默认值。表示追加领取类型 | String | addAndTake | 可选值:addAndTake、add、take、reduceBaof | |
156
+ | inputData | 可选。计划书数据,需要符合计划书的数据结构 | Object | {} | - | |
157
+ | resultData | 可选。用于结果页。优先级高于 inputData | Object | {} | ResultData 对象 | v1.2.0 |
158
+ | params | 必传。其他参数,参考下方 Params 对象 | Object | {} | - | |
159
+ | submoduleName | 可不传,只读属性。仅用于需要获取子模块名称的场景 | String | Table | 可选值:Table、Form | |
160
+ | footer | 可不传,有默认值。表示是否显示底部按钮 | Boolean | true | - | |
160
161
  ###
161
162
  ### Params 对象
163
+ | 参数| 说明 | 类型 | 备注 | 版本 |
164
+ | --- | --- | --- | --- | --- |
165
+ | planbookId | 计划书的 ID | Number | - | |
166
+ | groupKey | 组合产品的 Key | String、Number | - | |
167
+ | productKey | 产品的 Key | Number | - | |
168
+ | insuranceKey | 险种的 Key | Number | - | |
169
+ | bonus | 分红值 | Number | - | v1.2.0 |
170
+ | rate | 账户利率值 | Number | - | v1.2.0 |
171
+
172
+ ### ResultData 对象
162
173
  | 参数| 说明 | 类型 | 备注 |
163
- | --- | --- | --- | --- |
164
- | planbookId | 计划书的 ID | Number | - |
165
- | groupKey | 组合产品的 Key | String、Number | - |
166
- | productKey | 产品的 Key | Number | - |
167
- | insuranceKey | 险种的 Key | Number | - |
174
+ | --- | --- | --- | --- |
175
+ | uuid | 必传,结果页 uuid | String | - |
176
+ | insuredAge | 必传。被保人年龄 | Number | - |
177
+ | accountData | 必传。追加领取或减保领的默认数据 | Object | - |
178
+ accountData 示例:
179
+ ```javscript
180
+ accountData: {
181
+ accountName: '', // 可不传
182
+ addAndTakeData: [
183
+ {
184
+ adjustData: [
185
+ [1, 10, 1, 1, ''] // 年度、年度、追加、领取、用途
186
+ ],
187
+ key: '' // 追加-add 领取-take
188
+ }
189
+ ],
190
+ accountPart: '' // 追加领取-addAndTake 追加-add 领取-take 减保领取-reduceBaof
191
+ }
192
+ ```
193
+
168
194
  ###
169
195
  ### Methods
170
196
  | 方法名 | 说明 | 参数 | 备注 |
@@ -159,18 +159,16 @@
159
159
  :type="popupConf.type"
160
160
  :input-data="inputData"
161
161
  :resultData="{
162
- uuid: '9098b439c0c54848b02f1bec49fe3358',
163
- // uuid: '21e110644eab4c9d845d613ced7d46a4',
162
+ // uuid: '9098b439c0c54848b02f1bec49fe3358', // 追加领取 uuid(测试)
163
+ uuid: '21e110644eab4c9d845d613ced7d46a4', // 减保领取 uuid(测试)
164
164
  insuredAge: 30,
165
165
  accountData: {
166
- // accountData
167
- // reduceBaofData
168
166
  accountName: '',
169
167
  addAndTakeData: [
170
- {
171
- adjustData: [[1, 10, 1222, null]],
172
- key: 'add'
173
- },
168
+ // {
169
+ // adjustData: [[1, 10, 1222, null]],
170
+ // key: 'add'
171
+ // },
174
172
  {
175
173
  adjustData: [[11, 21, 2333, '']],
176
174
  key: 'take'
@@ -184,8 +182,7 @@
184
182
  publicPbUuid: params.publicPbUuid,
185
183
  groupKey: params.groupKey,
186
184
  productKey: params.productKey,
187
- insuranceKey: popupConf.data.insuranceKey,
188
- rate: 0.0175
185
+ insuranceKey: popupConf.data.insuranceKey
189
186
  }"
190
187
  @confirm="addAndTakeConfirm"
191
188
  />