@kmkf-fe-packages/services-components 0.7.15-alpha.7 → 0.7.15-alpha.70

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 (99) hide show
  1. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
  2. package/dist/esm/commonComponents/ShopList/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/ShopList/index.js +4 -2
  4. package/dist/esm/components/ActualPayment/index.d.ts +5 -4
  5. package/dist/esm/components/ActualPayment/index.js +25 -21
  6. package/dist/esm/components/AlipayAccount/index.js +2 -1
  7. package/dist/esm/components/BS/BsExchange/index.d.ts +12 -6
  8. package/dist/esm/components/BS/BsExchange/index.js +233 -111
  9. package/dist/esm/components/BS/BsGoods/index.d.ts +11 -9
  10. package/dist/esm/components/BS/BsGoods/index.js +93 -60
  11. package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
  12. package/dist/esm/components/BS/BsReissue/index.js +110 -54
  13. package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderCode.d.ts} +5 -4
  14. package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderCode.js} +28 -11
  15. package/dist/esm/components/BS/common/BsHeaderGood.d.ts +27 -0
  16. package/dist/esm/components/BS/common/BsHeaderGood.js +156 -0
  17. package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +5 -4
  18. package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +28 -11
  19. package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +5 -4
  20. package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +29 -11
  21. package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderNumber.d.ts} +5 -4
  22. package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderNumber.js} +28 -11
  23. package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +7 -6
  24. package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +36 -10
  25. package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +5 -4
  26. package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +28 -11
  27. package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +5 -4
  28. package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +28 -11
  29. package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +5 -4
  30. package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +28 -11
  31. package/dist/esm/components/BS/common/BsMemo.d.ts +8 -7
  32. package/dist/esm/components/BS/common/BsMemo.js +55 -21
  33. package/dist/esm/components/BS/common/BsType.d.ts +8 -6
  34. package/dist/esm/components/BS/common/BsType.js +53 -17
  35. package/dist/esm/components/BS/common/index.d.ts +9 -8
  36. package/dist/esm/components/BS/common/index.js +9 -8
  37. package/dist/esm/components/BuyerNick/index.js +5 -1
  38. package/dist/esm/components/Cascader/index.d.ts +1 -0
  39. package/dist/esm/components/Cascader/index.js +3 -1
  40. package/dist/esm/components/Common/index.d.ts +7 -2
  41. package/dist/esm/components/Common/index.js +176 -78
  42. package/dist/esm/components/EItemEnCode/index.js +6 -2
  43. package/dist/esm/components/EItemId/index.d.ts +3 -3
  44. package/dist/esm/components/EItemId/index.js +14 -10
  45. package/dist/esm/components/EItemSelect/index.js +6 -2
  46. package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
  47. package/dist/esm/components/ErpTradeId/index.js +27 -4
  48. package/dist/esm/components/ExpressCode/index.d.ts +1 -1
  49. package/dist/esm/components/ExpressCode/index.js +2 -2
  50. package/dist/esm/components/File/index.d.ts +1 -1
  51. package/dist/esm/components/File/index.js +26 -5
  52. package/dist/esm/components/FlowStatusSelect/index.d.ts +0 -1
  53. package/dist/esm/components/FlowStatusSelect/index.js +30 -24
  54. package/dist/esm/components/FlowWorkOrderId/index.d.ts +33 -0
  55. package/dist/esm/components/FlowWorkOrderId/index.js +112 -0
  56. package/dist/esm/components/JST/JstItemSelect/index.js +6 -2
  57. package/dist/esm/components/JST/JstLogistics/index.d.ts +19 -13
  58. package/dist/esm/components/JST/JstLogistics/index.js +71 -33
  59. package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -4
  60. package/dist/esm/components/JST/JstSendGood/index.js +33 -19
  61. package/dist/esm/components/JST/JstSupply/index.js +6 -2
  62. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +5 -1
  63. package/dist/esm/components/LogisticsTrajectory/index.d.ts +8 -9
  64. package/dist/esm/components/LogisticsTrajectory/index.js +12 -10
  65. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +11 -6
  66. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +6 -6
  67. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +8 -8
  68. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
  69. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +4 -10
  70. package/dist/esm/components/Payment/AlipayNick.js +2 -1
  71. package/dist/esm/components/Payment/AlipayNo.js +2 -1
  72. package/dist/esm/components/Payment/BuyerNick.js +6 -3
  73. package/dist/esm/components/Payment/index.d.ts +1 -0
  74. package/dist/esm/components/Payment/index.js +9 -6
  75. package/dist/esm/components/Picture/index.js +3 -0
  76. package/dist/esm/components/PostIng/index.d.ts +1 -24
  77. package/dist/esm/components/PostIng/index.js +53 -52
  78. package/dist/esm/components/Rate/index.js +5 -1
  79. package/dist/esm/components/ReceiverAddress/index.js +2 -1
  80. package/dist/esm/components/ReceiverMobile/index.js +2 -1
  81. package/dist/esm/components/ReceiverName/index.js +2 -1
  82. package/dist/esm/components/ThirdItemSelect/index.js +6 -2
  83. package/dist/esm/components/TradeDateTime/index.d.ts +6 -14
  84. package/dist/esm/components/TradeDateTime/index.js +30 -25
  85. package/dist/esm/components/TradeId/index.d.ts +1 -0
  86. package/dist/esm/components/TradeId/index.js +27 -4
  87. package/dist/esm/components/WorkOrderId/index.js +5 -3
  88. package/dist/esm/factory.d.ts +2 -2
  89. package/dist/esm/factory.js +6 -3
  90. package/dist/esm/index.d.ts +1 -1
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/type.d.ts +10 -2
  93. package/package.json +4 -4
  94. package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -50
  95. package/dist/esm/components/BS/BsLogistics/index.js +0 -115
  96. package/dist/esm/components/BS/common/BsExchangeImage.d.ts +0 -31
  97. package/dist/esm/components/BS/common/BsExchangeImage.js +0 -126
  98. package/dist/esm/components/BS/common/BsGoodImage.d.ts +0 -31
  99. package/dist/esm/components/BS/common/BsGoodImage.js +0 -88
