@kmkf-fe-packages/services-components 0.24.1 → 0.24.2-beta.0

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.
Files changed (38) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/components/BS/BsLogistics/index.d.ts +3 -2
  3. package/dist/esm/components/BS/BsLogistics/index.js +6 -0
  4. package/dist/esm/components/BS/BsReissue/index.d.ts +9 -9
  5. package/dist/esm/components/BS/BsReissue/index.js +64 -34
  6. package/dist/esm/components/BS/BsSystemOrder/index.js +7 -0
  7. package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
  8. package/dist/esm/components/BS/common/BsMemo.js +16 -15
  9. package/dist/esm/components/BS/common/BsType.d.ts +4 -4
  10. package/dist/esm/components/BS/common/BsType.js +14 -13
  11. package/dist/esm/components/BS/common/expressCode.js +3 -0
  12. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  13. package/dist/esm/components/Common/index.d.ts +5 -12
  14. package/dist/esm/components/Common/index.js +413 -332
  15. package/dist/esm/components/CommonHeaderGood/index.d.ts +27 -0
  16. package/dist/esm/components/CommonHeaderGood/index.js +187 -0
  17. package/dist/esm/components/CompletedUser/index.js +1 -1
  18. package/dist/esm/components/EItemEnCode/index.js +3 -2
  19. package/dist/esm/components/FlowMarkSelect/index.js +3 -2
  20. package/dist/esm/components/FlowStatusSelect/index.js +1 -0
  21. package/dist/esm/components/FlowTag/index.js +1 -1
  22. package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +40 -0
  23. package/dist/esm/components/FlowWorkOrderStatus/index.js +143 -0
  24. package/dist/esm/components/Handler/index.js +1 -1
  25. package/dist/esm/components/JST/JstSendGood/index.js +6 -0
  26. package/dist/esm/components/NodeInput/index.d.ts +24 -0
  27. package/dist/esm/components/NodeInput/index.js +58 -0
  28. package/dist/esm/components/PlatForm/index.js +1 -1
  29. package/dist/esm/components/PostIng/index.js +7 -2
  30. package/dist/esm/components/ShopInput/index.js +1 -1
  31. package/dist/esm/components/WDT/WdtGoods/index.d.ts +33 -0
  32. package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
  33. package/dist/esm/factory.d.ts +2 -2
  34. package/dist/esm/factory.js +30 -1
  35. package/dist/esm/index.d.ts +4 -1
  36. package/dist/esm/index.js +3 -0
  37. package/dist/esm/type.d.ts +1 -1
  38. package/package.json +4 -4
@@ -8,10 +8,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from "antd";
12
- import React, { useState, useMemo } from "react";
13
- import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
14
- import { CopyToClipboard } from "react-copy-to-clipboard";
11
+ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from 'antd';
12
+ import React, { useState, useMemo } from 'react';
13
+ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { CopyToClipboard } from 'react-copy-to-clipboard';
15
15
  import styles from "./index.module.less";
16
16
  import defaultImg from "./img/default-img.png";
17
17
  export var getFormItem = function getFormItem(_ref) {
@@ -31,7 +31,7 @@ export var getFormItem = function getFormItem(_ref) {
31
31
  return /*#__PURE__*/React.createElement("div", {
32
32
  className: "form-item--wrap",
33
33
  style: {
34
- position: "relative"
34
+ position: 'relative'
35
35
  }
36
36
  }, /*#__PURE__*/React.createElement(Form.Item, {
37
37
  name: name,
@@ -44,60 +44,44 @@ export var getFormItem = function getFormItem(_ref) {
44
44
  export var showImage = function showImage(_ref2) {
45
45
  var item = _ref2.item,
46
46
  type = _ref2.type,
47
- index = _ref2.index,
48
- showHeader = _ref2.showHeader;
49
- var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
47
+ index = _ref2.index;
48
+ var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
50
49
  return /*#__PURE__*/React.createElement("div", {
51
50
  className: styles.goodImgBox,
52
51
  key: index
53
- }, type === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
52
+ }, (item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/React.createElement("a", {
54
53
  target: "_blank",
55
- href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : 'javascript:void(0);'
54
+ href: "https://item.taobao.com/item.htm?id=".concat(item.numIid)
56
55
  }, /*#__PURE__*/React.createElement("img", {
57
56
  style: {
58
- width: "40px",
59
- height: "40px",
60
- objectFit: "contain"
57
+ width: '40px',
58
+ height: '40px',
59
+ objectFit: 'contain'
61
60
  },
62
61
  src: picUrl
63
62
  })) : /*#__PURE__*/React.createElement("img", {
64
63
  style: {
65
- width: "40px",
66
- height: "40px",
67
- objectFit: "contain"
64
+ width: '40px',
65
+ height: '40px',
66
+ objectFit: 'contain'
68
67
  },
69
68
  src: picUrl
70
69
  }), /*#__PURE__*/React.createElement("div", {
71
70
  className: styles.options
72
- }, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
73
- title: "商品id",
71
+ }, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
72
+ title: '商品id',
74
73
  text: item.numIid
75
- }), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes("title") && /*#__PURE__*/React.createElement(TextTool, {
76
- title: "商品名称",
77
- text: item.title
78
- }), showHeader.includes("outerId") && /*#__PURE__*/React.createElement(TextTool, {
79
- title: "商品编码",
74
+ }), type === 'itemCode' && /*#__PURE__*/React.createElement(TextTool, {
75
+ title: '商品编码',
80
76
  text: item.outerId
81
- }), showHeader.includes("numIid") && /*#__PURE__*/React.createElement(TextTool, {
82
- title: "商品id",
83
- text: item.numIid
84
- }), showHeader.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
85
- title: "SKU ID",
86
- text: item.skuId
87
- }), showHeader.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
88
- title: "SKU 编码",
89
- text: item.outerSkuId
90
- }), showHeader.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
91
- title: "SKU 信息",
92
- text: item.propertiesName
93
- })), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
94
- title: "供应商编码",
77
+ }), (type === 'itemThird' || type === 'jstItemThird') && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
78
+ title: '供应商编码',
95
79
  text: item.itemId || item.supplierItemOuterId
