@kmkf-fe-packages/services-components 0.25.0-alpha.0 → 0.25.0-alpha.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/dist/esm/components/BS/BsLogistics/index.d.ts +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +6 -6
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +10 -10
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +10 -9
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +21 -26
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.d.ts +9 -8
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +21 -24
- package/dist/esm/components/LogisticsMoreInterception/index.js +14 -7
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +6 -6
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +12 -12
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +6 -6
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +12 -9
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +12 -12
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +2 -3
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +13 -11
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +3 -3
|
@@ -43,12 +43,13 @@ declare class BsLogistics implements ComponentInterface {
|
|
|
43
43
|
};
|
|
44
44
|
filterFn: (value: string) => (i: Record) => any;
|
|
45
45
|
} | {
|
|
46
|
-
searchDefaultConditions: "
|
|
46
|
+
searchDefaultConditions: "in";
|
|
47
47
|
type: string;
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
|
-
filterComponentType: "
|
|
50
|
+
filterComponentType: "SelectInput";
|
|
51
51
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
52
|
+
formatFilterValue: (value: any) => any;
|
|
52
53
|
})[];
|
|
53
54
|
}
|
|
54
55
|
export default BsLogistics;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class PaymentTid 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[
|
|
11
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
|
+
effects: ComponentInterface['effects'];
|
|
12
12
|
align: ALignType;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
@@ -17,7 +17,7 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
originId: string;
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
dataType: ComponentInterface[
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
21
21
|
constructor(options: PickOption);
|
|
22
22
|
renderAddress: (record: any) => React.JSX.Element;
|
|
23
23
|
renderClient: () => null;
|
|
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
9
|
-
import { isNull } from
|
|
10
|
-
import { AddressData } from
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
12
12
|
var _this = this;
|
|
13
13
|
_classCallCheck(this, PaymentTid);
|
|
@@ -33,8 +33,8 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
33
33
|
var _item$interceptAddres;
|
|
34
34
|
var addressText = (_item$interceptAddres = item.interceptAddress) === null || _item$interceptAddres === void 0 ? void 0 : _item$interceptAddres.map(function (suffix) {
|
|
35
35
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
36
|
-
}).join(
|
|
37
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
36
|
+
}).join('');
|
|
37
|
+
return addressText || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), addressText, item.interceptDetail, item.interceptReceiverName, item.interceptReceiverMobile) : '--';
|
|
38
38
|
}));
|
|
39
39
|
});
|
|
40
40
|
_defineProperty(this, "renderClient", function () {
|
|
@@ -56,10 +56,10 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
56
56
|
var _item$interceptAddres2;
|
|
57
57
|
var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
|
|
58
58
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
59
|
-
}).join(
|
|
59
|
+
}).join('');
|
|
60
60
|
prv.push("".concat(addressText).concat(item.interceptDetail, "\n ").concat(item.interceptReceiverName, "\n ").concat(item.interceptReceiverMobile));
|
|
61
61
|
return prv;
|
|
62
|
-
}, []).
|
|
62
|
+
}, []).join(',');
|
|
63
63
|
});
|
|
64
64
|
_defineProperty(this, "editRender", function () {
|
|
65
65
|
return null;
|
|
@@ -67,19 +67,19 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
67
67
|
_defineProperty(this, "filterConfig", function () {
|
|
68
68
|
return [];
|
|
69
69
|
});
|
|
70
|
-
this.name =
|
|
70
|
+
this.name = '派送地址';
|
|
71
71
|
this.id = "".concat(options.id);
|
|
72
72
|
this.sortField = "".concat(options.id);
|
|
73
73
|
this.formField = "".concat(options.id);
|
|
74
74
|
this.type = options.type;
|
|
75
75
|
this.componentConfig = options.componentConfig;
|
|
76
76
|
this.rules = [];
|
|
77
|
-
this.align =
|
|
77
|
+
this.align = 'left';
|
|
78
78
|
this.width = 350;
|
|
79
79
|
this.originId = options.id;
|
|
80
80
|
this.isCombinationComponent = false;
|
|
81
81
|
this.canSort = false;
|
|
82
|
-
this.dataType =
|
|
82
|
+
this.dataType = 'object';
|
|
83
83
|
this.children = [];
|
|
84
84
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
85
85
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressInterceptData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressInterceptData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class InterceptStatus implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
parentId: string;
|
|
@@ -9,8 +9,8 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
9
9
|
companyId: string;
|
|
10
10
|
type: string;
|
|
11
11
|
rules: any[];
|
|
12
|
-
componentConfig: ComponentInterface[
|
|
13
|
-
effects: ComponentInterface[
|
|
12
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
13
|
+
effects: ComponentInterface['effects'];
|
|
14
14
|
align: ALignType;
|
|
15
15
|
width: number;
|
|
16
16
|
isCombinationComponent: boolean;
|
|
@@ -18,13 +18,13 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
21
|
-
dataType: ComponentInterface[
|
|
22
|
-
options: ComponentInterface[
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
22
|
+
options: ComponentInterface['options'];
|
|
23
23
|
constructor(options: PickOption);
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
|
-
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
25
|
+
renderStatus: (record: any, w?: number) => React.JSX.Element | "--";
|
|
26
26
|
renderClient: () => null;
|
|
27
|
-
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
27
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
28
28
|
renderLog: () => null;
|
|
29
29
|
renderExport: (value: any, record: Record) => any;
|
|
30
30
|
editRender: () => null;
|
|
@@ -40,6 +40,7 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
40
40
|
value: string;
|
|
41
41
|
}[];
|
|
42
42
|
};
|
|
43
|
+
formatFilterValue: (value: string[]) => string[];
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
export default InterceptStatus;
|
|
@@ -5,8 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
9
|
-
import {
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { ExpressInterceptData } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
11
|
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
11
12
|
import { SYMBOL } from "../../constant";
|
|
12
13
|
var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options) {
|
|
@@ -31,19 +32,20 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
31
32
|
_defineProperty(this, "dataType", void 0);
|
|
32
33
|
_defineProperty(this, "options", void 0);
|
|
33
34
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
34
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].map(function (item) {
|
|
35
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (item) {
|
|
35
36
|
return _this.expressInterceptInstance.getStatusNameMap()[item];
|
|
36
|
-
}).join(
|
|
37
|
+
}).join(',');
|
|
37
38
|
});
|
|
38
39
|
_defineProperty(this, "renderStatus", function (record) {
|
|
39
40
|
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
40
|
-
var
|
|
41
|
-
|
|
41
|
+
var statusList = record[_this.id] || [];
|
|
42
|
+
if (isNull(statusList)) return '--';
|
|
43
|
+
return /*#__PURE__*/React.createElement("div", null, statusList.map(function (item, index) {
|
|
42
44
|
return /*#__PURE__*/React.createElement("div", {
|
|
43
45
|
onClick: function onClick(e) {
|
|
44
46
|
return e.stopPropagation();
|
|
45
47
|
}
|
|
46
|
-
},
|
|
48
|
+
}, "\u5305\u88F9".concat(index + 1, ":"), /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
47
49
|
modelWidth: w,
|
|
48
50
|
interceptCompany: item.interceptCompany,
|
|
49
51
|
interceptCode: item.interceptCode,
|
|
@@ -62,7 +64,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
62
64
|
});
|
|
63
65
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
64
66
|
var _this$getComponentVal;
|
|
65
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
67
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
66
68
|
});
|
|
67
69
|
_defineProperty(this, "editRender", function () {
|
|
68
70
|
return null;
|
|
@@ -73,26 +75,19 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
73
75
|
type: item.type,
|
|
74
76
|
id: "".concat(item.id, "_logisticsInterceptStatusList"),
|
|
75
77
|
name: "".concat(item.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
76
|
-
filterComponentType:
|
|
78
|
+
filterComponentType: 'MultipleSelect',
|
|
77
79
|
props: {
|
|
78
80
|
options: _this.expressInterceptInstance.getStatusOptions() || []
|
|
81
|
+
},
|
|
82
|
+
formatFilterValue: function formatFilterValue(value) {
|
|
83
|
+
var _value$map;
|
|
84
|
+
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
|
|
85
|
+
return v === null || v === void 0 ? void 0 : v.split(',');
|
|
86
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.flat();
|
|
79
87
|
}
|
|
80
|
-
// formatFilterValue: (value: string[]) =>
|
|
81
|
-
// value?.map((v) => v?.split(","))?.flat(),
|
|
82
|
-
// filterFn: (value: string[]) => (i: Record) =>
|
|
83
|
-
// value
|
|
84
|
-
// ?.map((v) => v?.split(","))
|
|
85
|
-
// ?.flat()
|
|
86
|
-
// ?.includes(
|
|
87
|
-
// filterFn.filterTableListItemColumnValue(
|
|
88
|
-
// i,
|
|
89
|
-
// item.id,
|
|
90
|
-
// "interceptLogisticsStatus"
|
|
91
|
-
// )
|
|
92
|
-
// ),
|
|
93
88
|
};
|
|
94
89
|
});
|
|
95
|
-
this.name =
|
|
90
|
+
this.name = '物流状态';
|
|
96
91
|
this.parentId = options.id;
|
|
97
92
|
this.id = "".concat(options.id, "_logisticsInterceptStatusList");
|
|
98
93
|
this.sortField = "".concat(options.id, "_logisticsInterceptStatusList");
|
|
@@ -101,14 +96,14 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
101
96
|
this.type = options.type;
|
|
102
97
|
this.componentConfig = options.componentConfig;
|
|
103
98
|
this.rules = [];
|
|
104
|
-
this.align =
|
|
99
|
+
this.align = 'left';
|
|
105
100
|
this.width = 220;
|
|
106
101
|
this.isCombinationComponent = false;
|
|
107
|
-
this.canSort =
|
|
102
|
+
this.canSort = false;
|
|
108
103
|
this.children = [];
|
|
109
104
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
110
105
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
111
|
-
this.dataType =
|
|
106
|
+
this.dataType = 'string';
|
|
112
107
|
this.options = this.expressInterceptInstance.getStatusOptions() || [];
|
|
113
108
|
});
|
|
114
109
|
export default InterceptStatus;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressInterceptData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressInterceptData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class InterceptType 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[
|
|
11
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
|
+
effects: ComponentInterface['effects'];
|
|
12
12
|
align: ALignType;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
@@ -16,13 +16,13 @@ declare class InterceptType implements ComponentInterface {
|
|
|
16
16
|
canSort: boolean;
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
19
|
-
dataType: ComponentInterface[
|
|
20
|
-
options: ComponentInterface[
|
|
19
|
+
dataType: ComponentInterface['dataType'];
|
|
20
|
+
options: ComponentInterface['options'];
|
|
21
21
|
constructor(options: PickOption);
|
|
22
22
|
renderType: (record: any) => React.JSX.Element;
|
|
23
23
|
getComponentValue: (r: Record) => any;
|
|
24
24
|
renderClient: () => null;
|
|
25
|
-
renderPc: (value: any, record: Record) => React.JSX.Element |
|
|
25
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
26
26
|
renderLog: () => null;
|
|
27
27
|
renderExport: (value: any, record: Record) => any;
|
|
28
28
|
editRender: () => null;
|
|
@@ -38,6 +38,7 @@ declare class InterceptType implements ComponentInterface {
|
|
|
38
38
|
value: string;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
|
+
formatFilterValue: (value: string[]) => string[];
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
export default InterceptType;
|
|
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
9
|
-
import { isNull } from
|
|
10
|
-
import { ExpressInterceptData } from
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { ExpressInterceptData } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
13
13
|
var _this = this;
|
|
@@ -29,23 +29,23 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
29
29
|
_defineProperty(this, "dataType", void 0);
|
|
30
30
|
_defineProperty(this, "options", void 0);
|
|
31
31
|
_defineProperty(this, "renderType", function (record) {
|
|
32
|
-
var
|
|
33
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
32
|
+
var typeList = record[_this.id] || [];
|
|
33
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, typeList.map(function (item, index) {
|
|
34
34
|
var _this$expressIntercep;
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), (_this$expressIntercep = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item]);
|
|
36
36
|
}));
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
39
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].map(function (t) {
|
|
39
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (t) {
|
|
40
40
|
var _this$expressIntercep2;
|
|
41
41
|
return (_this$expressIntercep2 = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep2 === void 0 ? void 0 : _this$expressIntercep2[t];
|
|
42
|
-
}).join(
|
|
42
|
+
}).join(',');
|
|
43
43
|
});
|
|
44
44
|
_defineProperty(this, "renderClient", function () {
|
|
45
45
|
return null;
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
if (
|
|
48
|
+
if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return '--';
|
|
49
49
|
return _this.renderType(record);
|
|
50
50
|
});
|
|
51
51
|
_defineProperty(this, "renderLog", function () {
|
|
@@ -53,7 +53,7 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
55
|
var _this$getComponentVal;
|
|
56
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
56
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
57
57
|
});
|
|
58
58
|
_defineProperty(this, "editRender", function () {
|
|
59
59
|
return null;
|
|
@@ -64,36 +64,33 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
64
64
|
type: item.type,
|
|
65
65
|
id: "".concat(item.id, "_logisticsInterceptTypeList"),
|
|
66
66
|
name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
|
|
67
|
-
filterComponentType:
|
|
67
|
+
filterComponentType: 'MultipleSelect',
|
|
68
68
|
props: {
|
|
69
69
|
options: _this.expressInterceptInstance.getTypeOptions() || []
|
|
70
|
+
},
|
|
71
|
+
formatFilterValue: function formatFilterValue(value) {
|
|
72
|
+
var _value$map;
|
|
73
|
+
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
|
|
74
|
+
return v === null || v === void 0 ? void 0 : v.split(',');
|
|
75
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.flat();
|
|
70
76
|
}
|
|
71
|
-
// formatFilterValue: (value: string[]) =>
|
|
72
|
-
// value?.map((v) => v?.split(","))?.flat(),
|
|
73
|
-
// filterFn: (value: string[]) => (i: Record) =>
|
|
74
|
-
// value
|
|
75
|
-
// ?.map((v) => v?.split(","))
|
|
76
|
-
// ?.flat()
|
|
77
|
-
// ?.includes(
|
|
78
|
-
// filterFn.filterTableListItemColumnValue(i, item.id, "interceptType")
|
|
79
|
-
// ),
|
|
80
77
|
};
|
|
81
78
|
});
|
|
82
|
-
this.name =
|
|
79
|
+
this.name = '拦截类型';
|
|
83
80
|
this.id = "".concat(options.id, "_logisticsInterceptTypeList");
|
|
84
81
|
this.sortField = "".concat(options.id, "_logisticsInterceptTypeList");
|
|
85
82
|
this.formField = "".concat(options.id, "_logisticsInterceptTypeList");
|
|
86
83
|
this.type = options.type;
|
|
87
84
|
this.componentConfig = options.componentConfig;
|
|
88
85
|
this.rules = [];
|
|
89
|
-
this.align =
|
|
86
|
+
this.align = 'left';
|
|
90
87
|
this.width = 200;
|
|
91
88
|
this.isCombinationComponent = false;
|
|
92
|
-
this.canSort =
|
|
89
|
+
this.canSort = false;
|
|
93
90
|
this.children = [];
|
|
94
91
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
95
92
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
96
|
-
this.dataType =
|
|
93
|
+
this.dataType = 'string';
|
|
97
94
|
this.options = this.expressInterceptInstance.getTypeOptions() || [];
|
|
98
95
|
});
|
|
99
96
|
export default InterceptType;
|
|
@@ -22,6 +22,7 @@ import InterceptStatus from "./InterceptStatus";
|
|
|
22
22
|
import InterceptCode from "./interceptItem";
|
|
23
23
|
import Express from "./interceptCompany";
|
|
24
24
|
import ColumnHeader from "./columnHeader";
|
|
25
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
25
26
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
26
27
|
var _this = this,
|
|
27
28
|
_this$componentConfig3;
|
|
@@ -53,12 +54,19 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
53
54
|
_defineProperty(this, "dataType", void 0);
|
|
54
55
|
_defineProperty(this, "renderInfo", function () {
|
|
55
56
|
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
56
|
-
return /*#__PURE__*/React.createElement(Space,
|
|
57
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
58
|
+
wrap: true
|
|
59
|
+
}, list.map(function (item, index) {
|
|
57
60
|
var _ref, _this$expressIntercep;
|
|
58
61
|
var addressText = (_ref = item.interceptAddress || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
59
62
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
60
63
|
}).join("");
|
|
61
|
-
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", item.interceptCode) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, " ", item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus]
|
|
64
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", item.interceptCode) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, " ", item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
65
|
+
modelWidth: 500,
|
|
66
|
+
interceptCompany: item.interceptCompany,
|
|
67
|
+
interceptCode: item.interceptCode,
|
|
68
|
+
interceptSenderMobile: item.interceptSenderMobile
|
|
69
|
+
})) : null, item.interceptLogisticsSnapshot ? /*#__PURE__*/React.createElement("div", null, "\u5FEB\u7167\uFF1A", item.interceptLogisticsSnapshot) : null);
|
|
62
70
|
}));
|
|
63
71
|
});
|
|
64
72
|
_defineProperty(this, "renderClient", function (record) {
|
|
@@ -98,8 +106,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
98
106
|
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
99
107
|
subKey: "logisticsInterceptCompanyList"
|
|
100
108
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
101
|
-
subKey: "logisticsInterceptCodeList"
|
|
102
|
-
name: "".concat(_this.name)
|
|
109
|
+
subKey: "logisticsInterceptCodeList"
|
|
103
110
|
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
|
|
104
111
|
});
|
|
105
112
|
this.name = options.name;
|
|
@@ -107,8 +114,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
107
114
|
name: options.name
|
|
108
115
|
});
|
|
109
116
|
this.id = options.id;
|
|
110
|
-
this.sortField = options.id;
|
|
111
|
-
this.formField = options.id;
|
|
117
|
+
this.sortField = "".concat(options.id, "_logisticsInterceptList");
|
|
118
|
+
this.formField = "".concat(options.id);
|
|
112
119
|
this.type = options.type;
|
|
113
120
|
this.componentConfig = options.componentConfig;
|
|
114
121
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
@@ -126,7 +133,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
126
133
|
name: "物流信息"
|
|
127
134
|
}));
|
|
128
135
|
this.expressCode = new InterceptCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
129
|
-
id: "".concat(options.id, "_logisticsInterceptCodeList
|
|
136
|
+
id: "".concat(options.id, "_logisticsInterceptCodeList"),
|
|
130
137
|
name: "物流单号"
|
|
131
138
|
}));
|
|
132
139
|
this.isCombinationComponent = true;
|
|
@@ -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 InterceptionCompany 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 InterceptionCompany 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: (record: any) => React.JSX.Element;
|
|
22
22
|
renderClient: () => null;
|
|
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
9
|
-
import { ExpressData } from
|
|
10
|
-
import { isNull } from
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany(options) {
|
|
13
13
|
var _this = this;
|
|
@@ -30,14 +30,14 @@ var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany
|
|
|
30
30
|
_defineProperty(this, "renderCompany", function (record) {
|
|
31
31
|
var list = record[_this.id] || [];
|
|
32
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
33
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), _this.expressDateInstance.getExpressNameByCode(item) || item);
|
|
34
34
|
}));
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderClient", function () {
|
|
37
37
|
return null;
|
|
38
38
|
});
|
|
39
39
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
if (
|
|
40
|
+
if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) {
|
|
41
41
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
42
|
}
|
|
43
43
|
return _this.renderCompany(record);
|
|
@@ -46,12 +46,12 @@ var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany
|
|
|
46
46
|
return null;
|
|
47
47
|
});
|
|
48
48
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].map(function (t) {
|
|
49
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (t) {
|
|
50
50
|
return _this.expressDateInstance.getExpressNameByCode(t);
|
|
51
|
-
}).join(
|
|
51
|
+
}).join(',');
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
|
-
return _this.getComponentValue(record) ||
|
|
54
|
+
return _this.getComponentValue(record) || '--';
|
|
55
55
|
});
|
|
56
56
|
_defineProperty(this, "editRender", function () {
|
|
57
57
|
return null;
|
|
@@ -63,7 +63,7 @@ var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany
|
|
|
63
63
|
type: item.type,
|
|
64
64
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
65
65
|
name: "".concat(item.name, "-\u7269\u6D41\u4FE1\u606F"),
|
|
66
|
-
filterComponentType:
|
|
66
|
+
filterComponentType: 'MultipleSelect',
|
|
67
67
|
props: {
|
|
68
68
|
options: _this.expressDateInstance.getExpressData() || []
|
|
69
69
|
}
|
|
@@ -76,13 +76,13 @@ var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany
|
|
|
76
76
|
this.type = options.type;
|
|
77
77
|
this.componentConfig = options.componentConfig;
|
|
78
78
|
this.rules = [];
|
|
79
|
-
this.align =
|
|
79
|
+
this.align = 'left';
|
|
80
80
|
this.expressDateInstance = ExpressData.getInstance();
|
|
81
81
|
this.width = 200;
|
|
82
82
|
this.isCombinationComponent = false;
|
|
83
|
-
this.canSort =
|
|
83
|
+
this.canSort = false;
|
|
84
84
|
this.children = [];
|
|
85
|
-
this.dataType =
|
|
85
|
+
this.dataType = 'object';
|
|
86
86
|
this.options = this.expressDateInstance.getExpressData() || [];
|
|
87
87
|
});
|
|
88
88
|
export default InterceptionCompany;
|
|
@@ -1,23 +1,23 @@
|
|
|
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 InterceptItem 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
|
-
renderItem: (record: any) => React.JSX.Element;
|
|
18
|
+
renderItem: (record: any) => React.JSX.Element | "--";
|
|
19
19
|
renderClient: () => null;
|
|
20
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element | "--";
|
|
21
21
|
renderLog: () => null;
|
|
22
22
|
getComponentValue: (r: Record) => any;
|
|
23
23
|
renderExport: (value: string, record: Record) => any;
|
|
@@ -5,7 +5,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
9
10
|
import { SYMBOL, batchInput } from "../../constant";
|
|
10
11
|
var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
11
12
|
var _this = this;
|
|
@@ -25,8 +26,9 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
|
25
26
|
_defineProperty(this, "dataType", void 0);
|
|
26
27
|
_defineProperty(this, "renderItem", function (record) {
|
|
27
28
|
var list = record[_this.id] || [];
|
|
29
|
+
if (isNull(list)) return '--';
|
|
28
30
|
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
29
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
|
|
30
32
|
}));
|
|
31
33
|
});
|
|
32
34
|
_defineProperty(this, "renderClient", function () {
|
|
@@ -39,11 +41,12 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
|
39
41
|
return null;
|
|
40
42
|
});
|
|
41
43
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
42
|
-
|
|
44
|
+
var _r$_this$id;
|
|
45
|
+
return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(',');
|
|
43
46
|
});
|
|
44
47
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
45
48
|
var _this$getComponentVal;
|
|
46
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
49
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
47
50
|
});
|
|
48
51
|
_defineProperty(this, "editRender", function () {
|
|
49
52
|
return null;
|
|
@@ -54,8 +57,8 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
|
54
57
|
searchDefaultConditions: SYMBOL.in,
|
|
55
58
|
type: item.type,
|
|
56
59
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
57
|
-
name: item.name,
|
|
58
|
-
filterComponentType:
|
|
60
|
+
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
61
|
+
filterComponentType: 'Input',
|
|
59
62
|
formatFilterValue: function formatFilterValue(input) {
|
|
60
63
|
return batchInput(input);
|
|
61
64
|
}
|
|
@@ -68,11 +71,11 @@ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
|
68
71
|
this.type = options.type;
|
|
69
72
|
this.componentConfig = options.componentConfig;
|
|
70
73
|
this.rules = [];
|
|
71
|
-
this.align =
|
|
74
|
+
this.align = 'left';
|
|
72
75
|
this.width = 200;
|
|
73
76
|
this.isCombinationComponent = false;
|
|
74
|
-
this.canSort =
|
|
75
|
-
this.dataType =
|
|
77
|
+
this.canSort = false;
|
|
78
|
+
this.dataType = 'object';
|
|
76
79
|
this.children = [];
|
|
77
80
|
});
|
|
78
81
|
export default InterceptItem;
|
|
@@ -1,20 +1,20 @@
|
|
|
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 InterceptSenderMobile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
companyId: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
sortField: string;
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
renderMobile: (record: any) => React.JSX.Element;
|
|
@@ -5,8 +5,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
9
|
-
import { isNull } from
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
import { SYMBOL } from "../../constant";
|
|
11
11
|
var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
|
|
12
12
|
var _this = this;
|
|
@@ -29,13 +29,13 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
29
29
|
_defineProperty(this, "renderMobile", function (record) {
|
|
30
30
|
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
|
|
31
31
|
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
|
|
32
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item.interceptSenderMobile);
|
|
33
33
|
}));
|
|
34
34
|
});
|
|
35
35
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
36
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")].map(function (t) {
|
|
36
|
+
return ((r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || []).map(function (t) {
|
|
37
37
|
return t.interceptSenderMobile;
|
|
38
|
-
}).join(
|
|
38
|
+
}).join(',');
|
|
39
39
|
});
|
|
40
40
|
_defineProperty(this, "renderClient", function () {
|
|
41
41
|
return null;
|
|
@@ -49,7 +49,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
49
49
|
});
|
|
50
50
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
51
|
var _this$getComponentVal;
|
|
52
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
52
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "editRender", function () {
|
|
55
55
|
return null;
|
|
@@ -60,22 +60,22 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
60
60
|
type: item.type,
|
|
61
61
|
id: "".concat(item.id, "_logisticsInterceptList"),
|
|
62
62
|
name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
|
|
63
|
-
filterComponentType:
|
|
63
|
+
filterComponentType: 'Input'
|
|
64
64
|
};
|
|
65
65
|
});
|
|
66
|
-
this.name =
|
|
67
|
-
this.id = options.id;
|
|
66
|
+
this.name = '发件人手机号';
|
|
67
|
+
this.id = "".concat(options.id, "_interceptMobileList");
|
|
68
68
|
this.companyId = "".concat(options.id);
|
|
69
69
|
this.formField = "".concat(options.id);
|
|
70
70
|
this.sortField = "".concat(options.id);
|
|
71
|
-
this.dataType =
|
|
71
|
+
this.dataType = 'string';
|
|
72
72
|
this.type = options.type;
|
|
73
73
|
this.componentConfig = options.componentConfig;
|
|
74
74
|
this.rules = [];
|
|
75
|
-
this.align =
|
|
75
|
+
this.align = 'left';
|
|
76
76
|
this.width = 200;
|
|
77
77
|
this.isCombinationComponent = false;
|
|
78
|
-
this.canSort =
|
|
78
|
+
this.canSort = false;
|
|
79
79
|
this.children = [];
|
|
80
80
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
81
|
});
|
|
@@ -19,17 +19,16 @@ declare class InterceptSnapshot implements ComponentInterface {
|
|
|
19
19
|
renderSnapshot: (record: any) => React.JSX.Element;
|
|
20
20
|
getComponentValue: (r: Record) => any;
|
|
21
21
|
renderClient: () => null;
|
|
22
|
-
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
22
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
23
23
|
renderLog: () => null;
|
|
24
24
|
renderExport: (value: any, record: Record) => any;
|
|
25
25
|
editRender: () => null;
|
|
26
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
|
-
searchDefaultConditions: "
|
|
27
|
+
searchDefaultConditions: "like";
|
|
28
28
|
type: string;
|
|
29
29
|
id: string;
|
|
30
30
|
name: string;
|
|
31
31
|
filterComponentType: "Input";
|
|
32
|
-
formatFilterValue: (input: string) => string | string[];
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
34
|
export default InterceptSnapshot;
|
|
@@ -6,7 +6,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
8
|
import React from "react";
|
|
9
|
-
import {
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
10
11
|
var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
|
|
11
12
|
var _this = this;
|
|
12
13
|
_classCallCheck(this, InterceptSnapshot);
|
|
@@ -25,19 +26,20 @@ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(opt
|
|
|
25
26
|
_defineProperty(this, "dataType", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
27
28
|
_defineProperty(this, "renderSnapshot", function (record) {
|
|
28
|
-
var
|
|
29
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
30
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
29
|
+
var snapshotList = record[_this.id] || [];
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, snapshotList.map(function (item, index) {
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
|
|
31
32
|
}));
|
|
32
33
|
});
|
|
33
34
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
34
|
-
|
|
35
|
+
var _r$_this$id;
|
|
36
|
+
return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(",");
|
|
35
37
|
});
|
|
36
38
|
_defineProperty(this, "renderClient", function () {
|
|
37
39
|
return null;
|
|
38
40
|
});
|
|
39
41
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
return _this.renderSnapshot(record);
|
|
42
|
+
return !isNull(record[_this.id]) ? _this.renderSnapshot(record) : "--";
|
|
41
43
|
});
|
|
42
44
|
_defineProperty(this, "renderLog", function () {
|
|
43
45
|
return null;
|
|
@@ -51,14 +53,14 @@ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(opt
|
|
|
51
53
|
});
|
|
52
54
|
_defineProperty(this, "filterConfig", function (item) {
|
|
53
55
|
return {
|
|
54
|
-
searchDefaultConditions: SYMBOL.
|
|
56
|
+
searchDefaultConditions: SYMBOL.like,
|
|
55
57
|
type: item.type,
|
|
56
58
|
id: "".concat(item.id, "_logisticsInterceptSnapshotList"),
|
|
57
59
|
name: "".concat(item.name, "-\u5FEB\u7167"),
|
|
58
|
-
filterComponentType: "Input"
|
|
59
|
-
formatFilterValue:
|
|
60
|
-
|
|
61
|
-
}
|
|
60
|
+
filterComponentType: "Input"
|
|
61
|
+
// formatFilterValue: (input: string) => {
|
|
62
|
+
// return batchInput(input);
|
|
63
|
+
// },
|
|
62
64
|
};
|
|
63
65
|
});
|
|
64
66
|
this.name = "快照";
|
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, LogisticsMoreInterception, 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 | LogisticsMoreInterception | 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.25.0-alpha.
|
|
3
|
+
"version": "0.25.0-alpha.1",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.25.0-alpha.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.25.0-alpha.1",
|
|
24
24
|
"@kmkf-fe-packages/kmkf-utils": "^0.25.0-alpha.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "14c977ae5d8e8f13d1517306002db80e78826748",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|