@kmkf-fe-packages/services-components 0.27.0 → 0.27.1-test.11

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 (80) hide show
  1. package/dist/esm/commonComponents/CopyText/index.d.ts +7 -0
  2. package/dist/esm/commonComponents/CopyText/index.js +14 -0
  3. package/dist/esm/commonComponents/ErpContext/index.d.ts +16 -0
  4. package/dist/esm/commonComponents/ErpContext/index.js +68 -0
  5. package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
  6. package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
  7. package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
  8. package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
  9. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
  10. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
  11. package/dist/esm/components/BS/BsLogistics/index.js +6 -3
  12. package/dist/esm/components/BS/BsReissue/index.js +7 -7
  13. package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
  14. package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
  15. package/dist/esm/components/BS/common/expressCompany.js +3 -2
  16. package/dist/esm/components/BS/common/index.d.ts +1 -0
  17. package/dist/esm/components/BS/common/index.js +2 -1
  18. package/dist/esm/components/BuyerNick/index.d.ts +3 -3
  19. package/dist/esm/components/BuyerNick/index.js +9 -19
  20. package/dist/esm/components/Common/index.d.ts +3 -2
  21. package/dist/esm/components/Common/index.js +261 -171
  22. package/dist/esm/components/CommonInput/index.d.ts +34 -0
  23. package/dist/esm/components/CommonInput/index.js +105 -0
  24. package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
  25. package/dist/esm/components/CommonTradeId/index.js +15 -26
  26. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.d.ts +2 -0
  27. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +23 -0
  28. package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +4 -0
  29. package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +169 -0
  30. package/dist/esm/components/ErpTradeId/components/OrderNum/index.less +30 -0
  31. package/dist/esm/components/ErpTradeId/components/OrderNum/noImage.png +0 -0
  32. package/dist/esm/components/ErpTradeId/index.MD +1 -0
  33. package/dist/esm/components/ErpTradeId/index.d.ts +2 -29
  34. package/dist/esm/components/ErpTradeId/index.js +41 -104
  35. package/dist/esm/components/ExpressCode/index.d.ts +2 -2
  36. package/dist/esm/components/ExpressCode/index.js +9 -5
  37. package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
  38. package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
  39. package/dist/esm/components/JST/JstSendGood/index.js +8 -5
  40. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
  41. package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
  42. package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
  43. package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
  44. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
  45. package/dist/esm/components/LogisticsMoreTrajectory/index.js +57 -4
  46. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
  47. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js +80 -0
  48. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
  49. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
  50. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
  51. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
  52. package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
  53. package/dist/esm/components/LogisticsTrajectory/index.js +26 -4
  54. package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
  55. package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
  56. package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
  57. package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
  58. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +32 -0
  59. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
  60. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
  61. package/dist/esm/components/Payment/PaymentStatus.js +30 -30
  62. package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
  63. package/dist/esm/components/Payment/PaymentTid.js +14 -3
  64. package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
  65. package/dist/esm/components/PaymentVoucherCode/index.js +108 -0
  66. package/dist/esm/components/Select/index.d.ts +5 -5
  67. package/dist/esm/components/Select/index.js +22 -14
  68. package/dist/esm/components/TradeId/index.d.ts +0 -1
  69. package/dist/esm/components/TradeId/index.js +7 -19
  70. package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
  71. package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
  72. package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
  73. package/dist/esm/components/WorkOrderId/index.js +4 -18
  74. package/dist/esm/factory.d.ts +2 -2
  75. package/dist/esm/factory.js +9 -3
  76. package/dist/esm/index.d.ts +8 -3
  77. package/dist/esm/index.js +8 -1
  78. package/dist/esm/service/api.d.ts +3 -0
  79. package/dist/esm/service/api.js +36 -16
  80. package/package.json +4 -4
@@ -1,116 +1,53 @@
1
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
3
  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
4
  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
5
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
10
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5
13
  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
14
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
15
  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
16
  import React from 'react';
9
- import { TradeId } from '@kmkf-fe-packages/basic-components';
10
- import copy from 'copy-to-clipboard';
11
- import { message } from 'antd';
12
- import { CopyOutlined } from '@ant-design/icons';
13
17
  import GetFormItem from "../GetFormItem";
