@kmkf-fe-packages/services-components 2.0.53 → 2.0.54-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.
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { ShowHeaderObjType } from '../../type';
1
+ import React from "react";
2
+ import { ShowHeaderObjType } from "../../type";
3
3
  declare type getFormItemProps = {
4
4
  name: string;
5
5
  title: string;
@@ -12,16 +12,16 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
12
12
  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; }
13
13
  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; } }
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
- import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from 'antd';
16
- import { DownloadOutlined } from '@ant-design/icons';
17
- import React, { useState, useMemo } from 'react';
18
- import { ExpressData, SendDataCenter } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
16
+ import { DownloadOutlined } from "@ant-design/icons";
17
+ import React, { useState, useMemo } from "react";
18
+ import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import { getAlipayBillReceipt } from "../../service/api";
20
- import { CopyToClipboard } from 'react-copy-to-clipboard';
20
+ import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from '@kmkf-fe-packages/kmkf-utils';
24
+ import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  var Paragraph = Typography.Paragraph;
27
27
  export var getFormItem = function getFormItem(_ref) {
@@ -41,7 +41,7 @@ export var getFormItem = function getFormItem(_ref) {
41
41
  return /*#__PURE__*/React.createElement("div", {
42
42
  className: "form-item--wrap",
43
43
  style: {
44
- position: 'relative'
44
+ position: "relative"
45
45
  }
46
46
  }, /*#__PURE__*/React.createElement(Form.Item, {
47
47
  name: name,
@@ -56,51 +56,51 @@ export var showImage = function showImage(_ref2) {
56
56
  type = _ref2.type,
57
57
  index = _ref2.index,
58
58
  showHeader = _ref2.showHeader;
59
- var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
59
+ var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
60
60
  var mapping_itemCode = getMapping(columnsGoodsList);
61
61
  return /*#__PURE__*/React.createElement("div", {
62
62
  className: styles.goodImgBox,
63
63
  key: index
64
- }, type === 'itemCode' && !showHeader.includes('picUrl') ? null : (item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/React.createElement("a", {
64
+ }, type === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
65
65
  target: "_blank",
66
- href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : 'javascript:void(0);'
66
+ href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : "javascript:void(0);"
67
67
  }, /*#__PURE__*/React.createElement("img", {
68
68
  style: {
69
- width: '40px',
70
- height: '40px',
71
- objectFit: 'contain'
69
+ width: "40px",
70
+ height: "40px",
71
+ objectFit: "contain"
72
72
  },
73
73
  src: picUrl
74
74
  })) : /*#__PURE__*/React.createElement("img", {
75
75
  style: {
76
- width: '40px',
77
- height: '40px',
78
- objectFit: 'contain'
76
+ width: "40px",
77
+ height: "40px",
78
+ objectFit: "contain"
79
79
  },
80
80
  src: picUrl
81
81
  }), /*#__PURE__*/React.createElement("div", {
82
82
  className: styles.options,
83
83
  onClick: function onClick() {
84
- console.log('show---', showHeader);
84
+ console.log("show---", showHeader);
85
85
  }
86
- }, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
87
- title: '商品id',
86
+ }, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
87
+ title: "商品id",
88
88
  text: item.numIid
89
- }), type === 'itemCode' && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
90
- return dataIndex !== 'picUrl';
89
+ }), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
90
+ return dataIndex !== "picUrl";
91
91
  }).map(function (dataIndex) {
92
92
  return /*#__PURE__*/React.createElement(TextTool, {
93
93
  title: mapping_itemCode[dataIndex],
94
94
  text: item[dataIndex]
95
95
  });
96
- })), (type === 'itemThird' || type === 'jstItemThird') && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
97
- title: '供应商编码',
96
+ })), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
97
+ title: "供应商编码",
98
98
  text: item.itemId || item.supplierItemOuterId
99
- }), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
100
- title: '供应商名称',
99
+ }), (type === "itemThird" || type === "jstItemThird") && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
100
+ title: "供应商名称",
101
101
  text: item.supplierName
102
- }), type !== 'itemCode' && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
103
- title: '规格',
102
+ }), type !== "itemCode" && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
103
+ title: "规格",
104
104
  text: item.propertiesName
105
105
  })));
106
106
  };
@@ -113,9 +113,9 @@ var TextTool = function TextTool(_ref3) {
113
113
  title: text
114
114
  }, /*#__PURE__*/React.createElement("div", {
115
115
  style: {
116
- overflow: 'hidden',
117
- whiteSpace: 'nowrap',
118
- textOverflow: 'ellipsis'
116
+ overflow: "hidden",
117
+ whiteSpace: "nowrap",
118
+ textOverflow: "ellipsis"
119
119
  }
120
120
  }, title, ":", text));
121
121
  };
@@ -146,51 +146,51 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
146
146
  title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
