@kmkf-fe-packages/services-components 0.9.2 → 0.10.0-alpha.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 (33) hide show
  1. package/dist/esm/commonComponents/SelectMark/img/xingxing-blue.png +0 -0
  2. package/dist/esm/commonComponents/SelectMark/img/xingxing-green.png +0 -0
  3. package/dist/esm/commonComponents/SelectMark/img/xingxing-purple.png +0 -0
  4. package/dist/esm/commonComponents/SelectMark/img/xingxing-red.png +0 -0
  5. package/dist/esm/commonComponents/SelectMark/img/xingxing-yellow.png +0 -0
  6. package/dist/esm/commonComponents/SelectMark/img/xingxing.png +0 -0
  7. package/dist/esm/commonComponents/SelectMark/index.d.ts +7 -0
  8. package/dist/esm/commonComponents/SelectMark/index.js +89 -0
  9. package/dist/esm/commonComponents/ShopList/index.js +2 -1
  10. package/dist/esm/components/CommonMultiStatus/index.d.ts +1 -1
  11. package/dist/esm/components/CommonMultiStatus/index.js +3 -3
  12. package/dist/esm/components/CommonSystemOrder/index.d.ts +1 -1
  13. package/dist/esm/components/CommonSystemOrder/index.js +4 -4
  14. package/dist/esm/components/File/index.js +1 -0
  15. package/dist/esm/components/FlowMarkSelect/index.d.ts +0 -2
  16. package/dist/esm/components/FlowMarkSelect/index.js +8 -27
  17. package/dist/esm/components/LogisticsInterception/index.d.ts +4 -1
  18. package/dist/esm/components/LogisticsInterception/index.js +10 -6
  19. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +1 -1
  20. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -3
  21. package/dist/esm/components/LogisticsInterception/interceptSnapshot.d.ts +35 -0
  22. package/dist/esm/components/LogisticsInterception/interceptSnapshot.js +84 -0
  23. package/dist/esm/components/TradeId/index.js +1 -1
  24. package/dist/esm/factory.d.ts +1 -1
  25. package/dist/esm/index.d.ts +1 -0
  26. package/dist/esm/index.js +1 -0
  27. package/package.json +4 -4
  28. package/dist/esm/components/FlowMarkSelect/icon/iconfont.css +0 -683
  29. package/dist/esm/components/FlowMarkSelect/icon/iconfont.js +0 -43
  30. package/dist/esm/components/FlowMarkSelect/icon/iconfont.json +0 -1178
  31. package/dist/esm/components/FlowMarkSelect/icon/iconfont.ttf +0 -0
  32. package/dist/esm/components/FlowMarkSelect/icon/iconfont.woff +0 -0
  33. package/dist/esm/components/FlowMarkSelect/icon/iconfont.woff2 +0 -0
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface SelectMarkProps {
3
+ value: string;
4
+ onChange: (val: string) => void;
5
+ }
6
+ declare const _default: (props: SelectMarkProps) => React.JSX.Element;
7
+ export default _default;
@@ -0,0 +1,89 @@
1
+ import React, { useMemo } from "react";
2
+ import { Menu, Dropdown } from "antd";
3
+ import xing from "./img/xingxing.png";
4
+ import xingRed from "./img/xingxing-red.png";
5
+ import xingYellow from "./img/xingxing-yellow.png";
6
+ import xingBlue from "./img/xingxing-blue.png";
7
+ import xingGreen from "./img/xingxing-green.png";
8
+ import xingPurple from "./img/xingxing-purple.png";
9
+ var workOrderMark = [{
10
+ label: /*#__PURE__*/React.createElement("img", {
11
+ src: xing,
12
+ style: {
13
+ width: "16px"
14
+ }
15
+ }),
16
+ value: "1"
17
+ }, {
18
+ label: /*#__PURE__*/React.createElement("img", {
19
+ src: xingRed,
20
+ style: {
21
+ width: "16px"
22
+ }
23
+ }),
24
+ value: "2"
25
+ }, {
26
+ label: /*#__PURE__*/React.createElement("img", {
27
+ src: xingYellow,
28
+ style: {
29
+ width: "16px"
30
+ }
31
+ }),
32
+ value: "3"
33
+ }, {
34
+ label: /*#__PURE__*/React.createElement("img", {
35
+ src: xingBlue,
36
+ style: {
37
+ width: "16px"
38
+ }
39
+ }),
40
+ value: "4"
41
+ }, {
42
+ label: /*#__PURE__*/React.createElement("img", {
43
+ src: xingGreen,
44
+ style: {
45
+ width: "16px"
46
+ }
47
+ }),
48
+ value: "5"
49
+ }, {
50
+ label: /*#__PURE__*/React.createElement("img", {
51
+ src: xingPurple,
52
+ style: {
53
+ width: "16px"
54
+ }
55
+ }),
56
+ value: "6"
57
+ }];
58
+ export default (function (props) {
59
+ var value = props.value,
60
+ onChange = props.onChange;
61
+ var renderMenu = function renderMenu() {
62
+ var menu = /*#__PURE__*/React.createElement(Menu, {
63
+ onClick: function onClick(_ref) {
64
+ var key = _ref.key,
65
+ domEvent = _ref.domEvent;
66
+ domEvent.stopPropagation();
67
+ onChange === null || onChange === void 0 ? void 0 : onChange(key);
68
+ }
69
+ }, workOrderMark.map(function (item) {
70
+ return /*#__PURE__*/React.createElement(Menu.Item, {
71
+ key: item.value
72
+ }, item.label);
73
+ }));
74
+ return menu;
75
+ };
76
+ var markLabel = useMemo(function () {
77
+ var _workOrderMark$find;
78
+ return (_workOrderMark$find = workOrderMark.find(function (item) {
79
+ return item.value === value;
80
+ })) === null || _workOrderMark$find === void 0 ? void 0 : _workOrderMark$find.label;
81
+ }, [value]);
82
+ return /*#__PURE__*/React.createElement(Dropdown, {
83
+ overlay: renderMenu()
84
+ }, /*#__PURE__*/React.createElement("span", {
85
+ onClick: function onClick(e) {
86
+ return e.stopPropagation();
87
+ }
88
+ }, markLabel || "--"));
89
+ });
@@ -33,7 +33,8 @@ var ShopList = function ShopList(_ref) {
33
33
  return /*#__PURE__*/React.createElement(Select.Option, {
34
34
  disabled: item.disabled || disabledList.includes(item === null || item === void 0 ? void 0 : item[valueMapping]),
35
35
  value: item === null || item === void 0 ? void 0 : item[valueMapping],
36
- label: item.shopName
36
+ key: item === null || item === void 0 ? void 0 : item[valueMapping],
37
+ label: "".concat((plat === null || plat === void 0 ? void 0 : plat.platformName) || '').concat(item.shopName)
37
38
  }, /*#__PURE__*/React.createElement(PlatformAvatar, {
38
39
  styles: {
39
40
  marginRight: 5
@@ -27,6 +27,6 @@ declare class CommonMultiStatus implements ComponentInterface {
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
29
  filterFn: (value: string) => (i: Record) => boolean;
30
- }[];
30
+ };
31
31
  }
32
32
  export default CommonMultiStatus;
@@ -78,7 +78,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
78
78
  return e.stopPropagation();
79
79
  }
80
80
  }, /*#__PURE__*/React.createElement(CommonOrderContent, {
81
- list: record === null || record === void 0 ? void 0 : record[_this.id],
81
+ list: list,
82
82
  valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
83
83
  failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
84
84
  options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options
@@ -118,7 +118,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
118
118
  });
119
119
  _defineProperty(this, "filterConfig", function (item) {
120
120
  var _typeMap$_this$type13;
121
- return [{
121
+ return {
122
122
  searchDefaultConditions: SYMBOL.like,
123
123
  type: item.type,
124
124
  id: "".concat(item.id, "_").concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.code),
@@ -130,7 +130,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
130
130
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.code), value);
131
131
  };
132
132
  }
133
- }];
133
+ };
134
134
  });
