@kmkf-fe-packages/services-components 0.8.17-alpha.9 → 0.8.18-alpha.0
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 +3 -0
- package/dist/esm/components/BS/BsReturn/index.d.ts +54 -0
- package/dist/esm/components/BS/BsReturn/index.js +150 -0
- package/dist/esm/components/BS/DeliveryNo/index.d.ts +32 -0
- package/dist/esm/components/BS/DeliveryNo/index.js +137 -0
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderGood.js +43 -36
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +15 -14
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +13 -12
- package/dist/esm/components/Calculation/index.d.ts +31 -0
- package/dist/esm/components/Calculation/index.js +97 -0
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +73 -29
- package/dist/esm/components/CommonMultiStatus/index.d.ts +32 -0
- package/dist/esm/components/CommonMultiStatus/index.js +163 -0
- package/dist/esm/components/CommonSystemOrder/index.d.ts +32 -0
- package/dist/esm/components/CommonSystemOrder/index.js +152 -0
- package/dist/esm/components/CommonTradeId/index.js +1 -4
- package/dist/esm/components/GetFormItem/index.d.ts +4 -2
- package/dist/esm/components/GetFormItem/index.js +10 -3
- package/dist/esm/components/HandlerDeadLine/index.d.ts +43 -0
- package/dist/esm/components/HandlerDeadLine/index.js +85 -0
- package/dist/esm/components/HandlerDeadLine/index.less +3 -0
- package/dist/esm/components/NodeDeadLine/index.d.ts +43 -0
- package/dist/esm/components/NodeDeadLine/index.js +85 -0
- package/dist/esm/components/NodeDeadLine/index.less +3 -0
- package/dist/esm/components/NodeStayDuration/index.d.ts +26 -0
- package/dist/esm/components/NodeStayDuration/index.js +61 -0
- package/dist/esm/components/NodeStayDuration/index.less +3 -0
- package/dist/esm/components/ShopInput/index.d.ts +1 -0
- package/dist/esm/components/ShopInput/index.js +2 -0
- package/dist/esm/components/StatusSelect/index.js +6 -6
- package/dist/esm/components/TextArea/index.d.ts +3 -3
- package/dist/esm/components/TextArea/index.js +9 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +17 -3
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/type.d.ts +2 -1
- package/package.json +4 -4
|
@@ -0,0 +1,163 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
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); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import some from "lodash/some";
|
|
13
|
+
import GetFormItem from "../GetFormItem";
|
|
14
|
+
import { CommonOrderContent } from "../Common";
|
|
15
|
+
import { CommonMultiStatus as Status } from "@kmkf-fe-packages/basic-components";
|
|
16
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { SYMBOL } from "../../constant";
|
|
19
|
+
var typeMap = {
|
|
20
|
+
RETURN_GOODS_STATUS: {
|
|
21
|
+
options: [{
|
|
22
|
+
value: "成功",
|
|
23
|
+
label: "成功",
|
|
24
|
+
color: "#52c41a"
|
|
25
|
+
}, {
|
|
26
|
+
value: "失败",
|
|
27
|
+
label: "失败",
|
|
28
|
+
color: "#ff4d4f"
|
|
29
|
+
}],
|
|
30
|
+
key: "returnGoodsStatusList",
|
|
31
|
+
code: "returnGoodsStatusValue",
|
|
32
|
+
name: "退货状态",
|
|
33
|
+
type: 1,
|
|
34
|
+
valueKey: "status",
|
|
35
|
+
failValue: "失败"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
39
|
+
var _this = this,
|
|
40
|
+
_typeMap$options$type,
|
|
41
|
+
_typeMap$options$type2,
|
|
42
|
+
_this$componentConfig3;
|
|
43
|
+
_classCallCheck(this, CommonMultiStatus);
|
|
44
|
+
_defineProperty(this, "name", void 0);
|
|
45
|
+
_defineProperty(this, "id", void 0);
|
|
46
|
+
_defineProperty(this, "sortField", void 0);
|
|
47
|
+
_defineProperty(this, "type", void 0);
|
|
48
|
+
_defineProperty(this, "rules", void 0);
|
|
49
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
50
|
+
_defineProperty(this, "align", void 0);
|
|
51
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
52
|
+
_defineProperty(this, "formField", void 0);
|
|
53
|
+
_defineProperty(this, "canSort", void 0);
|
|
54
|
+
_defineProperty(this, "children", void 0);
|
|
55
|
+
_defineProperty(this, "dataType", void 0);
|
|
56
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
57
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
58
|
+
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
59
|
+
return !isNull(item);
|
|
60
|
+
}) : false;
|
|
61
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
62
|
+
id: _this.id,
|
|
63
|
+
label: _this.name,
|
|
64
|
+
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
65
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
66
|
+
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
|
|
67
|
+
failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
|
|
68
|
+
options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options
|
|
69
|
+
})
|
|
70
|
+
}) : null;
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
73
|
+
var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
|
|
74
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
75
|
+
//兼容多个商品
|
|
76
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
77
|
+
onClick: function onClick(e) {
|
|
78
|
+
return e.stopPropagation();
|
|
79
|
+
}
|
|
80
|
+
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
81
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
82
|
+
valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
|
|
83
|
+
failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
|
|
84
|
+
options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options
|
|
85
|
+
}));
|
|
86
|
+
});
|
|
87
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
88
|
+
var _typeMap$_this$type8;
|
|
89
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
|
|
90
|
+
if (isNull(list)) return null;
|
|
91
|
+
return _this.renderPc(undefined, r);
|
|
92
|
+
});
|
|
93
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
94
|
+
var _typeMap$_this$type9;
|
|
95
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
|
|
96
|
+
});
|
|
97
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
98
|
+
var _typeMap$_this$type10;
|
|
99
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
100
|
+
return (list || []).map(function (item) {
|
|
101
|
+
var _typeMap$_this$type11;
|
|
102
|
+
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.valueKey];
|
|
103
|
+
}).join(",");
|
|
104
|
+
});
|
|
105
|
+
_defineProperty(this, "editRender", function (p) {
|
|
106
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type12;
|
|
107
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
108
|
+
title: _this.name,
|
|
109
|
+
name: _this.id,
|
|
110
|
+
rules: _this.rules,
|
|
111
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
112
|
+
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,
|
|
113
|
+
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
114
|
+
type: (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.type,
|
|
115
|
+
failValue: typeMap[_this.type].failValue
|
|
116
|
+
}))
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
120
|
+
var _typeMap$_this$type13;
|
|
121
|
+
return [{
|
|
122
|
+
searchDefaultConditions: SYMBOL.like,
|
|
123
|
+
type: item.type,
|
|
124
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.code),
|
|
125
|
+
name: "".concat(_this.name),
|
|
126
|
+
filterComponentType: "Input",
|
|
127
|
+
filterFn: function filterFn(value) {
|
|
128
|
+
return function (i) {
|
|
129
|
+
var _typeMap$_this$type14;
|
|
130
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.code), value);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}];
|
|
134
|
+
});
|
|
135
|
+
this.name = options.name;
|
|
136
|
+
this.id = options.id;
|
|
137
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
138
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
|
|
139
|
+
this.type = options.type;
|
|
140
|
+
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
141
|
+
options: typeMap[options.type].options
|
|
142
|
+
});
|
|
143
|
+
this.isCombinationComponent = false;
|
|
144
|
+
this.canSort = false;
|
|
145
|
+
this.children = [];
|
|
146
|
+
this.dataType = "object";
|
|
147
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
148
|
+
required: true,
|
|
149
|
+
validator: function validator(_, value) {
|
|
150
|
+
var hasNo = (value || []).some(function (item) {
|
|
151
|
+
var _typeMap$_this$type15;
|
|
152
|
+
return item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey];
|
|
153
|
+
});
|
|
154
|
+
if (!hasNo) {
|
|
155
|
+
var _typeMap$_this$type16;
|
|
156
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.name)));
|
|
157
|
+
}
|
|
158
|
+
return Promise.resolve();
|
|
159
|
+
}
|
|
160
|
+
}] : [];
|
|
161
|
+
this.align = "left";
|
|
162
|
+
});
|
|
163
|
+
export default CommonMultiStatus;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class CommonSystemOrder implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
align: ALignType;
|
|
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: any, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Input";
|
|
29
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export default CommonSystemOrder;
|
|
@@ -0,0 +1,152 @@
|
|
|
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
10
|
+
import some from "lodash/some";
|
|
11
|
+
import GetFormItem from "../GetFormItem";
|
|
12
|
+
import { CommonOrderContent } from "../Common";
|
|
13
|
+
import { CommonSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
14
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
17
|
+
var typeMap = {
|
|
18
|
+
BS_DELIVERY_NO: {
|
|
19
|
+
key: "deliveryNoList",
|
|
20
|
+
code: "deliveryNoIds",
|
|
21
|
+
name: "出库单",
|
|
22
|
+
type: 1,
|
|
23
|
+
valueKey: "deliveryNo"
|
|
24
|
+
},
|
|
25
|
+
RETURN_GOODS_TRADE_ID: {
|
|
26
|
+
key: "returnGoodsTradeIdList",
|
|
27
|
+
code: "returnGoodsTradeIds",
|
|
28
|
+
name: "退货单id",
|
|
29
|
+
type: 2,
|
|
30
|
+
valueKey: "returnGoodsTradeId"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
34
|
+
var _this = this,
|
|
35
|
+
_typeMap$options$type,
|
|
36
|
+
_typeMap$options$type2,
|
|
37
|
+
_this$componentConfig3;
|
|
38
|
+
_classCallCheck(this, CommonSystemOrder);
|
|
39
|
+
_defineProperty(this, "name", void 0);
|
|
40
|
+
_defineProperty(this, "id", void 0);
|
|
41
|
+
_defineProperty(this, "sortField", void 0);
|
|
42
|
+
_defineProperty(this, "type", void 0);
|
|
43
|
+
_defineProperty(this, "rules", void 0);
|
|
44
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
45
|
+
_defineProperty(this, "align", void 0);
|
|
46
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
47
|
+
_defineProperty(this, "formField", void 0);
|
|
48
|
+
_defineProperty(this, "canSort", void 0);
|
|
49
|
+
_defineProperty(this, "children", void 0);
|
|
50
|
+
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
52
|
+
var _typeMap$_this$type;
|
|
53
|
+
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
54
|
+
return !isNull(item);
|
|
55
|
+
}) : false;
|
|
56
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
57
|
+
id: _this.id,
|
|
58
|
+
label: _this.name,
|
|
59
|
+
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
60
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
61
|
+
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey
|
|
62
|
+
})
|
|
63
|
+
}) : null;
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
66
|
+
var _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
|
|
67
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
|
|
68
|
+
//兼容多个商品
|
|
69
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
70
|
+
onClick: function onClick(e) {
|
|
71
|
+
return e.stopPropagation();
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
74
|
+
list: list,
|
|
75
|
+
type: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.type,
|
|
76
|
+
valueKey: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.valueKey
|
|
77
|
+
}));
|
|
78
|
+
});
|
|
79
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
80
|
+
var _typeMap$_this$type5;
|
|
81
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)];
|
|
82
|
+
if (isNull(list)) return null;
|
|
83
|
+
return _this.renderPc(undefined, r);
|
|
84
|
+
});
|
|
85
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
86
|
+
var _typeMap$_this$type6;
|
|
87
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
|
|
88
|
+
});
|
|
89
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
90
|
+
var _typeMap$_this$type7;
|
|
91
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.key)];
|
|
92
|
+
return (list || []).map(function (item) {
|
|
93
|
+
var _typeMap$_this$type8;
|
|
94
|
+
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.valueKey];
|
|
95
|
+
}).join(",");
|
|
96
|
+
});
|
|
97
|
+
_defineProperty(this, "editRender", function (p) {
|
|
98
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type9;
|
|
99
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
100
|
+
title: _this.name,
|
|
101
|
+
name: _this.id,
|
|
102
|
+
rules: _this.rules,
|
|
103
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
104
|
+
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,
|
|
105
|
+
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
106
|
+
type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type
|
|
107
|
+
}))
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
111
|
+
var _typeMap$_this$type10;
|
|
112
|
+
return [{
|
|
113
|
+
searchDefaultConditions: SYMBOL.like,
|
|
114
|
+
type: item.type,
|
|
115
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
|
|
116
|
+
name: "".concat(_this.name),
|
|
117
|
+
filterComponentType: "Input",
|
|
118
|
+
filterFn: function filterFn(value) {
|
|
119
|
+
return function (i) {
|
|
120
|
+
var _typeMap$_this$type11;
|
|
121
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code), value);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}];
|
|
125
|
+
});
|
|
126
|
+
this.name = options.name;
|
|
127
|
+
this.id = options.id;
|
|
128
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
129
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
|
|
130
|
+
this.type = options.type;
|
|
131
|
+
this.componentConfig = options.componentConfig;
|
|
132
|
+
this.isCombinationComponent = false;
|
|
133
|
+
this.canSort = false;
|
|
134
|
+
this.children = [];
|
|
135
|
+
this.dataType = "object";
|
|
136
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
137
|
+
required: true,
|
|
138
|
+
validator: function validator(_, value) {
|
|
139
|
+
var hasNo = (value || []).some(function (item) {
|
|
140
|
+
var _typeMap$_this$type12;
|
|
141
|
+
return item[(_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.valueKey];
|
|
142
|
+
});
|
|
143
|
+
if (!hasNo) {
|
|
144
|
+
var _typeMap$_this$type13;
|
|
145
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.name)));
|
|
146
|
+
}
|
|
147
|
+
return Promise.resolve();
|
|
148
|
+
}
|
|
149
|
+
}] : [];
|
|
150
|
+
this.align = "left";
|
|
151
|
+
});
|
|
152
|
+
export default CommonSystemOrder;
|
|
@@ -20,9 +20,6 @@ var TRADE_ID_MAP = {
|
|
|
20
20
|
},
|
|
21
21
|
EXCHANGE_TRADE_ID: {
|
|
22
22
|
key: "exchangeTradeId"
|
|
23
|
-
},
|
|
24
|
-
RETURN_GOODS_TRADE_ID: {
|
|
25
|
-
key: "returnGoodsTradeId"
|
|
26
23
|
}
|
|
27
24
|
};
|
|
28
25
|
var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
|
|
@@ -93,7 +90,7 @@ var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
|
|
|
93
90
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
94
91
|
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,
|
|
95
92
|
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
96
|
-
placeholder: "\
|
|
93
|
+
placeholder: "\u65E0\u987B\u586B\u5199",
|
|
97
94
|
disabled: true
|
|
98
95
|
}))
|
|
99
96
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
declare type GetFormItemProps = {
|
|
3
3
|
rules: any[];
|
|
4
4
|
required: boolean;
|
|
@@ -6,6 +6,8 @@ declare type GetFormItemProps = {
|
|
|
6
6
|
name: string;
|
|
7
7
|
component: JSX.Element | null;
|
|
8
8
|
hidden?: boolean;
|
|
9
|
+
style?: CSSProperties | undefined;
|
|
10
|
+
[prop: string]: any;
|
|
9
11
|
};
|
|
10
|
-
declare const GetFormItem: ({ rules, required, title, component, name, hidden }: GetFormItemProps) => React.JSX.Element | null;
|
|
12
|
+
declare const GetFormItem: ({ rules, required, title, component, name, hidden, style, }: GetFormItemProps) => React.JSX.Element | null;
|
|
11
13
|
export default GetFormItem;
|
|
@@ -1,3 +1,9 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
1
7
|
import React from "react";
|
|
2
8
|
import { Form } from "antd";
|
|
3
9
|
var GetFormItem = function GetFormItem(_ref) {
|
|
@@ -7,7 +13,8 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
7
13
|
component = _ref.component,
|
|
8
14
|
name = _ref.name,
|
|
9
15
|
_ref$hidden = _ref.hidden,
|
|
10
|
-
hidden = _ref$hidden === void 0 ? false : _ref$hidden
|
|
16
|
+
hidden = _ref$hidden === void 0 ? false : _ref$hidden,
|
|
17
|
+
style = _ref.style;
|
|
11
18
|
var newRules = rules;
|
|
12
19
|
if (required) {
|
|
13
20
|
newRules = rules.concat({
|
|
@@ -19,9 +26,9 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
19
26
|
if (hidden) return null;
|
|
20
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
28
|
className: "form-item--wrap",
|
|
22
|
-
style: {
|
|
29
|
+
style: _objectSpread({
|
|
23
30
|
position: "relative"
|
|
24
|
-
}
|
|
31
|
+
}, style)
|
|
25
32
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26
33
|
name: name,
|
|
27
34
|
label: title,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare class HandlerDeadLine implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
options: Array<{
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}>;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
|
+
renderLog: () => null;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
renderExport: (value: any, record: any) => any;
|
|
26
|
+
renderClient: () => null;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "eq";
|
|
30
|
+
type: string;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
filterComponentType: "MultipleSelect";
|
|
34
|
+
props: {
|
|
35
|
+
mode: string;
|
|
36
|
+
options: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export default HandlerDeadLine;
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { SYMBOL } from "../../constant";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
var HandlerDeadLine = /*#__PURE__*/_createClass(function HandlerDeadLine(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, HandlerDeadLine);
|
|
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, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "effects", 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, "options", void 0);
|
|
27
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
|
+
var _record, _record2;
|
|
29
|
+
if (!(record !== null && record !== void 0 && record.hasHandlerDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
|
|
30
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31
|
+
className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
|
|
32
|
+
}, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderLog", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
38
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
41
|
+
var _record3;
|
|
42
|
+
return (_record3 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record3 !== void 0 ? _record3 : '--';
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderClient", function () {
|
|
45
|
+
return null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "editRender", function () {
|
|
48
|
+
return null;
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
51
|
+
return {
|
|
52
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
53
|
+
type: item.type,
|
|
54
|
+
id: item.id,
|
|
55
|
+
// 过滤组件id
|
|
56
|
+
name: item.name,
|
|
57
|
+
// 过滤组件名称
|
|
58
|
+
filterComponentType: 'MultipleSelect',
|
|
59
|
+
props: {
|
|
60
|
+
mode: "",
|
|
61
|
+
options: _this.options
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
this.name = options.name;
|
|
66
|
+
this.id = options.id;
|
|
67
|
+
this.sortField = options.id;
|
|
68
|
+
this.formField = options.id;
|
|
69
|
+
this.type = options.type;
|
|
70
|
+
this.componentConfig = options.componentConfig;
|
|
71
|
+
this.effects = options.effects;
|
|
72
|
+
this.dataType = 'string';
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.isCombinationComponent = false;
|
|
75
|
+
this.canSort = false;
|
|
76
|
+
this.children = [];
|
|
77
|
+
this.options = [{
|
|
78
|
+
label: '已超时',
|
|
79
|
+
value: 'TIME_OUT'
|
|
80
|
+
}, {
|
|
81
|
+
label: '未超时',
|
|
82
|
+
value: 'NOT_TIME_OUT'
|
|
83
|
+
}];
|
|
84
|
+
});
|
|
85
|
+
export default HandlerDeadLine;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare class NodeDeadLine implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
options: Array<{
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}>;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
|
+
renderLog: () => null;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
renderExport: (value: any, record: any) => any;
|
|
26
|
+
renderClient: () => null;
|
|
27
|
+
editRender: () => null;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "eq";
|
|
30
|
+
type: string;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
filterComponentType: "MultipleSelect";
|
|
34
|
+
props: {
|
|
35
|
+
mode: string;
|
|
36
|
+
options: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export default NodeDeadLine;
|