@kmkf-fe-packages/services-components 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +3 -3
- package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/ActualPayment/index.d.ts +15 -16
- package/dist/esm/components/ActualPayment/index.js +28 -26
- package/dist/esm/components/Address/index.d.ts +12 -19
- package/dist/esm/components/Address/index.js +17 -26
- package/dist/esm/components/Alipay/index.d.ts +18 -22
- package/dist/esm/components/Alipay/index.js +15 -20
- package/dist/esm/components/AlipayAccount/index.d.ts +15 -17
- package/dist/esm/components/AlipayAccount/index.js +29 -28
- package/dist/esm/components/AlipayName/index.d.ts +15 -17
- package/dist/esm/components/AlipayName/index.js +29 -28
- package/dist/esm/components/BuyerNick/index.d.ts +18 -19
- package/dist/esm/components/BuyerNick/index.js +41 -28
- package/dist/esm/components/Cascader/index.d.ts +16 -28
- package/dist/esm/components/Cascader/index.js +38 -31
- package/dist/esm/components/Checkbox/index.d.ts +19 -15
- package/dist/esm/components/Checkbox/index.js +45 -26
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +14 -14
- package/dist/esm/components/CommonDataTime/index.js +27 -24
- package/dist/esm/components/CompletedUser/index.d.ts +30 -0
- package/dist/esm/components/CompletedUser/index.js +64 -0
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/DataTime/index.d.ts +17 -16
- package/dist/esm/components/DataTime/index.js +30 -26
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +15 -15
- package/dist/esm/components/EItemEnCode/index.js +34 -27
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemId/index.d.ts +15 -15
- package/dist/esm/components/EItemId/index.js +34 -27
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/EItemSelect/index.d.ts +10 -16
- package/dist/esm/components/EItemSelect/index.js +16 -24
- package/dist/esm/components/ErpTradeId/index.d.ts +15 -16
- package/dist/esm/components/ErpTradeId/index.js +28 -26
- package/dist/esm/components/Express/index.d.ts +18 -20
- package/dist/esm/components/Express/index.js +30 -36
- package/dist/esm/components/ExpressCode/index.d.ts +16 -18
- package/dist/esm/components/ExpressCode/index.js +34 -32
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +20 -38
- package/dist/esm/components/FlowStatusSelect/index.js +38 -25
- package/dist/esm/components/GetFormItem/index.d.ts +3 -3
- package/dist/esm/components/GetFormItem/index.js +3 -3
- package/dist/esm/components/Grade/index.d.ts +10 -16
- package/dist/esm/components/Grade/index.js +14 -23
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +74 -0
- package/dist/esm/components/Input/index.d.ts +15 -16
- package/dist/esm/components/Input/index.js +29 -28
- package/dist/esm/components/JstItemSelect/index.d.ts +17 -17
- package/dist/esm/components/JstItemSelect/index.js +48 -28
- package/dist/esm/components/JstLogistics/index.d.ts +25 -17
- package/dist/esm/components/JstLogistics/index.js +50 -29
- package/dist/esm/components/JstSendGood/index.d.ts +16 -16
- package/dist/esm/components/JstSendGood/index.js +54 -29
- package/dist/esm/components/JstSupply/index.d.ts +16 -16
- package/dist/esm/components/JstSupply/index.js +54 -29
- package/dist/esm/components/Logistics/index.d.ts +26 -30
- package/dist/esm/components/Logistics/index.js +19 -20
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +74 -0
- package/dist/esm/components/LogisticsInterception/index.js +133 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
- package/dist/esm/components/MultSelect/index.d.ts +16 -16
- package/dist/esm/components/MultSelect/index.js +31 -24
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +14 -25
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +14 -25
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +14 -20
- package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
- package/dist/esm/components/Ordinary/index.d.ts +19 -26
- package/dist/esm/components/Ordinary/index.js +20 -12
- package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayNick.d.ts +14 -25
- package/dist/esm/components/Payment/AlipayNick.js +29 -34
- package/dist/esm/components/Payment/AlipayNo.d.ts +14 -24
- package/dist/esm/components/Payment/AlipayNo.js +29 -34
- package/dist/esm/components/Payment/AlipayTime.d.ts +14 -26
- package/dist/esm/components/Payment/AlipayTime.js +26 -35
- package/dist/esm/components/Payment/BuyerNick.d.ts +14 -25
- package/dist/esm/components/Payment/BuyerNick.js +26 -32
- package/dist/esm/components/Payment/PaymentAmount.d.ts +14 -25
- package/dist/esm/components/Payment/PaymentAmount.js +24 -30
- package/dist/esm/components/Payment/PaymentStatus.d.ts +19 -31
- package/dist/esm/components/Payment/PaymentStatus.js +48 -41
- package/dist/esm/components/Payment/PaymentTid.d.ts +14 -25
- package/dist/esm/components/Payment/PaymentTid.js +24 -30
- package/dist/esm/components/Payment/index.d.ts +39 -100
- package/dist/esm/components/Payment/index.js +22 -20
- package/dist/esm/components/Picture/index.d.ts +15 -15
- package/dist/esm/components/Picture/index.js +14 -19
- package/dist/esm/components/PlatForm/index.d.ts +31 -0
- package/dist/esm/components/PlatForm/index.js +67 -0
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/Radio/index.d.ts +20 -15
- package/dist/esm/components/Radio/index.js +34 -20
- package/dist/esm/components/Rate/index.d.ts +11 -16
- package/dist/esm/components/Rate/index.js +17 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +14 -17
- package/dist/esm/components/ReceiverAddress/index.js +22 -29
- package/dist/esm/components/ReceiverMobile/index.d.ts +15 -16
- package/dist/esm/components/ReceiverMobile/index.js +29 -27
- package/dist/esm/components/ReceiverName/index.d.ts +15 -16
- package/dist/esm/components/ReceiverName/index.js +29 -27
- package/dist/esm/components/Remark/index.d.ts +19 -16
- package/dist/esm/components/Remark/index.js +31 -23
- package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
- package/dist/esm/components/ReturnLogistics/index.js +19 -10
- package/dist/esm/components/Select/index.d.ts +16 -15
- package/dist/esm/components/Select/index.js +28 -23
- package/dist/esm/components/ShopInput/index.d.ts +28 -0
- package/dist/esm/components/ShopInput/index.js +76 -0
- package/dist/esm/components/ShopName/index.d.ts +15 -16
- package/dist/esm/components/ShopName/index.js +28 -25
- package/dist/esm/components/Submitter/index.d.ts +30 -0
- package/dist/esm/components/Submitter/index.js +64 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +15 -16
- package/dist/esm/components/SystemOrderNo/index.js +27 -25
- package/dist/esm/components/TemplateSelect/index.d.ts +15 -15
- package/dist/esm/components/TemplateSelect/index.js +29 -24
- package/dist/esm/components/TextArea/index.d.ts +15 -15
- package/dist/esm/components/TextArea/index.js +27 -24
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +15 -15
- package/dist/esm/components/ThirdItemSelect/index.js +36 -28
- package/dist/esm/components/TradeDateTime/index.d.ts +18 -10
- package/dist/esm/components/TradeDateTime/index.js +52 -17
- package/dist/esm/components/TradeId/index.d.ts +15 -10
- package/dist/esm/components/TradeId/index.js +27 -14
- package/dist/esm/components/WorkOrderId/index.d.ts +14 -15
- package/dist/esm/components/WorkOrderId/index.js +36 -29
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.js +13 -1
- package/dist/esm/type.d.ts +53 -45
- package/package.json +10 -5
|
@@ -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 _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); } }
|
|
5
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; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -22,22 +20,15 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(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, "effects", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
32
27
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
33
|
-
_defineProperty(this, "render", function (value
|
|
28
|
+
_defineProperty(this, "render", function (value) {
|
|
34
29
|
var _value$address;
|
|
35
30
|
return /*#__PURE__*/React.createElement("span", {
|
|
36
|
-
className: "pointer"
|
|
37
|
-
onClick: function onClick() {
|
|
38
|
-
var _this$effects;
|
|
39
|
-
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
|
|
40
|
-
}
|
|
31
|
+
className: "pointer"
|
|
41
32
|
}, value === null || value === void 0 ? void 0 : (_value$address = value.address) === null || _value$address === void 0 ? void 0 : _value$address.map(function (suffix) {
|
|
42
33
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
43
34
|
}).join(''), value === null || value === void 0 ? void 0 : value.detail);
|
|
@@ -58,14 +49,24 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
58
49
|
return /*#__PURE__*/React.createElement("span", {
|
|
59
50
|
className: "pointer",
|
|
60
51
|
onClick: function onClick() {
|
|
61
|
-
var _this$effects2;
|
|
62
|
-
|
|
52
|
+
var _this$effects, _this$effects2;
|
|
53
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
63
54
|
}
|
|
64
55
|
}, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
65
56
|
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
66
57
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
67
58
|
}).join(''), detail);
|
|
68
59
|
});
|
|
60
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
61
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")])) return null;
|
|
62
|
+
return _this.renderPc(undefined, r);
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
65
|
+
return {
|
|
66
|
+
address: [r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_city")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_district")]],
|
|
67
|
+
detail: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")]
|
|
68
|
+
};
|
|
69
|
+
});
|
|
69
70
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
70
71
|
var _address2;
|
|
71
72
|
if (record["".concat(_this.id, "_province")] === undefined) {
|
|
@@ -85,10 +86,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
85
86
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
86
87
|
id: _this.id,
|
|
87
88
|
label: _this.name,
|
|
88
|
-
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id]
|
|
89
|
+
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
89
90
|
}) : null;
|
|
90
91
|
});
|
|
91
|
-
_defineProperty(this, "editRender", function (
|
|
92
|
+
_defineProperty(this, "editRender", function () {
|
|
92
93
|
var _this$componentConfig, _this$componentConfig2;
|
|
93
94
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
94
95
|
title: _this.name,
|
|
@@ -98,23 +99,15 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
98
99
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
99
100
|
});
|
|
100
101
|
});
|
|
101
|
-
_defineProperty(this, "
|
|
102
|
-
return
|
|
103
|
-
dataIndex: _this.id,
|
|
104
|
-
title: _this.name,
|
|
105
|
-
componentType: _this.editRender,
|
|
106
|
-
renderExport: _this.renderExport
|
|
107
|
-
});
|
|
102
|
+
_defineProperty(this, "filterConfig", function () {
|
|
103
|
+
return [];
|
|
108
104
|
});
|
|
109
105
|
this.name = options.name;
|
|
110
106
|
this.id = options.id;
|
|
111
107
|
this.type = options.type;
|
|
112
|
-
this.canFilter = false;
|
|
113
|
-
this.canGroup = false;
|
|
114
|
-
this.canHidden = true;
|
|
115
|
-
this.dataType = 'array';
|
|
116
|
-
this.showContains = false;
|
|
117
108
|
this.componentConfig = options.componentConfig;
|
|
109
|
+
this.isCombinationComponent = false;
|
|
110
|
+
this.children = [];
|
|
118
111
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
119
112
|
validator: function validator(_, value) {
|
|
120
113
|
var _value$address2;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ReceiverMobile 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"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
14
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: (value: any) => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
editRender: (value: any) => React.JSX.Element;
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
export default ReceiverMobile;
|
|
@@ -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; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, ReceiverMobile);
|
|
@@ -20,21 +18,15 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(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);
|
|
29
22
|
_defineProperty(this, "effects", void 0);
|
|
30
|
-
_defineProperty(this, "
|
|
31
|
-
|
|
32
|
-
});
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
33
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
26
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
27
|
id: _this.id,
|
|
36
28
|
label: _this.name,
|
|
37
|
-
value:
|
|
29
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
30
|
}) : null;
|
|
39
31
|
});
|
|
40
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -44,11 +36,18 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
44
36
|
return /*#__PURE__*/React.createElement("span", {
|
|
45
37
|
className: "pointer",
|
|
46
38
|
onClick: function onClick() {
|
|
47
|
-
var _this$effects;
|
|
48
|
-
|
|
39
|
+
var _this$effects, _this$effects2;
|
|
40
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
49
41
|
}
|
|
50
42
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")]);
|
|
51
43
|
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveMobile")])) return null;
|
|
46
|
+
return _this.renderPc(undefined, r);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveMobile")];
|
|
50
|
+
});
|
|
52
51
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
53
52
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
|
|
54
53
|
});
|
|
@@ -67,25 +66,28 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
67
66
|
}))
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
|
-
_defineProperty(this, "
|
|
71
|
-
return
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
70
|
+
return {
|
|
71
|
+
type: item.type,
|
|
72
|
+
id: item.id,
|
|
73
|
+
// 过滤组件id
|
|
74
|
+
name: item.name,
|
|
75
|
+
// 过滤组件名称
|
|
76
|
+
filterComponentType: 'Input',
|
|
77
|
+
filterFn: function filterFn(value) {
|
|
78
|
+
return function (i) {
|
|
79
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'receiveMobile')).includes(value);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
78
83
|
});
|
|
79
84
|
this.name = options.name;
|
|
80
85
|
this.id = options.id;
|
|
81
86
|
this.type = options.type;
|
|
82
|
-
this.canFilter = true;
|
|
83
|
-
this.canGroup = false;
|
|
84
|
-
this.canHidden = true;
|
|
85
|
-
this.dataType = 'string';
|
|
86
|
-
this.showContains = true;
|
|
87
87
|
this.componentConfig = options.componentConfig;
|
|
88
88
|
this.rules = [];
|
|
89
89
|
this.effects = options.effects;
|
|
90
|
+
this.isCombinationComponent = false;
|
|
91
|
+
this.children = [];
|
|
90
92
|
});
|
|
91
93
|
export default ReceiverMobile;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ReceiverName 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"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
14
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
19
17
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
editRender: () => React.JSX.Element;
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
export default ReceiverName;
|
|
@@ -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; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, ReceiverName);
|
|
@@ -20,21 +18,15 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(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);
|
|
29
22
|
_defineProperty(this, "effects", void 0);
|
|
30
|
-
_defineProperty(this, "
|
|
31
|
-
|
|
32
|
-
});
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "children", void 0);
|
|
33
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
26
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
27
|
id: _this.id,
|
|
36
28
|
label: _this.name,
|
|
37
|
-
value:
|
|
29
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
30
|
}) : null;
|
|
39
31
|
});
|
|
40
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -44,11 +36,18 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
44
36
|
return /*#__PURE__*/React.createElement("span", {
|
|
45
37
|
className: "pointer",
|
|
46
38
|
onClick: function onClick() {
|
|
47
|
-
var _this$effects;
|
|
48
|
-
|
|
39
|
+
var _this$effects, _this$effects2;
|
|
40
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
49
41
|
}
|
|
50
42
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")]);
|
|
51
43
|
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveName")])) return null;
|
|
46
|
+
return _this.renderPc(undefined, r);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveName")];
|
|
50
|
+
});
|
|
52
51
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
53
52
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
|
|
54
53
|
});
|
|
@@ -64,25 +63,28 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
64
63
|
}))
|
|
65
64
|
});
|
|
66
65
|
});
|
|
67
|
-
_defineProperty(this, "
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
return {
|
|
68
|
+
type: item.type,
|
|
69
|
+
id: item.id,
|
|
70
|
+
// 过滤组件id
|
|
71
|
+
name: item.name,
|
|
72
|
+
// 过滤组件名称
|
|
73
|
+
filterComponentType: 'Input',
|
|
74
|
+
filterFn: function filterFn(value) {
|
|
75
|
+
return function (i) {
|
|
76
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'receiveName')).includes(value);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
75
80
|
});
|
|
76
81
|
this.name = options.name;
|
|
77
82
|
this.id = options.id;
|
|
78
83
|
this.type = options.type;
|
|
79
|
-
this.canFilter = true;
|
|
80
|
-
this.canGroup = false;
|
|
81
|
-
this.canHidden = true;
|
|
82
|
-
this.dataType = 'string';
|
|
83
|
-
this.showContains = true;
|
|
84
84
|
this.componentConfig = options.componentConfig;
|
|
85
85
|
this.rules = [];
|
|
86
86
|
this.effects = options.effects;
|
|
87
|
+
this.isCombinationComponent = false;
|
|
88
|
+
this.children = [];
|
|
87
89
|
});
|
|
88
90
|
export default ReceiverName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
flag?: number | string;
|
|
5
5
|
remark?: string;
|
|
@@ -9,25 +9,28 @@ declare class ERemark implements ComponentInterface {
|
|
|
9
9
|
id: string;
|
|
10
10
|
type: string;
|
|
11
11
|
rules: any[];
|
|
12
|
-
canFilter: boolean;
|
|
13
|
-
canGroup: boolean;
|
|
14
|
-
canHidden: boolean;
|
|
15
|
-
dataType: DataType;
|
|
16
|
-
showContains: boolean;
|
|
17
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
18
13
|
imgList: any[];
|
|
19
14
|
flagColors: string[];
|
|
15
|
+
isCombinationComponent: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
20
17
|
constructor(options: PickOption);
|
|
21
|
-
render: (value: Value) => JSX.Element;
|
|
22
|
-
renderClient: (record: Record) => JSX.Element | null;
|
|
23
|
-
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
18
|
+
render: (value: Value) => React.JSX.Element;
|
|
19
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
|
+
getComponentValue: (r: Record) => {
|
|
23
|
+
remark: any;
|
|
24
|
+
flag: any;
|
|
25
|
+
};
|
|
24
26
|
renderExport: (value: unknown, record: Record) => any;
|
|
25
|
-
editRender: () => JSX.Element;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
editRender: () => React.JSX.Element;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
export default ERemark;
|
|
@@ -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 _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); } }
|
|
5
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; }
|
|
6
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -18,7 +16,7 @@ import trade4 from "./flag/trade-icon-flag-4.png";
|
|
|
18
16
|
import trade5 from "./flag/trade-icon-flag-5.png";
|
|
19
17
|
import get from 'lodash/get';
|
|
20
18
|
import ItemView from "../../commonComponents/ItemView";
|
|
21
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
19
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
22
20
|
var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
23
21
|
var _this = this,
|
|
24
22
|
_this$componentConfig3;
|
|
@@ -27,14 +25,11 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
27
25
|
_defineProperty(this, "id", void 0);
|
|
28
26
|
_defineProperty(this, "type", void 0);
|
|
29
27
|
_defineProperty(this, "rules", void 0);
|
|
30
|
-
_defineProperty(this, "canFilter", void 0);
|
|
31
|
-
_defineProperty(this, "canGroup", void 0);
|
|
32
|
-
_defineProperty(this, "canHidden", void 0);
|
|
33
|
-
_defineProperty(this, "dataType", void 0);
|
|
34
|
-
_defineProperty(this, "showContains", void 0);
|
|
35
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
36
29
|
_defineProperty(this, "imgList", void 0);
|
|
37
30
|
_defineProperty(this, "flagColors", void 0);
|
|
31
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
|
+
_defineProperty(this, "children", void 0);
|
|
38
33
|
_defineProperty(this, "render", function (value) {
|
|
39
34
|
var index = get(value, 'flag');
|
|
40
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -60,10 +55,20 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
60
55
|
style: {
|
|
61
56
|
display: 'inline-block'
|
|
62
57
|
}
|
|
63
|
-
}, get(record, "".concat(_this.id, "_flag"))
|
|
64
|
-
className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[get(record, "".concat(_this.id, "_flag"))])
|
|
58
|
+
}, !isNull(get(record, "".concat(_this.id, "_flag"))) ? /*#__PURE__*/React.createElement("i", {
|
|
59
|
+
className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[Number(get(record, "".concat(_this.id, "_flag")))])
|
|
65
60
|
}) : null, /*#__PURE__*/React.createElement("span", null, get(record, "".concat(_this.id, "_remark"))));
|
|
66
61
|
});
|
|
62
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
63
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")])) return null;
|
|
64
|
+
return _this.renderPc(undefined, r);
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
67
|
+
return {
|
|
68
|
+
remark: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")],
|
|
69
|
+
flag: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]
|
|
70
|
+
};
|
|
71
|
+
});
|
|
67
72
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
73
|
return get(record, "".concat(_this.id, "_remark"));
|
|
69
74
|
});
|
|
@@ -77,23 +82,24 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
77
82
|
component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
|
|
78
83
|
});
|
|
79
84
|
});
|
|
80
|
-
_defineProperty(this, "
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
86
|
+
return {
|
|
87
|
+
type: item.type,
|
|
88
|
+
id: item.id,
|
|
89
|
+
// 过滤组件id
|
|
90
|
+
name: item.name,
|
|
91
|
+
// 过滤组件名称
|
|
92
|
+
filterComponentType: 'Input',
|
|
93
|
+
filterFn: function filterFn(value) {
|
|
94
|
+
return function (i) {
|
|
95
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'remark')).includes(value);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
};
|
|
88
99
|
});
|
|
89
100
|
this.name = options.name;
|
|
90
101
|
this.id = options.id;
|
|
91
102
|
this.type = options.type;
|
|
92
|
-
this.canFilter = false;
|
|
93
|
-
this.canGroup = false;
|
|
94
|
-
this.canHidden = true;
|
|
95
|
-
this.dataType = 'string';
|
|
96
|
-
this.showContains = false;
|
|
97
103
|
this.componentConfig = options.componentConfig;
|
|
98
104
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
99
105
|
validator: function validator(_, value) {
|
|
@@ -109,5 +115,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
109
115
|
}] : [];
|
|
110
116
|
this.imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
111
117
|
this.flagColors = ['gray', 'red', 'yellow', 'green', 'blue', 'purple'];
|
|
118
|
+
this.isCombinationComponent = false;
|
|
119
|
+
this.children = [];
|
|
112
120
|
});
|
|
113
121
|
export default ERemark;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
import Express from '../Express';
|
|
5
5
|
import ExpressCode from '../ExpressCode';
|
|
@@ -14,33 +14,34 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
14
14
|
dataType: DataType;
|
|
15
15
|
showContains: boolean;
|
|
16
16
|
componentConfig: ComponentInterface["componentConfig"];
|
|
17
|
-
expressDateInstance: ExpressData
|
|
17
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
18
18
|
express: Express;
|
|
19
19
|
expressCode: ExpressCode;
|
|
20
|
+
isCombinationComponent: boolean;
|
|
21
|
+
children: ComponentInterface[];
|
|
20
22
|
constructor(options: PickOption);
|
|
21
|
-
|
|
22
|
-
renderClient: (record: any) => JSX.Element;
|
|
23
|
+
renderClient: (record: any) => React.JSX.Element;
|
|
23
24
|
renderPc: () => null;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
children: ((Express & {
|
|
29
|
-
dataIndex: string;
|
|
30
|
-
title: string;
|
|
31
|
-
widget: JSX.Element;
|
|
32
|
-
groupFieldPath: string;
|
|
33
|
-
renderExport: (value: string, record: import("../../type").Record) => string | number;
|
|
34
|
-
render: (value: string, record: import("../../type").Record) => JSX.Element;
|
|
35
|
-
}) | (ExpressCode & {
|
|
36
|
-
dataIndex: string;
|
|
37
|
-
title: string;
|
|
38
|
-
groupFieldPath: string;
|
|
39
|
-
renderExport: (value: string, record: import("../../type").Record) => string;
|
|
40
|
-
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
41
|
-
}))[];
|
|
42
|
-
canHidden: boolean;
|
|
43
|
-
dataIndex: string;
|
|
25
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
26
|
+
getComponentValue: (r: Record) => {
|
|
27
|
+
company: any;
|
|
28
|
+
order: any;
|
|
44
29
|
};
|
|
30
|
+
renderExport: () => null;
|
|
31
|
+
editRender: (value: any) => React.JSX.Element;
|
|
32
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
33
|
+
type: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
filterComponentType: "MultipleSelect";
|
|
37
|
+
options: any[];
|
|
38
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
39
|
+
} | {
|
|
40
|
+
type: string;
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
filterComponentType: "Input";
|
|
44
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
45
|
+
})[];
|
|
45
46
|
}
|
|
46
47
|
export default ReturnLogistics;
|