bxs-tools-ui 1.2.6 → 1.2.7

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.
@@ -6142,8 +6142,8 @@ module.exports = baseIsSet;
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_ace3efa8_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(166);
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_ace3efa8_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_ace3efa8_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_60c2a1fa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(166);
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_60c2a1fa_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_60c2a1fa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6147
6147
  /* unused harmony reexport * */
6148
6148
 
6149
6149
 
@@ -6179,14 +6179,14 @@ __webpack_require__.r(__webpack_exports__);
6179
6179
  var defineProperty = __webpack_require__(89);
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=ace3efa8&
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=60c2a1fa&
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; }
6186
6186
 
6187
6187
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6188
6188
 
6189
- var add_and_takevue_type_template_id_ace3efa8_render = function render() {
6189
+ var add_and_takevue_type_template_id_60c2a1fa_render = function render() {
6190
6190
  var _vm = this,
6191
6191
  _c = _vm._self._c,
6192
6192
  _setup = _vm._self._setupProxy;
@@ -6485,7 +6485,7 @@ var add_and_takevue_type_template_id_ace3efa8_render = function render() {
6485
6485
 
6486
6486
  var staticRenderFns = [];
6487
6487
 
6488
- // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=ace3efa8&
6488
+ // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=60c2a1fa&
6489
6489
 
6490
6490
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
6491
6491
  var tslib_es6 = __webpack_require__(0);
@@ -6999,18 +6999,47 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
6999
6999
  this.$emit('update:submoduleName', val);
7000
7000
  };
7001
7001
  AddAndTake.prototype.created = function () {
7002
- var _a = this, resultData = _a.resultData, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
7003
- this.subName = submoduleName;
7004
- var key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
7005
- this.accountData = insuranceData && insuranceData[key];
7002
+ var _this = this;
7003
+ this.subName = this.submoduleName;
7004
+ this.initAccountData()
7005
+ .then(function (data) {
7006
+ _this.accountData = data;
7007
+ _this.getInitInterestData();
7008
+ })
7009
+ .catch(function () {
7010
+ _this.$toast('缺少配置信息');
7011
+ });
7012
+ };
7013
+ AddAndTake.prototype.initAccountData = function () {
7014
+ var _a = this, type = _a.type, resultData = _a.resultData, insuranceData = _a.insuranceData;
7015
+ var acountKey = ['reduceBaof'].includes(type) ? 'reduceBaofData' : 'accountData';
7016
+ var accountData = insuranceData && insuranceData[acountKey];
7006
7017
  if (resultData && resultData.uuid) {
7007
- this.accountData = resultData.accountData;
7018
+ accountData = resultData.accountData;
7008
7019
  }
7009
- if (!this.accountData) {
7010
- this.$toast('缺少配置信息');
7011
- return;
7020
+ if (!(accountData && accountData.addAndTakeData && accountData.addAndTakeData.length)) {
7021
+ accountData = {
7022
+ accountPart: type,
7023
+ accountName: accountData && accountData.accountName ? accountData.accountName : '',
7024
+ addAndTakeData: []
7025
+ };
7026
+ if (['addAndTake', 'add'].includes(accountData.accountPart)) {
7027
+ accountData.addAndTakeData.push({
7028
+ key: 'add',
7029
+ adjustData: []
7030
+ });
7031
+ }
7032
+ if (['addAndTake', 'take', 'reduceBaof'].includes(accountData.accountPart)) {
7033
+ accountData.addAndTakeData.push({
7034
+ key: 'take',
7035
+ adjustData: []
7036
+ });
7037
+ }
7038
+ }
7039
+ if (!accountData.addAndTakeData.length) {
7040
+ return Promise.reject();
7012
7041
  }
7013
- this.getInitInterestData();
7042
+ return Promise.resolve(cloneDeep_default()(accountData));
7014
7043
  };
7015
7044
  AddAndTake.prototype.getInitInterestData = function () {
7016
7045
  var _this = this;
@@ -7380,8 +7409,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
7380
7409
 
7381
7410
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
7382
7411
  /* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
7383
- // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=ace3efa8&prod&lang=css&
7384
- var add_and_takevue_type_style_index_0_id_ace3efa8_prod_lang_css_ = __webpack_require__(177);
7412
+ // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=60c2a1fa&prod&lang=css&
7413
+ var add_and_takevue_type_style_index_0_id_60c2a1fa_prod_lang_css_ = __webpack_require__(177);
7385
7414
 
7386
7415
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
7387
7416
  var componentNormalizer = __webpack_require__(7);
@@ -7397,7 +7426,7 @@ var componentNormalizer = __webpack_require__(7);
7397
7426
 
7398
7427
  var component = Object(componentNormalizer["a" /* default */])(
7399
7428
  packages_add_and_takevue_type_script_lang_ts_,
7400
- add_and_takevue_type_template_id_ace3efa8_render,
7429
+ add_and_takevue_type_template_id_60c2a1fa_render,
7401
7430
  staticRenderFns,
7402
7431
  false,
7403
7432
  null,
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_ace3efa8_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
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_ace3efa8_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_ace3efa8_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_60c2a1fa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
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_60c2a1fa_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_60c2a1fa_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
6836
6836
  /* unused harmony reexport * */
6837
6837
 
6838
6838
 
@@ -9757,14 +9757,14 @@ __webpack_require__.d(__webpack_exports__, "ProductInfo", function() { return /*
9757
9757
  var defineProperty = __webpack_require__(13);
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=ace3efa8&
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=60c2a1fa&
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; }
9764
9764
 
9765
9765
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9766
9766
 
9767
- var add_and_takevue_type_template_id_ace3efa8_render = function render() {
9767
+ var add_and_takevue_type_template_id_60c2a1fa_render = function render() {
9768
9768
  var _vm = this,
9769
9769
  _c = _vm._self._c,
9770
9770
  _setup = _vm._self._setupProxy;
@@ -10063,7 +10063,7 @@ var add_and_takevue_type_template_id_ace3efa8_render = function render() {
10063
10063
 
10064
10064
  var staticRenderFns = [];
10065
10065
 
10066
- // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=ace3efa8&
10066
+ // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=template&id=60c2a1fa&
10067
10067
 
10068
10068
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
10069
10069
  var tslib_es6 = __webpack_require__(0);
@@ -11448,18 +11448,47 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11448
11448
  this.$emit('update:submoduleName', val);
11449
11449
  };
11450
11450
  AddAndTake.prototype.created = function () {
11451
- var _a = this, resultData = _a.resultData, submoduleName = _a.submoduleName, insuranceData = _a.insuranceData;
11452
- this.subName = submoduleName;
11453
- var key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
11454
- this.accountData = insuranceData && insuranceData[key];
11451
+ var _this = this;
11452
+ this.subName = this.submoduleName;
11453
+ this.initAccountData()
11454
+ .then(function (data) {
11455
+ _this.accountData = data;
11456
+ _this.getInitInterestData();
11457
+ })
11458
+ .catch(function () {
11459
+ _this.$toast('缺少配置信息');
11460
+ });
11461
+ };
11462
+ AddAndTake.prototype.initAccountData = function () {
11463
+ var _a = this, type = _a.type, resultData = _a.resultData, insuranceData = _a.insuranceData;
11464
+ var acountKey = ['reduceBaof'].includes(type) ? 'reduceBaofData' : 'accountData';
11465
+ var accountData = insuranceData && insuranceData[acountKey];
11455
11466
  if (resultData && resultData.uuid) {
11456
- this.accountData = resultData.accountData;
11467
+ accountData = resultData.accountData;
11457
11468
  }
11458
- if (!this.accountData) {
11459
- this.$toast('缺少配置信息');
11460
- return;
11469
+ if (!(accountData && accountData.addAndTakeData && accountData.addAndTakeData.length)) {
11470
+ accountData = {
11471
+ accountPart: type,
11472
+ accountName: accountData && accountData.accountName ? accountData.accountName : '',
11473
+ addAndTakeData: []
11474
+ };
11475
+ if (['addAndTake', 'add'].includes(accountData.accountPart)) {
11476
+ accountData.addAndTakeData.push({
11477
+ key: 'add',
11478
+ adjustData: []
11479
+ });
11480
+ }
11481
+ if (['addAndTake', 'take', 'reduceBaof'].includes(accountData.accountPart)) {
11482
+ accountData.addAndTakeData.push({
11483
+ key: 'take',
11484
+ adjustData: []
11485
+ });
11486
+ }
11487
+ }
11488
+ if (!accountData.addAndTakeData.length) {
11489
+ return Promise.reject();
11461
11490
  }
11462
- this.getInitInterestData();
11491
+ return Promise.resolve(cloneDeep_default()(accountData));
11463
11492
  };
11464
11493
  AddAndTake.prototype.getInitInterestData = function () {
11465
11494
  var _this = this;
@@ -11829,8 +11858,8 @@ var add_and_takevue_type_script_lang_ts_AddAndTake = (function (_super) {
11829
11858
 
11830
11859
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue?vue&type=script&lang=ts&
11831
11860
  /* harmony default export */ var packages_add_and_takevue_type_script_lang_ts_ = (add_and_takevue_type_script_lang_ts_);
11832
- // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=ace3efa8&prod&lang=css&
11833
- var add_and_takevue_type_style_index_0_id_ace3efa8_prod_lang_css_ = __webpack_require__(150);
11861
+ // EXTERNAL MODULE: ./packages/add-and-take/index.vue?vue&type=style&index=0&id=60c2a1fa&prod&lang=css&
11862
+ var add_and_takevue_type_style_index_0_id_60c2a1fa_prod_lang_css_ = __webpack_require__(150);
11834
11863
 
11835
11864
  // CONCATENATED MODULE: ./packages/add-and-take/index.vue
11836
11865
 
@@ -11843,7 +11872,7 @@ var add_and_takevue_type_style_index_0_id_ace3efa8_prod_lang_css_ = __webpack_re
11843
11872
 
11844
11873
  var add_and_take_component = normalizeComponent(
11845
11874
  packages_add_and_takevue_type_script_lang_ts_,
11846
- add_and_takevue_type_template_id_ace3efa8_render,
11875
+ add_and_takevue_type_template_id_60c2a1fa_render,
11847
11876
  staticRenderFns,
11848
11877
  false,
11849
11878
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -479,18 +479,50 @@ export default class AddAndTake extends Vue {
479
479
  PURPOSE_OPTIONS = PURPOSE_OPTIONS;
480
480
 
481
481
  created() {
482
- const { resultData, submoduleName, insuranceData } = this;
483
- this.subName = submoduleName;
484
- const key = ['reduceBaof'].includes(this.type) ? 'reduceBaofData' : 'accountData';
485
- this.accountData = insuranceData && insuranceData[key];
482
+ this.subName = this.submoduleName;
483
+ this.initAccountData()
484
+ .then(data => {
485
+ this.accountData = data;
486
+ this.getInitInterestData();
487
+ })
488
+ .catch(() => {
489
+ this.$toast('缺少配置信息');
490
+ });
491
+ }
492
+
493
+ initAccountData() {
494
+ const { type, resultData, insuranceData } = this;
495
+ const acountKey = ['reduceBaof'].includes(type) ? 'reduceBaofData' : 'accountData';
496
+ let accountData = insuranceData && insuranceData[acountKey];
497
+ // 结果页数据优先
486
498
  if (resultData && resultData.uuid) {
487
- this.accountData = resultData.accountData;
499
+ accountData = resultData.accountData;
488
500
  }
489
- if (!this.accountData) {
490
- this.$toast('缺少配置信息');
491
- return;
501
+
502
+ // 设备默认追加领取、减额领取数据
503
+ if (!(accountData && accountData.addAndTakeData && accountData.addAndTakeData.length)) {
504
+ accountData = {
505
+ accountPart: type,
506
+ accountName: accountData && accountData.accountName ? accountData.accountName : '',
507
+ addAndTakeData: []
508
+ };
509
+ if (['addAndTake', 'add'].includes(accountData.accountPart)) {
510
+ accountData.addAndTakeData.push({
511
+ key: 'add',
512
+ adjustData: []
513
+ });
514
+ }
515
+ if (['addAndTake', 'take', 'reduceBaof'].includes(accountData.accountPart)) {
516
+ accountData.addAndTakeData.push({
517
+ key: 'take',
518
+ adjustData: []
519
+ });
520
+ }
521
+ }
522
+ if (!accountData.addAndTakeData.length) {
523
+ return Promise.reject();
492
524
  }
493
- this.getInitInterestData();
525
+ return Promise.resolve(cloneDeep(accountData));
494
526
  }
495
527
 
496
528
  getInitInterestData() {