@kmkf-fe-packages/services-components 0.28.2-rc.9 → 0.29.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 (24) hide show
  1. package/README.md +1 -0
  2. package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +1 -0
  3. package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +7 -7
  4. package/dist/esm/components/ErpTradeId/components/OrderNum/{index.module.scss → index.less} +2 -2
  5. package/dist/esm/components/LogisticsInterception/index.d.ts +16 -4
  6. package/dist/esm/components/LogisticsInterception/index.js +6 -11
  7. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +3 -3
  8. package/dist/esm/components/LogisticsMoreTrajectory/index.js +9 -6
  9. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
  10. package/dist/esm/components/{LogisticsInterception/InterceptState.js → LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js} +37 -46
  11. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
  12. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
  13. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
  14. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
  15. package/dist/esm/components/LogisticsTrajectory/index.js +2 -1
  16. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +3 -1
  17. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +4 -4
  18. package/dist/esm/components/Payment/PaymentTid.d.ts +2 -1
  19. package/dist/esm/components/Payment/PaymentTid.js +25 -2
  20. package/dist/esm/factory.d.ts +2 -2
  21. package/dist/esm/factory.js +4 -1
  22. package/dist/esm/index.d.ts +3 -3
  23. package/package.json +4 -4
  24. package/dist/esm/components/LogisticsInterception/InterceptState.d.ts +0 -37
package/README.md CHANGED
@@ -3,3 +3,4 @@
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
5
  ---
6
+
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  declare const OrderNum: ({ value, onChange, onTradeIdBlur, ...otherProp }: any) => React.JSX.Element;
3
4
  export default OrderNum;
@@ -30,21 +30,21 @@ import get from 'lodash/get';
30
30
  import { ErpScenes } from "../../../../index";
31
31
  import { queryOrderDetail, queryDouDianOpenId } from "./communication";
32
32
  import noImage from "./noImage.png";
