@kmkf-fe-packages/services-components 0.5.2-alpha.1 → 0.6.0-alpha.1
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 +12 -3
- package/dist/esm/components/ActualPayment/index.js +22 -5
- package/dist/esm/components/Address/index.d.ts +12 -3
- package/dist/esm/components/Address/index.js +20 -4
- package/dist/esm/components/Alipay/index.d.ts +18 -3
- package/dist/esm/components/Alipay/index.js +18 -4
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -3
- package/dist/esm/components/AlipayAccount/index.js +21 -4
- package/dist/esm/components/AlipayName/index.d.ts +13 -3
- package/dist/esm/components/AlipayName/index.js +21 -4
- package/dist/esm/components/BuyerNick/index.d.ts +12 -3
- package/dist/esm/components/BuyerNick/index.js +27 -8
- package/dist/esm/components/Cascader/index.d.ts +24 -3
- package/dist/esm/components/Cascader/index.js +27 -12
- package/dist/esm/components/Checkbox/index.d.ts +11 -3
- package/dist/esm/components/Checkbox/index.js +20 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -3
- package/dist/esm/components/CommonDataTime/index.js +20 -4
- package/dist/esm/components/DataTime/index.d.ts +11 -3
- package/dist/esm/components/DataTime/index.js +23 -5
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -3
- package/dist/esm/components/EItemEnCode/index.js +20 -4
- package/dist/esm/components/EItemId/index.d.ts +11 -3
- package/dist/esm/components/EItemId/index.js +20 -4
- package/dist/esm/components/EItemSelect/index.d.ts +11 -3
- package/dist/esm/components/EItemSelect/index.js +25 -10
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -3
- package/dist/esm/components/ErpTradeId/index.js +21 -4
- package/dist/esm/components/Express/index.d.ts +14 -3
- package/dist/esm/components/Express/index.js +29 -4
- package/dist/esm/components/ExpressCode/index.d.ts +13 -3
- package/dist/esm/components/ExpressCode/index.js +22 -4
- package/dist/esm/components/FlowStatusSelect/index.d.ts +34 -4
- package/dist/esm/components/FlowStatusSelect/index.js +21 -4
- package/dist/esm/components/Grade/index.d.ts +11 -3
- package/dist/esm/components/Grade/index.js +20 -4
- package/dist/esm/components/Input/index.d.ts +12 -3
- package/dist/esm/components/Input/index.js +24 -6
- package/dist/esm/components/JstItemSelect/index.d.ts +11 -3
- package/dist/esm/components/JstItemSelect/index.js +20 -4
- package/dist/esm/components/JstLogistics/index.d.ts +11 -3
- package/dist/esm/components/JstLogistics/index.js +20 -4
- package/dist/esm/components/JstSendGood/index.d.ts +11 -3
- package/dist/esm/components/JstSendGood/index.js +20 -4
- package/dist/esm/components/JstSupply/index.d.ts +11 -3
- package/dist/esm/components/JstSupply/index.js +20 -4
- package/dist/esm/components/Logistics/index.d.ts +25 -3
- package/dist/esm/components/Logistics/index.js +18 -4
- package/dist/esm/components/MultSelect/index.d.ts +11 -3
- package/dist/esm/components/MultSelect/index.js +20 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +22 -3
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +28 -4
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +22 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +28 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -2
- package/dist/esm/components/Ordinary/OrdinarySerial.js +18 -4
- package/dist/esm/components/Ordinary/index.d.ts +21 -2
- package/dist/esm/components/Ordinary/index.js +8 -4
- package/dist/esm/components/Payment/AlipayNick.d.ts +22 -3
- package/dist/esm/components/Payment/AlipayNick.js +28 -4
- package/dist/esm/components/Payment/AlipayNo.d.ts +21 -3
- package/dist/esm/components/Payment/AlipayNo.js +27 -4
- package/dist/esm/components/Payment/AlipayTime.d.ts +23 -3
- package/dist/esm/components/Payment/AlipayTime.js +29 -4
- package/dist/esm/components/Payment/BuyerNick.d.ts +22 -3
- package/dist/esm/components/Payment/BuyerNick.js +28 -4
- package/dist/esm/components/Payment/PaymentAmount.d.ts +22 -3
- package/dist/esm/components/Payment/PaymentAmount.js +28 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +31 -3
- package/dist/esm/components/Payment/PaymentStatus.js +39 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +22 -3
- package/dist/esm/components/Payment/PaymentTid.js +28 -4
- package/dist/esm/components/Payment/index.d.ts +96 -3
- package/dist/esm/components/Payment/index.js +18 -4
- package/dist/esm/components/Picture/index.d.ts +10 -3
- package/dist/esm/components/Picture/index.js +19 -4
- package/dist/esm/components/Radio/index.d.ts +11 -3
- package/dist/esm/components/Radio/index.js +20 -4
- package/dist/esm/components/Rate/index.d.ts +11 -3
- package/dist/esm/components/Rate/index.js +20 -4
- package/dist/esm/components/ReceiverAddress/index.d.ts +12 -3
- package/dist/esm/components/ReceiverAddress/index.js +20 -4
- package/dist/esm/components/ReceiverMobile/index.d.ts +12 -3
- package/dist/esm/components/ReceiverMobile/index.js +21 -4
- package/dist/esm/components/ReceiverName/index.d.ts +12 -3
- package/dist/esm/components/ReceiverName/index.js +21 -4
- package/dist/esm/components/Remark/index.d.ts +12 -3
- package/dist/esm/components/Remark/index.js +21 -4
- package/dist/esm/components/ReturnLogistics/index.d.ts +19 -2
- package/dist/esm/components/ReturnLogistics/index.js +8 -4
- package/dist/esm/components/Select/index.d.ts +11 -3
- package/dist/esm/components/Select/index.js +20 -4
- package/dist/esm/components/ShopName/index.d.ts +12 -3
- package/dist/esm/components/ShopName/index.js +20 -4
- package/dist/esm/components/SystemOrderNo/index.d.ts +12 -3
- package/dist/esm/components/SystemOrderNo/index.js +21 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +12 -3
- package/dist/esm/components/TemplateSelect/index.js +21 -4
- package/dist/esm/components/TextArea/index.d.ts +11 -3
- package/dist/esm/components/TextArea/index.js +20 -4
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -3
- package/dist/esm/components/ThirdItemSelect/index.js +20 -4
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -2
- package/dist/esm/components/TradeDateTime/index.js +10 -4
- package/dist/esm/components/TradeId/index.d.ts +5 -2
- package/dist/esm/components/TradeId/index.js +10 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +12 -3
- package/dist/esm/components/WorkOrderId/index.js +21 -4
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/type.d.ts +30 -3
- package/package.json +4 -4
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -24
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -85
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -22
- package/dist/esm/components/LogisticsInterception/index.js +0 -73
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare class BasicInput 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
-
isCombinationComponent: boolean;
|
|
10
|
-
children: ComponentInterface[];
|
|
11
14
|
constructor(options: PickOption);
|
|
12
15
|
render: (value: string) => JSX.Element;
|
|
13
16
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
17
|
renderExport: (value: any, record: Record) => any;
|
|
15
18
|
renderClient: (record: Record) => JSX.Element | null;
|
|
16
19
|
editRender: () => JSX.Element;
|
|
20
|
+
getColumns: () => this & {
|
|
21
|
+
dataIndex: string;
|
|
22
|
+
title: string;
|
|
23
|
+
renderExport: (value: any, record: Record) => any;
|
|
24
|
+
};
|
|
17
25
|
}
|
|
18
26
|
export default BasicInput;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _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); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -18,9 +20,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
18
20
|
_defineProperty(this, "id", void 0);
|
|
19
21
|
_defineProperty(this, "type", void 0);
|
|
20
22
|
_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);
|
|
21
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
-
_defineProperty(this, "children", void 0);
|
|
24
29
|
_defineProperty(this, "render", function (value) {
|
|
25
30
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
26
31
|
});
|
|
@@ -51,12 +56,23 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
51
56
|
}))
|
|
52
57
|
});
|
|
53
58
|
});
|
|
59
|
+
_defineProperty(this, "getColumns", function () {
|
|
60
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
61
|
+
dataIndex: _this.id,
|
|
62
|
+
title: _this.name,
|
|
63
|
+
renderExport: _this.renderExport
|
|
64
|
+
});
|
|
65
|
+
;
|
|
66
|
+
});
|
|
54
67
|
this.name = options.name;
|
|
55
68
|
this.id = options.id;
|
|
56
69
|
this.type = options.type;
|
|
70
|
+
this.canFilter = true;
|
|
71
|
+
this.canGroup = true;
|
|
72
|
+
this.canHidden = true;
|
|
73
|
+
this.showContains = true;
|
|
74
|
+
this.dataType = 'string';
|
|
57
75
|
this.componentConfig = options.componentConfig;
|
|
58
76
|
this.rules = [];
|
|
59
|
-
this.isCombinationComponent = false;
|
|
60
|
-
this.children = [];
|
|
61
77
|
});
|
|
62
78
|
export default BasicInput;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
3
3
|
declare class ThirdItemSelect 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
effects: ComponentInterface["effects"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
children: ComponentInterface[];
|
|
12
15
|
constructor(options: PickOption);
|
|
13
16
|
render: (value: any) => JSX.Element;
|
|
14
17
|
renderClient: (record: Record) => JSX.Element | null;
|
|
15
18
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
19
|
renderExport: (value: any, record: Record) => any;
|
|
17
20
|
editRender: () => JSX.Element;
|
|
21
|
+
getColumns: () => this & {
|
|
22
|
+
dataIndex: string;
|
|
23
|
+
title: string;
|
|
24
|
+
renderExport: (value: any, record: Record) => any;
|
|
25
|
+
};
|
|
18
26
|
}
|
|
19
27
|
export default ThirdItemSelect;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _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); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -20,10 +22,13 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
20
22
|
_defineProperty(this, "id", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
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);
|
|
23
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
31
|
_defineProperty(this, "effects", void 0);
|
|
25
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
32
|
_defineProperty(this, "render", function (value) {
|
|
28
33
|
//兼容多个商品
|
|
29
34
|
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
@@ -71,13 +76,24 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
71
76
|
}))
|
|
72
77
|
});
|
|
73
78
|
});
|
|
79
|
+
_defineProperty(this, "getColumns", function () {
|
|
80
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
81
|
+
dataIndex: _this.id,
|
|
82
|
+
title: _this.name,
|
|
83
|
+
renderExport: _this.renderExport
|
|
84
|
+
});
|
|
85
|
+
;
|
|
86
|
+
});
|
|
74
87
|
this.name = options.name || '供应商编码/名称';
|
|
75
88
|
this.id = options.id;
|
|
76
89
|
this.type = options.type;
|
|
90
|
+
this.canFilter = false;
|
|
91
|
+
this.canGroup = false;
|
|
92
|
+
this.canHidden = true;
|
|
93
|
+
this.showContains = false;
|
|
94
|
+
this.dataType = 'string';
|
|
77
95
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
78
96
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
79
|
-
this.isCombinationComponent = false;
|
|
80
|
-
this.children = [];
|
|
81
97
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
82
98
|
required: true,
|
|
83
99
|
validator: function validator(_, value) {
|
|
@@ -12,13 +12,16 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
12
12
|
dataType: DataType;
|
|
13
13
|
showContains: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
|
-
isCombinationComponent: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
15
|
constructor(options: PickOption);
|
|
18
16
|
render: (value: Value) => JSX.Element;
|
|
19
17
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
18
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
21
19
|
renderExport: (value: unknown, record: Record) => any;
|
|
22
20
|
editRender: () => JSX.Element;
|
|
21
|
+
getColumns: () => this & {
|
|
22
|
+
dataIndex: string;
|
|
23
|
+
title: string;
|
|
24
|
+
renderExport: (value: unknown, record: Record) => any;
|
|
25
|
+
};
|
|
23
26
|
}
|
|
24
27
|
export default BasicDataTime;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _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); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -24,8 +26,6 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
24
26
|
_defineProperty(this, "dataType", void 0);
|
|
25
27
|
_defineProperty(this, "showContains", void 0);
|
|
26
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "children", void 0);
|
|
29
29
|
_defineProperty(this, "render", function (value) {
|
|
30
30
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
|
|
31
31
|
});
|
|
@@ -70,6 +70,14 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
70
70
|
}))
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
+
_defineProperty(this, "getColumns", function () {
|
|
74
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
75
|
+
dataIndex: _this.id,
|
|
76
|
+
title: _this.name,
|
|
77
|
+
renderExport: _this.renderExport
|
|
78
|
+
});
|
|
79
|
+
;
|
|
80
|
+
});
|
|
73
81
|
this.name = options.name;
|
|
74
82
|
this.id = options.id;
|
|
75
83
|
this.type = options.type;
|
|
@@ -80,7 +88,5 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
80
88
|
this.dataType = 'date';
|
|
81
89
|
this.componentConfig = options.componentConfig;
|
|
82
90
|
this.rules = [];
|
|
83
|
-
this.isCombinationComponent = false;
|
|
84
|
-
this.children = [];
|
|
85
91
|
});
|
|
86
92
|
export default BasicDataTime;
|
|
@@ -13,13 +13,16 @@ declare class ETradeId implements ComponentInterface {
|
|
|
13
13
|
onlyContainsString: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
|
-
isCombinationComponent: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
16
|
constructor(options: PickOption);
|
|
19
17
|
render: (value: string) => JSX.Element;
|
|
20
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
19
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
20
|
renderExport: (value: unknown, record: Record) => any;
|
|
23
21
|
editRender: (value: any) => JSX.Element;
|
|
22
|
+
getColumns: () => this & {
|
|
23
|
+
dataIndex: string;
|
|
24
|
+
title: string;
|
|
25
|
+
componentType: (value: any) => JSX.Element;
|
|
26
|
+
};
|
|
24
27
|
}
|
|
25
28
|
export default ETradeId;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _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); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -26,8 +28,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
26
28
|
_defineProperty(this, "onlyContainsString", void 0);
|
|
27
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
30
|
_defineProperty(this, "effects", void 0);
|
|
29
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "render", function (value) {
|
|
32
32
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
33
33
|
});
|
|
@@ -65,6 +65,14 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
65
65
|
}))
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
+
_defineProperty(this, "getColumns", function () {
|
|
69
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
70
|
+
dataIndex: _this.id,
|
|
71
|
+
title: _this.name,
|
|
72
|
+
componentType: _this.editRender
|
|
73
|
+
});
|
|
74
|
+
;
|
|
75
|
+
});
|
|
68
76
|
this.name = options.name;
|
|
69
77
|
this.id = options.id;
|
|
70
78
|
this.type = options.type;
|
|
@@ -77,7 +85,5 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
77
85
|
this.componentConfig = options.componentConfig;
|
|
78
86
|
this.effects = options.effects;
|
|
79
87
|
this.rules = [];
|
|
80
|
-
this.isCombinationComponent = false;
|
|
81
|
-
this.children = [];
|
|
82
88
|
});
|
|
83
89
|
export default ETradeId;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType } from '../../type';
|
|
3
3
|
declare class WorkOrderId 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
effects: ComponentInterface["effects"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
children: ComponentInterface[];
|
|
12
15
|
constructor(options: PickOption);
|
|
13
16
|
copyHandle: (text: string) => void;
|
|
14
17
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
@@ -16,5 +19,11 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
16
19
|
render: () => null;
|
|
17
20
|
renderClient: () => null;
|
|
18
21
|
editRender: () => JSX.Element;
|
|
22
|
+
getColumns: () => this & {
|
|
23
|
+
dataIndex: string;
|
|
24
|
+
title: string;
|
|
25
|
+
componentType: () => JSX.Element;
|
|
26
|
+
renderExport: (value: any, record: any) => any;
|
|
27
|
+
};
|
|
19
28
|
}
|
|
20
29
|
export default WorkOrderId;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
function _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); }
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -20,10 +22,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
20
22
|
_defineProperty(this, "id", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
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);
|
|
23
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
31
|
_defineProperty(this, "effects", void 0);
|
|
25
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
32
|
_defineProperty(this, "copyHandle", function (text) {
|
|
28
33
|
copy(text);
|
|
29
34
|
message.success('复制成功');
|
|
@@ -73,12 +78,24 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
73
78
|
}))
|
|
74
79
|
});
|
|
75
80
|
});
|
|
81
|
+
_defineProperty(this, "getColumns", function () {
|
|
82
|
+
return _objectSpread(_objectSpread({}, _this), {}, {
|
|
83
|
+
dataIndex: _this.id,
|
|
84
|
+
title: _this.name,
|
|
85
|
+
componentType: _this.editRender,
|
|
86
|
+
renderExport: _this.renderExport
|
|
87
|
+
});
|
|
88
|
+
;
|
|
89
|
+
});
|
|
76
90
|
this.name = options.name;
|
|
77
91
|
this.id = options.id;
|
|
78
92
|
this.type = options.type;
|
|
93
|
+
this.canFilter = true;
|
|
94
|
+
this.canGroup = true;
|
|
95
|
+
this.canHidden = true;
|
|
96
|
+
this.dataType = 'string';
|
|
97
|
+
this.showContains = true;
|
|
79
98
|
this.componentConfig = options.componentConfig;
|
|
80
99
|
this.rules = [];
|
|
81
|
-
this.isCombinationComponent = false;
|
|
82
|
-
this.children = [];
|
|
83
100
|
});
|
|
84
101
|
export default WorkOrderId;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -38,4 +38,3 @@ export { default as JstSupply } from './components/JstSupply';
|
|
|
38
38
|
export { default as FlowStatusSelect } from './components/FlowStatusSelect';
|
|
39
39
|
export { default as TemplateSelect } from './components/TemplateSelect';
|
|
40
40
|
export { default as WorkOrderId } from './components/WorkOrderId';
|
|
41
|
-
export { default as LogisticsInterception } from './components/LogisticsInterception';
|
package/dist/esm/index.js
CHANGED
|
@@ -37,5 +37,4 @@ export { default as JstSendGood } from "./components/JstSendGood";
|
|
|
37
37
|
export { default as JstSupply } from "./components/JstSupply";
|
|
38
38
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
39
39
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
40
|
-
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
41
|
-
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
40
|
+
export { default as WorkOrderId } from "./components/WorkOrderId";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -5,15 +5,39 @@ export declare type ALignType = 'left' | 'right' | 'center';
|
|
|
5
5
|
export declare type Record = {
|
|
6
6
|
[props in string]: any;
|
|
7
7
|
};
|
|
8
|
+
declare interface ResultColumnsInterface {
|
|
9
|
+
title: string;
|
|
10
|
+
align?: ALignType;
|
|
11
|
+
children?: ResultColumnsInterface[];
|
|
12
|
+
dataIndex?: string | number;
|
|
13
|
+
dataType?: string;
|
|
14
|
+
canHidden?: boolean;
|
|
15
|
+
canFilter?: boolean;
|
|
16
|
+
canGroup?: boolean;
|
|
17
|
+
editable?: boolean;
|
|
18
|
+
width?: number;
|
|
19
|
+
render?: (v: any, r: any) => JSX.Element | null;
|
|
20
|
+
renderPc?: (v: any, r: any) => JSX.Element | null;
|
|
21
|
+
componentType?: (v: any) => JSX.Element | null;
|
|
22
|
+
[prop: string]: any;
|
|
23
|
+
}
|
|
8
24
|
export interface ComponentInterface {
|
|
9
25
|
id: string;
|
|
10
26
|
name: string;
|
|
11
27
|
type: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
showContains?: boolean;
|
|
29
|
+
dataType?: DataType;
|
|
30
|
+
canHidden?: boolean;
|
|
31
|
+
canFilter?: boolean;
|
|
32
|
+
canGroup?: boolean;
|
|
15
33
|
width?: number;
|
|
16
34
|
align?: ALignType;
|
|
35
|
+
dataIndex?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated 已弃用字段,不会再用任何意义
|
|
38
|
+
*/
|
|
39
|
+
editable?: boolean;
|
|
40
|
+
rules?: any[];
|
|
17
41
|
/**
|
|
18
42
|
* @description 组件下标
|
|
19
43
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -115,6 +139,7 @@ export interface ComponentInterface {
|
|
|
115
139
|
shopList?: any[];
|
|
116
140
|
shopId?: string;
|
|
117
141
|
};
|
|
142
|
+
render: (v: any, record: Record) => JSX.Element | null;
|
|
118
143
|
/**
|
|
119
144
|
* 客户端卡片字段渲染,record的格式为下面这种,可以直接使用
|
|
120
145
|
* {
|
|
@@ -144,5 +169,7 @@ export interface ComponentInterface {
|
|
|
144
169
|
formItemIndex?: number;
|
|
145
170
|
onBlur?: (p1: any, p2: any) => void;
|
|
146
171
|
}) => JSX.Element | null;
|
|
172
|
+
getColumns?: () => ResultColumnsInterface;
|
|
147
173
|
}
|
|
148
174
|
export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects'>;
|
|
175
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-alpha.1",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"father": "^4.1.7"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "^0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "^0.6.0-alpha.1",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.6.0-alpha.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"gitHooks": {
|
|
36
36
|
"pre-commit": "lint-staged"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "ffacd4ef83d8b0e323d65b183e4ab0d0da9ae732"
|
|
39
39
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1,85 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|