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

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.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  ### 企业工单组件库
2
2
 
3
- 111
3
+ 1111
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- declare const QueryLogisticsTrack: ({ title, interceptCompany, interceptCode, interceptReceiverMobile, }: {
2
+ declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptReceiverMobile, }: {
3
3
  title?: string | undefined;
4
+ modelWidth?: string | number | undefined;
4
5
  interceptCompany: string;
5
6
  interceptCode: string;
6
7
  interceptReceiverMobile: string | number;
@@ -9,6 +9,8 @@ var info = Modal.info;
9
9
  var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
10
10
  var _ref$title = _ref.title,
11
11
  title = _ref$title === void 0 ? "查轨迹" : _ref$title,
12
+ _ref$modelWidth = _ref.modelWidth,
13
+ modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
12
14
  interceptCompany = _ref.interceptCompany,
13
15
  interceptCode = _ref.interceptCode,
14
16
  interceptReceiverMobile = _ref.interceptReceiverMobile;
@@ -34,7 +36,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
34
36
  _context.next = 2;
35
37
  break;
36
38
  }
37
- return _context.abrupt("return", message.error("物流公司和物流单号不能为空"));
39
+ return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
38
40
  case 2:
39
41
  try {
40
42
  request({
@@ -46,7 +48,6 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
46
48
  mobile: interceptReceiverMobile
47
49
  }
48
50
  }).then(function (res) {
49
- console.log(res);
50
51
  var result = res.result,
51
52
  success = res.success,
52
53
  data = res.data,
@@ -56,6 +57,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
56
57
  title: "物流轨迹",
57
58
  okText: "确定",
58
59
  icon: null,
60
+ width: modelWidth,
59
61
  content: LogisticsList(data)
60
62
  });
61
63
  } else {
@@ -17,7 +17,7 @@ declare class InterceptStatus implements ComponentInterface {
17
17
  expressInterceptInstance: ExpressInterceptData;
18
18
  constructor(options: PickOption);
19
19
  getComponentValue: (r: Record) => any;
20
- renderStatus: (record: any) => React.JSX.Element;
20
+ renderStatus: (record: any, w?: number) => React.JSX.Element;
21
21
  renderClient: (record: any) => React.JSX.Element | null;
22
22
  renderPc: (value: any, record: Record) => React.JSX.Element;
23
23
  renderLog: (r: Record) => any;
@@ -29,7 +29,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
29
29
  _defineProperty(this, "getComponentValue", function (r) {
30
30
  return r === null || r === void 0 ? void 0 : r[_this.id];
31
31
  });
32
- _defineProperty(this, "renderStatus", function (record) {
32
+ _defineProperty(this, "renderStatus", function (record, w) {
33
33
  var _this$expressIntercep;
34
34
  var interceptCode = "".concat(_this.parentId, "_interceptCode");
35
35
  var interceptReceiverMobile = "".concat(_this.parentId, "_interceptReceiverMobile");
@@ -48,7 +48,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
48
48
  }) : null;
49
49
  });
50
50
  _defineProperty(this, "renderPc", function (value, record) {
51
- return _this.renderStatus(record);
51
+ return _this.renderStatus(record, 700);
52
52
  });
53
53
  _defineProperty(this, "renderLog", function (r) {
54
54
  var _this$expressIntercep2;
@@ -19,8 +19,9 @@ var ColumnHeader = function ColumnHeader(_ref) {
19
19
  marginLeft: "6px",
20
20
  marginRight: "auto"
21
21
  },
22
- onClick: function onClick() {
23
- return setVisible(true);
22
+ onClick: function onClick(e) {
23
+ e.stopPropagation();
24
+ setVisible(true);
24
25
  }
25
26
  })), /*#__PURE__*/React.createElement(Modal, {
26
27
  open: visible,
@@ -7,7 +7,8 @@ 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 | JSX.Element;
10
+ name: string;
11
+ columnHeader: string | JSX.Element;
11
12
  id: string;
12
13
  type: string;
13
14
  rules: any[];
@@ -22,6 +22,7 @@ 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);
25
26
  _defineProperty(this, "id", void 0);
26
27
  _defineProperty(this, "type", void 0);
27
28
  _defineProperty(this, "rules", void 0);
@@ -78,7 +79,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
78
79
  subKey: "interceptCode"
79
80
  })), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item)];
80
81
  });
81
- this.name = /*#__PURE__*/React.createElement(ColumnHeader, {
82
+ this.name = options.name;
83
+ this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
82
84
  name: options.name
83
85
  });
84
86
  this.id = options.id;
@@ -16,8 +16,8 @@ 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 | JSX.Element;
20
- columnHeader?: string | JSX.Element;
19
+ name: string;
20
+ columnHeader: string | JSX.Element;
21
21
  type: string;
22
22
  isCombinationComponent: boolean;
23
23
  children: ComponentInterface[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.6.3-alpha.52",
3
+ "version": "0.6.3-alpha.54",
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.6.3-alpha.50",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.50"
29
+ "@kmkf-fe-packages/basic-components": "^0.6.3-alpha.54",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.54"
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": "474439d5162c995bc0b6b4f48fba681d050275e6"
43
+ "gitHead": "3374d90f3a3b8aa18e8d60390b8e95263ae3d967"
44
44
  }