147
147
  }, /*#__PURE__*/React.createElement("div", {
148
148
  style: {
149
- display: 'flex',
150
- flexWrap: 'wrap'
149
+ display: "flex",
150
+ flexWrap: "wrap"
151
151
  }
152
152
  }, allImage.map(function (i, index) {
153
153
  return /*#__PURE__*/React.createElement("div", {
154
154
  style: {
155
- width: '50%'
155
+ width: "50%"
156
156
  },
157
157
  key: index
158
- }, type === 'itemCode' && !showHeader.includes('picUrl') ? null : /*#__PURE__*/React.createElement("a", {
159
- 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);'),
158
+ }, type === "itemCode" && !showHeader.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
159
+ 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);"),
160
160
  target: "__blank",
161
161
  style: {
162
- marginRight: '12px',
163
- marginTop: '8px',
164
- padding: '2px',
165
- border: '1px dashed #ccc',
166
- display: 'inline-block'
162
+ marginRight: "12px",
163
+ marginTop: "8px",
164
+ padding: "2px",
165
+ border: "1px dashed #ccc",
166
+ display: "inline-block"
167
167
  }
168
168
  }, /*#__PURE__*/React.createElement("img", {
169
169
  alt: "",
170
170
  src: i.picUrl || defaultImg,
171
171
  style: {
172
- width: '72px',
173
- height: '72px',
174
- objectFit: 'contain'
172
+ width: "72px",
173
+ height: "72px",
174
+ objectFit: "contain"
175
175
  }
176
- })), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
177
- title: '商品id',
176
+ })), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
177
+ title: "商品id",
178
178
  text: i.numIid
179
- }), type === 'itemCode' && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
180
- return dataIndex !== 'picUrl';
179
+ }), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
180
+ return dataIndex !== "picUrl";
181
181
  }).map(function (dataIndex) {
182
182
  return /*#__PURE__*/React.createElement(TextTool, {
183
183
  title: mapping_itemCode[dataIndex],
184
184
  text: i[dataIndex]
185
185
  });
186
- })), (type === 'itemThird' || type === 'jstItemThird') && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
187
- title: '供应商编码',
186
+ })), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
187
+ title: "供应商编码",
188
188
  text: i.itemId || i.supplierItemOuterId
189
- }), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
190
- title: '供应商名称',
189
+ }), (type === "itemThird" || type === "jstItemThird") && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
190
+ title: "供应商名称",
191
191
  text: i.supplierName
192
- }), type !== 'itemCode' && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
193
- title: '规格',
192
+ }), type !== "itemCode" && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
193
+ title: "规格",
194
194
  text: i.propertiesName
195
195
  })));
196
196
  }))));
@@ -200,14 +200,14 @@ export var GoodImage = function GoodImage(_ref5) {
200
200
  var _list$slice;
201
201
  var list = _ref5.list,
202
202
  _ref5$type = _ref5.type,
203
- type = _ref5$type === void 0 ? '' : _ref5$type,
203
+ type = _ref5$type === void 0 ? "" : _ref5$type,
204
204
  _ref5$showHeader = _ref5.showHeader,
205
205
  showHeader = _ref5$showHeader === void 0 ? [] : _ref5$showHeader;
206
206
  var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
207
207
  var initShowTotal = 3;
208
208
  var showHeaderMap = useMemo(function () {
209
- var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
210
- var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
209
+ var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
210
+ var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
211
211
  var dataIndexList = [];
212
212
  if (isStringArray) {
213
213
  dataIndexList = showHeader;
@@ -222,7 +222,7 @@ export var GoodImage = function GoodImage(_ref5) {
222
222
  }, [showHeader]);
223
223
  return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
224
224
  style: {
225
- display: type === 'itemSelect' ? 'flex' : 'block'
225
+ display: type === "itemSelect" ? "flex" : "block"
226
226
  }
227
227
  }, 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) {
228
228
  return showImage({
@@ -241,12 +241,12 @@ export var GoodImage = function GoodImage(_ref5) {
241
241
  var content = function content(item, index) {
242
242
  return /*#__PURE__*/React.createElement("div", {
243
243
  style: {
244
- maxHeight: '300px',
245
- overflowY: 'auto'
244
+ maxHeight: "300px",
245
+ overflowY: "auto"
246
246
  }
247
247
  }, /*#__PURE__*/React.createElement("div", {
248
248
  style: {
249
- textAlign: 'center'
249
+ textAlign: "center"
250
250
  }
251
251
  }, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F"), item.sid && /*#__PURE__*/React.createElement("span", null, "(\u7CFB\u7EDF\u5355\u53F7:", item.sid, ")")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
252
252
  return /*#__PURE__*/React.createElement("div", {
@@ -263,14 +263,14 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
263
263
  list = _ref6$list === void 0 ? [] : _ref6$list,
264
264
  type = _ref6.type,
265
265
  _ref6$platformType = _ref6.platformType,
266
- platformType = _ref6$platformType === void 0 ? 'default' : _ref6$platformType;
266
+ platformType = _ref6$platformType === void 0 ? "default" : _ref6$platformType;
267
267
  var getSendName = function getSendName(item) {
268
268
  return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
269
269
  };
270
270
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
271
271
  var logisticsCompany = item.logisticsCompany,
272
272
  logisticsCompanyName = item.logisticsCompanyName;
273
- var company = platformType === 'gy' ? logisticsCompanyName : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
273
+ var company = platformType === "gy" ? logisticsCompanyName : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
274
274
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
275
275
  content: content(item, index),
276
276
  overlayStyle: {
@@ -279,23 +279,23 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
279
279
  }, /*#__PURE__*/React.createElement("span", {
280
280
  key: index,
281
281
  style: {
282
- color: '#1890ff',
283
- cursor: 'pointer'
282
+ color: "#1890ff",
283
+ cursor: "pointer"
284
284
  }
285
285
  }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? /*#__PURE__*/React.createElement(React.Fragment, null, company, "/", /*#__PURE__*/React.createElement(CopyText, {
286
286
  text: item.logisticsCode
287
287
  })) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
288
288
  text: item.logisticsCode
289
- }) : null) : 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, getSendName(item)].join('/') : item.sendId ? item.sendId : getSendName(item)) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
289
+ }) : null) : 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, getSendName(item)].join("/") : item.sendId ? item.sendId : getSendName(item)) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
290
290
  }) : null;
