@kmkf-fe-packages/services-components 0.21.6-alpha.1 → 0.21.6-alpha.4
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/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/components/Payment/index.d.ts +2 -2
- package/dist/esm/components/Payment/index.js +3 -1
- package/dist/esm/components/PostIng/index.js +1 -1
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +14 -14
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -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;
|
|
@@ -13,7 +13,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
13
13
|
sortField: string;
|
|
14
14
|
type: string;
|
|
15
15
|
rules: any[];
|
|
16
|
-
componentConfig: ComponentInterface[
|
|
16
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
17
17
|
paymentTid: PaymentTid;
|
|
18
18
|
paymentStatus: PaymentStatus;
|
|
19
19
|
paymentAmount: PaymentAmount;
|
|
@@ -26,7 +26,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
26
26
|
canSort: boolean;
|
|
27
27
|
children: ComponentInterface[];
|
|
28
28
|
dataType: ComponentInterface['dataType'];
|
|
29
|
-
effects: ComponentInterface[
|
|
29
|
+
effects: ComponentInterface['effects'];
|
|
30
30
|
constructor(options: PickOption);
|
|
31
31
|
renderClient: (record: any, params: any) => React.JSX.Element;
|
|
32
32
|
renderPc: () => null;
|
|
@@ -73,7 +73,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
73
73
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
74
74
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
75
75
|
disabled: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.disabled,
|
|
76
|
-
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
76
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur,
|
|
77
|
+
replaceValueCh: p === null || p === void 0 ? void 0 : p.innerReplaceValueCh
|
|
77
78
|
}))
|
|
78
79
|
});
|
|
79
80
|
});
|
|
@@ -96,6 +97,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
96
97
|
this.isCombinationComponent = true;
|
|
97
98
|
this.canSort = false;
|
|
98
99
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
100
|
+
console.log();
|
|
99
101
|
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
100
102
|
this.rules = [{
|
|
101
103
|
validator: function validator(_, value) {
|
|
@@ -169,7 +169,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
169
169
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
170
170
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
171
171
|
component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
|
|
172
|
-
type: _this.type === "
|
|
172
|
+
type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField
|
|
173
173
|
}))
|
|
174
174
|
});
|
|
175
175
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -8,13 +8,13 @@ declare class ETradeId implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
showContains: boolean;
|
|
10
10
|
onlyContainsString: boolean;
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
12
|
-
effects: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
12
|
+
effects: ComponentInterface['effects'];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
formField: string;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
copyHandle: (text: string) => void;
|
|
@@ -6,14 +6,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { message } from
|
|
11
|
-
import { TradeId } from
|
|
12
|
-
import { CopyOutlined } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { message } from 'antd';
|
|
11
|
+
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
12
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
-
import copy from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import copy from 'copy-to-clipboard';
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
18
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
19
19
|
var _this = this;
|
|
@@ -41,7 +41,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "copyHandle", function (text) {
|
|
43
43
|
copy(text);
|
|
44
|
-
message.success(
|
|
44
|
+
message.success('复制成功');
|
|
45
45
|
});
|
|
46
46
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
47
47
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
|
|
@@ -58,8 +58,8 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
58
58
|
}
|
|
59
59
|
}, /*#__PURE__*/React.createElement("span", {
|
|
60
60
|
style: {
|
|
61
|
-
paddingLeft:
|
|
62
|
-
cursor:
|
|
61
|
+
paddingLeft: '4px',
|
|
62
|
+
cursor: 'pointer'
|
|
63
63
|
}
|
|
64
64
|
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
65
65
|
});
|
|
@@ -72,13 +72,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
72
72
|
});
|
|
73
73
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
74
74
|
var _record;
|
|
75
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record :
|
|
75
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
|
|
76
76
|
});
|
|
77
77
|
_defineProperty(this, "editRender", function (p) {
|
|
78
78
|
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
|
|
79
79
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
80
80
|
var _p$onBlur;
|
|
81
|
-
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value,
|
|
81
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
|
|
82
82
|
};
|
|
83
83
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
84
84
|
title: _this.name,
|
|
@@ -102,10 +102,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
102
102
|
// 过滤组件id
|
|
103
103
|
name: item.name,
|
|
104
104
|
// 过滤组件名称
|
|
105
|
-
filterComponentType:
|
|
105
|
+
filterComponentType: 'Input',
|
|
106
106
|
filterFn: function filterFn(value) {
|
|
107
107
|
return function (i) {
|
|
108
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
108
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
formatFilterValue: function formatFilterValue(input) {
|
|
@@ -126,6 +126,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
126
126
|
this.isCombinationComponent = false;
|
|
127
127
|
this.canSort = true;
|
|
128
128
|
this.children = [];
|
|
129
|
-
this.dataType =
|
|
129
|
+
this.dataType = 'string';
|
|
130
130
|
});
|
|
131
131
|
export default ETradeId;
|
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) => BsLogistics |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BasicInput | JstLogistics | Logistics | LogisticsMoreTrajectory | Payment | BasicPosting | TradeId | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
|
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.4",
|
|
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.4",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.21.6-alpha.4"
|
|
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": "6e8607051c7505581ca51a0146ed1de51a94dd42",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|