@kmkf-fe-packages/services-components 0.7.8 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/ActualPayment/index.d.ts +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 +25 -8
- 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
|
@@ -11,32 +11,39 @@ import moment from 'moment';
|
|
|
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 AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, AlipayTime);
|
|
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, "align", void 0);
|
|
23
25
|
_defineProperty(this, "width", void 0);
|
|
24
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
28
|
_defineProperty(this, "children", void 0);
|
|
26
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
28
31
|
id: _this.id,
|
|
29
32
|
label: _this.name,
|
|
30
|
-
value: record !== null && record !== void 0 && record[_this.id] ? moment(
|
|
33
|
+
value: record !== null && record !== void 0 && record[_this.id] ? moment(record === null || record === void 0 ? void 0 : record[_this.id]).format('YYYY-MM-DD HH:mm:ss') : '--'
|
|
31
34
|
}) : null;
|
|
32
35
|
});
|
|
33
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
var _record;
|
|
38
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
39
|
+
// if (record?.[this.id] === undefined) {
|
|
40
|
+
// return <span>--</span>;
|
|
41
|
+
// }
|
|
42
|
+
// return (
|
|
43
|
+
// <span className="pointer">
|
|
44
|
+
// {record?.[this.id] ? moment(+record?.[this.id]).format('YYYY-MM-DD HH:mm:ss') : '--'}
|
|
45
|
+
// </span>
|
|
46
|
+
// );
|
|
40
47
|
});
|
|
41
48
|
_defineProperty(this, "renderLog", function (r) {
|
|
42
49
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
@@ -46,7 +53,7 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
46
53
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
47
54
|
});
|
|
48
55
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
|
-
return value ? moment(
|
|
56
|
+
return value ? moment(value).format('YYYY-MM-DD HH:mm:ss') : null;
|
|
50
57
|
});
|
|
51
58
|
_defineProperty(this, "editRender", function () {
|
|
52
59
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -60,6 +67,7 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
60
67
|
});
|
|
61
68
|
_defineProperty(this, "filterConfig", function (item) {
|
|
62
69
|
return {
|
|
70
|
+
searchDefaultConditions: SYMBOL.between,
|
|
63
71
|
type: item.type,
|
|
64
72
|
id: "".concat(item.id, "_enterprisePaymentTime"),
|
|
65
73
|
name: "".concat(item.name, "-\u6253\u6B3E\u65F6\u95F4"),
|
|
@@ -69,17 +77,26 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
69
77
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTime');
|
|
70
78
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
71
79
|
};
|
|
80
|
+
},
|
|
81
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
82
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
83
|
+
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
84
|
+
return moment(v).startOf('second').valueOf();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
72
87
|
}
|
|
73
88
|
};
|
|
74
89
|
});
|
|
75
90
|
this.name = '打款时间';
|
|
76
91
|
this.id = "".concat(options.id, "_enterprisePaymentTime");
|
|
92
|
+
this.sortField = "".concat(options.id, "_enterprisePaymentTime");
|
|
77
93
|
this.type = options.type;
|
|
78
94
|
this.componentConfig = options.componentConfig;
|
|
79
95
|
this.rules = [];
|
|
80
96
|
this.align = 'left';
|
|
81
97
|
this.width = 200;
|
|
82
98
|
this.isCombinationComponent = false;
|
|
99
|
+
this.canSort = true;
|
|
83
100
|
this.children = [];
|
|
84
101
|
});
|
|
85
102
|
export default AlipayTime;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
declare class BuyerNick 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"];
|
|
@@ -10,6 +11,7 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
10
11
|
align: ALignType;
|
|
11
12
|
width: number;
|
|
12
13
|
isCombinationComponent: boolean;
|
|
14
|
+
canSort: boolean;
|
|
13
15
|
children: ComponentInterface[];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -19,6 +21,7 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
19
21
|
getComponentValue: (r: Record) => any;
|
|
20
22
|
renderExport: (value: string) => string;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
22
25
|
type: string;
|
|
23
26
|
id: string;
|
|
24
27
|
name: string;
|
|
@@ -17,11 +17,13 @@ import GetFormItem from "../GetFormItem";
|
|
|
17
17
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
18
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
19
19
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
|
+
import { SYMBOL } from "../../constant";
|
|
20
21
|
var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
21
22
|
var _this = this;
|
|
22
23
|
_classCallCheck(this, BuyerNick);
|
|
23
24
|
_defineProperty(this, "name", void 0);
|
|
24
25
|
_defineProperty(this, "id", void 0);
|
|
26
|
+
_defineProperty(this, "sortField", void 0);
|
|
25
27
|
_defineProperty(this, "type", void 0);
|
|
26
28
|
_defineProperty(this, "rules", void 0);
|
|
27
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -29,6 +31,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
29
31
|
_defineProperty(this, "align", void 0);
|
|
30
32
|
_defineProperty(this, "width", 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, "renderClient", function (record) {
|
|
34
37
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -83,6 +86,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
83
86
|
});
|
|
84
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
85
88
|
return {
|
|
89
|
+
searchDefaultConditions: SYMBOL.like,
|
|
86
90
|
type: item.type,
|
|
87
91
|
id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
|
|
88
92
|
name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
|
|
@@ -96,6 +100,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
96
100
|
});
|
|
97
101
|
this.name = '买家昵称';
|
|
98
102
|
this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
103
|
+
this.sortField = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
99
104
|
this.type = options.type;
|
|
100
105
|
this.componentConfig = options.componentConfig;
|
|
101
106
|
this.effects = options.effects;
|
|
@@ -103,6 +108,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
103
108
|
this.align = 'left';
|
|
104
109
|
this.width = 200;
|
|
105
110
|
this.isCombinationComponent = false;
|
|
111
|
+
this.canSort = true;
|
|
106
112
|
this.children = [];
|
|
107
113
|
});
|
|
108
114
|
export default BuyerNick;
|
|
@@ -3,12 +3,14 @@ import React from 'react';
|
|
|
3
3
|
declare class PaymentAmount 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
|
align: ALignType;
|
|
10
11
|
width: number;
|
|
11
12
|
isCombinationComponent: boolean;
|
|
13
|
+
canSort: boolean;
|
|
12
14
|
children: ComponentInterface[];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -18,10 +20,18 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
18
20
|
renderExport: (value: string) => string;
|
|
19
21
|
editRender: () => React.JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
searchDefaultConditions: "between";
|
|
21
24
|
type: string;
|
|
22
25
|
id: string;
|
|
23
26
|
name: string;
|
|
24
|
-
filterComponentType: "
|
|
27
|
+
filterComponentType: "Rate";
|
|
28
|
+
rules: {
|
|
29
|
+
validator: (_: any, value: Array<number>) => Promise<void>;
|
|
30
|
+
}[];
|
|
31
|
+
props: {
|
|
32
|
+
placeholder: string[];
|
|
33
|
+
};
|
|
34
|
+
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
25
35
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
36
|
};
|
|
27
37
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2
5
|
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
6
|
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
7
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -10,17 +13,20 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
13
|
import GetFormItem from "../GetFormItem";
|
|
11
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
13
17
|
var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
14
18
|
var _this = this;
|
|
15
19
|
_classCallCheck(this, PaymentAmount);
|
|
16
20
|
_defineProperty(this, "name", void 0);
|
|
17
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
23
|
_defineProperty(this, "type", void 0);
|
|
19
24
|
_defineProperty(this, "rules", void 0);
|
|
20
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
26
|
_defineProperty(this, "align", void 0);
|
|
22
27
|
_defineProperty(this, "width", void 0);
|
|
23
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
30
|
_defineProperty(this, "children", void 0);
|
|
25
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -55,10 +61,65 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
55
61
|
});
|
|
56
62
|
_defineProperty(this, "filterConfig", function (item) {
|
|
57
63
|
return {
|
|
64
|
+
searchDefaultConditions: SYMBOL.between,
|
|
58
65
|
type: item.type,
|
|
59
66
|
id: "".concat(item.id, "_enterprisePaymentRefundFee"),
|
|
60
67
|
name: "".concat(item.name, "-\u6253\u6B3E\u91D1\u989D"),
|
|
61
|
-
filterComponentType: '
|
|
68
|
+
filterComponentType: 'Rate',
|
|
69
|
+
rules: [{
|
|
70
|
+
validator: function () {
|
|
71
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
72
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
73
|
+
while (1) switch (_context.prev = _context.next) {
|
|
74
|
+
case 0:
|
|
75
|
+
if (!((value === null || value === void 0 ? void 0 : value.length) > 0)) {
|
|
76
|
+
_context.next = 7;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
if (!(value !== null && value !== void 0 && value.every(function (v) {
|
|
80
|
+
return isNull(v);
|
|
81
|
+
}))) {
|
|
82
|
+
_context.next = 3;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
return _context.abrupt("return", Promise.resolve());
|
|
86
|
+
case 3:
|
|
87
|
+
if (!(value !== null && value !== void 0 && value.some(function (v) {
|
|
88
|
+
return isNull(v);
|
|
89
|
+
}))) {
|
|
90
|
+
_context.next = 5;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
|
|
94
|
+
case 5:
|
|
95
|
+
if (!(value[0] > value[1])) {
|
|
96
|
+
_context.next = 7;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
|
|
100
|
+
case 7:
|
|
101
|
+
case "end":
|
|
102
|
+
return _context.stop();
|
|
103
|
+
}
|
|
104
|
+
}, _callee);
|
|
105
|
+
}));
|
|
106
|
+
function validator(_x, _x2) {
|
|
107
|
+
return _validator.apply(this, arguments);
|
|
108
|
+
}
|
|
109
|
+
return validator;
|
|
110
|
+
}()
|
|
111
|
+
}],
|
|
112
|
+
props: {
|
|
113
|
+
placeholder: ['始-打款金额', '终-打款金额']
|
|
114
|
+
},
|
|
115
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
116
|
+
if (val !== null && val !== void 0 && val.some(function (v) {
|
|
117
|
+
return isNull(v);
|
|
118
|
+
})) {
|
|
119
|
+
return [];
|
|
120
|
+
}
|
|
121
|
+
return val;
|
|
122
|
+
},
|
|
62
123
|
filterFn: function filterFn(value) {
|
|
63
124
|
return function (i) {
|
|
64
125
|
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentRefundFee')).includes(value);
|
|
@@ -68,9 +129,11 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
68
129
|
});
|
|
69
130
|
this.name = '打款金额';
|
|
70
131
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
132
|
+
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
71
133
|
this.type = options.type;
|
|
72
134
|
this.componentConfig = options.componentConfig;
|
|
73
135
|
this.isCombinationComponent = false;
|
|
136
|
+
this.canSort = true;
|
|
74
137
|
this.children = [];
|
|
75
138
|
this.rules = [{
|
|
76
139
|
validator: function validator(_, value) {
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
declare class PaymentStatus 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"];
|
|
@@ -16,6 +17,7 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
16
17
|
value: string;
|
|
17
18
|
}[];
|
|
18
19
|
isCombinationComponent: boolean;
|
|
20
|
+
canSort: boolean;
|
|
19
21
|
children: ComponentInterface[];
|
|
20
22
|
constructor(options: PickOption);
|
|
21
23
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -25,14 +27,17 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
25
27
|
renderExport: (value: any) => any;
|
|
26
28
|
editRender: () => null;
|
|
27
29
|
filterConfig: (item: ColumnConfig) => {
|
|
30
|
+
searchDefaultConditions: "in";
|
|
28
31
|
type: string;
|
|
29
32
|
id: string;
|
|
30
33
|
name: string;
|
|
31
34
|
filterComponentType: "MultipleSelect";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
props: {
|
|
36
|
+
options: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
36
41
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
42
|
};
|
|
38
43
|
}
|
|
@@ -8,11 +8,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
10
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import { SYMBOL } from "../../constant";
|
|
11
12
|
var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
12
13
|
var _this = this;
|
|
13
14
|
_classCallCheck(this, PaymentStatus);
|
|
14
15
|
_defineProperty(this, "name", void 0);
|
|
15
16
|
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "sortField", void 0);
|
|
16
18
|
_defineProperty(this, "type", void 0);
|
|
17
19
|
_defineProperty(this, "rules", void 0);
|
|
18
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -21,6 +23,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
21
23
|
_defineProperty(this, "paymentStatus", void 0);
|
|
22
24
|
_defineProperty(this, "paymentStatusOptions", 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, {
|
|
@@ -48,11 +51,14 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
48
51
|
});
|
|
49
52
|
_defineProperty(this, "filterConfig", function (item) {
|
|
50
53
|
return {
|
|
54
|
+
searchDefaultConditions: SYMBOL.in,
|
|
51
55
|
type: item.type,
|
|
52
56
|
id: "".concat(item.id, "_enterprisePaymentStatus"),
|
|
53
57
|
name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
|
|
54
58
|
filterComponentType: 'MultipleSelect',
|
|
55
|
-
|
|
59
|
+
props: {
|
|
60
|
+
options: _this.paymentStatusOptions
|
|
61
|
+
},
|
|
56
62
|
filterFn: function filterFn(value) {
|
|
57
63
|
return function (i) {
|
|
58
64
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentStatus'));
|
|
@@ -62,6 +68,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
62
68
|
});
|
|
63
69
|
this.name = '打款状态';
|
|
64
70
|
this.id = "".concat(options.id, "_enterprisePaymentStatus");
|
|
71
|
+
this.sortField = "".concat(options.id, "_enterprisePaymentStatus");
|
|
65
72
|
this.type = options.type;
|
|
66
73
|
this.componentConfig = options.componentConfig;
|
|
67
74
|
this.rules = [];
|
|
@@ -99,6 +106,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
99
106
|
value: '支付宝打款关闭'
|
|
100
107
|
}];
|
|
101
108
|
this.isCombinationComponent = false;
|
|
109
|
+
this.canSort = true;
|
|
102
110
|
this.children = [];
|
|
103
111
|
});
|
|
104
112
|
export default PaymentStatus;
|
|
@@ -3,12 +3,14 @@ import React from 'react';
|
|
|
3
3
|
declare class PaymentTid 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
|
align: ALignType;
|
|
10
11
|
width: number;
|
|
11
12
|
isCombinationComponent: boolean;
|
|
13
|
+
canSort: boolean;
|
|
12
14
|
children: ComponentInterface[];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -18,11 +20,13 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
18
20
|
renderExport: (value: string) => string;
|
|
19
21
|
editRender: () => React.JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
searchDefaultConditions: "in";
|
|
21
24
|
type: string;
|
|
22
25
|
id: string;
|
|
23
26
|
name: string;
|
|
24
27
|
filterComponentType: "Input";
|
|
25
28
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
|
+
formatFilterValue: (input: string) => string[];
|
|
26
30
|
};
|
|
27
31
|
}
|
|
28
32
|
export default PaymentTid;
|
|
@@ -10,17 +10,20 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
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
|
+
import { SYMBOL } from "../../constant";
|
|
13
14
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
14
15
|
var _this = this;
|
|
15
16
|
_classCallCheck(this, PaymentTid);
|
|
16
17
|
_defineProperty(this, "name", void 0);
|
|
17
18
|
_defineProperty(this, "id", void 0);
|
|
19
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
20
|
_defineProperty(this, "type", void 0);
|
|
19
21
|
_defineProperty(this, "rules", void 0);
|
|
20
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
23
|
_defineProperty(this, "align", void 0);
|
|
22
24
|
_defineProperty(this, "width", 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, {
|
|
@@ -55,6 +58,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
55
58
|
});
|
|
56
59
|
_defineProperty(this, "filterConfig", function (item) {
|
|
57
60
|
return {
|
|
61
|
+
searchDefaultConditions: SYMBOL.in,
|
|
58
62
|
type: item.type,
|
|
59
63
|
id: "".concat(item.id, "_enterprisePaymentTid"),
|
|
60
64
|
name: "".concat(item.name, "-\u8BA2\u5355\u7F16\u53F7"),
|
|
@@ -63,17 +67,22 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
63
67
|
return function (i) {
|
|
64
68
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTid'), value);
|
|
65
69
|
};
|
|
70
|
+
},
|
|
71
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
72
|
+
return input.split(/[,|,]/);
|
|
66
73
|
}
|
|
67
74
|
};
|
|
68
75
|
});
|
|
69
76
|
this.name = '订单编号';
|
|
70
77
|
this.id = "".concat(options.id, "_enterprisePaymentTid");
|
|
78
|
+
this.sortField = "".concat(options.id, "_enterprisePaymentTid");
|
|
71
79
|
this.type = options.type;
|
|
72
80
|
this.componentConfig = options.componentConfig;
|
|
73
81
|
this.rules = [];
|
|
74
82
|
this.align = 'left';
|
|
75
83
|
this.width = 200;
|
|
76
84
|
this.isCombinationComponent = false;
|
|
85
|
+
this.canSort = true;
|
|
77
86
|
this.children = [];
|
|
78
87
|
});
|
|
79
88
|
export default PaymentTid;
|
|
@@ -10,6 +10,7 @@ import PaymentTid from './PaymentTid';
|
|
|
10
10
|
declare class Logistics implements ComponentInterface {
|
|
11
11
|
name: string;
|
|
12
12
|
id: string;
|
|
13
|
+
sortField: string;
|
|
13
14
|
type: string;
|
|
14
15
|
rules: any[];
|
|
15
16
|
componentConfig: ComponentInterface["componentConfig"];
|
|
@@ -21,6 +22,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
21
22
|
alipayNo: AlipayNo;
|
|
22
23
|
payTime: AlipayTime;
|
|
23
24
|
isCombinationComponent: boolean;
|
|
25
|
+
canSort: boolean;
|
|
24
26
|
children: ComponentInterface[];
|
|
25
27
|
constructor(options: PickOption);
|
|
26
28
|
renderClient: (record: any) => React.JSX.Element;
|
|
@@ -38,27 +40,62 @@ declare class Logistics implements ComponentInterface {
|
|
|
38
40
|
renderExport: () => null;
|
|
39
41
|
editRender: (value: any) => React.JSX.Element;
|
|
40
42
|
filterConfig: (item: ColumnConfig) => ({
|
|
43
|
+
searchDefaultConditions: "eq";
|
|
41
44
|
type: string;
|
|
42
45
|
id: string;
|
|
43
46
|
name: string;
|
|
44
47
|
filterComponentType: "Input";
|
|
45
48
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
46
49
|
} | {
|
|
50
|
+
searchDefaultConditions: "between";
|
|
47
51
|
type: string;
|
|
48
52
|
id: string;
|
|
49
53
|
name: string;
|
|
50
|
-
filterComponentType: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
value: string;
|
|
54
|
+
filterComponentType: "Rate";
|
|
55
|
+
rules: {
|
|
56
|
+
validator: (_: any, value: number[]) => Promise<void>;
|
|
54
57
|
}[];
|
|
58
|
+
props: {
|
|
59
|
+
placeholder: string[];
|
|
60
|
+
};
|
|
61
|
+
formatFilterValue: (val: (number | null)[]) => (number | null)[];
|
|
62
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
63
|
+
} | {
|
|
64
|
+
searchDefaultConditions: "like";
|
|
65
|
+
type: string;
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
filterComponentType: "Input";
|
|
69
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
70
|
+
} | {
|
|
71
|
+
searchDefaultConditions: "in";
|
|
72
|
+
type: string;
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
filterComponentType: "Input";
|
|
76
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
77
|
+
formatFilterValue: (input: string) => string[];
|
|
78
|
+
} | {
|
|
79
|
+
searchDefaultConditions: "in";
|
|
80
|
+
type: string;
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
filterComponentType: "MultipleSelect";
|
|
84
|
+
props: {
|
|
85
|
+
options: {
|
|
86
|
+
label: string;
|
|
87
|
+
value: string;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
55
90
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
56
91
|
} | {
|
|
92
|
+
searchDefaultConditions: "between";
|
|
57
93
|
type: string;
|
|
58
94
|
id: string;
|
|
59
95
|
name: string;
|
|
60
96
|
filterComponentType: "Date";
|
|
61
97
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
98
|
+
formatFilterValue: (val: any[]) => number[] | undefined;
|
|
62
99
|
})[];
|
|
63
100
|
}
|
|
64
101
|
export default Logistics;
|
|
@@ -23,6 +23,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
23
23
|
_classCallCheck(this, Logistics);
|
|
24
24
|
_defineProperty(this, "name", void 0);
|
|
25
25
|
_defineProperty(this, "id", void 0);
|
|
26
|
+
_defineProperty(this, "sortField", void 0);
|
|
26
27
|
_defineProperty(this, "type", void 0);
|
|
27
28
|
_defineProperty(this, "rules", void 0);
|
|
28
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -34,6 +35,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
34
35
|
_defineProperty(this, "alipayNo", void 0);
|
|
35
36
|
_defineProperty(this, "payTime", void 0);
|
|
36
37
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
38
|
+
_defineProperty(this, "canSort", void 0);
|
|
37
39
|
_defineProperty(this, "children", void 0);
|
|
38
40
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
41
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
|
|
@@ -75,6 +77,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
75
77
|
});
|
|
76
78
|
this.name = options.name;
|
|
77
79
|
this.id = options.id;
|
|
80
|
+
this.sortField = options.id;
|
|
78
81
|
this.type = options.type;
|
|
79
82
|
this.componentConfig = options.componentConfig;
|
|
80
83
|
this.paymentTid = new PaymentTid(options);
|
|
@@ -85,6 +88,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
85
88
|
this.alipayNo = new AlipayNo(options);
|
|
86
89
|
this.payTime = new AlipayTime(options);
|
|
87
90
|
this.isCombinationComponent = true;
|
|
91
|
+
this.canSort = false;
|
|
88
92
|
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
89
93
|
this.rules = [{
|
|
90
94
|
validator: function validator(_, value) {
|
|
@@ -4,10 +4,12 @@ declare type Value = string[] | undefined;
|
|
|
4
4
|
declare class BasicPicture implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
|
+
sortField: string;
|
|
7
8
|
type: string;
|
|
8
9
|
rules: any[];
|
|
9
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
11
|
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
11
13
|
children: ComponentInterface[];
|
|
12
14
|
constructor(options: PickOption);
|
|
13
15
|
formatPictures: (pictures: string) => string[];
|
|
@@ -18,10 +18,12 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
18
18
|
_classCallCheck(this, BasicPicture);
|
|
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, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
27
|
_defineProperty(this, "children", void 0);
|
|
26
28
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
27
29
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
@@ -104,10 +106,12 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
104
106
|
});
|
|
105
107
|
this.name = options.name;
|
|
106
108
|
this.id = options.id;
|
|
109
|
+
this.sortField = "".concat(options.id, "_picture");
|
|
107
110
|
this.type = options.type;
|
|
108
111
|
this.componentConfig = options.componentConfig;
|
|
109
112
|
this.rules = [];
|
|
110
113
|
this.isCombinationComponent = false;
|
|
114
|
+
this.canSort = true;
|
|
111
115
|
this.children = [];
|
|
112
116
|
});
|
|
113
117
|
export default BasicPicture;
|