33
- import styles from "./index.module.scss";
33
+ import "./index.less";
34
34
  var Card = function Card(_ref) {
35
35
  var tid = _ref.tid,
36
36
  sid = _ref.sid,
37
37
  itemList = _ref.itemList,
38
38
  sysStatusName = _ref.sysStatusName;
39
39
  return /*#__PURE__*/React.createElement("div", {
40
- className: styles.card
40
+ className: "erp-suborder-card"
41
41
  }, /*#__PURE__*/React.createElement("span", {
42
42
  style: {
43
43
  display: 'flex',
44
44
  alignItems: 'center'
45
45
  }
46
46
  }, sysStatusName && /*#__PURE__*/React.createElement("span", {
47
- className: styles.tag
47
+ className: "tag"
48
48
  }, sysStatusName), /*#__PURE__*/React.createElement("span", {
49
49
  style: {
50
50
  marginLeft: '8px',
@@ -53,7 +53,7 @@ var Card = function Card(_ref) {
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u5355\u53F7: ", /*#__PURE__*/React.createElement("b", null, sid)), /*#__PURE__*/React.createElement("span", null, "\u5E73\u53F0\u5355\u53F7: ", /*#__PURE__*/React.createElement("b", null, tid)))), itemList.map(function (item) {
55
55
  return /*#__PURE__*/React.createElement("div", {
56
- className: styles.good
56
+ className: "good"
57
57
  }, item.picUrl ? /*#__PURE__*/React.createElement(Image, {
58
58
  width: 56,
59
59
  src: item.picUrl
@@ -65,9 +65,9 @@ var Card = function Card(_ref) {
65
65
  height: '56px'
66
66
  }
67
67
  }), /*#__PURE__*/React.createElement("div", {
68
- className: styles.content
68
+ className: "content"
69
69
  }, /*#__PURE__*/React.createElement("span", null, item.title), /*#__PURE__*/React.createElement("span", null, item.productCode)), /*#__PURE__*/React.createElement("div", {
70
- className: styles.price
70
+ className: "price"
71
71
  }, item.price && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("b", {
72
72
  style: {
73
73
  color: '#ff7a45',
@@ -104,7 +104,7 @@ var SubOrderList = function SubOrderList(_ref2) {
104
104
  height: '300px',
105
105
  overflowY: 'auto'
106
106
  },
107
- className: styles.itemWrap,
107
+ className: "erp-suborder-itemWrap",
108
108
  onClick: function onClick(e) {
109
109
  return e.stopPropagation();
110
110
  }
@@ -1,7 +1,7 @@
1
- .itemWrap {
1
+ .erp-suborder-itemWrap {
2
2
  width: 420px;
3
3
  }
4
- .card {
4
+ .erp-suborder-card {
5
5
  margin-bottom: 16px;
6
6
  .tag {
7
7
  padding: 2px;
@@ -6,7 +6,6 @@ import InterceptSnapshot from "./interceptSnapshot";
6
6
  import InterceptAddress from "./InterceptAddress";
7
7
  import InterceptType from "./InterceptType";
8
8
  import InterceptStatus from "./InterceptStatus";
9
- import InterceptState from "./InterceptState";
10
9
  import Express from "../Express";
11
10
  import ExpressCode from "../ExpressCode";
12
11
  declare class Logistics implements ComponentInterface {
@@ -22,7 +21,6 @@ declare class Logistics implements ComponentInterface {
22
21
  interceptLogisticsStatus: InterceptStatus;
23
22
  interceptSenderMobile: InterceptSenderMobile;
24
23
  interceptSnapshot: InterceptSnapshot;
25
- interceptState: InterceptState;
26
24
  isCombinationComponent: boolean;
27
25
  formField: string;
28
26
  canSort: boolean;
@@ -52,12 +50,21 @@ declare class Logistics implements ComponentInterface {
52
50
  mobile: any;
53
51
  };
54
52
  interceptSnapshot: any;
55
- interceptState: any;
56
53
  };
57
54
  renderPc: () => null;
58
55
  renderExport: () => null;
59
56
  editRender: (p: any) => React.JSX.Element;
60
57
  filterConfig: (item: ColumnConfig) => ({
58
+ searchDefaultConditions: "in";
59
+ type: string;
60
+ id: string;
61
+ name: string;
62
+ filterComponentType: "MultipleSelect";
63
+ props: {
64
+ options: any[];
65
+ };
66
+ filterFn: (value: string) => (i: Record) => boolean;
67
+ } | {
61
68
  searchDefaultConditions: "like";
62
69
  type: string;
63
70
  id: string;
@@ -71,8 +78,13 @@ declare class Logistics implements ComponentInterface {
71
78
  name: string;
72
79
  filterComponentType: "MultipleSelect";
73
80
  props: {
74
- options: any[];
81
+ options: {
82
+ label: string;
83
+ value: string;
84
+ }[];
75
85
  };
86
+ formatFilterValue: (value: string[]) => string[];
87
+ filterFn: (value: string[]) => (i: Record) => boolean;
76
88
  })[];
77
89
  }
78
90
  export default Logistics;
@@ -17,7 +17,6 @@ import InterceptSnapshot from "./interceptSnapshot";
17
17
  import InterceptAddress from "./InterceptAddress";
18
18
  import InterceptType from "./InterceptType";
19
19
  import InterceptStatus from "./InterceptStatus";
20
- import InterceptState from "./InterceptState";
21
20
  import Express from "../Express";
22
21
  import ExpressCode from "../ExpressCode";
23
22
  import ColumnHeader from "./columnHeader";
@@ -36,7 +35,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
36
35
  _defineProperty(this, "interceptLogisticsStatus", void 0);
37
36
  _defineProperty(this, "interceptSenderMobile", void 0);
38
37
  _defineProperty(this, "interceptSnapshot", void 0);
39
- _defineProperty(this, "interceptState", void 0);
40
38
  _defineProperty(this, "isCombinationComponent", void 0);
41
39
  _defineProperty(this, "formField", void 0);
42
40
  _defineProperty(this, "canSort", void 0);
@@ -49,10 +47,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
49
47
  _defineProperty(this, "effects", void 0);
50
48
  _defineProperty(this, "dataType", void 0);
51
49
  _defineProperty(this, "renderClient", function (record) {
52
- 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), _this.interceptState.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));
53
51
  });
54
52
  _defineProperty(this, "renderLog", function (record) {
55
- 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))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.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))));
56
54
  });
57
55
  _defineProperty(this, "getComponentValue", function (r) {
58
56
  return {
@@ -62,8 +60,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
62
60
  interceptType: _this.interceptType.getComponentValue(r),
63
61
  interceptLogisticsStatus: _this.interceptLogisticsStatus.getComponentValue(r),
64
62
  interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
65
- interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
66
- interceptState: _this.interceptState.getComponentValue(r)
63
+ interceptSnapshot: _this.interceptSnapshot.getComponentValue(r)
67
64
  };
68
65
  });
69
66
  _defineProperty(this, "renderPc", function () {
@@ -85,8 +82,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
85
82
  logisticsOptions: _this.expressDateInstance.getExpressData(),
86
83
  expressInterceptData: _this.expressInterceptData.getExpressData(),
87
84
  logisticsAddressData: _this.logisticsAddressData.getAddressData(),
88
- isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing,
89
- showState: true
85
+ isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
90
86
  }))
91
87
  });
92
88
  });
@@ -95,7 +91,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
95
91
  subKey: "interceptCompany"
96
92
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
97
93
  subKey: "interceptCode"
98
- })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)];
94
+ })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
99
95
  });
