@kmkf-fe-packages/services-components 0.6.2 → 0.6.3-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/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +8 -11
- package/dist/esm/components/ActualPayment/index.js +19 -22
- package/dist/esm/components/Address/index.d.ts +6 -14
- package/dist/esm/components/Address/index.js +9 -22
- package/dist/esm/components/Alipay/index.d.ts +9 -18
- package/dist/esm/components/Alipay/index.js +6 -17
- package/dist/esm/components/AlipayAccount/index.d.ts +9 -13
- package/dist/esm/components/AlipayAccount/index.js +19 -24
- package/dist/esm/components/AlipayName/index.d.ts +8 -12
- package/dist/esm/components/AlipayName/index.js +18 -23
- package/dist/esm/components/BuyerNick/index.d.ts +8 -11
- package/dist/esm/components/BuyerNick/index.js +30 -25
- package/dist/esm/components/Cascader/index.d.ts +9 -23
- package/dist/esm/components/Cascader/index.js +29 -27
- package/dist/esm/components/Checkbox/index.d.ts +9 -10
- package/dist/esm/components/Checkbox/index.js +24 -20
- package/dist/esm/components/CommonDataTime/index.d.ts +8 -10
- package/dist/esm/components/CommonDataTime/index.js +19 -20
- package/dist/esm/components/CompletedUser/index.d.ts +28 -0
- package/dist/esm/components/CompletedUser/index.js +60 -0
- package/dist/esm/components/DataTime/index.d.ts +9 -10
- package/dist/esm/components/DataTime/index.js +22 -23
- package/dist/esm/components/EItemEnCode/index.d.ts +8 -10
- package/dist/esm/components/EItemEnCode/index.js +22 -20
- package/dist/esm/components/EItemId/index.d.ts +8 -10
- package/dist/esm/components/EItemId/index.js +22 -20
- package/dist/esm/components/EItemSelect/index.d.ts +4 -11
- package/dist/esm/components/EItemSelect/index.js +6 -18
- package/dist/esm/components/ErpTradeId/index.d.ts +8 -11
- package/dist/esm/components/ErpTradeId/index.js +18 -21
- package/dist/esm/components/Express/index.d.ts +9 -13
- package/dist/esm/components/Express/index.js +18 -29
- package/dist/esm/components/ExpressCode/index.d.ts +8 -12
- package/dist/esm/components/ExpressCode/index.js +17 -22
- package/dist/esm/components/FlowStatusSelect/index.d.ts +13 -33
- package/dist/esm/components/FlowStatusSelect/index.js +27 -22
- package/dist/esm/components/Grade/index.d.ts +4 -11
- package/dist/esm/components/Grade/index.js +6 -19
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +64 -0
- package/dist/esm/components/Input/index.d.ts +8 -11
- package/dist/esm/components/Input/index.js +20 -24
- package/dist/esm/components/JstItemSelect/index.d.ts +9 -11
- package/dist/esm/components/JstItemSelect/index.js +35 -20
- package/dist/esm/components/JstLogistics/index.d.ts +16 -11
- package/dist/esm/components/JstLogistics/index.js +31 -20
- package/dist/esm/components/JstSendGood/index.d.ts +9 -11
- package/dist/esm/components/JstSendGood/index.js +35 -20
- package/dist/esm/components/JstSupply/index.d.ts +9 -11
- package/dist/esm/components/JstSupply/index.js +35 -20
- package/dist/esm/components/Logistics/index.d.ts +15 -25
- package/dist/esm/components/Logistics/index.js +10 -17
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +25 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +89 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +62 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +27 -0
- package/dist/esm/components/LogisticsInterception/index.js +90 -0
- package/dist/esm/components/MultSelect/index.d.ts +9 -10
- package/dist/esm/components/MultSelect/index.js +21 -20
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +8 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +14 -26
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +8 -21
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +14 -26
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +8 -16
- package/dist/esm/components/Ordinary/OrdinarySerial.js +14 -16
- package/dist/esm/components/Ordinary/index.d.ts +9 -22
- package/dist/esm/components/Ordinary/index.js +8 -7
- package/dist/esm/components/Payment/AlipayNick.d.ts +9 -22
- package/dist/esm/components/Payment/AlipayNick.js +16 -28
- package/dist/esm/components/Payment/AlipayNo.d.ts +8 -20
- package/dist/esm/components/Payment/AlipayNo.js +16 -27
- package/dist/esm/components/Payment/AlipayTime.d.ts +8 -22
- package/dist/esm/components/Payment/AlipayTime.js +15 -27
- package/dist/esm/components/Payment/BuyerNick.d.ts +8 -21
- package/dist/esm/components/Payment/BuyerNick.js +14 -26
- package/dist/esm/components/Payment/PaymentAmount.d.ts +8 -21
- package/dist/esm/components/Payment/PaymentAmount.js +14 -26
- package/dist/esm/components/Payment/PaymentStatus.d.ts +13 -27
- package/dist/esm/components/Payment/PaymentStatus.js +37 -36
- package/dist/esm/components/Payment/PaymentTid.d.ts +8 -21
- package/dist/esm/components/Payment/PaymentTid.js +14 -26
- package/dist/esm/components/Payment/index.d.ts +23 -96
- package/dist/esm/components/Payment/index.js +8 -17
- package/dist/esm/components/Picture/index.d.ts +8 -10
- package/dist/esm/components/Picture/index.js +6 -18
- package/dist/esm/components/PlatForm/index.d.ts +29 -0
- package/dist/esm/components/PlatForm/index.js +62 -0
- package/dist/esm/components/Radio/index.d.ts +9 -10
- package/dist/esm/components/Radio/index.js +23 -20
- package/dist/esm/components/Rate/index.d.ts +4 -11
- package/dist/esm/components/Rate/index.js +6 -19
- package/dist/esm/components/ReceiverAddress/index.d.ts +4 -12
- package/dist/esm/components/ReceiverAddress/index.js +9 -26
- package/dist/esm/components/ReceiverMobile/index.d.ts +9 -12
- package/dist/esm/components/ReceiverMobile/index.js +20 -23
- package/dist/esm/components/ReceiverName/index.d.ts +8 -11
- package/dist/esm/components/ReceiverName/index.js +20 -23
- package/dist/esm/components/Remark/index.d.ts +8 -11
- package/dist/esm/components/Remark/index.js +18 -21
- package/dist/esm/components/ReturnLogistics/index.d.ts +15 -20
- package/dist/esm/components/ReturnLogistics/index.js +10 -7
- package/dist/esm/components/Select/index.d.ts +9 -10
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopInput/index.d.ts +26 -0
- package/dist/esm/components/ShopInput/index.js +71 -0
- package/dist/esm/components/ShopName/index.d.ts +8 -11
- package/dist/esm/components/ShopName/index.js +18 -20
- package/dist/esm/components/Submitter/index.d.ts +28 -0
- package/dist/esm/components/Submitter/index.js +60 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +8 -11
- package/dist/esm/components/SystemOrderNo/index.js +18 -21
- package/dist/esm/components/TemplateSelect/index.d.ts +9 -11
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +8 -10
- package/dist/esm/components/TextArea/index.js +18 -20
- package/dist/esm/components/ThirdItemSelect/index.d.ts +8 -10
- package/dist/esm/components/ThirdItemSelect/index.js +24 -20
- package/dist/esm/components/TradeDateTime/index.d.ts +9 -5
- package/dist/esm/components/TradeDateTime/index.js +34 -10
- package/dist/esm/components/TradeId/index.d.ts +8 -5
- package/dist/esm/components/TradeId/index.js +18 -10
- package/dist/esm/components/WorkOrderId/index.d.ts +8 -11
- package/dist/esm/components/WorkOrderId/index.js +20 -22
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/type.d.ts +38 -36
- package/package.json +4 -4
|
@@ -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; }
|
|
@@ -14,7 +12,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
14
12
|
import { GoodImage } from "../Common";
|
|
15
13
|
import { JstItemList } from '@kmkf-fe-packages/basic-components';
|
|
16
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
18
16
|
var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
19
17
|
var _this = this,
|
|
20
18
|
_this$componentConfig;
|
|
@@ -23,14 +21,11 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
23
21
|
_defineProperty(this, "id", void 0);
|
|
24
22
|
_defineProperty(this, "type", void 0);
|
|
25
23
|
_defineProperty(this, "rules", void 0);
|
|
26
|
-
_defineProperty(this, "canFilter", void 0);
|
|
27
|
-
_defineProperty(this, "canGroup", void 0);
|
|
28
|
-
_defineProperty(this, "canHidden", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "showContains", void 0);
|
|
31
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
32
25
|
_defineProperty(this, "align", void 0);
|
|
33
26
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
34
29
|
_defineProperty(this, "render", function (value) {
|
|
35
30
|
//兼容多个商品
|
|
36
31
|
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
@@ -70,23 +65,43 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
70
65
|
}))
|
|
71
66
|
});
|
|
72
67
|
});
|
|
73
|
-
_defineProperty(this, "
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
69
|
+
return [{
|
|
70
|
+
id: "".concat(item.id, "_itemId"),
|
|
71
|
+
name: "jst\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
72
|
+
filterComponentType: 'Input',
|
|
73
|
+
filterFn: function filterFn(value) {
|
|
74
|
+
return function (i) {
|
|
75
|
+
var _ref;
|
|
76
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
77
|
+
var _String;
|
|
78
|
+
var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
79
|
+
return id;
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
id: "".concat(item.id, "_supplierName"),
|
|
85
|
+
name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
86
|
+
filterComponentType: 'Input',
|
|
87
|
+
filterFn: function filterFn(value) {
|
|
88
|
+
return function (i) {
|
|
89
|
+
var _ref2;
|
|
90
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
91
|
+
var _String2;
|
|
92
|
+
var name = item !== null && item !== void 0 && item.supplierName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplierName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
93
|
+
return name;
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}];
|
|
80
98
|
});
|
|
81
99
|
this.name = options.name;
|
|
82
100
|
this.id = options.id;
|
|
83
101
|
this.type = options.type;
|
|
84
|
-
this.canFilter = false;
|
|
85
|
-
this.canGroup = false;
|
|
86
|
-
this.canHidden = true;
|
|
87
|
-
this.showContains = false;
|
|
88
|
-
this.dataType = 'string';
|
|
89
102
|
this.componentConfig = options.componentConfig;
|
|
103
|
+
this.isCombinationComponent = false;
|
|
104
|
+
this.children = [];
|
|
90
105
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
91
106
|
required: true,
|
|
92
107
|
validator: function validator(_, value) {
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class JstLogistics 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"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
expressDateInstance: ExpressData;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
15
|
render: (value: any) => JSX.Element;
|
|
19
16
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
18
|
renderExport: (value: any, record: any) => any;
|
|
22
19
|
editRender: () => JSX.Element;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
options?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
filterComponentType: "MultipleSelect";
|
|
30
|
+
options: any[];
|
|
31
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
32
|
+
})[];
|
|
28
33
|
}
|
|
29
34
|
export default JstLogistics;
|
|
@@ -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; }
|
|
@@ -14,7 +12,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
14
12
|
import { JstGoodImage } from "../Common";
|
|
15
13
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
16
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
18
16
|
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
19
17
|
var _this = this,
|
|
20
18
|
_this$componentConfig3;
|
|
@@ -23,14 +21,11 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
23
21
|
_defineProperty(this, "id", void 0);
|
|
24
22
|
_defineProperty(this, "type", void 0);
|
|
25
23
|
_defineProperty(this, "rules", void 0);
|
|
26
|
-
_defineProperty(this, "canFilter", void 0);
|
|
27
|
-
_defineProperty(this, "canGroup", void 0);
|
|
28
|
-
_defineProperty(this, "canHidden", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "showContains", void 0);
|
|
31
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
32
25
|
_defineProperty(this, "align", void 0);
|
|
33
26
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
34
29
|
_defineProperty(this, "render", function (value) {
|
|
35
30
|
//兼容多个商品
|
|
36
31
|
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
@@ -72,23 +67,39 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
72
67
|
}))
|
|
73
68
|
});
|
|
74
69
|
});
|
|
75
|
-
_defineProperty(this, "
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
71
|
+
return [{
|
|
72
|
+
id: "".concat(item.id, "_logisticsCode"),
|
|
73
|
+
name: "jst\u7269\u6D41\u5355\u53F7",
|
|
74
|
+
filterComponentType: 'Input',
|
|
75
|
+
filterFn: function filterFn(value) {
|
|
76
|
+
return function (i) {
|
|
77
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
id: "".concat(item.id, "_logisticsCompany"),
|
|
82
|
+
name: "jst\u7269\u6D41\u516C\u53F8",
|
|
83
|
+
filterComponentType: 'MultipleSelect',
|
|
84
|
+
options: _this.expressDateInstance.getExpressData() || [],
|
|
85
|
+
filterFn: function filterFn(value) {
|
|
86
|
+
return function (i) {
|
|
87
|
+
var _ref;
|
|
88
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
89
|
+
var _String;
|
|
90
|
+
var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
91
|
+
return logisticsCompany;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}];
|
|
82
96
|
});
|
|
83
97
|
this.name = options.name;
|
|
84
98
|
this.id = options.id;
|
|
85
99
|
this.type = options.type;
|
|
86
|
-
this.canFilter = false;
|
|
87
|
-
this.canGroup = false;
|
|
88
|
-
this.canHidden = true;
|
|
89
|
-
this.showContains = false;
|
|
90
|
-
this.dataType = 'string';
|
|
91
100
|
this.componentConfig = options.componentConfig;
|
|
101
|
+
this.isCombinationComponent = false;
|
|
102
|
+
this.children = [];
|
|
92
103
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
93
104
|
required: true,
|
|
94
105
|
validator: function validator(_, value) {
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class JstSendGood 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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "Input";
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
23
|
+
}[];
|
|
26
24
|
}
|
|
27
25
|
export default JstSendGood;
|
|
@@ -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; }
|
|
@@ -13,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
11
|
import { JstGoodImage } from "../Common";
|
|
14
12
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
18
16
|
var _this = this,
|
|
19
17
|
_this$componentConfig;
|
|
@@ -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,40 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
68
63
|
}))
|
|
69
64
|
});
|
|
70
65
|
});
|
|
71
|
-
_defineProperty(this, "
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
return [{
|
|
68
|
+
id: "".concat(item.id, "_sendName"),
|
|
69
|
+
name: "jst\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
70
|
+
filterComponentType: 'Input',
|
|
71
|
+
filterFn: function filterFn(value) {
|
|
72
|
+
return function (i) {
|
|
73
|
+
var _ref;
|
|
74
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
75
|
+
var _String;
|
|
76
|
+
var name = item !== null && item !== void 0 && item.sendName ? (_String = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
77
|
+
return name;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
id: "".concat(item.id, "_sendId"),
|
|
83
|
+
name: "jst\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
84
|
+
filterComponentType: 'Input',
|
|
85
|
+
filterFn: function filterFn(value) {
|
|
86
|
+
return function (i) {
|
|
87
|
+
var _ref2;
|
|
88
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
89
|
+
var _String2;
|
|
90
|
+
var id = item !== null && item !== void 0 && item.sendId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
91
|
+
return id;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}];
|
|
78
96
|
});
|
|
79
97
|
this.name = options.name;
|
|
80
98
|
this.id = options.id;
|
|
81
99
|
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
100
|
this.componentConfig = options.componentConfig;
|
|
88
101
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
89
102
|
required: true,
|
|
@@ -108,5 +121,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
108
121
|
}
|
|
109
122
|
}] : [];
|
|
110
123
|
this.align = 'left';
|
|
124
|
+
this.isCombinationComponent = false;
|
|
125
|
+
this.children = [];
|
|
111
126
|
});
|
|
112
127
|
export default JstSendGood;
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, 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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "Input";
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
23
|
+
}[];
|
|
26
24
|
}
|
|
27
25
|
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; }
|
|
@@ -13,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
11
|
import { JstGoodImage } from "../Common";
|
|
14
12
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
18
16
|
var _this = this,
|
|
19
17
|
_this$componentConfig;
|
|
@@ -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,43 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
68
63
|
}))
|
|
69
64
|
});
|
|
70
65
|
});
|
|
71
|
-
_defineProperty(this, "
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
return [{
|
|
68
|
+
id: "".concat(item.id, "_supplyName"),
|
|
69
|
+
name: "jst\u4F9B\u9500\u5546\u540D\u79F0",
|
|
70
|
+
filterComponentType: 'Input',
|
|
71
|
+
filterFn: function filterFn(value) {
|
|
72
|
+
return function (i) {
|
|
73
|
+
var _ref;
|
|
74
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
75
|
+
var _String;
|
|
76
|
+
var name = item !== null && item !== void 0 && item.supplyName ? (_String = String(item === null || item === void 0 ? void 0 : item.supplyName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
77
|
+
return name;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
id: "".concat(item.id, "_supplyId"),
|
|
83
|
+
name: "jst\u4F9B\u9500\u5546\u7F16\u7801",
|
|
84
|
+
filterComponentType: 'Input',
|
|
85
|
+
filterFn: function filterFn(value) {
|
|
86
|
+
return function (i) {
|
|
87
|
+
var _ref2;
|
|
88
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
89
|
+
var _String2;
|
|
90
|
+
var id = item !== null && item !== void 0 && item.supplyId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplyId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
91
|
+
return id;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}];
|
|
78
96
|
});
|
|
79
97
|
this.name = options.name;
|
|
80
98
|
this.id = options.id;
|
|
81
99
|
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
100
|
this.componentConfig = options.componentConfig;
|
|
101
|
+
this.isCombinationComponent = false;
|
|
102
|
+
this.children = [];
|
|
88
103
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
89
104
|
required: true,
|
|
90
105
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, 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,29 @@ 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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
};
|
|
23
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
filterComponentType: "MultipleSelect";
|
|
27
|
+
options: any[];
|
|
28
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
|
+
} | {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
34
|
+
})[];
|
|
45
35
|
}
|
|
46
36
|
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,16 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
56
53
|
_defineProperty(this, "renderExport", function () {
|
|
57
54
|
return null;
|
|
58
55
|
});
|
|
59
|
-
_defineProperty(this, "
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
56
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
57
|
+
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
58
|
+
subKey: 'expressLogisticsCompany'
|
|
59
|
+
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
60
|
+
subKey: 'expressLogisticsCode'
|
|
61
|
+
}))];
|
|
66
62
|
});
|
|
67
63
|
this.name = options.name;
|
|
68
64
|
this.id = options.id;
|
|
69
65
|
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
66
|
this.componentConfig = options.componentConfig;
|
|
76
67
|
this.expressDateInstance = ExpressData.getInstance();
|
|
77
68
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -82,6 +73,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
82
73
|
name: '快递物流单号',
|
|
83
74
|
id: "".concat(this.id, "_expressLogisticsCode")
|
|
84
75
|
}));
|
|
76
|
+
this.isCombinationComponent = true;
|
|
77
|
+
this.children = [this.express, this.expressCode];
|
|
85
78
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
86
79
|
validator: function validator(_, value) {
|
|
87
80
|
var _this$componentConfig4;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, 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
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
24
|
+
}
|
|
25
|
+
export default PaymentTid;
|