@kmkf-fe-packages/services-components 0.7.8-alpha.2 → 0.7.9
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 +11 -1
- package/dist/esm/components/ActualPayment/index.js +65 -2
- package/dist/esm/components/Address/index.d.ts +21 -3
- package/dist/esm/components/Address/index.js +35 -3
- package/dist/esm/components/Alipay/index.d.ts +3 -0
- package/dist/esm/components/Alipay/index.js +4 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -0
- package/dist/esm/components/AlipayAccount/index.js +6 -0
- package/dist/esm/components/AlipayName/index.d.ts +3 -0
- package/dist/esm/components/AlipayName/index.js +6 -0
- package/dist/esm/components/BuyerNick/index.d.ts +3 -0
- package/dist/esm/components/BuyerNick/index.js +6 -0
- package/dist/esm/components/Cascader/index.d.ts +12 -1
- package/dist/esm/components/Cascader/index.js +35 -8
- package/dist/esm/components/Checkbox/index.d.ts +6 -1
- package/dist/esm/components/Checkbox/index.js +13 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +6 -2
- package/dist/esm/components/CommonDataTime/index.js +23 -4
- package/dist/esm/components/CompletedUser/index.d.ts +9 -4
- package/dist/esm/components/CompletedUser/index.js +9 -1
- package/dist/esm/components/DataTime/index.d.ts +3 -8
- package/dist/esm/components/DataTime/index.js +25 -4
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -0
- package/dist/esm/components/EItemEnCode/index.js +7 -1
- package/dist/esm/components/EItemId/index.d.ts +3 -0
- package/dist/esm/components/EItemId/index.js +7 -1
- package/dist/esm/components/EItemSelect/index.d.ts +2 -0
- package/dist/esm/components/EItemSelect/index.js +4 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/index.js +10 -1
- package/dist/esm/components/Express/index.d.ts +6 -1
- package/dist/esm/components/Express/index.js +9 -1
- package/dist/esm/components/ExpressCode/index.d.ts +3 -0
- package/dist/esm/components/ExpressCode/index.js +6 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +9 -4
- package/dist/esm/components/FlowStatusSelect/index.js +14 -6
- package/dist/esm/components/Grade/index.d.ts +2 -0
- package/dist/esm/components/Grade/index.js +4 -0
- package/dist/esm/components/Handler/index.d.ts +9 -4
- package/dist/esm/components/Handler/index.js +9 -1
- package/dist/esm/components/Input/index.d.ts +3 -0
- package/dist/esm/components/Input/index.js +7 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -0
- package/dist/esm/components/JstItemSelect/index.js +23 -15
- package/dist/esm/components/JstLogistics/index.d.ts +8 -2
- package/dist/esm/components/JstLogistics/index.js +10 -1
- package/dist/esm/components/JstSendGood/index.d.ts +3 -0
- package/dist/esm/components/JstSendGood/index.js +7 -0
- package/dist/esm/components/JstSupply/index.d.ts +3 -0
- package/dist/esm/components/JstSupply/index.js +7 -0
- package/dist/esm/components/Logistics/index.d.ts +7 -1
- package/dist/esm/components/Logistics/index.js +4 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +11 -5
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +18 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +11 -5
- package/dist/esm/components/LogisticsInterception/InterceptType.js +18 -4
- package/dist/esm/components/LogisticsInterception/index.d.ts +15 -5
- package/dist/esm/components/LogisticsInterception/index.js +4 -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 +6 -1
- package/dist/esm/components/MultSelect/index.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +9 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +67 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +6 -0
- package/dist/esm/components/Ordinary/index.d.ts +19 -2
- package/dist/esm/components/Ordinary/index.js +4 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayNick.js +6 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayNo.js +6 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +6 -2
- package/dist/esm/components/Payment/AlipayTime.js +23 -6
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -0
- package/dist/esm/components/Payment/BuyerNick.js +6 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -1
- package/dist/esm/components/Payment/PaymentAmount.js +64 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +9 -4
- package/dist/esm/components/Payment/PaymentStatus.js +9 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +4 -0
- package/dist/esm/components/Payment/PaymentTid.js +9 -0
- package/dist/esm/components/Payment/index.d.ts +41 -4
- package/dist/esm/components/Payment/index.js +4 -0
- package/dist/esm/components/Picture/index.d.ts +2 -0
- package/dist/esm/components/Picture/index.js +4 -0
- package/dist/esm/components/PlatForm/index.d.ts +4 -1
- package/dist/esm/components/PlatForm/index.js +6 -0
- package/dist/esm/components/Radio/index.d.ts +6 -1
- package/dist/esm/components/Radio/index.js +13 -5
- package/dist/esm/components/Rate/index.d.ts +2 -0
- package/dist/esm/components/Rate/index.js +4 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
- package/dist/esm/components/ReceiverAddress/index.js +4 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -0
- package/dist/esm/components/ReceiverMobile/index.js +7 -1
- package/dist/esm/components/ReceiverName/index.d.ts +3 -0
- package/dist/esm/components/ReceiverName/index.js +7 -1
- package/dist/esm/components/Remark/index.d.ts +3 -0
- package/dist/esm/components/Remark/index.js +7 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -1
- package/dist/esm/components/ReturnLogistics/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +6 -1
- package/dist/esm/components/Select/index.js +10 -2
- package/dist/esm/components/ShopInput/index.d.ts +8 -2
- package/dist/esm/components/ShopInput/index.js +19 -2
- package/dist/esm/components/ShopName/index.d.ts +3 -0
- package/dist/esm/components/ShopName/index.js +7 -1
- package/dist/esm/components/Submitter/index.d.ts +10 -4
- package/dist/esm/components/Submitter/index.js +17 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +4 -0
- package/dist/esm/components/SystemOrderNo/index.js +10 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
- package/dist/esm/components/TemplateSelect/index.js +6 -0
- package/dist/esm/components/TextArea/index.d.ts +3 -0
- package/dist/esm/components/TextArea/index.js +7 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -0
- package/dist/esm/components/ThirdItemSelect/index.js +7 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +4 -0
- package/dist/esm/components/TradeDateTime/index.js +16 -2
- package/dist/esm/components/TradeId/index.d.ts +4 -0
- package/dist/esm/components/TradeId/index.js +10 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -0
- package/dist/esm/components/WorkOrderId/index.js +15 -3
- package/dist/esm/constant.d.ts +14 -0
- package/dist/esm/constant.js +14 -0
- package/dist/esm/type.d.ts +10 -2
- package/package.json +4 -4
|
@@ -4,11 +4,13 @@ import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
4
4
|
declare class PlatForm implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
|
+
sortField: string;
|
|
7
8
|
type: string;
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
10
12
|
children: ComponentInterface[];
|
|
11
|
-
platInstance: PlatData
|
|
13
|
+
platInstance: InstanceType<typeof PlatData>;
|
|
12
14
|
constructor();
|
|
13
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
14
16
|
renderExport: (value: any, record: Record) => string;
|
|
@@ -17,6 +19,7 @@ declare class PlatForm implements ComponentInterface {
|
|
|
17
19
|
renderClient: () => null;
|
|
18
20
|
editRender: () => null;
|
|
19
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
searchDefaultConditions: "in";
|
|
20
23
|
type: string;
|
|
21
24
|
id: string;
|
|
22
25
|
name: string;
|
|
@@ -7,14 +7,17 @@ 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 { PlatData, filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
10
11
|
var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
11
12
|
var _this = this;
|
|
12
13
|
_classCallCheck(this, PlatForm);
|
|
13
14
|
_defineProperty(this, "name", void 0);
|
|
14
15
|
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
15
17
|
_defineProperty(this, "type", void 0);
|
|
16
18
|
_defineProperty(this, "componentConfig", void 0);
|
|
17
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
18
21
|
_defineProperty(this, "children", void 0);
|
|
19
22
|
_defineProperty(this, "platInstance", void 0);
|
|
20
23
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -43,6 +46,7 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
43
46
|
_defineProperty(this, "filterConfig", function (item) {
|
|
44
47
|
var platData = _this.platInstance.getPlatSelectList();
|
|
45
48
|
return {
|
|
49
|
+
searchDefaultConditions: SYMBOL.in,
|
|
46
50
|
type: item.type,
|
|
47
51
|
id: item.id,
|
|
48
52
|
// 过滤组件id
|
|
@@ -60,7 +64,9 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
60
64
|
this.name = "平台";
|
|
61
65
|
this.id = "platform";
|
|
62
66
|
this.type = "PLATFORM_INPUT";
|
|
67
|
+
this.sortField = 'platform';
|
|
63
68
|
this.isCombinationComponent = false;
|
|
69
|
+
this.canSort = false;
|
|
64
70
|
this.children = [];
|
|
65
71
|
this.platInstance = PlatData.getInstance();
|
|
66
72
|
});
|
|
@@ -7,10 +7,12 @@ declare type Value = {
|
|
|
7
7
|
declare class BasicRadio implements ComponentInterface {
|
|
8
8
|
name: string;
|
|
9
9
|
id: string;
|
|
10
|
+
sortField: string;
|
|
10
11
|
type: string;
|
|
11
12
|
rules: any[];
|
|
12
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
14
|
isCombinationComponent: boolean;
|
|
15
|
+
canSort: boolean;
|
|
14
16
|
children: ComponentInterface[];
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
render: (value: Value) => React.JSX.Element;
|
|
@@ -24,11 +26,14 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
24
26
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
25
27
|
editRender: () => React.JSX.Element;
|
|
26
28
|
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "in";
|
|
27
30
|
type: string;
|
|
28
31
|
id: string;
|
|
29
32
|
name: string;
|
|
30
33
|
filterComponentType: "MultipleSelect";
|
|
31
|
-
|
|
34
|
+
props: {
|
|
35
|
+
options: any[] | undefined;
|
|
36
|
+
};
|
|
32
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
38
|
};
|
|
34
39
|
}
|
|
@@ -11,16 +11,19 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
import get from 'lodash/get';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
15
16
|
var _this = this,
|
|
16
17
|
_this$componentConfig3;
|
|
17
18
|
_classCallCheck(this, BasicRadio);
|
|
18
19
|
_defineProperty(this, "name", void 0);
|
|
19
20
|
_defineProperty(this, "id", void 0);
|
|
21
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
22
|
_defineProperty(this, "type", void 0);
|
|
21
23
|
_defineProperty(this, "rules", void 0);
|
|
22
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
27
|
_defineProperty(this, "children", void 0);
|
|
25
28
|
_defineProperty(this, "render", function (value) {
|
|
26
29
|
var _value$value;
|
|
@@ -68,16 +71,19 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
68
71
|
_defineProperty(this, "filterConfig", function (item) {
|
|
69
72
|
var _item$config, _item$config2, _item$config2$options, _item$config3;
|
|
70
73
|
return {
|
|
74
|
+
searchDefaultConditions: SYMBOL.in,
|
|
71
75
|
type: item.type,
|
|
72
|
-
id: item.id,
|
|
76
|
+
id: "".concat(item.id, "_radio"),
|
|
73
77
|
// 过滤组件id
|
|
74
78
|
name: item.name,
|
|
75
79
|
// 过滤组件名称
|
|
76
80
|
filterComponentType: 'MultipleSelect',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
props: {
|
|
82
|
+
options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
|
|
83
|
+
label: '其他',
|
|
84
|
+
value: '其他'
|
|
85
|
+
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
|
|
86
|
+
},
|
|
81
87
|
filterFn: function filterFn(value) {
|
|
82
88
|
return function (i) {
|
|
83
89
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'radio'));
|
|
@@ -89,6 +95,8 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
89
95
|
this.id = options.id;
|
|
90
96
|
this.type = options.type;
|
|
91
97
|
this.isCombinationComponent = false;
|
|
98
|
+
this.canSort = true;
|
|
99
|
+
this.sortField = "".concat(options.id, "_radio");
|
|
92
100
|
this.children = [];
|
|
93
101
|
this.componentConfig = options.componentConfig;
|
|
94
102
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
@@ -8,6 +8,7 @@ declare type Value = {
|
|
|
8
8
|
declare class BasicRate implements ComponentInterface {
|
|
9
9
|
name: string;
|
|
10
10
|
id: string;
|
|
11
|
+
sortField: string;
|
|
11
12
|
type: string;
|
|
12
13
|
rules: any[];
|
|
13
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
@@ -15,6 +16,7 @@ declare class BasicRate implements ComponentInterface {
|
|
|
15
16
|
[prop in number]: string;
|
|
16
17
|
};
|
|
17
18
|
isCombinationComponent: boolean;
|
|
19
|
+
canSort: boolean;
|
|
18
20
|
children: ComponentInterface[];
|
|
19
21
|
constructor(options: PickOption);
|
|
20
22
|
render: (value: Value) => React.JSX.Element;
|
|
@@ -17,11 +17,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
17
17
|
_classCallCheck(this, BasicRate);
|
|
18
18
|
_defineProperty(this, "name", void 0);
|
|
19
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
21
|
_defineProperty(this, "type", void 0);
|
|
21
22
|
_defineProperty(this, "rules", void 0);
|
|
22
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
24
|
_defineProperty(this, "rateMap", void 0);
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
27
|
_defineProperty(this, "children", void 0);
|
|
26
28
|
_defineProperty(this, "render", function (value) {
|
|
27
29
|
return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
@@ -121,9 +123,11 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
121
123
|
});
|
|
122
124
|
this.name = options.name;
|
|
123
125
|
this.id = options.id;
|
|
126
|
+
this.sortField = "".concat(options.id, "_rate");
|
|
124
127
|
this.type = options.type;
|
|
125
128
|
this.componentConfig = options.componentConfig;
|
|
126
129
|
this.isCombinationComponent = false;
|
|
130
|
+
this.canSort = true;
|
|
127
131
|
this.children = [];
|
|
128
132
|
this.rules = [];
|
|
129
133
|
this.rateMap = {
|
|
@@ -8,13 +8,15 @@ declare type Value = {
|
|
|
8
8
|
declare class BasicInput implements ComponentInterface {
|
|
9
9
|
name: string;
|
|
10
10
|
id: string;
|
|
11
|
+
sortField: string;
|
|
11
12
|
type: string;
|
|
12
13
|
rules: any[];
|
|
13
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
15
|
effects: ComponentInterface["effects"];
|
|
15
16
|
isCombinationComponent: boolean;
|
|
17
|
+
canSort: boolean;
|
|
16
18
|
children: ComponentInterface[];
|
|
17
|
-
addressDateInstance: AddressData
|
|
19
|
+
addressDateInstance: InstanceType<typeof AddressData>;
|
|
18
20
|
constructor(options: PickOption);
|
|
19
21
|
render: (value: Value) => React.JSX.Element;
|
|
20
22
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
@@ -18,11 +18,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
18
18
|
_classCallCheck(this, BasicInput);
|
|
19
19
|
_defineProperty(this, "name", void 0);
|
|
20
20
|
_defineProperty(this, "id", void 0);
|
|
21
|
+
_defineProperty(this, "sortField", void 0);
|
|
21
22
|
_defineProperty(this, "type", void 0);
|
|
22
23
|
_defineProperty(this, "rules", void 0);
|
|
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, "addressDateInstance", void 0);
|
|
28
30
|
_defineProperty(this, "render", function (value) {
|
|
@@ -104,9 +106,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
104
106
|
});
|
|
105
107
|
this.name = options.name;
|
|
106
108
|
this.id = options.id;
|
|
109
|
+
this.sortField = options.id;
|
|
107
110
|
this.type = options.type;
|
|
108
111
|
this.componentConfig = options.componentConfig;
|
|
109
112
|
this.isCombinationComponent = false;
|
|
113
|
+
this.canSort = false;
|
|
110
114
|
this.children = [];
|
|
111
115
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
112
116
|
validator: function validator(_, value) {
|
|
@@ -3,11 +3,13 @@ import React from 'react';
|
|
|
3
3
|
declare class ReceiverMobile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
effects: ComponentInterface["effects"];
|
|
10
11
|
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
11
13
|
children: ComponentInterface[];
|
|
12
14
|
constructor(options: PickOption);
|
|
13
15
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -17,6 +19,7 @@ declare class ReceiverMobile implements ComponentInterface {
|
|
|
17
19
|
renderExport: (value: any, record: Record) => any;
|
|
18
20
|
editRender: (value: any) => React.JSX.Element;
|
|
19
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
searchDefaultConditions: "eq";
|
|
20
23
|
type: string;
|
|
21
24
|
id: string;
|
|
22
25
|
name: string;
|
|
@@ -11,16 +11,19 @@ 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 ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, ReceiverMobile);
|
|
17
18
|
_defineProperty(this, "name", void 0);
|
|
18
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
21
|
_defineProperty(this, "type", void 0);
|
|
20
22
|
_defineProperty(this, "rules", void 0);
|
|
21
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
24
|
_defineProperty(this, "effects", void 0);
|
|
23
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
27
|
_defineProperty(this, "children", void 0);
|
|
25
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -68,8 +71,9 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
68
71
|
});
|
|
69
72
|
_defineProperty(this, "filterConfig", function (item) {
|
|
70
73
|
return {
|
|
74
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
71
75
|
type: item.type,
|
|
72
|
-
id: item.id,
|
|
76
|
+
id: "".concat(item.id, "_receiveMobile"),
|
|
73
77
|
// 过滤组件id
|
|
74
78
|
name: item.name,
|
|
75
79
|
// 过滤组件名称
|
|
@@ -83,11 +87,13 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
83
87
|
});
|
|
84
88
|
this.name = options.name;
|
|
85
89
|
this.id = options.id;
|
|
90
|
+
this.sortField = "".concat(options.id, "_receiveMobile");
|
|
86
91
|
this.type = options.type;
|
|
87
92
|
this.componentConfig = options.componentConfig;
|
|
88
93
|
this.rules = [];
|
|
89
94
|
this.effects = options.effects;
|
|
90
95
|
this.isCombinationComponent = false;
|
|
96
|
+
this.canSort = true;
|
|
91
97
|
this.children = [];
|
|
92
98
|
});
|
|
93
99
|
export default ReceiverMobile;
|
|
@@ -3,11 +3,13 @@ import React from 'react';
|
|
|
3
3
|
declare class ReceiverName implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
effects: ComponentInterface["effects"];
|
|
10
11
|
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
11
13
|
children: ComponentInterface[];
|
|
12
14
|
constructor(options: PickOption);
|
|
13
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -17,6 +19,7 @@ declare class ReceiverName implements ComponentInterface {
|
|
|
17
19
|
renderExport: (value: any, record: Record) => any;
|
|
18
20
|
editRender: () => React.JSX.Element;
|
|
19
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
searchDefaultConditions: "eq";
|
|
20
23
|
type: string;
|
|
21
24
|
id: string;
|
|
22
25
|
name: string;
|
|
@@ -11,16 +11,19 @@ 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 ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, ReceiverName);
|
|
17
18
|
_defineProperty(this, "name", void 0);
|
|
18
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
21
|
_defineProperty(this, "type", void 0);
|
|
20
22
|
_defineProperty(this, "rules", void 0);
|
|
21
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
24
|
_defineProperty(this, "effects", void 0);
|
|
23
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
27
|
_defineProperty(this, "children", void 0);
|
|
25
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -65,8 +68,9 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
65
68
|
});
|
|
66
69
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
70
|
return {
|
|
71
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
68
72
|
type: item.type,
|
|
69
|
-
id: item.id,
|
|
73
|
+
id: "".concat(item.id, "_receiveName"),
|
|
70
74
|
// 过滤组件id
|
|
71
75
|
name: item.name,
|
|
72
76
|
// 过滤组件名称
|
|
@@ -80,11 +84,13 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
80
84
|
});
|
|
81
85
|
this.name = options.name;
|
|
82
86
|
this.id = options.id;
|
|
87
|
+
this.sortField = "".concat(options.id, "_receiveName");
|
|
83
88
|
this.type = options.type;
|
|
84
89
|
this.componentConfig = options.componentConfig;
|
|
85
90
|
this.rules = [];
|
|
86
91
|
this.effects = options.effects;
|
|
87
92
|
this.isCombinationComponent = false;
|
|
93
|
+
this.canSort = true;
|
|
88
94
|
this.children = [];
|
|
89
95
|
});
|
|
90
96
|
export default ReceiverName;
|
|
@@ -7,12 +7,14 @@ declare type Value = {
|
|
|
7
7
|
declare class ERemark implements ComponentInterface {
|
|
8
8
|
name: string;
|
|
9
9
|
id: string;
|
|
10
|
+
sortField: string;
|
|
10
11
|
type: string;
|
|
11
12
|
rules: any[];
|
|
12
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
14
|
imgList: any[];
|
|
14
15
|
flagColors: string[];
|
|
15
16
|
isCombinationComponent: boolean;
|
|
17
|
+
canSort: boolean;
|
|
16
18
|
children: ComponentInterface[];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
render: (value: Value) => React.JSX.Element;
|
|
@@ -26,6 +28,7 @@ declare class ERemark implements ComponentInterface {
|
|
|
26
28
|
renderExport: (value: unknown, record: Record) => any;
|
|
27
29
|
editRender: () => React.JSX.Element;
|
|
28
30
|
filterConfig: (item: ColumnConfig) => {
|
|
31
|
+
searchDefaultConditions: "like";
|
|
29
32
|
type: string;
|
|
30
33
|
id: string;
|
|
31
34
|
name: string;
|
|
@@ -17,18 +17,21 @@ import trade5 from "./flag/trade-icon-flag-5.png";
|
|
|
17
17
|
import get from 'lodash/get';
|
|
18
18
|
import ItemView from "../../commonComponents/ItemView";
|
|
19
19
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
|
+
import { SYMBOL } from "../../constant";
|
|
20
21
|
var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
21
22
|
var _this = this,
|
|
22
23
|
_this$componentConfig3;
|
|
23
24
|
_classCallCheck(this, ERemark);
|
|
24
25
|
_defineProperty(this, "name", void 0);
|
|
25
26
|
_defineProperty(this, "id", void 0);
|
|
27
|
+
_defineProperty(this, "sortField", void 0);
|
|
26
28
|
_defineProperty(this, "type", void 0);
|
|
27
29
|
_defineProperty(this, "rules", void 0);
|
|
28
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
31
|
_defineProperty(this, "imgList", void 0);
|
|
30
32
|
_defineProperty(this, "flagColors", void 0);
|
|
31
33
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
|
+
_defineProperty(this, "canSort", void 0);
|
|
32
35
|
_defineProperty(this, "children", void 0);
|
|
33
36
|
_defineProperty(this, "render", function (value) {
|
|
34
37
|
var index = get(value, 'flag');
|
|
@@ -84,8 +87,9 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
84
87
|
});
|
|
85
88
|
_defineProperty(this, "filterConfig", function (item) {
|
|
86
89
|
return {
|
|
90
|
+
searchDefaultConditions: SYMBOL.like,
|
|
87
91
|
type: item.type,
|
|
88
|
-
id: item.id,
|
|
92
|
+
id: "".concat(item.id, "_remark"),
|
|
89
93
|
// 过滤组件id
|
|
90
94
|
name: item.name,
|
|
91
95
|
// 过滤组件名称
|
|
@@ -99,6 +103,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
99
103
|
});
|
|
100
104
|
this.name = options.name;
|
|
101
105
|
this.id = options.id;
|
|
106
|
+
this.sortField = "".concat(options.id, "_remark");
|
|
102
107
|
this.type = options.type;
|
|
103
108
|
this.componentConfig = options.componentConfig;
|
|
104
109
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
@@ -116,6 +121,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
116
121
|
this.imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
117
122
|
this.flagColors = ['gray', 'red', 'yellow', 'green', 'blue', 'purple'];
|
|
118
123
|
this.isCombinationComponent = false;
|
|
124
|
+
this.canSort = true;
|
|
119
125
|
this.children = [];
|
|
120
126
|
});
|
|
121
127
|
export default ERemark;
|
|
@@ -6,6 +6,7 @@ import ExpressCode from '../ExpressCode';
|
|
|
6
6
|
declare class ReturnLogistics implements ComponentInterface {
|
|
7
7
|
name: string;
|
|
8
8
|
id: string;
|
|
9
|
+
sortField: string;
|
|
9
10
|
type: string;
|
|
10
11
|
rules: any[];
|
|
11
12
|
canFilter: boolean;
|
|
@@ -18,6 +19,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
18
19
|
express: Express;
|
|
19
20
|
expressCode: ExpressCode;
|
|
20
21
|
isCombinationComponent: boolean;
|
|
22
|
+
canSort: boolean;
|
|
21
23
|
children: ComponentInterface[];
|
|
22
24
|
constructor(options: PickOption);
|
|
23
25
|
renderClient: (record: any) => React.JSX.Element;
|
|
@@ -30,13 +32,17 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
30
32
|
renderExport: () => null;
|
|
31
33
|
editRender: (value: any) => React.JSX.Element;
|
|
32
34
|
filterConfig: (item: ColumnConfig) => ({
|
|
35
|
+
searchDefaultConditions: "in";
|
|
33
36
|
type: string;
|
|
34
37
|
id: string;
|
|
35
38
|
name: string;
|
|
36
39
|
filterComponentType: "MultipleSelect";
|
|
37
|
-
|
|
40
|
+
props: {
|
|
41
|
+
options: any[];
|
|
42
|
+
};
|
|
38
43
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
39
44
|
} | {
|
|
45
|
+
searchDefaultConditions: "like";
|
|
40
46
|
type: string;
|
|
41
47
|
id: string;
|
|
42
48
|
name: string;
|
|
@@ -20,6 +20,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
20
20
|
_classCallCheck(this, ReturnLogistics);
|
|
21
21
|
_defineProperty(this, "name", void 0);
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
23
24
|
_defineProperty(this, "type", void 0);
|
|
24
25
|
_defineProperty(this, "rules", void 0);
|
|
25
26
|
_defineProperty(this, "canFilter", void 0);
|
|
@@ -32,6 +33,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
32
33
|
_defineProperty(this, "express", void 0);
|
|
33
34
|
_defineProperty(this, "expressCode", void 0);
|
|
34
35
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
36
|
+
_defineProperty(this, "canSort", void 0);
|
|
35
37
|
_defineProperty(this, "children", void 0);
|
|
36
38
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
39
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
|
|
@@ -73,6 +75,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
73
75
|
});
|
|
74
76
|
this.name = options.name;
|
|
75
77
|
this.id = options.id;
|
|
78
|
+
this.sortField = options.id;
|
|
76
79
|
this.type = options.type;
|
|
77
80
|
this.canFilter = false;
|
|
78
81
|
this.canGroup = false;
|
|
@@ -90,6 +93,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
90
93
|
id: "".concat(options.id, "_returnLogisticsCode")
|
|
91
94
|
}));
|
|
92
95
|
this.isCombinationComponent = true;
|
|
96
|
+
this.canSort = false;
|
|
93
97
|
this.children = [this.express, this.expressCode];
|
|
94
98
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
95
99
|
validator: function validator(_, value) {
|
|
@@ -3,10 +3,12 @@ import React from 'react';
|
|
|
3
3
|
declare class BasicSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
10
12
|
children: ComponentInterface[];
|
|
11
13
|
constructor(options: PickOption);
|
|
12
14
|
editRender: () => React.JSX.Element;
|
|
@@ -16,11 +18,14 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
16
18
|
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: any, record: Record) => any;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "in";
|
|
19
22
|
type: string;
|
|
20
23
|
id: string;
|
|
21
24
|
name: string;
|
|
22
25
|
filterComponentType: "MultipleSelect";
|
|
23
|
-
|
|
26
|
+
props: {
|
|
27
|
+
options: any[];
|
|
28
|
+
};
|
|
24
29
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
30
|
};
|
|
26
31
|
}
|
|
@@ -11,15 +11,18 @@ import { ApaasSelect } 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 BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, BasicSelect);
|
|
17
18
|
_defineProperty(this, "name", void 0);
|
|
18
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
21
|
_defineProperty(this, "type", void 0);
|
|
20
22
|
_defineProperty(this, "rules", void 0);
|
|
21
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
26
|
_defineProperty(this, "children", void 0);
|
|
24
27
|
_defineProperty(this, "editRender", function () {
|
|
25
28
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -59,13 +62,16 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
59
62
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
63
|
var _item$config;
|
|
61
64
|
return {
|
|
65
|
+
searchDefaultConditions: SYMBOL.in,
|
|
62
66
|
type: item.type,
|
|
63
|
-
id: item.id,
|
|
67
|
+
id: "".concat(item.id, "_select"),
|
|
64
68
|
// 过滤组件id
|
|
65
69
|
name: item.name,
|
|
66
70
|
// 过滤组件名称
|
|
67
71
|
filterComponentType: 'MultipleSelect',
|
|
68
|
-
|
|
72
|
+
props: {
|
|
73
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
74
|
+
},
|
|
69
75
|
filterFn: function filterFn(value) {
|
|
70
76
|
return function (i) {
|
|
71
77
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'select'));
|
|
@@ -75,10 +81,12 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
75
81
|
});
|
|
76
82
|
this.name = options.name;
|
|
77
83
|
this.id = options.id;
|
|
84
|
+
this.sortField = "".concat(options.id, "_select");
|
|
78
85
|
this.type = options.type;
|
|
79
86
|
this.componentConfig = options.componentConfig;
|
|
80
87
|
this.rules = [];
|
|
81
88
|
this.isCombinationComponent = false;
|
|
89
|
+
this.canSort = true;
|
|
82
90
|
this.children = [];
|
|
83
91
|
});
|
|
84
92
|
export default BasicSelect;
|
|
@@ -3,10 +3,12 @@ import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type
|
|
|
3
3
|
declare class ShopInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
9
|
effects: ComponentInterface["effects"];
|
|
9
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
10
12
|
children: ComponentInterface[];
|
|
11
13
|
constructor(options: PickOption);
|
|
12
14
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
@@ -16,13 +18,17 @@ declare class ShopInput implements ComponentInterface {
|
|
|
16
18
|
renderClient: () => null;
|
|
17
19
|
editRender: () => null;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "in";
|
|
19
22
|
type: string;
|
|
20
23
|
id: string;
|
|
21
24
|
name: string;
|
|
22
25
|
filterComponentType: "ShopList";
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
props: {
|
|
27
|
+
shopList: any[];
|
|
28
|
+
mode: string;
|
|
29
|
+
};
|
|
25
30
|
filterFn: (value: string) => (i: Record) => boolean | undefined;
|
|
31
|
+
formatFilterValue: (shopList: Array<string>) => any[];
|
|
26
32
|
};
|
|
27
33
|
}
|
|
28
34
|
export default ShopInput;
|