@kmkf-fe-packages/services-components 0.7.4 → 0.7.5-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 +3 -1
- package/dist/esm/components/ActualPayment/index.js +6 -2
- package/dist/esm/components/Address/index.d.ts +20 -3
- package/dist/esm/components/Address/index.js +33 -3
- package/dist/esm/components/Alipay/index.d.ts +2 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -0
- package/dist/esm/components/AlipayAccount/index.js +4 -0
- package/dist/esm/components/AlipayName/index.d.ts +2 -0
- package/dist/esm/components/AlipayName/index.js +4 -0
- package/dist/esm/components/BuyerNick/index.d.ts +2 -0
- package/dist/esm/components/BuyerNick/index.js +4 -0
- package/dist/esm/components/Cascader/index.d.ts +11 -1
- package/dist/esm/components/Cascader/index.js +18 -2
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +11 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
- package/dist/esm/components/CommonDataTime/index.js +11 -0
- package/dist/esm/components/CompletedUser/index.d.ts +8 -4
- package/dist/esm/components/CompletedUser/index.js +7 -1
- package/dist/esm/components/DataTime/index.d.ts +6 -1
- package/dist/esm/components/DataTime/index.js +15 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
- package/dist/esm/components/EItemEnCode/index.js +5 -1
- package/dist/esm/components/EItemId/index.d.ts +2 -0
- package/dist/esm/components/EItemId/index.js +5 -1
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +2 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -0
- package/dist/esm/components/ErpTradeId/index.js +8 -1
- package/dist/esm/components/Express/index.d.ts +5 -1
- package/dist/esm/components/Express/index.js +7 -1
- package/dist/esm/components/ExpressCode/index.d.ts +2 -0
- package/dist/esm/components/ExpressCode/index.js +4 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +8 -4
- package/dist/esm/components/FlowStatusSelect/index.js +12 -6
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +2 -0
- package/dist/esm/components/Handler/index.d.ts +8 -4
- package/dist/esm/components/Handler/index.js +7 -1
- package/dist/esm/components/Input/index.d.ts +2 -0
- package/dist/esm/components/Input/index.js +5 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
- package/dist/esm/components/JstItemSelect/index.js +21 -15
- package/dist/esm/components/JstLogistics/index.d.ts +7 -2
- package/dist/esm/components/JstLogistics/index.js +8 -1
- package/dist/esm/components/JstSendGood/index.d.ts +2 -0
- package/dist/esm/components/JstSendGood/index.js +5 -0
- package/dist/esm/components/JstSupply/index.d.ts +2 -0
- package/dist/esm/components/JstSupply/index.js +5 -0
- package/dist/esm/components/Logistics/index.d.ts +6 -1
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +9 -5
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +7 -1
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +9 -5
- package/dist/esm/components/LogisticsInterception/InterceptType.js +7 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +13 -5
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +4 -0
- package/dist/esm/components/MultSelect/index.d.ts +5 -1
- package/dist/esm/components/MultSelect/index.js +8 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +7 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +8 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -0
- package/dist/esm/components/Ordinary/index.d.ts +11 -2
- package/dist/esm/components/Ordinary/index.js +2 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayNick.js +4 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayNo.js +4 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayTime.js +11 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -0
- package/dist/esm/components/Payment/BuyerNick.js +4 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +5 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +8 -4
- package/dist/esm/components/Payment/PaymentStatus.js +7 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentTid.js +7 -0
- package/dist/esm/components/Payment/index.d.ts +33 -4
- package/dist/esm/components/Payment/index.js +2 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +2 -0
- package/dist/esm/components/PlatForm/index.d.ts +3 -1
- package/dist/esm/components/PlatForm/index.js +4 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +11 -5
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +2 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
- package/dist/esm/components/ReceiverAddress/index.js +2 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
- package/dist/esm/components/ReceiverMobile/index.js +5 -1
- package/dist/esm/components/ReceiverName/index.d.ts +2 -0
- package/dist/esm/components/ReceiverName/index.js +5 -1
- package/dist/esm/components/Remark/index.d.ts +2 -0
- package/dist/esm/components/Remark/index.js +5 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -1
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +5 -1
- package/dist/esm/components/Select/index.js +8 -2
- package/dist/esm/components/ShopInput/index.d.ts +7 -2
- package/dist/esm/components/ShopInput/index.js +17 -2
- package/dist/esm/components/ShopName/index.d.ts +2 -0
- package/dist/esm/components/ShopName/index.js +5 -1
- package/dist/esm/components/Submitter/index.d.ts +9 -4
- package/dist/esm/components/Submitter/index.js +15 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -0
- package/dist/esm/components/SystemOrderNo/index.js +8 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +4 -0
- package/dist/esm/components/TextArea/index.d.ts +2 -0
- package/dist/esm/components/TextArea/index.js +5 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
- package/dist/esm/components/ThirdItemSelect/index.js +5 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
- package/dist/esm/components/TradeDateTime/index.js +14 -2
- package/dist/esm/components/TradeId/index.d.ts +3 -0
- package/dist/esm/components/TradeId/index.js +8 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +11 -1
- package/dist/esm/constant.d.ts +14 -0
- package/dist/esm/constant.js +14 -0
- package/dist/esm/type.d.ts +8 -2
- package/package.json +4 -4
|
@@ -13,6 +13,7 @@ import { GoodImage } from "../Common";
|
|
|
13
13
|
import { JstItemList } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
16
17
|
var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
17
18
|
var _this = this,
|
|
18
19
|
_this$componentConfig;
|
|
@@ -25,6 +26,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
25
26
|
_defineProperty(this, "align", void 0);
|
|
26
27
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
27
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
30
|
_defineProperty(this, "children", void 0);
|
|
29
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -70,29 +72,32 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
70
72
|
});
|
|
71
73
|
});
|
|
72
74
|
_defineProperty(this, "filterConfig", function (item) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
return [{
|
|
76
|
+
searchDefaultConditions: SYMBOL.like,
|
|
75
77
|
type: item.type,
|
|
76
78
|
id: "".concat(item.id, "_itemId"),
|
|
77
|
-
name: "jst\u4F9B\u5E94\u5546\u7F16\u7801"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
name: "jst\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
80
|
+
filterComponentType: 'Input',
|
|
81
|
+
filterFn: function filterFn(value) {
|
|
82
|
+
return function (i) {
|
|
83
|
+
var _ref;
|
|
84
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
85
|
+
var _String;
|
|
86
|
+
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;
|
|
87
|
+
return id;
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
searchDefaultConditions: SYMBOL.like,
|
|
88
93
|
type: item.type,
|
|
89
94
|
id: "".concat(item.id, "_supplierName"),
|
|
90
95
|
name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
91
96
|
filterComponentType: 'Input',
|
|
92
97
|
filterFn: function filterFn(value) {
|
|
93
98
|
return function (i) {
|
|
94
|
-
var
|
|
95
|
-
return (
|
|
99
|
+
var _ref2;
|
|
100
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
96
101
|
var _String2;
|
|
97
102
|
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;
|
|
98
103
|
return name;
|
|
@@ -106,6 +111,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
106
111
|
this.type = options.type;
|
|
107
112
|
this.componentConfig = options.componentConfig;
|
|
108
113
|
this.isCombinationComponent = false;
|
|
114
|
+
this.canSort = true;
|
|
109
115
|
this.children = [];
|
|
110
116
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
111
117
|
required: true,
|
|
@@ -10,6 +10,7 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
10
10
|
align: ALignType;
|
|
11
11
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -19,18 +20,22 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
19
20
|
renderExport: (value: any, record: any) => any;
|
|
20
21
|
editRender: () => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => ({
|
|
23
|
+
searchDefaultConditions: "like";
|
|
22
24
|
type: string;
|
|
23
25
|
id: string;
|
|
24
26
|
name: string;
|
|
25
27
|
filterComponentType: "Input";
|
|
26
28
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
27
|
-
|
|
29
|
+
props?: undefined;
|
|
28
30
|
} | {
|
|
31
|
+
searchDefaultConditions: "in";
|
|
29
32
|
type: string;
|
|
30
33
|
id: string;
|
|
31
34
|
name: string;
|
|
32
35
|
filterComponentType: "MultipleSelect";
|
|
33
|
-
|
|
36
|
+
props: {
|
|
37
|
+
options: any[];
|
|
38
|
+
};
|
|
34
39
|
filterFn: (value: string) => (i: Record) => any;
|
|
35
40
|
})[];
|
|
36
41
|
}
|
|
@@ -14,6 +14,7 @@ import { JstGoodImage } from "../Common";
|
|
|
14
14
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { SYMBOL } from "../../constant";
|
|
17
18
|
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
18
19
|
var _this = this,
|
|
19
20
|
_this$componentConfig3;
|
|
@@ -26,6 +27,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
26
27
|
_defineProperty(this, "align", void 0);
|
|
27
28
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
28
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
29
31
|
_defineProperty(this, "children", void 0);
|
|
30
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
33
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
@@ -77,6 +79,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
77
79
|
});
|
|
78
80
|
_defineProperty(this, "filterConfig", function (item) {
|
|
79
81
|
return [{
|
|
82
|
+
searchDefaultConditions: SYMBOL.like,
|
|
80
83
|
type: item.type,
|
|
81
84
|
id: "".concat(item.id, "_logisticsCode"),
|
|
82
85
|
name: "jst\u7269\u6D41\u5355\u53F7",
|
|
@@ -87,11 +90,14 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
}, {
|
|
93
|
+
searchDefaultConditions: SYMBOL.in,
|
|
90
94
|
type: item.type,
|
|
91
95
|
id: "".concat(item.id, "_logisticsCompany"),
|
|
92
96
|
name: "jst\u7269\u6D41\u516C\u53F8",
|
|
93
97
|
filterComponentType: 'MultipleSelect',
|
|
94
|
-
|
|
98
|
+
props: {
|
|
99
|
+
options: _this.expressDateInstance.getExpressData() || []
|
|
100
|
+
},
|
|
95
101
|
filterFn: function filterFn(value) {
|
|
96
102
|
return function (i) {
|
|
97
103
|
var _ref;
|
|
@@ -109,6 +115,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
109
115
|
this.type = options.type;
|
|
110
116
|
this.componentConfig = options.componentConfig;
|
|
111
117
|
this.isCombinationComponent = false;
|
|
118
|
+
this.canSort = true;
|
|
112
119
|
this.children = [];
|
|
113
120
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
114
121
|
required: true,
|
|
@@ -8,6 +8,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -17,6 +18,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
17
18
|
renderExport: (value: any, record: any) => any;
|
|
18
19
|
editRender: () => React.JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "like";
|
|
20
22
|
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
@@ -13,6 +13,7 @@ import { JstGoodImage } from "../Common";
|
|
|
13
13
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
16
17
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
17
18
|
var _this = this,
|
|
18
19
|
_this$componentConfig;
|
|
@@ -24,6 +25,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "align", void 0);
|
|
26
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
@@ -73,6 +75,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
73
75
|
});
|
|
74
76
|
_defineProperty(this, "filterConfig", function (item) {
|
|
75
77
|
return [{
|
|
78
|
+
searchDefaultConditions: SYMBOL.like,
|
|
76
79
|
type: item.type,
|
|
77
80
|
id: "".concat(item.id, "_sendName"),
|
|
78
81
|
name: "jst\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
@@ -88,6 +91,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
93
|
}, {
|
|
94
|
+
searchDefaultConditions: SYMBOL.like,
|
|
91
95
|
type: item.type,
|
|
92
96
|
id: "".concat(item.id, "_sendId"),
|
|
93
97
|
name: "jst\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
@@ -132,6 +136,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
132
136
|
}] : [];
|
|
133
137
|
this.align = 'left';
|
|
134
138
|
this.isCombinationComponent = false;
|
|
139
|
+
this.canSort = true;
|
|
135
140
|
this.children = [];
|
|
136
141
|
});
|
|
137
142
|
export default JstSendGood;
|
|
@@ -8,6 +8,7 @@ declare class JstSupply implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -17,6 +18,7 @@ declare class JstSupply implements ComponentInterface {
|
|
|
17
18
|
renderExport: (value: any, record: any) => any;
|
|
18
19
|
editRender: () => React.JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "like";
|
|
20
22
|
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
@@ -13,6 +13,7 @@ import { JstGoodImage } from "../Common";
|
|
|
13
13
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
16
17
|
var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
17
18
|
var _this = this,
|
|
18
19
|
_this$componentConfig;
|
|
@@ -24,6 +25,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "align", void 0);
|
|
26
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
@@ -73,6 +75,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
73
75
|
});
|
|
74
76
|
_defineProperty(this, "filterConfig", function (item) {
|
|
75
77
|
return [{
|
|
78
|
+
searchDefaultConditions: SYMBOL.like,
|
|
76
79
|
type: item.type,
|
|
77
80
|
id: "".concat(item.id, "_supplyName"),
|
|
78
81
|
name: "jst\u4F9B\u9500\u5546\u540D\u79F0",
|
|
@@ -88,6 +91,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
93
|
}, {
|
|
94
|
+
searchDefaultConditions: SYMBOL.like,
|
|
91
95
|
type: item.type,
|
|
92
96
|
id: "".concat(item.id, "_supplyId"),
|
|
93
97
|
name: "jst\u4F9B\u9500\u5546\u7F16\u7801",
|
|
@@ -109,6 +113,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
109
113
|
this.type = options.type;
|
|
110
114
|
this.componentConfig = options.componentConfig;
|
|
111
115
|
this.isCombinationComponent = false;
|
|
116
|
+
this.canSort = true;
|
|
112
117
|
this.children = [];
|
|
113
118
|
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
114
119
|
required: true,
|
|
@@ -13,6 +13,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
13
13
|
express: Express;
|
|
14
14
|
expressCode: ExpressCode;
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
|
+
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
constructor(options: PickOption);
|
|
18
19
|
editRender: (value: any) => React.JSX.Element;
|
|
@@ -25,13 +26,17 @@ declare class Logistics implements ComponentInterface {
|
|
|
25
26
|
};
|
|
26
27
|
renderExport: () => null;
|
|
27
28
|
filterConfig: (item: ColumnConfig) => ({
|
|
29
|
+
searchDefaultConditions: "in";
|
|
28
30
|
type: string;
|
|
29
31
|
id: string;
|
|
30
32
|
name: string;
|
|
31
33
|
filterComponentType: "MultipleSelect";
|
|
32
|
-
|
|
34
|
+
props: {
|
|
35
|
+
options: any[];
|
|
36
|
+
};
|
|
33
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
34
38
|
} | {
|
|
39
|
+
searchDefaultConditions: "like";
|
|
35
40
|
type: string;
|
|
36
41
|
id: string;
|
|
37
42
|
name: string;
|
|
@@ -27,6 +27,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
27
27
|
_defineProperty(this, "express", void 0);
|
|
28
28
|
_defineProperty(this, "expressCode", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
31
32
|
_defineProperty(this, "editRender", function (value) {
|
|
32
33
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -80,6 +81,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
80
81
|
id: "".concat(this.id, "_expressLogisticsCode")
|
|
81
82
|
}));
|
|
82
83
|
this.isCombinationComponent = true;
|
|
84
|
+
this.canSort = false;
|
|
83
85
|
this.children = [this.express, this.expressCode];
|
|
84
86
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
85
87
|
validator: function validator(_, value) {
|
|
@@ -11,9 +11,10 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
originId: string;
|
|
16
|
-
addressDateInstance: AddressData
|
|
17
|
+
addressDateInstance: InstanceType<typeof AddressData>;
|
|
17
18
|
constructor(options: PickOption);
|
|
18
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
20
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -23,6 +23,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
23
23
|
_defineProperty(this, "align", void 0);
|
|
24
24
|
_defineProperty(this, "width", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
27
28
|
_defineProperty(this, "originId", void 0);
|
|
28
29
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
@@ -127,6 +128,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
127
128
|
this.width = 350;
|
|
128
129
|
this.originId = options.id;
|
|
129
130
|
this.isCombinationComponent = false;
|
|
131
|
+
this.canSort = true;
|
|
130
132
|
this.children = [];
|
|
131
133
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
132
134
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -13,8 +13,9 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
13
13
|
align: ALignType;
|
|
14
14
|
width: number;
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
|
+
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
|
-
expressInterceptInstance: ExpressInterceptData
|
|
18
|
+
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
18
19
|
constructor(options: PickOption);
|
|
19
20
|
getComponentValue: (r: Record) => any;
|
|
20
21
|
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
@@ -24,14 +25,17 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
24
25
|
renderExport: (value: any, record: Record) => any;
|
|
25
26
|
editRender: () => null;
|
|
26
27
|
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "in";
|
|
27
29
|
type: string;
|
|
28
30
|
id: string;
|
|
29
31
|
name: string;
|
|
30
32
|
filterComponentType: "MultipleSelect";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
props: {
|
|
34
|
+
options: {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
35
39
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
36
40
|
};
|
|
37
41
|
}
|
|
@@ -10,6 +10,7 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
10
10
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
12
|
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
13
|
+
import { SYMBOL } from "../../constant";
|
|
13
14
|
var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options) {
|
|
14
15
|
var _this = this;
|
|
15
16
|
_classCallCheck(this, InterceptStatus);
|
|
@@ -24,6 +25,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
24
25
|
_defineProperty(this, "align", void 0);
|
|
25
26
|
_defineProperty(this, "width", void 0);
|
|
26
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
28
30
|
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
29
31
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -66,11 +68,14 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
66
68
|
});
|
|
67
69
|
_defineProperty(this, "filterConfig", function (item) {
|
|
68
70
|
return {
|
|
71
|
+
searchDefaultConditions: SYMBOL.in,
|
|
69
72
|
type: item.type,
|
|
70
73
|
id: "".concat(item.id, "_interceptLogisticsStatus"),
|
|
71
74
|
name: "".concat(item.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
72
75
|
filterComponentType: "MultipleSelect",
|
|
73
|
-
|
|
76
|
+
props: {
|
|
77
|
+
options: _this.expressInterceptInstance.getStatusOptions() || []
|
|
78
|
+
},
|
|
74
79
|
filterFn: function filterFn(value) {
|
|
75
80
|
return function (i) {
|
|
76
81
|
var _value$map, _value$map$flat;
|
|
@@ -91,6 +96,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
91
96
|
this.align = "left";
|
|
92
97
|
this.width = 220;
|
|
93
98
|
this.isCombinationComponent = false;
|
|
99
|
+
this.canSort = true;
|
|
94
100
|
this.children = [];
|
|
95
101
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
96
102
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
@@ -12,8 +12,9 @@ declare class InterceptType implements ComponentInterface {
|
|
|
12
12
|
align: ALignType;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
16
|
-
expressInterceptInstance: ExpressInterceptData
|
|
17
|
+
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
17
18
|
constructor(options: PickOption);
|
|
18
19
|
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -22,14 +23,17 @@ declare class InterceptType implements ComponentInterface {
|
|
|
22
23
|
renderExport: (value: any, record: Record) => any;
|
|
23
24
|
editRender: () => null;
|
|
24
25
|
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "in";
|
|
25
27
|
type: string;
|
|
26
28
|
id: string;
|
|
27
29
|
name: string;
|
|
28
30
|
filterComponentType: "MultipleSelect";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
props: {
|
|
32
|
+
options: {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
33
37
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
34
38
|
};
|
|
35
39
|
}
|
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
10
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import { SYMBOL } from "../../constant";
|
|
12
13
|
var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
13
14
|
var _this = this;
|
|
14
15
|
_classCallCheck(this, InterceptType);
|
|
@@ -22,6 +23,7 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
22
23
|
_defineProperty(this, "align", void 0);
|
|
23
24
|
_defineProperty(this, "width", void 0);
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
27
|
_defineProperty(this, "children", void 0);
|
|
26
28
|
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
27
29
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -53,11 +55,14 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
53
55
|
});
|
|
54
56
|
_defineProperty(this, "filterConfig", function (item) {
|
|
55
57
|
return {
|
|
58
|
+
searchDefaultConditions: SYMBOL.in,
|
|
56
59
|
type: item.type,
|
|
57
60
|
id: "".concat(item.id, "_interceptType"),
|
|
58
61
|
name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
|
|
59
62
|
filterComponentType: "MultipleSelect",
|
|
60
|
-
|
|
63
|
+
props: {
|
|
64
|
+
options: _this.expressInterceptInstance.getTypeOptions() || []
|
|
65
|
+
},
|
|
61
66
|
filterFn: function filterFn(value) {
|
|
62
67
|
return function (i) {
|
|
63
68
|
var _value$map, _value$map$flat;
|
|
@@ -77,6 +82,7 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
77
82
|
this.align = "left";
|
|
78
83
|
this.width = 200;
|
|
79
84
|
this.isCombinationComponent = false;
|
|
85
|
+
this.canSort = true;
|
|
80
86
|
this.children = [];
|
|
81
87
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
82
88
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
@@ -19,6 +19,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
19
19
|
interceptLogisticsStatus: InterceptStatus;
|
|
20
20
|
interceptSenderMobile: InterceptSenderMobile;
|
|
21
21
|
isCombinationComponent: boolean;
|
|
22
|
+
canSort: boolean;
|
|
22
23
|
children: ComponentInterface[];
|
|
23
24
|
express: Express;
|
|
24
25
|
expressCode: ExpressCode;
|
|
@@ -48,27 +49,34 @@ declare class Logistics implements ComponentInterface {
|
|
|
48
49
|
renderExport: () => null;
|
|
49
50
|
editRender: () => React.JSX.Element;
|
|
50
51
|
filterConfig: (item: ColumnConfig) => ({
|
|
52
|
+
searchDefaultConditions: "in";
|
|
51
53
|
type: string;
|
|
52
54
|
id: string;
|
|
53
55
|
name: string;
|
|
54
56
|
filterComponentType: "MultipleSelect";
|
|
55
|
-
|
|
57
|
+
props: {
|
|
58
|
+
options: any[];
|
|
59
|
+
};
|
|
56
60
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
57
61
|
} | {
|
|
62
|
+
searchDefaultConditions: "like";
|
|
58
63
|
type: string;
|
|
59
64
|
id: string;
|
|
60
65
|
name: string;
|
|
61
66
|
filterComponentType: "Input";
|
|
62
67
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
63
68
|
} | {
|
|
69
|
+
searchDefaultConditions: "in";
|
|
64
70
|
type: string;
|
|
65
71
|
id: string;
|
|
66
72
|
name: string;
|
|
67
73
|
filterComponentType: "MultipleSelect";
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
props: {
|
|
75
|
+
options: {
|
|
76
|
+
label: string;
|
|
77
|
+
value: string;
|
|
78
|
+
}[];
|
|
79
|
+
};
|
|
72
80
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
73
81
|
})[];
|
|
74
82
|
}
|
|
@@ -33,6 +33,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
33
33
|
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
34
34
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
35
35
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
36
|
+
_defineProperty(this, "canSort", void 0);
|
|
36
37
|
_defineProperty(this, "children", void 0);
|
|
37
38
|
_defineProperty(this, "express", void 0);
|
|
38
39
|
_defineProperty(this, "expressCode", void 0);
|
|
@@ -108,6 +109,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
108
109
|
name: "物流单号"
|
|
109
110
|
}));
|
|
110
111
|
this.isCombinationComponent = true;
|
|
112
|
+
this.canSort = false;
|
|
111
113
|
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus];
|
|
112
114
|
this.rules = [{
|
|
113
115
|
validator: function validator(_, value) {
|
|
@@ -11,6 +11,7 @@ declare class InterceptSenderMobile implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
constructor(options: PickOption);
|
|
16
17
|
getComponentValue: (r: Record) => any;
|
|
@@ -20,6 +21,7 @@ declare class InterceptSenderMobile implements ComponentInterface {
|
|
|
20
21
|
renderExport: (value: any, record: Record) => any;
|
|
21
22
|
editRender: () => null;
|
|
22
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
23
25
|
type: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string;
|
|
@@ -8,6 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from "react";
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
10
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { SYMBOL } from "../../constant";
|
|
11
12
|
var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
|
|
12
13
|
var _this = this;
|
|
13
14
|
_classCallCheck(this, InterceptSenderMobile);
|
|
@@ -21,6 +22,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
21
22
|
_defineProperty(this, "align", void 0);
|
|
22
23
|
_defineProperty(this, "width", void 0);
|
|
23
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
26
|
_defineProperty(this, "children", void 0);
|
|
25
27
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
26
28
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
@@ -48,6 +50,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
48
50
|
});
|
|
49
51
|
_defineProperty(this, "filterConfig", function (item) {
|
|
50
52
|
return {
|
|
53
|
+
searchDefaultConditions: SYMBOL.like,
|
|
51
54
|
type: item.type,
|
|
52
55
|
id: "".concat(item.id, "_interceptSenderMobile"),
|
|
53
56
|
name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
|
|
@@ -68,6 +71,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
68
71
|
this.align = "left";
|
|
69
72
|
this.width = 200;
|
|
70
73
|
this.isCombinationComponent = false;
|
|
74
|
+
this.canSort = true;
|
|
71
75
|
this.children = [];
|
|
72
76
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
73
77
|
});
|
|
@@ -7,6 +7,7 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -16,11 +17,14 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
16
17
|
renderExport: (value: any, record: Record) => any;
|
|
17
18
|
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
searchDefaultConditions: "in";
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
22
24
|
filterComponentType: "MultipleSelect";
|
|
23
|
-
|
|
25
|
+
props: {
|
|
26
|
+
options: any[];
|
|
27
|
+
};
|
|
24
28
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
29
|
};
|
|
26
30
|
}
|