@kmkf-fe-packages/services-components 0.28.2-alpha.6 → 0.28.2-rc.11
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 +0 -1
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +1 -1
- package/dist/esm/components/ErpTradeId/index.js +2 -2
- package/dist/esm/components/LogisticsInterception/InterceptState.d.ts +37 -0
- package/dist/esm/components/LogisticsInterception/InterceptState.js +89 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +4 -16
- package/dist/esm/components/LogisticsInterception/index.js +11 -6
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +48 -4
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +25 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +30 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -4
- package/dist/esm/index.d.ts +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ var OrderNum = function OrderNum(_ref3) {
|
|
|
132
132
|
if (!value) return;
|
|
133
133
|
setGlobalLoading(true);
|
|
134
134
|
queryOrderDetail(value);
|
|
135
|
-
typeof onTradeIdBlur === 'function' && onTradeIdBlur();
|
|
135
|
+
typeof onTradeIdBlur === 'function' && onTradeIdBlur(value);
|
|
136
136
|
};
|
|
137
137
|
useEffect(function () {
|
|
138
138
|
document.body.addEventListener('click', function () {
|
|
@@ -29,9 +29,9 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
|
|
|
29
29
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
30
30
|
_defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
|
|
31
31
|
var _this$componentConfig, _this$componentConfig2;
|
|
32
|
-
var onTradeIdBlur = function onTradeIdBlur(
|
|
32
|
+
var onTradeIdBlur = function onTradeIdBlur(value) {
|
|
33
33
|
var _p$onBlur;
|
|
34
|
-
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p,
|
|
34
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, 'tradeId');
|
|
35
35
|
};
|
|
36
36
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
37
37
|
title: _this.name,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class InterceptState implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
options: ComponentInterface["options"];
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (value: any, record: Record) => any;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
renderExport: (value: any, record: Record) => any;
|
|
25
|
+
editRender: () => null;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "in";
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "MultipleSelect";
|
|
32
|
+
props: {
|
|
33
|
+
options: any[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export default InterceptState;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../commonComponents/ItemView";
|
|
10
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { SYMBOL } from "../../constant";
|
|
12
|
+
var InterceptState = /*#__PURE__*/_createClass(function InterceptState(options) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
_classCallCheck(this, InterceptState);
|
|
15
|
+
_defineProperty(this, "name", void 0);
|
|
16
|
+
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
19
|
+
_defineProperty(this, "rules", void 0);
|
|
20
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "effects", void 0);
|
|
22
|
+
_defineProperty(this, "align", void 0);
|
|
23
|
+
_defineProperty(this, "width", void 0);
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
|
+
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "options", void 0);
|
|
30
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
31
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
34
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
|
+
id: _this.id,
|
|
36
|
+
label: _this.name,
|
|
37
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
|
+
}) : null;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
|
+
var _record$_this$id;
|
|
42
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
46
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
|
+
var _record$_this$id2;
|
|
50
|
+
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "editRender", function () {
|
|
53
|
+
return null;
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
56
|
+
return {
|
|
57
|
+
searchDefaultConditions: SYMBOL.in,
|
|
58
|
+
type: item.type,
|
|
59
|
+
id: "".concat(item.id, "_qySelfInterceptLogisticsStatus"),
|
|
60
|
+
name: "".concat(item.name, "-\u62E6\u622A\u72B6\u6001"),
|
|
61
|
+
filterComponentType: "MultipleSelect",
|
|
62
|
+
props: {
|
|
63
|
+
options: _this.options || []
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
this.name = "拦截状态";
|
|
68
|
+
this.id = "".concat(options.id, "_qySelfInterceptLogisticsStatus");
|
|
69
|
+
this.sortField = "".concat(options.id, "_qySelfInterceptLogisticsStatus");
|
|
70
|
+
this.formField = "".concat(options.id, "_qySelfInterceptLogisticsStatus");
|
|
71
|
+
this.type = options.type;
|
|
72
|
+
this.componentConfig = options.componentConfig;
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.align = "left";
|
|
75
|
+
this.width = 200;
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.canSort = true;
|
|
78
|
+
this.children = [];
|
|
79
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
80
|
+
this.dataType = "string";
|
|
81
|
+
this.options = [{
|
|
82
|
+
label: "拦截成功",
|
|
83
|
+
value: "拦截成功"
|
|
84
|
+
}, {
|
|
85
|
+
label: "拦截失败",
|
|
86
|
+
value: "拦截失败"
|
|
87
|
+
}];
|
|
88
|
+
});
|
|
89
|
+
export default InterceptState;
|
|
@@ -6,6 +6,7 @@ import InterceptSnapshot from "./interceptSnapshot";
|
|
|
6
6
|
import InterceptAddress from "./InterceptAddress";
|
|
7
7
|
import InterceptType from "./InterceptType";
|
|
8
8
|
import InterceptStatus from "./InterceptStatus";
|
|
9
|
+
import InterceptState from "./InterceptState";
|
|
9
10
|
import Express from "../Express";
|
|
10
11
|
import ExpressCode from "../ExpressCode";
|
|
11
12
|
declare class Logistics implements ComponentInterface {
|
|
@@ -21,6 +22,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
21
22
|
interceptLogisticsStatus: InterceptStatus;
|
|
22
23
|
interceptSenderMobile: InterceptSenderMobile;
|
|
23
24
|
interceptSnapshot: InterceptSnapshot;
|
|
25
|
+
interceptState: InterceptState;
|
|
24
26
|
isCombinationComponent: boolean;
|
|
25
27
|
formField: string;
|
|
26
28
|
canSort: boolean;
|
|
@@ -50,21 +52,12 @@ declare class Logistics implements ComponentInterface {
|
|
|
50
52
|
mobile: any;
|
|
51
53
|
};
|
|
52
54
|
interceptSnapshot: any;
|
|
55
|
+
interceptState: any;
|
|
53
56
|
};
|
|
54
57
|
renderPc: () => null;
|
|
55
58
|
renderExport: () => null;
|
|
56
59
|
editRender: (p: any) => React.JSX.Element;
|
|
57
60
|
filterConfig: (item: ColumnConfig) => ({
|
|
58
|
-
searchDefaultConditions: "in";
|
|
59
|
-
type: string;
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
filterComponentType: "MultipleSelect";
|
|
63
|
-
props: {
|
|
64
|
-
options: any[];
|
|
65
|
-
};
|
|
66
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
67
|
-
} | {
|
|
68
61
|
searchDefaultConditions: "like";
|
|
69
62
|
type: string;
|
|
70
63
|
id: string;
|
|
@@ -78,13 +71,8 @@ declare class Logistics implements ComponentInterface {
|
|
|
78
71
|
name: string;
|
|
79
72
|
filterComponentType: "MultipleSelect";
|
|
80
73
|
props: {
|
|
81
|
-
options:
|
|
82
|
-
label: string;
|
|
83
|
-
value: string;
|
|
84
|
-
}[];
|
|
74
|
+
options: any[];
|
|
85
75
|
};
|
|
86
|
-
formatFilterValue: (value: string[]) => string[];
|
|
87
|
-
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
88
76
|
})[];
|
|
89
77
|
}
|
|
90
78
|
export default Logistics;
|
|
@@ -17,6 +17,7 @@ import InterceptSnapshot from "./interceptSnapshot";
|
|
|
17
17
|
import InterceptAddress from "./InterceptAddress";
|
|
18
18
|
import InterceptType from "./InterceptType";
|
|
19
19
|
import InterceptStatus from "./InterceptStatus";
|
|
20
|
+
import InterceptState from "./InterceptState";
|
|
20
21
|
import Express from "../Express";
|
|
21
22
|
import ExpressCode from "../ExpressCode";
|
|
22
23
|
import ColumnHeader from "./columnHeader";
|
|
@@ -35,6 +36,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
35
36
|
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
36
37
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
37
38
|
_defineProperty(this, "interceptSnapshot", void 0);
|
|
39
|
+
_defineProperty(this, "interceptState", void 0);
|
|
38
40
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
39
41
|
_defineProperty(this, "formField", void 0);
|
|
40
42
|
_defineProperty(this, "canSort", void 0);
|
|
@@ -47,10 +49,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
47
49
|
_defineProperty(this, "effects", void 0);
|
|
48
50
|
_defineProperty(this, "dataType", void 0);
|
|
49
51
|
_defineProperty(this, "renderClient", function (record) {
|
|
50
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptSnapshot.renderClient(record));
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
51
53
|
});
|
|
52
54
|
_defineProperty(this, "renderLog", function (record) {
|
|
53
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))));
|
|
55
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
|
|
54
56
|
});
|
|
55
57
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
56
58
|
return {
|
|
@@ -60,7 +62,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
60
62
|
interceptType: _this.interceptType.getComponentValue(r),
|
|
61
63
|
interceptLogisticsStatus: _this.interceptLogisticsStatus.getComponentValue(r),
|
|
62
64
|
interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
|
|
63
|
-
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r)
|
|
65
|
+
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
|
|
66
|
+
interceptState: _this.interceptState.getComponentValue(r)
|
|
64
67
|
};
|
|
65
68
|
});
|
|
66
69
|
_defineProperty(this, "renderPc", function () {
|
|
@@ -82,7 +85,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
82
85
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
83
86
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
84
87
|
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
85
|
-
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
88
|
+
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing,
|
|
89
|
+
showState: true
|
|
86
90
|
}))
|
|
87
91
|
});
|
|
88
92
|
});
|
|
@@ -91,7 +95,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
91
95
|
subKey: "interceptCompany"
|
|
92
96
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
93
97
|
subKey: "interceptCode"
|
|
94
|
-
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
|
|
98
|
+
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)];
|
|
95
99
|
});
|
|
96
100
|
this.name = options.name;
|
|
97
101
|
this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
|
|
@@ -111,6 +115,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
111
115
|
this.interceptLogisticsStatus = new InterceptStatus(options);
|
|
112
116
|
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
113
117
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
118
|
+
this.interceptState = new InterceptState(options);
|
|
114
119
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
115
120
|
id: "".concat(options.id, "_interceptCompany"),
|
|
116
121
|
name: "物流信息"
|
|
@@ -122,7 +127,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
122
127
|
this.isCombinationComponent = true;
|
|
123
128
|
this.canSort = false;
|
|
124
129
|
this.dataType = "object";
|
|
125
|
-
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
|
|
130
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot, this.interceptState];
|
|
126
131
|
this.rules = [{
|
|
127
132
|
validator: function validator(_, value) {
|
|
128
133
|
var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre, _value$interceptSende;
|
|
@@ -4,6 +4,10 @@ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
4
4
|
import TrajectoryCompany from "./trajectoryCompany";
|
|
5
5
|
import TrajectoryCode from "./trajectoryCode";
|
|
6
6
|
import TrajectorySnapshot from "./trajectorySnapshot";
|
|
7
|
+
import TrajectoryStatus from '../LogisticsTrajectory/trajectoryStatus';
|
|
8
|
+
import TrajectoryLastLogisticsInfo from '../LogisticsTrajectory/trajectoryLastLogisticsInfo';
|
|
9
|
+
import TrajectoryLastUpdateTime from '../LogisticsTrajectory/trajectoryLastUpdateTime';
|
|
10
|
+
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
7
11
|
declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
8
12
|
name: string;
|
|
9
13
|
id: string;
|
|
@@ -15,14 +19,19 @@ declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
|
15
19
|
express: TrajectoryCompany;
|
|
16
20
|
expressCode: TrajectoryCode;
|
|
17
21
|
expressSnapshot: TrajectorySnapshot;
|
|
22
|
+
trajectoryStatus: TrajectoryStatus;
|
|
23
|
+
trajectoryLastLogisticsInfo: TrajectoryLastLogisticsInfo;
|
|
24
|
+
trajectoryLastUpdateTime: TrajectoryLastUpdateTime;
|
|
18
25
|
isCombinationComponent: boolean;
|
|
19
26
|
formField: string;
|
|
20
27
|
canSort: boolean;
|
|
21
28
|
children: ComponentInterface[];
|
|
22
29
|
dataType: ComponentInterface["dataType"];
|
|
30
|
+
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
23
31
|
constructor(options: PickOption);
|
|
24
32
|
editRender: (p: any) => React.JSX.Element;
|
|
25
33
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
34
|
+
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
26
35
|
renderPc: () => null;
|
|
27
36
|
renderLog: (r: Record) => any;
|
|
28
37
|
getComponentValue: (r: Record) => any;
|
|
@@ -13,9 +13,13 @@ import { LogisticsMoreTrajectory as MoreTrajectory } from "@kmkf-fe-packages/bas
|
|
|
13
13
|
import TrajectoryCompany from "./trajectoryCompany";
|
|
14
14
|
import TrajectoryCode from "./trajectoryCode";
|
|
15
15
|
import TrajectorySnapshot from "./trajectorySnapshot";
|
|
16
|
+
import TrajectoryStatus from "../LogisticsTrajectory/trajectoryStatus";
|
|
17
|
+
import TrajectoryLastLogisticsInfo from "../LogisticsTrajectory/trajectoryLastLogisticsInfo";
|
|
18
|
+
import TrajectoryLastUpdateTime from "../LogisticsTrajectory/trajectoryLastUpdateTime";
|
|
19
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
16
20
|
import GetFormItem from "../GetFormItem";
|
|
17
21
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
22
|
+
import { isNull, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
23
|
var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTrajectory(options) {
|
|
20
24
|
var _this = this,
|
|
21
25
|
_this$componentConfig3;
|
|
@@ -30,11 +34,15 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
30
34
|
_defineProperty(this, "express", void 0);
|
|
31
35
|
_defineProperty(this, "expressCode", void 0);
|
|
32
36
|
_defineProperty(this, "expressSnapshot", void 0);
|
|
37
|
+
_defineProperty(this, "trajectoryStatus", void 0);
|
|
38
|
+
_defineProperty(this, "trajectoryLastLogisticsInfo", void 0);
|
|
39
|
+
_defineProperty(this, "trajectoryLastUpdateTime", void 0);
|
|
33
40
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
41
|
_defineProperty(this, "formField", void 0);
|
|
35
42
|
_defineProperty(this, "canSort", void 0);
|
|
36
43
|
_defineProperty(this, "children", void 0);
|
|
37
44
|
_defineProperty(this, "dataType", void 0);
|
|
45
|
+
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
38
46
|
_defineProperty(this, "editRender", function (p) {
|
|
39
47
|
var _this$componentConfig, _this$componentConfig2;
|
|
40
48
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -52,16 +60,39 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
52
60
|
id: _this.id,
|
|
53
61
|
label: _this.name,
|
|
54
62
|
value: record === null || record === void 0 ? void 0 : record[_this.id].map(function (item, index) {
|
|
55
|
-
return /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record[_this.id].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/", item.trajectoryCode, "/", item.trajectorySnapshot
|
|
63
|
+
return /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record[_this.id].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/", item.trajectoryCode, "/", item.trajectorySnapshot, "/", /*#__PURE__*/React.createElement("span", {
|
|
64
|
+
style: {
|
|
65
|
+
display: 'inline-block'
|
|
66
|
+
}
|
|
67
|
+
}, _this.renderStatus(item)), "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
56
68
|
})
|
|
57
69
|
}) : null;
|
|
58
70
|
});
|
|
71
|
+
_defineProperty(this, "renderStatus", function (record) {
|
|
72
|
+
var _this$expressIntercep;
|
|
73
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
74
|
+
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['trajectoryStatus'])];
|
|
75
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
onClick: function onClick(e) {
|
|
77
|
+
return e.stopPropagation();
|
|
78
|
+
}
|
|
79
|
+
}, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
80
|
+
modelWidth: w,
|
|
81
|
+
interceptCompany: record['trajectoryCompany'],
|
|
82
|
+
interceptCode: record['trajectoryCode'],
|
|
83
|
+
interceptSenderMobile: record['trajectoryPhone']
|
|
84
|
+
}) : null);
|
|
85
|
+
});
|
|
59
86
|
_defineProperty(this, "renderPc", function () {
|
|
60
87
|
return null;
|
|
61
88
|
});
|
|
62
89
|
_defineProperty(this, "renderLog", function (r) {
|
|
63
90
|
return !isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")]) ? r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")].map(function (item, index) {
|
|
64
|
-
return /*#__PURE__*/React.createElement("div", null, (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/", item.trajectoryCode, "/", item.trajectorySnapshot
|
|
91
|
+
return /*#__PURE__*/React.createElement("div", null, (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/", item.trajectoryCode, "/", item.trajectorySnapshot, "/", /*#__PURE__*/React.createElement("span", {
|
|
92
|
+
style: {
|
|
93
|
+
display: 'inline-block'
|
|
94
|
+
}
|
|
95
|
+
}, _this.renderStatus(item)), "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
65
96
|
}) : null;
|
|
66
97
|
});
|
|
67
98
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -82,6 +113,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
82
113
|
this.type = options.type;
|
|
83
114
|
this.componentConfig = options.componentConfig;
|
|
84
115
|
this.expressDateInstance = ExpressData.getInstance();
|
|
116
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
85
117
|
this.express = new TrajectoryCompany(_objectSpread(_objectSpread({}, options), {}, {
|
|
86
118
|
name: "".concat(this.name, "-\u516C\u53F8"),
|
|
87
119
|
id: "".concat(this.id, "_trajectoryMoreCompany")
|
|
@@ -94,10 +126,22 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
94
126
|
name: "".concat(this.name, "-\u5FEB\u7167"),
|
|
95
127
|
id: "".concat(this.id, "_trajectoryMoreSnapshot")
|
|
96
128
|
}));
|
|
129
|
+
this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
|
|
130
|
+
name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
131
|
+
id: "".concat(this.id)
|
|
132
|
+
}));
|
|
133
|
+
this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
|
|
134
|
+
name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
|
|
135
|
+
id: "".concat(this.id, "_trajectoryLastLogisticsInfo")
|
|
136
|
+
}));
|
|
137
|
+
this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
|
|
138
|
+
name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
139
|
+
id: "".concat(this.id, "_trajectoryLastUpdateTime")
|
|
140
|
+
}));
|
|
97
141
|
this.isCombinationComponent = true;
|
|
98
142
|
this.canSort = false;
|
|
99
143
|
this.dataType = "object";
|
|
100
|
-
this.children = [this.express, this.expressCode, this.expressSnapshot];
|
|
144
|
+
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
101
145
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
102
146
|
required: true,
|
|
103
147
|
validator: function validator(_, value) {
|
|
@@ -4,6 +4,9 @@ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
4
4
|
import TrajectoryCompany from './trajectoryCompany';
|
|
5
5
|
import TrajectoryCode from './trajectoryCode';
|
|
6
6
|
import TrajectorySnapshot from './trajectorySnapshot';
|
|
7
|
+
import TrajectoryStatus from './trajectoryStatus';
|
|
8
|
+
import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
|
|
9
|
+
import TrajectoryLastUpdateTime from './trajectoryLastUpdateTime';
|
|
7
10
|
declare class LogisticsTrajectory implements ComponentInterface {
|
|
8
11
|
name: string;
|
|
9
12
|
id: string;
|
|
@@ -15,6 +18,9 @@ declare class LogisticsTrajectory implements ComponentInterface {
|
|
|
15
18
|
express: TrajectoryCompany;
|
|
16
19
|
expressCode: TrajectoryCode;
|
|
17
20
|
expressSnapshot: TrajectorySnapshot;
|
|
21
|
+
trajectoryStatus: TrajectoryStatus;
|
|
22
|
+
trajectoryLastLogisticsInfo: TrajectoryLastLogisticsInfo;
|
|
23
|
+
trajectoryLastUpdateTime: TrajectoryLastUpdateTime;
|
|
18
24
|
isCombinationComponent: boolean;
|
|
19
25
|
formField: string;
|
|
20
26
|
canSort: boolean;
|
|
@@ -29,6 +35,9 @@ declare class LogisticsTrajectory implements ComponentInterface {
|
|
|
29
35
|
company: any;
|
|
30
36
|
order: any;
|
|
31
37
|
snapshot: any;
|
|
38
|
+
trajectoryStatus: any;
|
|
39
|
+
trajectoryLastUpdateTime: any;
|
|
40
|
+
trajectoryLastLogisticsInfo: any;
|
|
32
41
|
};
|
|
33
42
|
renderExport: () => null;
|
|
34
43
|
filterConfig: (item: ColumnConfig) => ({
|
|
@@ -14,6 +14,9 @@ import { LogisticsTrajectory as Trajectory } from '@kmkf-fe-packages/basic-compo
|
|
|
14
14
|
import TrajectoryCompany from "./trajectoryCompany";
|
|
15
15
|
import TrajectoryCode from "./trajectoryCode";
|
|
16
16
|
import TrajectorySnapshot from "./trajectorySnapshot";
|
|
17
|
+
import TrajectoryStatus from "./trajectoryStatus";
|
|
18
|
+
import TrajectoryLastLogisticsInfo from "./trajectoryLastLogisticsInfo";
|
|
19
|
+
import TrajectoryLastUpdateTime from "./trajectoryLastUpdateTime";
|
|
17
20
|
import GetFormItem from "../GetFormItem";
|
|
18
21
|
var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory(options) {
|
|
19
22
|
var _this = this,
|
|
@@ -29,6 +32,9 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
29
32
|
_defineProperty(this, "express", void 0);
|
|
30
33
|
_defineProperty(this, "expressCode", void 0);
|
|
31
34
|
_defineProperty(this, "expressSnapshot", void 0);
|
|
35
|
+
_defineProperty(this, "trajectoryStatus", void 0);
|
|
36
|
+
_defineProperty(this, "trajectoryLastLogisticsInfo", void 0);
|
|
37
|
+
_defineProperty(this, "trajectoryLastUpdateTime", void 0);
|
|
32
38
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
33
39
|
_defineProperty(this, "formField", void 0);
|
|
34
40
|
_defineProperty(this, "canSort", void 0);
|
|
@@ -49,19 +55,22 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
49
55
|
});
|
|
50
56
|
});
|
|
51
57
|
_defineProperty(this, "renderClient", function (record) {
|
|
52
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.expressSnapshot.renderClient(record));
|
|
58
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.expressSnapshot.renderClient(record), _this.trajectoryStatus.renderClient(record), _this.trajectoryLastUpdateTime.renderClient(record), _this.trajectoryLastLogisticsInfo.renderClient(record));
|
|
53
59
|
});
|
|
54
60
|
_defineProperty(this, "renderPc", function () {
|
|
55
61
|
return null;
|
|
56
62
|
});
|
|
57
63
|
_defineProperty(this, "renderLog", function (r) {
|
|
58
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.express.name, ": ", _this.express.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressCode.name, ": ", _this.expressCode.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressSnapshot.name, ":", _this.expressSnapshot.renderLog(r)));
|
|
64
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.express.name, ": ", _this.express.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressCode.name, ": ", _this.expressCode.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressSnapshot.name, ":", _this.expressSnapshot.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.trajectoryStatus.name, ":", _this.trajectoryStatus.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.trajectoryLastUpdateTime.name, ":", _this.trajectoryLastUpdateTime.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.trajectoryLastLogisticsInfo.name, ":", _this.trajectoryLastLogisticsInfo.renderLog(r)));
|
|
59
65
|
});
|
|
60
66
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
61
67
|
return {
|
|
62
68
|
company: _this.express.getComponentValue(r),
|
|
63
69
|
order: _this.expressCode.getComponentValue(r),
|
|
64
|
-
snapshot: _this.expressSnapshot.getComponentValue(r)
|
|
70
|
+
snapshot: _this.expressSnapshot.getComponentValue(r),
|
|
71
|
+
trajectoryStatus: _this.trajectoryStatus.getComponentValue(r),
|
|
72
|
+
trajectoryLastUpdateTime: _this.trajectoryLastUpdateTime.getComponentValue(r),
|
|
73
|
+
trajectoryLastLogisticsInfo: _this.trajectoryLastLogisticsInfo.getComponentValue(r)
|
|
65
74
|
};
|
|
66
75
|
});
|
|
67
76
|
_defineProperty(this, "renderExport", function () {
|
|
@@ -91,10 +100,22 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
91
100
|
name: "".concat(this.name, "-\u5FEB\u7167"),
|
|
92
101
|
id: "".concat(this.id, "_trajectorySnapshot")
|
|
93
102
|
}));
|
|
103
|
+
this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
|
|
104
|
+
name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
105
|
+
id: "".concat(this.id)
|
|
106
|
+
}));
|
|
107
|
+
this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
|
|
108
|
+
name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
|
|
109
|
+
id: "".concat(this.id, "_trajectoryLastLogisticsInfo")
|
|
110
|
+
}));
|
|
111
|
+
this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
|
|
112
|
+
name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
113
|
+
id: "".concat(this.id, "_trajectoryLastUpdateTime")
|
|
114
|
+
}));
|
|
94
115
|
this.isCombinationComponent = true;
|
|
95
116
|
this.canSort = false;
|
|
96
117
|
this.dataType = 'object';
|
|
97
|
-
this.children = [this.express, this.expressCode, this.expressSnapshot];
|
|
118
|
+
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
98
119
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
99
120
|
validator: function validator(_, value) {
|
|
100
121
|
if (!value.trajectoryCompany) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class TrajectoryLastLogisticsInfo implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
parentId: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => any;
|
|
21
|
+
renderLog: (r: Record) => any;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: (value: string, record: Record) => any;
|
|
24
|
+
editRender: () => null;
|
|
25
|
+
filterConfig: () => never[];
|
|
26
|
+
}
|
|
27
|
+
export default TrajectoryLastLogisticsInfo;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../commonComponents/ItemView";
|
|
10
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryLastLogisticsInfo(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, TrajectoryLastLogisticsInfo);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "parentId", void 0);
|
|
16
|
+
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
19
|
+
_defineProperty(this, "rules", void 0);
|
|
20
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "align", void 0);
|
|
22
|
+
_defineProperty(this, "width", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
+
id: _this.id,
|
|
31
|
+
label: _this.name,
|
|
32
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
|
+
}) : null;
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
+
var _record$_this$id;
|
|
37
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
41
|
+
return _this.renderPc(undefined, r);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
|
+
var _record$_this$id2;
|
|
48
|
+
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "editRender", function () {
|
|
51
|
+
return null;
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "filterConfig", function () {
|
|
54
|
+
return [];
|
|
55
|
+
});
|
|
56
|
+
this.name = options.name;
|
|
57
|
+
this.parentId = options.id;
|
|
58
|
+
this.id = "".concat(options.id);
|
|
59
|
+
this.sortField = "".concat(options.id);
|
|
60
|
+
this.formField = "".concat(options.id);
|
|
61
|
+
this.type = options.type;
|
|
62
|
+
this.componentConfig = options.componentConfig;
|
|
63
|
+
this.rules = [];
|
|
64
|
+
this.align = "left";
|
|
65
|
+
this.width = 200;
|
|
66
|
+
this.isCombinationComponent = false;
|
|
67
|
+
this.canSort = false;
|
|
68
|
+
this.dataType = "string";
|
|
69
|
+
this.children = [];
|
|
70
|
+
});
|
|
71
|
+
export default TrajectoryLastLogisticsInfo;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class TrajectoryLastUpdateTime implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
parentId: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => any;
|
|
21
|
+
renderLog: (r: Record) => any;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: (value: string, record: Record) => any;
|
|
24
|
+
editRender: () => null;
|
|
25
|
+
filterConfig: () => never[];
|
|
26
|
+
}
|
|
27
|
+
export default TrajectoryLastUpdateTime;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../commonComponents/ItemView";
|
|
10
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLastUpdateTime(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, TrajectoryLastUpdateTime);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "parentId", void 0);
|
|
16
|
+
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
19
|
+
_defineProperty(this, "rules", void 0);
|
|
20
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "align", void 0);
|
|
22
|
+
_defineProperty(this, "width", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
+
id: _this.id,
|
|
31
|
+
label: _this.name,
|
|
32
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
|
+
}) : null;
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
+
var _record$_this$id;
|
|
37
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
41
|
+
return _this.renderPc(undefined, r);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
|
+
var _record$_this$id2;
|
|
48
|
+
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "editRender", function () {
|
|
51
|
+
return null;
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "filterConfig", function () {
|
|
54
|
+
return [];
|
|
55
|
+
});
|
|
56
|
+
this.name = options.name;
|
|
57
|
+
this.parentId = options.id;
|
|
58
|
+
this.id = "".concat(options.id);
|
|
59
|
+
this.sortField = "".concat(options.id);
|
|
60
|
+
this.formField = "".concat(options.id);
|
|
61
|
+
this.type = options.type;
|
|
62
|
+
this.componentConfig = options.componentConfig;
|
|
63
|
+
this.rules = [];
|
|
64
|
+
this.align = "left";
|
|
65
|
+
this.width = 200;
|
|
66
|
+
this.isCombinationComponent = false;
|
|
67
|
+
this.canSort = false;
|
|
68
|
+
this.dataType = "string";
|
|
69
|
+
this.children = [];
|
|
70
|
+
});
|
|
71
|
+
export default TrajectoryLastUpdateTime;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
declare class TrajectoryStatus implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
parentId: string;
|
|
7
|
+
id: string;
|
|
8
|
+
sortField: string;
|
|
9
|
+
type: string;
|
|
10
|
+
rules: any[];
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
align: ALignType;
|
|
13
|
+
width: number;
|
|
14
|
+
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
16
|
+
canSort: boolean;
|
|
17
|
+
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface["dataType"];
|
|
19
|
+
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
20
|
+
constructor(options: PickOption);
|
|
21
|
+
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
22
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
24
|
+
renderLog: (r: Record) => any;
|
|
25
|
+
getComponentValue: (r: Record) => any;
|
|
26
|
+
renderExport: (value: any, record: Record) => any;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: () => never[];
|
|
29
|
+
}
|
|
30
|
+
export default TrajectoryStatus;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 ItemView from "../../commonComponents/ItemView";
|
|
10
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
11
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
var TrajectoryStatus = /*#__PURE__*/_createClass(function TrajectoryStatus(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, TrajectoryStatus);
|
|
16
|
+
_defineProperty(this, "name", void 0);
|
|
17
|
+
_defineProperty(this, "parentId", void 0);
|
|
18
|
+
_defineProperty(this, "id", void 0);
|
|
19
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
|
+
_defineProperty(this, "type", void 0);
|
|
21
|
+
_defineProperty(this, "rules", void 0);
|
|
22
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
23
|
+
_defineProperty(this, "align", void 0);
|
|
24
|
+
_defineProperty(this, "width", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
31
|
+
_defineProperty(this, "renderStatus", function (record) {
|
|
32
|
+
var _this$expressIntercep;
|
|
33
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
34
|
+
var interceptCode = "".concat(_this.parentId, "_trajectoryCode");
|
|
35
|
+
var interceptSenderMobile = "".concat(_this.parentId, "_trajectoryPhone");
|
|
36
|
+
var companyId = "".concat(_this.parentId, "_trajectoryCompany");
|
|
37
|
+
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])];
|
|
38
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
onClick: function onClick(e) {
|
|
40
|
+
return e.stopPropagation();
|
|
41
|
+
}
|
|
42
|
+
}, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
43
|
+
modelWidth: w,
|
|
44
|
+
interceptCompany: record[companyId],
|
|
45
|
+
interceptCode: record[interceptCode],
|
|
46
|
+
interceptSenderMobile: record[interceptSenderMobile]
|
|
47
|
+
}) : null);
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
50
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
51
|
+
id: _this.id,
|
|
52
|
+
label: _this.name,
|
|
53
|
+
value: _this.renderStatus(record)
|
|
54
|
+
}) : null;
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
57
|
+
return _this.renderStatus(record, 700);
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
60
|
+
var _this$expressIntercep2;
|
|
61
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
62
|
+
return (_this$expressIntercep2 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep2 === void 0 ? void 0 : _this$expressIntercep2[r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
65
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
|
+
var _this$expressIntercep3, _this$expressIntercep4;
|
|
69
|
+
return (_this$expressIntercep3 = (_this$expressIntercep4 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep4 === void 0 ? void 0 : _this$expressIntercep4["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep3 !== void 0 ? _this$expressIntercep3 : "--";
|
|
70
|
+
});
|
|
71
|
+
_defineProperty(this, "editRender", function () {
|
|
72
|
+
return null;
|
|
73
|
+
});
|
|
74
|
+
_defineProperty(this, "filterConfig", function () {
|
|
75
|
+
return [];
|
|
76
|
+
});
|
|
77
|
+
this.name = options.name;
|
|
78
|
+
this.parentId = "".concat(options.id);
|
|
79
|
+
this.id = "".concat(options.id, "_trajectoryStatus");
|
|
80
|
+
this.sortField = "".concat(options.id, "_trajectoryStatus");
|
|
81
|
+
this.formField = "".concat(options.id, "_trajectoryStatus");
|
|
82
|
+
this.type = options.type;
|
|
83
|
+
this.componentConfig = options.componentConfig;
|
|
84
|
+
this.rules = [];
|
|
85
|
+
this.align = "left";
|
|
86
|
+
this.width = 200;
|
|
87
|
+
this.isCombinationComponent = false;
|
|
88
|
+
this.canSort = false;
|
|
89
|
+
this.dataType = "string";
|
|
90
|
+
this.children = [];
|
|
91
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
92
|
+
});
|
|
93
|
+
export default TrajectoryStatus;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, CommonInput, PaymentVoucherCode } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | CommonInput | PaymentVoucherCode;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, CommonInput, PaymentVoucherCode } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -196,9 +196,6 @@ export var factory = function factory(type, options) {
|
|
|
196
196
|
return new CommonDataTime(options);
|
|
197
197
|
case "FLOW_UPDATE_DATETIME":
|
|
198
198
|
return new CommonDataTime(options);
|
|
199
|
-
case "WDT_GOODS":
|
|
200
|
-
// 万里牛商品
|
|
201
|
-
return new WdtGoods(options);
|
|
202
199
|
case "BUSINESS_ORDER_NO":
|
|
203
200
|
return new CommonInput(options);
|
|
204
201
|
case "PAYMENT_VOUCHER_CODE":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,9 +70,9 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
-
export { default as NodeInput } from
|
|
74
|
-
export { default as FlowWorkOrderStatus } from
|
|
75
|
-
export { default as MsgStatus } from
|
|
73
|
+
export { default as NodeInput } from './components/NodeInput';
|
|
74
|
+
export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
|
|
75
|
+
export { default as MsgStatus } from './components/MsgStatus';
|
|
76
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
77
|
export { default as CommonInput } from "./components/CommonInput";
|
|
78
78
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.28.2-
|
|
3
|
+
"version": "0.28.2-rc.11",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.28.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.28.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.28.2-rc.11",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.28.2-rc.8"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "00de30efe85948f8fe088b29804fc90f7a457067",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|