14
- import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
- import { SYMBOL } from "../../constant";
17
- var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
18
- var _this = this;
19
- _classCallCheck(this, ErpTradeId);
20
- _defineProperty(this, "name", void 0);
21
- _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
- _defineProperty(this, "type", void 0);
24
- _defineProperty(this, "rules", void 0);
25
- _defineProperty(this, "componentConfig", void 0);
26
- _defineProperty(this, "isCombinationComponent", void 0);
27
- _defineProperty(this, "formField", void 0);
28
- _defineProperty(this, "canSort", void 0);
29
- _defineProperty(this, "children", void 0);
30
- _defineProperty(this, "dataType", void 0);
31
- _defineProperty(this, "renderClient", function (record) {
32
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
33
- id: _this.id,
34
- label: _this.name,
35
- value: record === null || record === void 0 ? void 0 : record[_this.id]
36
- }) : null;
37
- });
38
- _defineProperty(this, "copyHandle", function (text) {
39
- copy(text);
40
- message.success('复制成功');
41
- });
42
- _defineProperty(this, "renderPc", function (value, record) {
43
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
44
- return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
18
+ import TradeId from "../TradeId";
19
+ import OrderNo from "./components/OrderNum";
20
+ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
21
+ _inherits(ErpTradeId, _TradeId);
22
+ var _super = _createSuper(ErpTradeId);
23
+ function ErpTradeId() {
24
+ var _this;
25
+ _classCallCheck(this, ErpTradeId);
26
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27
+ args[_key] = arguments[_key];
45
28
  }
46
- return /*#__PURE__*/React.createElement("span", {
47
- onClick: function onClick(e) {
48
- return e.stopPropagation();
49
- }
50
- }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")], /*#__PURE__*/React.createElement("span", {
51
- onClick: function onClick(e) {
52
- _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]);
53
- e.stopPropagation();
54
- }
55
- }, /*#__PURE__*/React.createElement("span", {
56
- style: {
57
- paddingLeft: '4px',
58
- cursor: 'pointer'
59
- }
60
- }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
61
- });
62
- _defineProperty(this, "renderLog", function (r) {
63
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
64
- return _this.renderPc(undefined, r);
65
- });
66
- _defineProperty(this, "getComponentValue", function (r) {
67
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
68
- });
69
- _defineProperty(this, "renderExport", function (value, record) {
70
- var _record;
71
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
72
- });
73
- _defineProperty(this, "editRender", function (p) {
74
- var _this$componentConfig, _this$componentConfig2;
75
- return /*#__PURE__*/React.createElement(GetFormItem, {
76
- title: _this.name,
77
- name: _this.id,
78
- rules: _this.rules,
79
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
80
- display: p === null || p === void 0 ? void 0 : p.display,
81
- 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,
82
- component: /*#__PURE__*/React.createElement(TradeId, null)
29
+ _this = _super.call.apply(_super, [this].concat(args));
30
+ _defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
31
+ var _this$componentConfig, _this$componentConfig2;
32
+ var onTradeIdBlur = function onTradeIdBlur(value) {
33
+ var _p$onBlur;
34
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, 'tradeId');
35
+ };
36
+ return /*#__PURE__*/React.createElement(GetFormItem, {
37
+ title: _this.name,
38
+ name: _this.id,
39
+ rules: _this.rules,
40
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
41
+ display: p === null || p === void 0 ? void 0 : p.display,
42
+ 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,
43
+ component: /*#__PURE__*/React.createElement(OrderNo, _extends({}, _this.componentConfig, {
44
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
45
+ onTradeIdBlur: onTradeIdBlur
46
+ }))
47
+ });
83
48
  });
84
- });
85
- _defineProperty(this, "filterConfig", function (item) {
86
- return {
87
- searchDefaultConditions: SYMBOL.in,
88
- type: item.type,
89
- id: "".concat(item.id, "_tradeId"),
90
- // 过滤组件id
91
- name: item.name,
92
- // 过滤组件名称
93
- filterComponentType: 'Input',
94
- filterFn: function filterFn(value) {
95
- return function (i) {
96
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
97
- };
98
- },
99
- formatFilterValue: function formatFilterValue(input) {
100
- return input.split(/[,|,]/);
101
- }
102
- };
103
- });
104
- this.name = options.name;
105
- this.id = options.id;
106
- this.sortField = "".concat(options.id, "_tradeId");
107
- this.formField = "".concat(options.id, "_tradeId");
108
- this.type = options.type;
109
- this.componentConfig = options.componentConfig;
110
- this.rules = [];
111
- this.isCombinationComponent = false;
112
- this.canSort = true;
113
- this.children = [];
114
- this.dataType = 'string';
115
- });
49
+ return _this;
50
+ }
51
+ return _createClass(ErpTradeId);
52
+ }(TradeId);
116
53
  export default ErpTradeId;