@@ -6,22 +6,41 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
- import React from "react";
10
- import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
11
- import some from "lodash/some";
9
+ import React from 'react';
10
+ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
11
+ import some from 'lodash/some';
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import { JstGoodImage } from "../../Common";
14
- import { JstGoods } from "@kmkf-fe-packages/basic-components";
14
+ import { JstGoods } from '@kmkf-fe-packages/basic-components';
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
17
  import { SYMBOL } from "../../../constant";
18
+ var typeMap = {
19
+ JST_LOGISTICS: {
20
+ key: 'jstItemList',
21
+ name: 'jst',
22
+ company: 'logisticsCompany',
23
+ code: 'logisticsCode'
24
+ },
25
+ BS_LOGISTICS: {
26
+ key: 'bsLogisticsList',
27
+ name: 'bs',
28
+ company: 'bsLogisticsCompany',
29
+ code: 'bsLogisticsCode'
30
+ }
31
+ };
18
32
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
19
33
  var _this = this,
20
- _this$componentConfig3;
34
+ _typeMap$options$type,
35
+ _typeMap$options$type2,
36
+ _this$componentConfig3,
37
+ _typeMap$options$type3,
38
+ _typeMap$options$type4;
21
39
  _classCallCheck(this, JstLogistics);
22
40
  _defineProperty(this, "name", void 0);
23
41
  _defineProperty(this, "id", void 0);
24
42
  _defineProperty(this, "sortField", void 0);
43
+ _defineProperty(this, "sortChildField", void 0);
25
44
  _defineProperty(this, "type", void 0);
26
45
  _defineProperty(this, "rules", void 0);
27
46
  _defineProperty(this, "componentConfig", void 0);
@@ -46,26 +65,34 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
46
65
  }) : null;
47
66
  });
