cloud-business 0.1.120-7 → 0.1.120-9
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/cloud-business.js +21 -40
- package/cloud-business.min.js +5 -5
- package/package.json +1 -1
package/cloud-business.js
CHANGED
|
@@ -30891,7 +30891,6 @@
|
|
|
30891
30891
|
}
|
|
30892
30892
|
});
|
|
30893
30893
|
}
|
|
30894
|
-
// if (city) {
|
|
30895
30894
|
editValues.push({
|
|
30896
30895
|
field: "cityName",
|
|
30897
30896
|
value: {
|
|
@@ -30899,8 +30898,6 @@
|
|
|
30899
30898
|
"name": city ? cityName || customerInfo.cityName : ''
|
|
30900
30899
|
}
|
|
30901
30900
|
});
|
|
30902
|
-
// }
|
|
30903
|
-
// if (district) {
|
|
30904
30901
|
editValues.push({
|
|
30905
30902
|
field: "districtName",
|
|
30906
30903
|
value: {
|
|
@@ -30908,8 +30905,6 @@
|
|
|
30908
30905
|
"name": district ? districtName || customerInfo.districtName : ''
|
|
30909
30906
|
}
|
|
30910
30907
|
});
|
|
30911
|
-
// }
|
|
30912
|
-
// if (town) {
|
|
30913
30908
|
editValues.push({
|
|
30914
30909
|
field: "townName",
|
|
30915
30910
|
value: {
|
|
@@ -30917,14 +30912,10 @@
|
|
|
30917
30912
|
"name": town ? townName || customerInfo.townName : ''
|
|
30918
30913
|
}
|
|
30919
30914
|
});
|
|
30920
|
-
// }
|
|
30921
|
-
// if (address) {
|
|
30922
30915
|
editValues.push({
|
|
30923
30916
|
field: "address",
|
|
30924
30917
|
value: address
|
|
30925
30918
|
});
|
|
30926
|
-
// }
|
|
30927
|
-
|
|
30928
30919
|
var saveObj = {};
|
|
30929
30920
|
editValues.forEach(function (item) {
|
|
30930
30921
|
var _customerInfoOrigin$i = customerInfoOrigin[item.field],
|
|
@@ -31211,7 +31202,7 @@
|
|
|
31211
31202
|
function renderInfoValue(value) {
|
|
31212
31203
|
return value || "-";
|
|
31213
31204
|
}
|
|
31214
|
-
function renderInfoValueSpecial(value, type) {
|
|
31205
|
+
function renderInfoValueSpecial(value, type, infoValue) {
|
|
31215
31206
|
var tip = {
|
|
31216
31207
|
type: 1,
|
|
31217
31208
|
text: value
|
|
@@ -31221,7 +31212,7 @@
|
|
|
31221
31212
|
className: "customer-info-text-address"
|
|
31222
31213
|
}, /*#__PURE__*/React__default['default'].createElement(OverLengthTip, {
|
|
31223
31214
|
tip: tip
|
|
31224
|
-
})), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
31215
|
+
})), infoValue === BASIC_INFO && /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
31225
31216
|
placement: "top",
|
|
31226
31217
|
content: "\u6B64\u5904\u663E\u793A\u5E73\u53F0\u4FA7\u63D0\u4F9B\u7684\u5BC6\u6587\u6570\u636E\uFF08\u5E73\u53F0\u4FA7\u4E0D\u652F\u6301\u89E3\u5BC6\u64CD\u4F5C\uFF09"
|
|
31227
31218
|
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
@@ -31233,7 +31224,7 @@
|
|
|
31233
31224
|
className: "customer-info-text-address"
|
|
31234
31225
|
}, /*#__PURE__*/React__default['default'].createElement(OverLengthTip, {
|
|
31235
31226
|
tip: tip
|
|
31236
|
-
})), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
31227
|
+
})), infoValue === BASIC_INFO && /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
31237
31228
|
placement: "top",
|
|
31238
31229
|
content: "\u6B64\u5904\u663E\u793A\u5E73\u53F0\u4FA7\u63D0\u4F9B\u7684\u5BC6\u6587\u6570\u636E\uFF08\u5E73\u53F0\u4FA7\u4E0D\u652F\u6301\u89E3\u5BC6\u64CD\u4F5C\uFF09"
|
|
31239
31230
|
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
@@ -31277,10 +31268,6 @@
|
|
|
31277
31268
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
31278
31269
|
customerInfoOrigin = _useState12[0],
|
|
31279
31270
|
setCustomerInfoOrigin = _useState12[1];
|
|
31280
|
-
var _useState13 = React.useState({}),
|
|
31281
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
31282
|
-
encryptInfo = _useState14[0],
|
|
31283
|
-
setEncryptInfo = _useState14[1];
|
|
31284
31271
|
var closeCustomerInfoEdit = /*#__PURE__*/function () {
|
|
31285
31272
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type) {
|
|
31286
31273
|
var v, data;
|
|
@@ -31291,7 +31278,7 @@
|
|
|
31291
31278
|
|
|
31292
31279
|
// 保存成功后重新拉取数据
|
|
31293
31280
|
if (!(type === 'save')) {
|
|
31294
|
-
_context.next =
|
|
31281
|
+
_context.next = 7;
|
|
31295
31282
|
break;
|
|
31296
31283
|
}
|
|
31297
31284
|
v = {
|
|
@@ -31306,11 +31293,8 @@
|
|
|
31306
31293
|
}, v);
|
|
31307
31294
|
case 5:
|
|
31308
31295
|
data = _context.sent;
|
|
31309
|
-
|
|
31310
|
-
|
|
31311
|
-
case 8:
|
|
31312
|
-
setCustomerInfo(encryptInfo);
|
|
31313
|
-
case 9:
|
|
31296
|
+
setCustomerInfo(_objectSpread2(_objectSpread2({}, data), v));
|
|
31297
|
+
case 7:
|
|
31314
31298
|
case "end":
|
|
31315
31299
|
return _context.stop();
|
|
31316
31300
|
}
|
|
@@ -31380,7 +31364,7 @@
|
|
|
31380
31364
|
var tagValue = (_result$item = result[item]) === null || _result$item === void 0 ? void 0 : _result$item.tagValue;
|
|
31381
31365
|
info[item] = tagValue ? tagValue[0] : '';
|
|
31382
31366
|
if (item === 'gender') {
|
|
31383
|
-
info[item] = tagValue ? genderMapName[tagValue[0]] :
|
|
31367
|
+
info[item] = tagValue ? genderMapName[tagValue[0]] : null;
|
|
31384
31368
|
}
|
|
31385
31369
|
if (item === 'stateName' || item === 'cityName' || item === 'districtName') {
|
|
31386
31370
|
info[item] = tagValue ? JSON.parse(tagValue[0]).name : '';
|
|
@@ -31405,12 +31389,6 @@
|
|
|
31405
31389
|
}
|
|
31406
31390
|
}
|
|
31407
31391
|
});
|
|
31408
|
-
if (type) {
|
|
31409
|
-
// 处理展开隐藏操作
|
|
31410
|
-
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), v), {}, _defineProperty(_defineProperty({}, "".concat(type, "Temp"), info[type]), type, customerInfo[type])));
|
|
31411
|
-
} else {
|
|
31412
|
-
setCustomerInfo(_objectSpread2(_objectSpread2({}, info), v));
|
|
31413
|
-
}
|
|
31414
31392
|
return info;
|
|
31415
31393
|
});
|
|
31416
31394
|
case 2:
|
|
@@ -31466,7 +31444,7 @@
|
|
|
31466
31444
|
}, v);
|
|
31467
31445
|
case 8:
|
|
31468
31446
|
data = _context4.sent;
|
|
31469
|
-
|
|
31447
|
+
setCustomerInfo(_objectSpread2(_objectSpread2({}, data), v));
|
|
31470
31448
|
if (data) {
|
|
31471
31449
|
setInfoValue(id);
|
|
31472
31450
|
}
|
|
@@ -31482,7 +31460,7 @@
|
|
|
31482
31460
|
}();
|
|
31483
31461
|
var changeCustomerInfo = /*#__PURE__*/function () {
|
|
31484
31462
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(ci, type) {
|
|
31485
|
-
var res, _res, _res2, _res3;
|
|
31463
|
+
var res, _res, _res2, _res3, info;
|
|
31486
31464
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
31487
31465
|
while (1) switch (_context5.prev = _context5.next) {
|
|
31488
31466
|
case 0:
|
|
@@ -31543,11 +31521,11 @@
|
|
|
31543
31521
|
return _context5.abrupt("return");
|
|
31544
31522
|
case 25:
|
|
31545
31523
|
if (!(infoValue === MAINTAIN_INFO)) {
|
|
31546
|
-
_context5.next =
|
|
31524
|
+
_context5.next = 32;
|
|
31547
31525
|
break;
|
|
31548
31526
|
}
|
|
31549
31527
|
if (!(type === 'fullName' && !customerInfo.fullNameTemp || type === 'mobile' && !customerInfo.mobileTemp || type === 'email' && !customerInfo.emailTemp || type === 'address' && !customerInfo.addressTemp)) {
|
|
31550
|
-
_context5.next =
|
|
31528
|
+
_context5.next = 32;
|
|
31551
31529
|
break;
|
|
31552
31530
|
}
|
|
31553
31531
|
_context5.next = 29;
|
|
@@ -31555,10 +31533,13 @@
|
|
|
31555
31533
|
encrypt: false
|
|
31556
31534
|
}, ci, type);
|
|
31557
31535
|
case 29:
|
|
31536
|
+
info = _context5.sent;
|
|
31537
|
+
// 处理展开隐藏操作
|
|
31538
|
+
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, _defineProperty(_defineProperty({}, "".concat(type, "Temp"), info[type]), type, customerInfo[type])));
|
|
31558
31539
|
return _context5.abrupt("return");
|
|
31559
|
-
case
|
|
31540
|
+
case 32:
|
|
31560
31541
|
setCustomerInfo(_objectSpread2(_objectSpread2({}, customerInfo), ci));
|
|
31561
|
-
case
|
|
31542
|
+
case 33:
|
|
31562
31543
|
case "end":
|
|
31563
31544
|
return _context5.stop();
|
|
31564
31545
|
}
|
|
@@ -31651,7 +31632,7 @@
|
|
|
31651
31632
|
className: "customer-info"
|
|
31652
31633
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u59D3\u540D\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31653
31634
|
className: "customer-info-text"
|
|
31654
|
-
}, renderInfoValueSpecial(customerInfo.fullNameV ? customerInfo.fullNameTemp : customerInfo.fullName, 'fullName'), customerInfo.fullName ? !customerInfo.fullNameV ? /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31635
|
+
}, renderInfoValueSpecial(customerInfo.fullNameV ? customerInfo.fullNameTemp : customerInfo.fullName, 'fullName', infoValue), customerInfo.fullName ? !customerInfo.fullNameV ? /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31655
31636
|
type: "view",
|
|
31656
31637
|
onClick: function onClick() {
|
|
31657
31638
|
return changeCustomerInfo({
|
|
@@ -31673,7 +31654,7 @@
|
|
|
31673
31654
|
className: "customer-info"
|
|
31674
31655
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6700\u65B0\u624B\u673A\u53F7\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31675
31656
|
className: "customer-info-text customer-info-text-special"
|
|
31676
|
-
}, renderInfoValueSpecial(customerInfo.mobileV ? customerInfo.mobileTemp : customerInfo.mobile, 'mobile'), customerInfo.mobile ? !customerInfo.mobileV ? /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31657
|
+
}, renderInfoValueSpecial(customerInfo.mobileV ? customerInfo.mobileTemp : customerInfo.mobile, 'mobile', infoValue), customerInfo.mobile ? !customerInfo.mobileV ? /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31677
31658
|
type: "view",
|
|
31678
31659
|
onClick: function onClick() {
|
|
31679
31660
|
return changeCustomerInfo({
|
|
@@ -31717,7 +31698,7 @@
|
|
|
31717
31698
|
className: "customer-info"
|
|
31718
31699
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5730\u5740\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31719
31700
|
className: "customer-info-text"
|
|
31720
|
-
}, renderInfoValueSpecial("".concat(customerInfo.stateName || '').concat(customerInfo.cityName || '').concat(customerInfo.districtName || '').concat(customerInfo.addressV ? customerInfo.addressTemp : customerInfo.address || ''), 'address'), customerInfo.address ? !customerInfo.addressV ? /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31701
|
+
}, renderInfoValueSpecial("".concat(customerInfo.stateName || '').concat(customerInfo.cityName || '').concat(customerInfo.districtName || '').concat(customerInfo.addressV ? customerInfo.addressTemp : customerInfo.address || ''), 'address', infoValue), customerInfo.address ? !customerInfo.addressV ? /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31721
31702
|
type: "view",
|
|
31722
31703
|
onClick: function onClick() {
|
|
31723
31704
|
return changeCustomerInfo({
|
|
@@ -146591,7 +146572,7 @@
|
|
|
146591
146572
|
}
|
|
146592
146573
|
// 检验当前运行环境
|
|
146593
146574
|
if (typeof window === 'undefined') {
|
|
146594
|
-
console.warn('cloud-business@0.1.120-
|
|
146575
|
+
console.warn('cloud-business@0.1.120-9 仅支持在浏览器环境进行使用!');
|
|
146595
146576
|
}
|
|
146596
146577
|
var bodys = document.getElementsByTagName('body')[0];
|
|
146597
146578
|
var colors = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -146601,7 +146582,7 @@
|
|
|
146601
146582
|
bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
|
|
146602
146583
|
}
|
|
146603
146584
|
}
|
|
146604
|
-
var version = '0.1.120-
|
|
146585
|
+
var version = '0.1.120-9';
|
|
146605
146586
|
|
|
146606
146587
|
exports.AreaSelector = AreaSelector;
|
|
146607
146588
|
exports.AreaSelectorNew = AreaSelector$1;
|