cloud-business 0.1.120-3 → 0.1.120-5
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.css +42 -16
- package/cloud-business.js +652 -179
- package/cloud-business.min.css +1 -1
- package/cloud-business.min.js +20 -20
- package/package.json +1 -1
package/cloud-business.js
CHANGED
|
@@ -24171,7 +24171,16 @@
|
|
|
24171
24171
|
'bad': '差评'
|
|
24172
24172
|
};
|
|
24173
24173
|
var DYNAMIC_COUPON = 'DYNAMIC_COUPON'; // 动态优惠券
|
|
24174
|
-
|
|
24174
|
+
var NOTICE_CONTENT_ID = '2024060400';
|
|
24175
|
+
var BASIC_INFO = 1;
|
|
24176
|
+
var MAINTAIN_INFO = 2;
|
|
24177
|
+
var INFO_LIST = [{
|
|
24178
|
+
label: '最新基本信息',
|
|
24179
|
+
id: 1
|
|
24180
|
+
}, {
|
|
24181
|
+
label: '我维护的信息',
|
|
24182
|
+
id: 2
|
|
24183
|
+
}];
|
|
24175
24184
|
|
|
24176
24185
|
/**
|
|
24177
24186
|
* utils.js
|
|
@@ -24379,7 +24388,7 @@
|
|
|
24379
24388
|
districtName: '',
|
|
24380
24389
|
town: '',
|
|
24381
24390
|
townName: '',
|
|
24382
|
-
address:
|
|
24391
|
+
address: _this.state.address
|
|
24383
24392
|
}, function () {
|
|
24384
24393
|
_this.selectedAllArea(stateInfo.name, v, _this.state.cityName, _this.state.city, _this.state.districtName, _this.state.district, _this.state.townName, _this.state.town, _this.state.address);
|
|
24385
24394
|
});
|
|
@@ -24402,7 +24411,7 @@
|
|
|
24402
24411
|
districtName: '',
|
|
24403
24412
|
town: '',
|
|
24404
24413
|
townName: '',
|
|
24405
|
-
address:
|
|
24414
|
+
address: _this.state.address
|
|
24406
24415
|
}, function () {
|
|
24407
24416
|
_this.selectedAllArea(_this.state.provinceName, _this.state.province, cityInfo.name, v, _this.state.districtName, _this.state.district, _this.state.townName, _this.state.town, _this.state.address);
|
|
24408
24417
|
});
|
|
@@ -24422,7 +24431,7 @@
|
|
|
24422
24431
|
districtName: districtInfo.name,
|
|
24423
24432
|
town: '',
|
|
24424
24433
|
townName: '',
|
|
24425
|
-
address:
|
|
24434
|
+
address: _this.state.address
|
|
24426
24435
|
}, function () {
|
|
24427
24436
|
_this.selectedAllArea(_this.state.provinceName, _this.state.province, _this.state.cityName, _this.state.city, districtInfo.name, v, _this.state.townName, _this.state.town, _this.state.address);
|
|
24428
24437
|
});
|
|
@@ -24438,7 +24447,7 @@
|
|
|
24438
24447
|
_this.setState({
|
|
24439
24448
|
town: v,
|
|
24440
24449
|
townName: townInfo.name,
|
|
24441
|
-
address:
|
|
24450
|
+
address: _this.state.address
|
|
24442
24451
|
}, function () {
|
|
24443
24452
|
_this.selectedAllArea(_this.state.provinceName, _this.state.province, _this.state.cityName, _this.state.city, _this.state.districtName, _this.state.district, townInfo.name, v, _this.state.address);
|
|
24444
24453
|
});
|
|
@@ -24539,6 +24548,7 @@
|
|
|
24539
24548
|
style: {
|
|
24540
24549
|
width: 406
|
|
24541
24550
|
},
|
|
24551
|
+
maxLength: 120,
|
|
24542
24552
|
value: this.state.address,
|
|
24543
24553
|
onChange: this.handleInput
|
|
24544
24554
|
}));
|
|
@@ -24547,9 +24557,51 @@
|
|
|
24547
24557
|
return AreaSelect;
|
|
24548
24558
|
}(React__default['default'].Component);
|
|
24549
24559
|
|
|
24560
|
+
var getUserInfo$1 = function getUserInfo() {
|
|
24561
|
+
var _JSON$parse;
|
|
24562
|
+
var cache = sessionStorage.getItem('__FF2E__CACHE__');
|
|
24563
|
+
var _ref = ((_JSON$parse = JSON.parse(cache)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.common) || {},
|
|
24564
|
+
user = _ref.user,
|
|
24565
|
+
tenant = _ref.tenant,
|
|
24566
|
+
menuData = _ref.menuData;
|
|
24567
|
+
if (cache && (tenant === null || tenant === void 0 ? void 0 : tenant.tenantId)) {
|
|
24568
|
+
return {
|
|
24569
|
+
tenantId: tenant === null || tenant === void 0 ? void 0 : tenant.tenantId,
|
|
24570
|
+
userName: user === null || user === void 0 ? void 0 : user.name,
|
|
24571
|
+
menuData: menuData
|
|
24572
|
+
};
|
|
24573
|
+
}
|
|
24574
|
+
return {
|
|
24575
|
+
tenantId: 'qiushi6',
|
|
24576
|
+
userName: 'fxt',
|
|
24577
|
+
menuData: []
|
|
24578
|
+
};
|
|
24579
|
+
};
|
|
24550
24580
|
var Store$9 = /*#__PURE__*/function () {
|
|
24551
24581
|
function Store() {
|
|
24552
24582
|
_classCallCheck(this, Store);
|
|
24583
|
+
/**
|
|
24584
|
+
* 获取用户公告已读状态
|
|
24585
|
+
* @param domain
|
|
24586
|
+
* @param contentId: 内容Id
|
|
24587
|
+
*/
|
|
24588
|
+
this.getNoticeState = function (domain, contentId) {
|
|
24589
|
+
var _getUserInfo = getUserInfo$1(),
|
|
24590
|
+
tenantId = _getUserInfo.tenantId,
|
|
24591
|
+
userName = _getUserInfo.userName;
|
|
24592
|
+
return http.get("".concat(domain, "/notice/1.0/announce/").concat(tenantId, "/").concat(userName, "?contentId=").concat(contentId));
|
|
24593
|
+
};
|
|
24594
|
+
/**
|
|
24595
|
+
* 设置公告已读状态
|
|
24596
|
+
* @param serverName
|
|
24597
|
+
* @param contentId: 内容Id
|
|
24598
|
+
*/
|
|
24599
|
+
this.setNoticeState = function (domain, contentId) {
|
|
24600
|
+
var _getUserInfo2 = getUserInfo$1(),
|
|
24601
|
+
tenantId = _getUserInfo2.tenantId,
|
|
24602
|
+
userName = _getUserInfo2.userName;
|
|
24603
|
+
return http.post("".concat(domain, "/notice/1.0/announce/").concat(tenantId, "/").concat(userName, "?contentId=").concat(contentId));
|
|
24604
|
+
};
|
|
24553
24605
|
}
|
|
24554
24606
|
_createClass(Store, [{
|
|
24555
24607
|
key: "getCustomerInfo",
|
|
@@ -24581,6 +24633,76 @@
|
|
|
24581
24633
|
}
|
|
24582
24634
|
return getCustomerInfo;
|
|
24583
24635
|
}()
|
|
24636
|
+
/**
|
|
24637
|
+
* 我维护的信息
|
|
24638
|
+
* @param domain
|
|
24639
|
+
* @param serverName
|
|
24640
|
+
* @param uniId
|
|
24641
|
+
* @param params
|
|
24642
|
+
* @returns {Promise<any>}
|
|
24643
|
+
*/
|
|
24644
|
+
)
|
|
24645
|
+
}, {
|
|
24646
|
+
key: "getCustomerStorageInfo",
|
|
24647
|
+
value: (function () {
|
|
24648
|
+
var _getCustomerStorageInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(domain, serverName, uniId, params) {
|
|
24649
|
+
var url, _yield$http$get, data;
|
|
24650
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24651
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24652
|
+
case 0:
|
|
24653
|
+
url = "".concat(domain, "/").concat(serverName, "/customerTag/").concat(uniId, "/attr/detail");
|
|
24654
|
+
_context2.next = 3;
|
|
24655
|
+
return http.get(url, {
|
|
24656
|
+
params: params
|
|
24657
|
+
});
|
|
24658
|
+
case 3:
|
|
24659
|
+
_yield$http$get = _context2.sent;
|
|
24660
|
+
data = _yield$http$get.data;
|
|
24661
|
+
return _context2.abrupt("return", data);
|
|
24662
|
+
case 6:
|
|
24663
|
+
case "end":
|
|
24664
|
+
return _context2.stop();
|
|
24665
|
+
}
|
|
24666
|
+
}, _callee2);
|
|
24667
|
+
}));
|
|
24668
|
+
function getCustomerStorageInfo(_x4, _x5, _x6, _x7) {
|
|
24669
|
+
return _getCustomerStorageInfo.apply(this, arguments);
|
|
24670
|
+
}
|
|
24671
|
+
return getCustomerStorageInfo;
|
|
24672
|
+
}()
|
|
24673
|
+
/**
|
|
24674
|
+
* 保存
|
|
24675
|
+
* @param domain
|
|
24676
|
+
* @param serverName
|
|
24677
|
+
* @param params
|
|
24678
|
+
* @returns {Promise<any>}
|
|
24679
|
+
*/
|
|
24680
|
+
)
|
|
24681
|
+
}, {
|
|
24682
|
+
key: "saveCustomerStorageInfo",
|
|
24683
|
+
value: (function () {
|
|
24684
|
+
var _saveCustomerStorageInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(domain, serverName, uniId, params) {
|
|
24685
|
+
var url, data;
|
|
24686
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24687
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
24688
|
+
case 0:
|
|
24689
|
+
url = "".concat(domain, "/").concat(serverName, "/customerTag/").concat(uniId, "/attr/detail");
|
|
24690
|
+
_context3.next = 3;
|
|
24691
|
+
return http.post(url, params);
|
|
24692
|
+
case 3:
|
|
24693
|
+
data = _context3.sent;
|
|
24694
|
+
return _context3.abrupt("return", data.data);
|
|
24695
|
+
case 5:
|
|
24696
|
+
case "end":
|
|
24697
|
+
return _context3.stop();
|
|
24698
|
+
}
|
|
24699
|
+
}, _callee3);
|
|
24700
|
+
}));
|
|
24701
|
+
function saveCustomerStorageInfo(_x8, _x9, _x10, _x11) {
|
|
24702
|
+
return _saveCustomerStorageInfo.apply(this, arguments);
|
|
24703
|
+
}
|
|
24704
|
+
return saveCustomerStorageInfo;
|
|
24705
|
+
}()
|
|
24584
24706
|
/**
|
|
24585
24707
|
* 获取客户信息完整 姓名fullName、手机号mobile、邮箱email
|
|
24586
24708
|
* @param domain
|
|
@@ -24593,24 +24715,24 @@
|
|
|
24593
24715
|
}, {
|
|
24594
24716
|
key: "getCustomerItemInfo",
|
|
24595
24717
|
value: (function () {
|
|
24596
|
-
var _getCustomerItemInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24718
|
+
var _getCustomerItemInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(domain, serverName, uniId, type) {
|
|
24597
24719
|
var url, data;
|
|
24598
|
-
return _regeneratorRuntime().wrap(function
|
|
24599
|
-
while (1) switch (
|
|
24720
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
24721
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
24600
24722
|
case 0:
|
|
24601
24723
|
url = "".concat(domain, "/").concat(serverName, "/customer/decrypt/").concat(uniId, "/").concat(type);
|
|
24602
|
-
|
|
24724
|
+
_context4.next = 3;
|
|
24603
24725
|
return http.get(url);
|
|
24604
24726
|
case 3:
|
|
24605
|
-
data =
|
|
24606
|
-
return
|
|
24727
|
+
data = _context4.sent;
|
|
24728
|
+
return _context4.abrupt("return", data.data);
|
|
24607
24729
|
case 5:
|
|
24608
24730
|
case "end":
|
|
24609
|
-
return
|
|
24731
|
+
return _context4.stop();
|
|
24610
24732
|
}
|
|
24611
|
-
},
|
|
24733
|
+
}, _callee4);
|
|
24612
24734
|
}));
|
|
24613
|
-
function getCustomerItemInfo(
|
|
24735
|
+
function getCustomerItemInfo(_x12, _x13, _x14, _x15) {
|
|
24614
24736
|
return _getCustomerItemInfo.apply(this, arguments);
|
|
24615
24737
|
}
|
|
24616
24738
|
return getCustomerItemInfo;
|
|
@@ -24626,24 +24748,24 @@
|
|
|
24626
24748
|
}, {
|
|
24627
24749
|
key: "getEditCustomerItemInfo",
|
|
24628
24750
|
value: (function () {
|
|
24629
|
-
var _getEditCustomerItemInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24751
|
+
var _getEditCustomerItemInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(domain, serverName, uniId) {
|
|
24630
24752
|
var url, data;
|
|
24631
|
-
return _regeneratorRuntime().wrap(function
|
|
24632
|
-
while (1) switch (
|
|
24753
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
24754
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
24633
24755
|
case 0:
|
|
24634
24756
|
url = "".concat(domain, "/").concat(serverName, "/customer/decrypt/").concat(uniId);
|
|
24635
|
-
|
|
24757
|
+
_context5.next = 3;
|
|
24636
24758
|
return http.get(url);
|
|
24637
24759
|
case 3:
|
|
24638
|
-
data =
|
|
24639
|
-
return
|
|
24760
|
+
data = _context5.sent;
|
|
24761
|
+
return _context5.abrupt("return", data.data);
|
|
24640
24762
|
case 5:
|
|
24641
24763
|
case "end":
|
|
24642
|
-
return
|
|
24764
|
+
return _context5.stop();
|
|
24643
24765
|
}
|
|
24644
|
-
},
|
|
24766
|
+
}, _callee5);
|
|
24645
24767
|
}));
|
|
24646
|
-
function getEditCustomerItemInfo(
|
|
24768
|
+
function getEditCustomerItemInfo(_x16, _x17, _x18) {
|
|
24647
24769
|
return _getEditCustomerItemInfo.apply(this, arguments);
|
|
24648
24770
|
}
|
|
24649
24771
|
return getEditCustomerItemInfo;
|
|
@@ -24658,24 +24780,24 @@
|
|
|
24658
24780
|
}, {
|
|
24659
24781
|
key: "saveCustomerInfo",
|
|
24660
24782
|
value: (function () {
|
|
24661
|
-
var _saveCustomerInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24783
|
+
var _saveCustomerInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(domain, serverName, uniId, editValues) {
|
|
24662
24784
|
var url, data;
|
|
24663
|
-
return _regeneratorRuntime().wrap(function
|
|
24664
|
-
while (1) switch (
|
|
24785
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
24786
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
24665
24787
|
case 0:
|
|
24666
24788
|
url = "".concat(domain, "/").concat(serverName, "/customer/").concat(uniId, "/all");
|
|
24667
|
-
|
|
24789
|
+
_context6.next = 3;
|
|
24668
24790
|
return http.put(url, editValues);
|
|
24669
24791
|
case 3:
|
|
24670
|
-
data =
|
|
24671
|
-
return
|
|
24792
|
+
data = _context6.sent;
|
|
24793
|
+
return _context6.abrupt("return", data.data);
|
|
24672
24794
|
case 5:
|
|
24673
24795
|
case "end":
|
|
24674
|
-
return
|
|
24796
|
+
return _context6.stop();
|
|
24675
24797
|
}
|
|
24676
|
-
},
|
|
24798
|
+
}, _callee6);
|
|
24677
24799
|
}));
|
|
24678
|
-
function saveCustomerInfo(
|
|
24800
|
+
function saveCustomerInfo(_x19, _x20, _x21, _x22) {
|
|
24679
24801
|
return _saveCustomerInfo.apply(this, arguments);
|
|
24680
24802
|
}
|
|
24681
24803
|
return saveCustomerInfo;
|
|
@@ -24693,28 +24815,28 @@
|
|
|
24693
24815
|
}, {
|
|
24694
24816
|
key: "saveCustomerItemInfo",
|
|
24695
24817
|
value: (function () {
|
|
24696
|
-
var _saveCustomerItemInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24818
|
+
var _saveCustomerItemInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(domain, serverName, field, value, uniId) {
|
|
24697
24819
|
var url, data;
|
|
24698
|
-
return _regeneratorRuntime().wrap(function
|
|
24699
|
-
while (1) switch (
|
|
24820
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
24821
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
24700
24822
|
case 0:
|
|
24701
24823
|
// {field: "fullName, gender, birthday, mobile, email, unionAddress", value: ""}
|
|
24702
24824
|
url = "".concat(domain, "/").concat(serverName, "/customer/").concat(uniId);
|
|
24703
|
-
|
|
24825
|
+
_context7.next = 3;
|
|
24704
24826
|
return http.put(url, {
|
|
24705
24827
|
field: field,
|
|
24706
24828
|
value: value
|
|
24707
24829
|
});
|
|
24708
24830
|
case 3:
|
|
24709
|
-
data =
|
|
24710
|
-
return
|
|
24831
|
+
data = _context7.sent;
|
|
24832
|
+
return _context7.abrupt("return", data.data);
|
|
24711
24833
|
case 5:
|
|
24712
24834
|
case "end":
|
|
24713
|
-
return
|
|
24835
|
+
return _context7.stop();
|
|
24714
24836
|
}
|
|
24715
|
-
},
|
|
24837
|
+
}, _callee7);
|
|
24716
24838
|
}));
|
|
24717
|
-
function saveCustomerItemInfo(
|
|
24839
|
+
function saveCustomerItemInfo(_x23, _x24, _x25, _x26, _x27) {
|
|
24718
24840
|
return _saveCustomerItemInfo.apply(this, arguments);
|
|
24719
24841
|
}
|
|
24720
24842
|
return saveCustomerItemInfo;
|
|
@@ -24727,24 +24849,24 @@
|
|
|
24727
24849
|
}, {
|
|
24728
24850
|
key: "getPlatformList",
|
|
24729
24851
|
value: (function () {
|
|
24730
|
-
var _getPlatformList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24852
|
+
var _getPlatformList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(domain, serverName) {
|
|
24731
24853
|
var url, data;
|
|
24732
|
-
return _regeneratorRuntime().wrap(function
|
|
24733
|
-
while (1) switch (
|
|
24854
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
24855
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
24734
24856
|
case 0:
|
|
24735
24857
|
url = "".concat(domain, "/").concat(serverName, "/customer/platform");
|
|
24736
|
-
|
|
24858
|
+
_context8.next = 3;
|
|
24737
24859
|
return http.get(url);
|
|
24738
24860
|
case 3:
|
|
24739
|
-
data =
|
|
24740
|
-
return
|
|
24861
|
+
data = _context8.sent;
|
|
24862
|
+
return _context8.abrupt("return", data.data);
|
|
24741
24863
|
case 5:
|
|
24742
24864
|
case "end":
|
|
24743
|
-
return
|
|
24865
|
+
return _context8.stop();
|
|
24744
24866
|
}
|
|
24745
|
-
},
|
|
24867
|
+
}, _callee8);
|
|
24746
24868
|
}));
|
|
24747
|
-
function getPlatformList(
|
|
24869
|
+
function getPlatformList(_x28, _x29) {
|
|
24748
24870
|
return _getPlatformList.apply(this, arguments);
|
|
24749
24871
|
}
|
|
24750
24872
|
return getPlatformList;
|
|
@@ -24757,24 +24879,24 @@
|
|
|
24757
24879
|
}, {
|
|
24758
24880
|
key: "getAddressInfo",
|
|
24759
24881
|
value: (function () {
|
|
24760
|
-
var _getAddressInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24882
|
+
var _getAddressInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(domain, serverName, uniId) {
|
|
24761
24883
|
var url, data;
|
|
24762
|
-
return _regeneratorRuntime().wrap(function
|
|
24763
|
-
while (1) switch (
|
|
24884
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
24885
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
24764
24886
|
case 0:
|
|
24765
24887
|
url = "".concat(domain, "/").concat(serverName, "/customer/full/").concat(uniId);
|
|
24766
|
-
|
|
24888
|
+
_context9.next = 3;
|
|
24767
24889
|
return http.get(url);
|
|
24768
24890
|
case 3:
|
|
24769
|
-
data =
|
|
24770
|
-
return
|
|
24891
|
+
data = _context9.sent;
|
|
24892
|
+
return _context9.abrupt("return", data.data);
|
|
24771
24893
|
case 5:
|
|
24772
24894
|
case "end":
|
|
24773
|
-
return
|
|
24895
|
+
return _context9.stop();
|
|
24774
24896
|
}
|
|
24775
|
-
},
|
|
24897
|
+
}, _callee9);
|
|
24776
24898
|
}));
|
|
24777
|
-
function getAddressInfo(
|
|
24899
|
+
function getAddressInfo(_x30, _x31, _x32) {
|
|
24778
24900
|
return _getAddressInfo.apply(this, arguments);
|
|
24779
24901
|
}
|
|
24780
24902
|
return getAddressInfo;
|
|
@@ -30621,16 +30743,27 @@
|
|
|
30621
30743
|
maxHeight: "368px",
|
|
30622
30744
|
padding: "16px"
|
|
30623
30745
|
};
|
|
30746
|
+
var genderMap = {
|
|
30747
|
+
M: "男",
|
|
30748
|
+
F: "女",
|
|
30749
|
+
null: "未知",
|
|
30750
|
+
undefined: "未知"
|
|
30751
|
+
};
|
|
30624
30752
|
function CustomerInfoEdit(props) {
|
|
30625
30753
|
var visible = props.visible,
|
|
30626
30754
|
onClose = props.onClose,
|
|
30627
|
-
customerInfo = props.customerInfo
|
|
30755
|
+
customerInfo = props.customerInfo,
|
|
30756
|
+
customerInfoOrigin = props.customerInfoOrigin;
|
|
30628
30757
|
var _useContext = React.useContext(CustomerViewContext$1),
|
|
30629
30758
|
uniId = _useContext.uniId,
|
|
30630
30759
|
domain = _useContext.domain,
|
|
30631
30760
|
serverName = _useContext.serverName;
|
|
30632
30761
|
var field = cloudReactV2.Field.useField();
|
|
30633
30762
|
var init = field.init;
|
|
30763
|
+
var _useState = React.useState(false),
|
|
30764
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
30765
|
+
showConfirmLoading = _useState2[0],
|
|
30766
|
+
setShowConfirmLoading = _useState2[1];
|
|
30634
30767
|
var fullName = customerInfo.fullName,
|
|
30635
30768
|
gender = customerInfo.gender,
|
|
30636
30769
|
birthday = customerInfo.birthday,
|
|
@@ -30641,7 +30774,7 @@
|
|
|
30641
30774
|
district = customerInfo.district,
|
|
30642
30775
|
town = customerInfo.town,
|
|
30643
30776
|
address = customerInfo.address;
|
|
30644
|
-
var
|
|
30777
|
+
var _useState3 = React.useState({
|
|
30645
30778
|
fullName: fullName,
|
|
30646
30779
|
gender: gender,
|
|
30647
30780
|
birthday: birthday,
|
|
@@ -30653,9 +30786,9 @@
|
|
|
30653
30786
|
town: town,
|
|
30654
30787
|
address: address
|
|
30655
30788
|
}),
|
|
30656
|
-
|
|
30657
|
-
editCustomerInfo =
|
|
30658
|
-
setEditCustomerInfo =
|
|
30789
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
30790
|
+
editCustomerInfo = _useState4[0],
|
|
30791
|
+
setEditCustomerInfo = _useState4[1];
|
|
30659
30792
|
var newBirthday = birthday ? new Date(shuyunUtils.moment(birthday).format('YYYY/MM/DD')) : '';
|
|
30660
30793
|
var addressValue = "".concat(state || '', ",").concat(city || '', ",").concat(district || '', ",").concat(town || '', ",").concat(address || '');
|
|
30661
30794
|
|
|
@@ -30704,9 +30837,13 @@
|
|
|
30704
30837
|
mobile = values.mobile,
|
|
30705
30838
|
email = values.email;
|
|
30706
30839
|
var state = editCustomerInfo.state,
|
|
30840
|
+
stateName = editCustomerInfo.stateName,
|
|
30707
30841
|
city = editCustomerInfo.city,
|
|
30842
|
+
cityName = editCustomerInfo.cityName,
|
|
30708
30843
|
district = editCustomerInfo.district,
|
|
30844
|
+
districtName = editCustomerInfo.districtName,
|
|
30709
30845
|
town = editCustomerInfo.town,
|
|
30846
|
+
townName = editCustomerInfo.townName,
|
|
30710
30847
|
address = editCustomerInfo.address;
|
|
30711
30848
|
var editValues = [];
|
|
30712
30849
|
if (fullName) {
|
|
@@ -30718,13 +30855,13 @@
|
|
|
30718
30855
|
if (gender) {
|
|
30719
30856
|
editValues.push({
|
|
30720
30857
|
field: "gender",
|
|
30721
|
-
value: gender
|
|
30858
|
+
value: genderMap[gender]
|
|
30722
30859
|
});
|
|
30723
30860
|
}
|
|
30724
30861
|
if (birthday) {
|
|
30725
30862
|
editValues.push({
|
|
30726
30863
|
field: "birthday",
|
|
30727
|
-
value: shuyunUtils.moment(birthday).format('
|
|
30864
|
+
value: shuyunUtils.moment(birthday).format('YYYY-MM-DD')
|
|
30728
30865
|
});
|
|
30729
30866
|
}
|
|
30730
30867
|
if (mobile) {
|
|
@@ -30739,15 +30876,80 @@
|
|
|
30739
30876
|
value: email
|
|
30740
30877
|
});
|
|
30741
30878
|
}
|
|
30742
|
-
if (
|
|
30879
|
+
if (address) {
|
|
30880
|
+
if (!state || !city || !district || !town) {
|
|
30881
|
+
cloudReactV2.Message.error('请选择所在地区(省、市、区、街道)');
|
|
30882
|
+
return;
|
|
30883
|
+
}
|
|
30884
|
+
}
|
|
30885
|
+
if (state) {
|
|
30743
30886
|
editValues.push({
|
|
30744
|
-
field: "
|
|
30745
|
-
value:
|
|
30887
|
+
field: "stateName",
|
|
30888
|
+
value: {
|
|
30889
|
+
"id": state,
|
|
30890
|
+
"name": stateName || customerInfo.stateName
|
|
30891
|
+
}
|
|
30746
30892
|
});
|
|
30747
30893
|
}
|
|
30748
|
-
|
|
30894
|
+
// if (city) {
|
|
30895
|
+
editValues.push({
|
|
30896
|
+
field: "cityName",
|
|
30897
|
+
value: {
|
|
30898
|
+
"id": city,
|
|
30899
|
+
"name": city ? cityName || customerInfo.cityName : ''
|
|
30900
|
+
}
|
|
30901
|
+
});
|
|
30902
|
+
// }
|
|
30903
|
+
// if (district) {
|
|
30904
|
+
editValues.push({
|
|
30905
|
+
field: "districtName",
|
|
30906
|
+
value: {
|
|
30907
|
+
"id": district,
|
|
30908
|
+
"name": district ? districtName || customerInfo.districtName : ''
|
|
30909
|
+
}
|
|
30910
|
+
});
|
|
30911
|
+
// }
|
|
30912
|
+
// if (town) {
|
|
30913
|
+
editValues.push({
|
|
30914
|
+
field: "townName",
|
|
30915
|
+
value: {
|
|
30916
|
+
"id": town,
|
|
30917
|
+
"name": town ? townName || customerInfo.townName : ''
|
|
30918
|
+
}
|
|
30919
|
+
});
|
|
30920
|
+
// }
|
|
30921
|
+
// if (address) {
|
|
30922
|
+
editValues.push({
|
|
30923
|
+
field: "address",
|
|
30924
|
+
value: address
|
|
30925
|
+
});
|
|
30926
|
+
// }
|
|
30927
|
+
|
|
30928
|
+
var saveObj = {};
|
|
30929
|
+
editValues.forEach(function (item) {
|
|
30930
|
+
var _customerInfoOrigin$i = customerInfoOrigin[item.field],
|
|
30931
|
+
tagId = _customerInfoOrigin$i.tagId,
|
|
30932
|
+
tagName = _customerInfoOrigin$i.tagName,
|
|
30933
|
+
parentTagId = _customerInfoOrigin$i.parentTagId;
|
|
30934
|
+
var isArea = ['stateName', 'cityName', 'districtName', 'townName'].includes(item.field);
|
|
30935
|
+
saveObj[item.field] = {
|
|
30936
|
+
tagId: tagId,
|
|
30937
|
+
tagName: tagName,
|
|
30938
|
+
tagValue: isArea ? [JSON.stringify(item.value)] : [item.value],
|
|
30939
|
+
parentTagId: parentTagId
|
|
30940
|
+
};
|
|
30941
|
+
});
|
|
30942
|
+
setShowConfirmLoading(true);
|
|
30943
|
+
store$5.saveCustomerStorageInfo(domain, serverName, uniId, saveObj).then(function (res) {
|
|
30944
|
+
setShowConfirmLoading(false);
|
|
30945
|
+
if (res.code === 500) {
|
|
30946
|
+
cloudReactV2.Message.error(res.msg);
|
|
30947
|
+
return false;
|
|
30948
|
+
}
|
|
30749
30949
|
cloudReactV2.Message.success('基本信息更新成功');
|
|
30750
30950
|
onClose('save');
|
|
30951
|
+
}).catch(function (err) {
|
|
30952
|
+
cloudReactV2.Message.error(err.msg || "内部错误,请联系数据客服");
|
|
30751
30953
|
});
|
|
30752
30954
|
});
|
|
30753
30955
|
} else {
|
|
@@ -30779,9 +30981,10 @@
|
|
|
30779
30981
|
return handleOnClose('save', field);
|
|
30780
30982
|
},
|
|
30781
30983
|
clickMaskCanClose: false,
|
|
30984
|
+
showConfirmLoading: showConfirmLoading,
|
|
30782
30985
|
modalStyle: modalStyle$3,
|
|
30783
30986
|
bodyStyle: bodyStyle$3,
|
|
30784
|
-
title: "\u7F16\u8F91\
|
|
30987
|
+
title: "\u7F16\u8F91\u6211\u7EF4\u62A4\u7684\u4FE1\u606F"
|
|
30785
30988
|
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Form, {
|
|
30786
30989
|
layout: "horizontal",
|
|
30787
30990
|
field: field,
|
|
@@ -30903,6 +31106,28 @@
|
|
|
30903
31106
|
onClose: noop$4
|
|
30904
31107
|
};
|
|
30905
31108
|
|
|
31109
|
+
function InfoExplainModal(_ref) {
|
|
31110
|
+
var visible = _ref.visible,
|
|
31111
|
+
onClose = _ref.onClose;
|
|
31112
|
+
var footer = /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Button, {
|
|
31113
|
+
type: "primary",
|
|
31114
|
+
size: "large",
|
|
31115
|
+
onClick: onClose
|
|
31116
|
+
}, "\u6211\u77E5\u9053\u4E86");
|
|
31117
|
+
return /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Modal, {
|
|
31118
|
+
title: "\u5BA2\u6237\u57FA\u672C\u4FE1\u606F\u8BF4\u660E",
|
|
31119
|
+
modalStyle: {
|
|
31120
|
+
width: 542,
|
|
31121
|
+
height: 316
|
|
31122
|
+
},
|
|
31123
|
+
footer: footer,
|
|
31124
|
+
visible: visible,
|
|
31125
|
+
onClose: onClose
|
|
31126
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31127
|
+
className: "info-explain-modal"
|
|
31128
|
+
}, /*#__PURE__*/React__default['default'].createElement("p", null, "1. \u6700\u65B0\u5BA2\u6237\u57FA\u672C\u4FE1\u606F\uFF1A\u5C55\u793A\u7684\u662F\u6240\u6709\u5168\u6E20\u9053\u5BA2\u6237\u4FE1\u606F\u66F4\u65B0\u6765\u6E90\u4E2D\uFF08\u4F8B\u5982\u8BA2\u5355\u3001\u5FE0\u8BDA\u5EA6\u4F1A\u5458\u3001\u5916\u90E8\u5BFC\u5165\u3001\u5546\u5BB6\u81EA\u4E3B\u7EF4\u62A4\u7684\u5BA2\u6237\u4FE1\u606F\u4EE5\u53CA\"\u4E92\u52A8\u8D62\u5BB6\u3001\u79C1\u57DF\u8D62\u5BB6\u3001\u5FAE\u4FE1\u4F1A\u5458\u4E2D\u5FC3\"\u7684\u5BA2\u6237\u4E1A\u52A1\u6570\u636E\u7B49\uFF09\uFF0C\u5BA2\u6237\u4FE1\u606F\u7684\u6700\u65B0\u4E00\u6761\u66F4\u65B0\u8BB0\u5F55\u3002\u65E0\u9700\u7F16\u8F91\u3002"), /*#__PURE__*/React__default['default'].createElement("p", null, "2. \u6211\u7EF4\u62A4\u7684\u5BA2\u6237\u57FA\u672C\u4FE1\u606F\uFF1A\u5C55\u793A\u7684\u662F\u5546\u5BB6\u81EA\u4E3B\u7EF4\u62A4\u7684\u5BA2\u6237\u4FE1\u606F\u3002\u652F\u6301\u7F16\u8F91\uFF0C\u7F16\u8F91\u4FDD\u5B58\u540E\u4E5F\u4F1A\u540C\u65F6\u66F4\u65B0\u3010\u6700\u65B0\u57FA\u672C\u4FE1\u606F\u3011\u3002\u5F53\"\u6700\u65B0\u57FA\u672C\u4FE1\u606F\"\u66F4\u65B0\u540E\uFF0C\u4E8C\u8005\u53EF\u80FD\u4E0D\u4E00\u81F4\u3002")));
|
|
31129
|
+
}
|
|
31130
|
+
|
|
30906
31131
|
function OverLengthTip(props) {
|
|
30907
31132
|
var tip = props.tip;
|
|
30908
31133
|
var tipRef = React.useRef();
|
|
@@ -30962,12 +31187,18 @@
|
|
|
30962
31187
|
}
|
|
30963
31188
|
}
|
|
30964
31189
|
|
|
30965
|
-
var genderMap = {
|
|
31190
|
+
var genderMap$1 = {
|
|
30966
31191
|
M: "男",
|
|
30967
31192
|
F: "女",
|
|
30968
31193
|
null: "未知",
|
|
30969
31194
|
undefined: "未知"
|
|
30970
31195
|
};
|
|
31196
|
+
var genderMapName = {
|
|
31197
|
+
"男": "M",
|
|
31198
|
+
"女": "F",
|
|
31199
|
+
null: "未知",
|
|
31200
|
+
undefined: "未知"
|
|
31201
|
+
};
|
|
30971
31202
|
var customerStatusMap = {
|
|
30972
31203
|
"1": "潜在客户",
|
|
30973
31204
|
"2": "新客一次客户",
|
|
@@ -31012,6 +31243,7 @@
|
|
|
31012
31243
|
return value || '-';
|
|
31013
31244
|
}
|
|
31014
31245
|
function CustomerInfoModule$1(props) {
|
|
31246
|
+
var _INFO_LIST$find;
|
|
31015
31247
|
var _useContext = React.useContext(CustomerViewContext$1),
|
|
31016
31248
|
uniId = _useContext.uniId,
|
|
31017
31249
|
domain = _useContext.domain,
|
|
@@ -31020,151 +31252,320 @@
|
|
|
31020
31252
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31021
31253
|
visible = _useState2[0],
|
|
31022
31254
|
setVisible = _useState2[1];
|
|
31255
|
+
var _useState3 = React.useState(false),
|
|
31256
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
31257
|
+
showNotice = _useState4[0],
|
|
31258
|
+
setShowNotice = _useState4[1];
|
|
31259
|
+
var _useState5 = React.useState(1),
|
|
31260
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
31261
|
+
infoValue = _useState6[0],
|
|
31262
|
+
setInfoValue = _useState6[1];
|
|
31023
31263
|
var _temp = props.customerInfo;
|
|
31024
31264
|
_temp.fullNameV = false;
|
|
31025
31265
|
_temp.mobileV = false;
|
|
31026
31266
|
_temp.emailV = false;
|
|
31027
31267
|
_temp.addressV = false;
|
|
31028
|
-
var
|
|
31029
|
-
|
|
31030
|
-
customerInfo =
|
|
31031
|
-
setCustomerInfo =
|
|
31032
|
-
var
|
|
31033
|
-
|
|
31034
|
-
editInfoCustomer =
|
|
31035
|
-
setEditInfoCustomer =
|
|
31036
|
-
var
|
|
31037
|
-
|
|
31268
|
+
var _useState7 = React.useState(_temp),
|
|
31269
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
31270
|
+
customerInfo = _useState8[0],
|
|
31271
|
+
setCustomerInfo = _useState8[1];
|
|
31272
|
+
var _useState9 = React.useState({}),
|
|
31273
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
31274
|
+
editInfoCustomer = _useState10[0],
|
|
31275
|
+
setEditInfoCustomer = _useState10[1];
|
|
31276
|
+
var _useState11 = React.useState({}),
|
|
31277
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
31278
|
+
customerInfoOrigin = _useState12[0],
|
|
31279
|
+
setCustomerInfoOrigin = _useState12[1];
|
|
31280
|
+
var _useState13 = React.useState({}),
|
|
31281
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
31282
|
+
encryptInfo = _useState14[0],
|
|
31283
|
+
setEncryptInfo = _useState14[1];
|
|
31284
|
+
var closeCustomerInfoEdit = /*#__PURE__*/function () {
|
|
31285
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type) {
|
|
31286
|
+
var v, data;
|
|
31287
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31288
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31289
|
+
case 0:
|
|
31290
|
+
setVisible(false);
|
|
31038
31291
|
|
|
31039
|
-
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
|
|
31043
|
-
|
|
31044
|
-
|
|
31292
|
+
// 保存成功后重新拉取数据
|
|
31293
|
+
if (!(type === 'save')) {
|
|
31294
|
+
_context.next = 8;
|
|
31295
|
+
break;
|
|
31296
|
+
}
|
|
31297
|
+
v = {
|
|
31298
|
+
fullNameV: false,
|
|
31299
|
+
mobileV: false,
|
|
31300
|
+
emailV: false,
|
|
31301
|
+
addressV: false
|
|
31302
|
+
};
|
|
31303
|
+
_context.next = 5;
|
|
31304
|
+
return customerStorageInfo({
|
|
31305
|
+
encrypt: true
|
|
31306
|
+
}, v);
|
|
31307
|
+
case 5:
|
|
31308
|
+
data = _context.sent;
|
|
31309
|
+
setEncryptInfo(data);
|
|
31310
|
+
return _context.abrupt("return");
|
|
31311
|
+
case 8:
|
|
31312
|
+
setCustomerInfo(encryptInfo);
|
|
31313
|
+
case 9:
|
|
31314
|
+
case "end":
|
|
31315
|
+
return _context.stop();
|
|
31045
31316
|
}
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31052
|
-
|
|
31317
|
+
}, _callee);
|
|
31318
|
+
}));
|
|
31319
|
+
return function closeCustomerInfoEdit(_x) {
|
|
31320
|
+
return _ref.apply(this, arguments);
|
|
31321
|
+
};
|
|
31322
|
+
}();
|
|
31323
|
+
var openCustomerInfoEdit = /*#__PURE__*/function () {
|
|
31324
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
31325
|
+
var info;
|
|
31326
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31327
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
31328
|
+
case 0:
|
|
31329
|
+
_context2.next = 2;
|
|
31330
|
+
return customerStorageInfo({
|
|
31331
|
+
encrypt: false
|
|
31332
|
+
});
|
|
31333
|
+
case 2:
|
|
31334
|
+
info = _context2.sent;
|
|
31335
|
+
setEditInfoCustomer(info);
|
|
31336
|
+
setVisible(true);
|
|
31337
|
+
case 5:
|
|
31338
|
+
case "end":
|
|
31339
|
+
return _context2.stop();
|
|
31340
|
+
}
|
|
31341
|
+
}, _callee2);
|
|
31342
|
+
}));
|
|
31343
|
+
return function openCustomerInfoEdit() {
|
|
31344
|
+
return _ref2.apply(this, arguments);
|
|
31345
|
+
};
|
|
31346
|
+
}();
|
|
31347
|
+
var openInfoExplainModal = function openInfoExplainModal() {
|
|
31348
|
+
cloudReactV2.Modal.createModal(InfoExplainModal).open();
|
|
31349
|
+
};
|
|
31350
|
+
React.useEffect(function () {
|
|
31351
|
+
setTimeout(function () {
|
|
31352
|
+
store$5.getNoticeState(domain, NOTICE_CONTENT_ID).then(function (res) {
|
|
31353
|
+
var _res$data, _res$data$data;
|
|
31354
|
+
setShowNotice(!(res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$data = _res$data.data) === null || _res$data$data === void 0 ? void 0 : _res$data$data.readStatus));
|
|
31053
31355
|
});
|
|
31054
|
-
|
|
31055
|
-
|
|
31056
|
-
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
// setTimeout(() => {
|
|
31061
|
-
// console.log(customerInfo, editInfo, '---走一个');
|
|
31062
|
-
// })
|
|
31356
|
+
}, 100);
|
|
31357
|
+
}, []);
|
|
31358
|
+
var onPopoverChange = function onPopoverChange(visible) {
|
|
31359
|
+
if (!visible && showNotice) {
|
|
31360
|
+
store$5.setNoticeState(domain, NOTICE_CONTENT_ID);
|
|
31361
|
+
setShowNotice(false);
|
|
31063
31362
|
}
|
|
31064
31363
|
};
|
|
31065
|
-
var
|
|
31066
|
-
var
|
|
31067
|
-
|
|
31068
|
-
|
|
31069
|
-
while (1) switch (_context.prev = _context.next) {
|
|
31364
|
+
var customerStorageInfo = /*#__PURE__*/function () {
|
|
31365
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params, v, type) {
|
|
31366
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31367
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31070
31368
|
case 0:
|
|
31071
|
-
|
|
31072
|
-
return store$5.
|
|
31369
|
+
_context3.next = 2;
|
|
31370
|
+
return store$5.getCustomerStorageInfo(domain, serverName, uniId, params).then(function (res) {
|
|
31371
|
+
if (res.code === 500) {
|
|
31372
|
+
cloudReactV2.Message.error(res.msg);
|
|
31373
|
+
return false;
|
|
31374
|
+
}
|
|
31375
|
+
var result = res.data;
|
|
31376
|
+
setCustomerInfoOrigin(result);
|
|
31377
|
+
var info = {};
|
|
31378
|
+
Object.keys(result).forEach(function (item) {
|
|
31379
|
+
var _result$item;
|
|
31380
|
+
var tagValue = (_result$item = result[item]) === null || _result$item === void 0 ? void 0 : _result$item.tagValue;
|
|
31381
|
+
info[item] = tagValue ? tagValue[0] : '';
|
|
31382
|
+
if (item === 'gender') {
|
|
31383
|
+
info[item] = tagValue ? genderMapName[tagValue[0]] : '';
|
|
31384
|
+
}
|
|
31385
|
+
if (item === 'stateName' || item === 'cityName' || item === 'districtName') {
|
|
31386
|
+
info[item] = tagValue ? JSON.parse(tagValue[0]).name : '';
|
|
31387
|
+
}
|
|
31388
|
+
if (item === 'stateName') {
|
|
31389
|
+
info['state'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31390
|
+
}
|
|
31391
|
+
if (item === 'cityName') {
|
|
31392
|
+
info['city'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31393
|
+
}
|
|
31394
|
+
if (item === 'districtName') {
|
|
31395
|
+
info['district'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31396
|
+
}
|
|
31397
|
+
if (item === 'townName') {
|
|
31398
|
+
if (tagValue) {
|
|
31399
|
+
if (tagValue[0] === "**") {
|
|
31400
|
+
info[item] = tagValue[0];
|
|
31401
|
+
} else {
|
|
31402
|
+
info[item] = tagValue ? JSON.parse(tagValue[0]).name : '';
|
|
31403
|
+
info['town'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31404
|
+
}
|
|
31405
|
+
}
|
|
31406
|
+
}
|
|
31407
|
+
});
|
|
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
|
+
return info;
|
|
31415
|
+
});
|
|
31073
31416
|
case 2:
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31082
|
-
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
31417
|
+
return _context3.abrupt("return", _context3.sent);
|
|
31418
|
+
case 3:
|
|
31419
|
+
case "end":
|
|
31420
|
+
return _context3.stop();
|
|
31421
|
+
}
|
|
31422
|
+
}, _callee3);
|
|
31423
|
+
}));
|
|
31424
|
+
return function customerStorageInfo(_x2, _x3, _x4) {
|
|
31425
|
+
return _ref3.apply(this, arguments);
|
|
31426
|
+
};
|
|
31427
|
+
}();
|
|
31428
|
+
var onInfoMenuClick = /*#__PURE__*/function () {
|
|
31429
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(id) {
|
|
31430
|
+
var v, data;
|
|
31431
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
31432
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31433
|
+
case 0:
|
|
31434
|
+
if (!(id === BASIC_INFO)) {
|
|
31435
|
+
_context4.next = 5;
|
|
31436
|
+
break;
|
|
31437
|
+
}
|
|
31438
|
+
_context4.next = 3;
|
|
31439
|
+
return store$5.getCustomerInfo(domain, serverName, uniId).then(function (res) {
|
|
31440
|
+
setInfoValue(id);
|
|
31441
|
+
var result = res;
|
|
31442
|
+
if (result.shopAccountMap && result.shopAccountMap.JOS) {
|
|
31443
|
+
dealJosPlatAccount(result);
|
|
31444
|
+
}
|
|
31445
|
+
result.fullNameV = false;
|
|
31446
|
+
result.mobileV = false;
|
|
31447
|
+
result.emailV = false;
|
|
31448
|
+
result.addressV = false;
|
|
31449
|
+
setCustomerInfo(result);
|
|
31450
|
+
}).catch(function (err) {
|
|
31451
|
+
cloudReactV2.Message.error(err.msg || "内部错误,请联系数据客服");
|
|
31452
|
+
});
|
|
31453
|
+
case 3:
|
|
31454
|
+
_context4.next = 11;
|
|
31455
|
+
break;
|
|
31456
|
+
case 5:
|
|
31457
|
+
v = {
|
|
31458
|
+
fullNameV: false,
|
|
31459
|
+
mobileV: false,
|
|
31460
|
+
emailV: false,
|
|
31461
|
+
addressV: false
|
|
31088
31462
|
};
|
|
31089
|
-
|
|
31090
|
-
|
|
31463
|
+
_context4.next = 8;
|
|
31464
|
+
return customerStorageInfo({
|
|
31465
|
+
encrypt: true
|
|
31466
|
+
}, v);
|
|
31091
31467
|
case 8:
|
|
31468
|
+
data = _context4.sent;
|
|
31469
|
+
setEncryptInfo(data);
|
|
31470
|
+
if (data) {
|
|
31471
|
+
setInfoValue(id);
|
|
31472
|
+
}
|
|
31473
|
+
case 11:
|
|
31092
31474
|
case "end":
|
|
31093
|
-
return
|
|
31475
|
+
return _context4.stop();
|
|
31094
31476
|
}
|
|
31095
|
-
},
|
|
31477
|
+
}, _callee4);
|
|
31096
31478
|
}));
|
|
31097
|
-
return function
|
|
31098
|
-
return
|
|
31479
|
+
return function onInfoMenuClick(_x5) {
|
|
31480
|
+
return _ref4.apply(this, arguments);
|
|
31099
31481
|
};
|
|
31100
31482
|
}();
|
|
31101
31483
|
var changeCustomerInfo = /*#__PURE__*/function () {
|
|
31102
|
-
var
|
|
31484
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(ci, type) {
|
|
31103
31485
|
var res, _res, _res2, _res3;
|
|
31104
|
-
return _regeneratorRuntime().wrap(function
|
|
31105
|
-
while (1) switch (
|
|
31486
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
31487
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
31106
31488
|
case 0:
|
|
31489
|
+
if (!(infoValue === BASIC_INFO)) {
|
|
31490
|
+
_context5.next = 25;
|
|
31491
|
+
break;
|
|
31492
|
+
}
|
|
31107
31493
|
if (!(type === 'fullName' && !customerInfo.fullNameTemp)) {
|
|
31108
|
-
|
|
31494
|
+
_context5.next = 7;
|
|
31109
31495
|
break;
|
|
31110
31496
|
}
|
|
31111
|
-
|
|
31497
|
+
_context5.next = 4;
|
|
31112
31498
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31113
|
-
case
|
|
31114
|
-
res =
|
|
31499
|
+
case 4:
|
|
31500
|
+
res = _context5.sent;
|
|
31115
31501
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31116
31502
|
fullNameTemp: res.data
|
|
31117
31503
|
}));
|
|
31118
|
-
return
|
|
31119
|
-
case
|
|
31504
|
+
return _context5.abrupt("return");
|
|
31505
|
+
case 7:
|
|
31120
31506
|
if (!(type === 'mobile' && !customerInfo.mobileTemp)) {
|
|
31121
|
-
|
|
31507
|
+
_context5.next = 13;
|
|
31122
31508
|
break;
|
|
31123
31509
|
}
|
|
31124
|
-
|
|
31510
|
+
_context5.next = 10;
|
|
31125
31511
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31126
|
-
case
|
|
31127
|
-
_res =
|
|
31512
|
+
case 10:
|
|
31513
|
+
_res = _context5.sent;
|
|
31128
31514
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31129
31515
|
mobileTemp: _res.data
|
|
31130
31516
|
}));
|
|
31131
|
-
return
|
|
31132
|
-
case
|
|
31517
|
+
return _context5.abrupt("return");
|
|
31518
|
+
case 13:
|
|
31133
31519
|
if (!(type === 'email' && !customerInfo.emailTemp)) {
|
|
31134
|
-
|
|
31520
|
+
_context5.next = 19;
|
|
31135
31521
|
break;
|
|
31136
31522
|
}
|
|
31137
|
-
|
|
31523
|
+
_context5.next = 16;
|
|
31138
31524
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31139
|
-
case
|
|
31140
|
-
_res2 =
|
|
31525
|
+
case 16:
|
|
31526
|
+
_res2 = _context5.sent;
|
|
31141
31527
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31142
31528
|
emailTemp: _res2.data
|
|
31143
31529
|
}));
|
|
31144
|
-
return
|
|
31145
|
-
case
|
|
31530
|
+
return _context5.abrupt("return");
|
|
31531
|
+
case 19:
|
|
31146
31532
|
if (!(type === 'address' && !customerInfo.addressTemp)) {
|
|
31147
|
-
|
|
31533
|
+
_context5.next = 25;
|
|
31148
31534
|
break;
|
|
31149
31535
|
}
|
|
31150
|
-
|
|
31536
|
+
_context5.next = 22;
|
|
31151
31537
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31152
|
-
case
|
|
31153
|
-
_res3 =
|
|
31538
|
+
case 22:
|
|
31539
|
+
_res3 = _context5.sent;
|
|
31154
31540
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31155
31541
|
addressTemp: _res3.data
|
|
31156
31542
|
}));
|
|
31157
|
-
return
|
|
31158
|
-
case 24:
|
|
31159
|
-
setCustomerInfo(_objectSpread2(_objectSpread2({}, customerInfo), ci));
|
|
31543
|
+
return _context5.abrupt("return");
|
|
31160
31544
|
case 25:
|
|
31545
|
+
if (!(infoValue === MAINTAIN_INFO)) {
|
|
31546
|
+
_context5.next = 30;
|
|
31547
|
+
break;
|
|
31548
|
+
}
|
|
31549
|
+
if (!(type === 'fullName' && !customerInfo.fullNameTemp || type === 'mobile' && !customerInfo.mobileTemp || type === 'email' && !customerInfo.emailTemp || type === 'address' && !customerInfo.addressTemp)) {
|
|
31550
|
+
_context5.next = 30;
|
|
31551
|
+
break;
|
|
31552
|
+
}
|
|
31553
|
+
_context5.next = 29;
|
|
31554
|
+
return customerStorageInfo({
|
|
31555
|
+
encrypt: false
|
|
31556
|
+
}, ci, type);
|
|
31557
|
+
case 29:
|
|
31558
|
+
return _context5.abrupt("return");
|
|
31559
|
+
case 30:
|
|
31560
|
+
setCustomerInfo(_objectSpread2(_objectSpread2({}, customerInfo), ci));
|
|
31561
|
+
case 31:
|
|
31161
31562
|
case "end":
|
|
31162
|
-
return
|
|
31563
|
+
return _context5.stop();
|
|
31163
31564
|
}
|
|
31164
|
-
},
|
|
31565
|
+
}, _callee5);
|
|
31165
31566
|
}));
|
|
31166
|
-
return function changeCustomerInfo(
|
|
31167
|
-
return
|
|
31567
|
+
return function changeCustomerInfo(_x6, _x7) {
|
|
31568
|
+
return _ref5.apply(this, arguments);
|
|
31168
31569
|
};
|
|
31169
31570
|
}();
|
|
31170
31571
|
var handleCopy = function handleCopy(uniId) {
|
|
@@ -31174,18 +31575,59 @@
|
|
|
31174
31575
|
});
|
|
31175
31576
|
};
|
|
31176
31577
|
var _tipStr7 = "\n\t\t<div>\u4EE5\u5168\u6E20\u9053RFM\u4E3A\u4F8B\uFF08\u82E5\u5DF2\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5BA2\u6237\u751F\u547D\u5468\u671F\uFF0C\u5219\u4EE5\u81EA\u5B9A\u4E49\u5BA2\u6237\u751F\u547D\u5468\u671F\u8FDB\u884C\u8BA1\u7B97\uFF09\uFF1A</div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>1. </span> <span>\u6F5C\u5728\u5BA2\u6237\uFF1A\u5C1A\u65E0\u6709\u6548\u4EA4\u6613\u7684\u5BA2\u6237\u3002</span></div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>2. </span> <span>\u8001\u5BA2\u4E00\u6B21\u5BA2\u6237\uFF1A\u65B0\u5BA2\u4E00\u6B21\u5BA2\u6237\uFF1A\u9996\u6B21\u8D2D\u4E70\u65F6\u95F4\u57281\u5E74\u5185 \u4E14 \u6700\u8FD11\u5E74\u8D2D\u4E70\u6B21\u6570=1\u6B21\u3002</span></div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>3. </span> <span>\u8001\u5BA2\u4E00\u6B21\u5BA2\u6237\uFF1A\u9996\u6B21\u8D2D\u4E70\u65F6\u95F4\u57281\u5E74\u524D \u4E14 \u6700\u8FD11\u5E74\u8D2D\u4E70\u6B21\u6570=1\u6B21\u3002</span></div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>4. </span> <span>\u65B0\u5BA2\u590D\u8D2D\u5BA2\u6237\uFF1A\u9996\u6B21\u8D2D\u4E70\u65F6\u95F4\u57281\u5E74\u5185 \u4E14 \u6700\u8FD11\u5E74\u8D2D\u4E70\u6B21\u6570\u22652\u6B21\u3002</span></div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>5. </span> <span>\u8001\u5BA2\u590D\u8D2D\u5BA2\u6237\uFF1A\u9996\u6B21\u8D2D\u4E70\u65F6\u95F4\u57281\u5E74\u524D \u4E14 \u6700\u8FD11\u5E74\u8D2D\u4E70\u6B21\u6570\u22652\u6B21\u3002</span></div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>6. </span> <span>\u6C89\u9ED8\u5BA2\u6237\uFF1A\u6700\u8FD11\u5E74\u65E0\u6709\u6548\u4EA4\u6613\uFF0C\u518D\u5F80\u524D1\u5E74\u5B58\u5728\u6709\u6548\u4EA4\u6613\u7684\u5BA2\u6237\u3002</span></div>\n\t\t<div class=\"customer-view-new-tip-temp\"><span>7. </span> <span>\u6D41\u5931\u5BA2\u6237\uFF1A\u6700\u8FD1\u4E00\u6B21\u8D2D\u4E70\u65F6\u95F4\u57282\u5E74\u524D\u3002</span></div>";
|
|
31578
|
+
var dropdownMenu = /*#__PURE__*/React__default['default'].createElement(cloudReactV2.CDropdown.Menu, {
|
|
31579
|
+
style: {
|
|
31580
|
+
width: 200
|
|
31581
|
+
},
|
|
31582
|
+
checkedId: infoValue,
|
|
31583
|
+
onClick: onInfoMenuClick
|
|
31584
|
+
}, INFO_LIST.map(function (item) {
|
|
31585
|
+
return /*#__PURE__*/React__default['default'].createElement(cloudReactV2.CDropdown.Item, {
|
|
31586
|
+
key: item.id,
|
|
31587
|
+
id: item.id
|
|
31588
|
+
}, item.label);
|
|
31589
|
+
}));
|
|
31590
|
+
var birthYear = customerInfo.birthday ? shuyunUtils.moment(customerInfo.birthday).format('YYYY/MM/DD').split('/')[0] : '';
|
|
31177
31591
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31592
|
+
className: "info-explain-container"
|
|
31593
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31594
|
+
className: "info-dropdown"
|
|
31595
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.CDropdown, {
|
|
31596
|
+
placement: "bottomLeft",
|
|
31597
|
+
overlay: dropdownMenu,
|
|
31598
|
+
trigger: ['click']
|
|
31599
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", null, ((_INFO_LIST$find = INFO_LIST.find(function (item) {
|
|
31600
|
+
return item.id === infoValue;
|
|
31601
|
+
})) === null || _INFO_LIST$find === void 0 ? void 0 : _INFO_LIST$find.label) || INFO_LIST[0].label), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31602
|
+
type: "down-solid"
|
|
31603
|
+
})))), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31604
|
+
className: "info-popover"
|
|
31605
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Popover, {
|
|
31606
|
+
size: "small",
|
|
31607
|
+
placement: "right",
|
|
31608
|
+
className: "info-popover",
|
|
31609
|
+
visible: showNotice,
|
|
31610
|
+
containerEle: document.querySelector('.info-popover'),
|
|
31611
|
+
title: "\u5546\u5BB6\u81EA\u4E3B\u7EF4\u62A4\u7684\u5BA2\u6237\u4FE1\u606F",
|
|
31612
|
+
content: "\u5BA2\u6237\u57FA\u7840\u4FE1\u606F\u6A21\u5757\u65B0\u589E\u4E0B\u62C9\u5207\u6362\u5C55\u793A\"\u6700\u65B0\u7684\u5BA2\u6237\u4FE1\u606F\"\u4EE5\u53CA\"\u5546\u5BB6\u7EF4\u62A4\u7684\u5BA2\u6237\u4FE1\u606F\"\uFF0C\u5BA2\u6237\u7BA1\u7406\u66F4\u7075\u6D3B\u3002",
|
|
31613
|
+
confirmText: "\u6211\u77E5\u9053\u4E86",
|
|
31614
|
+
onVisibleChange: onPopoverChange,
|
|
31615
|
+
showConfirmBtn: true
|
|
31616
|
+
})), infoValue === MAINTAIN_INFO && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
31617
|
+
className: "info-edit",
|
|
31618
|
+
onClick: openCustomerInfoEdit
|
|
31619
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31620
|
+
type: "edit-2"
|
|
31621
|
+
}), "\u7F16\u8F91"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31622
|
+
className: "info-explain",
|
|
31623
|
+
onClick: openInfoExplainModal
|
|
31624
|
+
}, "\u4E0D\u540C\u57FA\u672C\u4FE1\u606F\u7684\u533A\u522B\uFF1F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31178
31625
|
className: "uniId-wrap"
|
|
31179
31626
|
}, /*#__PURE__*/React__default['default'].createElement("section", {
|
|
31180
31627
|
className: "uniId-wrap-1"
|
|
31181
31628
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
31182
31629
|
className: "info-flag"
|
|
31183
|
-
}, "\u5168\u6E20\u9053\u5BA2\u6237ID\uFF1A"), /*#__PURE__*/React__default['default'].createElement("
|
|
31184
|
-
className: "info-edit",
|
|
31185
|
-
onClick: openCustomerInfoEdit
|
|
31186
|
-
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31187
|
-
type: "edit-2"
|
|
31188
|
-
}), "\u7F16\u8F91")), /*#__PURE__*/React__default['default'].createElement("section", {
|
|
31630
|
+
}, "\u5168\u6E20\u9053\u5BA2\u6237ID\uFF1A")), /*#__PURE__*/React__default['default'].createElement("section", {
|
|
31189
31631
|
className: "uniId-wrap-2"
|
|
31190
31632
|
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
31191
31633
|
content: "\u53CC\u51FB\u53EF\u590D\u5236"
|
|
@@ -31201,6 +31643,7 @@
|
|
|
31201
31643
|
}, customerInfo.customerType ? customerStatusMap[customerInfo.customerType] : ''))), visible && /*#__PURE__*/React__default['default'].createElement(CustomerInfoEdit, {
|
|
31202
31644
|
visible: visible,
|
|
31203
31645
|
customerInfo: editInfoCustomer,
|
|
31646
|
+
customerInfoOrigin: customerInfoOrigin,
|
|
31204
31647
|
onClose: closeCustomerInfoEdit
|
|
31205
31648
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31206
31649
|
className: "customer-info-wrap"
|
|
@@ -31226,7 +31669,7 @@
|
|
|
31226
31669
|
className: "customer-info"
|
|
31227
31670
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6027\u522B\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31228
31671
|
className: "customer-info-text"
|
|
31229
|
-
}, renderInfoValue(genderMap[customerInfo.gender]))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31672
|
+
}, renderInfoValue(genderMap$1[customerInfo.gender]))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31230
31673
|
className: "customer-info"
|
|
31231
31674
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6700\u65B0\u624B\u673A\u53F7\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31232
31675
|
className: "customer-info-text customer-info-text-special"
|
|
@@ -31252,7 +31695,7 @@
|
|
|
31252
31695
|
className: "customer-info"
|
|
31253
31696
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5E74\u9F84\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31254
31697
|
className: "customer-info-text"
|
|
31255
|
-
},
|
|
31698
|
+
}, birthYear ? "".concat(new Date().getFullYear() - Number(birthYear), "\u5C81") : '-')), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31256
31699
|
className: "customer-info"
|
|
31257
31700
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u90AE\u7BB1\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31258
31701
|
className: "customer-info-text"
|
|
@@ -34592,8 +35035,8 @@
|
|
|
34592
35035
|
cloudReactV2.Message.error("关键字不能为空");
|
|
34593
35036
|
return;
|
|
34594
35037
|
}
|
|
34595
|
-
if (!/^[
|
|
34596
|
-
cloudReactV2.Message.error("只能输入1-20
|
|
35038
|
+
if (!/^[\u4e00-\u9fa5\w-.();]+$/g.test(keywords) || (keywords === null || keywords === void 0 ? void 0 : keywords.length) > 20) {
|
|
35039
|
+
cloudReactV2.Message.error("只能输入1-20位中文、英文、数字、中文括号、中文分号、.(点号)、_(下划线)、-(减号) 。");
|
|
34597
35040
|
return;
|
|
34598
35041
|
}
|
|
34599
35042
|
if (keywordsList.find(function (item) {
|
|
@@ -35720,8 +36163,8 @@
|
|
|
35720
36163
|
len: 20,
|
|
35721
36164
|
message: '最长只能输入20个字符'
|
|
35722
36165
|
}, {
|
|
35723
|
-
pattern: flag ? /^[\u4e00-\u9fa5\w
|
|
35724
|
-
message: "
|
|
36166
|
+
pattern: flag ? /^[\u4e00-\u9fa5\w-.();]+$/g : /(^$)|^[\u4e00-\u9fa5\w-.();]+$/g,
|
|
36167
|
+
message: "只能输入1-20位中文、英文、数字、中文括号、中文分号、.(点号)、_(下划线)、-(减号) 。"
|
|
35725
36168
|
}],
|
|
35726
36169
|
initValue: tagValues[tag.tagId]
|
|
35727
36170
|
}))));
|
|
@@ -37688,6 +38131,7 @@
|
|
|
37688
38131
|
var selectedShopTemp = _this.state.selectedShopTemp;
|
|
37689
38132
|
if (type === 'rest') {
|
|
37690
38133
|
_this.setState({
|
|
38134
|
+
orderId: '',
|
|
37691
38135
|
selectedShop: JSON.parse(JSON.stringify(selectedShopTemp))
|
|
37692
38136
|
});
|
|
37693
38137
|
}
|
|
@@ -37721,7 +38165,10 @@
|
|
|
37721
38165
|
searchLoading: true,
|
|
37722
38166
|
isSearchEmpty: true
|
|
37723
38167
|
});
|
|
37724
|
-
|
|
38168
|
+
setTimeout(function () {
|
|
38169
|
+
_this.query.orderId = _this.state.orderId;
|
|
38170
|
+
_this.ajaxData();
|
|
38171
|
+
});
|
|
37725
38172
|
};
|
|
37726
38173
|
_this.onChange = function (v) {
|
|
37727
38174
|
// if (!v || !v.length) {
|
|
@@ -37735,6 +38182,11 @@
|
|
|
37735
38182
|
selectedShop: v
|
|
37736
38183
|
});
|
|
37737
38184
|
};
|
|
38185
|
+
_this.onOrderChange = function (e) {
|
|
38186
|
+
_this.setState({
|
|
38187
|
+
orderId: e.target.value
|
|
38188
|
+
});
|
|
38189
|
+
};
|
|
37738
38190
|
_this.handleOrderColumnChange = function (value) {
|
|
37739
38191
|
_this.setState({
|
|
37740
38192
|
orderColumnTemp: value
|
|
@@ -37777,7 +38229,8 @@
|
|
|
37777
38229
|
tableData: [],
|
|
37778
38230
|
orderColumn: getUserBehavior().orderColumn,
|
|
37779
38231
|
orderColumnTemp: getUserBehavior().orderColumn,
|
|
37780
|
-
isBigScreen: false
|
|
38232
|
+
isBigScreen: false,
|
|
38233
|
+
orderId: ''
|
|
37781
38234
|
};
|
|
37782
38235
|
return _this;
|
|
37783
38236
|
}
|
|
@@ -38059,6 +38512,26 @@
|
|
|
38059
38512
|
showSearch: {
|
|
38060
38513
|
filter: this.filter
|
|
38061
38514
|
}
|
|
38515
|
+
}), /*#__PURE__*/React__default['default'].createElement("label", {
|
|
38516
|
+
className: "title-label-require",
|
|
38517
|
+
style: {
|
|
38518
|
+
marginLeft: 16
|
|
38519
|
+
}
|
|
38520
|
+
}, "\u8BA2\u5355\u53F7", /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
38521
|
+
content: '默认基于客户近两年的订单数据筛选订单。',
|
|
38522
|
+
placement: "top"
|
|
38523
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
38524
|
+
type: "question-circle",
|
|
38525
|
+
style: {
|
|
38526
|
+
margin: "0 2px",
|
|
38527
|
+
fontSize: "14px",
|
|
38528
|
+
color: "#0055CC",
|
|
38529
|
+
cursor: "pointer"
|
|
38530
|
+
}
|
|
38531
|
+
}), "\uFF1A")), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Input, {
|
|
38532
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7",
|
|
38533
|
+
value: this.state.orderId,
|
|
38534
|
+
onChange: this.onOrderChange
|
|
38062
38535
|
}), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Button, {
|
|
38063
38536
|
type: "primary",
|
|
38064
38537
|
onClick: function onClick() {
|
|
@@ -146116,7 +146589,7 @@
|
|
|
146116
146589
|
}
|
|
146117
146590
|
// 检验当前运行环境
|
|
146118
146591
|
if (typeof window === 'undefined') {
|
|
146119
|
-
console.warn('cloud-business@0.1.120-
|
|
146592
|
+
console.warn('cloud-business@0.1.120-5 仅支持在浏览器环境进行使用!');
|
|
146120
146593
|
}
|
|
146121
146594
|
var bodys = document.getElementsByTagName('body')[0];
|
|
146122
146595
|
var colors = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -146126,7 +146599,7 @@
|
|
|
146126
146599
|
bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
|
|
146127
146600
|
}
|
|
146128
146601
|
}
|
|
146129
|
-
var version = '0.1.120-
|
|
146602
|
+
var version = '0.1.120-5';
|
|
146130
146603
|
|
|
146131
146604
|
exports.AreaSelector = AreaSelector;
|
|
146132
146605
|
exports.AreaSelectorNew = AreaSelector$1;
|