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