135
135
  this.name = options.name;
136
136
  this.id = options.id;
@@ -27,6 +27,6 @@ declare class CommonSystemOrder implements ComponentInterface {
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
29
  filterFn: (value: string) => (i: Record) => boolean;
30
- }[];
30
+ };
31
31
  }
32
32
  export default CommonSystemOrder;
@@ -23,8 +23,8 @@ var typeMap = {
23
23
  valueKey: "deliveryNo"
24
24
  },
25
25
  RETURN_GOODS_TRADE_ID: {
26
- key: "returnGoodsTradeIdList",
27
- code: "returnGoodsTradeIds",
26
+ key: "returnGoodsTradeItemList",
27
+ code: "returnGoodsTradeIdList",
28
28
  name: "退货单id",
29
29
  type: 2,
30
30
  valueKey: "returnGoodsTradeId"
@@ -109,7 +109,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
109
109
  });
110
110
  _defineProperty(this, "filterConfig", function (item) {
111
111
  var _typeMap$_this$type10;
112
- return [{
112
+ return {
113
113
  searchDefaultConditions: SYMBOL.like,
114
114
  type: item.type,
115
115
  id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
@@ -121,7 +121,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
121
121
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code), value);
122
122
  };
123
123
  }
124
- }];
124
+ };
125
125
  });