@@ -16,8 +16,8 @@ declare class ExpressCode 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: Record) => React.JSX.Element;
20
- renderLog: (r: Record) => React.JSX.Element | null;
19
+ renderPc: (value: unknown, record: Record) => React.JSX.Element | "--";
20
+ renderLog: (r: Record) => React.JSX.Element | "--" | null;
21
21
  getComponentValue: (r: Record) => any;
22
22
  renderExport: (value: string, record: Record) => any;
23
23
  editRender: (p: any) => React.JSX.Element;
@@ -9,6 +9,7 @@ import React from "react";
9
9
  import { Input } from "antd";
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ItemView from "../../commonComponents/ItemView";
12
+ import CopyText from "../../commonComponents/CopyText";
12
13
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
13
14
  import { SYMBOL } from "../../constant";
14
15
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
@@ -32,12 +33,15 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
32
33
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
33
34
  id: _this.id,
34
35
  label: _this.name,
35
- value: record === null || record === void 0 ? void 0 : record[_this.id]
36
+ value: /*#__PURE__*/React.createElement(CopyText, {
37
+ text: record === null || record === void 0 ? void 0 : record[_this.id]
38
+ })
36
39
  }) : null;
37
40
  });
38
41
  _defineProperty(this, "renderPc", function (value, record) {
39
- var _record$_this$id;
40
- 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 : "--");
42
+ return record !== null && record !== void 0 && record[_this.id] ? /*#__PURE__*/React.createElement(CopyText, {
43
+ text: record === null || record === void 0 ? void 0 : record[_this.id]
44
+ }) : '--';
41
45
  });
42
46
  _defineProperty(this, "renderLog", function (r) {
43
47
  if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
@@ -47,8 +51,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
47
51
  return r === null || r === void 0 ? void 0 : r[_this.id];
48
52
  });
49
53
  _defineProperty(this, "renderExport", function (value, record) {
50
- var _record$_this$id2;
51
- return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
54
+ var _record$_this$id;
55
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
52
56
  });