96
- }), (type === "itemThird" || type === "jstItemThird") && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
97
- title: "供应商名称",
80
+ }), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
81
+ title: '供应商名称',
98
82
  text: item.supplierName
99
- }), type !== "itemCode" && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
100
- title: "规格",
83
+ }), item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
84
+ title: '规格',
101
85
  text: item.propertiesName
102
86
  })));
103
87
  };
@@ -110,9 +94,9 @@ var TextTool = function TextTool(_ref3) {
110
94
  title: text
111
95
  }, /*#__PURE__*/React.createElement("div", {
112
96
  style: {
113
- overflow: "hidden",
114
- whiteSpace: "nowrap",
115
- textOverflow: "ellipsis"
97
+ overflow: 'hidden',
98
+ whiteSpace: 'nowrap',
99
+ textOverflow: 'ellipsis'
116
100
  }
117
101
  }, title, ":", text));
118
102
  };
@@ -121,9 +105,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
121
105
  var total = _ref4.total,
122
106
  _ref4$allImage = _ref4.allImage,
123
107
  allImage = _ref4$allImage === void 0 ? [] : _ref4$allImage,
124
- type = _ref4.type,
125
- _ref4$showHeader = _ref4.showHeader,
126
- showHeader = _ref4$showHeader === void 0 ? [] : _ref4$showHeader;
108
+ type = _ref4.type;
127
109
  var _useState = useState(false),
128
110
  _useState2 = _slicedToArray(_useState, 2),
129
111
  visible = _useState2[0],
@@ -142,62 +124,47 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
142
124
  title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
143
125
  }, /*#__PURE__*/React.createElement("div", {
144
126
  style: {
145
- display: "flex",
146
- flexWrap: "wrap"
127
+ display: 'flex',
128
+ flexWrap: 'wrap'
147
129
  }
148
130
  }, allImage.map(function (i, index) {
149
131
  return /*#__PURE__*/React.createElement("div", {
150
132
  style: {
151
- width: "50%"
133
+ width: '50%'
152
134
  },
153
135
  key: index
154
- }, type === "itemCode" && !showHeader.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
155
- href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) === "taobao" && i.numIid ? "https://item.taobao.com/item.htm?id=".concat(i.numIid) : 'javascript:void(0);'),
136
+ }, /*#__PURE__*/React.createElement("a", {
137
+ href: i.link,
156
138
  target: "__blank",
157
139
  style: {
158
- marginRight: "12px",
159
- marginTop: "8px",
160
- padding: "2px",
161
- border: "1px dashed #ccc",
162
- display: "inline-block"
140
+ marginRight: '12px',
141
+ marginTop: '8px',
142
+ padding: '2px',
143
+ border: '1px dashed #ccc',
144
+ display: 'inline-block'
163
145
  }
164
146
  }, /*#__PURE__*/React.createElement("img", {
165
147
  alt: "",
166
148
  src: i.picUrl || defaultImg,
167
149
  style: {
168
- width: "72px",
169
- height: "72px",
170
- objectFit: "contain"
150
+ width: '72px',
151
+ height: '72px',
152
+ objectFit: 'contain'
171
153
  }
172
- })), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
173
- title: "商品id",
154
+ })), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
155
+ title: '商品id',
174
156
  text: i.numIid
175
- }), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes("title") && /*#__PURE__*/React.createElement(TextTool, {
176
- title: "商品名称",
177
- text: i.title
178
- }), showHeader.includes("outerId") && /*#__PURE__*/React.createElement(TextTool, {
179
- title: "商品编码",
157
+ }), type === 'itemCode' && /*#__PURE__*/React.createElement(TextTool, {
158
+ title: '商品编码',
180
159
  text: i.outerId
181
- }), showHeader.includes("numIid") && /*#__PURE__*/React.createElement(TextTool, {
182
- title: "商品id",
183
- text: i.numIid
184
- }), showHeader.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
185
- title: "SKU ID",
186
- text: i.skuId
187
- }), showHeader.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
188
- title: "SKU 编码",
189
- text: i.outerSkuId
190
- }), showHeader.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
191
- title: "SKU 信息",
192
- text: i.propertiesName
193
- })), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
194
- title: "供应商编码",
160
+ }), (type === 'itemThird' || type === 'jstItemThird') && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
161
+ title: '供应商编码',
195
162
  text: i.itemId || i.supplierItemOuterId