291
291
  };
292
292
  export var BsExpressRender = function BsExpressRender(_ref7) {
293
293
  var _ref7$list = _ref7.list,
294
294
  list = _ref7$list === void 0 ? [] : _ref7$list,
295
295
  _ref7$showField = _ref7.showField,
296
- showField = _ref7$showField === void 0 ? '' : _ref7$showField,
296
+ showField = _ref7$showField === void 0 ? "" : _ref7$showField,
297
297
  _ref7$platformType = _ref7.platformType,
298
- platformType = _ref7$platformType === void 0 ? 'default' : _ref7$platformType;
298
+ platformType = _ref7$platformType === void 0 ? "default" : _ref7$platformType;
299
299
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
300
300
  var logisticsCompany = item.logisticsCompany;
301
301
  var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
@@ -307,10 +307,10 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
307
307
  }, /*#__PURE__*/React.createElement("span", {
308
308
  key: index,
309
309
  style: {
310
- color: '#1890ff',
311
- cursor: 'pointer'
310
+ color: "#1890ff",
311
+ cursor: "pointer"
312
312
  }
313
- }, "\u5305\u88F9", ":")), showField === 'company' ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === 'code' ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
313
+ }, "\u5305\u88F9", ":")), showField === "company" ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === "code" ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
314
314
  text: item.logisticsCode
315
315
  }) : null) : null));
316
316
  }) : null;
@@ -326,11 +326,11 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
326
326
  isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover;
327
327
  var getContentData = function getContentData(item, index) {
328
328
  if (item.platformId) return {
329
- text: '平台售后单号',
329
+ text: "平台售后单号",
330
330
  id: item.platformId
331
331
  };
332
332
  if (item.returnLogisticsCode) return {
333
- text: '物流单号',
333
+ text: "物流单号",
334
334
  id: item.returnLogisticsCode
335
335
  };
336
336
  return {
@@ -342,13 +342,13 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
342
342
  var contentData = getContentData(item, index);
343
343
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
344
344
  style: {
345
- textAlign: 'center'
345
+ textAlign: "center"
346
346
  }
347
347
  }, contentData.text, "\uFF1A", contentData.id));
348
348
  };
349
349
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
350
350
  var _options$find;
351
- var valueKey = '';
351
+ var valueKey = "";
352
352
  if (Array.isArray(initValueKey)) {
353
353
  for (var _index = 0; _index < initValueKey.length; _index++) {
354
354
  var itemKey = initValueKey[_index];
@@ -362,7 +362,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
362
362
  }
363
363
  var color = ((_options$find = options.find(function (it) {
364
364
  return item[valueKey] === it.value;
365
- })) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
365
+ })) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
366
366
  var currentOption = options.find(function (option) {
367
367
  return item[valueKey] === option.value;
368
368
  });
@@ -374,14 +374,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
374
374
  }, /*#__PURE__*/React.createElement("span", {
375
375
  key: index,
376
376
  style: {
377
- color: '#1890ff',
378
- cursor: 'pointer'
377
+ color: "#1890ff",
378
+ cursor: "pointer"
379
379
  }
380
380
  }, "".concat(getContentData(item, index).text), ":")) : null, /*#__PURE__*/React.createElement("span", {
381
381
  style: {
382
382
  color: color
383
383
  }
384
- }, 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", {
384
+ }, 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", {
385
385
  className: "c-red"
386
386
  }, item.reason));
387
387
  }) : null;
@@ -393,22 +393,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
393
393
  index = _ref9.index;
394
394
  var picUrl = item.picUrl || defaultImg;