48
67
  _defineProperty(this, "renderPc", function (value, record) {
49
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
68
+ var _typeMap$_this$type;
69
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
50
70
  //兼容多个商品
51
- return /*#__PURE__*/React.createElement(JstGoodImage, {
71
+ return /*#__PURE__*/React.createElement("span", {
72
+ onClick: function onClick(e) {
73
+ return e.stopPropagation();
74
+ }
75
+ }, /*#__PURE__*/React.createElement(JstGoodImage, {
52
76
  list: list,
53
77
  type: 1
54
- });
78
+ }));
55
79
  });
56
80
  _defineProperty(this, "renderLog", function (r) {
57
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
81
+ var _typeMap$_this$type2;
82
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
58
83
  if (isNull(list)) return null;
59
84
  return _this.renderPc(undefined, r);
60
85
  });
61
86
  _defineProperty(this, "getComponentValue", function (r) {
62
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
87
+ var _typeMap$_this$type3;
88
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
63
89
  });
64
90
  _defineProperty(this, "renderExport", function (value, record) {
65
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
91
+ var _typeMap$_this$type4;
92
+ 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)];
66
93
  return (list || []).map(function (item) {
67
- return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
68
- }).join(",");
94
+ return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
95
+ }).join(',');
69
96
  });
70
97
  _defineProperty(this, "editRender", function (p) {
71
98
  var _this$componentConfig, _this$componentConfig2;
@@ -82,48 +109,49 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
82
109
  });
83
110
  });
84
111
  _defineProperty(this, "filterConfig", function (item) {
112
+ var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8;
85
113
  return [{
86
- searchDefaultConditions: SYMBOL.like,
87
- type: item.type,
88
- id: "".concat(item.id, "_logisticsCode"),
89
- name: "jst\u7269\u6D41\u5355\u53F7",
90
- filterComponentType: "Input",
91
- filterFn: function filterFn(value) {
92
- return function (i) {
93
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
94
- };
95
- }
96
- }, {
97
114
  searchDefaultConditions: SYMBOL.in,
98
115
  type: item.type,
99
- id: "".concat(item.id, "_logisticsCompany"),
100
- name: "jst\u7269\u6D41\u516C\u53F8",
101
- filterComponentType: "MultipleSelect",
116
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.company),
117
+ name: "".concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.name, "\u7269\u6D41\u516C\u53F8"),
118
+ filterComponentType: 'MultipleSelect',
102
119
  props: {
103
120
  options: _this.expressDateInstance.getExpressData() || []
104
121
  },
105
122
  filterFn: function filterFn(value) {
106
123
  return function (i) {
107
124
  var _ref;
108
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCompany").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
125
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
109
126
  var _String;
110
127
  var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
111
128
  return logisticsCompany;
112
129
  });
113
130
  };
114
131
  }
132
+ }, {
133
+ searchDefaultConditions: SYMBOL.like,
134
+ type: item.type,
135
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.code),
136
+ name: "".concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.name, "\u7269\u6D41\u5355\u53F7"),
137
+ filterComponentType: 'Input',
138
+ filterFn: function filterFn(value) {
139
+ return function (i) {
140
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
141
+ };
142
+ }
115
143
  }];
116
144
  });
117
145
  this.name = options.name;
118
146
  this.id = options.id;
119
- this.sortField = "".concat(options.id, "_jstItemList");
120
- this.formField = "".concat(options.id, "_jstItemList");
147
+ this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
148
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
121
149
  this.type = options.type;
122
150
  this.componentConfig = options.componentConfig;
123
151
  this.isCombinationComponent = false;
124
152
  this.canSort = false;
125
153
  this.children = [];
126
- this.dataType = "object";
154
+ this.dataType = 'object';
127
155
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
128
156
  required: true,
129
157
  validator: function validator(_, value) {
@@ -136,7 +164,17 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
136
164
  return Promise.resolve();
137
165
  }
138
166
  }] : [];
139
- this.align = "left";
167
+ this.align = 'left';
140
168
  this.expressDateInstance = ExpressData.getInstance();
