@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-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 +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +12 -13
- package/dist/esm/components/ActualPayment/index.js +28 -26
- package/dist/esm/components/Address/index.d.ts +9 -16
- package/dist/esm/components/Address/index.js +17 -26
- package/dist/esm/components/Alipay/index.d.ts +15 -19
- package/dist/esm/components/Alipay/index.js +15 -20
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
- package/dist/esm/components/AlipayAccount/index.js +29 -28
- package/dist/esm/components/AlipayName/index.d.ts +13 -15
- package/dist/esm/components/AlipayName/index.js +29 -28
- package/dist/esm/components/BuyerNick/index.d.ts +14 -15
- package/dist/esm/components/BuyerNick/index.js +41 -28
- package/dist/esm/components/Cascader/index.d.ts +13 -25
- package/dist/esm/components/Cascader/index.js +38 -31
- package/dist/esm/components/Checkbox/index.d.ts +15 -11
- package/dist/esm/components/Checkbox/index.js +45 -26
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
- package/dist/esm/components/CommonDataTime/index.js +27 -24
- package/dist/esm/components/CompletedUser/index.d.ts +30 -0
- package/dist/esm/components/CompletedUser/index.js +64 -0
- package/dist/esm/components/DataTime/index.d.ts +12 -11
- package/dist/esm/components/DataTime/index.js +30 -26
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
- package/dist/esm/components/EItemEnCode/index.js +34 -27
- package/dist/esm/components/EItemId/index.d.ts +11 -11
- package/dist/esm/components/EItemId/index.js +34 -27
- package/dist/esm/components/EItemSelect/index.d.ts +6 -12
- package/dist/esm/components/EItemSelect/index.js +16 -24
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
- package/dist/esm/components/ErpTradeId/index.js +28 -26
- package/dist/esm/components/Express/index.d.ts +15 -17
- package/dist/esm/components/Express/index.js +30 -36
- package/dist/esm/components/ExpressCode/index.d.ts +16 -18
- package/dist/esm/components/ExpressCode/index.js +34 -32
- package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
- package/dist/esm/components/FlowStatusSelect/index.js +38 -25
- package/dist/esm/components/GetFormItem/index.d.ts +3 -3
- package/dist/esm/components/GetFormItem/index.js +3 -3
- package/dist/esm/components/Grade/index.d.ts +6 -12
- package/dist/esm/components/Grade/index.js +14 -23
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +74 -0
- package/dist/esm/components/Input/index.d.ts +11 -12
- package/dist/esm/components/Input/index.js +29 -28
- package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
- package/dist/esm/components/JstItemSelect/index.js +48 -28
- package/dist/esm/components/JstLogistics/index.d.ts +21 -13
- package/dist/esm/components/JstLogistics/index.js +50 -29
- package/dist/esm/components/JstSendGood/index.d.ts +12 -12
- package/dist/esm/components/JstSendGood/index.js +54 -29
- package/dist/esm/components/JstSupply/index.d.ts +12 -12
- package/dist/esm/components/JstSupply/index.js +54 -29
- package/dist/esm/components/Logistics/index.d.ts +23 -27
- package/dist/esm/components/Logistics/index.js +19 -20
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +75 -0
- package/dist/esm/components/LogisticsInterception/index.js +136 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
- package/dist/esm/components/MultSelect/index.d.ts +12 -12
- package/dist/esm/components/MultSelect/index.js +31 -24
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
- package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
- package/dist/esm/components/Ordinary/index.d.ts +17 -24
- package/dist/esm/components/Ordinary/index.js +20 -12
- package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
- package/dist/esm/components/Payment/AlipayNick.js +29 -34
- package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
- package/dist/esm/components/Payment/AlipayNo.js +29 -34
- package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
- package/dist/esm/components/Payment/AlipayTime.js +26 -35
- package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
- package/dist/esm/components/Payment/BuyerNick.js +26 -32
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentAmount.js +24 -30
- package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
- package/dist/esm/components/Payment/PaymentStatus.js +48 -41
- package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentTid.js +24 -30
- package/dist/esm/components/Payment/index.d.ts +36 -97
- package/dist/esm/components/Payment/index.js +22 -20
- package/dist/esm/components/Picture/index.d.ts +11 -11
- package/dist/esm/components/Picture/index.js +14 -19
- package/dist/esm/components/PlatForm/index.d.ts +31 -0
- package/dist/esm/components/PlatForm/index.js +67 -0
- package/dist/esm/components/Radio/index.d.ts +15 -10
- package/dist/esm/components/Radio/index.js +34 -20
- package/dist/esm/components/Rate/index.d.ts +6 -11
- package/dist/esm/components/Rate/index.js +17 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
- package/dist/esm/components/ReceiverAddress/index.js +22 -29
- package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
- package/dist/esm/components/ReceiverMobile/index.js +29 -27
- package/dist/esm/components/ReceiverName/index.d.ts +11 -12
- package/dist/esm/components/ReceiverName/index.js +29 -27
- package/dist/esm/components/Remark/index.d.ts +14 -11
- package/dist/esm/components/Remark/index.js +31 -23
- package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
- package/dist/esm/components/ReturnLogistics/index.js +19 -10
- package/dist/esm/components/Select/index.d.ts +12 -11
- package/dist/esm/components/Select/index.js +28 -23
- package/dist/esm/components/ShopInput/index.d.ts +28 -0
- package/dist/esm/components/ShopInput/index.js +76 -0
- package/dist/esm/components/ShopName/index.d.ts +12 -13
- package/dist/esm/components/ShopName/index.js +28 -25
- package/dist/esm/components/Submitter/index.d.ts +30 -0
- package/dist/esm/components/Submitter/index.js +64 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
- package/dist/esm/components/SystemOrderNo/index.js +27 -25
- package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
- package/dist/esm/components/TemplateSelect/index.js +29 -24
- package/dist/esm/components/TextArea/index.d.ts +11 -11
- package/dist/esm/components/TextArea/index.js +27 -24
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
- package/dist/esm/components/ThirdItemSelect/index.js +36 -28
- package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
- package/dist/esm/components/TradeDateTime/index.js +52 -17
- package/dist/esm/components/TradeId/index.d.ts +11 -6
- package/dist/esm/components/TradeId/index.js +27 -14
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
- package/dist/esm/components/WorkOrderId/index.js +36 -29
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +52 -40
- package/dist/esm/index.js +13 -1
- package/dist/esm/type.d.ts +53 -45
- package/package.json +10 -5
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
isCombinationComponent: boolean;
|
|
10
|
+
children: ComponentInterface[];
|
|
14
11
|
constructor(options: PickOption);
|
|
15
|
-
render: (value: string) => JSX.Element;
|
|
16
12
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
13
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
14
|
+
getComponentValue: (r: Record) => any;
|
|
17
15
|
renderExport: (value: any, record: Record) => any;
|
|
18
16
|
renderClient: (record: Record) => JSX.Element | null;
|
|
19
17
|
editRender: () => JSX.Element;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
type: string;
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
filterComponentType: "Input";
|
|
23
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export default BasicInput;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
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
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); }
|
|
5
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); } }
|
|
6
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; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { ApaasTextArea } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, BasicInput);
|
|
@@ -20,19 +18,20 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
20
18
|
_defineProperty(this, "id", void 0);
|
|
21
19
|
_defineProperty(this, "type", void 0);
|
|
22
20
|
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "canFilter", void 0);
|
|
24
|
-
_defineProperty(this, "canGroup", void 0);
|
|
25
|
-
_defineProperty(this, "canHidden", void 0);
|
|
26
|
-
_defineProperty(this, "dataType", void 0);
|
|
27
|
-
_defineProperty(this, "showContains", void 0);
|
|
28
21
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
31
|
-
});
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "children", void 0);
|
|
32
24
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
33
25
|
var _record;
|
|
34
26
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : '--');
|
|
35
27
|
});
|
|
28
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
29
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_textarea")])) return null;
|
|
30
|
+
return _this.renderPc(undefined, r);
|
|
31
|
+
});
|
|
32
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
33
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_textarea")];
|
|
34
|
+
});
|
|
36
35
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
37
36
|
var _record2;
|
|
38
37
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -41,7 +40,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
41
40
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
41
|
id: _this.id,
|
|
43
42
|
label: _this.name,
|
|
44
|
-
value:
|
|
43
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
45
44
|
}) : null;
|
|
46
45
|
});
|
|
47
46
|
_defineProperty(this, "editRender", function () {
|
|
@@ -56,23 +55,27 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
56
55
|
}))
|
|
57
56
|
});
|
|
58
57
|
});
|
|
59
|
-
_defineProperty(this, "
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
59
|
+
return {
|
|
60
|
+
type: item.type,
|
|
61
|
+
id: item.id,
|
|
62
|
+
// 过滤组件id
|
|
63
|
+
name: item.name,
|
|
64
|
+
// 过滤组件名称
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'textarea')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
66
72
|
});
|
|
67
73
|
this.name = options.name;
|
|
68
74
|
this.id = options.id;
|
|
69
75
|
this.type = options.type;
|
|
70
|
-
this.canFilter = true;
|
|
71
|
-
this.canGroup = true;
|
|
72
|
-
this.canHidden = true;
|
|
73
|
-
this.showContains = true;
|
|
74
|
-
this.dataType = 'string';
|
|
75
76
|
this.componentConfig = options.componentConfig;
|
|
76
77
|
this.rules = [];
|
|
78
|
+
this.isCombinationComponent = false;
|
|
79
|
+
this.children = [];
|
|
77
80
|
});
|
|
78
81
|
export default BasicInput;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class ThirdItemSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
|
-
render: (value: any) => JSX.Element;
|
|
17
13
|
renderClient: (record: Record) => JSX.Element | null;
|
|
18
14
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: any, record: Record) => any;
|
|
20
18
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export default ThirdItemSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
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
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); }
|
|
5
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); } }
|
|
6
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; }
|
|
@@ -13,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
11
|
import ItemEncode from "./ItemEncode";
|
|
14
12
|
import { GoodImage } from "../Common";
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options) {
|
|
18
16
|
var _this = this,
|
|
19
17
|
_this$componentConfig2;
|
|
@@ -22,25 +20,18 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
24
|
_defineProperty(this, "effects", void 0);
|
|
32
|
-
_defineProperty(this, "
|
|
33
|
-
|
|
34
|
-
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
35
|
-
list: value,
|
|
36
|
-
type: "itemThird"
|
|
37
|
-
});
|
|
38
|
-
});
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
39
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
40
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
41
29
|
id: _this.id,
|
|
42
30
|
label: _this.name,
|
|
43
|
-
value:
|
|
31
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
32
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
33
|
+
type: "itemThird"
|
|
34
|
+
})
|
|
44
35
|
}) : null;
|
|
45
36
|
});
|
|
46
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -54,6 +45,13 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
54
45
|
type: "itemThird"
|
|
55
46
|
});
|
|
56
47
|
});
|
|
48
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
49
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
50
|
+
return _this.renderPc(undefined, r);
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
53
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
54
|
+
});
|
|
57
55
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
58
56
|
var _ref;
|
|
59
57
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
@@ -76,24 +74,34 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
76
74
|
}))
|
|
77
75
|
});
|
|
78
76
|
});
|
|
79
|
-
_defineProperty(this, "
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
78
|
+
return {
|
|
79
|
+
type: item.type,
|
|
80
|
+
id: item.id,
|
|
81
|
+
// 过滤组件id
|
|
82
|
+
name: item.name,
|
|
83
|
+
// 过滤组件名称
|
|
84
|
+
filterComponentType: 'Input',
|
|
85
|
+
filterFn: function filterFn(value) {
|
|
86
|
+
return function (i) {
|
|
87
|
+
var _ref2;
|
|
88
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
89
|
+
var _String, _String2;
|
|
90
|
+
var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
91
|
+
var name = item !== null && item !== void 0 && item.supplierName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplierName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
92
|
+
return id || name;
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
86
97
|
});
|
|
87
98
|
this.name = options.name || '供应商编码/名称';
|
|
88
99
|
this.id = options.id;
|
|
89
100
|
this.type = options.type;
|
|
90
|
-
this.canFilter = false;
|
|
91
|
-
this.canGroup = false;
|
|
92
|
-
this.canHidden = true;
|
|
93
|
-
this.showContains = false;
|
|
94
|
-
this.dataType = 'string';
|
|
95
101
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
96
102
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
103
|
+
this.isCombinationComponent = false;
|
|
104
|
+
this.children = [];
|
|
97
105
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
98
106
|
required: true,
|
|
99
107
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
4
|
declare class BasicDataTime implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -12,16 +12,24 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
12
12
|
dataType: DataType;
|
|
13
13
|
showContains: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
|
+
isCombinationComponent: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataMap: Record;
|
|
15
18
|
constructor(options: PickOption);
|
|
16
19
|
render: (value: Value) => JSX.Element;
|
|
17
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
21
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
|
+
getComponentValue: (r: Record) => any;
|
|
19
24
|
renderExport: (value: unknown, record: Record) => any;
|
|
20
25
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "Date";
|
|
32
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
25
33
|
};
|
|
26
34
|
}
|
|
27
35
|
export default BasicDataTime;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
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
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); }
|
|
5
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); } }
|
|
6
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; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { DateTime } from "../DataTime";
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, BasicDataTime);
|
|
@@ -26,6 +24,9 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
26
24
|
_defineProperty(this, "dataType", void 0);
|
|
27
25
|
_defineProperty(this, "showContains", void 0);
|
|
28
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataMap", void 0);
|
|
29
30
|
_defineProperty(this, "render", function (value) {
|
|
30
31
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
|
|
31
32
|
});
|
|
@@ -39,13 +40,16 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
39
40
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
41
|
var _record;
|
|
41
42
|
var type = _this.type;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : '--');
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
var type = _this.type;
|
|
47
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.dataMap[type])])) return null;
|
|
48
|
+
return _this.renderPc(undefined, r);
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
|
+
var type = _this.type;
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.dataMap[type])];
|
|
49
53
|
});
|
|
50
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
55
|
var _record2;
|
|
@@ -70,13 +74,36 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
70
74
|
}))
|
|
71
75
|
});
|
|
72
76
|
});
|
|
73
|
-
_defineProperty(this, "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
78
|
+
if (type === 'TRADE_CLOSING_DATETIME') {
|
|
79
|
+
return 'tradeClosingDateTime';
|
|
80
|
+
}
|
|
81
|
+
if (type === 'TRADE_CREATE_DATETIME') {
|
|
82
|
+
return 'tradeCreateDateTime';
|
|
83
|
+
}
|
|
84
|
+
if (type === 'TRADE_PAYMENT_DATETIME') {
|
|
85
|
+
return 'tradePaymentDateTime';
|
|
86
|
+
}
|
|
87
|
+
if (type === 'TRADE_DELIVERY_DATETIME') {
|
|
88
|
+
return 'tradeDeliveryDateTime';
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
92
|
+
return {
|
|
93
|
+
type: item.type,
|
|
94
|
+
id: item.id,
|
|
95
|
+
// 过滤组件id
|
|
96
|
+
name: item.name,
|
|
97
|
+
// 过滤组件名称
|
|
98
|
+
filterComponentType: 'Date',
|
|
99
|
+
filterFn: function filterFn(value) {
|
|
100
|
+
return function (i) {
|
|
101
|
+
var key = _this.getKeyByComponentType(item.type);
|
|
102
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
103
|
+
return _filterFn.filterDateFn(value, recordDateTime);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
};
|
|
80
107
|
});
|
|
81
108
|
this.name = options.name;
|
|
82
109
|
this.id = options.id;
|
|
@@ -88,5 +115,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
88
115
|
this.dataType = 'date';
|
|
89
116
|
this.componentConfig = options.componentConfig;
|
|
90
117
|
this.rules = [];
|
|
118
|
+
this.isCombinationComponent = false;
|
|
119
|
+
this.children = [];
|
|
120
|
+
this.dataMap = {
|
|
121
|
+
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
122
|
+
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
123
|
+
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
124
|
+
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime'
|
|
125
|
+
};
|
|
91
126
|
});
|
|
92
127
|
export default BasicDataTime;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -13,16 +13,21 @@ declare class ETradeId implements ComponentInterface {
|
|
|
13
13
|
onlyContainsString: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
|
+
isCombinationComponent: boolean;
|
|
17
|
+
children: ComponentInterface[];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
|
-
render: (value: string) => JSX.Element;
|
|
18
19
|
renderClient: (record: any) => JSX.Element | null;
|
|
19
20
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
20
23
|
renderExport: (value: unknown, record: Record) => any;
|
|
21
24
|
editRender: (value: any) => JSX.Element;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
type: string;
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
filterComponentType: "Input";
|
|
30
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
31
|
};
|
|
27
32
|
}
|
|
28
33
|
export default ETradeId;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
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
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); }
|
|
5
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); } }
|
|
6
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; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, ETradeId);
|
|
@@ -28,20 +26,26 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
28
26
|
_defineProperty(this, "onlyContainsString", void 0);
|
|
29
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
28
|
_defineProperty(this, "effects", void 0);
|
|
31
|
-
_defineProperty(this, "
|
|
32
|
-
|
|
33
|
-
});
|
|
29
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
34
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
33
|
id: _this.id,
|
|
37
34
|
label: _this.name,
|
|
38
|
-
value:
|
|
35
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
39
36
|
}) : null;
|
|
40
37
|
});
|
|
41
38
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
42
39
|
var _record;
|
|
43
40
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--');
|
|
44
41
|
});
|
|
42
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
|
|
44
|
+
return _this.renderPc(undefined, r);
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
47
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
|
|
48
|
+
});
|
|
45
49
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
46
50
|
var _record2;
|
|
47
51
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -65,13 +69,20 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
65
69
|
}))
|
|
66
70
|
});
|
|
67
71
|
});
|
|
68
|
-
_defineProperty(this, "
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
73
|
+
return {
|
|
74
|
+
type: item.type,
|
|
75
|
+
id: item.id,
|
|
76
|
+
// 过滤组件id
|
|
77
|
+
name: item.name,
|
|
78
|
+
// 过滤组件名称
|
|
79
|
+
filterComponentType: 'Input',
|
|
80
|
+
filterFn: function filterFn(value) {
|
|
81
|
+
return function (i) {
|
|
82
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
75
86
|
});
|
|
76
87
|
this.name = options.name;
|
|
77
88
|
this.id = options.id;
|
|
@@ -85,5 +96,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
85
96
|
this.componentConfig = options.componentConfig;
|
|
86
97
|
this.effects = options.effects;
|
|
87
98
|
this.rules = [];
|
|
99
|
+
this.isCombinationComponent = false;
|
|
100
|
+
this.children = [];
|
|
88
101
|
});
|
|
89
102
|
export default ETradeId;
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class WorkOrderId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
13
|
copyHandle: (text: string) => void;
|
|
17
14
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
18
17
|
renderExport: (value: any, record: any) => any;
|
|
19
|
-
render: () => null;
|
|
20
18
|
renderClient: () => null;
|
|
21
19
|
editRender: () => JSX.Element;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
type: string;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
28
|
export default WorkOrderId;
|