bxs-tools-ui 3.3.1 → 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.
- package/es/adjust-baoe/index.js +1 -5
- package/es/index.js +16 -28
- package/es/product-info/index.js +15 -23
- package/es/utils/index.js +12 -17
- package/lib/adjust-baoe/index.js +1 -5
- package/lib/index.js +16 -28
- package/lib/product-info/index.js +18 -26
- package/lib/utils/index.js +12 -17
- package/package.json +1 -1
- package/packages/add-and-take/demo/index.vue +3 -6
- package/packages/adjust-baoe/index.vue +19 -25
- package/packages/adjust-baoe/readme.md +0 -1
- package/packages/bxs-utils/planbook/common.ts +0 -8
- package/packages/bxs-utils/planbook/product.ts +12 -8
- package/packages/index.ts +1 -1
- package/packages/person-info/demo/index.vue +2 -4
- package/packages/planbook-input/components/product-table.vue +0 -1
- package/packages/planbook-input/helper.js +47 -60
- package/packages/planbook-input/index.vue +20 -28
- package/packages/planbook-input/readme.md +3 -3
- package/packages/product-info/demo/index.vue +2 -4
- package/packages/product-info/index.vue +0 -2
- package/packages/product-info/readme.md +0 -1
- package/src/api/adjust-baoe.js +2 -2
- package/src/api/planbook.js +4 -20
package/es/adjust-baoe/index.js
CHANGED
|
@@ -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:
|
|
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
|
@@ -9132,10 +9132,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9132
9132
|
// 当前险种
|
|
9133
9133
|
common: {},
|
|
9134
9134
|
// 通用信息
|
|
9135
|
-
customVariable: null,
|
|
9136
|
-
// 自定义变量
|
|
9137
|
-
cv: null,
|
|
9138
|
-
// 简写,自定义变量
|
|
9139
9135
|
t: {} // 事件目标
|
|
9140
9136
|
};
|
|
9141
9137
|
if (personData) {
|
|
@@ -9198,11 +9194,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9198
9194
|
map.executeSource = options.executeSource;
|
|
9199
9195
|
}
|
|
9200
9196
|
}
|
|
9201
|
-
if (ins && ins.customVariableExp) {
|
|
9202
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9203
|
-
map.customVariable = eval(exp);
|
|
9204
|
-
map.cv = map.customVariable;
|
|
9205
|
-
}
|
|
9206
9197
|
return map;
|
|
9207
9198
|
}
|
|
9208
9199
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10520,14 +10511,18 @@ function _productDataHandler() {
|
|
|
10520
10511
|
_ret = _loop2();
|
|
10521
10512
|
if (_ret === 0) break;
|
|
10522
10513
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10523
|
-
|
|
10524
|
-
ins.eleOrderList
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10514
|
+
try {
|
|
10515
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10516
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10517
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10518
|
+
for (var k in newEleMap) {
|
|
10519
|
+
ele[k] = newEleMap[k];
|
|
10520
|
+
}
|
|
10521
|
+
});
|
|
10522
|
+
insuranceDataHandler(ins, prodData);
|
|
10523
|
+
}
|
|
10524
|
+
} catch (error) {
|
|
10525
|
+
console.error(error);
|
|
10531
10526
|
}
|
|
10532
10527
|
});
|
|
10533
10528
|
}
|
|
@@ -13974,9 +13969,8 @@ function Watch(path, options) {
|
|
|
13974
13969
|
}
|
|
13975
13970
|
|
|
13976
13971
|
function validateAdjustBaoe(params) {
|
|
13977
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13978
13972
|
return request({
|
|
13979
|
-
url:
|
|
13973
|
+
url: '/planBook/V2/validateAccount/-1/low',
|
|
13980
13974
|
method: 'post',
|
|
13981
13975
|
data: QS.stringify({
|
|
13982
13976
|
jd: JSON.stringify(params)
|
|
@@ -14205,7 +14199,6 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
|
|
|
14205
14199
|
});
|
|
14206
14200
|
return validateAdjustBaoe({
|
|
14207
14201
|
insuranceTypeId: params.planbookId * 1,
|
|
14208
|
-
publicPbUuid: params.publicPbUuid,
|
|
14209
14202
|
personData: {
|
|
14210
14203
|
personOrderList: convertPersonData(personData, personData.personOrderList.map(function (p) {
|
|
14211
14204
|
return p.key;
|
|
@@ -14217,8 +14210,6 @@ var AdjustBaoe = (_dec$7 = Component({}), _dec2$7 = Prop({
|
|
|
14217
14210
|
adjustBaoeData: this.adjustBaoeData
|
|
14218
14211
|
})]
|
|
14219
14212
|
}]
|
|
14220
|
-
}, {
|
|
14221
|
-
publicPbUuid: params.publicPbUuid
|
|
14222
14213
|
}).catch(function (err) {
|
|
14223
14214
|
_this5.adjustBaoeData = cloneAdjustBaoeData;
|
|
14224
14215
|
if (err) {
|
|
@@ -46857,7 +46848,7 @@ function _createdProductDataToCalc() {
|
|
|
46857
46848
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
46858
46849
|
var tempIns = {};
|
|
46859
46850
|
for (var _k2 in ins) {
|
|
46860
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46851
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46861
46852
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
46862
46853
|
'revalidateFlag'].includes(_k2)) {
|
|
46863
46854
|
tempIns[_k2] = ins[_k2];
|
|
@@ -46883,7 +46874,6 @@ function _createdProductDataToCalc() {
|
|
|
46883
46874
|
productData: productData
|
|
46884
46875
|
});
|
|
46885
46876
|
reqData = {
|
|
46886
|
-
publicPbUuid: options.publicPbUuid || null,
|
|
46887
46877
|
insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
|
|
46888
46878
|
personData: {
|
|
46889
46879
|
personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
|
|
@@ -47137,14 +47127,13 @@ var BxtProductInfo = (_dec = Component({
|
|
|
47137
47127
|
value: function () {
|
|
47138
47128
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
|
|
47139
47129
|
var _this5 = this;
|
|
47140
|
-
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId,
|
|
47130
|
+
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
|
|
47141
47131
|
return _regeneratorRuntime.wrap(function (_context4) {
|
|
47142
47132
|
while (1) switch (_context4.prev = _context4.next) {
|
|
47143
47133
|
case 0:
|
|
47144
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;
|
|
47145
47135
|
type = options.type, insData = options.insData, eleData = options.eleData;
|
|
47146
47136
|
planbookId = get$3(params, 'planbookId');
|
|
47147
|
-
publicPbUuid = get$3(params, 'publicPbUuid');
|
|
47148
47137
|
productVerifyData = get$3(verifyData, "[".concat(productKey, "]"));
|
|
47149
47138
|
eventTarget = {
|
|
47150
47139
|
insuranceKey: get$3(insData, 'key') || null,
|
|
@@ -47195,7 +47184,6 @@ var BxtProductInfo = (_dec = Component({
|
|
|
47195
47184
|
_this5.$emit('reCalculate', inputData, {
|
|
47196
47185
|
user: user,
|
|
47197
47186
|
planbookId: planbookId,
|
|
47198
|
-
publicPbUuid: publicPbUuid,
|
|
47199
47187
|
groupKey: groupKey,
|
|
47200
47188
|
productKey: productKey,
|
|
47201
47189
|
executeSource: 'userAction',
|
|
@@ -48463,7 +48451,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48463
48451
|
install(window.Vue);
|
|
48464
48452
|
}
|
|
48465
48453
|
const index = {
|
|
48466
|
-
version: '3.3.
|
|
48454
|
+
version: '3.3.3',
|
|
48467
48455
|
install: install
|
|
48468
48456
|
};
|
|
48469
48457
|
|
package/es/product-info/index.js
CHANGED
|
@@ -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
|
|
|
@@ -9434,10 +9434,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9434
9434
|
// 当前险种
|
|
9435
9435
|
common: {},
|
|
9436
9436
|
// 通用信息
|
|
9437
|
-
customVariable: null,
|
|
9438
|
-
// 自定义变量
|
|
9439
|
-
cv: null,
|
|
9440
|
-
// 简写,自定义变量
|
|
9441
9437
|
t: {} // 事件目标
|
|
9442
9438
|
};
|
|
9443
9439
|
if (personData) {
|
|
@@ -9500,11 +9496,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9500
9496
|
map.executeSource = options.executeSource;
|
|
9501
9497
|
}
|
|
9502
9498
|
}
|
|
9503
|
-
if (ins && ins.customVariableExp) {
|
|
9504
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9505
|
-
map.customVariable = eval(exp);
|
|
9506
|
-
map.cv = map.customVariable;
|
|
9507
|
-
}
|
|
9508
9499
|
return map;
|
|
9509
9500
|
}
|
|
9510
9501
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10246,14 +10237,18 @@ function _productDataHandler() {
|
|
|
10246
10237
|
_ret = _loop2();
|
|
10247
10238
|
if (_ret === 0) break;
|
|
10248
10239
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10249
|
-
|
|
10250
|
-
ins.eleOrderList
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10240
|
+
try {
|
|
10241
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10242
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10243
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10244
|
+
for (var k in newEleMap) {
|
|
10245
|
+
ele[k] = newEleMap[k];
|
|
10246
|
+
}
|
|
10247
|
+
});
|
|
10248
|
+
insuranceDataHandler(ins, prodData);
|
|
10249
|
+
}
|
|
10250
|
+
} catch (error) {
|
|
10251
|
+
console.error(error);
|
|
10257
10252
|
}
|
|
10258
10253
|
});
|
|
10259
10254
|
}
|
|
@@ -10999,7 +10994,7 @@ function _createdProductDataToCalc() {
|
|
|
10999
10994
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
11000
10995
|
var tempIns = {};
|
|
11001
10996
|
for (var _k2 in ins) {
|
|
11002
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
10997
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
11003
10998
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
11004
10999
|
'revalidateFlag'].includes(_k2)) {
|
|
11005
11000
|
tempIns[_k2] = ins[_k2];
|
|
@@ -11025,7 +11020,6 @@ function _createdProductDataToCalc() {
|
|
|
11025
11020
|
productData: productData
|
|
11026
11021
|
});
|
|
11027
11022
|
reqData = {
|
|
11028
|
-
publicPbUuid: options.publicPbUuid || null,
|
|
11029
11023
|
insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
|
|
11030
11024
|
personData: {
|
|
11031
11025
|
personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
|
|
@@ -12068,14 +12062,13 @@ var BxtProductInfo = (_dec = Component({
|
|
|
12068
12062
|
value: function () {
|
|
12069
12063
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
|
|
12070
12064
|
var _this5 = this;
|
|
12071
|
-
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId,
|
|
12065
|
+
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
|
|
12072
12066
|
return _regeneratorRuntime.wrap(function (_context4) {
|
|
12073
12067
|
while (1) switch (_context4.prev = _context4.next) {
|
|
12074
12068
|
case 0:
|
|
12075
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;
|
|
12076
12070
|
type = options.type, insData = options.insData, eleData = options.eleData;
|
|
12077
12071
|
planbookId = get(params, 'planbookId');
|
|
12078
|
-
publicPbUuid = get(params, 'publicPbUuid');
|
|
12079
12072
|
productVerifyData = get(verifyData, "[".concat(productKey, "]"));
|
|
12080
12073
|
eventTarget = {
|
|
12081
12074
|
insuranceKey: get(insData, 'key') || null,
|
|
@@ -12126,7 +12119,6 @@ var BxtProductInfo = (_dec = Component({
|
|
|
12126
12119
|
_this5.$emit('reCalculate', inputData, {
|
|
12127
12120
|
user: user,
|
|
12128
12121
|
planbookId: planbookId,
|
|
12129
|
-
publicPbUuid: publicPbUuid,
|
|
12130
12122
|
groupKey: groupKey,
|
|
12131
12123
|
productKey: productKey,
|
|
12132
12124
|
executeSource: 'userAction',
|
package/es/utils/index.js
CHANGED
|
@@ -281,10 +281,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
281
281
|
// 当前险种
|
|
282
282
|
common: {},
|
|
283
283
|
// 通用信息
|
|
284
|
-
customVariable: null,
|
|
285
|
-
// 自定义变量
|
|
286
|
-
cv: null,
|
|
287
|
-
// 简写,自定义变量
|
|
288
284
|
t: {} // 事件目标
|
|
289
285
|
};
|
|
290
286
|
if (personData) {
|
|
@@ -347,11 +343,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
347
343
|
map.executeSource = options.executeSource;
|
|
348
344
|
}
|
|
349
345
|
}
|
|
350
|
-
if (ins && ins.customVariableExp) {
|
|
351
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
352
|
-
map.customVariable = eval(exp);
|
|
353
|
-
map.cv = map.customVariable;
|
|
354
|
-
}
|
|
355
346
|
return map;
|
|
356
347
|
}
|
|
357
348
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10420,14 +10411,18 @@ function _productDataHandler() {
|
|
|
10420
10411
|
_ret = _loop2();
|
|
10421
10412
|
if (_ret === 0) break;
|
|
10422
10413
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10423
|
-
|
|
10424
|
-
ins.eleOrderList
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10414
|
+
try {
|
|
10415
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10416
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10417
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10418
|
+
for (var k in newEleMap) {
|
|
10419
|
+
ele[k] = newEleMap[k];
|
|
10420
|
+
}
|
|
10421
|
+
});
|
|
10422
|
+
insuranceDataHandler(ins, prodData);
|
|
10423
|
+
}
|
|
10424
|
+
} catch (error) {
|
|
10425
|
+
console.error(error);
|
|
10431
10426
|
}
|
|
10432
10427
|
});
|
|
10433
10428
|
}
|
package/lib/adjust-baoe/index.js
CHANGED
|
@@ -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:
|
|
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
|
@@ -9115,10 +9115,6 @@
|
|
|
9115
9115
|
// 当前险种
|
|
9116
9116
|
common: {},
|
|
9117
9117
|
// 通用信息
|
|
9118
|
-
customVariable: null,
|
|
9119
|
-
// 自定义变量
|
|
9120
|
-
cv: null,
|
|
9121
|
-
// 简写,自定义变量
|
|
9122
9118
|
t: {} // 事件目标
|
|
9123
9119
|
};
|
|
9124
9120
|
if (personData) {
|
|
@@ -9181,11 +9177,6 @@
|
|
|
9181
9177
|
map.executeSource = options.executeSource;
|
|
9182
9178
|
}
|
|
9183
9179
|
}
|
|
9184
|
-
if (ins && ins.customVariableExp) {
|
|
9185
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9186
|
-
map.customVariable = eval(exp);
|
|
9187
|
-
map.cv = map.customVariable;
|
|
9188
|
-
}
|
|
9189
9180
|
return map;
|
|
9190
9181
|
}
|
|
9191
9182
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10503,14 +10494,18 @@
|
|
|
10503
10494
|
_ret = _loop2();
|
|
10504
10495
|
if (_ret === 0) break;
|
|
10505
10496
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10506
|
-
|
|
10507
|
-
ins.eleOrderList
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10497
|
+
try {
|
|
10498
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10499
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10500
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10501
|
+
for (var k in newEleMap) {
|
|
10502
|
+
ele[k] = newEleMap[k];
|
|
10503
|
+
}
|
|
10504
|
+
});
|
|
10505
|
+
insuranceDataHandler(ins, prodData);
|
|
10506
|
+
}
|
|
10507
|
+
} catch (error) {
|
|
10508
|
+
console.error(error);
|
|
10514
10509
|
}
|
|
10515
10510
|
});
|
|
10516
10511
|
}
|
|
@@ -13957,9 +13952,8 @@
|
|
|
13957
13952
|
}
|
|
13958
13953
|
|
|
13959
13954
|
function validateAdjustBaoe(params) {
|
|
13960
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13961
13955
|
return request({
|
|
13962
|
-
url:
|
|
13956
|
+
url: '/planBook/V2/validateAccount/-1/low',
|
|
13963
13957
|
method: 'post',
|
|
13964
13958
|
data: QS.stringify({
|
|
13965
13959
|
jd: JSON.stringify(params)
|
|
@@ -14188,7 +14182,6 @@
|
|
|
14188
14182
|
});
|
|
14189
14183
|
return validateAdjustBaoe({
|
|
14190
14184
|
insuranceTypeId: params.planbookId * 1,
|
|
14191
|
-
publicPbUuid: params.publicPbUuid,
|
|
14192
14185
|
personData: {
|
|
14193
14186
|
personOrderList: convertPersonData(personData, personData.personOrderList.map(function (p) {
|
|
14194
14187
|
return p.key;
|
|
@@ -14200,8 +14193,6 @@
|
|
|
14200
14193
|
adjustBaoeData: this.adjustBaoeData
|
|
14201
14194
|
})]
|
|
14202
14195
|
}]
|
|
14203
|
-
}, {
|
|
14204
|
-
publicPbUuid: params.publicPbUuid
|
|
14205
14196
|
}).catch(function (err) {
|
|
14206
14197
|
_this5.adjustBaoeData = cloneAdjustBaoeData;
|
|
14207
14198
|
if (err) {
|
|
@@ -46840,7 +46831,7 @@
|
|
|
46840
46831
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
46841
46832
|
var tempIns = {};
|
|
46842
46833
|
for (var _k2 in ins) {
|
|
46843
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46834
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46844
46835
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
46845
46836
|
'revalidateFlag'].includes(_k2)) {
|
|
46846
46837
|
tempIns[_k2] = ins[_k2];
|
|
@@ -46866,7 +46857,6 @@
|
|
|
46866
46857
|
productData: productData
|
|
46867
46858
|
});
|
|
46868
46859
|
reqData = {
|
|
46869
|
-
publicPbUuid: options.publicPbUuid || null,
|
|
46870
46860
|
insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
|
|
46871
46861
|
personData: {
|
|
46872
46862
|
personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
|
|
@@ -47120,14 +47110,13 @@
|
|
|
47120
47110
|
value: function () {
|
|
47121
47111
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
|
|
47122
47112
|
var _this5 = this;
|
|
47123
|
-
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId,
|
|
47113
|
+
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
|
|
47124
47114
|
return _regeneratorRuntime.wrap(function (_context4) {
|
|
47125
47115
|
while (1) switch (_context4.prev = _context4.next) {
|
|
47126
47116
|
case 0:
|
|
47127
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;
|
|
47128
47118
|
type = options.type, insData = options.insData, eleData = options.eleData;
|
|
47129
47119
|
planbookId = lodash.get(params, 'planbookId');
|
|
47130
|
-
publicPbUuid = lodash.get(params, 'publicPbUuid');
|
|
47131
47120
|
productVerifyData = lodash.get(verifyData, "[".concat(productKey, "]"));
|
|
47132
47121
|
eventTarget = {
|
|
47133
47122
|
insuranceKey: lodash.get(insData, 'key') || null,
|
|
@@ -47178,7 +47167,6 @@
|
|
|
47178
47167
|
_this5.$emit('reCalculate', inputData, {
|
|
47179
47168
|
user: user,
|
|
47180
47169
|
planbookId: planbookId,
|
|
47181
|
-
publicPbUuid: publicPbUuid,
|
|
47182
47170
|
groupKey: groupKey,
|
|
47183
47171
|
productKey: productKey,
|
|
47184
47172
|
executeSource: 'userAction',
|
|
@@ -48446,7 +48434,7 @@
|
|
|
48446
48434
|
install(window.Vue);
|
|
48447
48435
|
}
|
|
48448
48436
|
var index = {
|
|
48449
|
-
version: '3.3.
|
|
48437
|
+
version: '3.3.3',
|
|
48450
48438
|
install: install
|
|
48451
48439
|
};
|
|
48452
48440
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('lodash'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'lodash', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BXT = {}, global.Vue, global._,
|
|
5
|
-
})(this, (function (exports, Vue, lodash,
|
|
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";
|
|
@@ -9430,10 +9430,6 @@
|
|
|
9430
9430
|
// 当前险种
|
|
9431
9431
|
common: {},
|
|
9432
9432
|
// 通用信息
|
|
9433
|
-
customVariable: null,
|
|
9434
|
-
// 自定义变量
|
|
9435
|
-
cv: null,
|
|
9436
|
-
// 简写,自定义变量
|
|
9437
9433
|
t: {} // 事件目标
|
|
9438
9434
|
};
|
|
9439
9435
|
if (personData) {
|
|
@@ -9496,11 +9492,6 @@
|
|
|
9496
9492
|
map.executeSource = options.executeSource;
|
|
9497
9493
|
}
|
|
9498
9494
|
}
|
|
9499
|
-
if (ins && ins.customVariableExp) {
|
|
9500
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9501
|
-
map.customVariable = eval(exp);
|
|
9502
|
-
map.cv = map.customVariable;
|
|
9503
|
-
}
|
|
9504
9495
|
return map;
|
|
9505
9496
|
}
|
|
9506
9497
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10242,14 +10233,18 @@
|
|
|
10242
10233
|
_ret = _loop2();
|
|
10243
10234
|
if (_ret === 0) break;
|
|
10244
10235
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10245
|
-
|
|
10246
|
-
ins.eleOrderList
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10236
|
+
try {
|
|
10237
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10238
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10239
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10240
|
+
for (var k in newEleMap) {
|
|
10241
|
+
ele[k] = newEleMap[k];
|
|
10242
|
+
}
|
|
10243
|
+
});
|
|
10244
|
+
insuranceDataHandler(ins, prodData);
|
|
10245
|
+
}
|
|
10246
|
+
} catch (error) {
|
|
10247
|
+
console.error(error);
|
|
10253
10248
|
}
|
|
10254
10249
|
});
|
|
10255
10250
|
}
|
|
@@ -10995,7 +10990,7 @@
|
|
|
10995
10990
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
10996
10991
|
var tempIns = {};
|
|
10997
10992
|
for (var _k2 in ins) {
|
|
10998
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
10993
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
10999
10994
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
11000
10995
|
'revalidateFlag'].includes(_k2)) {
|
|
11001
10996
|
tempIns[_k2] = ins[_k2];
|
|
@@ -11021,7 +11016,6 @@
|
|
|
11021
11016
|
productData: productData
|
|
11022
11017
|
});
|
|
11023
11018
|
reqData = {
|
|
11024
|
-
publicPbUuid: options.publicPbUuid || null,
|
|
11025
11019
|
insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
|
|
11026
11020
|
personData: {
|
|
11027
11021
|
personOrderList: convertPersonData(inputData.personData, inputData.personData.personOrderList.map(function (p) {
|
|
@@ -12064,14 +12058,13 @@
|
|
|
12064
12058
|
value: function () {
|
|
12065
12059
|
var _changeProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(productData, options) {
|
|
12066
12060
|
var _this5 = this;
|
|
12067
|
-
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId,
|
|
12061
|
+
var $listeners, user, inputData, verifyData, personData, groupKey, productKey, params, type, insData, eleData, planbookId, productVerifyData, eventTarget, errorMsg;
|
|
12068
12062
|
return _regeneratorRuntime.wrap(function (_context4) {
|
|
12069
12063
|
while (1) switch (_context4.prev = _context4.next) {
|
|
12070
12064
|
case 0:
|
|
12071
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;
|
|
12072
12066
|
type = options.type, insData = options.insData, eleData = options.eleData;
|
|
12073
12067
|
planbookId = lodash.get(params, 'planbookId');
|
|
12074
|
-
publicPbUuid = lodash.get(params, 'publicPbUuid');
|
|
12075
12068
|
productVerifyData = lodash.get(verifyData, "[".concat(productKey, "]"));
|
|
12076
12069
|
eventTarget = {
|
|
12077
12070
|
insuranceKey: lodash.get(insData, 'key') || null,
|
|
@@ -12122,7 +12115,6 @@
|
|
|
12122
12115
|
_this5.$emit('reCalculate', inputData, {
|
|
12123
12116
|
user: user,
|
|
12124
12117
|
planbookId: planbookId,
|
|
12125
|
-
publicPbUuid: publicPbUuid,
|
|
12126
12118
|
groupKey: groupKey,
|
|
12127
12119
|
productKey: productKey,
|
|
12128
12120
|
executeSource: 'userAction',
|
package/lib/utils/index.js
CHANGED
|
@@ -280,10 +280,6 @@
|
|
|
280
280
|
// 当前险种
|
|
281
281
|
common: {},
|
|
282
282
|
// 通用信息
|
|
283
|
-
customVariable: null,
|
|
284
|
-
// 自定义变量
|
|
285
|
-
cv: null,
|
|
286
|
-
// 简写,自定义变量
|
|
287
283
|
t: {} // 事件目标
|
|
288
284
|
};
|
|
289
285
|
if (personData) {
|
|
@@ -346,11 +342,6 @@
|
|
|
346
342
|
map.executeSource = options.executeSource;
|
|
347
343
|
}
|
|
348
344
|
}
|
|
349
|
-
if (ins && ins.customVariableExp) {
|
|
350
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
351
|
-
map.customVariable = eval(exp);
|
|
352
|
-
map.cv = map.customVariable;
|
|
353
|
-
}
|
|
354
345
|
return map;
|
|
355
346
|
}
|
|
356
347
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10419,14 +10410,18 @@
|
|
|
10419
10410
|
_ret = _loop2();
|
|
10420
10411
|
if (_ret === 0) break;
|
|
10421
10412
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10422
|
-
|
|
10423
|
-
ins.eleOrderList
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10413
|
+
try {
|
|
10414
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10415
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10416
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10417
|
+
for (var k in newEleMap) {
|
|
10418
|
+
ele[k] = newEleMap[k];
|
|
10419
|
+
}
|
|
10420
|
+
});
|
|
10421
|
+
insuranceDataHandler(ins, prodData);
|
|
10422
|
+
}
|
|
10423
|
+
} catch (error) {
|
|
10424
|
+
console.error(error);
|
|
10430
10425
|
}
|
|
10431
10426
|
});
|
|
10432
10427
|
}
|
package/package.json
CHANGED
|
@@ -153,12 +153,10 @@ export default {
|
|
|
153
153
|
getPlanbookData() {
|
|
154
154
|
const self = this
|
|
155
155
|
const { URL_PARAM } = self
|
|
156
|
-
const { planbookId,
|
|
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
|
|
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
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
personOrderList
|
|
255
|
-
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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)
|
|
@@ -255,8 +255,6 @@ export function getExpressionParamMap(personData: IPbPersons, product: IPbProduc
|
|
|
255
255
|
m: {}, // 主险
|
|
256
256
|
me: {}, // 当前险种
|
|
257
257
|
common: {}, // 通用信息
|
|
258
|
-
customVariable: null, // 自定义变量
|
|
259
|
-
cv: null, // 简写,自定义变量
|
|
260
258
|
t: {} // 事件目标
|
|
261
259
|
}
|
|
262
260
|
|
|
@@ -309,12 +307,6 @@ export function getExpressionParamMap(personData: IPbPersons, product: IPbProduc
|
|
|
309
307
|
map.executeSource = options.executeSource
|
|
310
308
|
}
|
|
311
309
|
}
|
|
312
|
-
|
|
313
|
-
if (ins && ins.customVariableExp) {
|
|
314
|
-
const exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2')
|
|
315
|
-
map.customVariable = eval(exp)
|
|
316
|
-
map.cv = map.customVariable
|
|
317
|
-
}
|
|
318
310
|
return map
|
|
319
311
|
}
|
|
320
312
|
|
|
@@ -259,14 +259,18 @@ export async function productDataHandler(prodData: IPbProduct, prodVerifyData: a
|
|
|
259
259
|
}
|
|
260
260
|
} while (curCondition && curCondition.key && curCondition[curCondition.key])
|
|
261
261
|
|
|
262
|
-
|
|
263
|
-
ins.eleOrderList
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
try {
|
|
263
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
264
|
+
ins.eleOrderList.forEach((ele: IInsElement) => {
|
|
265
|
+
const newEleMap = executeElementRule(personData, prodData, ins, ele, parmas)
|
|
266
|
+
for (const k in newEleMap) {
|
|
267
|
+
ele[k] = newEleMap[k]
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
insuranceDataHandler(ins, prodData)
|
|
271
|
+
}
|
|
272
|
+
} catch (error) {
|
|
273
|
+
console.error(error)
|
|
270
274
|
}
|
|
271
275
|
})
|
|
272
276
|
}
|
package/packages/index.ts
CHANGED
|
@@ -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
|
-
|
|
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)
|
|
@@ -239,7 +239,6 @@ export async function createdProductDataToCalc(inputData, options = {}) {
|
|
|
239
239
|
'groupName',
|
|
240
240
|
'shmInsData',
|
|
241
241
|
'totalBaof',
|
|
242
|
-
'customVariableExp',
|
|
243
242
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
244
243
|
'revalidateFlag'
|
|
245
244
|
].includes(k)
|
|
@@ -261,7 +260,6 @@ export async function createdProductDataToCalc(inputData, options = {}) {
|
|
|
261
260
|
productData
|
|
262
261
|
})
|
|
263
262
|
const reqData = {
|
|
264
|
-
publicPbUuid: options.publicPbUuid || null,
|
|
265
263
|
insuranceTypeId: options.planbookId ? options.planbookId * 1 : null,
|
|
266
264
|
personData: {
|
|
267
265
|
personOrderList: convertPersonData(
|
|
@@ -500,12 +498,11 @@ export function genProductUniqueKeyWithNS(namespace, groupKey, productKey) {
|
|
|
500
498
|
}
|
|
501
499
|
|
|
502
500
|
export async function calcProductData(inputData, options, cb) {
|
|
503
|
-
const { planbookId,
|
|
501
|
+
const { planbookId, groupKey, productKey, isIgnoreError, productCalcNamespace } = options || {}
|
|
504
502
|
const productUniqueKey = genProductUniqueKeyWithNS(productCalcNamespace, groupKey, productKey)
|
|
505
503
|
try {
|
|
506
504
|
const params = await createdProductDataToCalc(inputData, {
|
|
507
505
|
planbookId,
|
|
508
|
-
publicPbUuid,
|
|
509
506
|
groupKey,
|
|
510
507
|
productKey
|
|
511
508
|
})
|
|
@@ -525,26 +522,16 @@ export async function calcProductData(inputData, options, cb) {
|
|
|
525
522
|
})
|
|
526
523
|
}
|
|
527
524
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
525
|
+
const resData = await calcPlanbookProduct(
|
|
526
|
+
qs.stringify({
|
|
527
|
+
jd: params.jd,
|
|
528
|
+
signature: params.signature,
|
|
529
|
+
clientVersion: params.clientVersion,
|
|
530
|
+
isIos: params.isIos
|
|
532
531
|
})
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
jd: params.jd,
|
|
537
|
-
signature: params.signature,
|
|
538
|
-
clientVersion: params.clientVersion,
|
|
539
|
-
isIos: params.isIos
|
|
540
|
-
}),
|
|
541
|
-
{
|
|
542
|
-
isIgnoreLoading
|
|
543
|
-
}
|
|
544
|
-
).catch(err => {
|
|
545
|
-
return Promise.reject(err)
|
|
546
|
-
})
|
|
547
|
-
}
|
|
532
|
+
).catch(err => {
|
|
533
|
+
return Promise.reject(err)
|
|
534
|
+
})
|
|
548
535
|
|
|
549
536
|
if (!resData.success || !resData.data) {
|
|
550
537
|
if (resData.code === '002017') {
|
|
@@ -585,36 +572,38 @@ export async function calcProductData(inputData, options, cb) {
|
|
|
585
572
|
}
|
|
586
573
|
|
|
587
574
|
// 计算结果校验
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
575
|
+
try {
|
|
576
|
+
const mulInsOrderList = _get(currentProduct, 'mulInsOrderList') || []
|
|
577
|
+
const hasCalcResultExp = mulInsOrderList.some(ins => ins.calcResultExp)
|
|
578
|
+
if (hasCalcResultExp) {
|
|
579
|
+
let errorMessage = ''
|
|
580
|
+
mulInsOrderList
|
|
581
|
+
.filter(ins => ins.calcResultExp)
|
|
582
|
+
.forEach(ins => {
|
|
583
|
+
if (!errorMessage) {
|
|
584
|
+
const paramMap = getExpressionParamMap(inputData.personData, currentProduct, ins, options)
|
|
585
|
+
if (paramMap) {
|
|
586
|
+
try {
|
|
587
|
+
const exp = ins.calcResultExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2')
|
|
588
|
+
errorMessage = eval(exp)
|
|
589
|
+
console.log('计算结果约束结果: ', errorMessage)
|
|
590
|
+
} catch (error) {
|
|
591
|
+
console.log('计算结果约束公式: ', ins.calcResultExp)
|
|
592
|
+
console.error(error)
|
|
593
|
+
}
|
|
607
594
|
}
|
|
608
595
|
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
}
|
|
596
|
+
})
|
|
597
|
+
if (errorMessage) {
|
|
598
|
+
commitProductCalcError(productUniqueKey, errorMessage)
|
|
599
|
+
return Promise.reject({
|
|
600
|
+
type: 'calcResultError',
|
|
601
|
+
message: errorMessage
|
|
602
|
+
})
|
|
603
|
+
}
|
|
617
604
|
}
|
|
605
|
+
} catch (error) {
|
|
606
|
+
console.error(error)
|
|
618
607
|
}
|
|
619
608
|
}
|
|
620
609
|
|
|
@@ -634,7 +623,7 @@ export async function calcProductData(inputData, options, cb) {
|
|
|
634
623
|
}
|
|
635
624
|
|
|
636
625
|
export async function doubleCalcProductData(inputData, verifyData, options = {}) {
|
|
637
|
-
const { user, planbookId,
|
|
626
|
+
const { user, planbookId, groupKey, productKey, isIgnoreError, productCalcNamespace, executeSource } = options
|
|
638
627
|
const personData = inputData && inputData.personData
|
|
639
628
|
const productGroupList = inputData && inputData.productGroupList ? inputData.productGroupList : []
|
|
640
629
|
const productGroup = productGroupList.find(g => g.key === groupKey)
|
|
@@ -655,7 +644,6 @@ export async function doubleCalcProductData(inputData, verifyData, options = {})
|
|
|
655
644
|
await calcProductData(inputData, {
|
|
656
645
|
user,
|
|
657
646
|
planbookId,
|
|
658
|
-
publicPbUuid,
|
|
659
647
|
groupKey,
|
|
660
648
|
productKey,
|
|
661
649
|
executeSource,
|
|
@@ -671,7 +659,6 @@ export async function doubleCalcProductData(inputData, verifyData, options = {})
|
|
|
671
659
|
await calcProductData(inputData, {
|
|
672
660
|
user,
|
|
673
661
|
planbookId,
|
|
674
|
-
publicPbUuid,
|
|
675
662
|
groupKey,
|
|
676
663
|
productKey,
|
|
677
664
|
executeSource,
|
|
@@ -683,7 +670,7 @@ export async function doubleCalcProductData(inputData, verifyData, options = {})
|
|
|
683
670
|
}
|
|
684
671
|
|
|
685
672
|
export function calcAllProductData(inputData, verifyData, options) {
|
|
686
|
-
const { planbookId,
|
|
673
|
+
const { planbookId, userUuid, appid, productCalcNamespace, executeSource } = options
|
|
687
674
|
const productGroupList = (_get(inputData, 'productGroupList') || []).filter(g => g.prodOrderList)
|
|
688
675
|
const prodOrderList = productGroupList
|
|
689
676
|
.map(g => g.prodOrderList)
|
|
@@ -707,7 +694,6 @@ export function calcAllProductData(inputData, verifyData, options) {
|
|
|
707
694
|
return doubleCalcProductData(inputData, verifyData, {
|
|
708
695
|
planbookId,
|
|
709
696
|
executeSource,
|
|
710
|
-
publicPbUuid,
|
|
711
697
|
groupKey: g.key,
|
|
712
698
|
productKey: p.key,
|
|
713
699
|
isIgnoreError: true,
|
|
@@ -912,7 +898,7 @@ export function cleanNeedlessResultData(resultData) {
|
|
|
912
898
|
})
|
|
913
899
|
if (Array.isArray(p.mulInsOrderList)) {
|
|
914
900
|
p.mulInsOrderList.forEach(ins => {
|
|
915
|
-
const noNeedInsuranceKeys = ['isFollowing', 'isCheckbox', 'condotionList', '
|
|
901
|
+
const noNeedInsuranceKeys = ['isFollowing', 'isCheckbox', 'condotionList', 'calcResultExp', 'revalidateFlag']
|
|
916
902
|
noNeedInsuranceKeys.forEach(k => {
|
|
917
903
|
if (k in ins) {
|
|
918
904
|
delete ins[k]
|
|
@@ -986,14 +972,15 @@ export function setupUnderwriteRuleToInsuranceList(list) {
|
|
|
986
972
|
return getUnderwriteEffectiveRules(insuranceIds).then(data => {
|
|
987
973
|
if (Array.isArray(data)) {
|
|
988
974
|
data.forEach(rule => {
|
|
989
|
-
const { insruanceId, eleRules } = rule
|
|
975
|
+
const { insruanceId, customVariableExp, eleRules } = rule
|
|
990
976
|
const insurance = list.find(ins => ins.key === insruanceId)
|
|
991
977
|
if (insurance) {
|
|
992
|
-
const
|
|
978
|
+
const customVariableExpStr = customVariableExp ? `;${customVariableExp};` : ''
|
|
979
|
+
const insExpKeys = ['calcResultExp', 'revalidateFlag']
|
|
993
980
|
insExpKeys
|
|
994
981
|
.filter(k => k in rule)
|
|
995
982
|
.forEach(key => {
|
|
996
|
-
insurance[key] = rule[key]
|
|
983
|
+
insurance[key] = rule[key] && key === 'calcResultExp' ? customVariableExpStr + rule[key] : rule[key]
|
|
997
984
|
})
|
|
998
985
|
const eleOrderList = insurance.eleOrderList || []
|
|
999
986
|
if (eleOrderList && Array.isArray(eleRules)) {
|
|
@@ -1004,7 +991,7 @@ export function setupUnderwriteRuleToInsuranceList(list) {
|
|
|
1004
991
|
eleExpkeys
|
|
1005
992
|
.filter(k => k in eleRule)
|
|
1006
993
|
.forEach(key => {
|
|
1007
|
-
ele[key] = eleRule[key]
|
|
994
|
+
ele[key] = eleRule[key] ? customVariableExpStr + eleRule[key] : eleRule[key]
|
|
1008
995
|
})
|
|
1009
996
|
}
|
|
1010
997
|
})
|
|
@@ -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
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
|
package/src/api/adjust-baoe.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import QS from 'qs'
|
|
2
2
|
import request from './request'
|
|
3
3
|
|
|
4
|
-
export function validateAdjustBaoe(params
|
|
4
|
+
export function validateAdjustBaoe(params) {
|
|
5
5
|
return request({
|
|
6
|
-
url:
|
|
6
|
+
url: '/planBook/V2/validateAccount/-1/low',
|
|
7
7
|
method: 'post',
|
|
8
8
|
data: QS.stringify({
|
|
9
9
|
jd: JSON.stringify(params)
|
package/src/api/planbook.js
CHANGED
|
@@ -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
|
|
16
|
+
export function calcPlanbookProduct(params) {
|
|
33
17
|
return request({
|
|
34
|
-
url:
|
|
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
|
|
30
|
+
export function uploadPlanBookResult(params) {
|
|
47
31
|
return request({
|
|
48
|
-
url:
|
|
32
|
+
url: '/planBook/V2/uploadResult',
|
|
49
33
|
method: 'post',
|
|
50
34
|
data: params,
|
|
51
35
|
headers: {
|