196
- }), (type === "itemThird" || type === "jstItemThird") && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
197
- title: "供应商名称",
163
+ }), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
164
+ title: '供应商名称',
198
165
  text: i.supplierName
199
- }), type !== "itemCode" && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
200
- title: "规格",
166
+ }), i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
167
+ title: '规格',
201
168
  text: i.propertiesName
202
169
  })));
203
170
  }))));
@@ -207,33 +174,29 @@ export var GoodImage = function GoodImage(_ref5) {
207
174
  var _list$slice;
208
175
  var list = _ref5.list,
209
176
  _ref5$type = _ref5.type,
210
- type = _ref5$type === void 0 ? "" : _ref5$type,
211
- _ref5$showHeader = _ref5.showHeader,
212
- showHeader = _ref5$showHeader === void 0 ? [] : _ref5$showHeader;
177
+ type = _ref5$type === void 0 ? '' : _ref5$type;
213
178
  var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
214
179
  var initShowTotal = 3;
215
180
  return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
216
181
  style: {
217
- display: type === "itemSelect" ? "flex" : "block"
182
+ display: type === 'itemSelect' ? 'flex' : 'block'
218
183
  }
219
184
  }, list === null || list === void 0 ? void 0 : (_list$slice = list.slice(0, initShowTotal)) === null || _list$slice === void 0 ? void 0 : _list$slice.map(function (item, index) {
220
185
  return showImage({
221
186
  item: item,
222
187
  type: type,
223
- index: index,
224
- showHeader: showHeader
188
+ index: index
225
189
  });
226
190
  }), total > initShowTotal && /*#__PURE__*/React.createElement(ShowTotalImage, {
227
191
  total: total,
228
192
  allImage: list,
229
- showHeader: showHeader,
230
193
  type: type
231
194
  })) : null;
232
195
  };
233
196
  var content = function content(item, index) {
234
197
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
235
198
  style: {
236
- textAlign: "center"
199
+ textAlign: 'center'
237
200
  }
238
201
  }, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
239
202
  return /*#__PURE__*/React.createElement("div", {
@@ -260,17 +223,17 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
260
223
  }, /*#__PURE__*/React.createElement("span", {
261
224
  key: index,
262
225
  style: {
263
- color: "#1890ff",
264
- cursor: "pointer"
226
+ color: '#1890ff',
227
+ cursor: 'pointer'
265
228
  }
266
- }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join("/") : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join("/") : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
229
+ }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join('/') : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join('/') : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
267
230
  }) : null;
268
231
  };
269
232
  export var BsExpressRender = function BsExpressRender(_ref7) {
270
233
  var _ref7$list = _ref7.list,
271
234
  list = _ref7$list === void 0 ? [] : _ref7$list,
272
235
  _ref7$showField = _ref7.showField,
273
- showField = _ref7$showField === void 0 ? "" : _ref7$showField;
236
+ showField = _ref7$showField === void 0 ? '' : _ref7$showField;
274
237
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
275
238
  var logisticsCompany = item.logisticsCompany;
276
239
  var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
@@ -282,10 +245,10 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
282
245
  }, /*#__PURE__*/React.createElement("span", {
283
246
  key: index,
284
247
  style: {
285
- color: "#1890ff",
286
- cursor: "pointer"
248
+ color: '#1890ff',
249
+ cursor: 'pointer'
287
250
  }
288
- }, "\u5305\u88F9", ":")), showField === "company" ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === "code" ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? item.logisticsCode : null) : null));
251
+ }, "\u5305\u88F9", ":")), showField === 'company' ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === 'code' ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? item.logisticsCode : null) : null));
289
252
  }) : null;
290
253
  };
291
254
  export var CommonOrderContent = function CommonOrderContent(_ref8) {
@@ -298,7 +261,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
298
261
  var orderContent = function orderContent(item, index) {
299
262
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
300
263
  style: {
301
- textAlign: "center"
264
+ textAlign: 'center'
302
265
  }
303
266
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
304
267
  };
@@ -306,7 +269,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
306
269
  var _options$find;
307
270
  var color = ((_options$find = options.find(function (it) {
308
271
  return item[valueKey] === it.value;
309
- })) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
272
+ })) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
310
273
  var currentOption = options.find(function (option) {
311
274
  return item[valueKey] === option.value;
312
275
  });