169
+ this.sortChildField = [{
170
+ name: '物流公司',
171
+ key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
172
+ options: this.expressDateInstance.getExpressData(),
173
+ dataType: 'string'
174
+ }, {
175
+ name: '物流单号',
176
+ key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
177
+ dataType: 'string'
178
+ }];
141
179
  });
142
180
  export default JstLogistics;
@@ -1,18 +1,24 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
+ import React from 'react';
3
3
  declare class JstSendGood implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
+ sortChildField: {
8
+ name: string;
9
+ key: string;
10
+ dataType: string;
11
+ [key: string]: any;
12
+ }[];
7
13
  type: string;
8
14
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
15
+ componentConfig: ComponentInterface['componentConfig'];
10
16
  align: ALignType;
11
17
  isCombinationComponent: boolean;
12
18
  formField: string;
13
19
  canSort: boolean;
14
20
  children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
21
+ dataType: ComponentInterface['dataType'];
16
22
  constructor(options: PickOption);
17
23
  renderClient: (record: Record) => React.JSX.Element | null;
18
24
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -6,22 +6,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
- import React from "react";
10
- import some from "lodash/some";
9
+ import React from 'react';
10
+ import some from 'lodash/some';
11
11
  import GetFormItem from "../../GetFormItem";
12
12
  import { JstGoodImage } from "../../Common";
13
- import { JstGoods } from "@kmkf-fe-packages/basic-components";
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 } from '@kmkf-fe-packages/kmkf-utils';
16
16
  import { SYMBOL } from "../../../constant";
17
17
  var typeMap = {
18
18
  JST_SEND_GOOD: {
19
- key: "jstItemList",
20
- name: "jst"
19
+ key: 'jstItemList',
20
+ name: 'jst'
21
21
  },
22
22
  BS_SEND_GOOD: {
23
- key: "bsSendGood",
24
- name: "bs"
23
+ key: 'bsSendGood',
24
+ name: 'bs'
25
25
  }
26
26
  };
27
27
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
@@ -33,6 +33,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
33
33
  _defineProperty(this, "name", void 0);
34
34
  _defineProperty(this, "id", void 0);
35
35
  _defineProperty(this, "sortField", void 0);
36
+ _defineProperty(this, "sortChildField", void 0);
36
37
  _defineProperty(this, "type", void 0);
37
38
  _defineProperty(this, "rules", void 0);
38
39
  _defineProperty(this, "componentConfig", void 0);
@@ -59,10 +60,14 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
59
60
  var _typeMap$_this$type;
60
61
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
61
62
  //兼容多个商品
62
- return /*#__PURE__*/React.createElement(JstGoodImage, {
63
+ return /*#__PURE__*/React.createElement("span", {
64
+ onClick: function onClick(e) {
65
+ return e.stopPropagation();
66
+ }
67
+ }, /*#__PURE__*/React.createElement(JstGoodImage, {
63
68
  list: list,
64
69
  type: 3
65
- });
70
+ }));
66
71
  });
67
72
  _defineProperty(this, "renderLog", function (r) {
68
73
  var _typeMap$_this$type2;
@@ -78,8 +83,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
78
83
  var _typeMap$_this$type4;
79
84
  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)];
80
85
  return (list || []).map(function (item) {
81
- return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join("/");
82
- }).join(",");
86
+ return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join('/');
87
+ }).join(',');
83
88
  });