126
126
  this.name = options.name;
127
127
  this.id = options.id;
@@ -82,6 +82,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
82
82
  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,
83
83
  component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
84
84
  uniqueKey: _this.id,
85
+ platform: p === null || p === void 0 ? void 0 : p.platform,
85
86
  canDownload: canDownload,
86
87
  hostUrl: "https://kefu.kuaimai.com"
87
88
  }))
@@ -1,6 +1,5 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
2
  import React from "react";
3
- import "./icon/iconfont.css";
4
3
  declare class FlowMarkSelect implements ComponentInterface {
5
4
  name: string;
6
5
  id: string;
@@ -16,7 +15,6 @@ declare class FlowMarkSelect implements ComponentInterface {
16
15
  children: ComponentInterface[];
17
16
  dataType: ComponentInterface["dataType"];
18
17
  constructor(options: PickOption);
19
- renderMenu: (record: Record) => React.JSX.Element;
20
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
21
19
  renderLog: (r: Record) => React.JSX.Element | null;
22
20
  getComponentValue: (r: Record) => any;
@@ -9,13 +9,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
11
  import React from "react";
12
- import { Dropdown, Menu } from "antd";
13
12
  import ItemView from "../../commonComponents/ItemView";
13
+ import SelectMark from "../../commonComponents/SelectMark";
14
14
  import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
15
15
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import GetFormItem from "../GetFormItem";
17
17
  import { SYMBOL } from "../../constant";
18
- import "./icon/iconfont.css";
19
18
  var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options) {
20
19
  var _this = this;
21
20
  _classCallCheck(this, FlowMarkSelect);
@@ -32,33 +31,15 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
32
31
  _defineProperty(this, "canSort", void 0);
33
32
  _defineProperty(this, "children", void 0);
34
33
  _defineProperty(this, "dataType", void 0);
35
- _defineProperty(this, "renderMenu", function (record) {
36
- var menu = /*#__PURE__*/React.createElement(Menu, {
37
- onClick: function onClick(_ref) {
38
- var _this$effects, _this$effects2;
39
- var key = _ref.key,
40
- domEvent = _ref.domEvent;
41
- domEvent.stopPropagation();
42
- typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record));
43
- }
44
- }, _this.workOrderMark.map(function (item) {
45
- return /*#__PURE__*/React.createElement(Menu.Item, {
46
- key: item.value
47
- }, item.label);
48
- }));
49
- return menu;
50
- });
51
34
  _defineProperty(this, "renderPc", function (value, record) {
52
- var mark = _this.workOrderMark.find(function (item) {
53
- return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
35
+ var changeMarkHandle = function changeMarkHandle(key) {
36
+ var _this$effects, _this$effects2;
37
+ typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record));
38
+ };
39
+ return /*#__PURE__*/React.createElement(SelectMark, {
40
+ value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
41
+ onChange: changeMarkHandle
54
42
  });
55
- return /*#__PURE__*/React.createElement(Dropdown, {
56
- overlay: _this.renderMenu(record)
57
- }, /*#__PURE__*/React.createElement("span", {
58
- onClick: function onClick(e) {
59
- return e.stopPropagation();
60
- }
61
- }, (mark === null || mark === void 0 ? void 0 : mark.label) || "--"));
62
43
  });