100
96
  this.name = options.name;
101
97
  this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
@@ -115,7 +111,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
115
111
  this.interceptLogisticsStatus = new InterceptStatus(options);
116
112
  this.interceptSenderMobile = new InterceptSenderMobile(options);
117
113
  this.interceptSnapshot = new InterceptSnapshot(options);
118
- this.interceptState = new InterceptState(options);
119
114
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
120
115
  id: "".concat(options.id, "_interceptCompany"),
121
116
  name: "物流信息"
@@ -127,7 +122,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
127
122
  this.isCombinationComponent = true;
128
123
  this.canSort = false;
129
124
  this.dataType = "object";
130
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot, this.interceptState];
125
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
131
126
  this.rules = [{
132
127
  validator: function validator(_, value) {
133
128
  var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre, _value$interceptSende;
@@ -4,9 +4,9 @@ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
4
  import TrajectoryCompany from "./trajectoryCompany";
5
5
  import TrajectoryCode from "./trajectoryCode";
6
6
  import TrajectorySnapshot from "./trajectorySnapshot";
7
- import TrajectoryStatus from '../LogisticsTrajectory/trajectoryStatus';
8
- import TrajectoryLastLogisticsInfo from '../LogisticsTrajectory/trajectoryLastLogisticsInfo';
9
- import TrajectoryLastUpdateTime from '../LogisticsTrajectory/trajectoryLastUpdateTime';
7
+ import TrajectoryStatus from './trajectoryStatus';
8
+ import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
9
+ import TrajectoryLastUpdateTime from './trajectoryLastUpdateTime';
10
10
  import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
11
11
  declare class LogisticsMoreTrajectory implements ComponentInterface {
12
12
  name: string;
@@ -13,9 +13,9 @@ import { LogisticsMoreTrajectory as MoreTrajectory } from "@kmkf-fe-packages/bas
13
13
  import TrajectoryCompany from "./trajectoryCompany";
14
14
  import TrajectoryCode from "./trajectoryCode";
15
15
  import TrajectorySnapshot from "./trajectorySnapshot";
16
- import TrajectoryStatus from "../LogisticsTrajectory/trajectoryStatus";
17
- import TrajectoryLastLogisticsInfo from "../LogisticsTrajectory/trajectoryLastLogisticsInfo";
18
- import TrajectoryLastUpdateTime from "../LogisticsTrajectory/trajectoryLastUpdateTime";
16
+ import TrajectoryStatus from "./trajectoryStatus";
17
+ import TrajectoryLastLogisticsInfo from "./trajectoryLastLogisticsInfo";
18
+ import TrajectoryLastUpdateTime from "./trajectoryLastUpdateTime";
19
19
  import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
20
20
  import GetFormItem from "../GetFormItem";
21
21
  import ItemView from "../../commonComponents/ItemView";
@@ -128,15 +128,18 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
128
128
  }));
129
129
  this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
130
130
  name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
131
- id: "".concat(this.id)
131
+ id: "".concat(this.id, "_trajectoryMoreStatus"),
132
+ parentId: "".concat(this.id)
132
133
  }));