84
89
  _defineProperty(this, "editRender", function (p) {
85
90
  return /*#__PURE__*/React.createElement(GetFormItem, {
@@ -100,7 +105,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
100
105
  type: item.type,
101
106
  id: "".concat(item.id, "_sendName"),
102
107
  name: "".concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.name, "\u53D1\u8D27\u4ED3\u540D\u79F0"),
103
- filterComponentType: "Input",
108
+ filterComponentType: 'Input',
104
109
  filterFn: function filterFn(value) {
105
110
  return function (i) {
106
111
  var _ref, _typeMap$_this$type6;
@@ -116,7 +121,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
116
121
  type: item.type,
117
122
  id: "".concat(item.id, "_sendId"),
118
123
  name: "".concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.name, "\u53D1\u8D27\u4ED3\u7F16\u7801"),
119
- filterComponentType: "Input",
124
+ filterComponentType: 'Input',
120
125
  filterFn: function filterFn(value) {
121
126
  return function (i) {
122
127
  var _ref2, _typeMap$_this$type8;
@@ -133,20 +138,29 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
133
138
  this.id = options.id;
134
139
  this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
135
140
  this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
141
+ this.sortChildField = [{
142
+ name: '发货仓名称',
143
+ key: "".concat(options.id, "_sendName"),
144
+ dataType: 'string'
145
+ }, {
146
+ name: '发货仓编码',
147
+ key: "".concat(options.id, "_sendId"),
148
+ dataType: 'string'
149
+ }];
136
150
  this.type = options.type;
137
151
  this.componentConfig = options.componentConfig;
138
- this.dataType = "object";
152
+ this.dataType = 'object';
139
153
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
140
154
  required: true,
141
155
  validator: function validator(_, value) {
142
156
  if (!value || !value.length) {
143
- return Promise.reject(new Error("请选择宝贝"));
157
+ return Promise.reject(new Error('请选择宝贝'));
144
158
  }
145
159
  var hasNo = (value || []).some(function (item) {
146
160
  var _this$componentConfig2, _this$componentConfig3;
147
- if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showField) || "")) {
161
+ if (['sendName'].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showField) || '')) {
148
162
  return item.sendName;
149
- } else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
163
+ } else if (['sendId'].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '')) {
150
164
  return item.sendId;
151
165
  } else {
152
166
  return item.sendId && item.sendName;
@@ -158,7 +172,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
158
172
  return Promise.resolve();
159
173
  }
160
174
  }] : [];
161
- this.align = "left";
175
+ this.align = 'left';
162
176
  this.isCombinationComponent = false;
163
177
  this.canSort = false;
164
178
  this.children = [];
@@ -46,10 +46,14 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
46
46
  _defineProperty(this, "renderPc", function (value, record) {
47
47
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
48
48
  //兼容多个商品
49
- return /*#__PURE__*/React.createElement(JstGoodImage, {
49
+ return /*#__PURE__*/React.createElement("span", {
50
+ onClick: function onClick(e) {
51
+ return e.stopPropagation();
52
+ }
53
+ }, /*#__PURE__*/React.createElement(JstGoodImage, {
50
54
  list: list,
51
55
  type: 2
52
- });
56
+ }));
53
57
  });
54
58
  _defineProperty(this, "renderLog", function (r) {
55
59
  var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
@@ -41,7 +41,11 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
41
41
  var interceptCode = "".concat(_this.parentId, "_interceptCode");
42
42
  var interceptSenderMobile = "".concat(_this.parentId, "_interceptSenderMobile");
43
43
  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[_this.id])];
44
- return /*#__PURE__*/React.createElement("div", null, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
44
+ return /*#__PURE__*/React.createElement("div", {
45
+ onClick: function onClick(e) {
46
+ return e.stopPropagation();
47
+ }
48
+ }, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
45
49
  modelWidth: w,
46
50
  interceptCompany: record[_this.companyId],
47
51
  interceptCode: record[interceptCode],
@@ -1,16 +1,16 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
3
- import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
- import TrajectoryCompany from "./trajectoryCompany";
5
- import TrajectoryCode from "./trajectoryCode";
6
- import TrajectorySnapshot from "./trajectorySnapshot";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
+ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
+ import TrajectoryCompany from './trajectoryCompany';
5
+ import TrajectoryCode from './trajectoryCode';
6
+ import TrajectorySnapshot from './trajectorySnapshot';
7
7
  declare class LogisticsTrajectory implements ComponentInterface {
8
8
  name: string;
9
9
  id: string;
10
10
  sortField: string;
11
11
  type: string;
12
12
  rules: any[];
13
- componentConfig: ComponentInterface["componentConfig"];
13
+ componentConfig: ComponentInterface['componentConfig'];
14
14
  expressDateInstance: InstanceType<typeof ExpressData>;
15
15
  express: TrajectoryCompany;
16
16
  expressCode: TrajectoryCode;
@@ -19,7 +19,7 @@ declare class LogisticsTrajectory implements ComponentInterface {
19
19
  formField: string;
20
20
  canSort: boolean;
21
21
  children: ComponentInterface[];
22
- dataType: ComponentInterface["dataType"];
22
+ dataType: ComponentInterface['dataType'];
23
23
  constructor(options: PickOption);
24
24
  editRender: (p: any) => React.JSX.Element;
25
25
  renderClient: (record: Record) => React.JSX.Element;
@@ -47,7 +47,6 @@ declare class LogisticsTrajectory implements ComponentInterface {
47
47
  id: string;
48
48
  name: string;
49
49
  filterComponentType: "Input";
50
- filterFn: (value: string) => (i: Record) => boolean;
51
50
  })[];
52
51
  }
53
52
  export default LogisticsTrajectory;
@@ -8,9 +8,9 @@ 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 { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
13
- import { LogisticsTrajectory as Trajectory } from "@kmkf-fe-packages/basic-components";
11
+ import React from 'react';
12
+ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { LogisticsTrajectory as Trajectory } from '@kmkf-fe-packages/basic-components';
14
14
  import TrajectoryCompany from "./trajectoryCompany";
15
15
  import TrajectoryCode from "./trajectoryCode";
16
16
  import TrajectorySnapshot from "./trajectorySnapshot";
@@ -67,7 +67,9 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
67
67
  return null;
68
68
  });
69
69
  _defineProperty(this, "filterConfig", function (item) {
70
- return [_this.express.filterConfig(item), _this.expressCode.filterConfig(item), _this.expressSnapshot.filterConfig(item)];
70
+ return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
71
+ subKey: 'trajectoryCompany'
72
+ })), _this.expressCode.filterConfig(item), _this.expressSnapshot.filterConfig(item)];
71
73
  });