63
44
  _defineProperty(this, "renderLog", function (r) {
64
45
  var mark = _this.workOrderMark.find(function (item) {
@@ -2,6 +2,7 @@ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type
2
2
  import React from "react";
3
3
  import { ExpressData, ExpressInterceptData, LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
4
4
  import InterceptSenderMobile from "./interceptSenderMobile";
5
+ import InterceptSnapshot from "./interceptSnapshot";
5
6
  import InterceptAddress from "./InterceptAddress";
6
7
  import InterceptType from "./InterceptType";
7
8
  import InterceptStatus from "./InterceptStatus";
@@ -19,6 +20,7 @@ declare class Logistics implements ComponentInterface {
19
20
  interceptType: InterceptType;
20
21
  interceptLogisticsStatus: InterceptStatus;
21
22
  interceptSenderMobile: InterceptSenderMobile;
23
+ interceptSnapshot: InterceptSnapshot;
22
24
  isCombinationComponent: boolean;
23
25
  formField: string;
24
26
  canSort: boolean;
@@ -29,7 +31,7 @@ declare class Logistics implements ComponentInterface {
29
31
  expressInterceptData: InstanceType<typeof ExpressInterceptData>;
30
32
  logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
31
33
  effects: ComponentInterface["effects"];
32
- dataType: ComponentInterface['dataType'];
34
+ dataType: ComponentInterface["dataType"];
33
35
  constructor(options: PickOption);
34
36
  renderClient: (record: any) => React.JSX.Element;
35
37
  renderLog: (record: any) => React.JSX.Element;
@@ -47,6 +49,7 @@ declare class Logistics implements ComponentInterface {
47
49
  name: any;
48
50
  mobile: any;
49
51
  };
52
+ interceptSnapshot: any;
50
53
  };
51
54
  renderPc: () => null;
52
55
  renderExport: () => null;
@@ -13,6 +13,7 @@ import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
13
13
  import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import GetFormItem from "../GetFormItem";
15
15
  import InterceptSenderMobile from "./interceptSenderMobile";
16
+ import InterceptSnapshot from "./interceptSnapshot";
16
17
  import InterceptAddress from "./InterceptAddress";
17
18
  import InterceptType from "./InterceptType";
18
19
  import InterceptStatus from "./InterceptStatus";
@@ -33,6 +34,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
33
34
  _defineProperty(this, "interceptType", void 0);
34
35
  _defineProperty(this, "interceptLogisticsStatus", void 0);
35
36
  _defineProperty(this, "interceptSenderMobile", void 0);
37
+ _defineProperty(this, "interceptSnapshot", void 0);
36
38
  _defineProperty(this, "isCombinationComponent", void 0);
37
39
  _defineProperty(this, "formField", void 0);
38
40
  _defineProperty(this, "canSort", void 0);
@@ -45,10 +47,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
45
47
  _defineProperty(this, "effects", void 0);
46
48
  _defineProperty(this, "dataType", void 0);
47
49
  _defineProperty(this, "renderClient", function (record) {
48
- return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record));
50
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptSnapshot.renderClient(record));
49
51
  });
50
52
  _defineProperty(this, "renderLog", function (record) {
51
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))));
53
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))));
52
54
  });
53
55
  _defineProperty(this, "getComponentValue", function (r) {
54
56
  return {
@@ -57,7 +59,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
57
59
  interceptSenderMobile: _this.interceptSenderMobile.getComponentValue(r),
58
60
  interceptType: _this.interceptType.getComponentValue(r),
59
61
  interceptLogisticsStatus: _this.interceptLogisticsStatus.getComponentValue(r),
60
- interceptRedirectTo: _this.interceptAddress.getComponentValue(r)
62
+ interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
63
+ interceptSnapshot: _this.interceptSnapshot.getComponentValue(r)
61
64
  };
62
65
  });