53
57
  _defineProperty(this, "editRender", function (p) {
54
58
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
@@ -6,15 +6,14 @@ declare class FlowWorkOrderId implements ComponentInterface {
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- effects: ComponentInterface["effects"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
+ effects: ComponentInterface['effects'];
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface['dataType'];
16
16
  constructor(options: PickOption);
17
- copyHandle: (text: string) => void;
18
17
  renderPc: (value: any, record: any) => React.JSX.Element;
19
18
  renderLog: (r: Record) => React.JSX.Element | null;
20
19
  getComponentValue: (r: Record) => any;
@@ -7,13 +7,11 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
9
  import React from 'react';
10
- import { message } from 'antd';
11
- import { CopyOutlined } from '@ant-design/icons';
12
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
13
11
  import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
14
12
  import GetFormItem from "../GetFormItem";
15
- import copy from 'copy-to-clipboard';
16
13
  import { SYMBOL } from "../../constant";
14
+ import CopyText from "../../commonComponents/CopyText";
17
15
  var FlowWorkOrderId = /*#__PURE__*/_createClass(function FlowWorkOrderId(options) {
18
16
  var _this = this;
19
17
  _classCallCheck(this, FlowWorkOrderId);
@@ -29,10 +27,6 @@ var FlowWorkOrderId = /*#__PURE__*/_createClass(function FlowWorkOrderId(options
29
27
  _defineProperty(this, "canSort", void 0);
30
28
  _defineProperty(this, "children", void 0);
31
29
  _defineProperty(this, "dataType", void 0);
32
- _defineProperty(this, "copyHandle", function (text) {
33
- copy(text);
34
- message.success('复制成功');
35
- });
36
30
  _defineProperty(this, "renderPc", function (value, record) {
37
31
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
38
32
  return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
@@ -41,17 +35,9 @@ var FlowWorkOrderId = /*#__PURE__*/_createClass(function FlowWorkOrderId(options
41
35
  onClick: function onClick(e) {
42
36
  return e.stopPropagation();
43
37
  }
44
- }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
45
- onClick: function onClick(e) {
46
- _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
47
- e.stopPropagation();
48
- }
49
- }, /*#__PURE__*/React.createElement("span", {
50
- style: {
51
- paddingLeft: '4px',
52
- cursor: 'pointer'
53
- }
54
- }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
38
+ }, /*#__PURE__*/React.createElement(CopyText, {
39
+ text: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
40
+ }));
55
41
  });
56
42
  _defineProperty(this, "renderLog", function (r) {
57
43
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
@@ -12,7 +12,7 @@ import GetFormItem from "../../GetFormItem";
12
12
  import { JstGoodImage } from "../../Common";
13
13
  import { JstGoods } from "@kmkf-fe-packages/basic-components";
14
14
  import ItemView from "../../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { isNull, filterFn as _filterFn, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../../constant";
17
17
  var typeMap = {
18
18
  JST_SEND_GOOD: {
@@ -100,7 +100,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
100
100
  label: _this.name,
101
101
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
102
102
  list: record === null || record === void 0 ? void 0 : record[_this.id],
103
- type: 3
103
+ type: 3,
104
+ componentType: _this.type
104
105
  })
105
106
  }) : null;
106
107
  });
@@ -114,7 +115,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
114
115
  }
115
116
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
116
117
  list: list,
117
- type: 3
118
+ type: 3,
119
+ componentType: _this.type
118
120
  }));
119
121
  });
120
122
  _defineProperty(this, "renderLog", function (r) {
@@ -131,7 +133,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
131
133
  var _typeMap$_this$type4;
132
134
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
133
135
  return (list || []).map(function (item) {
134
- return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join("/");
136
+ return [item === null || item === void 0 ? void 0 : item.sendId, _this.type === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName) : item === null || item === void 0 ? void 0 : item.sendName].join("/");
135
137
  }).join(",");
136
138
  });
137
139
  _defineProperty(this, "editRender", function (p) {
@@ -143,7 +145,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
143
145
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
144
146
  display: p === null || p === void 0 ? void 0 : p.display,
145
147
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
146
- type: 3
148
+ type: 3,
149
+ componentType: _this.type
147
150
  }))
148
151
  });
149
152
  });
@@ -1,13 +1,13 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
3
- import { ExpressData, ExpressInterceptData, LogisticsAddressData, AddressData } from "@kmkf-fe-packages/kmkf-utils";
4
- import InterceptSenderMobile from "./interceptSenderMobile";
5
- import InterceptSnapshot from "./interceptSnapshot";
6
- import InterceptAddress from "./InterceptAddress";
7
- import InterceptType from "./InterceptType";
8
- import InterceptStatus from "./InterceptStatus";
9
- import InterceptCode from "./interceptItem";
10
- import Express from "./interceptCompany";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
+ import { ExpressData, ExpressInterceptData, LogisticsAddressData, AddressData } from '@kmkf-fe-packages/kmkf-utils';
4
+ import InterceptSenderMobile from './interceptSenderMobile';
5
+ import InterceptSnapshot from './interceptSnapshot';
6
+ import InterceptAddress from './InterceptAddress';
7
+ import InterceptType from './InterceptType';
8
+ import InterceptStatus from './InterceptStatus';
9
+ import InterceptCode from './interceptCode';
10
+ import Express from './interceptCompany';
11
11
  declare class Logistics implements ComponentInterface {
12
12
  name: string;
13
13
  columnHeader: string | JSX.Element;
@@ -15,7 +15,7 @@ declare class Logistics implements ComponentInterface {
15
15
  sortField: string;
16
16
  type: string;
17
17
  rules: any[];
18
- componentConfig: ComponentInterface["componentConfig"];
18
+ componentConfig: ComponentInterface['componentConfig'];
19
19
  interceptAddress: InterceptAddress;
20
20
  interceptType: InterceptType;
21
21
  interceptLogisticsStatus: InterceptStatus;
@@ -32,8 +32,8 @@ declare class Logistics implements ComponentInterface {
32
32
  logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
33
33
  addressDateInstance: InstanceType<typeof AddressData>;
34
34
  expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
35
- effects: ComponentInterface["effects"];
36
- dataType: ComponentInterface["dataType"];
35
+ effects: ComponentInterface['effects'];
36
+ dataType: ComponentInterface['dataType'];
37
37
  constructor(options: PickOption);
38
38
  renderInfo: (list?: any[]) => React.JSX.Element;
39
39
  renderClient: (record: any) => React.JSX.Element | null;
@@ -8,10 +8,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  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; }
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
- import React from "react";
12
- import { Space } from "antd";
13
- import { LogisticsMoreInterception } from "@kmkf-fe-packages/basic-components";
14
- import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull, AddressData } from "@kmkf-fe-packages/kmkf-utils";
11
+ import React from 'react';
12
+ import { Space } from 'antd';
13
+ import { LogisticsMoreInterception } from '@kmkf-fe-packages/basic-components';
14
+ import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull, AddressData } from '@kmkf-fe-packages/kmkf-utils';
15
15
  import ItemView from "../../commonComponents/ItemView";
16
16
  import GetFormItem from "../GetFormItem";
17
17
  import InterceptSenderMobile from "./interceptSenderMobile";
@@ -19,10 +19,11 @@ import InterceptSnapshot from "./interceptSnapshot";
19
19
  import InterceptAddress from "./InterceptAddress";
20
20
  import InterceptType from "./InterceptType";
21
21
  import InterceptStatus from "./InterceptStatus";
22
- import InterceptCode from "./interceptItem";
22
+ import InterceptCode from "./interceptCode";
23
23
  import Express from "./interceptCompany";
24
24
  import ColumnHeader from "./columnHeader";
25
25
  import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
26
+ import CopyText from "../../commonComponents/CopyText";
26
27
  var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
27
28
  var _this = this,
28
29
  _this$componentConfig3;
@@ -60,8 +61,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
60
61
  var _ref, _this$expressIntercep;
61
62
  var addressText = (_ref = item.interceptAddress || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
62
63
  return _this.addressDateInstance.getNameByCode(suffix);
63
- }).join("");
64
- return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", item.interceptCode) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, " ", item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
64
+ }).join('');
65
+ return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", /*#__PURE__*/React.createElement(CopyText, {
66
+ text: item.interceptCode
67
+ })) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, ' ', item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
65
68
  modelWidth: 500,
66
69
  interceptCompany: item.interceptCompany,
67
70
  interceptCode: item.interceptCode,
@@ -104,9 +107,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
104
107
  });
105
108
  _defineProperty(this, "filterConfig", function (item) {
106
109
  return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
107
- subKey: "logisticsInterceptCompanyList"
110
+ subKey: 'logisticsInterceptCompanyList'
108
111
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
109
- subKey: "logisticsInterceptCodeList"
112
+ subKey: 'logisticsInterceptCodeList'
110
113
  })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
111
114
  });
112
115
  this.name = options.name;
@@ -130,15 +133,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
130
133
  this.interceptSnapshot = new InterceptSnapshot(options);
131
134
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
132
135
  id: "".concat(options.id, "_logisticsInterceptCompanyList"),
133
- name: "物流信息"
136
+ name: '物流信息'
134
137
  }));
135
138
  this.expressCode = new InterceptCode(_objectSpread(_objectSpread({}, options), {}, {
136
139
  id: "".concat(options.id, "_logisticsInterceptCodeList"),
137
- name: "物流单号"
140
+ name: '物流单号'
138
141
  }));
