@kmkf-fe-packages/services-components 0.27.0-alpha.0 → 0.27.0-rc.1
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 +1 -1
- package/dist/esm/commonComponents/SelectMark/index.js +6 -2
- 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 +1 -0
- package/dist/esm/components/Common/index.js +76 -3
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/FlowMarkSelect/index.js +3 -2
- package/dist/esm/components/FlowStatusSelect/index.js +1 -0
- package/dist/esm/components/FlowTag/index.js +1 -1
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +40 -0
- package/dist/esm/components/FlowWorkOrderStatus/index.js +143 -0
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/HandlerDeadLine/index.js +0 -1
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +6 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +21 -3
- 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 +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +71 -0
- package/dist/esm/components/NodeDeadLine/index.js +0 -1
- package/dist/esm/components/NodeInput/index.d.ts +24 -0
- package/dist/esm/components/NodeInput/index.js +58 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +104 -0
- package/dist/esm/components/PlatForm/index.js +1 -1
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +28 -15
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +22 -6
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +8 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -74,7 +74,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
this.name = "处理人";
|
|
77
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "处理人";
|
|
78
78
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "handlerList";
|
|
79
79
|
this.sortField = "handlerList";
|
|
80
80
|
this.formField = "handlerList";
|
|
@@ -26,7 +26,6 @@ var HandlerDeadLine = /*#__PURE__*/_createClass(function HandlerDeadLine(options
|
|
|
26
26
|
_defineProperty(this, "options", void 0);
|
|
27
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
28
|
var _record, _record2;
|
|
29
|
-
if (!(record !== null && record !== void 0 && record.hasHandlerDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
29
|
return /*#__PURE__*/React.createElement("span", {
|
|
31
30
|
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
31
|
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
@@ -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 '../LogisticsTrajectory/trajectoryStatus';
|
|
8
|
+
import TrajectoryLastLogisticsInfo from '../LogisticsTrajectory/trajectoryLastLogisticsInfo';
|
|
9
|
+
import TrajectoryLastUpdateTime from '../LogisticsTrajectory/trajectoryLastUpdateTime';
|
|
7
10
|
declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
8
11
|
name: string;
|
|
9
12
|
id: string;
|
|
@@ -15,6 +18,9 @@ declare class LogisticsMoreTrajectory 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;
|
|
@@ -13,6 +13,9 @@ 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";
|
|
16
19
|
import GetFormItem from "../GetFormItem";
|
|
17
20
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
21
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
@@ -30,6 +33,9 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
30
33
|
_defineProperty(this, "express", void 0);
|
|
31
34
|
_defineProperty(this, "expressCode", void 0);
|
|
32
35
|
_defineProperty(this, "expressSnapshot", void 0);
|
|
36
|
+
_defineProperty(this, "trajectoryStatus", void 0);
|
|
37
|
+
_defineProperty(this, "trajectoryLastLogisticsInfo", void 0);
|
|
38
|
+
_defineProperty(this, "trajectoryLastUpdateTime", void 0);
|
|
33
39
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
40
|
_defineProperty(this, "formField", void 0);
|
|
35
41
|
_defineProperty(this, "canSort", void 0);
|
|
@@ -52,7 +58,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
52
58
|
id: _this.id,
|
|
53
59
|
label: _this.name,
|
|
54
60
|
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);
|
|
61
|
+
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, "/", item.trajectoryStatus, "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
56
62
|
})
|
|
57
63
|
}) : null;
|
|
58
64
|
});
|
|
@@ -61,7 +67,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
61
67
|
});
|
|
62
68
|
_defineProperty(this, "renderLog", function (r) {
|
|
63
69
|
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);
|
|
70
|
+
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, "/", item.trajectoryStatus, "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
65
71
|
}) : null;
|
|
66
72
|
});
|
|
67
73
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -94,10 +100,22 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
94
100
|
name: "".concat(this.name, "-\u5FEB\u7167"),
|
|
95
101
|
id: "".concat(this.id, "_trajectoryMoreSnapshot")
|
|
96
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
|
+
}));
|
|
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
|
+
}));
|
|
97
115
|
this.isCombinationComponent = true;
|
|
98
116
|
this.canSort = false;
|
|
99
117
|
this.dataType = "object";
|
|
100
|
-
this.children = [this.express, this.expressCode, this.expressSnapshot];
|
|
118
|
+
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
101
119
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
102
120
|
required: true,
|
|
103
121
|
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, "_trajectoryStatus")
|
|
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,27 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class TrajectoryStatus 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 TrajectoryStatus;
|
|
@@ -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 TrajectoryStatus = /*#__PURE__*/_createClass(function TrajectoryStatus(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, TrajectoryStatus);
|
|
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 TrajectoryStatus;
|
|
@@ -26,7 +26,6 @@ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
|
|
|
26
26
|
_defineProperty(this, "options", void 0);
|
|
27
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
28
|
var _record, _record2;
|
|
29
|
-
if (!(record !== null && record !== void 0 && record.hasNodeDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
29
|
return /*#__PURE__*/React.createElement("span", {
|
|
31
30
|
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
31
|
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentInterface, Record, PickOption } from '../../type';
|
|
3
|
+
declare class NodeInput implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
isCombinationComponent: boolean;
|
|
10
|
+
formField: string;
|
|
11
|
+
canSort: boolean;
|
|
12
|
+
children: ComponentInterface[];
|
|
13
|
+
dataType: ComponentInterface['dataType'];
|
|
14
|
+
options: ComponentInterface['options'];
|
|
15
|
+
constructor(options: PickOption);
|
|
16
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
|
+
renderExport: (value: any, record: Record) => any;
|
|
18
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
20
|
+
renderClient: () => null;
|
|
21
|
+
editRender: () => null;
|
|
22
|
+
filterConfig: () => never[];
|
|
23
|
+
}
|
|
24
|
+
export default NodeInput;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 NodeInput = /*#__PURE__*/_createClass(function NodeInput(options) {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, NodeInput);
|
|
13
|
+
_defineProperty(this, "name", void 0);
|
|
14
|
+
_defineProperty(this, "id", void 0);
|
|
15
|
+
_defineProperty(this, "sortField", void 0);
|
|
16
|
+
_defineProperty(this, "type", void 0);
|
|
17
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
18
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
19
|
+
_defineProperty(this, "formField", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
21
|
+
_defineProperty(this, "children", void 0);
|
|
22
|
+
_defineProperty(this, "dataType", void 0);
|
|
23
|
+
_defineProperty(this, "options", void 0);
|
|
24
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
25
|
+
var _record;
|
|
26
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
27
|
+
});
|
|
28
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
29
|
+
var _record2;
|
|
30
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
31
|
+
});
|
|
32
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
33
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
34
|
+
return _this.renderPc(undefined, r);
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
37
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderClient", function () {
|
|
40
|
+
return null;
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "editRender", function () {
|
|
43
|
+
return null;
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "filterConfig", function () {
|
|
46
|
+
return [];
|
|
47
|
+
});
|
|
48
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "当前步骤";
|
|
49
|
+
this.id = (options === null || options === void 0 ? void 0 : options.id) || "nodeId";
|
|
50
|
+
this.type = "NODE_INPUT";
|
|
51
|
+
this.sortField = 'nodeId';
|
|
52
|
+
this.formField = 'nodeId';
|
|
53
|
+
this.isCombinationComponent = false;
|
|
54
|
+
this.canSort = false;
|
|
55
|
+
this.children = [];
|
|
56
|
+
this.dataType = 'string';
|
|
57
|
+
});
|
|
58
|
+
export default NodeInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class PaymentStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -20,8 +20,8 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
20
20
|
formField: string;
|
|
21
21
|
canSort: boolean;
|
|
22
22
|
children: ComponentInterface[];
|
|
23
|
-
dataType: ComponentInterface[
|
|
24
|
-
options: ComponentInterface[
|
|
23
|
+
dataType: ComponentInterface["dataType"];
|
|
24
|
+
options: ComponentInterface["options"];
|
|
25
25
|
constructor(options: PickOption);
|
|
26
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
27
27
|
renderPc: (value: unknown, record: any) => any;
|