@kmkf-fe-packages/services-components 0.7.15-alpha.11 → 0.7.15-alpha.18

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.
@@ -51,14 +51,14 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
51
51
  //如果是顺丰且没有手机号 要输入手机号
52
52
  if (interceptCompany === "SF" && !interceptSenderMobile) {
53
53
  Modal.confirm({
54
- title: "输入手机号",
55
- okText: "确定",
54
+ title: "查询物流轨迹",
55
+ okText: "查询",
56
56
  cancelText: "取消",
57
- content: /*#__PURE__*/React.createElement(Input, {
57
+ content: /*#__PURE__*/React.createElement("div", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7", /*#__PURE__*/React.createElement(Input, {
58
58
  onChange: function onChange(e) {
59
59
  return setInputVal(e.target.value);
60
60
  }
61
- }),
61
+ })),
62
62
  onOk: function onOk() {
63
63
  logisticsTraceSearch(inputVal);
64
64
  }
@@ -40,14 +40,12 @@ declare class LogisticsTrajectory implements ComponentInterface {
40
40
  props: {
41
41
  options: any[];
42
42
  };
43
- filterFn: (value: string) => (i: Record) => boolean;
44
43
  } | {
45
44
  searchDefaultConditions: "like";
46
45
  type: string;
47
46
  id: string;
48
47
  name: string;
49
48
  filterComponentType: "Input";
50
- filterFn: (value: string) => (i: Record) => boolean;
51
49
  })[];
52
50
  }
53
51
  export default LogisticsTrajectory;
@@ -33,6 +33,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
33
33
  var company = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryCompany")];
34
34
  var code = record === null || record === void 0 ? void 0 : record[_this.id];
35
35
  return /*#__PURE__*/React.createElement("div", null, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
36
+ title: code,
36
37
  modelWidth: w,
37
38
  interceptCompany: company,
38
39
  interceptCode: code,
@@ -64,16 +65,15 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
64
65
  return null;
65
66
  });
66
67
  _defineProperty(this, "filterConfig", function (item) {
67
- var subKey = item.subKey;
68
68
  return {
69
69
  searchDefaultConditions: SYMBOL.like,
70
70
  type: item.type,
71
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
71
+ id: "".concat(item.id, "_trajectoryCode"),
72
72
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
73
73
  filterComponentType: "Input",
74
74
  filterFn: function filterFn(value) {
75
75
  return function (i) {
76
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
76
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
77
77
  };
78
78
  }
79
79
  };
@@ -33,7 +33,6 @@ declare class TrajectoryCompany implements ComponentInterface {
33
33
  props: {
34
34
  options: any[];
35
35
  };
36
- filterFn: (value: string) => (i: Record) => boolean;
37
36
  };
38
37
  }
39
38
  export default TrajectoryCompany;
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from "react";
9
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 } 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;
@@ -55,20 +55,14 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
55
55
  return null;
56
56
  });
57
57
  _defineProperty(this, "filterConfig", function (item) {
58
- var subKey = item.subKey;
59
58
  return {
60
59
  searchDefaultConditions: SYMBOL.in,
61
60
  type: item.type,
62
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
61
+ id: item.id,
63
62
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
64
63
  filterComponentType: "MultipleSelect",
65
64
  props: {
66
65
  options: _this.expressDateInstance.getExpressData() || []
67
- },
68
- filterFn: function filterFn(value) {
69
- return function (i) {
70
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
71
- };
72
66
  }
73
67
  };
74
68
  });
@@ -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;
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
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
9
  import ItemView from "../../commonComponents/ItemView";
10
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
11
  import { SYMBOL } from "../../constant";
12
12
  var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
13
13
  var _this = this;
@@ -50,18 +50,12 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
50
50
  return null;
51
51
  });
52
52
  _defineProperty(this, "filterConfig", function (item) {
53
- var subKey = item.subKey;
54
53
  return {
55
54
  searchDefaultConditions: SYMBOL.like,
56
55
  type: item.type,
57
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
56
+ id: item.id,
58
57
  name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
59
- filterComponentType: "Input",
60
- filterFn: function filterFn(value) {
61
- return function (i) {
62
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
63
- };
64
- }
58
+ filterComponentType: "Input"
65
59
  };
66
60
  });
67
61
  this.name = options.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.15-alpha.11",
3
+ "version": "0.7.15-alpha.18",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.11",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.11"
29
+ "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.18",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.18"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "b2452c95f3529ac1825c4c260a0485fe292ec176"
43
+ "gitHead": "c1bbee2c2ed1c2360bf065aa99a3ecde0334565d"
44
44
  }