@kmkf-fe-packages/services-components 0.7.3-alpha.0 → 0.7.3-alpha.10
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 +2 -1
- package/dist/esm/components/ActualPayment/index.js +4 -2
- package/dist/esm/components/Address/index.d.ts +10 -1
- package/dist/esm/components/Address/index.js +16 -2
- package/dist/esm/components/Alipay/index.d.ts +1 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
- package/dist/esm/components/AlipayAccount/index.js +3 -1
- package/dist/esm/components/AlipayName/index.d.ts +2 -1
- package/dist/esm/components/AlipayName/index.js +3 -1
- package/dist/esm/components/BuyerNick/index.d.ts +2 -1
- package/dist/esm/components/BuyerNick/index.js +3 -1
- package/dist/esm/components/Cascader/index.d.ts +10 -1
- package/dist/esm/components/Cascader/index.js +16 -2
- package/dist/esm/components/Checkbox/index.d.ts +4 -1
- package/dist/esm/components/Checkbox/index.js +9 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
- package/dist/esm/components/CommonDataTime/index.js +9 -0
- package/dist/esm/components/CompletedUser/index.d.ts +7 -4
- package/dist/esm/components/CompletedUser/index.js +5 -1
- package/dist/esm/components/DataTime/index.d.ts +5 -1
- package/dist/esm/components/DataTime/index.js +13 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
- package/dist/esm/components/EItemEnCode/index.js +4 -2
- package/dist/esm/components/EItemId/index.d.ts +2 -1
- package/dist/esm/components/EItemId/index.js +4 -2
- 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 +2 -0
- package/dist/esm/components/ErpTradeId/index.js +6 -1
- package/dist/esm/components/Express/index.d.ts +4 -1
- package/dist/esm/components/Express/index.js +5 -1
- package/dist/esm/components/ExpressCode/index.d.ts +2 -1
- package/dist/esm/components/ExpressCode/index.js +3 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -4
- package/dist/esm/components/FlowStatusSelect/index.js +10 -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 +7 -4
- package/dist/esm/components/Handler/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +2 -1
- package/dist/esm/components/Input/index.js +4 -2
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -1
- package/dist/esm/components/JstItemSelect/index.js +4 -2
- package/dist/esm/components/JstLogistics/index.d.ts +6 -3
- package/dist/esm/components/JstLogistics/index.js +6 -2
- package/dist/esm/components/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JstSendGood/index.js +4 -2
- package/dist/esm/components/JstSupply/index.d.ts +2 -1
- package/dist/esm/components/JstSupply/index.js +4 -2
- package/dist/esm/components/Logistics/index.d.ts +4 -1
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +7 -4
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +5 -1
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +7 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.js +5 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +10 -5
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -1
- package/dist/esm/components/MultSelect/index.d.ts +4 -1
- package/dist/esm/components/MultSelect/index.js +6 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -4
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +3 -1
- 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 -1
- package/dist/esm/components/Payment/AlipayNick.js +3 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +3 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayTime.js +9 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +3 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentAmount.js +3 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -4
- package/dist/esm/components/Payment/PaymentStatus.js +5 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -0
- package/dist/esm/components/Payment/PaymentTid.js +5 -0
- package/dist/esm/components/Payment/index.d.ts +8 -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 +1 -0
- package/dist/esm/components/PlatForm/index.js +2 -0
- package/dist/esm/components/Radio/index.d.ts +4 -1
- package/dist/esm/components/Radio/index.js +9 -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 +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +2 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -1
- package/dist/esm/components/ReceiverMobile/index.js +4 -2
- package/dist/esm/components/ReceiverName/index.d.ts +2 -1
- package/dist/esm/components/ReceiverName/index.js +4 -2
- package/dist/esm/components/Remark/index.d.ts +2 -1
- package/dist/esm/components/Remark/index.js +4 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -1
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +6 -2
- package/dist/esm/components/ShopInput/index.d.ts +6 -2
- package/dist/esm/components/ShopInput/index.js +15 -2
- package/dist/esm/components/ShopName/index.d.ts +2 -1
- package/dist/esm/components/ShopName/index.js +4 -2
- package/dist/esm/components/Submitter/index.d.ts +7 -4
- package/dist/esm/components/Submitter/index.js +5 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +2 -0
- package/dist/esm/components/SystemOrderNo/index.js +6 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
- package/dist/esm/components/TemplateSelect/index.js +2 -0
- package/dist/esm/components/TextArea/index.d.ts +2 -1
- package/dist/esm/components/TextArea/index.js +4 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +4 -2
- package/dist/esm/components/TradeDateTime/index.d.ts +2 -0
- package/dist/esm/components/TradeDateTime/index.js +12 -2
- package/dist/esm/components/TradeId/index.d.ts +2 -0
- package/dist/esm/components/TradeId/index.js +6 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -1
- package/dist/esm/components/WorkOrderId/index.js +10 -2
- package/dist/esm/type.d.ts +5 -2
- package/package.json +2 -2
|
@@ -21,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -58,9 +59,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
58
59
|
});
|
|
59
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
61
|
return {
|
|
61
|
-
searchDefaultConditions: SYMBOL.
|
|
62
|
+
searchDefaultConditions: SYMBOL.like,
|
|
62
63
|
type: item.type,
|
|
63
|
-
id: item.id,
|
|
64
|
+
id: "".concat(item.id, "_shopName"),
|
|
64
65
|
// 过滤组件id
|
|
65
66
|
name: item.name,
|
|
66
67
|
// 过滤组件名称
|
|
@@ -78,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
79
|
this.componentConfig = options.componentConfig;
|
|
79
80
|
this.rules = [];
|
|
80
81
|
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
81
83
|
this.children = [];
|
|
82
84
|
});
|
|
83
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;
|
|
@@ -21,10 +22,12 @@ declare class Submitter implements ComponentInterface {
|
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
23
24
|
filterComponentType: "MultipleSelect";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
props: {
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
};
|
|
28
31
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
32
|
};
|
|
30
33
|
}
|
|
@@ -17,6 +17,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
17
17
|
_defineProperty(this, "componentConfig", void 0);
|
|
18
18
|
_defineProperty(this, "effects", void 0);
|
|
19
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
20
21
|
_defineProperty(this, "children", void 0);
|
|
21
22
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
22
23
|
var _record;
|
|
@@ -48,7 +49,9 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
48
49
|
name: item.name,
|
|
49
50
|
// 过滤组件名称
|
|
50
51
|
filterComponentType: 'MultipleSelect',
|
|
51
|
-
|
|
52
|
+
props: {
|
|
53
|
+
options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
|
|
54
|
+
},
|
|
52
55
|
filterFn: function filterFn(value) {
|
|
53
56
|
return function (i) {
|
|
54
57
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
@@ -61,6 +64,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
61
64
|
this.type = "OPERATOR_INPUT";
|
|
62
65
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
63
66
|
this.isCombinationComponent = false;
|
|
67
|
+
this.canSort = true;
|
|
64
68
|
this.children = [];
|
|
65
69
|
});
|
|
66
70
|
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;
|
|
@@ -23,6 +24,7 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
23
24
|
name: string;
|
|
24
25
|
filterComponentType: "Input";
|
|
25
26
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
27
|
+
formatFilterValue: (input: string) => string[];
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
export default SystemOrderNo;
|
|
@@ -22,6 +22,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "effects", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
26
|
_defineProperty(this, "children", void 0);
|
|
26
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -61,7 +62,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
61
62
|
return {
|
|
62
63
|
searchDefaultConditions: SYMBOL.in,
|
|
63
64
|
type: item.type,
|
|
64
|
-
id: item.id,
|
|
65
|
+
id: "".concat(item.id, "_systemOrderNo"),
|
|
65
66
|
// 过滤组件id
|
|
66
67
|
name: item.name,
|
|
67
68
|
// 过滤组件名称
|
|
@@ -70,6 +71,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
70
71
|
return function (i) {
|
|
71
72
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'systemOrderNo'), value);
|
|
72
73
|
};
|
|
74
|
+
},
|
|
75
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
76
|
+
return input.split(/[,|,]/);
|
|
73
77
|
}
|
|
74
78
|
};
|
|
75
79
|
});
|
|
@@ -80,6 +84,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
80
84
|
this.componentConfig = options.componentConfig;
|
|
81
85
|
this.rules = [];
|
|
82
86
|
this.isCombinationComponent = false;
|
|
87
|
+
this.canSort = true;
|
|
83
88
|
this.children = [];
|
|
84
89
|
});
|
|
85
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;
|
|
@@ -20,6 +20,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
20
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
21
|
_defineProperty(this, "effects", void 0);
|
|
22
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
24
|
_defineProperty(this, "children", void 0);
|
|
24
25
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
25
26
|
var _this$effects;
|
|
@@ -81,6 +82,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
81
82
|
this.rules = [];
|
|
82
83
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
83
84
|
this.isCombinationComponent = false;
|
|
85
|
+
this.canSort = true;
|
|
84
86
|
this.children = [];
|
|
85
87
|
});
|
|
86
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,7 +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) => {
|
|
19
|
-
searchDefaultConditions: "
|
|
20
|
+
searchDefaultConditions: "like";
|
|
20
21
|
type: string;
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
@@ -21,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
26
27
|
var _record;
|
|
@@ -58,9 +59,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
58
59
|
});
|
|
59
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
61
|
return {
|
|
61
|
-
searchDefaultConditions: SYMBOL.
|
|
62
|
+
searchDefaultConditions: SYMBOL.like,
|
|
62
63
|
type: item.type,
|
|
63
|
-
id: item.id,
|
|
64
|
+
id: "".concat(item.id, "_textarea"),
|
|
64
65
|
// 过滤组件id
|
|
65
66
|
name: item.name,
|
|
66
67
|
// 过滤组件名称
|
|
@@ -78,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
79
|
this.componentConfig = options.componentConfig;
|
|
79
80
|
this.rules = [];
|
|
80
81
|
this.isCombinationComponent = false;
|
|
82
|
+
this.canSort = true;
|
|
81
83
|
this.children = [];
|
|
82
84
|
});
|
|
83
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,7 +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) => {
|
|
20
|
-
searchDefaultConditions: "
|
|
21
|
+
searchDefaultConditions: "like";
|
|
21
22
|
type: string;
|
|
22
23
|
id: string;
|
|
23
24
|
name: string;
|
|
@@ -24,6 +24,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
24
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
25
|
_defineProperty(this, "effects", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
28
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -77,9 +78,9 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
77
78
|
});
|
|
78
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
79
80
|
return {
|
|
80
|
-
searchDefaultConditions: SYMBOL.
|
|
81
|
+
searchDefaultConditions: SYMBOL.like,
|
|
81
82
|
type: item.type,
|
|
82
|
-
id: item.id,
|
|
83
|
+
id: "".concat(item.id, "_itemList"),
|
|
83
84
|
// 过滤组件id
|
|
84
85
|
name: item.name,
|
|
85
86
|
// 过滤组件名称
|
|
@@ -103,6 +104,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
103
104
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
104
105
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
105
106
|
this.isCombinationComponent = false;
|
|
107
|
+
this.canSort = true;
|
|
106
108
|
this.children = [];
|
|
107
109
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
108
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);
|
|
@@ -31,6 +32,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
31
32
|
name: string;
|
|
32
33
|
filterComponentType: "Date";
|
|
33
34
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
35
|
+
formatFilterValue: (val: Array<any>) => number[] | undefined;
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
export default BasicDataTime;
|
|
@@ -7,6 +7,7 @@ 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";
|
|
@@ -26,6 +27,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
26
27
|
_defineProperty(this, "showContains", void 0);
|
|
27
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
29
31
|
_defineProperty(this, "children", void 0);
|
|
30
32
|
_defineProperty(this, "dataMap", void 0);
|
|
31
33
|
_defineProperty(this, "render", function (value) {
|
|
@@ -90,20 +92,27 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
90
92
|
}
|
|
91
93
|
});
|
|
92
94
|
_defineProperty(this, "filterConfig", function (item) {
|
|
95
|
+
var key = _this.getKeyByComponentType(item.type);
|
|
93
96
|
return {
|
|
94
97
|
searchDefaultConditions: SYMBOL.between,
|
|
95
98
|
type: item.type,
|
|
96
|
-
id: item.id,
|
|
99
|
+
id: "".concat(item.id, "_").concat(key),
|
|
97
100
|
// 过滤组件id
|
|
98
101
|
name: item.name,
|
|
99
102
|
// 过滤组件名称
|
|
100
103
|
filterComponentType: 'Date',
|
|
101
104
|
filterFn: function filterFn(value) {
|
|
102
105
|
return function (i) {
|
|
103
|
-
var key = _this.getKeyByComponentType(item.type);
|
|
104
106
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
105
107
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
106
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
|
+
}
|
|
107
116
|
}
|
|
108
117
|
};
|
|
109
118
|
});
|
|
@@ -118,6 +127,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
118
127
|
this.componentConfig = options.componentConfig;
|
|
119
128
|
this.rules = [];
|
|
120
129
|
this.isCombinationComponent = false;
|
|
130
|
+
this.canSort = true;
|
|
121
131
|
this.children = [];
|
|
122
132
|
this.dataMap = {
|
|
123
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;
|
|
@@ -29,6 +30,7 @@ declare class ETradeId implements ComponentInterface {
|
|
|
29
30
|
name: string;
|
|
30
31
|
filterComponentType: "Input";
|
|
31
32
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
formatFilterValue: (input: string) => string[];
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export default ETradeId;
|
|
@@ -28,6 +28,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
28
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
29
|
_defineProperty(this, "effects", void 0);
|
|
30
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
32
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -74,7 +75,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
74
75
|
return {
|
|
75
76
|
searchDefaultConditions: SYMBOL.in,
|
|
76
77
|
type: item.type,
|
|
77
|
-
id: item.id,
|
|
78
|
+
id: "".concat(item.id, "_tradeId"),
|
|
78
79
|
// 过滤组件id
|
|
79
80
|
name: item.name,
|
|
80
81
|
// 过滤组件名称
|
|
@@ -83,6 +84,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
83
84
|
return function (i) {
|
|
84
85
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
85
86
|
};
|
|
87
|
+
},
|
|
88
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
89
|
+
return input.split(/[,|,]/);
|
|
86
90
|
}
|
|
87
91
|
};
|
|
88
92
|
});
|
|
@@ -99,6 +103,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
99
103
|
this.effects = options.effects;
|
|
100
104
|
this.rules = [];
|
|
101
105
|
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = true;
|
|
102
107
|
this.children = [];
|
|
103
108
|
});
|
|
104
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,7 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
18
19
|
renderClient: () => null;
|
|
19
20
|
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
-
searchDefaultConditions: "
|
|
22
|
+
searchDefaultConditions: "like";
|
|
22
23
|
type: string;
|
|
23
24
|
id: string;
|
|
24
25
|
name: string;
|
|
@@ -25,6 +25,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "copyHandle", function (text) {
|
|
30
31
|
copy(text);
|
|
@@ -42,8 +43,14 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
42
43
|
},
|
|
43
44
|
alt: "",
|
|
44
45
|
onClick: function onClick() {
|
|
45
|
-
var _this$effects, _this$effects2;
|
|
46
|
+
var _this$effects, _this$effects2, _this$effects3, _this$effects4;
|
|
47
|
+
// TODO: 前端筛选时的重复提醒版本,等分享页面整改之后,这个将会废弃
|
|
46
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
|
+
}));
|
|
47
54
|
}
|
|
48
55
|
}), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
49
56
|
onClick: function onClick() {
|
|
@@ -84,7 +91,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
84
91
|
});
|
|
85
92
|
_defineProperty(this, "filterConfig", function (item) {
|
|
86
93
|
return {
|
|
87
|
-
searchDefaultConditions: SYMBOL.
|
|
94
|
+
searchDefaultConditions: SYMBOL.like,
|
|
88
95
|
type: item.type,
|
|
89
96
|
id: item.id,
|
|
90
97
|
// 过滤组件id
|
|
@@ -105,6 +112,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
105
112
|
this.effects = options.effects;
|
|
106
113
|
this.rules = [];
|
|
107
114
|
this.isCombinationComponent = false;
|
|
115
|
+
this.canSort = true;
|
|
108
116
|
this.children = [];
|
|
109
117
|
});
|
|
110
118
|
export default WorkOrderId;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -12,17 +12,19 @@ export declare type FilterConfigType = {
|
|
|
12
12
|
type: string;
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
|
-
options?: any[];
|
|
16
15
|
filterComponentType: FilterComponentType;
|
|
16
|
+
props?: Record;
|
|
17
17
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
18
|
+
formatFilterValue?: (p: any) => any;
|
|
18
19
|
};
|
|
19
|
-
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList";
|
|
20
|
+
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
|
|
20
21
|
export interface ComponentInterface {
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
23
24
|
columnHeader?: string | JSX.Element;
|
|
24
25
|
type: string;
|
|
25
26
|
isCombinationComponent: boolean;
|
|
27
|
+
canSort: boolean;
|
|
26
28
|
children: ComponentInterface[];
|
|
27
29
|
rules?: any[];
|
|
28
30
|
width?: number;
|
|
@@ -125,6 +127,7 @@ export interface ComponentInterface {
|
|
|
125
127
|
effects?: {
|
|
126
128
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
127
129
|
handleOpenRepeatList?: (r: Record) => void;
|
|
130
|
+
handleOpenRepeatDetail?: (r: Record) => void;
|
|
128
131
|
handleChangeSingleWorkOrderStatus?: (t: string, r: Record) => void;
|
|
129
132
|
templateList?: any[];
|
|
130
133
|
isEditing?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.3-alpha.
|
|
3
|
+
"version": "0.7.3-alpha.10",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9cea615899fe576d73a86cf1872fcde20441b245"
|
|
44
44
|
}
|