133
134
  this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
134
135
  name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
135
- id: "".concat(this.id, "_trajectoryLastLogisticsInfo")
136
+ id: "".concat(this.id, "_trajectoryMoreLastLogisticsInfo"),
137
+ parentId: "".concat(this.id)
136
138
  }));
137
139
  this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
138
140
  name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
139
- id: "".concat(this.id, "_trajectoryLastUpdateTime")
141
+ id: "".concat(this.id, "_trajectoryMoreLastUpdateTime"),
142
+ parentId: "".concat(this.id)
140
143
  }));
141
144
  this.isCombinationComponent = true;
142
145
  this.canSort = false;
@@ -0,0 +1,30 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class TrajectoryLastLogisticsInfo implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ parentId: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface["dataType"];
18
+ constructor(options: PickOption & {
19
+ parentId: string;
20
+ });
21
+ renderCode: (record: any, w?: number) => React.JSX.Element;
22
+ renderClient: () => null;
23
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
24
+ renderLog: (r: Record) => React.JSX.Element | null;
25
+ getComponentValue: (r: Record) => any;
26
+ renderExport: (value: string, record: Record) => any;
27
+ editRender: () => null;
28
+ filterConfig: (item: ColumnConfig) => never[];
29
+ }
30
+ export default TrajectoryLastLogisticsInfo;
@@ -6,19 +6,17 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
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
8
  import React from "react";
