bxs-tools-ui 3.3.2 → 3.3.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.
@@ -9200,9 +9200,8 @@ var request = /*#__PURE__*/function () {
9200
9200
  }();
9201
9201
 
9202
9202
  function validateAdjustBaoe(params) {
9203
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9204
9203
  return request({
9205
- url: "/planBook/".concat(options.publicPbUuid ? 'public' : 'V2', "/validateAccount/-1/low"),
9204
+ url: '/planBook/V2/validateAccount/-1/low',
9206
9205
  method: 'post',
9207
9206
  data: QS.stringify({
9208
9207
  jd: JSON.stringify(params)
@@ -9614,7 +9613,6 @@ var AdjustBaoe = (_dec = Component({}), _dec2 = Prop({
9614
9613
  });
9615
9614
  return validateAdjustBaoe({
9616
9615
  insuranceTypeId: params.planbookId * 1,
9617
- publicPbUuid: params.publicPbUuid,
9618
9616
  personData: {
9619
9617
  personOrderList: convertPersonData(personData, personData.personOrderList.map(function (p) {
9620
9618
  return p.key;
@@ -9626,8 +9624,6 @@ var AdjustBaoe = (_dec = Component({}), _dec2 = Prop({
9626
9624
  adjustBaoeData: this.adjustBaoeData
9627
9625
  })]
9628
9626
  }]
9629
- }, {
9630
- publicPbUuid: params.publicPbUuid
9631
9627
  }).catch(function (err) {
9632
9628
  _this5.adjustBaoeData = cloneAdjustBaoeData;
9633
9629
  if (err) {
package/es/index.js CHANGED
@@ -13969,9 +13969,8 @@ function Watch(path, options) {
13969
13969
  }
13970
13970
 
13971
13971
  function validateAdjustBaoe(params) {
13972
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13973
13972
  return request({
13974
- url: "/planBook/".concat(options.publicPbUuid ? 'public' : 'V2', "/validateAccount/-1/low"),
13973
+ url: '/planBook/V2/validateAccount/-1/low',
13975
13974
  method: 'post',
13976
13975
  data: QS.stringify({
13977
13976
  jd: JSON.stringify(params)
@@ -14200,7 +14199,6 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
14200
14199
  });
14201
14200
  return validateAdjustBaoe({
14202
14201
  insuranceTypeId: params.planbookId * 1,
14203
- publicPbUuid: params.publicPbUuid,
14204
14202
  personData: {
14205
14203
  personOrderList: convertPersonData(personData, personData.personOrderList.map(function (p) {
14206
14204
  return p.key;
@@ -14212,8 +14210,6 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
14212
14210
  adjustBaoeData: this.adjustBaoeData
14213
14211
  })]
14214
14212
  }]
14215
- }, {
14216
- publicPbUuid: params.publicPbUuid
14217
14213
  }).catch(function (err) {
14218
14214
  _this5.adjustBaoeData = cloneAdjustBaoeData;
14219
14215
  if (err) {
@@ -46878,7 +46874,6 @@ function _createdProductDataToCalc() {
46878
46874
  productData: productData
46879
46875
  });
46880
46876
  reqData = {
46881
- publicPbUuid: options.publicPbUuid || null,
46882
46877
  insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
46883
46878
  personData: {
46884
46879
  personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
@@ -47132,14 +47127,13 @@ var BxtProductInfo = (_dec = Component({
47132
47127
  value: function () {
47133
47128
  var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
47134
47129
  var _this5 = this;
47135
- var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, eventTarget, errorMsg;
47130
+ var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
47136
47131
  return _regeneratorRuntime.wrap(function (_context4) {
47137
47132
  while (1) switch (_context4.prev = _context4.next) {
47138
47133
  case 0:
47139
47134
  $listeners = this.$listeners, user = this.user, inputData = this.inputData, verifyData = this.verifyData, personData = this.personData, groupKey = this.groupKey, productKey = this.productKey, params = this.params;
47140
47135
  type = options.type, insData = options.insData, eleData = options.eleData;
47141
47136
  planbookId = get$3(params, 'planbookId');
47142
- publicPbUuid = get$3(params, 'publicPbUuid');
47143
47137
  productVerifyData = get$3(verifyData, "[".concat(productKey, "]"));
47144
47138
  eventTarget = {
47145
47139
  insuranceKey: get$3(insData, 'key') || null,
@@ -47190,7 +47184,6 @@ var BxtProductInfo = (_dec = Component({
47190
47184
  _this5.$emit('reCalculate', inputData, {
47191
47185
  user: user,
47192
47186
  planbookId: planbookId,
47193
- publicPbUuid: publicPbUuid,
47194
47187
  groupKey: groupKey,
47195
47188
  productKey: productKey,
47196
47189
  executeSource: 'userAction',
@@ -48458,7 +48451,7 @@ if (typeof window !== 'undefined' && window.Vue) {
48458
48451
  install(window.Vue);
48459
48452
  }
48460
48453
  const index = {
48461
- version: '3.3.2',
48454
+ version: '3.3.3',
48462
48455
  install: install
48463
48456
  };
48464
48457
 
@@ -1,10 +1,10 @@
1
1
  import Vue from 'vue';
2
2
  import { memoize, cloneDeep, findLastIndex, get } from 'lodash';
3
- import QS from 'qs';
4
3
  import 'vant/lib/dialog/index.css';
5
4
  import _Dialog from 'vant/lib/dialog';
6
5
  import 'vant/lib/toast/index.css';
7
6
  import _Toast from 'vant/lib/toast';
7
+ import QS from 'qs';
8
8
  import MD5 from 'md5';
9
9
  import CryptoJS from 'crypto-js';
10
10
 
@@ -11020,7 +11020,6 @@ function _createdProductDataToCalc() {
11020
11020
  productData: productData
11021
11021
  });
11022
11022
  reqData = {
11023
- publicPbUuid: options.publicPbUuid || null,
11024
11023
  insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
11025
11024
  personData: {
11026
11025
  personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
@@ -12063,14 +12062,13 @@ var BxtProductInfo = (_dec = Component({
12063
12062
  value: function () {
12064
12063
  var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
12065
12064
  var _this5 = this;
12066
- var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, eventTarget, errorMsg;
12065
+ var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
12067
12066
  return _regeneratorRuntime.wrap(function (_context4) {
12068
12067
  while (1) switch (_context4.prev = _context4.next) {
12069
12068
  case 0:
12070
12069
  $listeners = this.$listeners, user = this.user, inputData = this.inputData, verifyData = this.verifyData, personData = this.personData, groupKey = this.groupKey, productKey = this.productKey, params = this.params;
12071
12070
  type = options.type, insData = options.insData, eleData = options.eleData;
12072
12071
  planbookId = get(params, 'planbookId');
12073
- publicPbUuid = get(params, 'publicPbUuid');
12074
12072
  productVerifyData = get(verifyData, "[".concat(productKey, "]"));
12075
12073
  eventTarget = {
12076
12074
  insuranceKey: get(insData, 'key') || null,
@@ -12121,7 +12119,6 @@ var BxtProductInfo = (_dec = Component({
12121
12119
  _this5.$emit('reCalculate', inputData, {
12122
12120
  user: user,
12123
12121
  planbookId: planbookId,
12124
- publicPbUuid: publicPbUuid,
12125
12122
  groupKey: groupKey,
12126
12123
  productKey: productKey,
12127
12124
  executeSource: 'userAction',
@@ -9197,9 +9197,8 @@
9197
9197
  }();
9198
9198
 
9199
9199
  function validateAdjustBaoe(params) {
9200
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9201
9200
  return request({
9202
- url: "/planBook/".concat(options.publicPbUuid ? 'public' : 'V2', "/validateAccount/-1/low"),
9201
+ url: '/planBook/V2/validateAccount/-1/low',
9203
9202
  method: 'post',
9204
9203
  data: QS.stringify({
9205
9204
  jd: JSON.stringify(params)
@@ -9611,7 +9610,6 @@
9611
9610
  });
9612
9611
  return validateAdjustBaoe({
9613
9612
  insuranceTypeId: params.planbookId * 1,
9614
- publicPbUuid: params.publicPbUuid,
9615
9613
  personData: {
9616
9614
  personOrderList: convertPersonData(personData, personData.personOrderList.map(function (p) {
9617
9615
  return p.key;
@@ -9623,8 +9621,6 @@
9623
9621
  adjustBaoeData: this.adjustBaoeData
9624
9622
  })]
9625
9623
  }]
9626
- }, {
9627
- publicPbUuid: params.publicPbUuid
9628
9624
  }).catch(function (err) {
9629
9625
  _this5.adjustBaoeData = cloneAdjustBaoeData;
9630
9626
  if (err) {
package/lib/index.js CHANGED
@@ -13952,9 +13952,8 @@
13952
13952
  }
13953
13953
 
13954
13954
  function validateAdjustBaoe(params) {
13955
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13956
13955
  return request({
13957
- url: "/planBook/".concat(options.publicPbUuid ? 'public' : 'V2', "/validateAccount/-1/low"),
13956
+ url: '/planBook/V2/validateAccount/-1/low',
13958
13957
  method: 'post',
13959
13958
  data: QS.stringify({
13960
13959
  jd: JSON.stringify(params)
@@ -14183,7 +14182,6 @@
14183
14182
  });
14184
14183
  return validateAdjustBaoe({
14185
14184
  insuranceTypeId: params.planbookId * 1,
14186
- publicPbUuid: params.publicPbUuid,
14187
14185
  personData: {
14188
14186
  personOrderList: convertPersonData(personData, personData.personOrderList.map(function (p) {
14189
14187
  return p.key;
@@ -14195,8 +14193,6 @@
14195
14193
  adjustBaoeData: this.adjustBaoeData
14196
14194
  })]
14197
14195
  }]
14198
- }, {
14199
- publicPbUuid: params.publicPbUuid
14200
14196
  }).catch(function (err) {
14201
14197
  _this5.adjustBaoeData = cloneAdjustBaoeData;
14202
14198
  if (err) {
@@ -46861,7 +46857,6 @@
46861
46857
  productData: productData
46862
46858
  });
46863
46859
  reqData = {
46864
- publicPbUuid: options.publicPbUuid || null,
46865
46860
  insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
46866
46861
  personData: {
46867
46862
  personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
@@ -47115,14 +47110,13 @@
47115
47110
  value: function () {
47116
47111
  var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
47117
47112
  var _this5 = this;
47118
- var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, eventTarget, errorMsg;
47113
+ var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
47119
47114
  return _regeneratorRuntime.wrap(function (_context4) {
47120
47115
  while (1) switch (_context4.prev = _context4.next) {
47121
47116
  case 0:
47122
47117
  $listeners = this.$listeners, user = this.user, inputData = this.inputData, verifyData = this.verifyData, personData = this.personData, groupKey = this.groupKey, productKey = this.productKey, params = this.params;
47123
47118
  type = options.type, insData = options.insData, eleData = options.eleData;
47124
47119
  planbookId = lodash.get(params, 'planbookId');
47125
- publicPbUuid = lodash.get(params, 'publicPbUuid');
47126
47120
  productVerifyData = lodash.get(verifyData, "[".concat(productKey, "]"));
47127
47121
  eventTarget = {
47128
47122
  insuranceKey: lodash.get(insData, 'key') || null,
@@ -47173,7 +47167,6 @@
47173
47167
  _this5.$emit('reCalculate', inputData, {
47174
47168
  user: user,
47175
47169
  planbookId: planbookId,
47176
- publicPbUuid: publicPbUuid,
47177
47170
  groupKey: groupKey,
47178
47171
  productKey: productKey,
47179
47172
  executeSource: 'userAction',
@@ -48441,7 +48434,7 @@
48441
48434
  install(window.Vue);
48442
48435
  }
48443
48436
  var index = {
48444
- version: '3.3.2',
48437
+ version: '3.3.3',
48445
48438
  install: install
48446
48439
  };
48447
48440
 
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('lodash'), require('qs'), require('vant/lib/dialog/index.css'), require('vant/lib/dialog'), require('vant/lib/toast/index.css'), require('vant/lib/toast'), require('md5'), require('crypto-js')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'vue', 'lodash', 'qs', 'vant/lib/dialog/index.css', 'vant/lib/dialog', 'vant/lib/toast/index.css', 'vant/lib/toast', 'md5', 'crypto-js'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BXT = {}, global.Vue, global._, global.QS, null, global._Dialog, null, global._Toast, global.md5, global.CryptoJS));
5
- })(this, (function (exports, Vue, lodash, QS, index_css, _Dialog, index_css$1, _Toast, MD5, CryptoJS) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('lodash'), require('vant/lib/dialog/index.css'), require('vant/lib/dialog'), require('vant/lib/toast/index.css'), require('vant/lib/toast'), require('qs'), require('md5'), require('crypto-js')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'vue', 'lodash', 'vant/lib/dialog/index.css', 'vant/lib/dialog', 'vant/lib/toast/index.css', 'vant/lib/toast', 'qs', 'md5', 'crypto-js'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BXT = {}, global.Vue, global._, null, global._Dialog, null, global._Toast, global.QS, global.md5, global.CryptoJS));
5
+ })(this, (function (exports, Vue, lodash, index_css, _Dialog, index_css$1, _Toast, QS, MD5, CryptoJS) { 'use strict';
6
6
 
7
7
  function _typeof$2(o) {
8
8
  "@babel/helpers - typeof";
@@ -11016,7 +11016,6 @@
11016
11016
  productData: productData
11017
11017
  });
11018
11018
  reqData = {
11019
- publicPbUuid: options.publicPbUuid || null,
11020
11019
  insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
11021
11020
  personData: {
11022
11021
  personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
@@ -12059,14 +12058,13 @@
12059
12058
  value: function () {
12060
12059
  var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
12061
12060
  var _this5 = this;
12062
- var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, publicPbUuid, productVerifyData, eventTarget, errorMsg;
12061
+ var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
12063
12062
  return _regeneratorRuntime.wrap(function (_context4) {
12064
12063
  while (1) switch (_context4.prev = _context4.next) {
12065
12064
  case 0:
12066
12065
  $listeners = this.$listeners, user = this.user, inputData = this.inputData, verifyData = this.verifyData, personData = this.personData, groupKey = this.groupKey, productKey = this.productKey, params = this.params;
12067
12066
  type = options.type, insData = options.insData, eleData = options.eleData;
12068
12067
  planbookId = lodash.get(params, 'planbookId');
12069
- publicPbUuid = lodash.get(params, 'publicPbUuid');
12070
12068
  productVerifyData = lodash.get(verifyData, "[".concat(productKey, "]"));
12071
12069
  eventTarget = {
12072
12070
  insuranceKey: lodash.get(insData, 'key') || null,
@@ -12117,7 +12115,6 @@
12117
12115
  _this5.$emit('reCalculate', inputData, {
12118
12116
  user: user,
12119
12117
  planbookId: planbookId,
12120
- publicPbUuid: publicPbUuid,
12121
12118
  groupKey: groupKey,
12122
12119
  productKey: productKey,
12123
12120
  executeSource: 'userAction',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -153,12 +153,10 @@ export default {
153
153
  getPlanbookData() {
154
154
  const self = this
155
155
  const { URL_PARAM } = self
156
- const { planbookId, publicPbUuid, uuid } = URL_PARAM
156
+ const { planbookId, uuid } = URL_PARAM
157
157
  return getPlanbookData({
158
158
  insuranceTypeId: planbookId || 13767,
159
- resultUuid: uuid,
160
- publicPbUuid
161
- // publicPbUuid: '5d6499946bbb47bb8f6a286e9d4eee77'
159
+ resultUuid: uuid
162
160
  })
163
161
  .then(async data => {
164
162
  await initPageData(data)
@@ -173,7 +171,7 @@ export default {
173
171
  },
174
172
  autoImportData() {
175
173
  const { URL_PARAM, exportData, inputData } = this
176
- const { planbookId, publicPbUuid } = URL_PARAM
174
+ const { planbookId } = URL_PARAM
177
175
  if (inputData) {
178
176
  const gPromises = inputData.productGroupList
179
177
  .filter(g => g.prodOrderList)
@@ -182,7 +180,6 @@ export default {
182
180
  return doubleCalcProductData(inputData, {
183
181
  planbookId: Number(planbookId) || 13767,
184
182
  executeSource: exportData ? 'import' : 'init',
185
- publicPbUuid,
186
183
  groupKey: g.key,
187
184
  productKey: p.key,
188
185
  isIgnoreError: true
@@ -246,32 +246,26 @@ export default class AdjustBaoe extends Vue {
246
246
  delete ins[ele]
247
247
  })
248
248
  })
249
- return validateAdjustBaoe(
250
- {
251
- insuranceTypeId: params.planbookId * 1,
252
- publicPbUuid: params.publicPbUuid,
253
- personData: {
254
- personOrderList: convertPersonData(
255
- personData,
256
- personData.personOrderList.map(p => p.key)
257
- )
258
- },
259
- productGroupList: [
260
- {
261
- key: params.groupKey,
262
- prodOrderList: [
263
- {
264
- ...cloneProductData,
265
- adjustBaoeData: this.adjustBaoeData
266
- }
267
- ]
268
- }
269
- ]
249
+ return validateAdjustBaoe({
250
+ insuranceTypeId: params.planbookId * 1,
251
+ personData: {
252
+ personOrderList: convertPersonData(
253
+ personData,
254
+ personData.personOrderList.map(p => p.key)
255
+ )
270
256
  },
271
- {
272
- publicPbUuid: params.publicPbUuid
273
- }
274
- ).catch(err => {
257
+ productGroupList: [
258
+ {
259
+ key: params.groupKey,
260
+ prodOrderList: [
261
+ {
262
+ ...cloneProductData,
263
+ adjustBaoeData: this.adjustBaoeData
264
+ }
265
+ ]
266
+ }
267
+ ]
268
+ }).catch(err => {
275
269
  this.adjustBaoeData = cloneAdjustBaoeData
276
270
  if (err) {
277
271
  this.$toast(err)
@@ -114,7 +114,6 @@ export default {
114
114
  | `planbookId` | 计划书 ID | Number |
115
115
  | `groupKey` | 产品组的 key | String / Number |
116
116
  | `productKey` | 产品的 key | Number |
117
- | `publicPbUuid` | 公开计划书的 uuid;传入时调用 public 接口进行保额校验 | String |
118
117
 
119
118
  ---
120
119
 
package/packages/index.ts CHANGED
@@ -50,6 +50,6 @@ export {
50
50
  }
51
51
 
52
52
  export default {
53
- version: '3.3.2',
53
+ version: '3.3.3',
54
54
  install
55
55
  }
@@ -22,9 +22,6 @@ export default class PersonInfoDemo extends Vue {
22
22
  verifyData = null
23
23
  personData = null
24
24
  created() {
25
- if (!this.URL_PARAM.publicPbUuid) {
26
- this.URL_PARAM.publicPbUuid = '5d6499946bbb47bb8f6a286e9d4eee77'
27
- }
28
25
  document.body.style.backgroundColor = '#f2f2f2'
29
26
  this.getPlanbookData()
30
27
  }
@@ -33,7 +30,8 @@ export default class PersonInfoDemo extends Vue {
33
30
  }
34
31
  getPlanbookData() {
35
32
  getPlanbookData({
36
- publicPbUuid: this.URL_PARAM.publicPbUuid
33
+ insuranceTypeId: this.URL_PARAM.planbookId || 13767,
34
+ resultUuid: this.URL_PARAM.uuid
37
35
  })
38
36
  .then(async (data: any) => {
39
37
  await initPageData(data)
@@ -183,7 +183,6 @@
183
183
  :input-data="inputData"
184
184
  :params="{
185
185
  planbookId: params.planbookId,
186
- publicPbUuid: params.publicPbUuid,
187
186
  groupKey: params.groupKey,
188
187
  productKey: params.productKey
189
188
  }"
@@ -260,7 +260,6 @@ export async function createdProductDataToCalc(inputData, options = {}) {
260
260
  productData
261
261
  })
262
262
  const reqData = {
263
- publicPbUuid: options.publicPbUuid || null,
264
263
  insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
265
264
  personData: {
266
265
  personOrderList: convertPersonData(
@@ -499,12 +498,11 @@ export function genProductUniqueKeyWithNS(namespace, groupKey, productKey) {
499
498
  }
500
499
 
501
500
  export async function calcProductData(inputData, options, cb) {
502
- const { planbookId, publicPbUuid, groupKey, productKey, isIgnoreError, isIgnoreLoading, productCalcNamespace } = options || {}
501
+ const { planbookId, groupKey, productKey, isIgnoreError, productCalcNamespace } = options || {}
503
502
  const productUniqueKey = genProductUniqueKeyWithNS(productCalcNamespace, groupKey, productKey)
504
503
  try {
505
504
  const params = await createdProductDataToCalc(inputData, {
506
505
  planbookId,
507
- publicPbUuid,
508
506
  groupKey,
509
507
  productKey
510
508
  })
@@ -524,26 +522,16 @@ export async function calcProductData(inputData, options, cb) {
524
522
  })
525
523
  }
526
524
  }
527
- let resData = null
528
- if (publicPbUuid) {
529
- resData = await calcPlanbookProduct({
530
- jd: params.jd
525
+ const resData = await calcPlanbookProduct(
526
+ qs.stringify({
527
+ jd: params.jd,
528
+ signature: params.signature,
529
+ clientVersion: params.clientVersion,
530
+ isIos: params.isIos
531
531
  })
532
- } else {
533
- resData = await calcPlanbookProduct(
534
- qs.stringify({
535
- jd: params.jd,
536
- signature: params.signature,
537
- clientVersion: params.clientVersion,
538
- isIos: params.isIos
539
- }),
540
- {
541
- isIgnoreLoading
542
- }
543
- ).catch(err => {
544
- return Promise.reject(err)
545
- })
546
- }
532
+ ).catch(err => {
533
+ return Promise.reject(err)
534
+ })
547
535
 
548
536
  if (!resData.success || !resData.data) {
549
537
  if (resData.code === '002017') {
@@ -635,7 +623,7 @@ export async function calcProductData(inputData, options, cb) {
635
623
  }
636
624
 
637
625
  export async function doubleCalcProductData(inputData, verifyData, options = {}) {
638
- const { user, planbookId, publicPbUuid, groupKey, productKey, isIgnoreError, productCalcNamespace, executeSource } = options
626
+ const { user, planbookId, groupKey, productKey, isIgnoreError, productCalcNamespace, executeSource } = options
639
627
  const personData = inputData && inputData.personData
640
628
  const productGroupList = inputData && inputData.productGroupList ? inputData.productGroupList : []
641
629
  const productGroup = productGroupList.find(g => g.key === groupKey)
@@ -656,7 +644,6 @@ export async function doubleCalcProductData(inputData, verifyData, options = {})
656
644
  await calcProductData(inputData, {
657
645
  user,
658
646
  planbookId,
659
- publicPbUuid,
660
647
  groupKey,
661
648
  productKey,
662
649
  executeSource,
@@ -672,7 +659,6 @@ export async function doubleCalcProductData(inputData, verifyData, options = {})
672
659
  await calcProductData(inputData, {
673
660
  user,
674
661
  planbookId,
675
- publicPbUuid,
676
662
  groupKey,
677
663
  productKey,
678
664
  executeSource,
@@ -684,7 +670,7 @@ export async function doubleCalcProductData(inputData, verifyData, options = {})
684
670
  }
685
671
 
686
672
  export function calcAllProductData(inputData, verifyData, options) {
687
- const { planbookId, publicPbUuid, userUuid, appid, productCalcNamespace, executeSource } = options
673
+ const { planbookId, userUuid, appid, productCalcNamespace, executeSource } = options
688
674
  const productGroupList = (_get(inputData, 'productGroupList') || []).filter(g => g.prodOrderList)
689
675
  const prodOrderList = productGroupList
690
676
  .map(g => g.prodOrderList)
@@ -708,7 +694,6 @@ export function calcAllProductData(inputData, verifyData, options) {
708
694
  return doubleCalcProductData(inputData, verifyData, {
709
695
  planbookId,
710
696
  executeSource,
711
- publicPbUuid,
712
697
  groupKey: g.key,
713
698
  productKey: p.key,
714
699
  isIgnoreError: true,
@@ -2,20 +2,19 @@
2
2
  <div class="bxt-planbook" v-if="inputData">
3
3
  <div class="bxt-planbook-person">
4
4
  <div class="bxt-person-container" v-if="inputData.personData">
5
- <template v-for="person in inputData.personData.personOrderList">
6
- <PersonInfo
7
- :key="person.key"
8
- :input-data="inputData"
9
- :verify-data="planbookData && planbookData.verifyData"
10
- :person-data="person"
11
- :is-show-crm-person="true"
12
- :params="{
13
- brokerFlag: planbookData && planbookData.brokerFlag,
14
- planbookId: planbookData && planbookData.pbId
15
- }"
16
- @change="changePersonInfo"
17
- />
18
- </template>
5
+ <PersonInfo
6
+ v-for="person in inputData.personData.personOrderList"
7
+ :key="person.key"
8
+ :input-data="inputData"
9
+ :verify-data="planbookData && planbookData.verifyData"
10
+ :person-data="person"
11
+ :is-show-crm-person="true"
12
+ :params="{
13
+ brokerFlag: planbookData && planbookData.brokerFlag,
14
+ planbookId: planbookData && planbookData.pbId
15
+ }"
16
+ @change="changePersonInfo"
17
+ />
19
18
  </div>
20
19
  </div>
21
20
  <div class="bxt-planbook-product">
@@ -30,7 +29,6 @@
30
29
  :verify-data="planbookData && planbookData.verifyData"
31
30
  :params="{
32
31
  planbookId: Number(URL_PARAM.planbookId),
33
- publicPbUuid: URL_PARAM.publicPbUuid,
34
32
  groupKey: g.key,
35
33
  productKey: p.key,
36
34
  interestProductList: planbookData && planbookData.interestProductList
@@ -95,12 +93,10 @@ export default class BxtPlanbookInput extends Vue {
95
93
  getPlanbookData() {
96
94
  const self = this
97
95
  const { URL_PARAM, userInfo } = self
98
- const { planbookId, publicPbUuid, uuid } = URL_PARAM
96
+ const { planbookId, uuid } = URL_PARAM
99
97
  return getPlanbookData({
100
98
  insuranceTypeId: planbookId || 13767,
101
- resultUuid: uuid,
102
- publicPbUuid
103
- // publicPbUuid: '5d6499946bbb47bb8f6a286e9d4eee77'
99
+ resultUuid: uuid
104
100
  })
105
101
  .then(async (data: any) => {
106
102
  await initPageData(data, {
@@ -117,7 +113,7 @@ export default class BxtPlanbookInput extends Vue {
117
113
  }
118
114
  autoImportData() {
119
115
  const { URL_PARAM, userInfo, exportData, verifyData, inputData } = this
120
- const { planbookId, publicPbUuid } = URL_PARAM
116
+ const { planbookId } = URL_PARAM
121
117
  if (inputData) {
122
118
  inputData.productGroupList
123
119
  .filter((g: IPbProductGroup) => g.prodOrderList)
@@ -126,7 +122,6 @@ export default class BxtPlanbookInput extends Vue {
126
122
  doubleCalcProductData(inputData, verifyData, {
127
123
  user: userInfo,
128
124
  planbookId: Number(planbookId),
129
- publicPbUuid,
130
125
  groupKey: g.key,
131
126
  productKey: p.key,
132
127
  executeSource: exportData ? 'import' : 'init',
@@ -143,7 +138,7 @@ export default class BxtPlanbookInput extends Vue {
143
138
  }
144
139
  changePersonInfo(person: IPbPerson, ele: any = {}) {
145
140
  const { URL_PARAM, userInfo, exportData, verifyData, inputData } = this
146
- const { planbookId, publicPbUuid } = URL_PARAM
141
+ const { planbookId } = URL_PARAM
147
142
  if (inputData) {
148
143
  inputData.productGroupList
149
144
  .filter((g: IPbProductGroup) => g.prodOrderList)
@@ -155,7 +150,6 @@ export default class BxtPlanbookInput extends Vue {
155
150
  user: userInfo,
156
151
  planbookId: Number(planbookId),
157
152
  executeSource: exportData ? 'import' : 'init',
158
- publicPbUuid,
159
153
  groupKey: g.key,
160
154
  productKey: p.key,
161
155
  isIgnoreError: true,
@@ -178,7 +172,7 @@ export default class BxtPlanbookInput extends Vue {
178
172
  confirmProduct(options: any, inst: any) {
179
173
  const self = this
180
174
  const { URL_PARAM, userInfo, inputData } = self
181
- const { planbookId, publicPbUuid } = URL_PARAM
175
+ const { planbookId } = URL_PARAM
182
176
  const { groupKey, productKey } = options
183
177
  inst.$refs.productInfo
184
178
  .validate()
@@ -186,7 +180,6 @@ export default class BxtPlanbookInput extends Vue {
186
180
  return calcProductData(inputData, {
187
181
  user: userInfo,
188
182
  planbookId: Number(planbookId),
189
- publicPbUuid,
190
183
  groupKey,
191
184
  productKey,
192
185
  executeSource: 'confirm'
@@ -209,11 +202,10 @@ export default class BxtPlanbookInput extends Vue {
209
202
  return Promise.reject()
210
203
  }
211
204
 
212
- const { pbType, planbookId, publicPbUuid, userUuid } = URL_PARAM
205
+ const { pbType, planbookId, userUuid } = URL_PARAM
213
206
  const options: any = {
214
207
  pbType,
215
208
  insuranceTypeId: Number(planbookId) || null,
216
- publicPbUuid,
217
209
  totalBaof: calcTotalBaof(inputData?.productGroupList),
218
210
  userUuid
219
211
  }
@@ -223,7 +215,7 @@ export default class BxtPlanbookInput extends Vue {
223
215
  theme: inputData?.theme,
224
216
  uuid: data
225
217
  })
226
- location.href = `${PBF_HOSTNAME}/planBook/planBookResult/pages/${publicPbUuid ? 'planbkPurely' : 'planbkTemplatev2'}.html?${urlParam}`
218
+ location.href = `${PBF_HOSTNAME}/planBook/planBookResult/pages/planbkTemplatev2.html?${urlParam}`
227
219
  }
228
220
  })
229
221
  }
@@ -175,9 +175,9 @@ import {
175
175
  | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -------------------------------------- |
176
176
  | `initPageData(data)` | 初始化计划书数据,依次处理人员数据和所有产品数据 | `data`:接口返回的原始数据 | Promise\<data\> |
177
177
  | `setPageDataBaseOnResult(data)` | 将已生成结果中的导出数据(`exportData`)回填到初始化数据中,用于「编辑已有计划书」场景 | `data`:同上 | data |
178
- | `calcProductData(inputData, options)` | 对指定产品发起一次试算请求,并将结果写回 `inputData` | `inputData`;`options`:`{ planbookId, publicPbUuid, groupKey, productKey, isIgnoreError }` | Promise |
178
+ | `calcProductData(inputData, options)` | 对指定产品发起一次试算请求,并将结果写回 `inputData` | `inputData`;`options`:`{ planbookId, groupKey, productKey, isIgnoreError }` | Promise |
179
179
  | `doubleCalcProductData(inputData, verifyData, options)` | 先执行 `productDataHandler` 再执行 `calcProductData`,对存在 `revalidateFlag` 的产品自动执行二次试算 | 同上,额外需要 `verifyData` | Promise |
180
- | `makePlanbook(inputData, options)` | 生成计划书 | `inputData`;`options`:`{ pbType, insuranceTypeId, publicPbUuid, totalBaof, userUuid }` | Object / null |
180
+ | `makePlanbook(inputData, options)` | 生成计划书 | `inputData`;`options`:`{ pbType, insuranceTypeId, totalBaof, userUuid }` | Object / null |
181
181
  | `setupUnderwriteRuleToInputData(inputData)` | 将核保规则(underwrite rule)应用到 inputData,返回处理后的 inputData | `inputData` | Promise\<inputData\> |
182
- | `createdProductDataToCalc(inputData, options)` | 生成试算接口的请求参数(jd + signature) | `inputData`;`options`:`{ planbookId, publicPbUuid, groupKey, productKey }` | Promise\<{ errorMsg, jd, signature }\> |
182
+ | `createdProductDataToCalc(inputData, options)` | 生成试算接口的请求参数(jd + signature) | `inputData`;`options`:`{ planbookId, groupKey, productKey }` | Promise\<{ errorMsg, jd, signature }\> |
183
183
  | `receiveProductData(inputData, rProductData, options)` | 将试算接口返回的产品数据写回 `inputData` | `inputData`;`rProductData`:接口返回的产品数据;`options` | productData |
@@ -24,9 +24,6 @@ export default class ProductInfoDemo extends Vue {
24
24
  groupKey = null
25
25
  productKey = null
26
26
  created() {
27
- if (!this.URL_PARAM.publicPbUuid) {
28
- this.URL_PARAM.publicPbUuid = '5d6499946bbb47bb8f6a286e9d4eee77'
29
- }
30
27
  document.body.style.backgroundColor = '#f2f2f2'
31
28
  this.getPlanbookData()
32
29
  }
@@ -35,7 +32,8 @@ export default class ProductInfoDemo extends Vue {
35
32
  }
36
33
  getPlanbookData() {
37
34
  getPlanbookData({
38
- publicPbUuid: this.URL_PARAM.publicPbUuid
35
+ insuranceTypeId: this.URL_PARAM.planbookId || 13767,
36
+ resultUuid: this.URL_PARAM.uuid
39
37
  })
40
38
  .then(async (data: any) => {
41
39
  await initPageData(data)
@@ -328,7 +328,6 @@ export default class BxtProductInfo extends Vue {
328
328
  const { $listeners, user, inputData, verifyData, personData, groupKey, productKey, params } = this
329
329
  const { type, insData, eleData } = options
330
330
  const planbookId = _get(params, 'planbookId')
331
- const publicPbUuid = _get(params, 'publicPbUuid')
332
331
  const productVerifyData = _get(verifyData, `[${productKey}]`)
333
332
  const eventTarget = {
334
333
  insuranceKey: _get(insData, 'key') || null,
@@ -368,7 +367,6 @@ export default class BxtProductInfo extends Vue {
368
367
  {
369
368
  user,
370
369
  planbookId,
371
- publicPbUuid,
372
370
  groupKey,
373
371
  productKey,
374
372
  executeSource: 'userAction',
@@ -88,7 +88,6 @@ export default {
88
88
  | 参数 | 说明 | 类型 |
89
89
  | --------------------- | ------------------------------------------------------------------------- | ------- |
90
90
  | `planbookId` | 计划书 ID,用于产品联动逻辑 | Number |
91
- | `publicPbUuid` | 公开计划书 uuid,传入后使用 public 接口重算 | String |
92
91
  | `allowCustomResult` | 是否显示「自定义保费/保额」开关 | Boolean |
93
92
  | `insuranceSaleStatus` | 险种停售状态映射:`{ [insuranceKey]: number }`;值为 `2` 时展示「停」标签 | Object |
94
93
 
@@ -1,9 +1,9 @@
1
1
  import QS from 'qs'
2
2
  import request from './request'
3
3
 
4
- export function validateAdjustBaoe(params, options = {}) {
4
+ export function validateAdjustBaoe(params) {
5
5
  return request({
6
- url: `/planBook/${options.publicPbUuid ? 'public' : 'V2'}/validateAccount/-1/low`,
6
+ url: '/planBook/V2/validateAccount/-1/low',
7
7
  method: 'post',
8
8
  data: QS.stringify({
9
9
  jd: JSON.stringify(params)
@@ -1,4 +1,3 @@
1
- import QS from 'qs'
2
1
  import request from './request'
3
2
  import { APP_HOSTNAME } from '../js/variables.js'
4
3
 
@@ -10,28 +9,13 @@ export function getPlanbookInitData(params) {
10
9
  })
11
10
  }
12
11
 
13
- export function getPublicPlanbookInitData(params) {
14
- return request({
15
- url: '/planBook/public/init',
16
- method: 'post',
17
- data: QS.stringify(params),
18
- headers: {
19
- Accept: 'application/json, text/plain, */*',
20
- 'Content-Type': 'application/x-www-form-urlencoded'
21
- }
22
- })
23
- }
24
-
25
12
  export function getPlanbookData(params) {
26
- if (params && params.publicPbUuid) {
27
- return getPublicPlanbookInitData(params)
28
- }
29
13
  return getPlanbookInitData(params)
30
14
  }
31
15
 
32
- export function calcPlanbookProduct(params, options = {}) {
16
+ export function calcPlanbookProduct(params) {
33
17
  return request({
34
- url: `/planBook/${options.publicPbUuid ? 'public' : 'V2'}/calculate`,
18
+ url: '/planBook/V2/calculate',
35
19
  method: 'post',
36
20
  data: params,
37
21
  headers: {
@@ -43,9 +27,9 @@ export function calcPlanbookProduct(params, options = {}) {
43
27
  })
44
28
  }
45
29
 
46
- export function uploadPlanBookResult(params, options = {}) {
30
+ export function uploadPlanBookResult(params) {
47
31
  return request({
48
- url: `/planBook/${options.publicPbUuid ? 'public/createPb' : 'V2/uploadResult'}`,
32
+ url: '/planBook/V2/uploadResult',
49
33
  method: 'post',
50
34
  data: params,
51
35
  headers: {