@kmkf-fe-packages/services-components 0.6.3-alpha.51 → 0.6.3-alpha.53
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/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +2 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +10 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +1 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +2 -2
- package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +1 -1
- package/dist/esm/components/LogisticsInterception/columnHeader.js +3 -2
- package/dist/esm/type.d.ts +2 -2
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -30,6 +32,12 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
30
32
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31
33
|
while (1) switch (_context.prev = _context.next) {
|
|
32
34
|
case 0:
|
|
35
|
+
if (!(!interceptCode || !interceptCompany)) {
|
|
36
|
+
_context.next = 2;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
|
|
40
|
+
case 2:
|
|
33
41
|
try {
|
|
34
42
|
request({
|
|
35
43
|
url: "/qy/logistics/logisticsTraceSearch",
|
|
@@ -49,6 +57,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
49
57
|
title: "物流轨迹",
|
|
50
58
|
okText: "确定",
|
|
51
59
|
icon: null,
|
|
60
|
+
width: modelWidth,
|
|
52
61
|
content: LogisticsList(data)
|
|
53
62
|
});
|
|
54
63
|
} else {
|
|
@@ -58,7 +67,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
58
67
|
} catch (err) {
|
|
59
68
|
message.error(err === null || err === void 0 ? void 0 : err.message);
|
|
60
69
|
}
|
|
61
|
-
case
|
|
70
|
+
case 3:
|
|
62
71
|
case "end":
|
|
63
72
|
return _context.stop();
|
|
64
73
|
}
|
|
@@ -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
|
-
|
|
22
|
+
onClick: function onClick(e) {
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
setVisible(true);
|
|
24
25
|
}
|
|
25
26
|
})), /*#__PURE__*/React.createElement(Modal, {
|
|
26
27
|
open: visible,
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" |
|
|
|
17
17
|
export interface ComponentInterface {
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
20
|
-
columnHeader
|
|
20
|
+
columnHeader: string | JSX.Element;
|
|
21
21
|
type: string;
|
|
22
22
|
isCombinationComponent: boolean;
|
|
23
23
|
children: ComponentInterface[];
|
|
@@ -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.
|
|
3
|
+
"version": "0.6.3-alpha.53",
|
|
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": "
|
|
43
|
+
"gitHead": "df4d1c93fcc9dc8ac4213f3cf819406f67acf3a8"
|
|
44
44
|
}
|