@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +12 -13
- package/dist/esm/components/ActualPayment/index.js +28 -26
- package/dist/esm/components/Address/index.d.ts +9 -16
- package/dist/esm/components/Address/index.js +17 -26
- package/dist/esm/components/Alipay/index.d.ts +15 -19
- package/dist/esm/components/Alipay/index.js +15 -20
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
- package/dist/esm/components/AlipayAccount/index.js +29 -28
- package/dist/esm/components/AlipayName/index.d.ts +13 -15
- package/dist/esm/components/AlipayName/index.js +29 -28
- package/dist/esm/components/BuyerNick/index.d.ts +14 -15
- package/dist/esm/components/BuyerNick/index.js +41 -28
- package/dist/esm/components/Cascader/index.d.ts +13 -25
- package/dist/esm/components/Cascader/index.js +38 -31
- package/dist/esm/components/Checkbox/index.d.ts +15 -11
- package/dist/esm/components/Checkbox/index.js +45 -26
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
- package/dist/esm/components/CommonDataTime/index.js +27 -24
- package/dist/esm/components/CompletedUser/index.d.ts +30 -0
- package/dist/esm/components/CompletedUser/index.js +64 -0
- package/dist/esm/components/DataTime/index.d.ts +12 -11
- package/dist/esm/components/DataTime/index.js +30 -26
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
- package/dist/esm/components/EItemEnCode/index.js +34 -27
- package/dist/esm/components/EItemId/index.d.ts +11 -11
- package/dist/esm/components/EItemId/index.js +34 -27
- package/dist/esm/components/EItemSelect/index.d.ts +6 -12
- package/dist/esm/components/EItemSelect/index.js +16 -24
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
- package/dist/esm/components/ErpTradeId/index.js +28 -26
- package/dist/esm/components/Express/index.d.ts +15 -17
- package/dist/esm/components/Express/index.js +30 -36
- package/dist/esm/components/ExpressCode/index.d.ts +16 -18
- package/dist/esm/components/ExpressCode/index.js +34 -32
- package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
- package/dist/esm/components/FlowStatusSelect/index.js +38 -25
- package/dist/esm/components/GetFormItem/index.d.ts +3 -3
- package/dist/esm/components/GetFormItem/index.js +3 -3
- package/dist/esm/components/Grade/index.d.ts +6 -12
- package/dist/esm/components/Grade/index.js +14 -23
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +74 -0
- package/dist/esm/components/Input/index.d.ts +11 -12
- package/dist/esm/components/Input/index.js +29 -28
- package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
- package/dist/esm/components/JstItemSelect/index.js +48 -28
- package/dist/esm/components/JstLogistics/index.d.ts +21 -13
- package/dist/esm/components/JstLogistics/index.js +50 -29
- package/dist/esm/components/JstSendGood/index.d.ts +12 -12
- package/dist/esm/components/JstSendGood/index.js +54 -29
- package/dist/esm/components/JstSupply/index.d.ts +12 -12
- package/dist/esm/components/JstSupply/index.js +54 -29
- package/dist/esm/components/Logistics/index.d.ts +23 -27
- package/dist/esm/components/Logistics/index.js +19 -20
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +75 -0
- package/dist/esm/components/LogisticsInterception/index.js +136 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
- package/dist/esm/components/MultSelect/index.d.ts +12 -12
- package/dist/esm/components/MultSelect/index.js +31 -24
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
- package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
- package/dist/esm/components/Ordinary/index.d.ts +17 -24
- package/dist/esm/components/Ordinary/index.js +20 -12
- package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
- package/dist/esm/components/Payment/AlipayNick.js +29 -34
- package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
- package/dist/esm/components/Payment/AlipayNo.js +29 -34
- package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
- package/dist/esm/components/Payment/AlipayTime.js +26 -35
- package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
- package/dist/esm/components/Payment/BuyerNick.js +26 -32
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentAmount.js +24 -30
- package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
- package/dist/esm/components/Payment/PaymentStatus.js +48 -41
- package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentTid.js +24 -30
- package/dist/esm/components/Payment/index.d.ts +36 -97
- package/dist/esm/components/Payment/index.js +22 -20
- package/dist/esm/components/Picture/index.d.ts +11 -11
- package/dist/esm/components/Picture/index.js +14 -19
- package/dist/esm/components/PlatForm/index.d.ts +31 -0
- package/dist/esm/components/PlatForm/index.js +67 -0
- package/dist/esm/components/Radio/index.d.ts +15 -10
- package/dist/esm/components/Radio/index.js +34 -20
- package/dist/esm/components/Rate/index.d.ts +6 -11
- package/dist/esm/components/Rate/index.js +17 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
- package/dist/esm/components/ReceiverAddress/index.js +22 -29
- package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
- package/dist/esm/components/ReceiverMobile/index.js +29 -27
- package/dist/esm/components/ReceiverName/index.d.ts +11 -12
- package/dist/esm/components/ReceiverName/index.js +29 -27
- package/dist/esm/components/Remark/index.d.ts +14 -11
- package/dist/esm/components/Remark/index.js +31 -23
- package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
- package/dist/esm/components/ReturnLogistics/index.js +19 -10
- package/dist/esm/components/Select/index.d.ts +12 -11
- package/dist/esm/components/Select/index.js +28 -23
- package/dist/esm/components/ShopInput/index.d.ts +28 -0
- package/dist/esm/components/ShopInput/index.js +76 -0
- package/dist/esm/components/ShopName/index.d.ts +12 -13
- package/dist/esm/components/ShopName/index.js +28 -25
- package/dist/esm/components/Submitter/index.d.ts +30 -0
- package/dist/esm/components/Submitter/index.js +64 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
- package/dist/esm/components/SystemOrderNo/index.js +27 -25
- package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
- package/dist/esm/components/TemplateSelect/index.js +29 -24
- package/dist/esm/components/TextArea/index.d.ts +11 -11
- package/dist/esm/components/TextArea/index.js +27 -24
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
- package/dist/esm/components/ThirdItemSelect/index.js +36 -28
- package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
- package/dist/esm/components/TradeDateTime/index.js +52 -17
- package/dist/esm/components/TradeId/index.d.ts +11 -6
- package/dist/esm/components/TradeId/index.js +27 -14
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
- package/dist/esm/components/WorkOrderId/index.js +36 -29
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +52 -40
- package/dist/esm/index.js +13 -1
- package/dist/esm/type.d.ts +53 -45
- package/package.json +10 -5
|
@@ -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);
|
|
@@ -17,18 +17,12 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
17
17
|
_defineProperty(this, "id", void 0);
|
|
18
18
|
_defineProperty(this, "type", void 0);
|
|
19
19
|
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "canFilter", void 0);
|
|
21
|
-
_defineProperty(this, "canGroup", void 0);
|
|
22
|
-
_defineProperty(this, "canHidden", void 0);
|
|
23
|
-
_defineProperty(this, "dataType", void 0);
|
|
24
|
-
_defineProperty(this, "showContains", void 0);
|
|
25
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
21
|
_defineProperty(this, "effects", void 0);
|
|
27
22
|
_defineProperty(this, "align", void 0);
|
|
28
23
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
31
|
-
});
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
32
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
28
|
id: _this.id,
|
|
@@ -37,19 +31,27 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
37
31
|
}) : null;
|
|
38
32
|
});
|
|
39
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
if (
|
|
34
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
41
35
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
36
|
}
|
|
43
37
|
return /*#__PURE__*/React.createElement("span", {
|
|
44
38
|
className: "pointer",
|
|
45
39
|
onClick: function onClick() {
|
|
46
|
-
var _this$effects;
|
|
47
|
-
|
|
40
|
+
var _this$effects, _this$effects2;
|
|
41
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
48
42
|
}
|
|
49
|
-
},
|
|
43
|
+
}, record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
47
|
+
return _this.renderPc(undefined, r);
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
50
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
50
51
|
});
|
|
51
52
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
-
|
|
53
|
+
var _record$_this$id;
|
|
54
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
53
55
|
});
|
|
54
56
|
_defineProperty(this, "editRender", function () {
|
|
55
57
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -61,37 +63,30 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
61
63
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
62
64
|
});
|
|
63
65
|
});
|
|
64
|
-
_defineProperty(this, "
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
65
67
|
return {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
render: _this.renderPc,
|
|
76
|
-
renderPc: _this.renderPc,
|
|
77
|
-
componentType: _this.editRender,
|
|
78
|
-
showContains: _this.showContains
|
|
68
|
+
type: item.type,
|
|
69
|
+
id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
|
|
70
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
71
|
+
filterComponentType: 'Input',
|
|
72
|
+
filterFn: function filterFn(value) {
|
|
73
|
+
return function (i) {
|
|
74
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNo')).includes(value);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
79
77
|
};
|
|
80
78
|
});
|
|
81
79
|
this.name = '支付宝账号';
|
|
82
80
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
|
|
83
81
|
this.type = options.type;
|
|
84
|
-
this.canFilter = true;
|
|
85
|
-
this.canGroup = true;
|
|
86
|
-
this.canHidden = false;
|
|
87
|
-
this.showContains = false;
|
|
88
|
-
this.dataType = 'string';
|
|
89
82
|
this.componentConfig = options.componentConfig;
|
|
90
83
|
this.effects = options.effects;
|
|
91
84
|
this.width = 200;
|
|
85
|
+
this.isCombinationComponent = false;
|
|
86
|
+
this.children = [];
|
|
92
87
|
this.rules = [{
|
|
93
88
|
validator: function validator(_, value) {
|
|
94
|
-
if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]
|
|
89
|
+
if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
|
|
95
90
|
return Promise.resolve();
|
|
96
91
|
}
|
|
97
92
|
return Promise.reject(new Error('请输入有效的邮箱或者手机号'));
|
|
@@ -1,40 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class AlipayTime implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
align: ALignType;
|
|
15
10
|
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
children: ComponentInterface[];
|
|
16
13
|
constructor(options: PickOption);
|
|
17
|
-
render: (value: string) => JSX.Element;
|
|
18
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
19
|
-
renderPc: (value:
|
|
15
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
20
18
|
renderExport: (value: string) => string | null;
|
|
21
19
|
editRender: () => JSX.Element;
|
|
22
|
-
|
|
23
|
-
title: string;
|
|
24
|
-
align: ALignType;
|
|
25
|
-
dataIndex: string;
|
|
26
|
-
width: number;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
canHidden: boolean;
|
|
29
|
-
canFilter: boolean;
|
|
30
|
-
canGroup: boolean;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
21
|
type: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
renderExport: (value: string) => string | null;
|
|
37
|
-
widget: null;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
38
26
|
};
|
|
39
27
|
}
|
|
40
28
|
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);
|
|
@@ -18,33 +18,32 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
18
18
|
_defineProperty(this, "id", void 0);
|
|
19
19
|
_defineProperty(this, "type", void 0);
|
|
20
20
|
_defineProperty(this, "rules", void 0);
|
|
21
|
-
_defineProperty(this, "canFilter", void 0);
|
|
22
|
-
_defineProperty(this, "canGroup", void 0);
|
|
23
|
-
_defineProperty(this, "canHidden", void 0);
|
|
24
|
-
_defineProperty(this, "dataType", void 0);
|
|
25
|
-
_defineProperty(this, "showContains", void 0);
|
|
26
21
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
22
|
_defineProperty(this, "align", void 0);
|
|
28
23
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
31
|
-
className: "pointer"
|
|
32
|
-
}, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
|
|
33
|
-
});
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
34
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
28
|
id: _this.id,
|
|
37
29
|
label: _this.name,
|
|
38
|
-
value: _this.
|
|
30
|
+
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') : '--'
|
|
39
31
|
}) : null;
|
|
40
32
|
});
|
|
41
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
42
|
-
if (
|
|
34
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
43
35
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
44
36
|
}
|
|
45
37
|
return /*#__PURE__*/React.createElement("span", {
|
|
46
38
|
className: "pointer"
|
|
47
|
-
},
|
|
39
|
+
}, 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') : '--');
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
42
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
43
|
+
return _this.renderPc(undefined, r);
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
46
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
48
47
|
});
|
|
49
48
|
_defineProperty(this, "renderExport", function (value) {
|
|
50
49
|
return value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : null;
|
|
@@ -59,36 +58,28 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
59
58
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
60
59
|
});
|
|
61
60
|
});
|
|
62
|
-
_defineProperty(this, "
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
63
62
|
return {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
renderPc: _this.renderPc,
|
|
75
|
-
componentType: _this.editRender,
|
|
76
|
-
showContains: _this.showContains,
|
|
77
|
-
renderExport: _this.renderExport,
|
|
78
|
-
widget: null
|
|
63
|
+
type: item.type,
|
|
64
|
+
id: "".concat(item.id, "_enterprisePaymentTime"),
|
|
65
|
+
name: "".concat(item.name, "-\u6253\u6B3E\u65F6\u95F4"),
|
|
66
|
+
filterComponentType: 'Input',
|
|
67
|
+
filterFn: function filterFn(value) {
|
|
68
|
+
return function (i) {
|
|
69
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTime');
|
|
70
|
+
return _filterFn.filterDateFn(value, recordDateTime);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
79
73
|
};
|
|
80
74
|
});
|
|
81
75
|
this.name = '打款时间';
|
|
82
76
|
this.id = "".concat(options.id, "_enterprisePaymentTime");
|
|
83
77
|
this.type = options.type;
|
|
84
|
-
this.canFilter = true;
|
|
85
|
-
this.canGroup = true;
|
|
86
|
-
this.canHidden = false;
|
|
87
|
-
this.showContains = false;
|
|
88
|
-
this.dataType = 'date';
|
|
89
78
|
this.componentConfig = options.componentConfig;
|
|
90
79
|
this.rules = [];
|
|
91
80
|
this.align = 'left';
|
|
92
81
|
this.width = 200;
|
|
82
|
+
this.isCombinationComponent = false;
|
|
83
|
+
this.children = [];
|
|
93
84
|
});
|
|
94
85
|
export default AlipayTime;
|
|
@@ -1,40 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class BuyerNick implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
|
-
render: (value: string) => JSX.Element;
|
|
19
15
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
16
|
editRender: () => JSX.Element;
|
|
21
|
-
renderPc: (value:
|
|
17
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
22
20
|
renderExport: (value: string) => string;
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
25
|
-
align: ALignType;
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
width: number;
|
|
28
|
-
dataType: DataType;
|
|
29
|
-
canHidden: boolean;
|
|
30
|
-
canFilter: boolean;
|
|
31
|
-
canGroup: boolean;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
32
22
|
type: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
renderExport: (value: string) => string;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
filterComponentType: "Input";
|
|
26
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
27
|
};
|
|
39
28
|
}
|
|
40
29
|
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);
|
|
@@ -24,18 +24,12 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
24
24
|
_defineProperty(this, "id", void 0);
|
|
25
25
|
_defineProperty(this, "type", void 0);
|
|
26
26
|
_defineProperty(this, "rules", void 0);
|
|
27
|
-
_defineProperty(this, "canFilter", void 0);
|
|
28
|
-
_defineProperty(this, "canGroup", void 0);
|
|
29
|
-
_defineProperty(this, "canHidden", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
|
-
_defineProperty(this, "showContains", void 0);
|
|
32
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
33
28
|
_defineProperty(this, "effects", void 0);
|
|
34
29
|
_defineProperty(this, "align", void 0);
|
|
35
30
|
_defineProperty(this, "width", void 0);
|
|
36
|
-
_defineProperty(this, "
|
|
37
|
-
|
|
38
|
-
});
|
|
31
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
|
+
_defineProperty(this, "children", void 0);
|
|
39
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
40
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
41
35
|
id: _this.id,
|
|
@@ -55,10 +49,11 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
55
49
|
});
|
|
56
50
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
57
51
|
var _this$effects;
|
|
58
|
-
if (
|
|
52
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
59
53
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
60
54
|
}
|
|
61
55
|
var buyerOpenUid = (record === null || record === void 0 ? void 0 : record.buyerOpenUid) || Object.keys(record).reduce(function (prv, next) {
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
62
57
|
var _next$split = next.split('_'),
|
|
63
58
|
_next$split2 = _slicedToArray(_next$split, 2),
|
|
64
59
|
_ = _next$split2[0],
|
|
@@ -68,46 +63,45 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
68
63
|
}
|
|
69
64
|
return prv;
|
|
70
65
|
}, '');
|
|
71
|
-
return /*#__PURE__*/React.createElement("span", null,
|
|
66
|
+
return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : record[_this.id]) && /*#__PURE__*/React.createElement(PlatBuyer, {
|
|
72
67
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
73
|
-
buyerNick:
|
|
68
|
+
buyerNick: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
74
69
|
buyerOpenUid: buyerOpenUid,
|
|
75
70
|
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
76
71
|
}));
|
|
77
72
|
});
|
|
73
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
74
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
75
|
+
return _this.renderPc(undefined, r);
|
|
76
|
+
});
|
|
77
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
78
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
79
|
+
});
|
|
78
80
|
_defineProperty(this, "renderExport", function (value) {
|
|
79
81
|
return value !== null && value !== void 0 ? value : '--';
|
|
80
82
|
});
|
|
81
|
-
_defineProperty(this, "
|
|
83
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
82
84
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
render: _this.renderPc,
|
|
93
|
-
renderPc: _this.renderPc,
|
|
94
|
-
componentType: _this.editRender,
|
|
95
|
-
showContains: _this.showContains,
|
|
96
|
-
renderExport: _this.renderExport
|
|
85
|
+
type: item.type,
|
|
86
|
+
id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
|
|
87
|
+
name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
|
|
88
|
+
filterComponentType: 'Input',
|
|
89
|
+
filterFn: function filterFn(value) {
|
|
90
|
+
return function (i) {
|
|
91
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentBuyerNick')).includes(value);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
97
94
|
};
|
|
98
95
|
});
|
|
99
96
|
this.name = '买家昵称';
|
|
100
97
|
this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
101
98
|
this.type = options.type;
|
|
102
|
-
this.canFilter = true;
|
|
103
|
-
this.canGroup = true;
|
|
104
|
-
this.canHidden = false;
|
|
105
|
-
this.showContains = false;
|
|
106
|
-
this.dataType = 'string';
|
|
107
99
|
this.componentConfig = options.componentConfig;
|
|
108
100
|
this.effects = options.effects;
|
|
109
101
|
this.rules = [];
|
|
110
102
|
this.align = 'left';
|
|
111
103
|
this.width = 200;
|
|
104
|
+
this.isCombinationComponent = false;
|
|
105
|
+
this.children = [];
|
|
112
106
|
});
|
|
113
107
|
export default BuyerNick;
|
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentAmount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
align: ALignType;
|
|
15
10
|
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
children: ComponentInterface[];
|
|
16
13
|
constructor(options: PickOption);
|
|
17
|
-
render: (value: string) => JSX.Element;
|
|
18
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
19
|
-
renderPc: (value:
|
|
15
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
20
18
|
renderExport: (value: string) => string;
|
|
21
19
|
editRender: () => JSX.Element;
|
|
22
|
-
|
|
23
|
-
title: string;
|
|
24
|
-
align: ALignType;
|
|
25
|
-
dataIndex: string;
|
|
26
|
-
width: number;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
canHidden: boolean;
|
|
29
|
-
canFilter: boolean;
|
|
30
|
-
canGroup: boolean;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
21
|
type: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
renderExport: (value: string) => string;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
26
|
};
|
|
38
27
|
}
|
|
39
28
|
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);
|
|
@@ -17,17 +17,11 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
17
17
|
_defineProperty(this, "id", void 0);
|
|
18
18
|
_defineProperty(this, "type", void 0);
|
|
19
19
|
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "canFilter", void 0);
|
|
21
|
-
_defineProperty(this, "canGroup", void 0);
|
|
22
|
-
_defineProperty(this, "canHidden", void 0);
|
|
23
|
-
_defineProperty(this, "dataType", void 0);
|
|
24
|
-
_defineProperty(this, "showContains", void 0);
|
|
25
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
21
|
_defineProperty(this, "align", void 0);
|
|
27
22
|
_defineProperty(this, "width", void 0);
|
|
28
|
-
_defineProperty(this, "
|
|
29
|
-
|
|
30
|
-
});
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
31
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
26
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
27
|
id: _this.id,
|
|
@@ -36,7 +30,15 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
36
30
|
}) : null;
|
|
37
31
|
});
|
|
38
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
39
|
-
|
|
33
|
+
var _record$_this$id;
|
|
34
|
+
return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
37
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
38
|
+
return _this.renderPc(undefined, r);
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
41
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
40
42
|
});
|
|
41
43
|
_defineProperty(this, "renderExport", function (value) {
|
|
42
44
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -51,33 +53,25 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
51
53
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
52
54
|
});
|
|
53
55
|
});
|
|
54
|
-
_defineProperty(this, "
|
|
56
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
57
|
return {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
render: _this.renderPc,
|
|
66
|
-
renderPc: _this.renderPc,
|
|
67
|
-
componentType: _this.editRender,
|
|
68
|
-
showContains: _this.showContains,
|
|
69
|
-
renderExport: _this.renderExport
|
|
58
|
+
type: item.type,
|
|
59
|
+
id: "".concat(item.id, "_enterprisePaymentRefundFee"),
|
|
60
|
+
name: "".concat(item.name, "-\u6253\u6B3E\u91D1\u989D"),
|
|
61
|
+
filterComponentType: 'Input',
|
|
62
|
+
filterFn: function filterFn(value) {
|
|
63
|
+
return function (i) {
|
|
64
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentRefundFee')).includes(value);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
70
67
|
};
|
|
71
68
|
});
|
|
72
69
|
this.name = '打款金额';
|
|
73
70
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
74
71
|
this.type = options.type;
|
|
75
|
-
this.canFilter = true;
|
|
76
|
-
this.canGroup = true;
|
|
77
|
-
this.canHidden = false;
|
|
78
|
-
this.showContains = false;
|
|
79
|
-
this.dataType = 'number';
|
|
80
72
|
this.componentConfig = options.componentConfig;
|
|
73
|
+
this.isCombinationComponent = false;
|
|
74
|
+
this.children = [];
|
|
81
75
|
this.rules = [{
|
|
82
76
|
validator: function validator(_, value) {
|
|
83
77
|
if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
|
|
@@ -1,51 +1,39 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
align: ALignType;
|
|
15
10
|
width: number;
|
|
16
11
|
paymentStatus: {
|
|
17
12
|
[prop in string]: string;
|
|
18
13
|
};
|
|
14
|
+
paymentStatusOptions: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
isCombinationComponent: boolean;
|
|
19
|
+
children: ComponentInterface[];
|
|
19
20
|
constructor(options: PickOption);
|
|
20
|
-
render: (value: string) => JSX.Element;
|
|
21
21
|
renderClient: (record: any) => JSX.Element | null;
|
|
22
|
-
renderPc: (value:
|
|
22
|
+
renderPc: (value: unknown, record: any) => any;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
23
25
|
renderExport: (value: any) => any;
|
|
24
|
-
editRender: (
|
|
25
|
-
|
|
26
|
-
title: string;
|
|
27
|
-
align: ALignType;
|
|
28
|
-
dataIndex: string;
|
|
29
|
-
dataType: DataType;
|
|
30
|
-
canHidden: boolean;
|
|
31
|
-
canFilter: boolean;
|
|
32
|
-
canGroup: boolean;
|
|
33
|
-
width: number;
|
|
26
|
+
editRender: () => null;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
34
28
|
type: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
renderExport: (value: any) => any;
|
|
40
|
-
widget: string;
|
|
41
|
-
'x-options': {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "MultipleSelect";
|
|
32
|
+
options: {
|
|
42
33
|
label: string;
|
|
43
34
|
value: string;
|
|
44
35
|
}[];
|
|
45
|
-
|
|
46
|
-
width: string;
|
|
47
|
-
};
|
|
48
|
-
'x-placeholder': string;
|
|
36
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
49
37
|
};
|
|
50
38
|
}
|
|
51
39
|
export default PaymentStatus;
|