@kmkf-fe-packages/services-components 0.3.1-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/ItemView/index.d.ts +7 -0
- package/dist/esm/commonComponents/ItemView/index.js +15 -0
- package/dist/esm/commonComponents/ItemView/index.module.scss +20 -0
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +9 -0
- package/dist/esm/commonComponents/PlatBuyer/index.js +45 -0
- package/dist/esm/commonComponents/Wangwang/img/wang.gif +0 -0
- package/dist/esm/commonComponents/Wangwang/index.d.ts +7 -0
- package/dist/esm/commonComponents/Wangwang/index.js +31 -0
- package/dist/esm/components/ActualPayment/index.d.ts +27 -0
- package/dist/esm/components/ActualPayment/index.js +82 -0
- package/dist/esm/components/Address/index.d.ts +37 -0
- package/dist/esm/components/Address/index.js +112 -0
- package/dist/esm/components/Alipay/index.d.ts +36 -0
- package/dist/esm/components/Alipay/index.js +88 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +31 -0
- package/dist/esm/components/AlipayAccount/index.js +90 -0
- package/dist/esm/components/AlipayName/index.d.ts +31 -0
- package/dist/esm/components/AlipayName/index.js +89 -0
- package/dist/esm/components/BuyerNick/index.d.ts +31 -0
- package/dist/esm/components/BuyerNick/index.js +103 -0
- package/dist/esm/components/Cascader/index.d.ts +45 -0
- package/dist/esm/components/Cascader/index.js +112 -0
- package/dist/esm/components/Checkbox/index.d.ts +31 -0
- package/dist/esm/components/Checkbox/index.js +102 -0
- package/dist/esm/components/Common/img/default-img.png +0 -0
- package/dist/esm/components/Common/index.d.ts +18 -0
- package/dist/esm/components/Common/index.js +223 -0
- package/dist/esm/components/Common/index.module.less +8 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +30 -0
- package/dist/esm/components/CommonDataTime/index.js +79 -0
- package/dist/esm/components/DataTime/ApaasDate.d.ts +9 -0
- package/dist/esm/components/DataTime/ApaasDate.js +22 -0
- package/dist/esm/components/DataTime/index.d.ts +29 -0
- package/dist/esm/components/DataTime/index.js +103 -0
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +3 -0
- package/dist/esm/components/EItemEnCode/ItemEncode.js +26 -0
- package/dist/esm/components/EItemEnCode/index.d.ts +27 -0
- package/dist/esm/components/EItemEnCode/index.js +109 -0
- package/dist/esm/components/EItemId/ItemId.d.ts +4 -0
- package/dist/esm/components/EItemId/ItemId.js +26 -0
- package/dist/esm/components/EItemId/index.d.ts +27 -0
- package/dist/esm/components/EItemId/index.js +110 -0
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +4 -0
- package/dist/esm/components/EItemSelect/ItemSelect.js +27 -0
- package/dist/esm/components/EItemSelect/index.d.ts +27 -0
- package/dist/esm/components/EItemSelect/index.js +92 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +27 -0
- package/dist/esm/components/ErpTradeId/index.js +76 -0
- package/dist/esm/components/Express/index.d.ts +33 -0
- package/dist/esm/components/Express/index.js +94 -0
- package/dist/esm/components/ExpressCode/index.d.ts +30 -0
- package/dist/esm/components/ExpressCode/index.js +87 -0
- package/dist/esm/components/ExpressCompany/index.d.ts +3 -0
- package/dist/esm/components/ExpressCompany/index.js +20 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +51 -0
- package/dist/esm/components/FlowStatusSelect/index.js +124 -0
- package/dist/esm/components/GetFormItem/index.d.ts +10 -0
- package/dist/esm/components/GetFormItem/index.js +28 -0
- package/dist/esm/components/Grade/index.d.ts +26 -0
- package/dist/esm/components/Grade/index.js +75 -0
- package/dist/esm/components/Input/index.d.ts +27 -0
- package/dist/esm/components/Input/index.js +84 -0
- package/dist/esm/components/JstItemSelect/index.d.ts +29 -0
- package/dist/esm/components/JstItemSelect/index.js +115 -0
- package/dist/esm/components/JstLogistics/index.d.ts +29 -0
- package/dist/esm/components/JstLogistics/index.js +107 -0
- package/dist/esm/components/JstSendGood/index.d.ts +27 -0
- package/dist/esm/components/JstSendGood/index.js +112 -0
- package/dist/esm/components/JstSupply/index.d.ts +27 -0
- package/dist/esm/components/JstSupply/index.js +113 -0
- package/dist/esm/components/Logistics/index.d.ts +44 -0
- package/dist/esm/components/Logistics/index.js +107 -0
- package/dist/esm/components/MultSelect/index.d.ts +27 -0
- package/dist/esm/components/MultSelect/index.js +84 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +39 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +93 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +39 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +93 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +39 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +86 -0
- package/dist/esm/components/Ordinary/index.d.ts +46 -0
- package/dist/esm/components/Ordinary/index.js +90 -0
- package/dist/esm/components/OrdinaryHeader/index.d.ts +7 -0
- package/dist/esm/components/OrdinaryHeader/index.js +157 -0
- package/dist/esm/components/OrdinaryHeader/index.module.less +46 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +39 -0
- package/dist/esm/components/Payment/AlipayNick.js +94 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +38 -0
- package/dist/esm/components/Payment/AlipayNo.js +101 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +39 -0
- package/dist/esm/components/Payment/AlipayTime.js +93 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +39 -0
- package/dist/esm/components/Payment/BuyerNick.js +112 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +38 -0
- package/dist/esm/components/Payment/PaymentAmount.js +91 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +50 -0
- package/dist/esm/components/Payment/PaymentStatus.js +96 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +38 -0
- package/dist/esm/components/Payment/PaymentTid.js +84 -0
- package/dist/esm/components/Payment/index.d.ts +120 -0
- package/dist/esm/components/Payment/index.js +118 -0
- package/dist/esm/components/Picture/index.d.ts +31 -0
- package/dist/esm/components/Picture/index.js +118 -0
- package/dist/esm/components/Popover/index.d.ts +3 -0
- package/dist/esm/components/Popover/index.js +51 -0
- package/dist/esm/components/Popover/index.module.less +22 -0
- package/dist/esm/components/Radio/index.d.ts +30 -0
- package/dist/esm/components/Radio/index.js +93 -0
- package/dist/esm/components/Rate/index.d.ts +34 -0
- package/dist/esm/components/Rate/index.js +158 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +35 -0
- package/dist/esm/components/ReceiverAddress/index.js +133 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +28 -0
- package/dist/esm/components/ReceiverMobile/index.js +91 -0
- package/dist/esm/components/ReceiverName/index.d.ts +28 -0
- package/dist/esm/components/ReceiverName/index.js +88 -0
- package/dist/esm/components/Remark/flag/trade-icon-flag-0.png +0 -0
- package/dist/esm/components/Remark/flag/trade-icon-flag-1.png +0 -0
- package/dist/esm/components/Remark/flag/trade-icon-flag-2.png +0 -0
- package/dist/esm/components/Remark/flag/trade-icon-flag-3.png +0 -0
- package/dist/esm/components/Remark/flag/trade-icon-flag-4.png +0 -0
- package/dist/esm/components/Remark/flag/trade-icon-flag-5.png +0 -0
- package/dist/esm/components/Remark/index.d.ts +33 -0
- package/dist/esm/components/Remark/index.js +113 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +44 -0
- package/dist/esm/components/ReturnLogistics/index.js +107 -0
- package/dist/esm/components/Select/index.d.ts +26 -0
- package/dist/esm/components/Select/index.js +79 -0
- package/dist/esm/components/ShopName/index.d.ts +27 -0
- package/dist/esm/components/ShopName/index.js +78 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +28 -0
- package/dist/esm/components/SystemOrderNo/index.js +81 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +28 -0
- package/dist/esm/components/TemplateSelect/index.js +79 -0
- package/dist/esm/components/TextArea/index.d.ts +26 -0
- package/dist/esm/components/TextArea/index.js +78 -0
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +4 -0
- package/dist/esm/components/ThirdItemSelect/ItemEncode.js +31 -0
- package/dist/esm/components/ThirdItemSelect/index.d.ts +27 -0
- package/dist/esm/components/ThirdItemSelect/index.js +120 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +27 -0
- package/dist/esm/components/TradeDateTime/index.js +92 -0
- package/dist/esm/components/TradeId/index.d.ts +28 -0
- package/dist/esm/components/TradeId/index.js +89 -0
- package/dist/esm/components/WorkOrderId/img/repeat.png +0 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +28 -0
- package/dist/esm/components/WorkOrderId/index.js +98 -0
- package/dist/esm/index.d.ts +40 -0
- package/dist/esm/index.js +40 -0
- package/dist/esm/type.d.ts +174 -0
- package/dist/esm/type.js +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
|
|
3
|
+
declare class AlipayNo implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
canFilter: boolean;
|
|
9
|
+
canGroup: boolean;
|
|
10
|
+
canHidden: boolean;
|
|
11
|
+
dataType: DataType;
|
|
12
|
+
showContains: boolean;
|
|
13
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
effects: ComponentInterface["effects"];
|
|
15
|
+
align: ALignType;
|
|
16
|
+
width: number;
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
render: (value: string) => JSX.Element;
|
|
19
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
21
|
+
renderExport: (value: any, record: Record) => any;
|
|
22
|
+
editRender: () => JSX.Element;
|
|
23
|
+
getColumns: () => {
|
|
24
|
+
title: string;
|
|
25
|
+
align: ALignType;
|
|
26
|
+
dataIndex: string;
|
|
27
|
+
width: number;
|
|
28
|
+
dataType: DataType;
|
|
29
|
+
canHidden: boolean;
|
|
30
|
+
canFilter: boolean;
|
|
31
|
+
canGroup: boolean;
|
|
32
|
+
type: string;
|
|
33
|
+
render: (value: any, record: any) => JSX.Element;
|
|
34
|
+
componentType: () => JSX.Element;
|
|
35
|
+
showContains: boolean;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export default AlipayNo;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 _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
|
+
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
|
+
import GetFormItem from "../GetFormItem";
|
|
11
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, AlipayNo);
|
|
16
|
+
_defineProperty(this, "name", void 0);
|
|
17
|
+
_defineProperty(this, "id", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
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
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "effects", void 0);
|
|
27
|
+
_defineProperty(this, "align", void 0);
|
|
28
|
+
_defineProperty(this, "width", void 0);
|
|
29
|
+
_defineProperty(this, "render", function (value) {
|
|
30
|
+
return /*#__PURE__*/React.createElement("span", null, value);
|
|
31
|
+
});
|
|
32
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
33
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
|
+
id: _this.id,
|
|
35
|
+
label: _this.name,
|
|
36
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
37
|
+
}) : null;
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
className: "pointer",
|
|
45
|
+
onClick: function onClick() {
|
|
46
|
+
var _this$effects;
|
|
47
|
+
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
|
|
48
|
+
}
|
|
49
|
+
}, value);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
+
return value !== null && value !== void 0 ? value : '--';
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "editRender", function () {
|
|
55
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
56
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
57
|
+
title: _this.name,
|
|
58
|
+
name: _this.id,
|
|
59
|
+
rules: _this.rules,
|
|
60
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
61
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "getColumns", function () {
|
|
65
|
+
return {
|
|
66
|
+
title: _this.name,
|
|
67
|
+
align: _this.align,
|
|
68
|
+
dataIndex: _this.id,
|
|
69
|
+
width: _this.width,
|
|
70
|
+
dataType: _this.dataType,
|
|
71
|
+
canHidden: _this.canHidden,
|
|
72
|
+
canFilter: _this.canFilter,
|
|
73
|
+
canGroup: _this.canGroup,
|
|
74
|
+
type: _this.type,
|
|
75
|
+
render: _this.renderPc,
|
|
76
|
+
componentType: _this.editRender,
|
|
77
|
+
showContains: _this.showContains
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
this.name = '支付宝账号';
|
|
81
|
+
this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
|
|
82
|
+
this.type = options.type;
|
|
83
|
+
this.canFilter = true;
|
|
84
|
+
this.canGroup = true;
|
|
85
|
+
this.canHidden = false;
|
|
86
|
+
this.showContains = false;
|
|
87
|
+
this.dataType = 'string';
|
|
88
|
+
this.componentConfig = options.componentConfig;
|
|
89
|
+
this.effects = options.effects;
|
|
90
|
+
this.width = 200;
|
|
91
|
+
this.rules = [{
|
|
92
|
+
validator: function validator(_, value) {
|
|
93
|
+
if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
|
|
94
|
+
return Promise.resolve();
|
|
95
|
+
}
|
|
96
|
+
return Promise.reject(new Error('请输入有效的邮箱或者手机号'));
|
|
97
|
+
}
|
|
98
|
+
}];
|
|
99
|
+
this.align = 'left';
|
|
100
|
+
});
|
|
101
|
+
export default AlipayNo;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
|
|
3
|
+
declare class AlipayTime implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
canFilter: boolean;
|
|
9
|
+
canGroup: boolean;
|
|
10
|
+
canHidden: boolean;
|
|
11
|
+
dataType: DataType;
|
|
12
|
+
showContains: boolean;
|
|
13
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
align: ALignType;
|
|
15
|
+
width: number;
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
render: (value: string) => JSX.Element;
|
|
18
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
20
|
+
renderExport: (value: string) => string | null;
|
|
21
|
+
editRender: () => JSX.Element;
|
|
22
|
+
getColumns: () => {
|
|
23
|
+
title: string;
|
|
24
|
+
align: ALignType;
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
width: number;
|
|
27
|
+
dataType: DataType;
|
|
28
|
+
canHidden: boolean;
|
|
29
|
+
canFilter: boolean;
|
|
30
|
+
canGroup: boolean;
|
|
31
|
+
type: string;
|
|
32
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
33
|
+
componentType: () => JSX.Element;
|
|
34
|
+
showContains: boolean;
|
|
35
|
+
renderExport: (value: string) => string | null;
|
|
36
|
+
widget: null;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default AlipayTime;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 _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
|
+
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
|
+
import moment from 'moment';
|
|
11
|
+
import GetFormItem from "../GetFormItem";
|
|
12
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
_classCallCheck(this, AlipayTime);
|
|
17
|
+
_defineProperty(this, "name", void 0);
|
|
18
|
+
_defineProperty(this, "id", void 0);
|
|
19
|
+
_defineProperty(this, "type", void 0);
|
|
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
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
+
_defineProperty(this, "align", void 0);
|
|
28
|
+
_defineProperty(this, "width", void 0);
|
|
29
|
+
_defineProperty(this, "render", function (value) {
|
|
30
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31
|
+
className: "pointer"
|
|
32
|
+
}, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
35
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
|
+
id: _this.id,
|
|
37
|
+
label: _this.name,
|
|
38
|
+
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
39
|
+
}) : null;
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
44
|
+
}
|
|
45
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
46
|
+
className: "pointer"
|
|
47
|
+
}, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "renderExport", function (value) {
|
|
50
|
+
return value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : null;
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "editRender", function () {
|
|
53
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
54
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
55
|
+
title: _this.name,
|
|
56
|
+
name: _this.id,
|
|
57
|
+
rules: _this.rules,
|
|
58
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
59
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getColumns", function () {
|
|
63
|
+
return {
|
|
64
|
+
title: _this.name,
|
|
65
|
+
align: _this.align,
|
|
66
|
+
dataIndex: _this.id,
|
|
67
|
+
width: _this.width,
|
|
68
|
+
dataType: _this.dataType,
|
|
69
|
+
canHidden: _this.canHidden,
|
|
70
|
+
canFilter: _this.canFilter,
|
|
71
|
+
canGroup: _this.canGroup,
|
|
72
|
+
type: _this.type,
|
|
73
|
+
render: _this.renderPc,
|
|
74
|
+
componentType: _this.editRender,
|
|
75
|
+
showContains: _this.showContains,
|
|
76
|
+
renderExport: _this.renderExport,
|
|
77
|
+
widget: null
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
this.name = '打款时间';
|
|
81
|
+
this.id = "".concat(options.id, "_enterprisePaymentTime");
|
|
82
|
+
this.type = options.type;
|
|
83
|
+
this.canFilter = true;
|
|
84
|
+
this.canGroup = true;
|
|
85
|
+
this.canHidden = false;
|
|
86
|
+
this.showContains = false;
|
|
87
|
+
this.dataType = 'date';
|
|
88
|
+
this.componentConfig = options.componentConfig;
|
|
89
|
+
this.rules = [];
|
|
90
|
+
this.align = 'left';
|
|
91
|
+
this.width = 200;
|
|
92
|
+
});
|
|
93
|
+
export default AlipayTime;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
|
|
3
|
+
declare class BuyerNick implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
canFilter: boolean;
|
|
9
|
+
canGroup: boolean;
|
|
10
|
+
canHidden: boolean;
|
|
11
|
+
dataType: DataType;
|
|
12
|
+
showContains: boolean;
|
|
13
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
effects: ComponentInterface["effects"];
|
|
15
|
+
align: ALignType;
|
|
16
|
+
width: number;
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
render: (value: string) => JSX.Element;
|
|
19
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
20
|
+
editRender: () => JSX.Element;
|
|
21
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
22
|
+
renderExport: (value: string) => string;
|
|
23
|
+
getColumns: () => {
|
|
24
|
+
title: string;
|
|
25
|
+
align: ALignType;
|
|
26
|
+
dataIndex: string;
|
|
27
|
+
width: number;
|
|
28
|
+
dataType: DataType;
|
|
29
|
+
canHidden: boolean;
|
|
30
|
+
canFilter: boolean;
|
|
31
|
+
canGroup: boolean;
|
|
32
|
+
type: string;
|
|
33
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
34
|
+
componentType: () => JSX.Element;
|
|
35
|
+
showContains: boolean;
|
|
36
|
+
renderExport: (value: string) => string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default BuyerNick;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
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); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
+
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); }
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
16
|
+
import GetFormItem from "../GetFormItem";
|
|
17
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
18
|
+
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
19
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
|
+
var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
21
|
+
var _this = this;
|
|
22
|
+
_classCallCheck(this, BuyerNick);
|
|
23
|
+
_defineProperty(this, "name", void 0);
|
|
24
|
+
_defineProperty(this, "id", void 0);
|
|
25
|
+
_defineProperty(this, "type", void 0);
|
|
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
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
33
|
+
_defineProperty(this, "effects", void 0);
|
|
34
|
+
_defineProperty(this, "align", void 0);
|
|
35
|
+
_defineProperty(this, "width", void 0);
|
|
36
|
+
_defineProperty(this, "render", function (value) {
|
|
37
|
+
return /*#__PURE__*/React.createElement("span", null, value);
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
40
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
41
|
+
id: _this.id,
|
|
42
|
+
label: _this.name,
|
|
43
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
44
|
+
}) : null;
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "editRender", function () {
|
|
47
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
48
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
49
|
+
title: _this.name,
|
|
50
|
+
name: _this.id,
|
|
51
|
+
rules: _this.rules,
|
|
52
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
53
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
57
|
+
var _this$effects;
|
|
58
|
+
if (value === undefined) {
|
|
59
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
60
|
+
}
|
|
61
|
+
var buyerOpenUid = (record === null || record === void 0 ? void 0 : record.buyerOpenUid) || Object.keys(record).reduce(function (prv, next) {
|
|
62
|
+
var _next$split = next.split('_'),
|
|
63
|
+
_next$split2 = _slicedToArray(_next$split, 2),
|
|
64
|
+
_ = _next$split2[0],
|
|
65
|
+
key = _next$split2[1];
|
|
66
|
+
if (key === 'enterprisePaymentBuyerOpenUid') {
|
|
67
|
+
prv = record[next];
|
|
68
|
+
}
|
|
69
|
+
return prv;
|
|
70
|
+
}, '');
|
|
71
|
+
return /*#__PURE__*/React.createElement("span", null, value && /*#__PURE__*/React.createElement(PlatBuyer, {
|
|
72
|
+
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
73
|
+
buyerNick: value,
|
|
74
|
+
buyerOpenUid: buyerOpenUid,
|
|
75
|
+
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
76
|
+
}));
|
|
77
|
+
});
|
|
78
|
+
_defineProperty(this, "renderExport", function (value) {
|
|
79
|
+
return value !== null && value !== void 0 ? value : '--';
|
|
80
|
+
});
|
|
81
|
+
_defineProperty(this, "getColumns", function () {
|
|
82
|
+
return {
|
|
83
|
+
title: _this.name,
|
|
84
|
+
align: _this.align,
|
|
85
|
+
dataIndex: _this.id,
|
|
86
|
+
width: _this.width,
|
|
87
|
+
dataType: _this.dataType,
|
|
88
|
+
canHidden: _this.canHidden,
|
|
89
|
+
canFilter: _this.canFilter,
|
|
90
|
+
canGroup: _this.canGroup,
|
|
91
|
+
type: _this.type,
|
|
92
|
+
render: _this.renderPc,
|
|
93
|
+
componentType: _this.editRender,
|
|
94
|
+
showContains: _this.showContains,
|
|
95
|
+
renderExport: _this.renderExport
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
this.name = '买家昵称';
|
|
99
|
+
this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
100
|
+
this.type = options.type;
|
|
101
|
+
this.canFilter = true;
|
|
102
|
+
this.canGroup = true;
|
|
103
|
+
this.canHidden = false;
|
|
104
|
+
this.showContains = false;
|
|
105
|
+
this.dataType = 'string';
|
|
106
|
+
this.componentConfig = options.componentConfig;
|
|
107
|
+
this.effects = options.effects;
|
|
108
|
+
this.rules = [];
|
|
109
|
+
this.align = 'left';
|
|
110
|
+
this.width = 200;
|
|
111
|
+
});
|
|
112
|
+
export default BuyerNick;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
|
|
3
|
+
declare class PaymentAmount implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
canFilter: boolean;
|
|
9
|
+
canGroup: boolean;
|
|
10
|
+
canHidden: boolean;
|
|
11
|
+
dataType: DataType;
|
|
12
|
+
showContains: boolean;
|
|
13
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
align: ALignType;
|
|
15
|
+
width: number;
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
render: (value: string) => JSX.Element;
|
|
18
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
20
|
+
renderExport: (value: string) => string;
|
|
21
|
+
editRender: () => JSX.Element;
|
|
22
|
+
getColumns: () => {
|
|
23
|
+
title: string;
|
|
24
|
+
align: ALignType;
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
width: number;
|
|
27
|
+
dataType: DataType;
|
|
28
|
+
canHidden: boolean;
|
|
29
|
+
canFilter: boolean;
|
|
30
|
+
canGroup: boolean;
|
|
31
|
+
type: string;
|
|
32
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
33
|
+
componentType: () => JSX.Element;
|
|
34
|
+
showContains: boolean;
|
|
35
|
+
renderExport: (value: string) => string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export default PaymentAmount;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 _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
|
+
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
|
+
import GetFormItem from "../GetFormItem";
|
|
11
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, PaymentAmount);
|
|
16
|
+
_defineProperty(this, "name", void 0);
|
|
17
|
+
_defineProperty(this, "id", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
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
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "align", void 0);
|
|
27
|
+
_defineProperty(this, "width", void 0);
|
|
28
|
+
_defineProperty(this, "render", function (value) {
|
|
29
|
+
return /*#__PURE__*/React.createElement("span", null, value);
|
|
30
|
+
});
|
|
31
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
32
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
|
+
id: _this.id,
|
|
34
|
+
label: _this.name,
|
|
35
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
36
|
+
}) : null;
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
39
|
+
return /*#__PURE__*/React.createElement("span", null, value !== null && value !== void 0 ? value : '--');
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderExport", function (value) {
|
|
42
|
+
return value !== null && value !== void 0 ? value : '--';
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "editRender", function () {
|
|
45
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
46
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
47
|
+
title: _this.name,
|
|
48
|
+
name: _this.id,
|
|
49
|
+
rules: _this.rules,
|
|
50
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
51
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getColumns", function () {
|
|
55
|
+
return {
|
|
56
|
+
title: _this.name,
|
|
57
|
+
align: _this.align,
|
|
58
|
+
dataIndex: _this.id,
|
|
59
|
+
width: _this.width,
|
|
60
|
+
dataType: _this.dataType,
|
|
61
|
+
canHidden: _this.canHidden,
|
|
62
|
+
canFilter: _this.canFilter,
|
|
63
|
+
canGroup: _this.canGroup,
|
|
64
|
+
type: _this.type,
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
componentType: _this.editRender,
|
|
67
|
+
showContains: _this.showContains,
|
|
68
|
+
renderExport: _this.renderExport
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
this.name = '打款金额';
|
|
72
|
+
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
73
|
+
this.type = options.type;
|
|
74
|
+
this.canFilter = true;
|
|
75
|
+
this.canGroup = true;
|
|
76
|
+
this.canHidden = false;
|
|
77
|
+
this.showContains = false;
|
|
78
|
+
this.dataType = 'number';
|
|
79
|
+
this.componentConfig = options.componentConfig;
|
|
80
|
+
this.rules = [{
|
|
81
|
+
validator: function validator(_, value) {
|
|
82
|
+
if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
|
|
83
|
+
return Promise.resolve();
|
|
84
|
+
}
|
|
85
|
+
return Promise.reject(new Error('打款金额最多支持俩位小数'));
|
|
86
|
+
}
|
|
87
|
+
}];
|
|
88
|
+
this.align = 'left';
|
|
89
|
+
this.width = 200;
|
|
90
|
+
});
|
|
91
|
+
export default PaymentAmount;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType } from '../../type';
|
|
3
|
+
declare class PaymentStatus implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
canFilter: boolean;
|
|
9
|
+
canGroup: boolean;
|
|
10
|
+
canHidden: boolean;
|
|
11
|
+
dataType: DataType;
|
|
12
|
+
showContains: boolean;
|
|
13
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
align: ALignType;
|
|
15
|
+
width: number;
|
|
16
|
+
paymentStatus: {
|
|
17
|
+
[prop in string]: string;
|
|
18
|
+
};
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
render: (value: string) => JSX.Element;
|
|
21
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
22
|
+
renderPc: (value: any, record: any) => any;
|
|
23
|
+
renderExport: (value: any) => any;
|
|
24
|
+
editRender: (value: any) => null;
|
|
25
|
+
getColumns: () => {
|
|
26
|
+
title: string;
|
|
27
|
+
align: ALignType;
|
|
28
|
+
dataIndex: string;
|
|
29
|
+
dataType: DataType;
|
|
30
|
+
canHidden: boolean;
|
|
31
|
+
canFilter: boolean;
|
|
32
|
+
canGroup: boolean;
|
|
33
|
+
width: number;
|
|
34
|
+
type: string;
|
|
35
|
+
render: (value: any, record: any) => any;
|
|
36
|
+
componentType: (value: any) => null;
|
|
37
|
+
showContains: boolean;
|
|
38
|
+
renderExport: (value: any) => any;
|
|
39
|
+
widget: string;
|
|
40
|
+
'x-options': {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}[];
|
|
44
|
+
'x-style': {
|
|
45
|
+
width: string;
|
|
46
|
+
};
|
|
47
|
+
'x-placeholder': string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export default PaymentStatus;
|