63
66
  _defineProperty(this, "renderPc", function () {
@@ -87,7 +90,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
87
90
  subKey: "interceptCompany"
88
91
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
89
92
  subKey: "interceptCode"
90
- })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item)];
93
+ })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
91
94
  });
92
95
  this.name = options.name;
93
96
  this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
@@ -106,6 +109,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
106
109
  this.interceptType = new InterceptType(options);
107
110
  this.interceptLogisticsStatus = new InterceptStatus(options);
108
111
  this.interceptSenderMobile = new InterceptSenderMobile(options);
112
+ this.interceptSnapshot = new InterceptSnapshot(options);
109
113
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
110
114
  id: "".concat(options.id, "_interceptCompany"),
111
115
  name: "物流信息"
@@ -116,8 +120,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
116
120
  }));
117
121
  this.isCombinationComponent = true;
118
122
  this.canSort = false;
119
- this.dataType = 'object';
120
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus];
123
+ this.dataType = "object";
124
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
121
125
  this.rules = [{
122
126
  validator: function validator(_, value) {
123
127
  var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre, _value$interceptSende;
@@ -14,7 +14,7 @@ declare class InterceptSenderMobile implements ComponentInterface {
14
14
  sortField: string;
15
15
  formField: string;
16
16
  canSort: boolean;
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
18
  children: ComponentInterface[];
19
19
  constructor(options: PickOption);
20
20
  getComponentValue: (r: Record) => any;
@@ -68,9 +68,9 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
68
68
  this.name = "发件人手机号";
69
69
  this.id = "".concat(options.id, "_interceptSenderMobile");
70
70
  this.companyId = "".concat(options.id, "_interceptCompany");
71
- this.formField = "".concat(options.id, "_interceptCompany");
72
- this.sortField = "".concat(options.id, "_interceptCompany");
73
- this.dataType = 'string';
71
+ this.formField = "".concat(options.id, "_interceptSenderMobile");
72
+ this.sortField = "".concat(options.id, "_interceptSenderMobile");
73
+ this.dataType = "string";
74
74
  this.type = options.type;
75
75
  this.componentConfig = options.componentConfig;
76
76
  this.rules = [];
@@ -0,0 +1,35 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class InterceptSnapshot implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ companyId: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ sortField: string;
15
+ formField: string;
16
+ canSort: boolean;
17
+ dataType: ComponentInterface["dataType"];
18
+ children: ComponentInterface[];
19
+ constructor(options: PickOption);
20
+ getComponentValue: (r: Record) => any;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: (value: any, record: Record) => any;
23
+ renderLog: (r: Record) => any;
24
+ renderExport: (value: any, record: Record) => any;
25
+ editRender: () => null;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "like";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ filterFn: (value: string) => (i: Record) => boolean;
33
+ };
34
+ }
35
+ export default InterceptSnapshot;
@@ -0,0 +1,84 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ 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); }
8
+ import React from "react";
9
+ import ItemView from "../../commonComponents/ItemView";
10
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { SYMBOL } from "../../constant";
12
+ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, InterceptSnapshot);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "companyId", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "rules", void 0);
20
+ _defineProperty(this, "componentConfig", void 0);
21
+ _defineProperty(this, "effects", void 0);
22
+ _defineProperty(this, "align", void 0);
23
+ _defineProperty(this, "width", void 0);
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "sortField", void 0);
26
+ _defineProperty(this, "formField", void 0);
27
+ _defineProperty(this, "canSort", void 0);
28
+ _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "getComponentValue", function (r) {
31
+ return r === null || r === void 0 ? void 0 : r[_this.id];
32
+ });
33
+ _defineProperty(this, "renderClient", function (record) {
34
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
+ id: _this.id,
36
+ label: _this.name,
37
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
38
+ }) : null;
39
+ });
40
+ _defineProperty(this, "renderPc", function (value, record) {
41
+ return record === null || record === void 0 ? void 0 : record[_this.id];
42
+ });
43
+ _defineProperty(this, "renderLog", function (r) {
44
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
45
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
46
+ });
47
+ _defineProperty(this, "renderExport", function (value, record) {
48
+ var _record;
49
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
50
+ });
51
+ _defineProperty(this, "editRender", function () {
52
+ return null;
53
+ });
54
+ _defineProperty(this, "filterConfig", function (item) {
55
+ return {
56
+ searchDefaultConditions: SYMBOL.like,
57
+ type: item.type,
58
+ id: "".concat(item.id, "_interceptLogisticsSnapshot"),
59
+ name: "".concat(item.name, "-\u5FEB\u7167"),
60
+ filterComponentType: "Input",
61
+ filterFn: function filterFn(value) {
62
+ return function (i) {
63
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsSnapshot")).includes(value);
64
+ };
65
+ }
66
+ };
67
+ });
68
+ this.name = "快照";
69
+ this.id = "".concat(options.id, "_interceptLogisticsSnapshot");
70
+ this.companyId = "".concat(options.id, "_interceptCompany");
71
+ this.formField = "".concat(options.id, "_interceptLogisticsSnapshot");
72
+ this.sortField = "".concat(options.id, "_interceptLogisticsSnapshot");
73
+ this.dataType = "string";
74
+ this.type = options.type;
75
+ this.componentConfig = options.componentConfig;
76
+ this.rules = [];
77
+ this.align = "left";
78
+ this.width = 200;
79
+ this.isCombinationComponent = false;
80
+ this.canSort = false;
81
+ this.children = [];
82
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
83
+ });
84
+ export default InterceptSnapshot;
@@ -109,7 +109,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
109
109
  };