@@ -318,14 +281,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
318
281
  }, /*#__PURE__*/React.createElement("span", {
319
282
  key: index,
320
283
  style: {
321
- color: "#1890ff",
322
- cursor: "pointer"
284
+ color: '#1890ff',
285
+ cursor: 'pointer'
323
286
  }
324
287
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
325
288
  style: {
326
289
  color: color
327
290
  }
328
- }, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== "成功" && /*#__PURE__*/React.createElement("div", {
291
+ }, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== '成功' && /*#__PURE__*/React.createElement("div", {
329
292
  className: "c-red"
330
293
  }, item.reason));
331
294
  }) : null;
@@ -337,22 +300,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
337
300
  index = _ref9.index;
338
301
  var picUrl = item.picUrl || defaultImg;
339
302
  var keyMap = {
340
- name: "bs名称",
341
- code: "bs编码",
342
- skuId: "bssku编码",
343
- money: "bs实付金额",
344
- number: "bs数量",
345
- share: "bs分摊价",
346
- type: "bs赠品类型"
303
+ name: 'bs名称',
304
+ code: 'bs编码',
305
+ skuId: 'bssku编码',
306
+ money: 'bs实付金额',
307
+ number: 'bs数量',
308
+ share: 'bs分摊价',
309
+ type: 'bs赠品类型'
347
310
  };
348
311
  return /*#__PURE__*/React.createElement("div", {
349
312
  className: styles.goodImgBox,
350
313
  key: index
351
314
  }, /*#__PURE__*/React.createElement("img", {
352
315
  style: {
353
- width: "40px",
354
- height: "40px",
355
- objectFit: "contain"
316
+ width: '40px',
317
+ height: '40px',
318
+ objectFit: 'contain'
356
319
  },
357
320
  src: picUrl
358
321
  }), /*#__PURE__*/React.createElement("div", {
@@ -374,11 +337,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
374
337
  return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
375
338
  list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
376
339
  showHeader: showHeader,
377
- text: "退回"
340
+ text: '退回'
378
341
  }), BsGoodsTable({
379
342
  list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
380
343
  showHeader: showHeader,
381
- text: "换出"
344
+ text: '换出'
382
345
  }));
383
346
  }));
384
347
  };
@@ -391,171 +354,276 @@ export var BsGoodPic = function BsGoodPic(list) {
391
354
  });
392
355
  });
393
356
  };
