@kmkf-fe-packages/services-components 0.5.2-alpha.1 → 0.5.2-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/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/components/ActualPayment/index.d.ts +7 -1
- package/dist/esm/components/ActualPayment/index.js +15 -1
- package/dist/esm/components/Address/index.d.ts +3 -2
- package/dist/esm/components/Address/index.js +6 -3
- package/dist/esm/components/Alipay/index.d.ts +7 -1
- package/dist/esm/components/Alipay/index.js +3 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +7 -1
- package/dist/esm/components/AlipayAccount/index.js +13 -1
- package/dist/esm/components/AlipayName/index.d.ts +7 -1
- package/dist/esm/components/AlipayName/index.js +13 -1
- package/dist/esm/components/BuyerNick/index.d.ts +7 -1
- package/dist/esm/components/BuyerNick/index.js +15 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -1
- package/dist/esm/components/Cascader/index.js +18 -1
- package/dist/esm/components/Checkbox/index.d.ts +8 -1
- package/dist/esm/components/Checkbox/index.js +21 -1
- package/dist/esm/components/CommonDataTime/index.d.ts +7 -1
- package/dist/esm/components/CommonDataTime/index.js +16 -1
- package/dist/esm/components/CompletedUser/index.d.ts +28 -0
- package/dist/esm/components/CompletedUser/index.js +60 -0
- package/dist/esm/components/DataTime/index.d.ts +8 -1
- package/dist/esm/components/DataTime/index.js +18 -1
- package/dist/esm/components/EItemEnCode/index.d.ts +7 -1
- package/dist/esm/components/EItemEnCode/index.js +19 -1
- package/dist/esm/components/EItemId/index.d.ts +7 -1
- package/dist/esm/components/EItemId/index.js +19 -1
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +3 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +7 -1
- package/dist/esm/components/ErpTradeId/index.js +15 -1
- package/dist/esm/components/Express/index.d.ts +8 -1
- package/dist/esm/components/Express/index.js +15 -1
- package/dist/esm/components/ExpressCode/index.d.ts +7 -1
- package/dist/esm/components/ExpressCode/index.js +14 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +11 -1
- package/dist/esm/components/FlowStatusSelect/index.js +22 -0
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +3 -0
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +64 -0
- package/dist/esm/components/Input/index.d.ts +7 -1
- package/dist/esm/components/Input/index.js +15 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +7 -1
- package/dist/esm/components/JstItemSelect/index.js +32 -1
- package/dist/esm/components/JstLogistics/index.d.ts +14 -1
- package/dist/esm/components/JstLogistics/index.js +28 -1
- package/dist/esm/components/JstSendGood/index.d.ts +7 -1
- package/dist/esm/components/JstSendGood/index.js +32 -1
- package/dist/esm/components/JstSupply/index.d.ts +7 -1
- package/dist/esm/components/JstSupply/index.js +32 -1
- package/dist/esm/components/Logistics/index.d.ts +12 -1
- package/dist/esm/components/Logistics/index.js +7 -0
- package/dist/esm/components/MultSelect/index.d.ts +8 -1
- package/dist/esm/components/MultSelect/index.js +18 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +13 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +13 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +13 -1
- package/dist/esm/components/Ordinary/index.d.ts +7 -1
- package/dist/esm/components/Ordinary/index.js +5 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +7 -1
- package/dist/esm/components/Payment/AlipayNick.js +13 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +7 -1
- package/dist/esm/components/Payment/AlipayNo.js +13 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +7 -1
- package/dist/esm/components/Payment/AlipayTime.js +14 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +7 -1
- package/dist/esm/components/Payment/BuyerNick.js +13 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -1
- package/dist/esm/components/Payment/PaymentAmount.js +13 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +15 -1
- package/dist/esm/components/Payment/PaymentStatus.js +37 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +7 -1
- package/dist/esm/components/Payment/PaymentTid.js +13 -1
- package/dist/esm/components/Payment/index.d.ts +16 -1
- package/dist/esm/components/Payment/index.js +5 -0
- package/dist/esm/components/Picture/index.d.ts +5 -0
- package/dist/esm/components/Picture/index.js +3 -0
- package/dist/esm/components/PlatForm/index.d.ts +26 -0
- package/dist/esm/components/PlatForm/index.js +62 -0
- package/dist/esm/components/Radio/index.d.ts +8 -1
- package/dist/esm/components/Radio/index.js +20 -1
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +3 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +3 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +7 -1
- package/dist/esm/components/ReceiverMobile/index.js +15 -1
- package/dist/esm/components/ReceiverName/index.d.ts +7 -1
- package/dist/esm/components/ReceiverName/index.js +15 -1
- package/dist/esm/components/Remark/index.d.ts +7 -1
- package/dist/esm/components/Remark/index.js +15 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +12 -1
- package/dist/esm/components/ReturnLogistics/index.js +7 -0
- package/dist/esm/components/Select/index.d.ts +8 -1
- package/dist/esm/components/Select/index.js +17 -1
- package/dist/esm/components/ShopInput/index.d.ts +26 -0
- package/dist/esm/components/ShopInput/index.js +71 -0
- package/dist/esm/components/ShopName/index.d.ts +7 -1
- package/dist/esm/components/ShopName/index.js +15 -1
- package/dist/esm/components/Submitter/index.d.ts +28 -0
- package/dist/esm/components/Submitter/index.js +60 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +7 -1
- package/dist/esm/components/SystemOrderNo/index.js +15 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +8 -1
- package/dist/esm/components/TemplateSelect/index.js +17 -0
- package/dist/esm/components/TextArea/index.d.ts +7 -1
- package/dist/esm/components/TextArea/index.js +15 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -1
- package/dist/esm/components/ThirdItemSelect/index.js +21 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +8 -1
- package/dist/esm/components/TradeDateTime/index.js +31 -1
- package/dist/esm/components/TradeId/index.d.ts +7 -1
- package/dist/esm/components/TradeId/index.js +15 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +7 -1
- package/dist/esm/components/WorkOrderId/index.js +15 -0
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/type.d.ts +29 -0
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
11
|
import { JstGoodImage } from "../Common";
|
|
12
12
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
16
16
|
var _this = this,
|
|
17
17
|
_this$componentConfig;
|
|
@@ -63,6 +63,37 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
63
63
|
}))
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
return [{
|
|
68
|
+
id: "".concat(item.id, "_sendName"),
|
|
69
|
+
name: "jst\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
70
|
+
filterComponentType: 'Input',
|
|
71
|
+
filterFn: function filterFn(value) {
|
|
72
|
+
return function (i) {
|
|
73
|
+
var _ref;
|
|
74
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
75
|
+
var _String;
|
|
76
|
+
var name = item !== null && item !== void 0 && item.sendName ? (_String = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
77
|
+
return name;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
id: "".concat(item.id, "_sendId"),
|
|
83
|
+
name: "jst\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
84
|
+
filterComponentType: 'Input',
|
|
85
|
+
filterFn: function filterFn(value) {
|
|
86
|
+
return function (i) {
|
|
87
|
+
var _ref2;
|
|
88
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
89
|
+
var _String2;
|
|
90
|
+
var id = item !== null && item !== void 0 && item.sendId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
91
|
+
return id;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
66
97
|
this.name = options.name;
|
|
67
98
|
this.id = options.id;
|
|
68
99
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class JstSupply implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -15,5 +15,11 @@ declare class JstSupply implements ComponentInterface {
|
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
16
|
renderExport: (value: any, record: any) => any;
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "Input";
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
23
|
+
}[];
|
|
18
24
|
}
|
|
19
25
|
export default JstSupply;
|
|
@@ -11,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
11
|
import { JstGoodImage } from "../Common";
|
|
12
12
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
16
16
|
var _this = this,
|
|
17
17
|
_this$componentConfig;
|
|
@@ -63,6 +63,37 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
63
63
|
}))
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
return [{
|
|
68
|
+
id: "".concat(item.id, "_supplyName"),
|
|
69
|
+
name: "jst\u4F9B\u9500\u5546\u540D\u79F0",
|
|
70
|
+
filterComponentType: 'Input',
|
|
71
|
+
filterFn: function filterFn(value) {
|
|
72
|
+
return function (i) {
|
|
73
|
+
var _ref;
|
|
74
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
75
|
+
var _String;
|
|
76
|
+
var name = item !== null && item !== void 0 && item.supplyName ? (_String = String(item === null || item === void 0 ? void 0 : item.supplyName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
77
|
+
return name;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
id: "".concat(item.id, "_supplyId"),
|
|
83
|
+
name: "jst\u4F9B\u9500\u5546\u7F16\u7801",
|
|
84
|
+
filterComponentType: 'Input',
|
|
85
|
+
filterFn: function filterFn(value) {
|
|
86
|
+
return function (i) {
|
|
87
|
+
var _ref2;
|
|
88
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
89
|
+
var _String2;
|
|
90
|
+
var id = item !== null && item !== void 0 && item.supplyId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplyId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
91
|
+
return id;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
66
97
|
this.name = options.name;
|
|
67
98
|
this.id = options.id;
|
|
68
99
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
import Express from '../Express';
|
|
5
5
|
import ExpressCode from '../ExpressCode';
|
|
@@ -20,5 +20,16 @@ declare class Logistics implements ComponentInterface {
|
|
|
20
20
|
renderClient: (record: Record) => JSX.Element;
|
|
21
21
|
renderPc: () => null;
|
|
22
22
|
renderExport: () => null;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
filterComponentType: "MultipleSelect";
|
|
27
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "Input";
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
})[];
|
|
23
34
|
}
|
|
24
35
|
export default Logistics;
|
|
@@ -53,6 +53,13 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
53
53
|
_defineProperty(this, "renderExport", function () {
|
|
54
54
|
return null;
|
|
55
55
|
});
|
|
56
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
57
|
+
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
58
|
+
subKey: 'expressLogisticsCompany'
|
|
59
|
+
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
60
|
+
subKey: 'expressLogisticsCode'
|
|
61
|
+
}))];
|
|
62
|
+
});
|
|
56
63
|
this.name = options.name;
|
|
57
64
|
this.id = options.id;
|
|
58
65
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare type Value = string[];
|
|
4
4
|
declare class BasicMultSelect implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -15,5 +15,12 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
16
|
renderExport: (value: any, record: Record) => any;
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "MultipleSelect";
|
|
22
|
+
options: any[];
|
|
23
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
|
+
};
|
|
18
25
|
}
|
|
19
26
|
export default BasicMultSelect;
|
|
@@ -7,10 +7,11 @@ 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 intersection from 'lodash/intersection';
|
|
10
11
|
import { ApaasMultipleSelect } from '@kmkf-fe-packages/basic-components';
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
15
|
var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, BasicMultSelect);
|
|
@@ -57,6 +58,22 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
57
58
|
}))
|
|
58
59
|
});
|
|
59
60
|
});
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
var _item$config;
|
|
63
|
+
return {
|
|
64
|
+
id: item.id,
|
|
65
|
+
// 过滤组件id
|
|
66
|
+
name: item.name,
|
|
67
|
+
// 过滤组件名称
|
|
68
|
+
filterComponentType: 'MultipleSelect',
|
|
69
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
|
|
70
|
+
filterFn: function filterFn(value) {
|
|
71
|
+
return function (i) {
|
|
72
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
});
|
|
60
77
|
this.name = options.name;
|
|
61
78
|
this.id = options.id;
|
|
62
79
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class OrdinaryHeader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class OrdinaryHeader implements ComponentInterface {
|
|
|
17
17
|
renderPc: (value: any) => any;
|
|
18
18
|
renderExport: (value: any) => any;
|
|
19
19
|
editRender: () => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default OrdinaryHeader;
|
|
@@ -10,7 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import Header from "../OrdinaryHeader";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options) {
|
|
15
15
|
var _this = this;
|
|
16
16
|
_classCallCheck(this, OrdinaryHeader);
|
|
@@ -56,6 +56,18 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
56
56
|
}))
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
60
|
+
return {
|
|
61
|
+
id: "".concat(item.id, "_ordinaryMoney"),
|
|
62
|
+
name: "".concat(item.name, "-\u5F00\u7968\u91D1\u989D"),
|
|
63
|
+
filterComponentType: 'Input',
|
|
64
|
+
filterFn: function filterFn(value) {
|
|
65
|
+
return function (i) {
|
|
66
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryMoney')).includes(value);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
});
|
|
59
71
|
this.name = '发票抬头';
|
|
60
72
|
this.id = "".concat(options.id, "_ordinaryTaitou");
|
|
61
73
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class OrdinaryMoney implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class OrdinaryMoney implements ComponentInterface {
|
|
|
17
17
|
renderExport: (value: any) => any;
|
|
18
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
19
19
|
editRender: () => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default OrdinaryMoney;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import GetFormItem from "../GetFormItem";
|
|
10
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, OrdinaryMoney);
|
|
@@ -49,6 +49,18 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
49
49
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
53
|
+
return {
|
|
54
|
+
id: "".concat(item.id, "_ordinaryTaitou"),
|
|
55
|
+
name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
|
|
56
|
+
filterComponentType: 'Input',
|
|
57
|
+
filterFn: function filterFn(value) {
|
|
58
|
+
return function (i) {
|
|
59
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryTaitou')).includes(value);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
});
|
|
52
64
|
this.name = '开票金额';
|
|
53
65
|
this.id = "".concat(options.id, "_ordinaryMoney");
|
|
54
66
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, ALignType } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare class OrdinarySerial implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -22,5 +22,11 @@ declare class OrdinarySerial implements ComponentInterface {
|
|
|
22
22
|
renderPc: (value: any) => any;
|
|
23
23
|
renderExport: (value: any) => any;
|
|
24
24
|
editRender: () => JSX.Element;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Input";
|
|
29
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
};
|
|
25
31
|
}
|
|
26
32
|
export default OrdinarySerial;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import GetFormItem from "../GetFormItem";
|
|
10
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, OrdinarySerial);
|
|
@@ -54,6 +54,18 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
54
54
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
58
|
+
return {
|
|
59
|
+
id: "".concat(item.id, "_ordinarySerial"),
|
|
60
|
+
name: "".concat(item.name, "-\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7"),
|
|
61
|
+
filterComponentType: 'Input',
|
|
62
|
+
filterFn: function filterFn(value) {
|
|
63
|
+
return function (i) {
|
|
64
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinarySerial')).includes(value);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
});
|
|
57
69
|
this.name = '纳税人识别号';
|
|
58
70
|
this.id = "".concat(options.id, "_ordinarySerial");
|
|
59
71
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ColumnConfig } from '../../type';
|
|
3
3
|
import OrdinaryHeader from './OrdinaryHeader';
|
|
4
4
|
import OrdinaryMoney from './OrdinaryMoney';
|
|
5
5
|
import OrdinarySerial from './OrdinarySerial';
|
|
@@ -25,5 +25,11 @@ declare class Ordinary implements ComponentInterface {
|
|
|
25
25
|
renderPc: () => null;
|
|
26
26
|
renderExport: () => null;
|
|
27
27
|
renderClient: (record: any) => JSX.Element;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "Input";
|
|
32
|
+
filterFn: (value: string) => (i: import("../../type").Record) => boolean;
|
|
33
|
+
}[];
|
|
28
34
|
}
|
|
29
35
|
export default Ordinary;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -52,6 +54,9 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
52
54
|
_defineProperty(this, "renderClient", function (record) {
|
|
53
55
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.ordinaryMoney.renderClient(record), _this.ordinaryHeader.renderClient(record), _this.ordinarySerial.renderClient(record));
|
|
54
56
|
});
|
|
57
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
58
|
+
return [_this.ordinaryMoney.filterConfig(_objectSpread({}, item)), _this.ordinaryHeader.filterConfig(_objectSpread({}, item)), _this.ordinarySerial.filterConfig(_objectSpread({}, item))];
|
|
59
|
+
});
|
|
55
60
|
this.name = options.name;
|
|
56
61
|
this.id = options.id;
|
|
57
62
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentTid implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
17
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
18
|
renderExport: (value: any, record: Record) => any;
|
|
19
19
|
editRender: () => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default PaymentTid;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, PaymentTid);
|
|
@@ -58,6 +58,18 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
58
58
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
return {
|
|
63
|
+
id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
|
|
64
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNick')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
});
|
|
61
73
|
this.name = '支付宝姓名';
|
|
62
74
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
|
|
63
75
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class AlipayNo implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class AlipayNo implements ComponentInterface {
|
|
|
17
17
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
18
18
|
renderExport: (value: any, record: Record) => any;
|
|
19
19
|
editRender: () => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default AlipayNo;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, AlipayNo);
|
|
@@ -58,6 +58,18 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
58
58
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
return {
|
|
63
|
+
id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
|
|
64
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNo')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
});
|
|
61
73
|
this.name = '支付宝账号';
|
|
62
74
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
|
|
63
75
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class AlipayTime implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -16,5 +16,11 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
16
16
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
17
17
|
renderExport: (value: string) => string | null;
|
|
18
18
|
editRender: () => JSX.Element;
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
filterComponentType: "Input";
|
|
23
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
24
|
+
};
|
|
19
25
|
}
|
|
20
26
|
export default AlipayTime;
|
|
@@ -10,7 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
15
15
|
var _this = this;
|
|
16
16
|
_classCallCheck(this, AlipayTime);
|
|
@@ -56,6 +56,19 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
56
56
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
60
|
+
return {
|
|
61
|
+
id: "".concat(item.id, "_enterprisePaymentTime"),
|
|
62
|
+
name: "".concat(item.name, "-\u6253\u6B3E\u65F6\u95F4"),
|
|
63
|
+
filterComponentType: 'Input',
|
|
64
|
+
filterFn: function filterFn(value) {
|
|
65
|
+
return function (i) {
|
|
66
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTime');
|
|
67
|
+
return _filterFn.dateFilterFn(value, recordDateTime);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
});
|
|
59
72
|
this.name = '打款时间';
|
|
60
73
|
this.id = "".concat(options.id, "_enterprisePaymentTime");
|
|
61
74
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class BuyerNick implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
18
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
19
|
renderExport: (value: string) => string;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default BuyerNick;
|
|
@@ -16,7 +16,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
18
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
19
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
19
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
20
|
var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
21
21
|
var _this = this;
|
|
22
22
|
_classCallCheck(this, BuyerNick);
|
|
@@ -75,6 +75,18 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
75
75
|
_defineProperty(this, "renderExport", function (value) {
|
|
76
76
|
return value !== null && value !== void 0 ? value : '--';
|
|
77
77
|
});
|
|
78
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
79
|
+
return {
|
|
80
|
+
id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
|
|
81
|
+
name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
|
|
82
|
+
filterComponentType: 'Input',
|
|
83
|
+
filterFn: function filterFn(value) {
|
|
84
|
+
return function (i) {
|
|
85
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentBuyerNick')).includes(value);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
});
|
|
78
90
|
this.name = '买家昵称';
|
|
79
91
|
this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
80
92
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentAmount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -16,5 +16,11 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
16
16
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
17
17
|
renderExport: (value: string) => string;
|
|
18
18
|
editRender: () => JSX.Element;
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
filterComponentType: "Input";
|
|
23
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
|
+
};
|
|
19
25
|
}
|
|
20
26
|
export default PaymentAmount;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, PaymentAmount);
|
|
@@ -48,6 +48,18 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
48
48
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
52
|
+
return {
|
|
53
|
+
id: "".concat(item.id, "_enterprisePaymentRefundFee"),
|
|
54
|
+
name: "".concat(item.name, "-\u6253\u6B3E\u91D1\u989D"),
|
|
55
|
+
filterComponentType: 'Input',
|
|
56
|
+
filterFn: function filterFn(value) {
|
|
57
|
+
return function (i) {
|
|
58
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentRefundFee')).includes(value);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
});
|
|
51
63
|
this.name = '打款金额';
|
|
52
64
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
53
65
|
this.type = options.type;
|