cloud-business 0.1.120-3 → 0.1.120-4
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 +642 -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,310 @@
|
|
|
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 closeCustomerInfoEdit = /*#__PURE__*/function () {
|
|
31281
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type) {
|
|
31282
|
+
var v;
|
|
31283
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31284
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31285
|
+
case 0:
|
|
31286
|
+
setVisible(false);
|
|
31038
31287
|
|
|
31039
|
-
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
|
|
31043
|
-
|
|
31044
|
-
|
|
31288
|
+
// 保存成功后重新拉取数据
|
|
31289
|
+
if (!(type === 'save')) {
|
|
31290
|
+
_context.next = 5;
|
|
31291
|
+
break;
|
|
31292
|
+
}
|
|
31293
|
+
v = {
|
|
31294
|
+
fullNameV: false,
|
|
31295
|
+
mobileV: false,
|
|
31296
|
+
emailV: false,
|
|
31297
|
+
addressV: false
|
|
31298
|
+
};
|
|
31299
|
+
_context.next = 5;
|
|
31300
|
+
return customerStorageInfo({
|
|
31301
|
+
encrypt: true
|
|
31302
|
+
}, v);
|
|
31303
|
+
case 5:
|
|
31304
|
+
case "end":
|
|
31305
|
+
return _context.stop();
|
|
31045
31306
|
}
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31052
|
-
|
|
31307
|
+
}, _callee);
|
|
31308
|
+
}));
|
|
31309
|
+
return function closeCustomerInfoEdit(_x) {
|
|
31310
|
+
return _ref.apply(this, arguments);
|
|
31311
|
+
};
|
|
31312
|
+
}();
|
|
31313
|
+
var openCustomerInfoEdit = /*#__PURE__*/function () {
|
|
31314
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
31315
|
+
var info;
|
|
31316
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31317
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
31318
|
+
case 0:
|
|
31319
|
+
_context2.next = 2;
|
|
31320
|
+
return customerStorageInfo({
|
|
31321
|
+
encrypt: false
|
|
31322
|
+
});
|
|
31323
|
+
case 2:
|
|
31324
|
+
info = _context2.sent;
|
|
31325
|
+
setEditInfoCustomer(info);
|
|
31326
|
+
setVisible(true);
|
|
31327
|
+
case 5:
|
|
31328
|
+
case "end":
|
|
31329
|
+
return _context2.stop();
|
|
31330
|
+
}
|
|
31331
|
+
}, _callee2);
|
|
31332
|
+
}));
|
|
31333
|
+
return function openCustomerInfoEdit() {
|
|
31334
|
+
return _ref2.apply(this, arguments);
|
|
31335
|
+
};
|
|
31336
|
+
}();
|
|
31337
|
+
var openInfoExplainModal = function openInfoExplainModal() {
|
|
31338
|
+
cloudReactV2.Modal.createModal(InfoExplainModal).open();
|
|
31339
|
+
};
|
|
31340
|
+
React.useEffect(function () {
|
|
31341
|
+
setTimeout(function () {
|
|
31342
|
+
store$5.getNoticeState(domain, NOTICE_CONTENT_ID).then(function (res) {
|
|
31343
|
+
var _res$data, _res$data$data;
|
|
31344
|
+
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
31345
|
});
|
|
31054
|
-
|
|
31055
|
-
|
|
31056
|
-
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
// setTimeout(() => {
|
|
31061
|
-
// console.log(customerInfo, editInfo, '---走一个');
|
|
31062
|
-
// })
|
|
31346
|
+
}, 100);
|
|
31347
|
+
}, []);
|
|
31348
|
+
var onPopoverChange = function onPopoverChange(visible) {
|
|
31349
|
+
if (!visible && showNotice) {
|
|
31350
|
+
store$5.setNoticeState(domain, NOTICE_CONTENT_ID);
|
|
31351
|
+
setShowNotice(false);
|
|
31063
31352
|
}
|
|
31064
31353
|
};
|
|
31065
|
-
var
|
|
31066
|
-
var
|
|
31067
|
-
|
|
31068
|
-
|
|
31069
|
-
while (1) switch (_context.prev = _context.next) {
|
|
31354
|
+
var customerStorageInfo = /*#__PURE__*/function () {
|
|
31355
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params, v, type) {
|
|
31356
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31357
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31070
31358
|
case 0:
|
|
31071
|
-
|
|
31072
|
-
return store$5.
|
|
31359
|
+
_context3.next = 2;
|
|
31360
|
+
return store$5.getCustomerStorageInfo(domain, serverName, uniId, params).then(function (res) {
|
|
31361
|
+
if (res.code === 500) {
|
|
31362
|
+
cloudReactV2.Message.error(res.msg);
|
|
31363
|
+
return false;
|
|
31364
|
+
}
|
|
31365
|
+
var result = res.data;
|
|
31366
|
+
setCustomerInfoOrigin(result);
|
|
31367
|
+
var info = {};
|
|
31368
|
+
Object.keys(result).forEach(function (item) {
|
|
31369
|
+
var _result$item;
|
|
31370
|
+
var tagValue = (_result$item = result[item]) === null || _result$item === void 0 ? void 0 : _result$item.tagValue;
|
|
31371
|
+
info[item] = tagValue ? tagValue[0] : '';
|
|
31372
|
+
if (item === 'gender') {
|
|
31373
|
+
info[item] = tagValue ? genderMapName[tagValue[0]] : '';
|
|
31374
|
+
}
|
|
31375
|
+
if (item === 'stateName' || item === 'cityName' || item === 'districtName') {
|
|
31376
|
+
info[item] = tagValue ? JSON.parse(tagValue[0]).name : '';
|
|
31377
|
+
}
|
|
31378
|
+
if (item === 'stateName') {
|
|
31379
|
+
info['state'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31380
|
+
}
|
|
31381
|
+
if (item === 'cityName') {
|
|
31382
|
+
info['city'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31383
|
+
}
|
|
31384
|
+
if (item === 'districtName') {
|
|
31385
|
+
info['district'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31386
|
+
}
|
|
31387
|
+
if (item === 'townName') {
|
|
31388
|
+
if (tagValue) {
|
|
31389
|
+
if (tagValue[0] === "**") {
|
|
31390
|
+
info[item] = tagValue[0];
|
|
31391
|
+
} else {
|
|
31392
|
+
info[item] = tagValue ? JSON.parse(tagValue[0]).name : '';
|
|
31393
|
+
info['town'] = tagValue ? JSON.parse(tagValue[0]).id : '';
|
|
31394
|
+
}
|
|
31395
|
+
}
|
|
31396
|
+
}
|
|
31397
|
+
});
|
|
31398
|
+
if (type) {
|
|
31399
|
+
// 处理展开隐藏操作
|
|
31400
|
+
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), v), {}, _defineProperty(_defineProperty({}, "".concat(type, "Temp"), info[type]), type, customerInfo[type])));
|
|
31401
|
+
} else {
|
|
31402
|
+
setCustomerInfo(_objectSpread2(_objectSpread2({}, info), v));
|
|
31403
|
+
}
|
|
31404
|
+
return info;
|
|
31405
|
+
});
|
|
31073
31406
|
case 2:
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31082
|
-
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
31407
|
+
return _context3.abrupt("return", _context3.sent);
|
|
31408
|
+
case 3:
|
|
31409
|
+
case "end":
|
|
31410
|
+
return _context3.stop();
|
|
31411
|
+
}
|
|
31412
|
+
}, _callee3);
|
|
31413
|
+
}));
|
|
31414
|
+
return function customerStorageInfo(_x2, _x3, _x4) {
|
|
31415
|
+
return _ref3.apply(this, arguments);
|
|
31416
|
+
};
|
|
31417
|
+
}();
|
|
31418
|
+
var onInfoMenuClick = /*#__PURE__*/function () {
|
|
31419
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(id) {
|
|
31420
|
+
var v, data;
|
|
31421
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
31422
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31423
|
+
case 0:
|
|
31424
|
+
if (!(id === BASIC_INFO)) {
|
|
31425
|
+
_context4.next = 5;
|
|
31426
|
+
break;
|
|
31427
|
+
}
|
|
31428
|
+
_context4.next = 3;
|
|
31429
|
+
return store$5.getCustomerInfo(domain, serverName, uniId).then(function (res) {
|
|
31430
|
+
setInfoValue(id);
|
|
31431
|
+
var result = res;
|
|
31432
|
+
if (result.shopAccountMap && result.shopAccountMap.JOS) {
|
|
31433
|
+
dealJosPlatAccount(result);
|
|
31434
|
+
}
|
|
31435
|
+
result.fullNameV = false;
|
|
31436
|
+
result.mobileV = false;
|
|
31437
|
+
result.emailV = false;
|
|
31438
|
+
result.addressV = false;
|
|
31439
|
+
setCustomerInfo(result);
|
|
31440
|
+
}).catch(function (err) {
|
|
31441
|
+
cloudReactV2.Message.error(err.msg || "内部错误,请联系数据客服");
|
|
31442
|
+
});
|
|
31443
|
+
case 3:
|
|
31444
|
+
_context4.next = 10;
|
|
31445
|
+
break;
|
|
31446
|
+
case 5:
|
|
31447
|
+
// todo待后端接口
|
|
31448
|
+
v = {
|
|
31449
|
+
fullNameV: false,
|
|
31450
|
+
mobileV: false,
|
|
31451
|
+
emailV: false,
|
|
31452
|
+
addressV: false
|
|
31088
31453
|
};
|
|
31089
|
-
|
|
31090
|
-
|
|
31454
|
+
_context4.next = 8;
|
|
31455
|
+
return customerStorageInfo({
|
|
31456
|
+
encrypt: true
|
|
31457
|
+
}, v);
|
|
31091
31458
|
case 8:
|
|
31459
|
+
data = _context4.sent;
|
|
31460
|
+
if (data) {
|
|
31461
|
+
setInfoValue(id);
|
|
31462
|
+
}
|
|
31463
|
+
case 10:
|
|
31092
31464
|
case "end":
|
|
31093
|
-
return
|
|
31465
|
+
return _context4.stop();
|
|
31094
31466
|
}
|
|
31095
|
-
},
|
|
31467
|
+
}, _callee4);
|
|
31096
31468
|
}));
|
|
31097
|
-
return function
|
|
31098
|
-
return
|
|
31469
|
+
return function onInfoMenuClick(_x5) {
|
|
31470
|
+
return _ref4.apply(this, arguments);
|
|
31099
31471
|
};
|
|
31100
31472
|
}();
|
|
31101
31473
|
var changeCustomerInfo = /*#__PURE__*/function () {
|
|
31102
|
-
var
|
|
31474
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(ci, type) {
|
|
31103
31475
|
var res, _res, _res2, _res3;
|
|
31104
|
-
return _regeneratorRuntime().wrap(function
|
|
31105
|
-
while (1) switch (
|
|
31476
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
31477
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
31106
31478
|
case 0:
|
|
31479
|
+
if (!(infoValue === BASIC_INFO)) {
|
|
31480
|
+
_context5.next = 25;
|
|
31481
|
+
break;
|
|
31482
|
+
}
|
|
31107
31483
|
if (!(type === 'fullName' && !customerInfo.fullNameTemp)) {
|
|
31108
|
-
|
|
31484
|
+
_context5.next = 7;
|
|
31109
31485
|
break;
|
|
31110
31486
|
}
|
|
31111
|
-
|
|
31487
|
+
_context5.next = 4;
|
|
31112
31488
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31113
|
-
case
|
|
31114
|
-
res =
|
|
31489
|
+
case 4:
|
|
31490
|
+
res = _context5.sent;
|
|
31115
31491
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31116
31492
|
fullNameTemp: res.data
|
|
31117
31493
|
}));
|
|
31118
|
-
return
|
|
31119
|
-
case
|
|
31494
|
+
return _context5.abrupt("return");
|
|
31495
|
+
case 7:
|
|
31120
31496
|
if (!(type === 'mobile' && !customerInfo.mobileTemp)) {
|
|
31121
|
-
|
|
31497
|
+
_context5.next = 13;
|
|
31122
31498
|
break;
|
|
31123
31499
|
}
|
|
31124
|
-
|
|
31500
|
+
_context5.next = 10;
|
|
31125
31501
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31126
|
-
case
|
|
31127
|
-
_res =
|
|
31502
|
+
case 10:
|
|
31503
|
+
_res = _context5.sent;
|
|
31128
31504
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31129
31505
|
mobileTemp: _res.data
|
|
31130
31506
|
}));
|
|
31131
|
-
return
|
|
31132
|
-
case
|
|
31507
|
+
return _context5.abrupt("return");
|
|
31508
|
+
case 13:
|
|
31133
31509
|
if (!(type === 'email' && !customerInfo.emailTemp)) {
|
|
31134
|
-
|
|
31510
|
+
_context5.next = 19;
|
|
31135
31511
|
break;
|
|
31136
31512
|
}
|
|
31137
|
-
|
|
31513
|
+
_context5.next = 16;
|
|
31138
31514
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31139
|
-
case
|
|
31140
|
-
_res2 =
|
|
31515
|
+
case 16:
|
|
31516
|
+
_res2 = _context5.sent;
|
|
31141
31517
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31142
31518
|
emailTemp: _res2.data
|
|
31143
31519
|
}));
|
|
31144
|
-
return
|
|
31145
|
-
case
|
|
31520
|
+
return _context5.abrupt("return");
|
|
31521
|
+
case 19:
|
|
31146
31522
|
if (!(type === 'address' && !customerInfo.addressTemp)) {
|
|
31147
|
-
|
|
31523
|
+
_context5.next = 25;
|
|
31148
31524
|
break;
|
|
31149
31525
|
}
|
|
31150
|
-
|
|
31526
|
+
_context5.next = 22;
|
|
31151
31527
|
return store$5.getCustomerItemInfo(domain, serverName, uniId, type);
|
|
31152
|
-
case
|
|
31153
|
-
_res3 =
|
|
31528
|
+
case 22:
|
|
31529
|
+
_res3 = _context5.sent;
|
|
31154
31530
|
setCustomerInfo(_objectSpread2(_objectSpread2(_objectSpread2({}, customerInfo), ci), {}, {
|
|
31155
31531
|
addressTemp: _res3.data
|
|
31156
31532
|
}));
|
|
31157
|
-
return
|
|
31158
|
-
case 24:
|
|
31159
|
-
setCustomerInfo(_objectSpread2(_objectSpread2({}, customerInfo), ci));
|
|
31533
|
+
return _context5.abrupt("return");
|
|
31160
31534
|
case 25:
|
|
31535
|
+
if (!(infoValue === MAINTAIN_INFO)) {
|
|
31536
|
+
_context5.next = 30;
|
|
31537
|
+
break;
|
|
31538
|
+
}
|
|
31539
|
+
if (!(type === 'fullName' && !customerInfo.fullNameTemp || type === 'mobile' && !customerInfo.mobileTemp || type === 'email' && !customerInfo.emailTemp || type === 'address' && !customerInfo.addressTemp)) {
|
|
31540
|
+
_context5.next = 30;
|
|
31541
|
+
break;
|
|
31542
|
+
}
|
|
31543
|
+
_context5.next = 29;
|
|
31544
|
+
return customerStorageInfo({
|
|
31545
|
+
encrypt: false
|
|
31546
|
+
}, ci, type);
|
|
31547
|
+
case 29:
|
|
31548
|
+
return _context5.abrupt("return");
|
|
31549
|
+
case 30:
|
|
31550
|
+
setCustomerInfo(_objectSpread2(_objectSpread2({}, customerInfo), ci));
|
|
31551
|
+
case 31:
|
|
31161
31552
|
case "end":
|
|
31162
|
-
return
|
|
31553
|
+
return _context5.stop();
|
|
31163
31554
|
}
|
|
31164
|
-
},
|
|
31555
|
+
}, _callee5);
|
|
31165
31556
|
}));
|
|
31166
|
-
return function changeCustomerInfo(
|
|
31167
|
-
return
|
|
31557
|
+
return function changeCustomerInfo(_x6, _x7) {
|
|
31558
|
+
return _ref5.apply(this, arguments);
|
|
31168
31559
|
};
|
|
31169
31560
|
}();
|
|
31170
31561
|
var handleCopy = function handleCopy(uniId) {
|
|
@@ -31174,18 +31565,59 @@
|
|
|
31174
31565
|
});
|
|
31175
31566
|
};
|
|
31176
31567
|
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>";
|
|
31568
|
+
var dropdownMenu = /*#__PURE__*/React__default['default'].createElement(cloudReactV2.CDropdown.Menu, {
|
|
31569
|
+
style: {
|
|
31570
|
+
width: 200
|
|
31571
|
+
},
|
|
31572
|
+
checkedId: infoValue,
|
|
31573
|
+
onClick: onInfoMenuClick
|
|
31574
|
+
}, INFO_LIST.map(function (item) {
|
|
31575
|
+
return /*#__PURE__*/React__default['default'].createElement(cloudReactV2.CDropdown.Item, {
|
|
31576
|
+
key: item.id,
|
|
31577
|
+
id: item.id
|
|
31578
|
+
}, item.label);
|
|
31579
|
+
}));
|
|
31580
|
+
var birthYear = customerInfo.birthday ? shuyunUtils.moment(customerInfo.birthday).format('YYYY/MM/DD').split('/')[0] : '';
|
|
31177
31581
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31582
|
+
className: "info-explain-container"
|
|
31583
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31584
|
+
className: "info-dropdown"
|
|
31585
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.CDropdown, {
|
|
31586
|
+
placement: "bottomLeft",
|
|
31587
|
+
overlay: dropdownMenu,
|
|
31588
|
+
trigger: ['click']
|
|
31589
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", null, ((_INFO_LIST$find = INFO_LIST.find(function (item) {
|
|
31590
|
+
return item.id === infoValue;
|
|
31591
|
+
})) === null || _INFO_LIST$find === void 0 ? void 0 : _INFO_LIST$find.label) || INFO_LIST[0].label), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31592
|
+
type: "down-solid"
|
|
31593
|
+
})))), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31594
|
+
className: "info-popover"
|
|
31595
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Popover, {
|
|
31596
|
+
size: "small",
|
|
31597
|
+
placement: "right",
|
|
31598
|
+
className: "info-popover",
|
|
31599
|
+
visible: showNotice,
|
|
31600
|
+
containerEle: document.querySelector('.info-popover'),
|
|
31601
|
+
title: "\u5546\u5BB6\u81EA\u4E3B\u7EF4\u62A4\u7684\u5BA2\u6237\u4FE1\u606F",
|
|
31602
|
+
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",
|
|
31603
|
+
confirmText: "\u6211\u77E5\u9053\u4E86",
|
|
31604
|
+
onVisibleChange: onPopoverChange,
|
|
31605
|
+
showConfirmBtn: true
|
|
31606
|
+
})), infoValue === MAINTAIN_INFO && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
31607
|
+
className: "info-edit",
|
|
31608
|
+
onClick: openCustomerInfoEdit
|
|
31609
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
31610
|
+
type: "edit-2"
|
|
31611
|
+
}), "\u7F16\u8F91"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31612
|
+
className: "info-explain",
|
|
31613
|
+
onClick: openInfoExplainModal
|
|
31614
|
+
}, "\u4E0D\u540C\u57FA\u672C\u4FE1\u606F\u7684\u533A\u522B\uFF1F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31178
31615
|
className: "uniId-wrap"
|
|
31179
31616
|
}, /*#__PURE__*/React__default['default'].createElement("section", {
|
|
31180
31617
|
className: "uniId-wrap-1"
|
|
31181
31618
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
31182
31619
|
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", {
|
|
31620
|
+
}, "\u5168\u6E20\u9053\u5BA2\u6237ID\uFF1A")), /*#__PURE__*/React__default['default'].createElement("section", {
|
|
31189
31621
|
className: "uniId-wrap-2"
|
|
31190
31622
|
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
31191
31623
|
content: "\u53CC\u51FB\u53EF\u590D\u5236"
|
|
@@ -31201,6 +31633,7 @@
|
|
|
31201
31633
|
}, customerInfo.customerType ? customerStatusMap[customerInfo.customerType] : ''))), visible && /*#__PURE__*/React__default['default'].createElement(CustomerInfoEdit, {
|
|
31202
31634
|
visible: visible,
|
|
31203
31635
|
customerInfo: editInfoCustomer,
|
|
31636
|
+
customerInfoOrigin: customerInfoOrigin,
|
|
31204
31637
|
onClose: closeCustomerInfoEdit
|
|
31205
31638
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31206
31639
|
className: "customer-info-wrap"
|
|
@@ -31226,7 +31659,7 @@
|
|
|
31226
31659
|
className: "customer-info"
|
|
31227
31660
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6027\u522B\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31228
31661
|
className: "customer-info-text"
|
|
31229
|
-
}, renderInfoValue(genderMap[customerInfo.gender]))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31662
|
+
}, renderInfoValue(genderMap$1[customerInfo.gender]))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31230
31663
|
className: "customer-info"
|
|
31231
31664
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6700\u65B0\u624B\u673A\u53F7\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31232
31665
|
className: "customer-info-text customer-info-text-special"
|
|
@@ -31252,7 +31685,7 @@
|
|
|
31252
31685
|
className: "customer-info"
|
|
31253
31686
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5E74\u9F84\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31254
31687
|
className: "customer-info-text"
|
|
31255
|
-
},
|
|
31688
|
+
}, birthYear ? "".concat(new Date().getFullYear() - Number(birthYear), "\u5C81") : '-')), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31256
31689
|
className: "customer-info"
|
|
31257
31690
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u90AE\u7BB1\uFF1A"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31258
31691
|
className: "customer-info-text"
|
|
@@ -34592,8 +35025,8 @@
|
|
|
34592
35025
|
cloudReactV2.Message.error("关键字不能为空");
|
|
34593
35026
|
return;
|
|
34594
35027
|
}
|
|
34595
|
-
if (!/^[
|
|
34596
|
-
cloudReactV2.Message.error("只能输入1-20
|
|
35028
|
+
if (!/^[\u4e00-\u9fa5\w-.();]+$/g.test(keywords) || (keywords === null || keywords === void 0 ? void 0 : keywords.length) > 20) {
|
|
35029
|
+
cloudReactV2.Message.error("只能输入1-20位中文、英文、数字、中文括号、中文分号、.(点号)、_(下划线)、-(减号) 。");
|
|
34597
35030
|
return;
|
|
34598
35031
|
}
|
|
34599
35032
|
if (keywordsList.find(function (item) {
|
|
@@ -35720,8 +36153,8 @@
|
|
|
35720
36153
|
len: 20,
|
|
35721
36154
|
message: '最长只能输入20个字符'
|
|
35722
36155
|
}, {
|
|
35723
|
-
pattern: flag ? /^[\u4e00-\u9fa5\w
|
|
35724
|
-
message: "
|
|
36156
|
+
pattern: flag ? /^[\u4e00-\u9fa5\w-.();]+$/g : /(^$)|^[\u4e00-\u9fa5\w-.();]+$/g,
|
|
36157
|
+
message: "只能输入1-20位中文、英文、数字、中文括号、中文分号、.(点号)、_(下划线)、-(减号) 。"
|
|
35725
36158
|
}],
|
|
35726
36159
|
initValue: tagValues[tag.tagId]
|
|
35727
36160
|
}))));
|
|
@@ -37688,6 +38121,7 @@
|
|
|
37688
38121
|
var selectedShopTemp = _this.state.selectedShopTemp;
|
|
37689
38122
|
if (type === 'rest') {
|
|
37690
38123
|
_this.setState({
|
|
38124
|
+
orderId: '',
|
|
37691
38125
|
selectedShop: JSON.parse(JSON.stringify(selectedShopTemp))
|
|
37692
38126
|
});
|
|
37693
38127
|
}
|
|
@@ -37721,7 +38155,10 @@
|
|
|
37721
38155
|
searchLoading: true,
|
|
37722
38156
|
isSearchEmpty: true
|
|
37723
38157
|
});
|
|
37724
|
-
|
|
38158
|
+
setTimeout(function () {
|
|
38159
|
+
_this.query.orderId = _this.state.orderId;
|
|
38160
|
+
_this.ajaxData();
|
|
38161
|
+
});
|
|
37725
38162
|
};
|
|
37726
38163
|
_this.onChange = function (v) {
|
|
37727
38164
|
// if (!v || !v.length) {
|
|
@@ -37735,6 +38172,11 @@
|
|
|
37735
38172
|
selectedShop: v
|
|
37736
38173
|
});
|
|
37737
38174
|
};
|
|
38175
|
+
_this.onOrderChange = function (e) {
|
|
38176
|
+
_this.setState({
|
|
38177
|
+
orderId: e.target.value
|
|
38178
|
+
});
|
|
38179
|
+
};
|
|
37738
38180
|
_this.handleOrderColumnChange = function (value) {
|
|
37739
38181
|
_this.setState({
|
|
37740
38182
|
orderColumnTemp: value
|
|
@@ -37777,7 +38219,8 @@
|
|
|
37777
38219
|
tableData: [],
|
|
37778
38220
|
orderColumn: getUserBehavior().orderColumn,
|
|
37779
38221
|
orderColumnTemp: getUserBehavior().orderColumn,
|
|
37780
|
-
isBigScreen: false
|
|
38222
|
+
isBigScreen: false,
|
|
38223
|
+
orderId: ''
|
|
37781
38224
|
};
|
|
37782
38225
|
return _this;
|
|
37783
38226
|
}
|
|
@@ -38059,6 +38502,26 @@
|
|
|
38059
38502
|
showSearch: {
|
|
38060
38503
|
filter: this.filter
|
|
38061
38504
|
}
|
|
38505
|
+
}), /*#__PURE__*/React__default['default'].createElement("label", {
|
|
38506
|
+
className: "title-label-require",
|
|
38507
|
+
style: {
|
|
38508
|
+
marginLeft: 16
|
|
38509
|
+
}
|
|
38510
|
+
}, "\u8BA2\u5355\u53F7", /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Tooltip, {
|
|
38511
|
+
content: '默认基于客户近两年的订单数据筛选订单。',
|
|
38512
|
+
placement: "top"
|
|
38513
|
+
}, /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Icon, {
|
|
38514
|
+
type: "question-circle",
|
|
38515
|
+
style: {
|
|
38516
|
+
margin: "0 2px",
|
|
38517
|
+
fontSize: "14px",
|
|
38518
|
+
color: "#0055CC",
|
|
38519
|
+
cursor: "pointer"
|
|
38520
|
+
}
|
|
38521
|
+
}), "\uFF1A")), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Input, {
|
|
38522
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7",
|
|
38523
|
+
value: this.state.orderId,
|
|
38524
|
+
onChange: this.onOrderChange
|
|
38062
38525
|
}), /*#__PURE__*/React__default['default'].createElement(cloudReactV2.Button, {
|
|
38063
38526
|
type: "primary",
|
|
38064
38527
|
onClick: function onClick() {
|
|
@@ -146116,7 +146579,7 @@
|
|
|
146116
146579
|
}
|
|
146117
146580
|
// 检验当前运行环境
|
|
146118
146581
|
if (typeof window === 'undefined') {
|
|
146119
|
-
console.warn('cloud-business@0.1.120-
|
|
146582
|
+
console.warn('cloud-business@0.1.120-4 仅支持在浏览器环境进行使用!');
|
|
146120
146583
|
}
|
|
146121
146584
|
var bodys = document.getElementsByTagName('body')[0];
|
|
146122
146585
|
var colors = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -146126,7 +146589,7 @@
|
|
|
146126
146589
|
bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
|
|
146127
146590
|
}
|
|
146128
146591
|
}
|
|
146129
|
-
var version = '0.1.120-
|
|
146592
|
+
var version = '0.1.120-4';
|
|
146130
146593
|
|
|
146131
146594
|
exports.AreaSelector = AreaSelector;
|
|
146132
146595
|
exports.AreaSelectorNew = AreaSelector$1;
|