@kmkf-fe-packages/services-components 0.7.15-alpha.2 → 0.7.15-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/BS/BsExchange/index.d.ts +20 -5
- package/dist/esm/components/BS/BsExchange/index.js +59 -38
- package/dist/esm/components/BS/BsGoods/index.d.ts +3 -4
- package/dist/esm/components/BS/BsGoods/index.js +13 -23
- package/dist/esm/components/BS/BsReissue/index.d.ts +21 -6
- package/dist/esm/components/BS/BsReissue/index.js +29 -36
- package/dist/esm/components/BS/common/BsExchangeImage.d.ts +31 -0
- package/dist/esm/components/BS/common/BsExchangeImage.js +126 -0
- package/dist/esm/components/BS/common/BsGoodImage.d.ts +31 -0
- package/dist/esm/components/BS/common/BsGoodImage.js +88 -0
- package/dist/esm/components/BS/common/BsMemo.d.ts +25 -0
- package/dist/esm/components/BS/common/BsMemo.js +76 -0
- package/dist/esm/components/BS/common/BsType.d.ts +35 -0
- package/dist/esm/components/BS/common/{BsPic.js → BsType.js} +40 -49
- package/dist/esm/components/Common/index.d.ts +11 -6
- package/dist/esm/components/Common/index.js +105 -50
- package/dist/esm/components/Common/index.module.less +8 -0
- package/dist/esm/components/File/index.d.ts +7 -8
- package/dist/esm/components/File/index.js +18 -47
- package/dist/esm/components/Input/index.js +3 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +6 -16
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +1 -0
- package/package.json +4 -4
- package/dist/esm/components/BS/common/BsPic.d.ts +0 -43
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
10
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { SYMBOL } from "../../../constant";
|
|
12
|
+
import { BsGoodImage as BsGood } from "../../Common";
|
|
13
|
+
var BsGoodImage = /*#__PURE__*/_createClass(function BsGoodImage(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, BsGoodImage);
|
|
16
|
+
_defineProperty(this, "name", void 0);
|
|
17
|
+
_defineProperty(this, "id", void 0);
|
|
18
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
|
+
_defineProperty(this, "type", void 0);
|
|
20
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "align", void 0);
|
|
22
|
+
_defineProperty(this, "width", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
+
id: _this.id,
|
|
31
|
+
label: _this.name,
|
|
32
|
+
value: _this.getComponentValue(record)
|
|
33
|
+
}) : null;
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
37
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
38
|
+
}
|
|
39
|
+
//兼容多个商品
|
|
40
|
+
return record === null || record === void 0 ? void 0 : record["".concat(_this.id)].map(function (item, index) {
|
|
41
|
+
return /*#__PURE__*/React.createElement(BsGood, {
|
|
42
|
+
item: item,
|
|
43
|
+
index: index
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
var _find, _this$componentConfig;
|
|
53
|
+
var type = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][0] : "";
|
|
54
|
+
var text = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
55
|
+
return item.value === type;
|
|
56
|
+
})) === null || _find === void 0 ? void 0 : _find.label;
|
|
57
|
+
return text;
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
60
|
+
var _this$getComponentVal;
|
|
61
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "editRender", function () {
|
|
64
|
+
return null;
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
return {
|
|
68
|
+
searchDefaultConditions: SYMBOL.like,
|
|
69
|
+
type: item.type,
|
|
70
|
+
id: "".concat(item.id),
|
|
71
|
+
name: _this.name,
|
|
72
|
+
filterComponentType: "Input"
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
this.name = options.name;
|
|
76
|
+
this.id = options.id;
|
|
77
|
+
this.sortField = options.id;
|
|
78
|
+
this.formField = options.id;
|
|
79
|
+
this.type = options.type;
|
|
80
|
+
this.componentConfig = options.componentConfig;
|
|
81
|
+
this.align = "left";
|
|
82
|
+
this.width = 200;
|
|
83
|
+
this.isCombinationComponent = false;
|
|
84
|
+
this.canSort = true;
|
|
85
|
+
this.dataType = "string";
|
|
86
|
+
this.children = [];
|
|
87
|
+
});
|
|
88
|
+
export default BsGoodImage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class BsType implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
align: ALignType;
|
|
10
|
+
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: string, record: Record) => any;
|
|
22
|
+
editRender: () => null;
|
|
23
|
+
filterConfig: () => never[];
|
|
24
|
+
}
|
|
25
|
+
export default BsType;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
10
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, BsType);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
19
|
+
_defineProperty(this, "align", void 0);
|
|
20
|
+
_defineProperty(this, "width", void 0);
|
|
21
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
27
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
28
|
+
id: _this.id,
|
|
29
|
+
label: _this.name,
|
|
30
|
+
value: _this.getComponentValue(record)
|
|
31
|
+
}) : null;
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
|
+
var _this$getComponentVal;
|
|
35
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
38
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
39
|
+
return _this.renderPc(undefined, r);
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
42
|
+
var _find, _this$componentConfig;
|
|
43
|
+
var type = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][0] : "";
|
|
44
|
+
var memo = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][1] : "";
|
|
45
|
+
var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
46
|
+
return item.value === type;
|
|
47
|
+
})) === null || _find === void 0 ? void 0 : _find.children;
|
|
48
|
+
var text = (children || []).find(function (item) {
|
|
49
|
+
return item.value === memo;
|
|
50
|
+
});
|
|
51
|
+
return text;
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
|
+
var _this$getComponentVal2;
|
|
55
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "editRender", function () {
|
|
58
|
+
return null;
|
|
59
|
+
});
|
|
60
|
+
_defineProperty(this, "filterConfig", function () {
|
|
61
|
+
return [];
|
|
62
|
+
});
|
|
63
|
+
this.name = options.name;
|
|
64
|
+
this.id = options.id;
|
|
65
|
+
this.sortField = options.id;
|
|
66
|
+
this.formField = options.id;
|
|
67
|
+
this.type = options.type;
|
|
68
|
+
this.componentConfig = options.componentConfig;
|
|
69
|
+
this.align = "left";
|
|
70
|
+
this.width = 200;
|
|
71
|
+
this.isCombinationComponent = false;
|
|
72
|
+
this.canSort = true;
|
|
73
|
+
this.dataType = "string";
|
|
74
|
+
this.children = [];
|
|
75
|
+
});
|
|
76
|
+
export default BsType;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class BsType implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
align: ALignType;
|
|
10
|
+
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: string, record: Record) => any;
|
|
22
|
+
editRender: () => null;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "eq";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Cascader";
|
|
29
|
+
props: {
|
|
30
|
+
options: any[] | undefined;
|
|
31
|
+
};
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export default BsType;
|
|
@@ -5,94 +5,85 @@ 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 "react";
|
|
9
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
8
10
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
|
-
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
11
|
import { SYMBOL } from "../../../constant";
|
|
11
|
-
var
|
|
12
|
+
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
12
13
|
var _this = this;
|
|
13
|
-
_classCallCheck(this,
|
|
14
|
+
_classCallCheck(this, BsType);
|
|
14
15
|
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "parentId", void 0);
|
|
16
16
|
_defineProperty(this, "id", void 0);
|
|
17
17
|
_defineProperty(this, "sortField", void 0);
|
|
18
18
|
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
19
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "effects", void 0);
|
|
22
20
|
_defineProperty(this, "align", void 0);
|
|
23
21
|
_defineProperty(this, "width", void 0);
|
|
24
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
23
|
_defineProperty(this, "formField", void 0);
|
|
26
24
|
_defineProperty(this, "canSort", void 0);
|
|
27
25
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
29
26
|
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
31
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
32
|
-
});
|
|
33
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ?
|
|
28
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
29
|
+
id: _this.id,
|
|
30
|
+
label: _this.name,
|
|
31
|
+
value: _this.getComponentValue(record)
|
|
32
|
+
}) : null;
|
|
35
33
|
});
|
|
36
34
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
|
|
35
|
+
var _this$getComponentVal;
|
|
36
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
38
37
|
});
|
|
39
38
|
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
40
|
+
return _this.renderPc(undefined, r);
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
43
|
+
var _find, _this$componentConfig;
|
|
44
|
+
var type = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][0] : "";
|
|
45
|
+
var text = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
46
|
+
return item.value === type;
|
|
47
|
+
})) === null || _find === void 0 ? void 0 : _find.label;
|
|
48
|
+
return text;
|
|
43
49
|
});
|
|
44
50
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
45
|
-
var _this$
|
|
46
|
-
return (_this$
|
|
51
|
+
var _this$getComponentVal2;
|
|
52
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
47
53
|
});
|
|
48
54
|
_defineProperty(this, "editRender", function () {
|
|
49
55
|
return null;
|
|
50
56
|
});
|
|
51
57
|
_defineProperty(this, "filterConfig", function (item) {
|
|
58
|
+
var _item$config;
|
|
59
|
+
var subKey = item.subKey;
|
|
52
60
|
return {
|
|
53
|
-
searchDefaultConditions: SYMBOL.
|
|
61
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
54
62
|
type: item.type,
|
|
55
|
-
id:
|
|
56
|
-
name: "".concat(item.name, "-\
|
|
57
|
-
filterComponentType: "
|
|
63
|
+
id: item.id,
|
|
64
|
+
name: "".concat(item.name, "-\u7C7B\u578B"),
|
|
65
|
+
filterComponentType: "Cascader",
|
|
58
66
|
props: {
|
|
59
|
-
options:
|
|
60
|
-
},
|
|
61
|
-
formatFilterValue: function formatFilterValue(value) {
|
|
62
|
-
var _value$map;
|
|
63
|
-
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
|
|
64
|
-
return v === null || v === void 0 ? void 0 : v.split(",");
|
|
65
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.flat();
|
|
67
|
+
options: item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList
|
|
66
68
|
},
|
|
67
69
|
filterFn: function filterFn(value) {
|
|
68
70
|
return function (i) {
|
|
69
|
-
|
|
70
|
-
return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
|
|
71
|
-
return v === null || v === void 0 ? void 0 : v.split(",");
|
|
72
|
-
})) === null || _value$map2 === void 0 ? void 0 : (_value$map2$flat = _value$map2.flat()) === null || _value$map2$flat === void 0 ? void 0 : _value$map2$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsStatus"));
|
|
71
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
74
|
};
|
|
76
75
|
});
|
|
77
|
-
this.name =
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
81
|
-
this.formField = "".concat(options.id);
|
|
76
|
+
this.name = options.name;
|
|
77
|
+
this.id = options.id;
|
|
78
|
+
this.sortField = options.id;
|
|
79
|
+
this.formField = options.id;
|
|
82
80
|
this.type = options.type;
|
|
83
81
|
this.componentConfig = options.componentConfig;
|
|
84
|
-
this.rules = [];
|
|
85
82
|
this.align = "left";
|
|
86
|
-
this.width =
|
|
83
|
+
this.width = 200;
|
|
87
84
|
this.isCombinationComponent = false;
|
|
88
|
-
this.canSort =
|
|
89
|
-
this.children = [];
|
|
90
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
91
|
-
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
85
|
+
this.canSort = true;
|
|
92
86
|
this.dataType = "string";
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
export default BsPic;
|
|
87
|
+
this.children = [];
|
|
88
|
+
});
|
|
89
|
+
export default BsType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare type getFormItemProps = {
|
|
3
3
|
name: string;
|
|
4
4
|
title: string;
|
|
@@ -6,13 +6,18 @@ declare type getFormItemProps = {
|
|
|
6
6
|
required: boolean;
|
|
7
7
|
component: JSX.Element | string | null;
|
|
8
8
|
};
|
|
9
|
-
export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) => JSX.Element;
|
|
10
|
-
export declare const showImage: ({ item, type, index }: {
|
|
9
|
+
export declare const getFormItem: ({ name, title, rules, required, component, }: getFormItemProps) => React.JSX.Element;
|
|
10
|
+
export declare const showImage: ({ item, type, index, }: {
|
|
11
11
|
item: any;
|
|
12
12
|
type: string;
|
|
13
13
|
index: number;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
export declare const ShowTotalImage: ({ total, allImage, type }: any) => JSX.Element;
|
|
16
|
-
export declare const GoodImage: ({ list, type }: any) => JSX.Element | null;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export declare const ShowTotalImage: ({ total, allImage, type }: any) => React.JSX.Element;
|
|
16
|
+
export declare const GoodImage: ({ list, type }: any) => React.JSX.Element | null;
|
|
17
17
|
export declare const JstGoodImage: ({ list, type }: any) => any;
|
|
18
|
+
export declare const BsGoodImage: ({ item, index }: {
|
|
19
|
+
item: any;
|
|
20
|
+
index: number;
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
|
+
export declare const BsExchangeList: ({ list }: any) => React.JSX.Element;
|
|
18
23
|
export {};
|