9
- import ItemView from "../../commonComponents/ItemView";
10
9
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
- import { SYMBOL } from "../../constant";
12
- var InterceptState = /*#__PURE__*/_createClass(function InterceptState(options) {
10
+ var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryLastLogisticsInfo(options) {
13
11
  var _this = this;
14
- _classCallCheck(this, InterceptState);
12
+ _classCallCheck(this, TrajectoryLastLogisticsInfo);
15
13
  _defineProperty(this, "name", void 0);
16
14
  _defineProperty(this, "id", void 0);
15
+ _defineProperty(this, "parentId", void 0);
17
16
  _defineProperty(this, "sortField", void 0);
18
17
  _defineProperty(this, "type", void 0);
19
18
  _defineProperty(this, "rules", void 0);
20
19
  _defineProperty(this, "componentConfig", void 0);
21
- _defineProperty(this, "effects", void 0);
22
20
  _defineProperty(this, "align", void 0);
23
21
  _defineProperty(this, "width", void 0);
24
22
  _defineProperty(this, "isCombinationComponent", void 0);
@@ -26,64 +24,57 @@ var InterceptState = /*#__PURE__*/_createClass(function InterceptState(options)
26
24
  _defineProperty(this, "canSort", void 0);
27
25
  _defineProperty(this, "children", void 0);
28
26
  _defineProperty(this, "dataType", void 0);
29
- _defineProperty(this, "options", void 0);
30
- _defineProperty(this, "getComponentValue", function (r) {
31
- return r === null || r === void 0 ? void 0 : r[_this.id];
27
+ _defineProperty(this, "renderCode", function (record) {
28
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
29
+ var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ onClick: function onClick(e) {
32
+ return e.stopPropagation();
33
+ }
34
+ }, list.length ? list.map(function (item, index) {
35
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.trajectoryLastLogisticsInfo);
36
+ }) : "--");
32
37
  });
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;
38
+ _defineProperty(this, "renderClient", function () {
39
+ return null;
39
40
  });
40
41
  _defineProperty(this, "renderPc", function (value, record) {
41
- var _record$_this$id;
42
- return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
42
+ return _this.renderCode(record || [], 700);
43
43
  });
44
44
  _defineProperty(this, "renderLog", function (r) {
45
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
46
- return r === null || r === void 0 ? void 0 : r[_this.id];
45
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
46
+ return _this.renderPc(undefined, r);
47
+ });
48
+ _defineProperty(this, "getComponentValue", function (r) {
49
+ return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
47
50
  });
48
51
  _defineProperty(this, "renderExport", function (value, record) {
49
- var _record$_this$id2;
50
- return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
52
+ var _list$map;
53
+ var list = record === null || record === void 0 ? void 0 : record[_this.id];
54
+ if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
55
+ return list === null || list === void 0 ? void 0 : (_list$map = list.map(function (item, index) {
56
+ return "\u5305\u88F9".concat(index + 1, ": ").concat(item !== null && item !== void 0 ? item : '--');
57
+ })) === null || _list$map === void 0 ? void 0 : _list$map.join('/');
51
58
  });
52
59
  _defineProperty(this, "editRender", function () {
53
60
  return null;
54
61
  });
55
62
  _defineProperty(this, "filterConfig", function (item) {
56
- return {
57
- searchDefaultConditions: SYMBOL.in,
58
- type: item.type,
59
- id: "".concat(item.id, "_qySelfInterceptStatus"),
60
- name: "".concat(item.name, "-\u62E6\u622A\u72B6\u6001"),
61
- filterComponentType: "MultipleSelect",
62
- props: {
63
- options: _this.options || []
64
- }
65
- };
63
+ return [];
66
64
  });
67
- this.name = "拦截状态";
68
- this.id = "".concat(options.id, "_qySelfInterceptStatus");
69
- this.sortField = "".concat(options.id, "_qySelfInterceptStatus");
70
- this.formField = "".concat(options.id, "_qySelfInterceptStatus");
65
+ this.name = options.name;
66
+ this.id = options.id;
67
+ this.parentId = options.parentId;
68
+ this.sortField = options.id;
69
+ this.formField = options.id;
71
70
  this.type = options.type;
72
71
  this.componentConfig = options.componentConfig;
73
- this.rules = [];
74
72
  this.align = "left";
75
73
  this.width = 200;
76
74
  this.isCombinationComponent = false;
77
- this.canSort = true;
78
- this.children = [];
79
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
75
+ this.canSort = false;
80
76
  this.dataType = "string";
81
- this.options = [{
82
- label: "拦截成功",
83
- value: "拦截成功"
84
- }, {
85
- label: "拦截失败",
86
- value: "拦截失败"
87
- }];
77
+ this.children = [];
78
+ this.rules = [];
88
79
  });
89
- export default InterceptState;
80
+ export default TrajectoryLastLogisticsInfo;
@@ -0,0 +1,29 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class TrajectoryLastUpdateTime implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ parentId: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface["dataType"];
18
+ constructor(options: PickOption & {
19
+ parentId: string;
20
+ });
21
+ renderCode: (record: any, w?: number) => React.JSX.Element;
22
+ renderClient: () => null;
23
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
24
+ renderLog: (r: Record) => React.JSX.Element | null;
25
+ renderExport: (value: string, record: Record) => any;
26
+ editRender: () => null;
27
+ filterConfig: (item: ColumnConfig) => never[];
28
+ }
29
+ export default TrajectoryLastUpdateTime;
@@ -0,0 +1,77 @@
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
+ var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLastUpdateTime(options) {
11
+ var _this = this;
12
+ _classCallCheck(this, TrajectoryLastUpdateTime);
13
+ _defineProperty(this, "name", void 0);
14
+ _defineProperty(this, "id", void 0);
15
+ _defineProperty(this, "parentId", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "formField", void 0);
24
+ _defineProperty(this, "canSort", void 0);
25
+ _defineProperty(this, "children", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "renderCode", function (record) {
28
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
29
+ var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ onClick: function onClick(e) {
32
+ return e.stopPropagation();
33
+ }
34
+ }, list.length ? list.map(function (item, index) {
35
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.trajectoryLastUpdateTime);
36
+ }) : "--");
37
+ });
38
+ _defineProperty(this, "renderClient", function () {
39
+ return null;
40
+ });
41
+ _defineProperty(this, "renderPc", function (value, record) {
42
+ return _this.renderCode(record || [], 700);
43
+ });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
46
+ return _this.renderPc(undefined, r);
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _list$map;
50
+ var list = record === null || record === void 0 ? void 0 : record[_this.id];
51
+ if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
52
+ return list === null || list === void 0 ? void 0 : (_list$map = list.map(function (item, index) {
53
+ return "\u5305\u88F9".concat(index + 1, ": ").concat(item !== null && item !== void 0 ? item : '--');
54
+ })) === null || _list$map === void 0 ? void 0 : _list$map.join('/');
55
+ });
56
+ _defineProperty(this, "editRender", function () {
57
+ return null;
58
+ });
59
+ _defineProperty(this, "filterConfig", function (item) {
60
+ return [];
61
+ });
62
+ this.name = options.name;
63
+ this.id = options.id;
64
+ this.parentId = options.parentId;
65
+ this.sortField = options.id;
66
+ this.formField = options.id;
67
+ this.type = options.type;
68
+ this.componentConfig = options.componentConfig;
69
+ this.align = "left";
70
+ this.width = 200;
71
+ this.isCombinationComponent = false;
72
+ this.canSort = false;
73
+ this.dataType = "string";
74
+ this.children = [];
75
+ this.rules = [];
76
+ });
77
+ export default TrajectoryLastUpdateTime;
@@ -0,0 +1,32 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class trajectoryStatus implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ parentId: string;
8
+ sortField: string;
9
+ type: string;
10
+ rules: any[];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ align: ALignType;
13
+ width: number;
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface["dataType"];
19
+ expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
20
+ constructor(options: PickOption & {
21
+ parentId: string;
22
+ });
23
+ renderStatus: (record: any, w?: number) => React.JSX.Element;
24
+ renderCode: (record: any, w?: number) => React.JSX.Element;
25
+ renderClient: () => null;
26
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
27
+ renderLog: (r: Record) => React.JSX.Element | null;
28
+ renderExport: (value: string, record: Record) => any;
29
+ editRender: () => null;
30
+ filterConfig: (item: ColumnConfig) => never[];
31
+ }
32
+ export default trajectoryStatus;
@@ -0,0 +1,96 @@
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 { isNull, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
10
+ import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
11
+ var trajectoryStatus = /*#__PURE__*/_createClass(function trajectoryStatus(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, trajectoryStatus);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "parentId", void 0);
17
+ _defineProperty(this, "sortField", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "rules", void 0);
20
+ _defineProperty(this, "componentConfig", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "expressInterceptInstance", void 0);
29
+ _defineProperty(this, "renderStatus", function (record) {
30
+ var _this$expressIntercep;
31
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
32
+ var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record['trajectoryStatus'])];
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ onClick: function onClick(e) {
35
+ return e.stopPropagation();
36
+ }
37
+ }, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
38
+ modelWidth: w,
39
+ interceptCompany: record['trajectoryCompany'],
40
+ interceptCode: record['trajectoryCode'],
41
+ interceptSenderMobile: record['trajectoryPhone']
42
+ }) : null);
43
+ });
44
+ _defineProperty(this, "renderCode", function (record) {
45
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
46
+ var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
47
+ return /*#__PURE__*/React.createElement("div", {
48
+ onClick: function onClick(e) {
49
+ return e.stopPropagation();
50
+ }
51
+ }, list.length ? list.map(function (item, index) {
52
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.renderStatus(item));
53
+ }) : "--");
54
+ });
55
+ _defineProperty(this, "renderClient", function () {
56
+ return null;
57
+ });
58
+ _defineProperty(this, "renderPc", function (value, record) {
59
+ return _this.renderCode(record || [], 700);
60
+ });
61
+ _defineProperty(this, "renderLog", function (r) {
62
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
63
+ return _this.renderPc(undefined, r);
64
+ });
65
+ _defineProperty(this, "renderExport", function (value, record) {
66
+ var _list$map;
67
+ var list = record === null || record === void 0 ? void 0 : record[_this.id];
68
+ if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
69
+ return list === null || list === void 0 ? void 0 : (_list$map = list.map(function (item, index) {
70
+ var _this$expressIntercep2, _this$expressIntercep3;
71
+ return "\u5305\u88F9".concat(index + 1, ": ").concat((_this$expressIntercep2 = (_this$expressIntercep3 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep3 === void 0 ? void 0 : _this$expressIntercep3[item]) !== null && _this$expressIntercep2 !== void 0 ? _this$expressIntercep2 : '--');
72
+ })) === null || _list$map === void 0 ? void 0 : _list$map.join('/');
73
+ });
74
+ _defineProperty(this, "editRender", function () {
75
+ return null;
76
+ });
77
+ _defineProperty(this, "filterConfig", function (item) {
78
+ return [];
79
+ });
80
+ this.name = options.name;
81
+ this.id = options.id;
82
+ this.parentId = options.parentId;
83
+ this.sortField = options.id;
84
+ this.formField = options.id;
85
+ this.type = options.type;
86
+ this.componentConfig = options.componentConfig;
87
+ this.align = "left";
88
+ this.width = 200;
89
+ this.isCombinationComponent = false;
90
+ this.canSort = false;
91
+ this.dataType = "string";
92
+ this.children = [];
93
+ this.rules = [];
94
+ this.expressInterceptInstance = ExpressInterceptData.getInstance();
95
+ });
96
+ export default trajectoryStatus;
@@ -102,7 +102,8 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
102
102
  }));