395
395
  var keyMap = {
396
- name: 'bs名称',
397
- code: 'bs编码',
398
- skuId: 'bssku编码',
399
- money: 'bs实付金额',
400
- number: 'bs数量',
401
- share: 'bs分摊价',
402
- type: 'bs赠品类型'
396
+ name: "bs名称",
397
+ code: "bs编码",
398
+ skuId: "bssku编码",
399
+ money: "bs实付金额",
400
+ number: "bs数量",
401
+ share: "bs分摊价",
402
+ type: "bs赠品类型"
403
403
  };
404
404
  return /*#__PURE__*/React.createElement("div", {
405
405
  className: styles.goodImgBox,
406
406
  key: index
407
407
  }, /*#__PURE__*/React.createElement("img", {
408
408
  style: {
409
- width: '40px',
410
- height: '40px',
411
- objectFit: 'contain'
409
+ width: "40px",
410
+ height: "40px",
411
+ objectFit: "contain"
412
412
  },
413
413
  src: picUrl
414
414
  }), /*#__PURE__*/React.createElement("div", {
@@ -430,11 +430,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
430
430
  return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
431
431
  list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
432
432
  showHeader: showHeader,
433
- text: '退回'
433
+ text: "退回"
434
434
  }), BsGoodsTable({
435
435
  list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
436
436
  showHeader: showHeader,
437
- text: '换出'
437
+ text: "换出"
438
438
  }));
439
439
  }));
440
440
  };
@@ -451,22 +451,22 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
451
451
  var list = _ref11.list,
452
452
  showHeader = _ref11.showHeader,
453
453
  _ref11$text = _ref11.text,
454
- text = _ref11$text === void 0 ? '' : _ref11$text,
454
+ text = _ref11$text === void 0 ? "" : _ref11$text,
455
455
  type = _ref11.type;
456
456
  //商品信息
457
457
  var COLUMNS_MAP = function COLUMNS_MAP() {
458
- var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
458
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
459
459
  return function (type) {
460
460
  var _columnsMap$type;
461
461
  var columnsMap = getColumnsMap({
462
462
  text: text
463
463
  });
464
- return (_columnsMap$type = columnsMap[type]) !== null && _columnsMap$type !== void 0 ? _columnsMap$type : columnsMap['default'];
464
+ return (_columnsMap$type = columnsMap[type]) !== null && _columnsMap$type !== void 0 ? _columnsMap$type : columnsMap["default"];
465
465
  };
466
466
  };
467
467
  //商品信息
468
468
  var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
469
- var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
469
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
470
470
  var COLUMNS_INFO = COLUMNS_MAP(text);
471
471
  return COLUMNS_INFO(type);
472
472
  };