72
74
  this.name = options.name;
73
75
  this.id = options.id;
@@ -77,28 +79,28 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
77
79
  this.componentConfig = options.componentConfig;
78
80
  this.expressDateInstance = ExpressData.getInstance();
79
81
  this.express = new TrajectoryCompany(_objectSpread(_objectSpread({}, options), {}, {
80
- name: "物流公司",
82
+ name: "".concat(this.name, "-\u516C\u53F8"),
81
83
  id: "".concat(this.id, "_trajectoryCompany")
82
84
  }));
83
85
  this.expressCode = new TrajectoryCode(_objectSpread(_objectSpread({}, options), {}, {
84
- name: "物流单号",
86
+ name: "".concat(this.name, "-\u5355\u53F7"),
85
87
  id: "".concat(this.id)
86
88
  }));
87
89
  this.expressSnapshot = new TrajectorySnapshot(_objectSpread(_objectSpread({}, options), {}, {
88
- name: "物流快照",
90
+ name: "".concat(this.name, "-\u5FEB\u7167"),
89
91
  id: "".concat(this.id, "_trajectorySnapshot")
90
92
  }));
91
93
  this.isCombinationComponent = true;
92
94
  this.canSort = false;
93
- this.dataType = "object";
95
+ this.dataType = 'object';
94
96
  this.children = [this.express, this.expressCode, this.expressSnapshot];
95
97
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
96
98
  validator: function validator(_, value) {
97
99
  if (!value.trajectoryCompany) {
98
- return Promise.reject(new Error("请选择物流公司"));
100
+ return Promise.reject(new Error('请选择物流公司'));
99
101
  }
100
102
  if (!value.trajectoryCode) {
101
- return Promise.reject(new Error("请输入物流单号"));
103
+ return Promise.reject(new Error('请输入物流单号'));
102
104
  }
103
105
  return Promise.resolve();
104
106
  }
