@kmkf-fe-packages/services-components 0.6.3-alpha.51 → 0.6.3-alpha.52

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.
@@ -30,6 +30,12 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
30
30
  return _regeneratorRuntime().wrap(function _callee$(_context) {
31
31
  while (1) switch (_context.prev = _context.next) {
32
32
  case 0:
33
+ if (!(!interceptCode || !interceptCompany)) {
34
+ _context.next = 2;
35
+ break;
36
+ }
37
+ return _context.abrupt("return", message.error("物流公司和物流单号不能为空"));
38
+ case 2:
33
39
  try {
34
40
  request({
35
41
  url: "/qy/logistics/logisticsTraceSearch",
@@ -40,6 +46,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
40
46
  mobile: interceptReceiverMobile
41
47
  }
42
48
  }).then(function (res) {
49
+ console.log(res);
43
50
  var result = res.result,
44
51
  success = res.success,
45
52
  data = res.data,
@@ -58,7 +65,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
58
65
  } catch (err) {
59
66
  message.error(err === null || err === void 0 ? void 0 : err.message);
60
67
  }
61
- case 1:
68
+ case 3:
62
69
  case "end":
63
70
  return _context.stop();
64
71
  }
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  declare const ColumnHeader: ({ name }: {
3
- name: string;
3
+ name: string | JSX.Element;
4
4
  }) => React.JSX.Element;
5
5
  export default ColumnHeader;
@@ -7,8 +7,7 @@ import InterceptStatus from "./InterceptStatus";
7
7
  import Express from "../Express";
8
8
  import ExpressCode from "../ExpressCode";
9
9
  declare class Logistics implements ComponentInterface {
10
- name: string;
11
- columnHeader: string | JSX.Element;
10
+ name: string | JSX.Element;
12
11
  id: string;
13
12
  type: string;
14
13
  rules: any[];
@@ -22,7 +22,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
22
22
  var _this = this;
23
23
  _classCallCheck(this, Logistics);
24
24
  _defineProperty(this, "name", void 0);
25
- _defineProperty(this, "columnHeader", void 0);
26
25
  _defineProperty(this, "id", void 0);
27
26
  _defineProperty(this, "type", void 0);
28
27
  _defineProperty(this, "rules", void 0);
@@ -79,8 +78,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
79
78
  subKey: "interceptCode"
80
79
  })), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item)];
81
80
  });
82
- this.name = options.name;
83
- this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
81
+ this.name = /*#__PURE__*/React.createElement(ColumnHeader, {
84
82
  name: options.name
85
83
  });
86
84
  this.id = options.id;
@@ -16,7 +16,7 @@ export declare type FilterConfigType = {
16
16
  export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList";
17
17
  export interface ComponentInterface {
18
18
  id: string;
19
- name: string;
19
+ name: string | JSX.Element;
20
20
  columnHeader?: string | JSX.Element;
21
21
  type: string;
22
22
  isCombinationComponent: boolean;
@@ -172,7 +172,7 @@ export interface ComponentInterface {
172
172
  filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
173
173
  getComponentValue: (r: Record) => any;
174
174
  }
175
- export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects">;
175
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader">;
176
176
  export declare type ColumnConfig = {
177
177
  id: string;
178
178
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.6.3-alpha.51",
3
+ "version": "0.6.3-alpha.52",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "47536b1a377e674d44a3645297594a6429dd23d8"
43
+ "gitHead": "474439d5162c995bc0b6b4f48fba681d050275e6"
44
44
  }