103
103
  this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
104
104
  name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
105
- id: "".concat(this.id)
105
+ id: "".concat(this.id, "_trajectoryStatus"),
106
+ parentId: "".concat(this.id)
106
107
  }));
107
108
  this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
108
109
  name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
@@ -17,7 +17,9 @@ declare class TrajectoryStatus implements ComponentInterface {
17
17
  children: ComponentInterface[];
18
18
  dataType: ComponentInterface["dataType"];
19
19
  expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
20
- constructor(options: PickOption);
20
+ constructor(options: PickOption & {
21
+ parentId: string;
22
+ });
21
23
  renderStatus: (record: any, w?: number) => React.JSX.Element;
22
24
  renderClient: (record: any) => React.JSX.Element | null;
23
25
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -75,10 +75,10 @@ var TrajectoryStatus = /*#__PURE__*/_createClass(function TrajectoryStatus(optio
75
75
  return [];
76
76
  });
77
77
  this.name = options.name;
78
- this.parentId = "".concat(options.id);
79
- this.id = "".concat(options.id, "_trajectoryStatus");
80
- this.sortField = "".concat(options.id, "_trajectoryStatus");
81
- this.formField = "".concat(options.id, "_trajectoryStatus");
78
+ this.parentId = "".concat(options.parentId);
79
+ this.id = "".concat(options.id);
80
+ this.sortField = "".concat(options.id);
81
+ this.formField = "".concat(options.id);
82
82
  this.type = options.type;
83
83
  this.componentConfig = options.componentConfig;
84
84
  this.rules = [];
@@ -16,7 +16,8 @@ declare class PaymentTid implements ComponentInterface {
16
16
  dataType: ComponentInterface['dataType'];
17
17
  constructor(options: PickOption);
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: unknown, record: any) => React.JSX.Element;
19
+ copyHandle: (text: string) => void;
20
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
20
21
  renderLog: (r: Record) => React.JSX.Element | null;
21
22
  getComponentValue: (r: Record) => any;
22
23
  renderExport: (value: string) => string;
@@ -6,10 +6,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
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
8
  import React from 'react';
9
+ import { message } from 'antd';
9
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
+ import { CopyOutlined } from '@ant-design/icons';
10
12
  import GetFormItem from "../GetFormItem";
11
13
  import ItemView from "../../commonComponents/ItemView";
12
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import copy from 'copy-to-clipboard';
13
16
  import { SYMBOL } from "../../constant";
14
17
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
15
18
  var _this = this;
@@ -34,9 +37,29 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
34
37
  value: record === null || record === void 0 ? void 0 : record[_this.id]
35
38
  }) : null;