@@ -31,12 +31,18 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
31
31
  _defineProperty(this, "renderCode", function (record) {
32
32
  var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
33
33
  var company = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryCompany")];
34
+ var mobile = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryPhone")];
34
35
  var code = record === null || record === void 0 ? void 0 : record[_this.id];
35
- return /*#__PURE__*/React.createElement("div", null, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
36
+ return /*#__PURE__*/React.createElement("div", {
37
+ onClick: function onClick(e) {
38
+ return e.stopPropagation();
39
+ }
40
+ }, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
41
+ title: code,
36
42
  modelWidth: w,
37
43
  interceptCompany: company,
38
44
  interceptCode: code,
39
- interceptSenderMobile: ""
45
+ interceptSenderMobile: mobile
40
46
  }) : "--");
41
47
  });
42
48
  _defineProperty(this, "renderClient", function (record) {
@@ -64,16 +70,15 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
64
70
  return null;
65
71
  });
66
72
  _defineProperty(this, "filterConfig", function (item) {
67
- var subKey = item.subKey;
68
73
  return {
69
74
  searchDefaultConditions: SYMBOL.like,
70
75
  type: item.type,
71
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
76
+ id: "".concat(item.id, "_trajectoryCode"),
72
77
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
73
78
  filterComponentType: "Input",
74
79
  filterFn: function filterFn(value) {
75
80
  return function (i) {
76
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
81
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
77
82
  };
78
83
  }
79
84
  };
@@ -96,7 +101,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
96
101
  this.align = "left";
97
102
  this.width = 200;
98
103
  this.isCombinationComponent = false;
99
- this.canSort = true;
104
+ this.canSort = false;
100
105
  this.dataType = "string";
101
106
  this.children = [];
102
107
  });
@@ -1,13 +1,13 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
3
- import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
+ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class TrajectoryCompany implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  sortField: string;
8
8
  type: string;
9
9
  rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
10
+ componentConfig: ComponentInterface['componentConfig'];
11
11
  align: ALignType;
12
12
  expressDateInstance: InstanceType<typeof ExpressData>;
13
13
  width: number;
@@ -15,8 +15,8 @@ declare class TrajectoryCompany implements ComponentInterface {
15
15
  formField: string;
16
16
  canSort: boolean;
17
17
  children: ComponentInterface[];
18
- dataType: ComponentInterface["dataType"];
19
- options: ComponentInterface["options"];
18
+ dataType: ComponentInterface['dataType'];
19
+ options: ComponentInterface['options'];
20
20
  constructor(options: PickOption);
21
21
  renderClient: (record: any) => React.JSX.Element | null;
22
22
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -5,10 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
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
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
- import React from "react";
9
- import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
8
+ import React from 'react';
9
+ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import ItemView from "../../commonComponents/ItemView";
11
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
12
12
  import { SYMBOL } from "../../constant";
13
13
  var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(options) {
14
14
  var _this = this;
@@ -61,13 +61,13 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
61
61
  type: item.type,
62
62
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
63
63
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
64
- filterComponentType: "MultipleSelect",
64
+ filterComponentType: 'MultipleSelect',
65
65
  props: {
66
66
  options: _this.expressDateInstance.getExpressData() || []
67
67
  },
68
68
  filterFn: function filterFn(value) {
69
69
  return function (i) {
70
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
70
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
71
71
  };
72
72
  }
73
73
  };
@@ -79,13 +79,13 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
79
79
  this.type = options.type;
80
80
  this.componentConfig = options.componentConfig;
81
81
  this.rules = [];
82
- this.align = "left";
82
+ this.align = 'left';
83
83
  this.expressDateInstance = ExpressData.getInstance();
84
84
  this.width = 200;
85
85
  this.isCombinationComponent = false;
86
- this.canSort = true;
86
+ this.canSort = false;
87
87
  this.children = [];
88
- this.dataType = "string";
88
+ this.dataType = 'string';
89
89
  this.options = this.expressDateInstance.getExpressData() || [];
90
90
  });
91
91
  export default TrajectoryCompany;
@@ -26,7 +26,6 @@ declare class TrajectorySnapshot implements ComponentInterface {
26
26
  id: string;
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
- filterFn: (value: string) => (i: Record) => boolean;
30
29
  };
31
30
  }
32
31
  export default TrajectorySnapshot;