@kmkf-fe-packages/services-components 0.27.1-test.0 → 0.27.1-test.12
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/CopyText/index.d.ts +7 -0
- package/dist/esm/commonComponents/CopyText/index.js +14 -0
- package/dist/esm/commonComponents/ErpContext/index.d.ts +16 -0
- package/dist/esm/commonComponents/ErpContext/index.js +68 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
- package/dist/esm/components/BS/BsLogistics/index.js +12 -7
- package/dist/esm/components/BS/BsReissue/index.js +7 -7
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
- package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
- package/dist/esm/components/BS/common/expressCompany.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +5 -2
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +261 -171
- package/dist/esm/components/CommonHeaderGood/index.js +168 -0
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +15 -26
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +23 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +169 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.less +30 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/noImage.png +0 -0
- package/dist/esm/components/ErpTradeId/index.MD +1 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -29
- package/dist/esm/components/ErpTradeId/index.js +41 -104
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +9 -5
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/JST/JstLogistics/index.js +16 -11
- package/dist/esm/components/JST/JstSendGood/index.js +8 -5
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +57 -4
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js +80 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +26 -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 +32 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.js +14 -3
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +108 -0
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +22 -14
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +7 -19
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +35 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +181 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +148 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -3
- package/dist/esm/index.d.ts +10 -3
- package/dist/esm/index.js +10 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +36 -16
- package/dist/esm/type.d.ts +4 -2
- package/package.json +4 -4
|
@@ -8,9 +8,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
import { SYMBOL, batchInput } from "../../constant";
|
|
11
|
-
|
|
11
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
12
|
+
var InterceptCode = /*#__PURE__*/_createClass(function InterceptCode(options) {
|
|
12
13
|
var _this = this;
|
|
13
|
-
_classCallCheck(this,
|
|
14
|
+
_classCallCheck(this, InterceptCode);
|
|
14
15
|
_defineProperty(this, "name", void 0);
|
|
15
16
|
_defineProperty(this, "id", void 0);
|
|
16
17
|
_defineProperty(this, "sortField", void 0);
|
|
@@ -28,7 +29,9 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
|
28
29
|
var list = record[_this.id] || [];
|
|
29
30
|
if (isNull(list)) return '--';
|
|
30
31
|
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
31
|
-
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"),
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), /*#__PURE__*/React.createElement(CopyText, {
|
|
33
|
+
text: item
|
|
34
|
+
}));
|
|
32
35
|
}));
|
|
33
36
|
});
|
|
34
37
|
_defineProperty(this, "renderClient", function () {
|
|
@@ -78,4 +81,4 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
|
78
81
|
this.dataType = 'object';
|
|
79
82
|
this.children = [];
|
|
80
83
|
});
|
|
81
|
-
export default
|
|
84
|
+
export default InterceptCode;
|
|
@@ -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 './trajectoryStatus';
|
|
8
|
+
import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
|
|
9
|
+
import TrajectoryLastUpdateTime from './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,14 @@ 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 "./trajectoryStatus";
|
|
17
|
+
import TrajectoryLastLogisticsInfo from "./trajectoryLastLogisticsInfo";
|
|
18
|
+
import TrajectoryLastUpdateTime from "./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";
|
|
23
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
19
24
|
var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTrajectory(options) {
|
|
20
25
|
var _this = this,
|
|
21
26
|
_this$componentConfig3;
|
|
@@ -30,11 +35,15 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
30
35
|
_defineProperty(this, "express", void 0);
|
|
31
36
|
_defineProperty(this, "expressCode", void 0);
|
|
32
37
|
_defineProperty(this, "expressSnapshot", void 0);
|
|
38
|
+
_defineProperty(this, "trajectoryStatus", void 0);
|
|
39
|
+
_defineProperty(this, "trajectoryLastLogisticsInfo", void 0);
|
|
40
|
+
_defineProperty(this, "trajectoryLastUpdateTime", void 0);
|
|
33
41
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
42
|
_defineProperty(this, "formField", void 0);
|
|
35
43
|
_defineProperty(this, "canSort", void 0);
|
|
36
44
|
_defineProperty(this, "children", void 0);
|
|
37
45
|
_defineProperty(this, "dataType", void 0);
|
|
46
|
+
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
38
47
|
_defineProperty(this, "editRender", function (p) {
|
|
39
48
|
var _this$componentConfig, _this$componentConfig2;
|
|
40
49
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -52,16 +61,44 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
52
61
|
id: _this.id,
|
|
53
62
|
label: _this.name,
|
|
54
63
|
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, "/",
|
|
64
|
+
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, "/ ", /*#__PURE__*/React.createElement(CopyText, {
|
|
65
|
+
text: item.trajectoryCode,
|
|
66
|
+
style: {
|
|
67
|
+
display: 'inline-block'
|
|
68
|
+
}
|
|
69
|
+
}), "/", item.trajectorySnapshot, "/", /*#__PURE__*/React.createElement("span", {
|
|
70
|
+
style: {
|
|
71
|
+
display: 'inline-block'
|
|
72
|
+
}
|
|
73
|
+
}, _this.renderStatus(item)), "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
56
74
|
})
|
|
57
75
|
}) : null;
|
|
58
76
|
});
|
|
77
|
+
_defineProperty(this, "renderStatus", function (record) {
|
|
78
|
+
var _this$expressIntercep;
|
|
79
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
80
|
+
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'])];
|
|
81
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
onClick: function onClick(e) {
|
|
83
|
+
return e.stopPropagation();
|
|
84
|
+
}
|
|
85
|
+
}, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
86
|
+
modelWidth: w,
|
|
87
|
+
interceptCompany: record['trajectoryCompany'],
|
|
88
|
+
interceptCode: record['trajectoryCode'],
|
|
89
|
+
interceptSenderMobile: record['trajectoryPhone']
|
|
90
|
+
}) : null);
|
|
91
|
+
});
|
|
59
92
|
_defineProperty(this, "renderPc", function () {
|
|
60
93
|
return null;
|
|
61
94
|
});
|
|
62
95
|
_defineProperty(this, "renderLog", function (r) {
|
|
63
96
|
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
|
|
97
|
+
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", {
|
|
98
|
+
style: {
|
|
99
|
+
display: 'inline-block'
|
|
100
|
+
}
|
|
101
|
+
}, _this.renderStatus(item)), "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
65
102
|
}) : null;
|
|
66
103
|
});
|
|
67
104
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -82,6 +119,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
82
119
|
this.type = options.type;
|
|
83
120
|
this.componentConfig = options.componentConfig;
|
|
84
121
|
this.expressDateInstance = ExpressData.getInstance();
|
|
122
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
85
123
|
this.express = new TrajectoryCompany(_objectSpread(_objectSpread({}, options), {}, {
|
|
86
124
|
name: "".concat(this.name, "-\u516C\u53F8"),
|
|
87
125
|
id: "".concat(this.id, "_trajectoryMoreCompany")
|
|
@@ -94,10 +132,25 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
94
132
|
name: "".concat(this.name, "-\u5FEB\u7167"),
|
|
95
133
|
id: "".concat(this.id, "_trajectoryMoreSnapshot")
|
|
96
134
|
}));
|
|
135
|
+
this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
|
|
136
|
+
name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
137
|
+
id: "".concat(this.id, "_trajectoryMoreStatus"),
|
|
138
|
+
parentId: "".concat(this.id)
|
|
139
|
+
}));
|
|
140
|
+
this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
|
|
141
|
+
name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
|
|
142
|
+
id: "".concat(this.id, "_trajectoryMoreLastLogisticsInfo"),
|
|
143
|
+
parentId: "".concat(this.id)
|
|
144
|
+
}));
|
|
145
|
+
this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
|
|
146
|
+
name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
147
|
+
id: "".concat(this.id, "_trajectoryMoreLastUpdateTime"),
|
|
148
|
+
parentId: "".concat(this.id)
|
|
149
|
+
}));
|
|
97
150
|
this.isCombinationComponent = true;
|
|
98
151
|
this.canSort = false;
|
|
99
152
|
this.dataType = "object";
|
|
100
|
-
this.children = [this.express, this.expressCode, this.expressSnapshot];
|
|
153
|
+
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
101
154
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
102
155
|
required: true,
|
|
103
156
|
validator: function validator(_, value) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class TrajectoryLastLogisticsInfo implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
parentId: 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
|
+
parentId: string;
|
|
20
|
+
});
|
|
21
|
+
renderCode: (record: any, w?: number) => React.JSX.Element;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
24
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
25
|
+
getComponentValue: (r: Record) => any;
|
|
26
|
+
renderExport: (value: string, record: Record) => any;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
29
|
+
}
|
|
30
|
+
export default TrajectoryLastLogisticsInfo;
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryLastLogisticsInfo(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, TrajectoryLastLogisticsInfo);
|
|
13
|
+
_defineProperty(this, "name", void 0);
|
|
14
|
+
_defineProperty(this, "id", void 0);
|
|
15
|
+
_defineProperty(this, "parentId", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "align", void 0);
|
|
21
|
+
_defineProperty(this, "width", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "renderCode", function (record) {
|
|
28
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
29
|
+
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
onClick: function onClick(e) {
|
|
32
|
+
return e.stopPropagation();
|
|
33
|
+
}
|
|
34
|
+
}, list.length ? list.map(function (item, index) {
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.trajectoryLastLogisticsInfo);
|
|
36
|
+
}) : "--");
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "renderClient", function () {
|
|
39
|
+
return null;
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
42
|
+
return _this.renderCode(record || [], 700);
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
46
|
+
return _this.renderPc(undefined, r);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
+
var _list$map;
|
|
53
|
+
var list = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
54
|
+
if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
|
|
55
|
+
return list === null || list === void 0 ? void 0 : (_list$map = list.map(function (item, index) {
|
|
56
|
+
return "\u5305\u88F9".concat(index + 1, ": ").concat(item !== null && item !== void 0 ? item : '--');
|
|
57
|
+
})) === null || _list$map === void 0 ? void 0 : _list$map.join('/');
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "editRender", function () {
|
|
60
|
+
return null;
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
63
|
+
return [];
|
|
64
|
+
});
|
|
65
|
+
this.name = options.name;
|
|
66
|
+
this.id = options.id;
|
|
67
|
+
this.parentId = options.parentId;
|
|
68
|
+
this.sortField = options.id;
|
|
69
|
+
this.formField = options.id;
|
|
70
|
+
this.type = options.type;
|
|
71
|
+
this.componentConfig = options.componentConfig;
|
|
72
|
+
this.align = "left";
|
|
73
|
+
this.width = 200;
|
|
74
|
+
this.isCombinationComponent = false;
|
|
75
|
+
this.canSort = false;
|
|
76
|
+
this.dataType = "string";
|
|
77
|
+
this.children = [];
|
|
78
|
+
this.rules = [];
|
|
79
|
+
});
|
|
80
|
+
export default TrajectoryLastLogisticsInfo;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class TrajectoryLastUpdateTime implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
parentId: 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
|
+
parentId: string;
|
|
20
|
+
});
|
|
21
|
+
renderCode: (record: any, w?: number) => React.JSX.Element;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
24
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
25
|
+
renderExport: (value: string, record: Record) => any;
|
|
26
|
+
editRender: () => null;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
28
|
+
}
|
|
29
|
+
export default TrajectoryLastUpdateTime;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLastUpdateTime(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, TrajectoryLastUpdateTime);
|
|
13
|
+
_defineProperty(this, "name", void 0);
|
|
14
|
+
_defineProperty(this, "id", void 0);
|
|
15
|
+
_defineProperty(this, "parentId", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "align", void 0);
|
|
21
|
+
_defineProperty(this, "width", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "renderCode", function (record) {
|
|
28
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
29
|
+
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
onClick: function onClick(e) {
|
|
32
|
+
return e.stopPropagation();
|
|
33
|
+
}
|
|
34
|
+
}, list.length ? list.map(function (item, index) {
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.trajectoryLastUpdateTime);
|
|
36
|
+
}) : "--");
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "renderClient", function () {
|
|
39
|
+
return null;
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
42
|
+
return _this.renderCode(record || [], 700);
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
46
|
+
return _this.renderPc(undefined, r);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
|
+
var _list$map;
|
|
50
|
+
var list = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
51
|
+
if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
|
|
52
|
+
return list === null || list === void 0 ? void 0 : (_list$map = list.map(function (item, index) {
|
|
53
|
+
return "\u5305\u88F9".concat(index + 1, ": ").concat(item !== null && item !== void 0 ? item : '--');
|
|
54
|
+
})) === null || _list$map === void 0 ? void 0 : _list$map.join('/');
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "editRender", function () {
|
|
57
|
+
return null;
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
60
|
+
return [];
|
|
61
|
+
});
|
|
62
|
+
this.name = options.name;
|
|
63
|
+
this.id = options.id;
|
|
64
|
+
this.parentId = options.parentId;
|
|
65
|
+
this.sortField = options.id;
|
|
66
|
+
this.formField = options.id;
|
|
67
|
+
this.type = options.type;
|
|
68
|
+
this.componentConfig = options.componentConfig;
|
|
69
|
+
this.align = "left";
|
|
70
|
+
this.width = 200;
|
|
71
|
+
this.isCombinationComponent = false;
|
|
72
|
+
this.canSort = false;
|
|
73
|
+
this.dataType = "string";
|
|
74
|
+
this.children = [];
|
|
75
|
+
this.rules = [];
|
|
76
|
+
});
|
|
77
|
+
export default TrajectoryLastUpdateTime;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, 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
|
+
id: string;
|
|
7
|
+
parentId: 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
|
+
parentId: string;
|
|
22
|
+
});
|
|
23
|
+
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
24
|
+
renderCode: (record: any, w?: number) => React.JSX.Element;
|
|
25
|
+
renderClient: () => null;
|
|
26
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
27
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
28
|
+
renderExport: (value: string, record: Record) => any;
|
|
29
|
+
editRender: () => null;
|
|
30
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
31
|
+
}
|
|
32
|
+
export default trajectoryStatus;
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { isNull, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
11
|
+
var trajectoryStatus = /*#__PURE__*/_createClass(function trajectoryStatus(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, trajectoryStatus);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "parentId", 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, "expressInterceptInstance", void 0);
|
|
29
|
+
_defineProperty(this, "renderStatus", function (record) {
|
|
30
|
+
var _this$expressIntercep;
|
|
31
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
32
|
+
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'])];
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
onClick: function onClick(e) {
|
|
35
|
+
return e.stopPropagation();
|
|
36
|
+
}
|
|
37
|
+
}, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
38
|
+
modelWidth: w,
|
|
39
|
+
interceptCompany: record['trajectoryCompany'],
|
|
40
|
+
interceptCode: record['trajectoryCode'],
|
|
41
|
+
interceptSenderMobile: record['trajectoryPhone']
|
|
42
|
+
}) : null);
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderCode", function (record) {
|
|
45
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
46
|
+
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryList")]) || [];
|
|
47
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
onClick: function onClick(e) {
|
|
49
|
+
return e.stopPropagation();
|
|
50
|
+
}
|
|
51
|
+
}, list.length ? list.map(function (item, index) {
|
|
52
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.renderStatus(item));
|
|
53
|
+
}) : "--");
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderClient", function () {
|
|
56
|
+
return null;
|
|
57
|
+
});
|
|
58
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
59
|
+
return _this.renderCode(record || [], 700);
|
|
60
|
+
});
|
|
61
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
62
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
63
|
+
return _this.renderPc(undefined, r);
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
66
|
+
var _list$map;
|
|
67
|
+
var list = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
68
|
+
if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
|
|
69
|
+
return list === null || list === void 0 ? void 0 : (_list$map = list.map(function (item, index) {
|
|
70
|
+
var _this$expressIntercep2, _this$expressIntercep3;
|
|
71
|
+
return "\u5305\u88F9".concat(index + 1, ": ").concat((_this$expressIntercep2 = (_this$expressIntercep3 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep3 === void 0 ? void 0 : _this$expressIntercep3[item]) !== null && _this$expressIntercep2 !== void 0 ? _this$expressIntercep2 : '--');
|
|
72
|
+
})) === null || _list$map === void 0 ? void 0 : _list$map.join('/');
|
|
73
|
+
});
|
|
74
|
+
_defineProperty(this, "editRender", function () {
|
|
75
|
+
return null;
|
|
76
|
+
});
|
|
77
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
78
|
+
return [];
|
|
79
|
+
});
|
|
80
|
+
this.name = options.name;
|
|
81
|
+
this.id = options.id;
|
|
82
|
+
this.parentId = options.parentId;
|
|
83
|
+
this.sortField = options.id;
|
|
84
|
+
this.formField = options.id;
|
|
85
|
+
this.type = options.type;
|
|
86
|
+
this.componentConfig = options.componentConfig;
|
|
87
|
+
this.align = "left";
|
|
88
|
+
this.width = 200;
|
|
89
|
+
this.isCombinationComponent = false;
|
|
90
|
+
this.canSort = false;
|
|
91
|
+
this.dataType = "string";
|
|
92
|
+
this.children = [];
|
|
93
|
+
this.rules = [];
|
|
94
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
95
|
+
});
|
|
96
|
+
export default trajectoryStatus;
|
|
@@ -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,23 @@ 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, "_trajectoryStatus"),
|
|
106
|
+
parentId: "".concat(this.id)
|
|
107
|
+
}));
|
|
108
|
+
this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
|
|
109
|
+
name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
|
|
110
|
+
id: "".concat(this.id, "_trajectoryLastLogisticsInfo")
|
|
111
|
+
}));
|
|
112
|
+
this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
|
|
113
|
+
name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
|
|
114
|
+
id: "".concat(this.id, "_trajectoryLastUpdateTime")
|
|
115
|
+
}));
|
|
94
116
|
this.isCombinationComponent = true;
|
|
95
117
|
this.canSort = false;
|
|
96
118
|
this.dataType = 'object';
|
|
97
|
-
this.children = [this.express, this.expressCode, this.expressSnapshot];
|
|
119
|
+
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
98
120
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
99
121
|
validator: function validator(_, value) {
|
|
100
122
|
if (!value.trajectoryCompany) {
|