139
142
  this.isCombinationComponent = true;
140
143
  this.canSort = false;
141
- this.dataType = "object";
144
+ this.dataType = 'object';
142
145
  this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
143
146
  this.rules = [{
144
147
  required: (_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required,
@@ -146,12 +149,12 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
146
149
  if (value.some(function (t) {
147
150
  return !(t !== null && t !== void 0 && t.interceptCompany) || !(t !== null && t !== void 0 && t.interceptCode);
148
151
  })) {
149
- return Promise.reject(new Error("请填写物流信息"));
152
+ return Promise.reject(new Error('请填写物流信息'));
150
153
  }
151
154
  if (value.some(function (t) {
152
155
  return !(t !== null && t !== void 0 && t.interceptType);
153
156
  })) {
154
- return Promise.reject(new Error("请选择拦截类型"));
157
+ return Promise.reject(new Error('请选择拦截类型'));
155
158
  }
156
159
  var hasNoAddress = value.some(function (t) {
157
160
  var _t$interceptAddress;
@@ -1,6 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
2
  import React from 'react';
3
- declare class InterceptItem implements ComponentInterface {
3
+ declare class InterceptCode implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
@@ -31,4 +31,4 @@ declare class InterceptItem implements ComponentInterface {
31
31
  formatFilterValue: (input: string) => string | string[];
32
32
  };
33
33
  }
34
- export default InterceptItem;
34
+ export default InterceptCode;
@@ -8,9 +8,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from 'react';
9
9
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import { SYMBOL, batchInput } from "../../constant";
11
- var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
11
+ import CopyText from "../../commonComponents/CopyText";
12
+ var InterceptCode = /*#__PURE__*/_createClass(function InterceptCode(options) {
12
13
  var _this = this;
13
- _classCallCheck(this, InterceptItem);
14
+ _classCallCheck(this, InterceptCode);
14
15
  _defineProperty(this, "name", void 0);
15
16
  _defineProperty(this, "id", void 0);
16
17
  _defineProperty(this, "sortField", void 0);
@@ -28,7 +29,9 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
28
29
  var list = record[_this.id] || [];
29
30
  if (isNull(list)) return '--';
30
31
  return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
31
- return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
32
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), /*#__PURE__*/React.createElement(CopyText, {
33
+ text: item
34
+ }));
32
35
  }));
33
36
  });
34
37
  _defineProperty(this, "renderClient", function () {
@@ -78,4 +81,4 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
78
81
  this.dataType = 'object';
79
82
  this.children = [];
80
83
  });
81
- export default InterceptItem;
84
+ export default InterceptCode;
@@ -4,6 +4,10 @@ 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 './trajectoryStatus';
8
+ import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
9
+ import TrajectoryLastUpdateTime from './trajectoryLastUpdateTime';
10
+ import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
7
11
  declare class LogisticsMoreTrajectory implements ComponentInterface {
8
12
  name: string;
9
13
  id: string;
@@ -15,14 +19,19 @@ declare class LogisticsMoreTrajectory implements ComponentInterface {
15
19
  express: TrajectoryCompany;
16
20
  expressCode: TrajectoryCode;
17
21
  expressSnapshot: TrajectorySnapshot;
22
+ trajectoryStatus: TrajectoryStatus;
23
+ trajectoryLastLogisticsInfo: TrajectoryLastLogisticsInfo;
24
+ trajectoryLastUpdateTime: TrajectoryLastUpdateTime;
18
25
  isCombinationComponent: boolean;
19
26
  formField: string;
20
27
  canSort: boolean;
21
28
  children: ComponentInterface[];
22
29
  dataType: ComponentInterface["dataType"];
30
+ expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
23
31
  constructor(options: PickOption);
24
32
  editRender: (p: any) => React.JSX.Element;
25
33
  renderClient: (record: Record) => React.JSX.Element | null;
34
+ renderStatus: (record: any, w?: number) => React.JSX.Element;
26
35
  renderPc: () => null;
27
36
  renderLog: (r: Record) => any;
28
37
  getComponentValue: (r: Record) => any;