@@ -476,8 +476,8 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
476
476
  var newColumns = useMemo(function () {
477
477
  var initBaseInfoColumns = GOODS_INFO_COLUMNS();
478
478
  var baseInfoColumns = [];
479
- var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
480
- var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
479
+ var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
480
+ var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
481
481
  if (isStringArray) {
482
482
  baseInfoColumns = initBaseInfoColumns.filter(function (col) {
483
483
  return showHeader.includes(col.dataIndex);
@@ -493,9 +493,9 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
493
493
  }).filter(Boolean);
494
494
  }
495
495
  var columnList = [{
496
- dataIndex: '',
497
- title: '序号',
498
- align: 'center',
496
+ dataIndex: "",
497
+ title: "序号",
498
+ align: "center",
499
499
  ellipsis: true,
500
500
  width: 50,
501
501
  render: function render(val, record, index) {
@@ -507,14 +507,14 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
507
507
  return /*#__PURE__*/React.createElement(Table, {
508
508
  columns: newColumns,
509
509
  dataSource: list,
510
- rowKey: 'uuid',
510
+ rowKey: "uuid",
511
511
  size: "small",
512
512
  pagination: false,
513
513
  scroll: {
514
- x: '100%'
514
+ x: "100%"
515
515
  },
516
516
  locale: {
517
- emptyText: '暂无数据'
517
+ emptyText: "暂无数据"
518
518
  }
519
519
  });
520
520
  };
@@ -527,15 +527,15 @@ export var FileRender = function FileRender(_ref12) {
527
527
  _useState4 = _slicedToArray(_useState3, 2),
528
528
  visible = _useState4[0],
529
529
  setVisible = _useState4[1];
530
- var _useState5 = useState(''),
530
+ var _useState5 = useState(""),
531
531
  _useState6 = _slicedToArray(_useState5, 2),
532
532
  fileUrl = _useState6[0],
533
533
  setFileUrl = _useState6[1];
534
- var _useState7 = useState(''),
534
+ var _useState7 = useState(""),
535
535
  _useState8 = _slicedToArray(_useState7, 2),
536
536
  fileType = _useState8[0],
537
537
  setFileType = _useState8[1];
538
- var _useState9 = useState(''),
538
+ var _useState9 = useState(""),
539
539
  _useState10 = _slicedToArray(_useState9, 2),
540
540
  fileName = _useState10[0],
541
541
  setFileName = _useState10[1];
@@ -544,24 +544,24 @@ export var FileRender = function FileRender(_ref12) {
544
544
  downloading = _useState12[0],
545
545
  setDownloading = _useState12[1];
546
546
  var handleCancel = function handleCancel() {
547
- setFileUrl('');
548
- setFileName('');
547
+ setFileUrl("");
548
+ setFileName("");
549
549
  setVisible(false);
550
550
  setDownloading(false);
551
551
  };
552
552
  var onPreview = function onPreview(file) {
553
553
  var _file$url;
554
- var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
554
+ var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(".");
555
555
  var fileType = fileArr[fileArr.length - 1];
556
- if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
556
+ if (["png", "jpg", "jpeg", "gif", "bmp", "svg"].includes(fileType.toLowerCase())) {
557
557
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
558
558
  setFileName(file === null || file === void 0 ? void 0 : file.name);
559
- setFileType('pic');
559
+ setFileType("pic");
560
560
  setVisible(true);
561
- } else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
561
+ } else if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
562
562
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
563
563
  setFileName(file === null || file === void 0 ? void 0 : file.name);
564
- setFileType('video');
564
+ setFileType("video");
565
565
  setVisible(true);
566
566
  } else {
567
567
  window.open(file === null || file === void 0 ? void 0 : file.url);
@@ -572,9 +572,9 @@ export var FileRender = function FileRender(_ref12) {
572
572
  fetch(url).then(function (res) {
573
573
  return res.blob();
574
574
  }).then(function (blob) {
575
- var a = document.createElement('a');
575
+ var a = document.createElement("a");
576
576
  document.body.appendChild(a);
577
- a.style.display = 'none';
577
+ a.style.display = "none";
578
578
  var url = window.URL.createObjectURL(blob);
579
579
  a.href = url;
580
580
  a.download = name;
@@ -588,9 +588,9 @@ export var FileRender = function FileRender(_ref12) {
588
588
  return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
589
589
  return /*#__PURE__*/React.createElement("a", {
590
590
  style: {
591
- color: '#1890ff',
592
- cursor: 'pointer',
593
- display: 'block'
591
+ color: "#1890ff",
592
+ cursor: "pointer",
593
+ display: "block"
594
594
  },
595
595
  onClick: function onClick(e) {
596
596
  e.preventDefault();
@@ -612,20 +612,20 @@ export var FileRender = function FileRender(_ref12) {
612
612
  }, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
613
613
  text: fileUrl,
614
614
  onCopy: function onCopy() {
615
- message.success('复制成功');
615
+ message.success("复制成功");
616
616
  }
617
617
  }, /*#__PURE__*/React.createElement(Button, {
618
618
  type: "link"
619
- }, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
619
+ }, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
620
620
  alt: "example",
621
621
  style: {
622
- width: '100%'
622
+ width: "100%"
623
623
  },
624
624
  src: fileUrl
625
625
  }) : /*#__PURE__*/React.createElement("video", {
626
626
  style: {
627
- width: '100%',
628
- height: '100%'
627
+ width: "100%",
628
+ height: "100%"
629
629
  },
630
630
  autoPlay: true,
631
631
  controls: true,
@@ -645,18 +645,18 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
645
645
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
646
646
  };
647
647
  var rowKeyMap = {
648
- BS_SYSTEM_ORDER: 'billNo',
649
- KM_SYSTEM_ORDER: 'billNo',
650
- WLN_SYSTEM_ORDER: 'billNo',
651
- WDT_SYSTEM_ORDER: 'billNo',
652
- BS_E3_SYSTEM_ORDER: 'orderSn',
653
- GY_SYSTEM_ORDER: 'billNo',
654
- JST_SYSTEM_ORDER: 'oId'
648
+ BS_SYSTEM_ORDER: "billNo",
649
+ KM_SYSTEM_ORDER: "billNo",
650
+ WLN_SYSTEM_ORDER: "billNo",
651
+ WDT_SYSTEM_ORDER: "billNo",
652
+ BS_E3_SYSTEM_ORDER: "orderSn",
653
+ GY_SYSTEM_ORDER: "billNo",
654
+ JST_SYSTEM_ORDER: "oId"
655
655
  };
656
656
  var rowSelection = {
657
657
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
658
658
  if (next.select) {
659
- prv.push(next[rowKeyMap[type]] || 'billNo');
659
+ prv.push(next[rowKeyMap[type]] || "billNo");
660
660
  }
661
661
  return prv;
662
662
  }, []),
@@ -672,14 +672,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
672
672
  dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
673
673
  columns: columnMap[type] || [],
674
674
  rowSelection: rowSelection,
675
- rowKey: rowKeyMap[type] || 'billNo',
675
+ rowKey: rowKeyMap[type] || "billNo",
676
676
  size: "small",
677
677
  pagination: false,
678
678
  scroll: {
679
- x: '100%'
679
+ x: "100%"
680
680
  },
681
681
  locale: {
682
- emptyText: '暂无数据'
682
+ emptyText: "暂无数据"
683
683
  }
684
684
  });
685
685
  };
@@ -702,13 +702,13 @@ export var MsgContent = function MsgContent(_ref14) {
702
702
  var _options$find2;
703
703
  return ((_options$find2 = options.find(function (innerItem) {
704
704
  return value === innerItem.label || value === innerItem.oldValue;
705
- })) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
705
+ })) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || "#000";
706
706
  };
707
707
  var detailContent = function detailContent(item) {
708
708
  var _item$msgReceivers;
709
709
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
710
710
  style: {
711
- textAlign: 'left'
711
+ textAlign: "left"
712
712
  }
713
713
  }, (_item$msgReceivers = item.msgReceivers) !== null && _item$msgReceivers !== void 0 && _item$msgReceivers.length ? item.msgReceivers.map(function (msgItem, index) {
714
714
  return /*#__PURE__*/React.createElement("div", {
@@ -724,22 +724,22 @@ export var MsgContent = function MsgContent(_ref14) {
724
724
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", item.failReason)));
725
725
  };
726
726
  return /*#__PURE__*/React.createElement(Space, {
727
- direction: !horizontal ? 'vertical' : 'horizontal'
727
+ direction: !horizontal ? "vertical" : "horizontal"
728
728
  }, Array.isArray(list) ? (list || []).map(function (item, index) {
729
729
  var _item$msgReceivers2;
730
730
  var color = getColorByStatus(item[valueKey]);
731
731
  var currentOption = options.find(function (option) {
732
732
  return item[valueKey] === option.value;
733
733
  });
734
- var key = item.msgType || 'ding';
734
+ var key = item.msgType || "ding";
735
735
  var formatMsgContent = /*#__PURE__*/React.createElement("span", {
736
736
  key: index
737
- }, msgTypeCh[key], "-", item.ruleName ? "".concat(item.ruleName, "-") : '', currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '');
737
+ }, msgTypeCh[key] || key, "-", item.ruleName ? "".concat(item.ruleName, "-") : "", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
738
738
  return /*#__PURE__*/React.createElement("div", {
739
739
  key: "wrap_".concat(index),
740
740
  style: {
741
741
  color: color,
742
- cursor: 'pointer'
742
+ cursor: "pointer"
743
743
  }
744
744
  }, (_item$msgReceivers2 = item.msgReceivers) !== null && _item$msgReceivers2 !== void 0 && _item$msgReceivers2.some(function (msgItem) {
745
745
  return Array.isArray(failValue) ? failValue.includes(msgItem === null || msgItem === void 0 ? void 0 : msgItem.status) : (msgItem === null || msgItem === void 0 ? void 0 : msgItem.status) === failValue;
@@ -759,7 +759,7 @@ export var AlipayBill = function AlipayBill(props) {
759
759
  _useState14 = _slicedToArray(_useState13, 2),
760
760
  visible = _useState14[0],
761
761
  setVisible = _useState14[1];
762
- var _useState15 = useState(''),
762
+ var _useState15 = useState(""),
763
763
  _useState16 = _slicedToArray(_useState15, 2),
764
764
  msg = _useState16[0],
765
765
  setMsg = _useState16[1];
@@ -784,7 +784,7 @@ export var AlipayBill = function AlipayBill(props) {
784
784
  data = res.data, msg = res.message;
785
785
  if (data) {
786
786
  setHasUrl(true);
787
- if (['fxg'].includes(platform)) {
787
+ if (["fxg"].includes(platform)) {
788
788
  setMsg(data);
789
789
  setVisible(true);
790
790
  } else {
@@ -811,8 +811,8 @@ export var AlipayBill = function AlipayBill(props) {
811
811
  };
812
812
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
813
813
  style: {
814
- color: '#1890ff',
815
- cursor: 'pointer'
814
+ color: "#1890ff",
815
+ cursor: "pointer"
816
816
  },
817
817
  onClick: voucherHandle
818
818
  }, value), /*#__PURE__*/React.createElement(Modal, {
@@ -820,7 +820,7 @@ export var AlipayBill = function AlipayBill(props) {
820
820
  visible: visible,
821
821
  footer: false,
822
822
  onCancel: closeHandle
823
- }, ['fxg'].includes(platform) && hasUrl ? /*#__PURE__*/React.createElement("div", null, "\u8BF7\u590D\u5236\u94FE\u63A5\u5728\u6D4F\u89C8\u5668\u4E0A\u6253\u5F00\uFF0C\u94FE\u63A5\uFF1A", /*#__PURE__*/React.createElement(Paragraph, {
823
+ }, ["fxg"].includes(platform) && hasUrl ? /*#__PURE__*/React.createElement("div", null, "\u8BF7\u590D\u5236\u94FE\u63A5\u5728\u6D4F\u89C8\u5668\u4E0A\u6253\u5F00\uFF0C\u94FE\u63A5\uFF1A", /*#__PURE__*/React.createElement(Paragraph, {
824
824
  copyable: true
825
825
  }, msg)) : msg));
826
826
  };
@@ -829,7 +829,7 @@ export var RenderPicturePro = function RenderPicturePro(props) {
829
829
  hostUrl = props.hostUrl;
830
830
  var copyText = list.map(function (item) {
831
831
  return item.name;
832
- }).join(',');
832
+ }).join(",");
833
833
  return /*#__PURE__*/React.createElement("div", {
834
834
  className: "pictureProClient"
835
835
  }, list.map(function (item) {
@@ -848,8 +848,8 @@ export var RenderPicturePro = function RenderPicturePro(props) {
848
848
  preview: {
849
849
  src: showImage
850
850
  },
851
- width: '100%',
852
- height: '100%'
851
+ width: "100%",
852
+ height: "100%"
853
853
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tooltip, {
854
854
  title: item.name
855
855
  }, /*#__PURE__*/React.createElement("div", {
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
176
176
  });
177
177
  _defineProperty(this, "filterConfig", function (item) {
178
178
  var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
179
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
179
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
180
180
  searchDefaultConditions: SYMBOL.in,
181
181
  type: item.type,
182
182
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
@@ -39,10 +39,15 @@ var typeMap = {
39
39
  label: "等待执行",
40
40
  color: "#e7780f"
41
41
  }, {
42
- oldValue: "等待发送",
42
+ oldValue: "不满足条件,无需执行",
43
43
  value: "不满足条件,无需执行",
44
44
  label: "不满足条件,无需执行",
45
45
  color: "#8A8A8A"
46
+ }, {
47
+ oldValue: "暂不满足条件,等待执行",
48
+ value: "暂不满足条件,等待执行",
49
+ label: "暂不满足条件,等待执行",
50
+ color: "#4D90F7"
46
51
  }],
47
52
  key: "msgStatusValues",
48
53
  code: "msgStatus4Search",
@@ -125,7 +130,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
125
130
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
126
131
  });
127
132
  var key = item.msgType || "ding";
128
- return "".concat(msgTypeCh[key]).concat(item.ruleName ? "-".concat(item.ruleName) : "", ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
133
+ return "".concat(msgTypeCh[key] || key).concat(item.ruleName ? "-".concat(item.ruleName) : "", ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
129
134
  }).join(",");
130
135
  });
131
136
  _defineProperty(this, "editRender", function (p) {
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
36
36
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  };
39
- formDataTransform: (value: string) => string | number;
40
39
  }
41
40
  export default PaymentAmount;
@@ -132,10 +132,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
132
132
  }
133
133
  };
134
134
  });
135
- _defineProperty(this, "formDataTransform", function (value) {
136
- var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
137
- return isNumber.test(value) ? Number(value) : value;
138
- });
139
135
  this.name = '打款金额';
140
136
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
141
137
  this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
3
  declare type Value = string | string[] | undefined;
4
4
  declare class BasicDataTime implements ComponentInterface {
5
5
  name: string;
@@ -8,14 +8,14 @@ declare class BasicDataTime implements ComponentInterface {
8
8
  type: string;
9
9
  rules: any[];
10
10
  showContains: boolean;
11
- componentConfig: ComponentInterface['componentConfig'];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
12
  isCombinationComponent: boolean;
13
13
  formField: string;
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataMap: Record;
17
- dataType: ComponentInterface['dataType'];
18
- format: ComponentInterface['format'];
17
+ dataType: ComponentInterface["dataType"];
18
+ format: ComponentInterface["format"];
19
19
  constructor(options: PickOption);
20
20
  render: (value: Value) => React.JSX.Element;
21
21
  renderClient: (record: any) => React.JSX.Element | null;
@@ -6,21 +6,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
- import React from 'react';
10
- import moment from 'moment';
9
+ import React from "react";
10
+ import moment from "moment";
11
11
  import { DateTime } from "../DataTime";
12
12
  import GetFormItem from "../GetFormItem";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { SYMBOL } from "../../constant";
16
16
  var typeMap = {
17
- TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
18
- TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
19
- TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
20
- TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
21
- BS_SIGNING_TIME: 'bsSigningTime',
22
- BS_SEND_TIME: 'bsSendTime',
23
- BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime'
17
+ TRADE_CREATE_DATETIME: "tradeCreateDateTime",
18
+ TRADE_PAYMENT_DATETIME: "tradePaymentDateTime",
19
+ TRADE_DELIVERY_DATETIME: "tradeDeliveryDateTime",
20
+ TRADE_CLOSING_DATETIME: "tradeClosingDateTime",
21
+ TRADE_SIGNING_DATETIME: "tradeSigningDateTime",
22
+ BS_SIGNING_TIME: "bsSigningTime",
23
+ BS_SEND_TIME: "bsSendTime",
24
+ BS_TRADE_PAYMENT_TIME: "bsTradePaymentTime"
24
25
  };
25
26
  var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
26
27
  var _this = this;
@@ -40,7 +41,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
40
41
  _defineProperty(this, "dataType", void 0);
41
42
  _defineProperty(this, "format", void 0);
42
43
  _defineProperty(this, "render", function (value) {
43
- return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
44
+ return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join("~") : /*#__PURE__*/React.createElement("span", null, value));
44
45
  });
45
46
  _defineProperty(this, "renderClient", function (record) {
46
47
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -52,7 +53,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
52
53
  _defineProperty(this, "renderPc", function (value, record) {
53
54
  var _record;
54
55
  var type = _this.type;
55
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : '--');
56
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : "--");
56
57
  });
57
58
  _defineProperty(this, "renderLog", function (r) {
58
59
  var type = _this.type;
@@ -66,7 +67,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
66
67
  _defineProperty(this, "renderExport", function (value, record) {
67
68
  var _record2;
68
69
  var type = _this.type;
69
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
70
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : "--";
70
71
  });
71
72
  _defineProperty(this, "editRender", function (p) {
72
73
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
@@ -77,7 +78,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
77
78
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
78
79
  display: p === null || p === void 0 ? void 0 : p.display,
79
80
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
80
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
81
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
81
82
  component: /*#__PURE__*/React.createElement(DateTime, _extends({}, _this.componentConfig, {
82
83
  dateType: "DATE_TIME"
83
84
  }))
@@ -96,7 +97,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
96
97
  // 过滤组件id
97
98
  name: item.name,
98
99
  // 过滤组件名称
99
- filterComponentType: 'Date',
100
+ filterComponentType: "Date",
100
101
  filterFn: function filterFn(value) {
101
102
  return function (i) {
102
103
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
@@ -106,13 +107,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
106
107
  formatFilterValue: function formatFilterValue(val) {
107
108
  if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
108
109
  return val === null || val === void 0 ? void 0 : val.map(function (v) {
109
- return moment(v).startOf('second').valueOf();
110
+ return moment(v).startOf("second").valueOf();
110
111
  });
111
112
  }
112
113
  }
113
114
  };
114
- if ((_ref = ['BS_SIGNING_TIME', 'BS_SEND_TIME', 'BS_TRADE_PAYMENT_TIME']) !== null && _ref !== void 0 && _ref.includes(item.type)) {
115
- params.componentDataType = 'dateTime';
115
+ if ((_ref = ["BS_SIGNING_TIME", "BS_SEND_TIME", "BS_TRADE_PAYMENT_TIME"]) !== null && _ref !== void 0 && _ref.includes(item.type)) {
116
+ params.componentDataType = "dateTime";
116
117
  }
117
118
  return params;
118
119
  });
@@ -122,21 +123,22 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
122
123
  this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
123
124
  this.type = options.type;
124
125
  this.showContains = false;
125
- this.dataType = 'string';
126
- this.format = 'dateTime';
126
+ this.dataType = "string";
127
+ this.format = "dateTime";
127
128
  this.componentConfig = options.componentConfig;
128
129
  this.rules = [];
129
130
  this.isCombinationComponent = false;
130
131
  this.canSort = true;
131
132
  this.children = [];
132
133
  this.dataMap = {
133
- TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
134
- TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
135
- TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
136
- TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
137
- BS_SIGNING_TIME: 'bsSigningTime',
138
- BS_SEND_TIME: 'bsSendTime',
139
- BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime'
134
+ TRADE_CREATE_DATETIME: "tradeCreateDateTime",
135
+ TRADE_PAYMENT_DATETIME: "tradePaymentDateTime",
136
+ TRADE_DELIVERY_DATETIME: "tradeDeliveryDateTime",
137
+ TRADE_CLOSING_DATETIME: "tradeClosingDateTime",
138
+ TRADE_SIGNING_DATETIME: "tradeSigningDateTime",
139
+ BS_SIGNING_TIME: "bsSigningTime",
140
+ BS_SEND_TIME: "bsSendTime",
141
+ BS_TRADE_PAYMENT_TIME: "bsTradePaymentTime"
140
142
  };
141
143
  });
142
144
  export default BasicDataTime;
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => JstSendGood | MsgStatus | StatusSelect | BasicDataTime | TradeDateTime | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn;
3
+ export declare const factory: (type: string, options: PickOption) => GyReissue | GyReturn | JstSendGood | MsgStatus | BasicPicture | BasicPicturePro | BasicPosting | PublicExchange | BasicSelect | StatusSelect | BasicDataTime | TradeDateTime | TradeId | WlnGoods | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods;
@@ -70,6 +70,7 @@ export var factory = function factory(type, options) {
70
70
  case "TRADE_PAYMENT_DATETIME":
71
71
  case "TRADE_DELIVERY_DATETIME":
72
72
  case "TRADE_CLOSING_DATETIME":
73
+ case "TRADE_SIGNING_DATETIME":
73
74
  case "BS_SIGNING_TIME":
74
75
  case "BS_SEND_TIME":
75
76
  case "BS_TRADE_PAYMENT_TIME":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.53",
3
+ "version": "2.0.54-beta.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.53",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.53",
24
+ "@kmkf-fe-packages/basic-components": "2.0.54-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.0",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "86a3782c0be268ccf13b109778bd4751ddafc1a5",
44
+ "gitHead": "5c5a9341478c1a70321e3095479993d4649709da",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }