@kmkf-fe-packages/services-components 0.7.4-alpha.0 → 0.7.5-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/dist/esm/components/ActualPayment/index.d.ts +3 -1
- package/dist/esm/components/ActualPayment/index.js +6 -2
- package/dist/esm/components/Address/index.d.ts +20 -3
- package/dist/esm/components/Address/index.js +33 -3
- package/dist/esm/components/Alipay/index.d.ts +2 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -0
- package/dist/esm/components/AlipayAccount/index.js +4 -0
- package/dist/esm/components/AlipayName/index.d.ts +2 -0
- package/dist/esm/components/AlipayName/index.js +4 -0
- package/dist/esm/components/BuyerNick/index.d.ts +2 -0
- package/dist/esm/components/BuyerNick/index.js +4 -0
- package/dist/esm/components/Cascader/index.d.ts +11 -1
- package/dist/esm/components/Cascader/index.js +18 -2
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +11 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
- package/dist/esm/components/CommonDataTime/index.js +11 -0
- package/dist/esm/components/CompletedUser/index.d.ts +8 -4
- package/dist/esm/components/CompletedUser/index.js +7 -1
- package/dist/esm/components/DataTime/index.d.ts +6 -1
- package/dist/esm/components/DataTime/index.js +15 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
- package/dist/esm/components/EItemEnCode/index.js +5 -1
- package/dist/esm/components/EItemId/index.d.ts +2 -0
- package/dist/esm/components/EItemId/index.js +5 -1
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +2 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -0
- package/dist/esm/components/ErpTradeId/index.js +8 -1
- package/dist/esm/components/Express/index.d.ts +5 -1
- package/dist/esm/components/Express/index.js +7 -1
- package/dist/esm/components/ExpressCode/index.d.ts +2 -0
- package/dist/esm/components/ExpressCode/index.js +4 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +8 -4
- package/dist/esm/components/FlowStatusSelect/index.js +12 -6
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +2 -0
- package/dist/esm/components/Handler/index.d.ts +8 -4
- package/dist/esm/components/Handler/index.js +7 -1
- package/dist/esm/components/Input/index.d.ts +2 -0
- package/dist/esm/components/Input/index.js +5 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
- package/dist/esm/components/JstItemSelect/index.js +21 -15
- package/dist/esm/components/JstLogistics/index.d.ts +7 -2
- package/dist/esm/components/JstLogistics/index.js +8 -1
- package/dist/esm/components/JstSendGood/index.d.ts +2 -0
- package/dist/esm/components/JstSendGood/index.js +5 -0
- package/dist/esm/components/JstSupply/index.d.ts +2 -0
- package/dist/esm/components/JstSupply/index.js +5 -0
- package/dist/esm/components/Logistics/index.d.ts +5 -2
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +9 -5
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +7 -1
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +9 -5
- package/dist/esm/components/LogisticsInterception/InterceptType.js +7 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +11 -6
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +4 -0
- package/dist/esm/components/MultSelect/index.d.ts +5 -1
- package/dist/esm/components/MultSelect/index.js +8 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +7 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +8 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -0
- package/dist/esm/components/Ordinary/index.d.ts +2 -1
- package/dist/esm/components/Ordinary/index.js +2 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayNick.js +4 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayNo.js +4 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayTime.js +11 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -0
- package/dist/esm/components/Payment/BuyerNick.js +4 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +5 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +8 -4
- package/dist/esm/components/Payment/PaymentStatus.js +7 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentTid.js +7 -0
- package/dist/esm/components/Payment/index.d.ts +24 -5
- package/dist/esm/components/Payment/index.js +2 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +2 -0
- package/dist/esm/components/PlatForm/index.d.ts +3 -1
- package/dist/esm/components/PlatForm/index.js +4 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +11 -5
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +2 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
- package/dist/esm/components/ReceiverAddress/index.js +2 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
- package/dist/esm/components/ReceiverMobile/index.js +5 -1
- package/dist/esm/components/ReceiverName/index.d.ts +2 -0
- package/dist/esm/components/ReceiverName/index.js +5 -1
- package/dist/esm/components/Remark/index.d.ts +2 -0
- package/dist/esm/components/Remark/index.js +5 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -1
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +5 -1
- package/dist/esm/components/Select/index.js +8 -2
- package/dist/esm/components/ShopInput/index.d.ts +7 -2
- package/dist/esm/components/ShopInput/index.js +17 -2
- package/dist/esm/components/ShopName/index.d.ts +2 -0
- package/dist/esm/components/ShopName/index.js +5 -1
- package/dist/esm/components/Submitter/index.d.ts +9 -4
- package/dist/esm/components/Submitter/index.js +15 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -0
- package/dist/esm/components/SystemOrderNo/index.js +8 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +4 -0
- package/dist/esm/components/TextArea/index.d.ts +2 -0
- package/dist/esm/components/TextArea/index.js +5 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
- package/dist/esm/components/ThirdItemSelect/index.js +5 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
- package/dist/esm/components/TradeDateTime/index.js +14 -2
- package/dist/esm/components/TradeId/index.d.ts +3 -0
- package/dist/esm/components/TradeId/index.js +8 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +11 -1
- package/dist/esm/constant.d.ts +14 -0
- package/dist/esm/constant.js +14 -0
- package/dist/esm/type.d.ts +8 -2
- package/package.json +4 -4
|
@@ -7,6 +7,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -16,6 +17,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
16
17
|
renderExport: (value: any, record: Record) => any;
|
|
17
18
|
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
searchDefaultConditions: "like";
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
@@ -11,6 +11,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, BasicInput);
|
|
@@ -20,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
20
21
|
_defineProperty(this, "rules", void 0);
|
|
21
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
25
|
_defineProperty(this, "children", void 0);
|
|
24
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
25
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -57,8 +59,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
57
59
|
});
|
|
58
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
61
|
return {
|
|
62
|
+
searchDefaultConditions: SYMBOL.like,
|
|
60
63
|
type: item.type,
|
|
61
|
-
id: item.id,
|
|
64
|
+
id: "".concat(item.id, "_shopName"),
|
|
62
65
|
// 过滤组件id
|
|
63
66
|
name: item.name,
|
|
64
67
|
// 过滤组件名称
|
|
@@ -76,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
76
79
|
this.componentConfig = options.componentConfig;
|
|
77
80
|
this.rules = [];
|
|
78
81
|
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
79
83
|
this.children = [];
|
|
80
84
|
});
|
|
81
85
|
export default BasicInput;
|
|
@@ -7,6 +7,7 @@ declare class Submitter implements ComponentInterface {
|
|
|
7
7
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
8
|
effects: ComponentInterface["effects"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
@@ -16,14 +17,18 @@ declare class Submitter implements ComponentInterface {
|
|
|
16
17
|
renderClient: () => null;
|
|
17
18
|
editRender: () => null;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
searchDefaultConditions: "in";
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
22
24
|
filterComponentType: "MultipleSelect";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
props: {
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
};
|
|
31
|
+
formatFilterValue: (val: Array<string>) => (string | undefined)[];
|
|
27
32
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
28
33
|
};
|
|
29
34
|
}
|
|
@@ -7,6 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
10
11
|
var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
11
12
|
var _this = this;
|
|
12
13
|
_classCallCheck(this, Submitter);
|
|
@@ -16,6 +17,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
16
17
|
_defineProperty(this, "componentConfig", void 0);
|
|
17
18
|
_defineProperty(this, "effects", void 0);
|
|
18
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
19
21
|
_defineProperty(this, "children", void 0);
|
|
20
22
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
21
23
|
var _record;
|
|
@@ -40,13 +42,24 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
40
42
|
_defineProperty(this, "filterConfig", function (item) {
|
|
41
43
|
var _this$effects;
|
|
42
44
|
return {
|
|
45
|
+
searchDefaultConditions: SYMBOL.in,
|
|
43
46
|
type: item.type,
|
|
44
47
|
id: item.id,
|
|
45
48
|
// 过滤组件id
|
|
46
49
|
name: item.name,
|
|
47
50
|
// 过滤组件名称
|
|
48
51
|
filterComponentType: 'MultipleSelect',
|
|
49
|
-
|
|
52
|
+
props: {
|
|
53
|
+
options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
|
|
54
|
+
},
|
|
55
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
56
|
+
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
57
|
+
var _this$effects2, _this$effects2$userLi, _this$effects2$userLi2;
|
|
58
|
+
return (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : (_this$effects2$userLi = _this$effects2.userList) === null || _this$effects2$userLi === void 0 ? void 0 : (_this$effects2$userLi2 = _this$effects2$userLi.find(function (u) {
|
|
59
|
+
return u.value === v;
|
|
60
|
+
})) === null || _this$effects2$userLi2 === void 0 ? void 0 : _this$effects2$userLi2.label;
|
|
61
|
+
});
|
|
62
|
+
},
|
|
50
63
|
filterFn: function filterFn(value) {
|
|
51
64
|
return function (i) {
|
|
52
65
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
@@ -59,6 +72,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
59
72
|
this.type = "OPERATOR_INPUT";
|
|
60
73
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
61
74
|
this.isCombinationComponent = false;
|
|
75
|
+
this.canSort = true;
|
|
62
76
|
this.children = [];
|
|
63
77
|
});
|
|
64
78
|
export default Submitter;
|
|
@@ -8,6 +8,7 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -17,11 +18,13 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
17
18
|
renderExport: (value: string, record: Record) => any;
|
|
18
19
|
editRender: () => React.JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "in";
|
|
20
22
|
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
24
26
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
27
|
+
formatFilterValue: (input: string) => string[];
|
|
25
28
|
};
|
|
26
29
|
}
|
|
27
30
|
export default SystemOrderNo;
|
|
@@ -11,6 +11,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, SystemOrderNo);
|
|
@@ -21,6 +22,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
21
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
23
|
_defineProperty(this, "effects", void 0);
|
|
23
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
26
|
_defineProperty(this, "children", void 0);
|
|
25
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -58,8 +60,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
58
60
|
});
|
|
59
61
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
62
|
return {
|
|
63
|
+
searchDefaultConditions: SYMBOL.in,
|
|
61
64
|
type: item.type,
|
|
62
|
-
id: item.id,
|
|
65
|
+
id: "".concat(item.id, "_systemOrderNo"),
|
|
63
66
|
// 过滤组件id
|
|
64
67
|
name: item.name,
|
|
65
68
|
// 过滤组件名称
|
|
@@ -68,6 +71,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
68
71
|
return function (i) {
|
|
69
72
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'systemOrderNo'), value);
|
|
70
73
|
};
|
|
74
|
+
},
|
|
75
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
76
|
+
return input.split(/[,|,]/);
|
|
71
77
|
}
|
|
72
78
|
};
|
|
73
79
|
});
|
|
@@ -78,6 +84,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
78
84
|
this.componentConfig = options.componentConfig;
|
|
79
85
|
this.rules = [];
|
|
80
86
|
this.isCombinationComponent = false;
|
|
87
|
+
this.canSort = true;
|
|
81
88
|
this.children = [];
|
|
82
89
|
});
|
|
83
90
|
export default SystemOrderNo;
|
|
@@ -8,6 +8,7 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -17,6 +18,7 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
17
18
|
renderClient: () => null;
|
|
18
19
|
editRender: () => null;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "in";
|
|
20
22
|
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
@@ -9,6 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import find from 'lodash/find';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
11
|
import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { SYMBOL } from "../../constant";
|
|
12
13
|
var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options) {
|
|
13
14
|
var _this = this;
|
|
14
15
|
_classCallCheck(this, TemplateSelect);
|
|
@@ -19,6 +20,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
19
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
20
21
|
_defineProperty(this, "effects", void 0);
|
|
21
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
22
24
|
_defineProperty(this, "children", void 0);
|
|
23
25
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
26
|
var _this$effects;
|
|
@@ -58,6 +60,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
58
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
61
|
var _this$effects3;
|
|
60
62
|
return {
|
|
63
|
+
searchDefaultConditions: SYMBOL.in,
|
|
61
64
|
type: item.type,
|
|
62
65
|
id: item.id,
|
|
63
66
|
// 过滤组件id
|
|
@@ -79,6 +82,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
79
82
|
this.rules = [];
|
|
80
83
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
84
|
this.isCombinationComponent = false;
|
|
85
|
+
this.canSort = true;
|
|
82
86
|
this.children = [];
|
|
83
87
|
});
|
|
84
88
|
export default TemplateSelect;
|
|
@@ -7,6 +7,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -16,6 +17,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
16
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
18
|
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
searchDefaultConditions: "like";
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
@@ -11,6 +11,7 @@ import { ApaasTextArea } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, BasicInput);
|
|
@@ -20,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
20
21
|
_defineProperty(this, "rules", void 0);
|
|
21
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
25
|
_defineProperty(this, "children", void 0);
|
|
24
26
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
25
27
|
var _record;
|
|
@@ -57,8 +59,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
57
59
|
});
|
|
58
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
61
|
return {
|
|
62
|
+
searchDefaultConditions: SYMBOL.like,
|
|
60
63
|
type: item.type,
|
|
61
|
-
id: item.id,
|
|
64
|
+
id: "".concat(item.id, "_textarea"),
|
|
62
65
|
// 过滤组件id
|
|
63
66
|
name: item.name,
|
|
64
67
|
// 过滤组件名称
|
|
@@ -76,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
76
79
|
this.componentConfig = options.componentConfig;
|
|
77
80
|
this.rules = [];
|
|
78
81
|
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
79
83
|
this.children = [];
|
|
80
84
|
});
|
|
81
85
|
export default BasicInput;
|
|
@@ -8,6 +8,7 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -17,6 +18,7 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
17
18
|
renderExport: (value: any, record: Record) => any;
|
|
18
19
|
editRender: () => React.JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "like";
|
|
20
22
|
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
@@ -12,6 +12,7 @@ import ItemEncode from "./ItemEncode";
|
|
|
12
12
|
import { GoodImage } from "../Common";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
14
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
15
16
|
var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options) {
|
|
16
17
|
var _this = this,
|
|
17
18
|
_this$componentConfig2;
|
|
@@ -23,6 +24,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
23
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
25
|
_defineProperty(this, "effects", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
28
|
_defineProperty(this, "children", void 0);
|
|
27
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
28
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -76,8 +78,9 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
76
78
|
});
|
|
77
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
78
80
|
return {
|
|
81
|
+
searchDefaultConditions: SYMBOL.like,
|
|
79
82
|
type: item.type,
|
|
80
|
-
id: item.id,
|
|
83
|
+
id: "".concat(item.id, "_itemList"),
|
|
81
84
|
// 过滤组件id
|
|
82
85
|
name: item.name,
|
|
83
86
|
// 过滤组件名称
|
|
@@ -101,6 +104,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
101
104
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
102
105
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
103
106
|
this.isCombinationComponent = false;
|
|
107
|
+
this.canSort = true;
|
|
104
108
|
this.children = [];
|
|
105
109
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
106
110
|
required: true,
|
|
@@ -13,6 +13,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
13
13
|
showContains: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
|
+
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
dataMap: Record;
|
|
18
19
|
constructor(options: PickOption);
|
|
@@ -25,11 +26,13 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
25
26
|
editRender: () => React.JSX.Element;
|
|
26
27
|
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
27
28
|
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "between";
|
|
28
30
|
type: string;
|
|
29
31
|
id: string;
|
|
30
32
|
name: string;
|
|
31
33
|
filterComponentType: "Date";
|
|
32
34
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
35
|
+
formatFilterValue: (val: Array<any>) => number[] | undefined;
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
export default BasicDataTime;
|
|
@@ -7,10 +7,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import moment from 'moment';
|
|
10
11
|
import { DateTime } from "../DataTime";
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
14
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
14
16
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
15
17
|
var _this = this;
|
|
16
18
|
_classCallCheck(this, BasicDataTime);
|
|
@@ -25,6 +27,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
25
27
|
_defineProperty(this, "showContains", void 0);
|
|
26
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
31
|
_defineProperty(this, "children", void 0);
|
|
29
32
|
_defineProperty(this, "dataMap", void 0);
|
|
30
33
|
_defineProperty(this, "render", function (value) {
|
|
@@ -89,19 +92,27 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
89
92
|
}
|
|
90
93
|
});
|
|
91
94
|
_defineProperty(this, "filterConfig", function (item) {
|
|
95
|
+
var key = _this.getKeyByComponentType(item.type);
|
|
92
96
|
return {
|
|
97
|
+
searchDefaultConditions: SYMBOL.between,
|
|
93
98
|
type: item.type,
|
|
94
|
-
id: item.id,
|
|
99
|
+
id: "".concat(item.id, "_").concat(key),
|
|
95
100
|
// 过滤组件id
|
|
96
101
|
name: item.name,
|
|
97
102
|
// 过滤组件名称
|
|
98
103
|
filterComponentType: 'Date',
|
|
99
104
|
filterFn: function filterFn(value) {
|
|
100
105
|
return function (i) {
|
|
101
|
-
var key = _this.getKeyByComponentType(item.type);
|
|
102
106
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
103
107
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
104
108
|
};
|
|
109
|
+
},
|
|
110
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
111
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
112
|
+
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
113
|
+
return moment(v).valueOf();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
105
116
|
}
|
|
106
117
|
};
|
|
107
118
|
});
|
|
@@ -116,6 +127,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
116
127
|
this.componentConfig = options.componentConfig;
|
|
117
128
|
this.rules = [];
|
|
118
129
|
this.isCombinationComponent = false;
|
|
130
|
+
this.canSort = true;
|
|
119
131
|
this.children = [];
|
|
120
132
|
this.dataMap = {
|
|
121
133
|
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
@@ -14,6 +14,7 @@ declare class ETradeId implements ComponentInterface {
|
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
|
+
canSort: boolean;
|
|
17
18
|
children: ComponentInterface[];
|
|
18
19
|
constructor(options: PickOption);
|
|
19
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -23,11 +24,13 @@ declare class ETradeId implements ComponentInterface {
|
|
|
23
24
|
renderExport: (value: unknown, record: Record) => any;
|
|
24
25
|
editRender: (value: any) => React.JSX.Element;
|
|
25
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "in";
|
|
26
28
|
type: string;
|
|
27
29
|
id: string;
|
|
28
30
|
name: string;
|
|
29
31
|
filterComponentType: "Input";
|
|
30
32
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
formatFilterValue: (input: string) => string[];
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
export default ETradeId;
|
|
@@ -11,6 +11,7 @@ import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, ETradeId);
|
|
@@ -27,6 +28,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
27
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
29
|
_defineProperty(this, "effects", void 0);
|
|
29
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "canSort", void 0);
|
|
30
32
|
_defineProperty(this, "children", void 0);
|
|
31
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -71,8 +73,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
71
73
|
});
|
|
72
74
|
_defineProperty(this, "filterConfig", function (item) {
|
|
73
75
|
return {
|
|
76
|
+
searchDefaultConditions: SYMBOL.in,
|
|
74
77
|
type: item.type,
|
|
75
|
-
id: item.id,
|
|
78
|
+
id: "".concat(item.id, "_tradeId"),
|
|
76
79
|
// 过滤组件id
|
|
77
80
|
name: item.name,
|
|
78
81
|
// 过滤组件名称
|
|
@@ -81,6 +84,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
81
84
|
return function (i) {
|
|
82
85
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
83
86
|
};
|
|
87
|
+
},
|
|
88
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
89
|
+
return input.split(/[,|,]/);
|
|
84
90
|
}
|
|
85
91
|
};
|
|
86
92
|
});
|
|
@@ -97,6 +103,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
97
103
|
this.effects = options.effects;
|
|
98
104
|
this.rules = [];
|
|
99
105
|
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = true;
|
|
100
107
|
this.children = [];
|
|
101
108
|
});
|
|
102
109
|
export default ETradeId;
|
|
@@ -8,6 +8,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
copyHandle: (text: string) => void;
|
|
@@ -18,6 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
18
19
|
renderClient: () => null;
|
|
19
20
|
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
searchDefaultConditions: "like";
|
|
21
23
|
type: string;
|
|
22
24
|
id: string;
|
|
23
25
|
name: string;
|
|
@@ -14,6 +14,7 @@ import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import repeatPng from "./img/repeat.png";
|
|
16
16
|
import copy from 'copy-to-clipboard';
|
|
17
|
+
import { SYMBOL } from "../../constant";
|
|
17
18
|
var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
18
19
|
var _this = this;
|
|
19
20
|
_classCallCheck(this, WorkOrderId);
|
|
@@ -24,6 +25,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "effects", void 0);
|
|
26
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
28
30
|
_defineProperty(this, "copyHandle", function (text) {
|
|
29
31
|
copy(text);
|
|
@@ -41,8 +43,14 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
41
43
|
},
|
|
42
44
|
alt: "",
|
|
43
45
|
onClick: function onClick() {
|
|
44
|
-
var _this$effects, _this$effects2;
|
|
46
|
+
var _this$effects, _this$effects2, _this$effects3, _this$effects4;
|
|
47
|
+
// TODO: 前端筛选时的重复提醒版本,等分享页面整改之后,这个将会废弃
|
|
45
48
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
|
|
49
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.handleOpenRepeatDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.handleOpenRepeatDetail({
|
|
50
|
+
templateId: record === null || record === void 0 ? void 0 : record.templateId,
|
|
51
|
+
workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.id,
|
|
52
|
+
fieldList: record === null || record === void 0 ? void 0 : record.repeatValueList
|
|
53
|
+
}));
|
|
46
54
|
}
|
|
47
55
|
}), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
48
56
|
onClick: function onClick() {
|
|
@@ -83,6 +91,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
83
91
|
});
|
|
84
92
|
_defineProperty(this, "filterConfig", function (item) {
|
|
85
93
|
return {
|
|
94
|
+
searchDefaultConditions: SYMBOL.like,
|
|
86
95
|
type: item.type,
|
|
87
96
|
id: item.id,
|
|
88
97
|
// 过滤组件id
|
|
@@ -103,6 +112,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
103
112
|
this.effects = options.effects;
|
|
104
113
|
this.rules = [];
|
|
105
114
|
this.isCombinationComponent = false;
|
|
115
|
+
this.canSort = true;
|
|
106
116
|
this.children = [];
|
|
107
117
|
});
|
|
108
118
|
export default WorkOrderId;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormInstance } from "antd";
|
|
3
|
+
import { SYMBOL } from './constant';
|
|
3
4
|
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
4
5
|
export declare type ALignType = "left" | "right" | "center";
|
|
6
|
+
export declare type QuerySymbol = keyof typeof SYMBOL;
|
|
5
7
|
export declare type Record = {
|
|
6
8
|
[props in string]: any;
|
|
7
9
|
};
|
|
8
10
|
export declare type FilterConfigType = {
|
|
11
|
+
searchDefaultConditions: QuerySymbol;
|
|
9
12
|
type: string;
|
|
10
13
|
id: string;
|
|
11
14
|
name: string;
|
|
12
|
-
options?: any[];
|
|
13
15
|
filterComponentType: FilterComponentType;
|
|
16
|
+
props?: Record;
|
|
14
17
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
18
|
+
formatFilterValue?: (p: any) => any;
|
|
15
19
|
};
|
|
16
|
-
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList";
|
|
20
|
+
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
|
|
17
21
|
export interface ComponentInterface {
|
|
18
22
|
id: string;
|
|
19
23
|
name: string;
|
|
20
24
|
columnHeader?: string | JSX.Element;
|
|
21
25
|
type: string;
|
|
22
26
|
isCombinationComponent: boolean;
|
|
27
|
+
canSort: boolean;
|
|
23
28
|
children: ComponentInterface[];
|
|
24
29
|
rules?: any[];
|
|
25
30
|
width?: number;
|
|
@@ -122,6 +127,7 @@ export interface ComponentInterface {
|
|
|
122
127
|
effects?: {
|
|
123
128
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
124
129
|
handleOpenRepeatList?: (r: Record) => void;
|
|
130
|
+
handleOpenRepeatDetail?: (r: Record) => void;
|
|
125
131
|
handleChangeSingleWorkOrderStatus?: (t: string, r: Record) => void;
|
|
126
132
|
templateList?: any[];
|
|
127
133
|
isEditing?: boolean;
|