@kmkf-fe-packages/services-components 0.21.6-alpha.1 → 0.21.6-alpha.3
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/components/LogisticsMoreTrajectory/index.d.ts +2 -6
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +6 -8
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +13 -12
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +6 -6
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +11 -11
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +4 -4
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +10 -10
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +4 -4
|
@@ -24,12 +24,8 @@ declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
|
24
24
|
editRender: (p: any) => React.JSX.Element;
|
|
25
25
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
26
26
|
renderPc: () => null;
|
|
27
|
-
renderLog: (r: Record) =>
|
|
28
|
-
getComponentValue: (r: Record) =>
|
|
29
|
-
company: any;
|
|
30
|
-
order: any;
|
|
31
|
-
snapshot: any;
|
|
32
|
-
};
|
|
27
|
+
renderLog: (r: Record) => any;
|
|
28
|
+
getComponentValue: (r: Record) => any;
|
|
33
29
|
renderExport: () => null;
|
|
34
30
|
filterConfig: (item: ColumnConfig) => {
|
|
35
31
|
searchDefaultConditions: "like";
|
|
@@ -60,14 +60,12 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
60
60
|
return null;
|
|
61
61
|
});
|
|
62
62
|
_defineProperty(this, "renderLog", function (r) {
|
|
63
|
-
return
|
|
63
|
+
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);
|
|
65
|
+
}) : null;
|
|
64
66
|
});
|
|
65
67
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
66
|
-
return
|
|
67
|
-
company: _this.express.getComponentValue(r),
|
|
68
|
-
order: _this.expressCode.getComponentValue(r),
|
|
69
|
-
snapshot: _this.expressSnapshot.getComponentValue(r)
|
|
70
|
-
};
|
|
68
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
71
69
|
});
|
|
72
70
|
_defineProperty(this, "renderExport", function () {
|
|
73
71
|
return null;
|
|
@@ -85,8 +83,8 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
85
83
|
});
|
|
86
84
|
this.name = options.name;
|
|
87
85
|
this.id = options.id;
|
|
88
|
-
this.sortField = options.id;
|
|
89
|
-
this.formField = options.id;
|
|
86
|
+
this.sortField = "".concat(options.id, "_trajectoryList");
|
|
87
|
+
this.formField = "".concat(options.id, "_trajectoryList");
|
|
90
88
|
this.type = options.type;
|
|
91
89
|
this.componentConfig = options.componentConfig;
|
|
92
90
|
this.expressDateInstance = ExpressData.getInstance();
|
|
@@ -1,21 +1,21 @@
|
|
|
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 TrajectoryCode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
formField: string;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface[
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
|
-
renderCode: (list
|
|
18
|
+
renderCode: (list?: any, w?: number) => React.JSX.Element;
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -11,9 +11,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from 'react';
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
17
|
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
19
|
var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options) {
|
|
@@ -33,24 +33,25 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
33
33
|
_defineProperty(this, "canSort", void 0);
|
|
34
34
|
_defineProperty(this, "children", void 0);
|
|
35
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
-
_defineProperty(this, "renderCode", function (
|
|
36
|
+
_defineProperty(this, "renderCode", function () {
|
|
37
|
+
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
37
38
|
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
38
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
40
|
onClick: function onClick(e) {
|
|
40
41
|
return e.stopPropagation();
|
|
41
42
|
}
|
|
42
43
|
}, list.length ? list.map(function (item, index) {
|
|
43
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") :
|
|
44
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
44
45
|
title: item.trajectoryCode,
|
|
45
46
|
modelWidth: w,
|
|
46
47
|
interceptCompany: item.trajectoryCompany,
|
|
47
48
|
interceptCode: item.trajectoryCode,
|
|
48
49
|
interceptSenderMobile: item.trajectoryPhone
|
|
49
50
|
}));
|
|
50
|
-
}) :
|
|
51
|
+
}) : '--');
|
|
51
52
|
});
|
|
52
53
|
_defineProperty(this, "renderClient", function (record) {
|
|
53
|
-
var _this$id$split = _this.id.split(
|
|
54
|
+
var _this$id$split = _this.id.split('_'),
|
|
54
55
|
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
55
56
|
id = _this$id$split2[0];
|
|
56
57
|
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -60,7 +61,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
60
61
|
}) : null;
|
|
61
62
|
});
|
|
62
63
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
63
|
-
return _this.renderCode(record[_this.id], 700);
|
|
64
|
+
return _this.renderCode(record[_this.id] || [], 700);
|
|
64
65
|
});
|
|
65
66
|
_defineProperty(this, "renderLog", function (r) {
|
|
66
67
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -73,7 +74,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
73
74
|
});
|
|
74
75
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
75
76
|
var _this$getComponentVal;
|
|
76
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
77
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
77
78
|
});
|
|
78
79
|
_defineProperty(this, "editRender", function () {
|
|
79
80
|
return null;
|
|
@@ -84,7 +85,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
84
85
|
type: item.type,
|
|
85
86
|
id: "".concat(item.id, "_trajectoryCode"),
|
|
86
87
|
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
87
|
-
filterComponentType:
|
|
88
|
+
filterComponentType: 'Input',
|
|
88
89
|
filterFn: function filterFn(value) {
|
|
89
90
|
return function (i) {
|
|
90
91
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
|
|
@@ -103,14 +104,14 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
|
|
|
103
104
|
if (/^[0-9a-zA-Z]*$/.test(value)) {
|
|
104
105
|
return Promise.resolve();
|
|
105
106
|
}
|
|
106
|
-
return Promise.reject(new Error(
|
|
107
|
+
return Promise.reject(new Error('只能输入数字和字母'));
|
|
107
108
|
}
|
|
108
109
|
}] : [];
|
|
109
|
-
this.align =
|
|
110
|
+
this.align = 'left';
|
|
110
111
|
this.width = 200;
|
|
111
112
|
this.isCombinationComponent = false;
|
|
112
113
|
this.canSort = false;
|
|
113
|
-
this.dataType =
|
|
114
|
+
this.dataType = 'string';
|
|
114
115
|
this.children = [];
|
|
115
116
|
});
|
|
116
117
|
export default TrajectoryCode;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class TrajectoryCompany implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
11
|
align: ALignType;
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
width: number;
|
|
@@ -15,8 +15,8 @@ declare class TrajectoryCompany implements ComponentInterface {
|
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
17
|
children: ComponentInterface[];
|
|
18
|
-
dataType: ComponentInterface[
|
|
19
|
-
options: ComponentInterface[
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
19
|
+
options: ComponentInterface['options'];
|
|
20
20
|
constructor(options: PickOption);
|
|
21
21
|
renderCompany: (list: any) => any;
|
|
22
22
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -11,10 +11,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
15
|
-
import { ExpressData } from
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull, filterFn as _filterFn } from
|
|
17
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
19
|
var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(options) {
|
|
20
20
|
var _this = this;
|
|
@@ -36,11 +36,11 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
36
36
|
_defineProperty(this, "options", void 0);
|
|
37
37
|
_defineProperty(this, "renderCompany", function (list) {
|
|
38
38
|
return list.length ? list.map(function (item, index) {
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") :
|
|
40
|
-
}) :
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany);
|
|
40
|
+
}) : '--';
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "renderClient", function (record) {
|
|
43
|
-
var _this$id$split = _this.id.split(
|
|
43
|
+
var _this$id$split = _this.id.split('_'),
|
|
44
44
|
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
45
45
|
id = _this$id$split2[0];
|
|
46
46
|
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -53,7 +53,7 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
53
53
|
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
54
54
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
55
55
|
}
|
|
56
|
-
return /*#__PURE__*/React.createElement("span", null, _this.renderCompany(record[_this.id]));
|
|
56
|
+
return /*#__PURE__*/React.createElement("span", null, _this.renderCompany(record[_this.id] || []));
|
|
57
57
|
});
|
|
58
58
|
_defineProperty(this, "renderLog", function (r) {
|
|
59
59
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -66,7 +66,7 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
66
66
|
});
|
|
67
67
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
68
|
var _this$getComponentVal;
|
|
69
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
69
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
70
70
|
});
|
|
71
71
|
_defineProperty(this, "editRender", function () {
|
|
72
72
|
return null;
|
|
@@ -78,7 +78,7 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
78
78
|
type: item.type,
|
|
79
79
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
80
80
|
name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
|
|
81
|
-
filterComponentType:
|
|
81
|
+
filterComponentType: 'MultipleSelect',
|
|
82
82
|
props: {
|
|
83
83
|
options: _this.expressDateInstance.getExpressData() || []
|
|
84
84
|
},
|
|
@@ -96,13 +96,13 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
|
|
|
96
96
|
this.type = options.type;
|
|
97
97
|
this.componentConfig = options.componentConfig;
|
|
98
98
|
this.rules = [];
|
|
99
|
-
this.align =
|
|
99
|
+
this.align = 'left';
|
|
100
100
|
this.expressDateInstance = ExpressData.getInstance();
|
|
101
101
|
this.width = 200;
|
|
102
102
|
this.isCombinationComponent = false;
|
|
103
103
|
this.canSort = false;
|
|
104
104
|
this.children = [];
|
|
105
|
-
this.dataType =
|
|
105
|
+
this.dataType = 'string';
|
|
106
106
|
this.options = this.expressDateInstance.getExpressData() || [];
|
|
107
107
|
});
|
|
108
108
|
export default TrajectoryCompany;
|
|
@@ -1,18 +1,18 @@
|
|
|
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 TrajectorySnapshot implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderCode: (list: any) => React.JSX.Element;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -11,9 +11,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from 'react';
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
16
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
18
|
var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
|
|
19
19
|
var _this = this;
|
|
@@ -32,11 +32,11 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
32
32
|
_defineProperty(this, "dataType", void 0);
|
|
33
33
|
_defineProperty(this, "renderCode", function (list) {
|
|
34
34
|
return /*#__PURE__*/React.createElement("div", null, list.length ? list.map(function (item, index) {
|
|
35
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") :
|
|
36
|
-
}) :
|
|
35
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', item.trajectorySnapshot);
|
|
36
|
+
}) : '--');
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
|
-
var _this$id$split = _this.id.split(
|
|
39
|
+
var _this$id$split = _this.id.split('_'),
|
|
40
40
|
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
41
41
|
id = _this$id$split2[0];
|
|
42
42
|
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -46,7 +46,7 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
46
46
|
}) : null;
|
|
47
47
|
});
|
|
48
48
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
return _this.renderCode(record[_this.id]);
|
|
49
|
+
return _this.renderCode(record[_this.id] || []);
|
|
50
50
|
});
|
|
51
51
|
_defineProperty(this, "renderLog", function (r) {
|
|
52
52
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -59,7 +59,7 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
59
59
|
});
|
|
60
60
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
61
|
var _this$getComponentVal;
|
|
62
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
62
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
63
63
|
});
|
|
64
64
|
_defineProperty(this, "editRender", function () {
|
|
65
65
|
return null;
|
|
@@ -70,7 +70,7 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
70
70
|
type: item.type,
|
|
71
71
|
id: item.id,
|
|
72
72
|
name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
|
|
73
|
-
filterComponentType:
|
|
73
|
+
filterComponentType: 'Input'
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
76
|
this.name = options.name;
|
|
@@ -79,11 +79,11 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
79
79
|
this.formField = options.id;
|
|
80
80
|
this.type = options.type;
|
|
81
81
|
this.componentConfig = options.componentConfig;
|
|
82
|
-
this.align =
|
|
82
|
+
this.align = 'left';
|
|
83
83
|
this.width = 200;
|
|
84
84
|
this.isCombinationComponent = false;
|
|
85
85
|
this.canSort = false;
|
|
86
|
-
this.dataType =
|
|
86
|
+
this.dataType = 'string';
|
|
87
87
|
this.children = [];
|
|
88
88
|
});
|
|
89
89
|
export default TrajectorySnapshot;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowCreator | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsMoreTrajectory | LogisticsTrajectory | MsgStatus | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | PrevSubmitter | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WlnGoods | WorkOrderId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.21.6-alpha.
|
|
3
|
+
"version": "0.21.6-alpha.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.21.6-alpha.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.21.6-alpha.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.21.6-alpha.3",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.21.6-alpha.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "82b6320bc9ae14f532b5aa543d0e6040900c5d78",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|