394
- var getTable = function getTable(GOODS_INFO_COLUMNS) {
395
- return function (_ref11) {
396
- var list = _ref11.list,
397
- showHeader = _ref11.showHeader,
398
- _ref11$text = _ref11.text,
399
- text = _ref11$text === void 0 ? "" : _ref11$text;
400
- var newColumns = useMemo(function () {
401
- var columnList = [{
402
- dataIndex: "",
403
- title: "序号",
404
- align: "center",
405
- ellipsis: true,
406
- width: 50,
407
- render: function render(val, record, index) {
408
- return /*#__PURE__*/React.createElement("span", null, index + 1);
409
- }
410
- }].concat(_toConsumableArray(GOODS_INFO_COLUMNS(text).filter(function (t) {
411
- return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
412
- })));
413
- return columnList;
414
- }, [showHeader, list]);
415
- return /*#__PURE__*/React.createElement(Table, {
416
- columns: newColumns,
417
- dataSource: list,
418
- rowKey: "uuid",
419
- size: "small",
420
- pagination: false,
421
- scroll: {
422
- x: "100%"
423
- },
424
- locale: {
425
- emptyText: "暂无数据"
357
+ export var BsGoodsTable = function BsGoodsTable(_ref11) {
358
+ var list = _ref11.list,
359
+ showHeader = _ref11.showHeader,
360
+ _ref11$text = _ref11.text,
361
+ text = _ref11$text === void 0 ? '' : _ref11$text,
362
+ type = _ref11.type;
363
+ //商品信息
364
+
365
+ var COLUMNS_MAP = function COLUMNS_MAP() {
366
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
367
+ return function (type) {
368
+ var columns = [];
369
+ switch (type) {
370
+ case 'ITEM_ENCODE':
371
+ columns = [{
372
+ dataIndex: "title",
373
+ title: "商品名称",
374
+ align: "center",
375
+ ellipsis: true,
376
+ width: 200
377
+ }, {
378
+ dataIndex: "outerId",
379
+ title: "商品编码",
380
+ align: "center",
381
+ ellipsis: true,
382
+ width: 140
383
+ }, {
384
+ dataIndex: "picUrl",
385
+ title: "图片",
386
+ align: "center",
387
+ ellipsis: true,
388
+ width: 100,
389
+ render: function render(val) {
390
+ return /*#__PURE__*/React.createElement(Image, {
391
+ width: 60,
392
+ src: val
393
+ });
394
+ }
395
+ }, {
396
+ dataIndex: "numIid",
397
+ title: "商品id",
398
+ align: "center",
399
+ ellipsis: true,
400
+ width: 200
401
+ }, {
402
+ dataIndex: "skuId",
403
+ title: "SKU ID",
404
+ align: "center",
405
+ ellipsis: true,
406
+ width: 200
407
+ }, {
408
+ dataIndex: "outerSkuId",
409
+ title: "SKU 编码",
410
+ align: "center",
411
+ ellipsis: true,
412
+ width: 100
413
+ }, {
414
+ dataIndex: "propertiesName",
415
+ title: "SKU 信息",
416
+ align: "center",
417
+ ellipsis: true,
418
+ width: 200
419
+ }];
420
+ break;
421
+ case 'WDT_REISSUE_GOODS':
422
+ case 'WDT_GOODS':
423
+ columns = [{
424
+ dataIndex: 'goodId',
425
+ title: "SPUID",
426
+ align: 'center',
427
+ ellipsis: true,
428
+ width: 70
429
+ }, {
430
+ dataIndex: 'goodNo',
431
+ title: "SPU\u5546\u54C1\u7F16\u7801",
432
+ align: 'center',
433
+ ellipsis: true,
434
+ width: 100
435
+ }, {
436
+ dataIndex: 'goodName',
437
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
438
+ align: 'center',
439
+ ellipsis: true,
440
+ width: 250
441
+ }, {
442
+ dataIndex: 'specId',
443
+ title: "".concat(text, "SKUID"),
444
+ align: 'center',
445
+ ellipsis: true,
446
+ width: 100
447
+ }, {
448
+ dataIndex: 'specNo',
449
+ title: "".concat(text, "sku\u7F16\u7801"),
450
+ align: 'center',
451
+ ellipsis: true,
452
+ width: 100
453
+ }, {
454
+ dataIndex: 'specName',
455
+ title: "".concat(text, "sku\u540D\u79F0"),
456
+ align: 'center',
457
+ ellipsis: true,
458
+ width: 250
459
+ }, {
460
+ dataIndex: 'imgUrl',
461
+ title: "\u56FE\u7247",
462
+ align: 'center',
463
+ ellipsis: true,
464
+ width: 100,
465
+ render: function render(val) {
466
+ return /*#__PURE__*/React.createElement(Image, {
467
+ width: 60,
468
+ src: val
469
+ });
470
+ }
471
+ }, {
472
+ dataIndex: 'orderPrice',
473
+ title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
474
+ align: 'center',
475
+ ellipsis: true,
476
+ width: 100
477
+ }, {
478
+ dataIndex: 'num',
479
+ title: "".concat(text, "\u6570\u91CF"),
480
+ align: 'center',
481
+ ellipsis: true,
482
+ width: 100
483
+ },
484
+ // {
485
+ // dataIndex: 'actualNum',
486
+ // title: `${text}实发数量`,
487
+ // align: 'center',
488
+ // ellipsis: true,
489
+ // width: 100,
490
+ // },
491
+ {
492
+ dataIndex: 'sharePrice',
493
+ title: "\u5206\u644A\u4EF7",
494
+ align: 'center',
495
+ ellipsis: true,
496
+ width: 70
497
+ }, {
498
+ dataIndex: 'giftType',
499
+ title: "\u8D60\u54C1\u65B9\u5F0F",
500
+ align: 'center',
501
+ ellipsis: true,
502
+ width: 100,
503
+ render: function render(val) {
504
+ var giftTypeMap = {
505
+ 0: '非赠品',
506
+ 1: '自动赠送',
507
+ 2: '手工赠送',
508
+ 3: '回购自动送赠品',
509
+ 4: '前N有礼送赠品',
510
+ 6: '天猫优仓赠品',
511
+ 7: '淘宝CRM会员送赠'
512
+ };
513
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
514
+ }
515
+ }];
516
+ break;
517
+ default:
518
+ columns = [{
519
+ dataIndex: 'mark',
520
+ title: "\u5546\u54C1\u6807\u8BB0",
521
+ align: 'center',
522
+ ellipsis: true,
523
+ width: 100
524
+ }, {
525
+ dataIndex: 'skuName',
526
+ title: "".concat(text, "sku\u540D\u79F0"),
527
+ align: 'center',
528
+ ellipsis: true,
529
+ width: 200
530
+ }, {
531
+ dataIndex: 'sku',
532
+ title: "".concat(text, "sku\u7F16\u7801"),
533
+ align: 'center',
534
+ ellipsis: true,
535
+ width: 100
536
+ }, {
537
+ dataIndex: 'name',
538
+ title: "".concat(text, "\u540D\u79F0"),
539
+ align: 'center',
540
+ ellipsis: true,
541
+ width: 200
542
+ }, {
543
+ dataIndex: 'pic',
544
+ title: "\u56FE\u7247",
545
+ align: 'center',
546
+ ellipsis: true,
547
+ width: 100,
548
+ render: function render(val) {
549
+ return /*#__PURE__*/React.createElement(Image, {
550
+ width: 60,
551
+ src: val
552
+ });
553
+ }
554
+ }, {
555
+ dataIndex: 'code',
556
+ title: "".concat(text, "\u7F16\u7801"),
557
+ align: 'center',
558
+ ellipsis: true,
559
+ width: 100
560
+ }, {
561
+ dataIndex: 'money',
562
+ title: "\u5B9E\u4ED8\u91D1\u989D",
563
+ align: 'center',
564
+ ellipsis: true,
565
+ width: 100
566
+ }, {
567
+ dataIndex: 'number',
568
+ title: "".concat(text, "\u6570\u91CF"),
569
+ align: 'center',
570
+ ellipsis: true,
571
+ width: 100
572
+ }, {
573
+ dataIndex: 'share',
574
+ title: "\u5206\u644A\u4EF7",
575
+ align: 'center',
576
+ ellipsis: true,
577
+ width: 70
578
+ }, {
579
+ dataIndex: 'type',
580
+ title: "\u8D60\u54C1\u7C7B\u578B",
581
+ align: 'center',
582
+ ellipsis: true,
583
+ width: 100
584
+ }];
426
585
  }
427
- });
586
+ return columns;
587
+ };
428
588
  };
429
- };
430
- export var BsGoodsTable = getTable(function () {
431
- var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
432
- return [{
433
- dataIndex: "mark",
434
- title: "\u5546\u54C1\u6807\u8BB0",
435
- align: "center",
436
- ellipsis: true,
437
- width: 100
438
- }, {
439
- dataIndex: "skuName",
440
- title: "".concat(text, "sku\u540D\u79F0"),
441
- align: "center",
442
- ellipsis: true,
443
- width: 200
444
- }, {
445
- dataIndex: "sku",
446
- title: "".concat(text, "sku\u7F16\u7801"),
447
- align: "center",
448
- ellipsis: true,
449
- width: 100
450
- }, {
451
- dataIndex: "name",
452
- title: "".concat(text, "\u540D\u79F0"),
453
- align: "center",
454
- ellipsis: true,
455
- width: 200
456
- }, {
457
- dataIndex: "pic",
458
- title: "\u56FE\u7247",
459
- align: "center",
460
- ellipsis: true,
461
- width: 100,
462
- render: function render(val) {
463
- return /*#__PURE__*/React.createElement(Image, {
464
- width: 60,
465
- src: val
466
- });
467
- }
468
- }, {
469
- dataIndex: "code",
470
- title: "".concat(text, "\u7F16\u7801"),
471
- align: "center",
472
- ellipsis: true,
473
- width: 100
474
- }, {
475
- dataIndex: "money",
476
- title: "\u5B9E\u4ED8\u91D1\u989D",
477
- align: "center",
478
- ellipsis: true,
479
- width: 100
480
- }, {
481
- dataIndex: "number",
482
- title: "".concat(text, "\u6570\u91CF"),
483
- align: "center",
484
- ellipsis: true,
485
- width: 100
486
- }, {
487
- dataIndex: "share",
488
- title: "\u5206\u644A\u4EF7",
489
- align: "center",
490
- ellipsis: true,
491
- width: 70
492
- }, {
493
- dataIndex: "type",
494
- title: "\u8D60\u54C1\u7C7B\u578B",
495
- align: "center",
496
- ellipsis: true,
497
- width: 100
498
- }];
499
- });
500
- export var TBGoodTable = getTable(function () {
501
- return [{
502
- dataIndex: "title",
503
- title: "商品名称",
504
- align: "center",
505
- ellipsis: true,
506
- width: 200
507
- }, {
508
- dataIndex: "outerId",
509
- title: "商品编码",
510
- align: "center",
511
- ellipsis: true,
512
- width: 140
513
- }, {
514
- dataIndex: "picUrl",
515
- title: "图片",
516
- align: "center",
517
- ellipsis: true,
518
- width: 100,
519
- render: function render(val) {
520
- return /*#__PURE__*/React.createElement(Image, {
521
- width: 60,
522
- src: val
523
- });
589
+ //商品信息
590
+ var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
591
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
592
+ var COLUMNS_INFO = COLUMNS_MAP(text);
593
+ return COLUMNS_INFO(type);
594
+ };
595
+ // const GOODS_INFO_COLUMNS = (text = '') => {
596
+ // return
597
+ // }
598
+ var newColumns = useMemo(function () {
599
+ var columnList = [{
600
+ dataIndex: '',
601
+ title: '序号',
602
+ align: 'center',
603
+ ellipsis: true,
604
+ width: 50,
605
+ render: function render(val, record, index) {
606
+ return /*#__PURE__*/React.createElement("span", null, index + 1);
607
+ }
608
+ }].concat(_toConsumableArray(GOODS_INFO_COLUMNS(text).filter(function (t) {
609
+ return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
610
+ })));
611
+ return columnList;
612
+ }, [showHeader, list]);
613
+ return /*#__PURE__*/React.createElement(Table, {
614
+ columns: newColumns,
615
+ dataSource: list,
616
+ rowKey: 'uuid',
617
+ size: "small",
618
+ pagination: false,
619
+ scroll: {
620
+ x: '100%'
621
+ },
622
+ locale: {
623
+ emptyText: '暂无数据'
524
624
  }
525
- }, {
526
- dataIndex: "numIid",
527
- title: "商品id",
528
- align: "center",
529
- ellipsis: true,
530
- width: 200
531
- }, {
532
- dataIndex: "skuId",
533
- title: "SKU ID",
534
- align: "center",
535
- ellipsis: true,
536
- width: 200
537
- }, {
538
- dataIndex: "outerSkuId",
539
- title: "SKU 编码",
540
- align: "center",
541
- ellipsis: true,
542
- width: 100
543
- }, {
544
- dataIndex: "propertiesName",
545
- title: "SKU 信息",
546
- align: "center",
547
- ellipsis: true,
548
- width: 200
549
- }];
550
- // title: '商品名称',
551
- // outerId: '商品编码',
552
- // picUrl: '图片',
553
- // numIid: '商品id',
554
- // skuId: 'SKU ID',
555
- // outerSkuId: 'SKU 编码',
556
- // propertiesName: 'SKU 信息',
557
- });
558
-
625
+ });
626
+ };
559
627
  export var FileRender = function FileRender(_ref12) {
560
628
  var _ref12$fileList = _ref12.fileList,
561
629
  fileList = _ref12$fileList === void 0 ? [] : _ref12$fileList,
@@ -565,15 +633,15 @@ export var FileRender = function FileRender(_ref12) {
565
633
  _useState4 = _slicedToArray(_useState3, 2),
566
634
  visible = _useState4[0],
567
635
  setVisible = _useState4[1];
568
- var _useState5 = useState(""),
636
+ var _useState5 = useState(''),
569
637
  _useState6 = _slicedToArray(_useState5, 2),
570
638
  fileUrl = _useState6[0],
571
639
  setFileUrl = _useState6[1];
572
- var _useState7 = useState(""),
640
+ var _useState7 = useState(''),
573
641
  _useState8 = _slicedToArray(_useState7, 2),
574
642
  fileType = _useState8[0],
575
643
  setFileType = _useState8[1];
576
- var _useState9 = useState(""),
644
+ var _useState9 = useState(''),
577
645
  _useState10 = _slicedToArray(_useState9, 2),
578
646
  fileName = _useState10[0],
579
647
  setFileName = _useState10[1];
@@ -582,24 +650,24 @@ export var FileRender = function FileRender(_ref12) {
582
650
  downloading = _useState12[0],
583
651
  setDownloading = _useState12[1];
584
652
  var handleCancel = function handleCancel() {
585
- setFileUrl("");
586
- setFileName("");
653
+ setFileUrl('');
654
+ setFileName('');
587
655
  setVisible(false);
588
656
  setDownloading(false);
589
657
  };
590
658
  var onPreview = function onPreview(file) {
591
659
  var _file$url;
592
- var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(".");
660
+ var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
593
661
  var fileType = fileArr[fileArr.length - 1];
594
- if (["png", "jpg", "jpeg", "gif", "bmp", "svg"].includes(fileType.toLowerCase())) {
662
+ if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
595
663
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
596
664
  setFileName(file === null || file === void 0 ? void 0 : file.name);
597
- setFileType("pic");
665
+ setFileType('pic');
598
666
  setVisible(true);
599
- } else if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
667
+ } else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
600
668
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
601
669
  setFileName(file === null || file === void 0 ? void 0 : file.name);
602
- setFileType("video");
670
+ setFileType('video');
603
671
  setVisible(true);
604
672
  } else {
605
673
  window.open(file === null || file === void 0 ? void 0 : file.url);
@@ -610,9 +678,9 @@ export var FileRender = function FileRender(_ref12) {
610
678
  fetch(url).then(function (res) {
611
679
  return res.blob();
612
680
  }).then(function (blob) {
613
- var a = document.createElement("a");
681
+ var a = document.createElement('a');
614
682
  document.body.appendChild(a);
615
- a.style.display = "none";
683
+ a.style.display = 'none';
616
684
  var url = window.URL.createObjectURL(blob);
617
685
  a.href = url;
618
686
  a.download = name;
@@ -626,9 +694,9 @@ export var FileRender = function FileRender(_ref12) {
626
694
  return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
627
695
  return /*#__PURE__*/React.createElement("a", {
628
696
  style: {
629
- color: "#1890ff",
630
- cursor: "pointer",
631
- display: "block"
697
+ color: '#1890ff',
698
+ cursor: 'pointer',
699
+ display: 'block'
632
700
  },
633
701
  onClick: function onClick(e) {
634
702
  e.preventDefault();
@@ -650,20 +718,20 @@ export var FileRender = function FileRender(_ref12) {
650
718
  }, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
651
719
  text: fileUrl,
652
720
  onCopy: function onCopy() {
653
- message.success("复制成功");
721
+ message.success('复制成功');
654
722
  }
655
723
  }, /*#__PURE__*/React.createElement(Button, {
656
724
  type: "link"
657
- }, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
725
+ }, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
658
726
  alt: "example",
659
727
  style: {
660
- width: "100%"
728
+ width: '100%'
661
729
  },
662
730
  src: fileUrl
663
731
  }) : /*#__PURE__*/React.createElement("video", {
664
732
  style: {
665
- width: "100%",
666
- height: "100%"
733
+ width: '100%',
734
+ height: '100%'
667
735
  },
668
736
  autoPlay: true,
669
737
  controls: true,
@@ -673,25 +741,38 @@ export var FileRender = function FileRender(_ref12) {
673
741
  export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
674
742
  var value = _ref13.value,
675
743
  type = _ref13.type;
676
- var columns = type === "WLN_SYSTEM_ORDER" ? [{
677
- dataIndex: "billType",
678
- title: "单据类型"
679
- }, {
680
- dataIndex: "billNo",
681
- title: "系统订单号"
682
- }, {
683
- dataIndex: "billTag",
684
- title: "标签"
685
- }] : [{
686
- dataIndex: "billType",
687
- title: "订单类型"
688
- }, {
689
- dataIndex: "billNo",
690
- title: "系统订单号"
691
- }, {
692
- dataIndex: "billTag",
693
- title: "标记"
694
- }];
744
+ var columnMap = {
745
+ BS_SYSTEM_ORDER: [{
746
+ dataIndex: "billType",
747
+ title: "单据类型"
748
+ }, {
749
+ dataIndex: "billNo",
750
+ title: "系统订单号"
751
+ }, {
752
+ dataIndex: "billTag",
753
+ title: "标签"
754
+ }],
755
+ WLN_SYSTEM_ORDER: [{
756
+ dataIndex: "billType",
757
+ title: "订单类型"
758
+ }, {
759
+ dataIndex: "billNo",
760
+ title: "系统订单号"
761
+ }, {
762
+ dataIndex: "billTag",
763
+ title: "标记"
764
+ }],
765
+ WDT_SYSTEM_ORDER: [{
766
+ dataIndex: "billType",
767
+ title: "订单类型"
768
+ }, {
769
+ dataIndex: "billNo",
770
+ title: "系统订单号"
771
+ }, {
772
+ dataIndex: "billTag",
773
+ title: "订单标签"
774
+ }]
775
+ };
695
776
  var rowSelection = {
696
777
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
697
778
  if (next.select) {
@@ -709,16 +790,16 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
709
790
  };
710
791
  return /*#__PURE__*/React.createElement(Table, {
711
792
  dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
712
- columns: columns,
793
+ columns: columnMap[type] || [],
713
794
  rowSelection: rowSelection,
714
- rowKey: "billNo",
795
+ rowKey: 'billNo',
715
796
  size: "small",
716
797
  pagination: false,
717
798
  scroll: {
718
- x: "100%"
799
+ x: '100%'
719
800
  },
720
801
  locale: {
721
- emptyText: "暂无数据"
802
+ emptyText: '暂无数据'
722
803
  }
723
804
  });
724
805
  };
@@ -738,33 +819,33 @@ export var MsgContent = function MsgContent(_ref14) {
738
819
  _ref14$options = _ref14.options,
739
820
  options = _ref14$options === void 0 ? [] : _ref14$options;
740
821
  var msgTypeCh = {
741
- ding: "钉钉",
742
- wechat: "微信",
743
- qq: "QQ",
744
- qywx: "企业微信"
822
+ ding: '钉钉',
823
+ wechat: '微信',
824
+ qq: 'QQ',
825
+ qywx: '企业微信'
745
826
  };
746
827
  var detailContent = function detailContent(item) {
747
828
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
748
829
  style: {
749
- textAlign: "left"
830
+ textAlign: 'left'
750
831
  }
751
832
  }, /*#__PURE__*/React.createElement("div", null, item.ruleName)));
752
833
  };
753
834
  return /*#__PURE__*/React.createElement(Space, {
754
- direction: !horizontal ? "vertical" : "horizontal"
835
+ direction: !horizontal ? 'vertical' : 'horizontal'
755
836
  }, Array.isArray(list) ? (list || []).map(function (item, index) {
756
837
  var _options$find2;
757
838
  var color = ((_options$find2 = options.find(function (innerItem) {
758
839
  return item[valueKey] === innerItem.label;
759
- })) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || "#000";
840
+ })) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
760
841
  var currentOption = options.find(function (option) {
761
842
  return item[valueKey] === option.value;
762
843
  });
763
- var key = item.msgType || "ding";
844
+ var key = item.msgType || 'ding';
764
845
  return /*#__PURE__*/React.createElement("div", {
765
846
  style: {
766
847
  color: color,
767
- cursor: "pointer"
848
+ cursor: 'pointer'
768
849
  }
769
850
  }, /*#__PURE__*/React.createElement(Popover, {
770
851
  content: detailContent(item),
@@ -773,6 +854,6 @@ export var MsgContent = function MsgContent(_ref14) {
773
854
  }
774
855
  }, /*#__PURE__*/React.createElement("span", {
775
856
  key: index
776
- }, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")));
857
+ }, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
777
858
  }) : null);
778
859
  };