@kmkf-fe-packages/services-components 0.5.2-alpha.0 → 0.5.2-alpha.2
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 +3 -12
- package/dist/esm/components/ActualPayment/index.js +5 -22
- package/dist/esm/components/Address/index.d.ts +3 -12
- package/dist/esm/components/Address/index.js +4 -20
- package/dist/esm/components/Alipay/index.d.ts +3 -18
- package/dist/esm/components/Alipay/index.js +4 -18
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -13
- package/dist/esm/components/AlipayAccount/index.js +4 -21
- package/dist/esm/components/AlipayName/index.d.ts +3 -13
- package/dist/esm/components/AlipayName/index.js +4 -21
- package/dist/esm/components/BuyerNick/index.d.ts +3 -12
- package/dist/esm/components/BuyerNick/index.js +4 -22
- package/dist/esm/components/Cascader/index.d.ts +3 -24
- package/dist/esm/components/Cascader/index.js +12 -27
- package/dist/esm/components/Checkbox/index.d.ts +3 -11
- package/dist/esm/components/Checkbox/index.js +4 -20
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -11
- package/dist/esm/components/CommonDataTime/index.js +4 -20
- package/dist/esm/components/DataTime/index.d.ts +3 -11
- package/dist/esm/components/DataTime/index.js +5 -23
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -11
- package/dist/esm/components/EItemEnCode/index.js +4 -20
- package/dist/esm/components/EItemId/index.d.ts +3 -11
- package/dist/esm/components/EItemId/index.js +4 -20
- package/dist/esm/components/EItemSelect/index.d.ts +3 -11
- package/dist/esm/components/EItemSelect/index.js +4 -20
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -12
- package/dist/esm/components/ErpTradeId/index.js +4 -21
- package/dist/esm/components/Express/index.d.ts +3 -14
- package/dist/esm/components/Express/index.js +4 -29
- package/dist/esm/components/ExpressCode/index.d.ts +3 -13
- package/dist/esm/components/ExpressCode/index.js +4 -22
- package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -34
- package/dist/esm/components/FlowStatusSelect/index.js +4 -21
- package/dist/esm/components/Grade/index.d.ts +3 -11
- package/dist/esm/components/Grade/index.js +4 -20
- package/dist/esm/components/Input/index.d.ts +3 -12
- package/dist/esm/components/Input/index.js +6 -24
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -11
- package/dist/esm/components/JstItemSelect/index.js +4 -20
- package/dist/esm/components/JstLogistics/index.d.ts +3 -11
- package/dist/esm/components/JstLogistics/index.js +4 -20
- package/dist/esm/components/JstSendGood/index.d.ts +3 -11
- package/dist/esm/components/JstSendGood/index.js +4 -20
- package/dist/esm/components/JstSupply/index.d.ts +3 -11
- package/dist/esm/components/JstSupply/index.js +4 -20
- package/dist/esm/components/Logistics/index.d.ts +3 -25
- package/dist/esm/components/Logistics/index.js +4 -18
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +85 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +22 -0
- package/dist/esm/components/LogisticsInterception/index.js +73 -0
- package/dist/esm/components/MultSelect/index.d.ts +3 -11
- package/dist/esm/components/MultSelect/index.js +4 -20
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +4 -28
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -28
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -16
- package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -18
- package/dist/esm/components/Ordinary/index.d.ts +2 -21
- package/dist/esm/components/Ordinary/index.js +4 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -22
- package/dist/esm/components/Payment/AlipayNick.js +4 -28
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -21
- package/dist/esm/components/Payment/AlipayNo.js +4 -27
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -23
- package/dist/esm/components/Payment/AlipayTime.js +4 -29
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -22
- package/dist/esm/components/Payment/BuyerNick.js +4 -28
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -22
- package/dist/esm/components/Payment/PaymentAmount.js +4 -28
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -31
- package/dist/esm/components/Payment/PaymentStatus.js +4 -39
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -22
- package/dist/esm/components/Payment/PaymentTid.js +4 -28
- package/dist/esm/components/Payment/index.d.ts +3 -96
- package/dist/esm/components/Payment/index.js +4 -18
- package/dist/esm/components/Picture/index.d.ts +3 -10
- package/dist/esm/components/Picture/index.js +4 -19
- package/dist/esm/components/PlatForm/index.d.ts +19 -0
- package/dist/esm/components/PlatForm/index.js +46 -0
- package/dist/esm/components/Radio/index.d.ts +3 -11
- package/dist/esm/components/Radio/index.js +4 -20
- package/dist/esm/components/Rate/index.d.ts +3 -11
- package/dist/esm/components/Rate/index.js +4 -20
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -12
- package/dist/esm/components/ReceiverAddress/index.js +4 -20
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -12
- package/dist/esm/components/ReceiverMobile/index.js +4 -21
- package/dist/esm/components/ReceiverName/index.d.ts +3 -12
- package/dist/esm/components/ReceiverName/index.js +4 -21
- package/dist/esm/components/Remark/index.d.ts +3 -12
- package/dist/esm/components/Remark/index.js +4 -21
- package/dist/esm/components/ReturnLogistics/index.d.ts +2 -19
- package/dist/esm/components/ReturnLogistics/index.js +4 -8
- package/dist/esm/components/Select/index.d.ts +3 -11
- package/dist/esm/components/Select/index.js +4 -20
- package/dist/esm/components/ShopName/index.d.ts +3 -12
- package/dist/esm/components/ShopName/index.js +4 -20
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -12
- package/dist/esm/components/SystemOrderNo/index.js +4 -21
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -12
- package/dist/esm/components/TemplateSelect/index.js +4 -21
- package/dist/esm/components/TextArea/index.d.ts +3 -11
- package/dist/esm/components/TextArea/index.js +4 -20
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -11
- package/dist/esm/components/ThirdItemSelect/index.js +4 -20
- package/dist/esm/components/TradeDateTime/index.d.ts +2 -5
- package/dist/esm/components/TradeDateTime/index.js +4 -10
- package/dist/esm/components/TradeId/index.d.ts +2 -5
- package/dist/esm/components/TradeId/index.js +4 -10
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -12
- package/dist/esm/components/WorkOrderId/index.js +4 -21
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/type.d.ts +3 -30
- package/package.json +3 -3
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
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); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -22,13 +20,10 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
24
|
_defineProperty(this, "align", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
32
27
|
_defineProperty(this, "render", function (value) {
|
|
33
28
|
//兼容多个商品
|
|
34
29
|
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
@@ -68,22 +63,9 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
68
63
|
}))
|
|
69
64
|
});
|
|
70
65
|
});
|
|
71
|
-
_defineProperty(this, "getColumns", function () {
|
|
72
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
73
|
-
dataIndex: _this.id,
|
|
74
|
-
title: _this.name,
|
|
75
|
-
renderExport: _this.renderExport
|
|
76
|
-
});
|
|
77
|
-
;
|
|
78
|
-
});
|
|
79
66
|
this.name = options.name;
|
|
80
67
|
this.id = options.id;
|
|
81
68
|
this.type = options.type;
|
|
82
|
-
this.canFilter = false;
|
|
83
|
-
this.canGroup = false;
|
|
84
|
-
this.canHidden = true;
|
|
85
|
-
this.showContains = false;
|
|
86
|
-
this.dataType = 'string';
|
|
87
69
|
this.componentConfig = options.componentConfig;
|
|
88
70
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
89
71
|
required: true,
|
|
@@ -108,5 +90,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
108
90
|
}
|
|
109
91
|
}] : [];
|
|
110
92
|
this.align = 'left';
|
|
93
|
+
this.isCombinationComponent = false;
|
|
94
|
+
this.children = [];
|
|
111
95
|
});
|
|
112
96
|
export default JstSendGood;
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
3
3
|
declare class JstSupply 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;
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
13
|
render: (value: any) => JSX.Element;
|
|
17
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
18
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
16
|
renderExport: (value: any, record: any) => any;
|
|
20
17
|
editRender: () => JSX.Element;
|
|
21
|
-
getColumns: () => this & {
|
|
22
|
-
dataIndex: string;
|
|
23
|
-
title: string;
|
|
24
|
-
renderExport: (value: any, record: any) => any;
|
|
25
|
-
};
|
|
26
18
|
}
|
|
27
19
|
export default JstSupply;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
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); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -22,13 +20,10 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
24
|
_defineProperty(this, "align", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
32
27
|
_defineProperty(this, "render", function (value) {
|
|
33
28
|
//兼容多个商品
|
|
34
29
|
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
@@ -68,23 +63,12 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
68
63
|
}))
|
|
69
64
|
});
|
|
70
65
|
});
|
|
71
|
-
_defineProperty(this, "getColumns", function () {
|
|
72
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
73
|
-
dataIndex: _this.id,
|
|
74
|
-
title: _this.name,
|
|
75
|
-
renderExport: _this.renderExport
|
|
76
|
-
});
|
|
77
|
-
;
|
|
78
|
-
});
|
|
79
66
|
this.name = options.name;
|
|
80
67
|
this.id = options.id;
|
|
81
68
|
this.type = options.type;
|
|
82
|
-
this.canFilter = false;
|
|
83
|
-
this.canGroup = false;
|
|
84
|
-
this.canHidden = true;
|
|
85
|
-
this.showContains = false;
|
|
86
|
-
this.dataType = 'string';
|
|
87
69
|
this.componentConfig = options.componentConfig;
|
|
70
|
+
this.isCombinationComponent = false;
|
|
71
|
+
this.children = [];
|
|
88
72
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
89
73
|
required: true,
|
|
90
74
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
import Express from '../Express';
|
|
5
5
|
import ExpressCode from '../ExpressCode';
|
|
@@ -8,39 +8,17 @@ declare class Logistics implements ComponentInterface {
|
|
|
8
8
|
id: string;
|
|
9
9
|
type: string;
|
|
10
10
|
rules: any[];
|
|
11
|
-
canFilter: boolean;
|
|
12
|
-
canGroup: boolean;
|
|
13
|
-
canHidden: boolean;
|
|
14
|
-
dataType: DataType;
|
|
15
|
-
showContains: boolean;
|
|
16
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
17
12
|
expressDateInstance: ExpressData;
|
|
18
13
|
express: Express;
|
|
19
14
|
expressCode: ExpressCode;
|
|
15
|
+
isCombinationComponent: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
20
17
|
constructor(options: PickOption);
|
|
21
18
|
render: () => null;
|
|
22
19
|
editRender: (value: any) => JSX.Element;
|
|
23
20
|
renderClient: (record: Record) => JSX.Element;
|
|
24
21
|
renderPc: () => null;
|
|
25
22
|
renderExport: () => null;
|
|
26
|
-
getColumns: () => {
|
|
27
|
-
title: string;
|
|
28
|
-
children: ((Express & {
|
|
29
|
-
dataIndex: string;
|
|
30
|
-
title: string;
|
|
31
|
-
widget: JSX.Element;
|
|
32
|
-
groupFieldPath: string;
|
|
33
|
-
renderExport: (value: string, record: Record) => string | number;
|
|
34
|
-
render: (value: string, record: Record) => JSX.Element;
|
|
35
|
-
}) | (ExpressCode & {
|
|
36
|
-
dataIndex: string;
|
|
37
|
-
title: string;
|
|
38
|
-
groupFieldPath: string;
|
|
39
|
-
renderExport: (value: string, record: Record) => string;
|
|
40
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
41
|
-
}))[];
|
|
42
|
-
canHidden: boolean;
|
|
43
|
-
dataIndex: string;
|
|
44
|
-
};
|
|
45
23
|
}
|
|
46
24
|
export default Logistics;
|
|
@@ -22,15 +22,12 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
23
23
|
_defineProperty(this, "type", void 0);
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
26
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
32
27
|
_defineProperty(this, "express", void 0);
|
|
33
28
|
_defineProperty(this, "expressCode", void 0);
|
|
29
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
34
31
|
_defineProperty(this, "render", function () {
|
|
35
32
|
return null;
|
|
36
33
|
});
|
|
@@ -56,22 +53,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
56
53
|
_defineProperty(this, "renderExport", function () {
|
|
57
54
|
return null;
|
|
58
55
|
});
|
|
59
|
-
_defineProperty(this, "getColumns", function () {
|
|
60
|
-
return {
|
|
61
|
-
title: _this.name,
|
|
62
|
-
children: [_this.express.getColumns(), _this.expressCode.getColumns()],
|
|
63
|
-
canHidden: _this.canHidden,
|
|
64
|
-
dataIndex: _this.id
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
56
|
this.name = options.name;
|
|
68
57
|
this.id = options.id;
|
|
69
58
|
this.type = options.type;
|
|
70
|
-
this.canFilter = false;
|
|
71
|
-
this.canGroup = false;
|
|
72
|
-
this.canHidden = true;
|
|
73
|
-
this.showContains = false;
|
|
74
|
-
this.dataType = 'string';
|
|
75
59
|
this.componentConfig = options.componentConfig;
|
|
76
60
|
this.expressDateInstance = ExpressData.getInstance();
|
|
77
61
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -82,6 +66,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
82
66
|
name: '快递物流单号',
|
|
83
67
|
id: "".concat(this.id, "_expressLogisticsCode")
|
|
84
68
|
}));
|
|
69
|
+
this.isCombinationComponent = true;
|
|
70
|
+
this.children = [this.express, this.expressCode];
|
|
85
71
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
86
72
|
validator: function validator(_, value) {
|
|
87
73
|
var _this$componentConfig4;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
3
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
|
+
declare class PaymentTid implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
originId: string;
|
|
16
|
+
addressDateInstance: AddressData;
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
render: (value: any, record: any) => JSX.Element | null;
|
|
19
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
|
+
renderExport: (value: any, record: Record) => any;
|
|
22
|
+
editRender: () => JSX.Element;
|
|
23
|
+
}
|
|
24
|
+
export default PaymentTid;
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
_classCallCheck(this, PaymentTid);
|
|
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, "componentConfig", void 0);
|
|
22
|
+
_defineProperty(this, "effects", void 0);
|
|
23
|
+
_defineProperty(this, "align", void 0);
|
|
24
|
+
_defineProperty(this, "width", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
27
|
+
_defineProperty(this, "originId", void 0);
|
|
28
|
+
_defineProperty(this, "addressDateInstance", void 0);
|
|
29
|
+
_defineProperty(this, "render", function (value, record) {
|
|
30
|
+
var _ref;
|
|
31
|
+
var address = JSON.parse(record["".concat(_this.id, "_interceptAddress")] || '[]');
|
|
32
|
+
var detail = record["".concat(_this.id, "_interceptDetail")];
|
|
33
|
+
var name = record["".concat(_this.originId, "_interceptReceiverName")];
|
|
34
|
+
var mobile = record["".concat(_this.originId, "_interceptReceiverMobile")];
|
|
35
|
+
var addressText = (_ref = address || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
36
|
+
return _this.addressDateInstance.getNameByCode(suffix);
|
|
37
|
+
}).join('');
|
|
38
|
+
var hasValue = addressText || detail || name || mobile;
|
|
39
|
+
return hasValue ? /*#__PURE__*/React.createElement("div", null, [addressText, detail].join('/'), /*#__PURE__*/React.createElement("br", null), [name, mobile].join('/')) : null;
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
42
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
43
|
+
id: _this.id,
|
|
44
|
+
label: _this.name,
|
|
45
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
46
|
+
}) : null;
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
51
|
+
}
|
|
52
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
53
|
+
className: "pointer",
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
var _this$effects;
|
|
56
|
+
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
|
|
57
|
+
}
|
|
58
|
+
}, value);
|
|
59
|
+
});
|
|
60
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
|
+
return value !== null && value !== void 0 ? value : '--';
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "editRender", function () {
|
|
64
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
65
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
66
|
+
title: _this.name,
|
|
67
|
+
name: _this.id,
|
|
68
|
+
rules: _this.rules,
|
|
69
|
+
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,
|
|
70
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
this.name = '新派送地';
|
|
74
|
+
this.id = "".concat(options.id, "_interceptAddress");
|
|
75
|
+
this.type = options.type;
|
|
76
|
+
this.componentConfig = options.componentConfig;
|
|
77
|
+
this.rules = [];
|
|
78
|
+
this.align = 'left';
|
|
79
|
+
this.width = 200;
|
|
80
|
+
this.originId = options.id;
|
|
81
|
+
this.isCombinationComponent = false;
|
|
82
|
+
this.children = [];
|
|
83
|
+
this.addressDateInstance = AddressData.getInstance();
|
|
84
|
+
});
|
|
85
|
+
export default PaymentTid;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption } from '../../type';
|
|
3
|
+
import InterceptAddress from './InterceptAddress';
|
|
4
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
5
|
+
declare class Logistics implements ComponentInterface {
|
|
6
|
+
name: string;
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
interceptAddress: InterceptAddress;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
14
|
+
expressDateInstance: ExpressData;
|
|
15
|
+
constructor(options: PickOption);
|
|
16
|
+
render: () => null;
|
|
17
|
+
renderClient: (record: any) => JSX.Element;
|
|
18
|
+
renderPc: () => null;
|
|
19
|
+
renderExport: () => null;
|
|
20
|
+
editRender: (value: any) => JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
export default Logistics;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { LogisticsInterception } from '@kmkf-fe-packages/basic-components';
|
|
10
|
+
import GetFormItem from "../GetFormItem";
|
|
11
|
+
import InterceptAddress from "./InterceptAddress";
|
|
12
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, Logistics);
|
|
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, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "interceptAddress", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "children", void 0);
|
|
24
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
25
|
+
_defineProperty(this, "render", function () {
|
|
26
|
+
return null;
|
|
27
|
+
});
|
|
28
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.renderClient(record));
|
|
30
|
+
});
|
|
31
|
+
_defineProperty(this, "renderPc", function () {
|
|
32
|
+
return null;
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderExport", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "editRender", function (value) {
|
|
38
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
39
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
40
|
+
title: _this.name,
|
|
41
|
+
name: _this.id,
|
|
42
|
+
rules: _this.rules,
|
|
43
|
+
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,
|
|
44
|
+
component: /*#__PURE__*/React.createElement(LogisticsInterception, _this.componentConfig)
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
this.name = options.name;
|
|
48
|
+
this.id = options.id;
|
|
49
|
+
this.type = options.type;
|
|
50
|
+
this.componentConfig = options.componentConfig;
|
|
51
|
+
this.interceptAddress = new InterceptAddress(options);
|
|
52
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
53
|
+
this.isCombinationComponent = true;
|
|
54
|
+
this.children = [this.interceptAddress];
|
|
55
|
+
this.rules = [{
|
|
56
|
+
validator: function validator(_, value) {
|
|
57
|
+
var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre;
|
|
58
|
+
if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required && (!(value !== null && value !== void 0 && value.interceptCompany) || !value.interceptCode)) {
|
|
59
|
+
return Promise.reject(new Error('请填写物流信息'));
|
|
60
|
+
}
|
|
61
|
+
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.interceptType)) {
|
|
62
|
+
return Promise.reject(new Error('请选择拦截类型'));
|
|
63
|
+
}
|
|
64
|
+
var showAddress = _this.expressDateInstance.isShowNewAddress(value === null || value === void 0 ? void 0 : value.interceptCompany, value === null || value === void 0 ? void 0 : value.interceptType);
|
|
65
|
+
console.log(showAddress);
|
|
66
|
+
if (showAddress && (!(value !== null && value !== void 0 && (_value$interceptAddre = value.interceptAddress) !== null && _value$interceptAddre !== void 0 && _value$interceptAddre.length) || !(value !== null && value !== void 0 && value.interceptDetail) || !(value !== null && value !== void 0 && value.interceptReceiverName) || !(value !== null && value !== void 0 && value.interceptReceiverMobile))) {
|
|
67
|
+
return Promise.reject(new Error('请填写新派送地'));
|
|
68
|
+
}
|
|
69
|
+
return Promise.resolve();
|
|
70
|
+
}
|
|
71
|
+
}];
|
|
72
|
+
});
|
|
73
|
+
export default Logistics;
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
3
3
|
declare type Value = string[];
|
|
4
4
|
declare class BasicMultSelect implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
canFilter: boolean;
|
|
10
|
-
canGroup: boolean;
|
|
11
|
-
canHidden: boolean;
|
|
12
|
-
dataType: DataType;
|
|
13
|
-
showContains: boolean;
|
|
14
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
13
|
render: (value: Value) => JSX.Element;
|
|
17
14
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
16
|
renderExport: (value: any, record: Record) => any;
|
|
20
17
|
editRender: () => JSX.Element;
|
|
21
|
-
getColumns: () => this & {
|
|
22
|
-
dataIndex: string;
|
|
23
|
-
title: string;
|
|
24
|
-
renderExport: (value: any, record: Record) => any;
|
|
25
|
-
};
|
|
26
18
|
}
|
|
27
19
|
export default BasicMultSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
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); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -20,12 +18,9 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
20
18
|
_defineProperty(this, "id", void 0);
|
|
21
19
|
_defineProperty(this, "type", void 0);
|
|
22
20
|
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "canFilter", void 0);
|
|
24
|
-
_defineProperty(this, "canGroup", void 0);
|
|
25
|
-
_defineProperty(this, "canHidden", void 0);
|
|
26
|
-
_defineProperty(this, "dataType", void 0);
|
|
27
|
-
_defineProperty(this, "showContains", void 0);
|
|
28
21
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "children", void 0);
|
|
29
24
|
_defineProperty(this, "render", function (value) {
|
|
30
25
|
return /*#__PURE__*/React.createElement("span", null, " ", value === null || value === void 0 ? void 0 : value.join(','));
|
|
31
26
|
});
|
|
@@ -62,23 +57,12 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
62
57
|
}))
|
|
63
58
|
});
|
|
64
59
|
});
|
|
65
|
-
_defineProperty(this, "getColumns", function () {
|
|
66
|
-
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
67
|
-
dataIndex: _this.id,
|
|
68
|
-
title: _this.name,
|
|
69
|
-
renderExport: _this.renderExport
|
|
70
|
-
});
|
|
71
|
-
;
|
|
72
|
-
});
|
|
73
60
|
this.name = options.name;
|
|
74
61
|
this.id = options.id;
|
|
75
62
|
this.type = options.type;
|
|
76
|
-
this.canFilter = false;
|
|
77
|
-
this.canGroup = false;
|
|
78
|
-
this.canHidden = true;
|
|
79
|
-
this.showContains = false;
|
|
80
|
-
this.dataType = 'array';
|
|
81
63
|
this.componentConfig = options.componentConfig;
|
|
82
64
|
this.rules = [];
|
|
65
|
+
this.isCombinationComponent = false;
|
|
66
|
+
this.children = [];
|
|
83
67
|
});
|
|
84
68
|
export default BasicMultSelect;
|
|
@@ -1,40 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ALignType } from '../../type';
|
|
3
3
|
declare class OrdinaryHeader 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
15
|
render: (value: string) => JSX.Element;
|
|
19
16
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
17
|
renderPc: (value: any) => any;
|
|
21
18
|
renderExport: (value: any) => any;
|
|
22
19
|
editRender: () => JSX.Element;
|
|
23
|
-
getColumns: () => {
|
|
24
|
-
title: string;
|
|
25
|
-
align: ALignType;
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
canHidden: boolean;
|
|
29
|
-
canFilter: boolean;
|
|
30
|
-
canGroup: boolean;
|
|
31
|
-
type: string;
|
|
32
|
-
render: (value: any) => any;
|
|
33
|
-
renderPc: (value: any) => any;
|
|
34
|
-
componentType: () => JSX.Element;
|
|
35
|
-
showContains: boolean;
|
|
36
|
-
renderExport: (value: any) => any;
|
|
37
|
-
width: number;
|
|
38
|
-
};
|
|
39
20
|
}
|
|
40
21
|
export default OrdinaryHeader;
|
|
@@ -18,15 +18,12 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(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, "effects", void 0);
|
|
28
23
|
_defineProperty(this, "align", void 0);
|
|
29
24
|
_defineProperty(this, "width", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
30
27
|
_defineProperty(this, "render", function (value) {
|
|
31
28
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
32
29
|
});
|
|
@@ -59,36 +56,15 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
59
56
|
}))
|
|
60
57
|
});
|
|
61
58
|
});
|
|
62
|
-
_defineProperty(this, "getColumns", function () {
|
|
63
|
-
return {
|
|
64
|
-
title: _this.name,
|
|
65
|
-
align: _this.align,
|
|
66
|
-
dataIndex: _this.id,
|
|
67
|
-
dataType: _this.dataType,
|
|
68
|
-
canHidden: _this.canHidden,
|
|
69
|
-
canFilter: _this.canFilter,
|
|
70
|
-
canGroup: _this.canGroup,
|
|
71
|
-
type: _this.type,
|
|
72
|
-
render: _this.renderPc,
|
|
73
|
-
renderPc: _this.renderPc,
|
|
74
|
-
componentType: _this.editRender,
|
|
75
|
-
showContains: _this.showContains,
|
|
76
|
-
renderExport: _this.renderExport,
|
|
77
|
-
width: _this.width
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
59
|
this.name = '发票抬头';
|
|
81
60
|
this.id = "".concat(options.id, "_ordinaryTaitou");
|
|
82
61
|
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
62
|
this.componentConfig = options.componentConfig;
|
|
89
63
|
this.rules = [];
|
|
90
64
|
this.align = 'left';
|
|
91
65
|
this.effects = options.effects;
|
|
92
66
|
this.width = 200;
|
|
67
|
+
this.isCombinationComponent = false;
|
|
68
|
+
this.children = [];
|
|
93
69
|
});
|
|
94
70
|
export default OrdinaryHeader;
|