110
110
  },
111
111
  formatFilterValue: function formatFilterValue(input) {
112
- return input.split(/[,|,]/);
112
+ return input.split(/[,|,|\s|\n|\rn]/);
113
113
  }
114
114
  };
115
115
  });
@@ -1,3 +1,3 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | CommonMultiStatus | CommonSystemOrder | CommonTradeId | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowWorkOrderId | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | LogisticsInterception | LogisticsTrajectory | NodeDeadLine | NodeStayDuration | Payment | BasicPicture | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | BasicSelect | ShopInput | StatusSelect | BasicTextArea | ThirdItemSelect | BasicDataTime | TradeDateTime | TradeId | WorkOrderId | BasicAddress | BasicCheckbox | BasicMultSelect | BasicGrade | CommonDataTime | ShopName | Logistics | ReturnLogistics | ERemark | AliPay | SystemOrderNo | Ordinary | TemplateSelect | PlatForm | Submitter | Handler | CompletedUser;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CommonTradeId | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsTrajectory | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WorkOrderId;
@@ -65,6 +65,7 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
65
65
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
66
66
  export { factory } from "./factory";
67
67
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
68
+ export { default as SelectMark } from "./commonComponents/SelectMark";
68
69
  export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
69
70
  export { default as ShopList } from "./commonComponents/ShopList";
70
71
  export { default as OperationLog } from "./commonComponents/OperationLog";
package/dist/esm/index.js CHANGED
@@ -65,6 +65,7 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
65
65
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
66
66
  export { factory } from "./factory";
67
67
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
68
+ export { default as SelectMark } from "./commonComponents/SelectMark";
68
69
  export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
69
70
  export { default as ShopList } from "./commonComponents/ShopList";
70
71
  export { default as OperationLog } from "./commonComponents/OperationLog";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.9.2",
3
+ "version": "0.10.0-alpha.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.9.2",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.8.19"
29
+ "@kmkf-fe-packages/basic-components": "^0.10.0-alpha.0",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.10.0-alpha.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "88fe1312b17cdff99c8ec6010b57629e5ca3f75f"
43
+ "gitHead": "7d9c668d6c0762e22076c64a714273a87f57d87d"
44
44
  }