@kmkf-fe-packages/services-components 0.6.3-alpha.6 → 0.6.3-alpha.60
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 +2 -2
- 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 +2 -2
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/ActualPayment/index.d.ts +7 -5
- package/dist/esm/components/ActualPayment/index.js +9 -4
- package/dist/esm/components/Address/index.d.ts +6 -5
- package/dist/esm/components/Address/index.js +8 -4
- package/dist/esm/components/Alipay/index.d.ts +9 -4
- package/dist/esm/components/Alipay/index.js +9 -3
- package/dist/esm/components/AlipayAccount/index.d.ts +7 -5
- package/dist/esm/components/AlipayAccount/index.js +11 -5
- package/dist/esm/components/AlipayName/index.d.ts +7 -5
- package/dist/esm/components/AlipayName/index.js +11 -5
- package/dist/esm/components/BuyerNick/index.d.ts +10 -8
- package/dist/esm/components/BuyerNick/index.js +11 -3
- package/dist/esm/components/Cascader/index.d.ts +9 -7
- package/dist/esm/components/Cascader/index.js +9 -4
- package/dist/esm/components/Checkbox/index.d.ts +10 -5
- package/dist/esm/components/Checkbox/index.js +21 -6
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +7 -5
- package/dist/esm/components/CommonDataTime/index.js +8 -4
- package/dist/esm/components/CompletedUser/index.d.ts +5 -3
- package/dist/esm/components/CompletedUser/index.js +7 -3
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/DataTime/index.d.ts +9 -7
- package/dist/esm/components/DataTime/index.js +8 -3
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +7 -5
- package/dist/esm/components/EItemEnCode/index.js +12 -7
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemId/index.d.ts +7 -5
- package/dist/esm/components/EItemId/index.js +12 -7
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/EItemSelect/index.d.ts +6 -5
- package/dist/esm/components/EItemSelect/index.js +10 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +8 -6
- package/dist/esm/components/ErpTradeId/index.js +10 -5
- package/dist/esm/components/Express/index.d.ts +8 -6
- package/dist/esm/components/Express/index.js +12 -7
- package/dist/esm/components/ExpressCode/index.d.ts +10 -8
- package/dist/esm/components/ExpressCode/index.js +19 -12
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -5
- package/dist/esm/components/FlowStatusSelect/index.js +11 -3
- 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 +6 -5
- package/dist/esm/components/Grade/index.js +8 -4
- package/dist/esm/components/Handler/index.d.ts +5 -5
- package/dist/esm/components/Handler/index.js +18 -8
- package/dist/esm/components/Input/index.d.ts +7 -5
- package/dist/esm/components/Input/index.js +9 -4
- package/dist/esm/components/JstItemSelect/index.d.ts +8 -6
- package/dist/esm/components/JstItemSelect/index.js +29 -24
- package/dist/esm/components/JstLogistics/index.d.ts +10 -7
- package/dist/esm/components/JstLogistics/index.js +19 -9
- package/dist/esm/components/JstSendGood/index.d.ts +7 -5
- package/dist/esm/components/JstSendGood/index.js +19 -9
- package/dist/esm/components/JstSupply/index.d.ts +7 -5
- package/dist/esm/components/JstSupply/index.js +19 -9
- package/dist/esm/components/Logistics/index.d.ts +12 -6
- package/dist/esm/components/Logistics/index.js +9 -3
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -9
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +72 -27
- 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 +21 -9
- package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
- 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 +55 -8
- package/dist/esm/components/LogisticsInterception/index.js +54 -14
- 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 +7 -6
- package/dist/esm/components/MultSelect/index.js +10 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
- package/dist/esm/components/Ordinary/index.d.ts +12 -6
- package/dist/esm/components/Ordinary/index.js +12 -5
- package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayNick.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNick.js +13 -6
- package/dist/esm/components/Payment/AlipayNo.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNo.js +13 -7
- package/dist/esm/components/Payment/AlipayTime.d.ts +8 -6
- package/dist/esm/components/Payment/AlipayTime.js +11 -8
- package/dist/esm/components/Payment/BuyerNick.d.ts +7 -5
- package/dist/esm/components/Payment/BuyerNick.js +12 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentAmount.js +10 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentStatus.js +11 -5
- package/dist/esm/components/Payment/PaymentTid.d.ts +8 -6
- package/dist/esm/components/Payment/PaymentTid.js +10 -4
- package/dist/esm/components/Payment/index.d.ts +20 -8
- package/dist/esm/components/Payment/index.js +14 -3
- package/dist/esm/components/Picture/index.d.ts +7 -5
- package/dist/esm/components/Picture/index.js +8 -1
- package/dist/esm/components/PlatForm/index.d.ts +10 -5
- package/dist/esm/components/PlatForm/index.js +8 -3
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/Radio/index.d.ts +11 -5
- package/dist/esm/components/Radio/index.js +11 -0
- package/dist/esm/components/Rate/index.d.ts +7 -5
- package/dist/esm/components/Rate/index.js +11 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +10 -5
- package/dist/esm/components/ReceiverAddress/index.js +13 -3
- package/dist/esm/components/ReceiverMobile/index.d.ts +7 -5
- package/dist/esm/components/ReceiverMobile/index.js +9 -4
- package/dist/esm/components/ReceiverName/index.d.ts +7 -5
- package/dist/esm/components/ReceiverName/index.js +9 -4
- package/dist/esm/components/Remark/index.d.ts +11 -5
- package/dist/esm/components/Remark/index.js +11 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
- package/dist/esm/components/ReturnLogistics/index.js +9 -3
- package/dist/esm/components/Select/index.d.ts +7 -5
- package/dist/esm/components/Select/index.js +8 -3
- package/dist/esm/components/ShopInput/index.d.ts +5 -3
- package/dist/esm/components/ShopInput/index.js +9 -4
- package/dist/esm/components/ShopName/index.d.ts +7 -5
- package/dist/esm/components/ShopName/index.js +10 -5
- package/dist/esm/components/Submitter/index.d.ts +5 -3
- package/dist/esm/components/Submitter/index.js +7 -3
- package/dist/esm/components/SystemOrderNo/index.d.ts +8 -6
- package/dist/esm/components/SystemOrderNo/index.js +9 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +6 -4
- package/dist/esm/components/TemplateSelect/index.js +10 -5
- package/dist/esm/components/TextArea/index.d.ts +7 -5
- package/dist/esm/components/TextArea/index.js +9 -4
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -5
- package/dist/esm/components/ThirdItemSelect/index.js +12 -8
- package/dist/esm/components/TradeDateTime/index.d.ts +10 -6
- package/dist/esm/components/TradeDateTime/index.js +18 -7
- package/dist/esm/components/TradeId/index.d.ts +8 -6
- package/dist/esm/components/TradeId/index.js +9 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +6 -4
- package/dist/esm/components/WorkOrderId/index.js +10 -4
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +20 -14
- package/package.json +10 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,12 +9,14 @@ declare class BasicInput implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value: any, record: Record) => JSX.Element;
|
|
12
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
13
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
14
|
+
getComponentValue: (r: Record) => any;
|
|
13
15
|
renderExport: (value: any, record: Record) => any;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
editRender: () => JSX.Element;
|
|
16
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
|
+
editRender: () => React.JSX.Element;
|
|
17
18
|
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
type: string;
|
|
18
20
|
id: string;
|
|
19
21
|
name: string;
|
|
20
22
|
filterComponentType: "Input";
|
|
@@ -26,18 +26,22 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
26
26
|
var _record;
|
|
27
27
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
|
|
28
28
|
});
|
|
29
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
30
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_input")])) return null;
|
|
31
|
+
return _this.renderPc(undefined, r);
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
34
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_input")];
|
|
35
|
+
});
|
|
29
36
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
30
37
|
var _record2;
|
|
31
38
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
32
39
|
});
|
|
33
|
-
_defineProperty(this, "render", function (value) {
|
|
34
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
35
|
-
});
|
|
36
40
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
41
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
38
42
|
id: _this.id,
|
|
39
43
|
label: _this.name,
|
|
40
|
-
value:
|
|
44
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
41
45
|
}) : null;
|
|
42
46
|
});
|
|
43
47
|
_defineProperty(this, "editRender", function () {
|
|
@@ -54,6 +58,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
54
58
|
});
|
|
55
59
|
_defineProperty(this, "filterConfig", function (item) {
|
|
56
60
|
return {
|
|
61
|
+
type: item.type,
|
|
57
62
|
id: item.id,
|
|
58
63
|
// 过滤组件id
|
|
59
64
|
name: item.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class JstItemSelect implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -8,16 +8,18 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
|
-
expressDateInstance: ExpressData
|
|
11
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value: any, record: any) => any;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
@@ -26,18 +26,14 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
26
26
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "render", function (value) {
|
|
30
|
-
//兼容多个商品
|
|
31
|
-
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
32
|
-
list: value,
|
|
33
|
-
type: "jstItemThird"
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
38
31
|
id: _this.id,
|
|
39
32
|
label: _this.name,
|
|
40
|
-
value:
|
|
33
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
34
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
35
|
+
type: "jstItemThird"
|
|
36
|
+
})
|
|
41
37
|
}) : null;
|
|
42
38
|
});
|
|
43
39
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -48,6 +44,14 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
48
44
|
type: "jstItemThird"
|
|
49
45
|
});
|
|
50
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
49
|
+
if (isNull(list)) return null;
|
|
50
|
+
return _this.renderPc(undefined, r);
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
53
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
54
|
+
});
|
|
51
55
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
56
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
53
57
|
return (list || []).map(function (item) {
|
|
@@ -66,28 +70,29 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
66
70
|
});
|
|
67
71
|
});
|
|
68
72
|
_defineProperty(this, "filterConfig", function (item) {
|
|
69
|
-
|
|
73
|
+
var _ref2;
|
|
74
|
+
return [(_ref2 = {
|
|
75
|
+
type: item.type,
|
|
70
76
|
id: "".concat(item.id, "_itemId"),
|
|
71
|
-
name: "jst\u4F9B\u5E94\u5546\u7F16\u7801"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}, {
|
|
77
|
+
name: "jst\u4F9B\u5E94\u5546\u7F16\u7801"
|
|
78
|
+
}, _defineProperty(_ref2, "type", item.type), _defineProperty(_ref2, "filterComponentType", 'Input'), _defineProperty(_ref2, "filterFn", function filterFn(value) {
|
|
79
|
+
return function (i) {
|
|
80
|
+
var _ref;
|
|
81
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
82
|
+
var _String;
|
|
83
|
+
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;
|
|
84
|
+
return id;
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
}), _ref2), {
|
|
88
|
+
type: item.type,
|
|
84
89
|
id: "".concat(item.id, "_supplierName"),
|
|
85
90
|
name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
86
91
|
filterComponentType: 'Input',
|
|
87
92
|
filterFn: function filterFn(value) {
|
|
88
93
|
return function (i) {
|
|
89
|
-
var
|
|
90
|
-
return (
|
|
94
|
+
var _ref3;
|
|
95
|
+
return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
|
|
91
96
|
var _String2;
|
|
92
97
|
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
98
|
return name;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class JstLogistics implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -8,22 +8,25 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
|
-
expressDateInstance: ExpressData
|
|
11
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value: any, record: any) => any;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => ({
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
24
|
-
filterFn: (value: string) => (i: Record) =>
|
|
26
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
27
|
options?: undefined;
|
|
26
28
|
} | {
|
|
29
|
+
type: string;
|
|
27
30
|
id: string;
|
|
28
31
|
name: string;
|
|
29
32
|
filterComponentType: "MultipleSelect";
|
|
@@ -8,6 +8,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import some from 'lodash/some';
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import { JstGoodImage } from "../Common";
|
|
13
14
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
@@ -26,18 +27,17 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
26
27
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
27
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "render", function (value) {
|
|
30
|
-
//兼容多个商品
|
|
31
|
-
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
32
|
-
list: value,
|
|
33
|
-
type: 1
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
|
-
|
|
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) {
|
|
32
|
+
return !isNull(item);
|
|
33
|
+
}) : false;
|
|
34
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
38
35
|
id: _this.id,
|
|
39
36
|
label: _this.name,
|
|
40
|
-
value:
|
|
37
|
+
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
38
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
39
|
+
type: 1
|
|
40
|
+
})
|
|
41
41
|
}) : null;
|
|
42
42
|
});
|
|
43
43
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -48,6 +48,14 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
48
48
|
type: 1
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
53
|
+
if (isNull(list)) return null;
|
|
54
|
+
return _this.renderPc(undefined, r);
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
58
|
+
});
|
|
51
59
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
60
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
53
61
|
return (list || []).map(function (item) {
|
|
@@ -69,6 +77,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
69
77
|
});
|
|
70
78
|
_defineProperty(this, "filterConfig", function (item) {
|
|
71
79
|
return [{
|
|
80
|
+
type: item.type,
|
|
72
81
|
id: "".concat(item.id, "_logisticsCode"),
|
|
73
82
|
name: "jst\u7269\u6D41\u5355\u53F7",
|
|
74
83
|
filterComponentType: 'Input',
|
|
@@ -78,6 +87,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
78
87
|
};
|
|
79
88
|
}
|
|
80
89
|
}, {
|
|
90
|
+
type: item.type,
|
|
81
91
|
id: "".concat(item.id, "_logisticsCompany"),
|
|
82
92
|
name: "jst\u7269\u6D41\u516C\u53F8",
|
|
83
93
|
filterComponentType: 'MultipleSelect',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class JstSendGood implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,14 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
16
17
|
renderExport: (value: any, record: any) => any;
|
|
17
|
-
editRender: () => JSX.Element;
|
|
18
|
+
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
19
21
|
id: string;
|
|
20
22
|
name: string;
|
|
21
23
|
filterComponentType: "Input";
|
|
@@ -7,6 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import some from 'lodash/some';
|
|
10
11
|
import GetFormItem from "../GetFormItem";
|
|
11
12
|
import { JstGoodImage } from "../Common";
|
|
12
13
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
@@ -24,18 +25,17 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
24
25
|
_defineProperty(this, "align", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "render", function (value) {
|
|
28
|
-
//兼容多个商品
|
|
29
|
-
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
30
|
-
list: value,
|
|
31
|
-
type: 3
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
|
-
|
|
29
|
+
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) {
|
|
30
|
+
return !isNull(item);
|
|
31
|
+
}) : false;
|
|
32
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
33
|
id: _this.id,
|
|
37
34
|
label: _this.name,
|
|
38
|
-
value:
|
|
35
|
+
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
36
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
37
|
+
type: 3
|
|
38
|
+
})
|
|
39
39
|
}) : null;
|
|
40
40
|
});
|
|
41
41
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -46,6 +46,14 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
46
46
|
type: 3
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
50
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
51
|
+
if (isNull(list)) return null;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
56
|
+
});
|
|
49
57
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
50
58
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
51
59
|
return (list || []).map(function (item) {
|
|
@@ -65,6 +73,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
65
73
|
});
|
|
66
74
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
75
|
return [{
|
|
76
|
+
type: item.type,
|
|
68
77
|
id: "".concat(item.id, "_sendName"),
|
|
69
78
|
name: "jst\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
70
79
|
filterComponentType: 'Input',
|
|
@@ -79,6 +88,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
90
|
}, {
|
|
91
|
+
type: item.type,
|
|
82
92
|
id: "".concat(item.id, "_sendId"),
|
|
83
93
|
name: "jst\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
84
94
|
filterComponentType: 'Input',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class JstSupply implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,14 @@ declare class JstSupply implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
16
17
|
renderExport: (value: any, record: any) => any;
|
|
17
|
-
editRender: () => JSX.Element;
|
|
18
|
+
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
type: string;
|
|
19
21
|
id: string;
|
|
20
22
|
name: string;
|
|
21
23
|
filterComponentType: "Input";
|
|
@@ -7,6 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import some from 'lodash/some';
|
|
10
11
|
import GetFormItem from "../GetFormItem";
|
|
11
12
|
import { JstGoodImage } from "../Common";
|
|
12
13
|
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
@@ -24,18 +25,17 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
24
25
|
_defineProperty(this, "align", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "render", function (value) {
|
|
28
|
-
//兼容多个商品
|
|
29
|
-
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
30
|
-
list: value,
|
|
31
|
-
type: 2
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
|
-
|
|
29
|
+
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) {
|
|
30
|
+
return !isNull(item);
|
|
31
|
+
}) : false;
|
|
32
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
33
|
id: _this.id,
|
|
37
34
|
label: _this.name,
|
|
38
|
-
value:
|
|
35
|
+
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
36
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
37
|
+
type: 2
|
|
38
|
+
})
|
|
39
39
|
}) : null;
|
|
40
40
|
});
|
|
41
41
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -46,6 +46,14 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
46
46
|
type: 2
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
50
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
51
|
+
if (isNull(list)) return null;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
56
|
+
});
|
|
49
57
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
50
58
|
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")]) || [];
|
|
51
59
|
return list.map(function (item) {
|
|
@@ -65,6 +73,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
65
73
|
});
|
|
66
74
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
75
|
return [{
|
|
76
|
+
type: item.type,
|
|
68
77
|
id: "".concat(item.id, "_supplyName"),
|
|
69
78
|
name: "jst\u4F9B\u9500\u5546\u540D\u79F0",
|
|
70
79
|
filterComponentType: 'Input',
|
|
@@ -79,6 +88,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
90
|
}, {
|
|
91
|
+
type: item.type,
|
|
82
92
|
id: "".concat(item.id, "_supplyId"),
|
|
83
93
|
name: "jst\u4F9B\u9500\u5546\u7F16\u7801",
|
|
84
94
|
filterComponentType: 'Input',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } 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';
|
|
@@ -9,28 +9,34 @@ declare class Logistics implements ComponentInterface {
|
|
|
9
9
|
type: string;
|
|
10
10
|
rules: any[];
|
|
11
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
-
expressDateInstance: ExpressData
|
|
12
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
express: Express;
|
|
14
14
|
expressCode: ExpressCode;
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
renderClient: (record: Record) => JSX.Element;
|
|
18
|
+
editRender: (value: any) => React.JSX.Element;
|
|
19
|
+
renderClient: (record: Record) => React.JSX.Element;
|
|
21
20
|
renderPc: () => null;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
22
|
+
getComponentValue: (r: Record) => {
|
|
23
|
+
company: any;
|
|
24
|
+
order: any;
|
|
25
|
+
};
|
|
22
26
|
renderExport: () => null;
|
|
23
27
|
filterConfig: (item: ColumnConfig) => ({
|
|
28
|
+
type: string;
|
|
24
29
|
id: string;
|
|
25
30
|
name: string;
|
|
26
31
|
filterComponentType: "MultipleSelect";
|
|
27
32
|
options: any[];
|
|
28
33
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
34
|
} | {
|
|
35
|
+
type: string;
|
|
30
36
|
id: string;
|
|
31
37
|
name: string;
|
|
32
38
|
filterComponentType: "Input";
|
|
33
|
-
filterFn: (value: string) => (i: Record) =>
|
|
39
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
34
40
|
})[];
|
|
35
41
|
}
|
|
36
42
|
export default Logistics;
|
|
@@ -28,9 +28,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
28
28
|
_defineProperty(this, "expressCode", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "render", function () {
|
|
32
|
-
return null;
|
|
33
|
-
});
|
|
34
31
|
_defineProperty(this, "editRender", function (value) {
|
|
35
32
|
var _this$componentConfig, _this$componentConfig2;
|
|
36
33
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -50,6 +47,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
50
47
|
_defineProperty(this, "renderPc", function () {
|
|
51
48
|
return null;
|
|
52
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.express.name, ": ", _this.express.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressCode.name, ": ", _this.expressCode.renderLog(r)));
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
|
+
return {
|
|
55
|
+
company: _this.express.getComponentValue(r),
|
|
56
|
+
order: _this.expressCode.getComponentValue(r)
|
|
57
|
+
};
|
|
58
|
+
});
|
|
53
59
|
_defineProperty(this, "renderExport", function () {
|
|
54
60
|
return null;
|
|
55
61
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
declare class PaymentTid implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
@@ -15,11 +15,19 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
15
15
|
originId: string;
|
|
16
16
|
addressDateInstance: AddressData;
|
|
17
17
|
constructor(options: PickOption);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => {
|
|
22
|
+
province: any;
|
|
23
|
+
city: any;
|
|
24
|
+
district: any;
|
|
25
|
+
detail: any;
|
|
26
|
+
name: any;
|
|
27
|
+
mobile: any;
|
|
28
|
+
};
|
|
29
|
+
renderExport: (value: any, record: Record) => string | null;
|
|
30
|
+
editRender: () => React.JSX.Element;
|
|
31
|
+
filterConfig: () => never[];
|
|
24
32
|
}
|
|
25
33
|
export default PaymentTid;
|