36
39
  });
40
+ _defineProperty(this, "copyHandle", function (text) {
41
+ copy(text);
42
+ message.success('复制成功');
43
+ });
37
44
  _defineProperty(this, "renderPc", function (value, record) {
38
- var _record$_this$id;
39
- return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
45
+ if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
47
+ }
48
+ return /*#__PURE__*/React.createElement("span", {
49
+ onClick: function onClick(e) {
50
+ return e.stopPropagation();
51
+ }
52
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
53
+ onClick: function onClick(e) {
54
+ _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
55
+ e.stopPropagation();
56
+ }
57
+ }, /*#__PURE__*/React.createElement("span", {
58
+ style: {
59
+ paddingLeft: '4px',
60
+ cursor: 'pointer'
61
+ }
62
+ }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
40
63
  });
41
64
  _defineProperty(this, "renderLog", function (r) {
42
65
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonInput, PaymentVoucherCode } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonInput, PaymentVoucherCode } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | CommonInput | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => LogisticsInterception | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | CommonInput | PaymentVoucherCode;
@@ -1,6 +1,6 @@
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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, CommonInput, PaymentVoucherCode } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -196,6 +196,9 @@ export var factory = function factory(type, options) {
196
196
  return new CommonDataTime(options);
197
197
  case "FLOW_UPDATE_DATETIME":
198
198
  return new CommonDataTime(options);
199
+ case "WDT_GOODS":
200
+ // 万里牛商品
201
+ return new WdtGoods(options);
199
202
  case "BUSINESS_ORDER_NO":
200
203
  return new CommonInput(options);
201
204
  case "PAYMENT_VOUCHER_CODE":
@@ -70,9 +70,9 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
70
70
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
71
71
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
72
72
  export { default as BsPosting } from "./components/BS/BsPosting";
73
- export { default as NodeInput } from './components/NodeInput';
74
- export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
75
- export { default as MsgStatus } from './components/MsgStatus';
73
+ export { default as NodeInput } from "./components/NodeInput";
74
+ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
75
+ export { default as MsgStatus } from "./components/MsgStatus";
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
77
  export { default as CommonInput } from "./components/CommonInput";
78
78
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.28.2-rc.9",
3
+ "version": "0.29.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.28.2-rc.9",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.28.2-rc.8"
23
+ "@kmkf-fe-packages/basic-components": "^0.29.0",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.29.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "7b7752d74c08e78c39487bd51de81aa2ddae45b7",
40
+ "gitHead": "aa1d1ca47391d70cec8f8783fe302e23ed640f58",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }
@@ -1,37 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
3
- declare class InterceptState implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- sortField: 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
- formField: string;
15
- canSort: boolean;
16
- children: ComponentInterface[];
17
- dataType: ComponentInterface["dataType"];
18
- options: ComponentInterface["options"];
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: "in";
28
- type: string;
29
- id: string;
30
- name: string;
31
- filterComponentType: "MultipleSelect";
32
- props: {
33
- options: any[];
34
- };
35
- };
36
- }
37
- export default InterceptState;